[ARM] PR target/79145 Fix xordi3 expander for immediate operands in iWMMXt
[official-gcc.git] / configure
blobd7573690383d50b802cb99d95d0e7983ec785c32
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 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_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 DLLTOOL_FOR_BUILD
619 CXX_FOR_BUILD
620 CXXFLAGS_FOR_BUILD
621 CFLAGS_FOR_BUILD
622 CC_FOR_BUILD
623 AS_FOR_BUILD
624 AR_FOR_BUILD
625 target_configdirs
626 configdirs
627 build_configdirs
628 INSTALL_GDB_TK
629 GDB_TK
630 CONFIGURE_GDB_TK
631 build_tooldir
632 tooldir
633 GCC_SHLIB_SUBDIR
634 RPATH_ENVVAR
635 target_configargs
636 host_configargs
637 build_configargs
638 BUILD_CONFIG
639 LDFLAGS_FOR_TARGET
640 CXXFLAGS_FOR_TARGET
641 CFLAGS_FOR_TARGET
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
644 get_gcc_base_ver
645 extra_host_zlib_configure_flags
646 extra_host_libiberty_configure_flags
647 stage1_languages
648 extra_linker_plugin_flags
649 extra_linker_plugin_configure_flags
650 islinc
651 isllibs
652 islver
653 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
676 extra_liboffloadmic_configure_flags
677 target_subdir
678 host_subdir
679 build_subdir
680 build_libsubdir
683 LN_S
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 target_noncanonical
697 host_noncanonical
698 build_noncanonical
699 build_os
700 build_vendor
701 build_cpu
702 build
703 TOPLEVEL_CONFIGURE_ARGUMENTS
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files='serialization_dependencies
743 host_makefile_frag
744 target_makefile_frag
745 alphaieee_frag
746 ospace_frag'
747 ac_user_opts='
748 enable_option_checking
749 with_build_libsubdir
750 with_system_zlib
751 enable_as_accelerator_for
752 enable_offload_targets
753 enable_gold
754 enable_ld
755 enable_compressed_debug_sections
756 enable_libquadmath
757 enable_libquadmath_support
758 enable_libada
759 enable_libssp
760 enable_libstdcxx
761 enable_liboffloadmic
762 enable_bootstrap
763 with_mpc
764 with_mpc_include
765 with_mpc_lib
766 with_mpfr_dir
767 with_mpfr
768 with_mpfr_include
769 with_mpfr_lib
770 with_gmp_dir
771 with_gmp
772 with_gmp_include
773 with_gmp_lib
774 with_stage1_libs
775 with_stage1_ldflags
776 with_boot_libs
777 with_boot_ldflags
778 with_isl
779 with_isl_include
780 with_isl_lib
781 enable_isl_version_check
782 enable_lto
783 enable_linker_plugin_configure_flags
784 enable_linker_plugin_flags
785 enable_stage1_languages
786 enable_objc_gc
787 with_target_bdw_gc
788 with_target_bdw_gc_include
789 with_target_bdw_gc_lib
790 with_gcc_major_version_only
791 with_build_sysroot
792 with_debug_prefix_map
793 with_build_config
794 enable_vtable_verify
795 enable_serial_configure
796 with_build_time_tools
797 enable_maintainer_mode
798 enable_stage1_checking
799 enable_werror
800 enable_host_shared
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
811 CXXFLAGS
813 build_configargs
814 host_configargs
815 target_configargs
818 DLLTOOL
820 LIPO
822 RANLIB
823 STRIP
824 WINDRES
825 WINDMC
826 OBJCOPY
827 OBJDUMP
828 READELF
829 CC_FOR_TARGET
830 CXX_FOR_TARGET
831 GCC_FOR_TARGET
832 GFORTRAN_FOR_TARGET
833 GOC_FOR_TARGET
834 AR_FOR_TARGET
835 AS_FOR_TARGET
836 DLLTOOL_FOR_TARGET
837 LD_FOR_TARGET
838 LIPO_FOR_TARGET
839 NM_FOR_TARGET
840 OBJCOPY_FOR_TARGET
841 OBJDUMP_FOR_TARGET
842 RANLIB_FOR_TARGET
843 READELF_FOR_TARGET
844 STRIP_FOR_TARGET
845 WINDRES_FOR_TARGET
846 WINDMC_FOR_TARGET'
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE}'
888 infodir='${datarootdir}/info'
889 htmldir='${docdir}'
890 dvidir='${docdir}'
891 pdfdir='${docdir}'
892 psdir='${docdir}'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
897 ac_prev=
898 ac_dashdash=
899 for ac_option
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
904 ac_prev=
905 continue
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
913 # Accept the important Cygnus configure options, so we can diagnose typos.
915 case $ac_dashdash$ac_option in
917 ac_dashdash=yes ;;
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 bindir=$ac_optarg ;;
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
936 --config-cache | -C)
937 cache_file=config.cache ;;
939 -datadir | --datadir | --datadi | --datad)
940 ac_prev=datadir ;;
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
951 -disable-* | --disable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
977 -enable-* | --enable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=\$ac_optarg ;;
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1000 exec_prefix=$ac_optarg ;;
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
1013 -host | --host | --hos | --ho)
1014 ac_prev=host_alias ;;
1015 -host=* | --host=* | --hos=* | --ho=*)
1016 host_alias=$ac_optarg ;;
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1029 includedir=$ac_optarg ;;
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039 libdir=$ac_optarg ;;
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1046 libexecdir=$ac_optarg ;;
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
1054 | --localstate | --localstat | --localsta | --localst | --locals)
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058 localstatedir=$ac_optarg ;;
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1071 no_create=yes ;;
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084 oldincludedir=$ac_optarg ;;
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089 prefix=$ac_optarg ;;
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096 program_prefix=$ac_optarg ;;
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103 program_suffix=$ac_optarg ;;
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1120 program_transform_name=$ac_optarg ;;
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1231 -*) as_fn_error "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information."
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1246 # FIXME: should be removed in autoconf 3.0.
1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1253 esac
1254 done
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error "missing argument to $ac_option"
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311 test "$silent" = yes && exec 6>/dev/null
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error "pwd does not report name of working directory"
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 $as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1340 /^X\(\/\/\)$/{
1341 s//\1/
1344 /^X\(\/\).*/{
1345 s//\1/
1348 s/.*/./; q'`
1349 srcdir=$ac_confdir
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 srcdir=..
1353 else
1354 ac_srcdir_defaulted=no
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 case $srcdir in
1375 *" "*)
1376 as_fn_error "path to source, $srcdir, contains spaces"
1378 esac
1379 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures this package to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1450 cat <<\_ACEOF
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461 _ACEOF
1464 if test -n "$ac_init_help"; then
1466 cat <<\_ACEOF
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-as-accelerator-for=ARG
1473 build as offload target compiler. Specify offload
1474 host triple by ARG
1475 --enable-offload-targets=LIST
1476 enable offloading to devices from comma-separated
1477 LIST of TARGET[=DIR]. Use optional path to find
1478 offload target compiler during the build
1479 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1480 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1481 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1482 Enable compressed debug sections for gas, gold or ld
1483 by default
1484 --disable-libquadmath do not build libquadmath directory
1485 --disable-libquadmath-support
1486 disable libquadmath support for Fortran
1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
1489 --disable-libstdcxx do not build libstdc++-v3 directory
1490 --enable-liboffloadmic=ARG
1491 build liboffloadmic [ARG={no,host,target}]
1492 --enable-bootstrap enable bootstrapping [yes if native build]
1493 --disable-isl-version-check
1494 disable check for isl version
1495 --enable-lto enable link time optimization support
1496 --enable-linker-plugin-configure-flags=FLAGS
1497 additional flags for configuring linker plugins
1498 [none]
1499 --enable-linker-plugin-flags=FLAGS
1500 additional flags for configuring and building linker
1501 plugins [none]
1502 --enable-stage1-languages[=all]
1503 choose additional languages to build during stage1.
1504 Mostly useful for compiler development
1505 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1506 Objective-C runtime
1507 --enable-vtable-verify Enable vtable verification feature
1508 --enable-serial-[{host,target,build}-]configure
1509 force sequential configuration of sub-packages for
1510 the host, target or build machine, or all
1511 sub-packages
1512 --enable-maintainer-mode
1513 enable make rules and dependencies not useful (and
1514 sometimes confusing) to the casual installer
1515 --enable-stage1-checking[=all]
1516 choose additional checking for stage1 of the
1517 compiler
1518 --enable-werror enable -Werror in bootstrap stage2 and later
1519 --enable-host-shared build host code as shared libraries
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-build-libsubdir=DIR Directory where to find libraries for build system
1525 --with-system-zlib use installed libz
1526 --with-mpc=PATH specify prefix directory for installed MPC package.
1527 Equivalent to --with-mpc-include=PATH/include plus
1528 --with-mpc-lib=PATH/lib
1529 --with-mpc-include=PATH specify directory for installed MPC include files
1530 --with-mpc-lib=PATH specify directory for the installed MPC library
1531 --with-mpfr-dir=PATH this option has been REMOVED
1532 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1533 Equivalent to --with-mpfr-include=PATH/include plus
1534 --with-mpfr-lib=PATH/lib
1535 --with-mpfr-include=PATH
1536 specify directory for installed MPFR include files
1537 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1538 --with-gmp-dir=PATH this option has been REMOVED
1539 --with-gmp=PATH specify prefix directory for the installed GMP
1540 package. Equivalent to
1541 --with-gmp-include=PATH/include plus
1542 --with-gmp-lib=PATH/lib
1543 --with-gmp-include=PATH specify directory for installed GMP include files
1544 --with-gmp-lib=PATH specify directory for the installed GMP library
1545 --with-stage1-libs=LIBS libraries for stage1
1546 --with-stage1-ldflags=FLAGS
1547 linker flags for stage1
1548 --with-boot-libs=LIBS libraries for stage2 and later
1549 --with-boot-ldflags=FLAGS
1550 linker flags for stage2 and later
1551 --with-isl=PATH Specify prefix directory for the installed isl
1552 package. Equivalent to
1553 --with-isl-include=PATH/include plus
1554 --with-isl-lib=PATH/lib
1555 --with-isl-include=PATH Specify directory for installed isl include files
1556 --with-isl-lib=PATH Specify the directory for the installed isl library
1557 --with-target-bdw-gc=PATHLIST
1558 specify prefix directory for installed bdw-gc
1559 package. Equivalent to
1560 --with-target-bdw-gc-include=PATH/include plus
1561 --with-target-bdw-gc-lib=PATH/lib
1562 --with-target-bdw-gc-include=PATHLIST
1563 specify directories for installed bdw-gc include
1564 files
1565 --with-target-bdw-gc-lib=PATHLIST
1566 specify directories for installed bdw-gc library
1567 --with-gcc-major-version-only
1568 use only GCC major number in filesystem paths
1569 --with-build-sysroot=SYSROOT
1570 use sysroot as the system root during the build
1571 --with-debug-prefix-map='A=B C=D ...'
1572 map A to B, C to D ... in debug information
1573 --with-build-config='NAME NAME2...'
1574 use config/NAME.mk build configuration
1575 --with-build-time-tools=PATH
1576 use given path to find target tools during the build
1578 Some influential environment variables:
1579 CC C compiler command
1580 CFLAGS C compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
1583 LIBS libraries to pass to the linker, e.g. -l<library>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1586 CXX C++ compiler command
1587 CXXFLAGS C++ compiler flags
1588 build_configargs
1589 additional configure arguments for build directories
1590 host_configargs
1591 additional configure arguments for host directories
1592 target_configargs
1593 additional configure arguments for target directories
1594 AR AR for the host
1595 AS AS for the host
1596 DLLTOOL DLLTOOL for the host
1597 LD LD for the host
1598 LIPO LIPO for the host
1599 NM NM for the host
1600 RANLIB RANLIB for the host
1601 STRIP STRIP for the host
1602 WINDRES WINDRES for the host
1603 WINDMC WINDMC for the host
1604 OBJCOPY OBJCOPY for the host
1605 OBJDUMP OBJDUMP for the host
1606 READELF READELF for the host
1607 CC_FOR_TARGET
1608 CC for the target
1609 CXX_FOR_TARGET
1610 CXX for the target
1611 GCC_FOR_TARGET
1612 GCC for the target
1613 GFORTRAN_FOR_TARGET
1614 GFORTRAN for the target
1615 GOC_FOR_TARGET
1616 GOC for the target
1617 AR_FOR_TARGET
1618 AR for the target
1619 AS_FOR_TARGET
1620 AS for the target
1621 DLLTOOL_FOR_TARGET
1622 DLLTOOL for the target
1623 LD_FOR_TARGET
1624 LD for the target
1625 LIPO_FOR_TARGET
1626 LIPO for the target
1627 NM_FOR_TARGET
1628 NM for the target
1629 OBJCOPY_FOR_TARGET
1630 OBJCOPY for the target
1631 OBJDUMP_FOR_TARGET
1632 OBJDUMP for the target
1633 RANLIB_FOR_TARGET
1634 RANLIB for the target
1635 READELF_FOR_TARGET
1636 READELF for the target
1637 STRIP_FOR_TARGET
1638 STRIP for the target
1639 WINDRES_FOR_TARGET
1640 WINDRES for the target
1641 WINDMC_FOR_TARGET
1642 WINDMC for the target
1644 Use these variables to override the choices made by `configure' or to help
1645 it to find libraries and programs with nonstandard names/locations.
1647 Report bugs to the package provider.
1648 _ACEOF
1649 ac_status=$?
1652 if test "$ac_init_help" = "recursive"; then
1653 # If there are subdirs, report their specific --help.
1654 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655 test -d "$ac_dir" ||
1656 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657 continue
1658 ac_builddir=.
1660 case "$ac_dir" in
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1664 # A ".." for each directory in $ac_dir_suffix.
1665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1666 case $ac_top_builddir_sub in
1667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 esac ;;
1670 esac
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1676 case $srcdir in
1677 .) # We are building in place.
1678 ac_srcdir=.
1679 ac_top_srcdir=$ac_top_builddir_sub
1680 ac_abs_top_srcdir=$ac_pwd ;;
1681 [\\/]* | ?:[\\/]* ) # Absolute name.
1682 ac_srcdir=$srcdir$ac_dir_suffix;
1683 ac_top_srcdir=$srcdir
1684 ac_abs_top_srcdir=$srcdir ;;
1685 *) # Relative name.
1686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687 ac_top_srcdir=$ac_top_build_prefix$srcdir
1688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 esac
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692 cd "$ac_dir" || { ac_status=$?; continue; }
1693 # Check for guested configure.
1694 if test -f "$ac_srcdir/configure.gnu"; then
1695 echo &&
1696 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697 elif test -f "$ac_srcdir/configure"; then
1698 echo &&
1699 $SHELL "$ac_srcdir/configure" --help=recursive
1700 else
1701 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 fi || ac_status=$?
1703 cd "$ac_pwd" || { ac_status=$?; break; }
1704 done
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1709 cat <<\_ACEOF
1710 configure
1711 generated by GNU Autoconf 2.64
1713 Copyright (C) 2009 Free Software Foundation, Inc.
1714 This configure script is free software; the Free Software Foundation
1715 gives unlimited permission to copy, distribute and modify it.
1716 _ACEOF
1717 exit
1720 ## ------------------------ ##
1721 ## Autoconf initialization. ##
1722 ## ------------------------ ##
1724 # ac_fn_c_try_compile LINENO
1725 # --------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_compile ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=1
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 return $ac_retval
1760 } # ac_fn_c_try_compile
1762 # ac_fn_cxx_try_compile LINENO
1763 # ----------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_cxx_try_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_cxx_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793 ac_retval=1
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 return $ac_retval
1798 } # ac_fn_cxx_try_compile
1800 # ac_fn_cxx_try_link LINENO
1801 # -------------------------
1802 # Try to link conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_link ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext conftest$ac_exeext
1807 if { { ac_try="$ac_link"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_link") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest$ac_exeext && {
1826 test "$cross_compiling" = yes ||
1827 $as_test_x conftest$ac_exeext
1828 }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1834 ac_retval=1
1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838 # interfere with the next link command; also delete a directory that is
1839 # left behind by Apple's compiler. We do this before executing the actions.
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 return $ac_retval
1844 } # ac_fn_cxx_try_link
1846 # ac_fn_c_try_link LINENO
1847 # -----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_c_try_link ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 $as_test_x conftest$ac_exeext
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=1
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888 return $ac_retval
1890 } # ac_fn_c_try_link
1891 cat >config.log <<_ACEOF
1892 This file contains any messages produced by compilers while
1893 running configure, to aid debugging if configure makes a mistake.
1895 It was created by $as_me, which was
1896 generated by GNU Autoconf 2.64. Invocation command line was
1898 $ $0 $@
1900 _ACEOF
1901 exec 5>>config.log
1903 cat <<_ASUNAME
1904 ## --------- ##
1905 ## Platform. ##
1906 ## --------- ##
1908 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1914 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1915 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1917 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1918 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1919 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1920 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1921 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1922 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1923 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1925 _ASUNAME
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 $as_echo "PATH: $as_dir"
1933 done
1934 IFS=$as_save_IFS
1936 } >&5
1938 cat >&5 <<_ACEOF
1941 ## ----------- ##
1942 ## Core tests. ##
1943 ## ----------- ##
1945 _ACEOF
1948 # Keep a trace of the command line.
1949 # Strip out --no-create and --no-recursion so they do not pile up.
1950 # Strip out --silent because we don't want to record it for future runs.
1951 # Also quote any args containing shell meta-characters.
1952 # Make two passes to allow for proper duplicate-argument suppression.
1953 ac_configure_args=
1954 ac_configure_args0=
1955 ac_configure_args1=
1956 ac_must_keep_next=false
1957 for ac_pass in 1 2
1959 for ac_arg
1961 case $ac_arg in
1962 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1964 | -silent | --silent | --silen | --sile | --sil)
1965 continue ;;
1966 *\'*)
1967 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1968 esac
1969 case $ac_pass in
1970 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1972 as_fn_append ac_configure_args1 " '$ac_arg'"
1973 if test $ac_must_keep_next = true; then
1974 ac_must_keep_next=false # Got value, back to normal.
1975 else
1976 case $ac_arg in
1977 *=* | --config-cache | -C | -disable-* | --disable-* \
1978 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1979 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1980 | -with-* | --with-* | -without-* | --without-* | --x)
1981 case "$ac_configure_args0 " in
1982 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1983 esac
1985 -* ) ac_must_keep_next=true ;;
1986 esac
1988 as_fn_append ac_configure_args " '$ac_arg'"
1990 esac
1991 done
1992 done
1993 { ac_configure_args0=; unset ac_configure_args0;}
1994 { ac_configure_args1=; unset ac_configure_args1;}
1996 # When interrupted or exit'd, cleanup temporary files, and complete
1997 # config.log. We remove comments because anyway the quotes in there
1998 # would cause problems or look ugly.
1999 # WARNING: Use '\'' to represent an apostrophe within the trap.
2000 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2001 trap 'exit_status=$?
2002 # Save into config.log some information that might help in debugging.
2004 echo
2006 cat <<\_ASBOX
2007 ## ---------------- ##
2008 ## Cache variables. ##
2009 ## ---------------- ##
2010 _ASBOX
2011 echo
2012 # The following way of writing the cache mishandles newlines in values,
2014 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2015 eval ac_val=\$$ac_var
2016 case $ac_val in #(
2017 *${as_nl}*)
2018 case $ac_var in #(
2019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2020 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2021 esac
2022 case $ac_var in #(
2023 _ | IFS | as_nl) ;; #(
2024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2025 *) { eval $ac_var=; unset $ac_var;} ;;
2026 esac ;;
2027 esac
2028 done
2029 (set) 2>&1 |
2030 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2031 *${as_nl}ac_space=\ *)
2032 sed -n \
2033 "s/'\''/'\''\\\\'\'''\''/g;
2034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2035 ;; #(
2037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2039 esac |
2040 sort
2042 echo
2044 cat <<\_ASBOX
2045 ## ----------------- ##
2046 ## Output variables. ##
2047 ## ----------------- ##
2048 _ASBOX
2049 echo
2050 for ac_var in $ac_subst_vars
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
2060 if test -n "$ac_subst_files"; then
2061 cat <<\_ASBOX
2062 ## ------------------- ##
2063 ## File substitutions. ##
2064 ## ------------------- ##
2065 _ASBOX
2066 echo
2067 for ac_var in $ac_subst_files
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 $as_echo "$ac_var='\''$ac_val'\''"
2074 done | sort
2075 echo
2078 if test -s confdefs.h; then
2079 cat <<\_ASBOX
2080 ## ----------- ##
2081 ## confdefs.h. ##
2082 ## ----------- ##
2083 _ASBOX
2084 echo
2085 cat confdefs.h
2086 echo
2088 test "$ac_signal" != 0 &&
2089 $as_echo "$as_me: caught signal $ac_signal"
2090 $as_echo "$as_me: exit $exit_status"
2091 } >&5
2092 rm -f core *.core core.conftest.* &&
2093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2094 exit $exit_status
2096 for ac_signal in 1 2 13 15; do
2097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2098 done
2099 ac_signal=0
2101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2102 rm -f -r conftest* confdefs.h
2104 $as_echo "/* confdefs.h */" > confdefs.h
2106 # Predefined preprocessor variables.
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_NAME "$PACKAGE_NAME"
2110 _ACEOF
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114 _ACEOF
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2118 _ACEOF
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_STRING "$PACKAGE_STRING"
2122 _ACEOF
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126 _ACEOF
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_URL "$PACKAGE_URL"
2130 _ACEOF
2133 # Let the site file select an alternate cache file if it wants to.
2134 # Prefer an explicitly selected file to automatically selected ones.
2135 ac_site_file1=NONE
2136 ac_site_file2=NONE
2137 if test -n "$CONFIG_SITE"; then
2138 ac_site_file1=$CONFIG_SITE
2139 elif test "x$prefix" != xNONE; then
2140 ac_site_file1=$prefix/share/config.site
2141 ac_site_file2=$prefix/etc/config.site
2142 else
2143 ac_site_file1=$ac_default_prefix/share/config.site
2144 ac_site_file2=$ac_default_prefix/etc/config.site
2146 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2148 test "x$ac_site_file" = xNONE && continue
2149 if test -r "$ac_site_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2151 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2152 sed 's/^/| /' "$ac_site_file" >&5
2153 . "$ac_site_file"
2155 done
2157 if test -r "$cache_file"; then
2158 # Some versions of bash will fail to source /dev/null (special
2159 # files actually), so we avoid doing that.
2160 if test -f "$cache_file"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162 $as_echo "$as_me: loading cache $cache_file" >&6;}
2163 case $cache_file in
2164 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165 *) . "./$cache_file";;
2166 esac
2168 else
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170 $as_echo "$as_me: creating cache $cache_file" >&6;}
2171 >$cache_file
2174 # Check that the precious variables saved in the cache have kept the same
2175 # value.
2176 ac_cache_corrupted=false
2177 for ac_var in $ac_precious_vars; do
2178 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2179 eval ac_new_set=\$ac_env_${ac_var}_set
2180 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2181 eval ac_new_val=\$ac_env_${ac_var}_value
2182 case $ac_old_set,$ac_new_set in
2183 set,)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2186 ac_cache_corrupted=: ;;
2187 ,set)
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2189 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2190 ac_cache_corrupted=: ;;
2191 ,);;
2193 if test "x$ac_old_val" != "x$ac_new_val"; then
2194 # differences in whitespace do not lead to failure.
2195 ac_old_val_w=`echo x $ac_old_val`
2196 ac_new_val_w=`echo x $ac_new_val`
2197 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2199 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200 ac_cache_corrupted=:
2201 else
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2203 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2204 eval $ac_var=\$ac_old_val
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2207 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2209 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2210 fi;;
2211 esac
2212 # Pass precious variables to config.status.
2213 if test "$ac_new_set" = set; then
2214 case $ac_new_val in
2215 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2216 *) ac_arg=$ac_var=$ac_new_val ;;
2217 esac
2218 case " $ac_configure_args " in
2219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2220 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2221 esac
2223 done
2224 if $ac_cache_corrupted; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2228 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2229 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2231 ## -------------------- ##
2232 ## Main body of script. ##
2233 ## -------------------- ##
2235 ac_ext=c
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249 progname=$0
2250 # if PWD already has a value, it is probably wrong.
2251 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2253 # Export original configure arguments for use by sub-configures.
2254 # Quote arguments with shell meta charatcers.
2255 TOPLEVEL_CONFIGURE_ARGUMENTS=
2256 set -- "$progname" "$@"
2257 for ac_arg
2259 case "$ac_arg" in
2260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2262 # if the argument is of the form -foo=baz, quote the baz part only
2263 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2264 *) ;;
2265 esac
2266 # Add the quoted argument to the list.
2267 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2268 done
2269 if test "$silent" = yes; then
2270 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2272 # Remove the initial space we just introduced and, as these will be
2273 # expanded by make, quote '$'.
2274 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2277 # Find the build, host, and target systems.
2278 ac_aux_dir=
2279 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2280 for ac_t in install-sh install.sh shtool; do
2281 if test -f "$ac_dir/$ac_t"; then
2282 ac_aux_dir=$ac_dir
2283 ac_install_sh="$ac_aux_dir/$ac_t -c"
2284 break 2
2286 done
2287 done
2288 if test -z "$ac_aux_dir"; then
2289 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2292 # These three variables are undocumented and unsupported,
2293 # and are intended to be withdrawn in a future Autoconf release.
2294 # They can cause serious problems if a builder's source tree is in a directory
2295 # whose full name contains unusual characters.
2296 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2297 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2298 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2301 # Make sure we can run config.sub.
2302 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2303 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2306 $as_echo_n "checking build system type... " >&6; }
2307 if test "${ac_cv_build+set}" = set; then :
2308 $as_echo_n "(cached) " >&6
2309 else
2310 ac_build_alias=$build_alias
2311 test "x$ac_build_alias" = x &&
2312 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2313 test "x$ac_build_alias" = x &&
2314 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2315 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2316 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2320 $as_echo "$ac_cv_build" >&6; }
2321 case $ac_cv_build in
2322 *-*-*) ;;
2323 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2324 esac
2325 build=$ac_cv_build
2326 ac_save_IFS=$IFS; IFS='-'
2327 set x $ac_cv_build
2328 shift
2329 build_cpu=$1
2330 build_vendor=$2
2331 shift; shift
2332 # Remember, the first character of IFS is used to create $*,
2333 # except with old shells:
2334 build_os=$*
2335 IFS=$ac_save_IFS
2336 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2339 case ${build_alias} in
2340 "") build_noncanonical=${build} ;;
2341 *) build_noncanonical=${build_alias} ;;
2342 esac
2346 case ${host_alias} in
2347 "") host_noncanonical=${build_noncanonical} ;;
2348 *) host_noncanonical=${host_alias} ;;
2349 esac
2353 case ${target_alias} in
2354 "") target_noncanonical=${host_noncanonical} ;;
2355 *) target_noncanonical=${target_alias} ;;
2356 esac
2361 test "$host_noncanonical" = "$target_noncanonical" &&
2362 test "$program_prefix$program_suffix$program_transform_name" = \
2363 NONENONEs,x,x, &&
2364 program_transform_name=s,y,y,
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2367 $as_echo_n "checking host system type... " >&6; }
2368 if test "${ac_cv_host+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
2370 else
2371 if test "x$host_alias" = x; then
2372 ac_cv_host=$ac_cv_build
2373 else
2374 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2375 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2380 $as_echo "$ac_cv_host" >&6; }
2381 case $ac_cv_host in
2382 *-*-*) ;;
2383 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2384 esac
2385 host=$ac_cv_host
2386 ac_save_IFS=$IFS; IFS='-'
2387 set x $ac_cv_host
2388 shift
2389 host_cpu=$1
2390 host_vendor=$2
2391 shift; shift
2392 # Remember, the first character of IFS is used to create $*,
2393 # except with old shells:
2394 host_os=$*
2395 IFS=$ac_save_IFS
2396 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2400 $as_echo_n "checking target system type... " >&6; }
2401 if test "${ac_cv_target+set}" = set; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 if test "x$target_alias" = x; then
2405 ac_cv_target=$ac_cv_host
2406 else
2407 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2408 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2413 $as_echo "$ac_cv_target" >&6; }
2414 case $ac_cv_target in
2415 *-*-*) ;;
2416 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2417 esac
2418 target=$ac_cv_target
2419 ac_save_IFS=$IFS; IFS='-'
2420 set x $ac_cv_target
2421 shift
2422 target_cpu=$1
2423 target_vendor=$2
2424 shift; shift
2425 # Remember, the first character of IFS is used to create $*,
2426 # except with old shells:
2427 target_os=$*
2428 IFS=$ac_save_IFS
2429 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2432 # The aliases save the names the user supplied, while $host etc.
2433 # will get canonicalized.
2434 test -n "$target_alias" &&
2435 test "$program_prefix$program_suffix$program_transform_name" = \
2436 NONENONEs,x,x, &&
2437 program_prefix=${target_alias}-
2439 test "$program_prefix" != NONE &&
2440 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2441 # Use a double $ so make ignores it.
2442 test "$program_suffix" != NONE &&
2443 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2444 # Double any \ or $.
2445 # By default was `s,x,x', remove it if useless.
2446 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2447 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2451 # Get 'install' or 'install-sh' and its variants.
2452 # Find a good install program. We prefer a C program (faster),
2453 # so one script is as good as another. But avoid the broken or
2454 # incompatible versions:
2455 # SysV /etc/install, /usr/sbin/install
2456 # SunOS /usr/etc/install
2457 # IRIX /sbin/install
2458 # AIX /bin/install
2459 # AmigaOS /C/install, which installs bootblocks on floppy discs
2460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2463 # OS/2's system install, which has a completely different semantic
2464 # ./install, which can be erroneously created by make from ./install.sh.
2465 # Reject install programs that cannot install multiple files.
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2467 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2468 if test -z "$INSTALL"; then
2469 if test "${ac_cv_path_install+set}" = set; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 # Account for people who put trailing slashes in PATH elements.
2478 case $as_dir/ in #((
2479 ./ | .// | /[cC]/* | \
2480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2481 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2482 /usr/ucb/* ) ;;
2484 # OSF1 and SCO ODT 3.0 have their own names for install.
2485 # Don't use installbsd from OSF since it installs stuff as root
2486 # by default.
2487 for ac_prog in ginstall scoinst install; do
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2490 if test $ac_prog = install &&
2491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # AIX install. It has an incompatible calling convention.
2494 elif test $ac_prog = install &&
2495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496 # program-specific install script used by HP pwplus--don't use.
2498 else
2499 rm -rf conftest.one conftest.two conftest.dir
2500 echo one > conftest.one
2501 echo two > conftest.two
2502 mkdir conftest.dir
2503 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2504 test -s conftest.one && test -s conftest.two &&
2505 test -s conftest.dir/conftest.one &&
2506 test -s conftest.dir/conftest.two
2507 then
2508 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2509 break 3
2513 done
2514 done
2516 esac
2518 done
2519 IFS=$as_save_IFS
2521 rm -rf conftest.one conftest.two conftest.dir
2524 if test "${ac_cv_path_install+set}" = set; then
2525 INSTALL=$ac_cv_path_install
2526 else
2527 # As a last resort, use the slow shell script. Don't cache a
2528 # value for INSTALL within a source directory, because that will
2529 # break other packages using the cache if that directory is
2530 # removed, or if the value is a relative name.
2531 INSTALL=$ac_install_sh
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2535 $as_echo "$INSTALL" >&6; }
2537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2538 # It thinks the first close brace ends the variable substitution.
2539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2543 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2546 $as_echo_n "checking whether ln works... " >&6; }
2547 if test "${acx_cv_prog_LN+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 rm -f conftestdata_t
2551 echo >conftestdata_f
2552 if ln conftestdata_f conftestdata_t 2>/dev/null
2553 then
2554 acx_cv_prog_LN=ln
2555 else
2556 acx_cv_prog_LN=no
2558 rm -f conftestdata_f conftestdata_t
2561 if test $acx_cv_prog_LN = no; then
2562 LN="cp"
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2564 $as_echo "no, using $LN" >&6; }
2565 else
2566 LN="$acx_cv_prog_LN"
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568 $as_echo "yes" >&6; }
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2572 $as_echo_n "checking whether ln -s works... " >&6; }
2573 LN_S=$as_ln_s
2574 if test "$LN_S" = "ln -s"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576 $as_echo "yes" >&6; }
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2579 $as_echo "no, using $LN_S" >&6; }
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2583 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2584 if test "${ac_cv_path_SED+set}" = set; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2588 for ac_i in 1 2 3 4 5 6 7; do
2589 ac_script="$ac_script$as_nl$ac_script"
2590 done
2591 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2592 { ac_script=; unset ac_script;}
2593 if test -z "$SED"; then
2594 ac_path_SED_found=false
2595 # Loop through the user's path and test for each of PROGNAME-LIST
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_prog in sed gsed; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2604 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2605 # Check for GNU ac_path_SED and select it if it is found.
2606 # Check for GNU $ac_path_SED
2607 case `"$ac_path_SED" --version 2>&1` in
2608 *GNU*)
2609 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2611 ac_count=0
2612 $as_echo_n 0123456789 >"conftest.in"
2613 while :
2615 cat "conftest.in" "conftest.in" >"conftest.tmp"
2616 mv "conftest.tmp" "conftest.in"
2617 cp "conftest.in" "conftest.nl"
2618 $as_echo '' >> "conftest.nl"
2619 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2621 as_fn_arith $ac_count + 1 && ac_count=$as_val
2622 if test $ac_count -gt ${ac_path_SED_max-0}; then
2623 # Best one so far, save it but keep looking for a better one
2624 ac_cv_path_SED="$ac_path_SED"
2625 ac_path_SED_max=$ac_count
2627 # 10*(2^10) chars as input seems more than enough
2628 test $ac_count -gt 10 && break
2629 done
2630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2631 esac
2633 $ac_path_SED_found && break 3
2634 done
2635 done
2636 done
2637 IFS=$as_save_IFS
2638 if test -z "$ac_cv_path_SED"; then
2639 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2641 else
2642 ac_cv_path_SED=$SED
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2647 $as_echo "$ac_cv_path_SED" >&6; }
2648 SED="$ac_cv_path_SED"
2649 rm -f conftest.sed
2651 for ac_prog in gawk mawk nawk awk
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_prog_AWK+set}" = set; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$AWK"; then
2661 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_AWK="$ac_prog"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2674 done
2675 done
2676 IFS=$as_save_IFS
2680 AWK=$ac_cv_prog_AWK
2681 if test -n "$AWK"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2683 $as_echo "$AWK" >&6; }
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2690 test -n "$AWK" && break
2691 done
2694 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2696 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2697 # a relative path.
2698 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2699 INSTALL="${srcpwd}/install-sh -c"
2702 # Set srcdir to "." if that's what it is.
2703 # This is important for multilib support.
2704 pwd=`${PWDCMD-pwd}`
2705 if test "${pwd}" = "${srcpwd}" ; then
2706 srcdir=.
2709 topsrcdir=$srcpwd
2711 extra_host_args=
2713 ### To add a new directory to the tree, first choose whether it is a target
2714 ### or a host dependent tool. Then put it into the appropriate list
2715 ### (library or tools, host or target), doing a dependency sort.
2717 # Subdirs will be configured in the order listed in build_configdirs,
2718 # configdirs, or target_configdirs; see the serialization section below.
2720 # Dependency sorting is only needed when *configuration* must be done in
2721 # a particular order. In all cases a dependency should be specified in
2722 # the Makefile, whether or not it's implicitly specified here.
2724 # Double entries in build_configdirs, configdirs, or target_configdirs may
2725 # cause circular dependencies and break everything horribly.
2727 # these library is used by various programs built for the build
2728 # environment
2730 build_libs="build-libiberty build-libcpp"
2732 # these tools are built for the build environment
2733 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2735 # these libraries are used by various programs built for the host environment
2737 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2739 # these tools are built for the host environment
2740 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2741 # know that we are building the simulator.
2742 # binutils, gas and ld appear in that order because it makes sense to run
2743 # "make check" in that particular order.
2744 # If --enable-gold is used, "gold" may replace "ld".
2745 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2747 # these libraries are built for the target environment, and are built after
2748 # the host libraries and the host tools (which may be a cross compiler)
2749 # Note that libiberty is not a target library.
2750 target_libraries="target-libgcc \
2751 target-libbacktrace \
2752 target-libgloss \
2753 target-newlib \
2754 target-libgomp \
2755 target-libcilkrts \
2756 target-liboffloadmic \
2757 target-libhsail-rt \
2758 target-libatomic \
2759 target-libitm \
2760 target-libstdc++-v3 \
2761 target-libsanitizer \
2762 target-libvtv \
2763 target-libmpx \
2764 target-libssp \
2765 target-libquadmath \
2766 target-libgfortran \
2767 target-libffi \
2768 target-libobjc \
2769 target-libada \
2770 target-libgo"
2772 # these tools are built using the target libraries, and are intended to
2773 # run only in the target environment
2775 # note: any program that *uses* libraries that are in the "target_libraries"
2776 # list belongs in this list.
2778 target_tools="target-rda"
2780 ################################################################################
2782 ## All tools belong in one of the four categories, and are assigned above
2783 ## We assign ${configdirs} this way to remove all embedded newlines. This
2784 ## is important because configure will choke if they ever get through.
2785 ## ${configdirs} is directories we build using the host tools.
2786 ## ${target_configdirs} is directories we build using the target tools.
2787 configdirs=`echo ${host_libs} ${host_tools}`
2788 target_configdirs=`echo ${target_libraries} ${target_tools}`
2789 build_configdirs=`echo ${build_libs} ${build_tools}`
2793 ################################################################################
2795 srcname="gnu development package"
2797 # This gets set non-empty for some net releases of packages.
2798 appdirs=""
2800 # Define is_cross_compiler to save on calls to 'test'.
2801 is_cross_compiler=
2802 if test x"${host}" = x"${target}" ; then
2803 is_cross_compiler=no
2804 else
2805 is_cross_compiler=yes
2808 # Find the build and target subdir names.
2810 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2811 # have matching libraries, they should use host libraries: Makefile.tpl
2812 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2813 # However, they still use the build modules, because the corresponding
2814 # host modules (e.g. bison) are only built for the host when bootstrap
2815 # finishes. So:
2816 # - build_subdir is where we find build modules, and never changes.
2817 # - build_libsubdir is where we find build libraries, and can be overridden.
2819 # Prefix 'build-' so this never conflicts with target_subdir.
2820 build_subdir="build-${build_noncanonical}"
2822 # Check whether --with-build-libsubdir was given.
2823 if test "${with_build_libsubdir+set}" = set; then :
2824 withval=$with_build_libsubdir; build_libsubdir="$withval"
2825 else
2826 build_libsubdir="$build_subdir"
2829 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2830 if ( test $srcdir = . && test -d gcc ) \
2831 || test -d $srcdir/../host-${host_noncanonical}; then
2832 host_subdir="host-${host_noncanonical}"
2833 else
2834 host_subdir=.
2836 # No prefix.
2837 target_subdir=${target_noncanonical}
2839 # Be sure to cover against remnants of an in-tree build.
2840 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2841 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2842 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2845 # Skipdirs are removed silently.
2846 skipdirs=
2847 # Noconfigdirs are removed loudly.
2848 noconfigdirs=""
2850 use_gnu_ld=
2851 # Make sure we don't let GNU ld be added if we didn't want it.
2852 if test x$with_gnu_ld = xno ; then
2853 use_gnu_ld=no
2854 noconfigdirs="$noconfigdirs ld gold"
2857 use_gnu_as=
2858 # Make sure we don't let GNU as be added if we didn't want it.
2859 if test x$with_gnu_as = xno ; then
2860 use_gnu_as=no
2861 noconfigdirs="$noconfigdirs gas"
2864 use_included_zlib=
2866 # Check whether --with-system-zlib was given.
2867 if test "${with_system_zlib+set}" = set; then :
2868 withval=$with_system_zlib;
2871 # Make sure we don't let ZLIB be added if we didn't want it.
2872 if test x$with_system_zlib = xyes ; then
2873 use_included_zlib=no
2874 noconfigdirs="$noconfigdirs zlib"
2877 # some tools are so dependent upon X11 that if we're not building with X,
2878 # it's not even worth trying to configure, much less build, that tool.
2880 case ${with_x} in
2881 yes | "") ;; # the default value for this tree is that X11 is available
2883 skipdirs="${skipdirs} tk itcl libgui"
2884 # We won't be able to build gdbtk without X.
2885 enable_gdbtk=no
2887 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2888 esac
2890 # Some are only suitable for cross toolchains.
2891 # Remove these if host=target.
2892 cross_only="target-libgloss target-newlib target-opcodes"
2894 case $is_cross_compiler in
2895 no) skipdirs="${skipdirs} ${cross_only}" ;;
2896 esac
2898 # If both --with-headers and --with-libs are specified, default to
2899 # --without-newlib.
2900 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2901 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2902 if test x"${with_newlib}" = x ; then
2903 with_newlib=no
2907 # Recognize --with-newlib/--without-newlib.
2908 case ${with_newlib} in
2909 no) skipdirs="${skipdirs} target-newlib" ;;
2910 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2911 esac
2913 # Check whether --enable-as-accelerator-for was given.
2914 if test "${enable_as_accelerator_for+set}" = set; then :
2915 enableval=$enable_as_accelerator_for;
2919 # Check whether --enable-offload-targets was given.
2920 if test "${enable_offload_targets+set}" = set; then :
2921 enableval=$enable_offload_targets;
2922 if test x"$enable_offload_targets" = x; then
2923 as_fn_error "no offload targets specified" "$LINENO" 5
2926 else
2927 enable_offload_targets=
2931 # Handle --enable-gold, --enable-ld.
2932 # --disable-gold [--enable-ld]
2933 # Build only ld. Default option.
2934 # --enable-gold [--enable-ld]
2935 # Build both gold and ld. Install gold as "ld.gold", install ld
2936 # as "ld.bfd" and "ld".
2937 # --enable-gold=default [--enable-ld]
2938 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2939 # install ld as "ld.bfd".
2940 # --enable-gold[=default] --disable-ld
2941 # Build only gold, which is then installed as both "ld.gold" and "ld".
2942 # --enable-gold --enable-ld=default
2943 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2944 # and ld.bfd).
2945 # In other words, ld is default
2946 # --enable-gold=default --enable-ld=default
2947 # Error.
2949 default_ld=
2950 # Check whether --enable-gold was given.
2951 if test "${enable_gold+set}" = set; then :
2952 enableval=$enable_gold; ENABLE_GOLD=$enableval
2953 else
2954 ENABLE_GOLD=no
2957 case "${ENABLE_GOLD}" in
2958 yes|default)
2959 # Check for ELF target.
2960 is_elf=no
2961 case "${target}" in
2962 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2963 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2964 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2965 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2966 case "${target}" in
2967 *-*-linux*aout* | *-*-linux*oldld*)
2970 is_elf=yes
2972 esac
2973 esac
2975 if test "$is_elf" = "yes"; then
2976 # Check for target supported by gold.
2977 case "${target}" in
2978 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2979 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2980 configdirs="$configdirs gold"
2981 if test x${ENABLE_GOLD} = xdefault; then
2982 default_ld=gold
2984 ENABLE_GOLD=yes
2986 esac
2992 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2994 esac
2996 # Check whether --enable-ld was given.
2997 if test "${enable_ld+set}" = set; then :
2998 enableval=$enable_ld; ENABLE_LD=$enableval
2999 else
3000 ENABLE_LD=yes
3004 case "${ENABLE_LD}" in
3005 default)
3006 if test x${default_ld} != x; then
3007 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3010 yes)
3013 if test x${ENABLE_GOLD} != xyes; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3015 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3017 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3020 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3022 esac
3024 # PR gas/19109
3025 # Decide the default method for compressing debug sections.
3026 # Provide a configure time option to override our default.
3027 # Check whether --enable-compressed_debug_sections was given.
3028 if test "${enable_compressed_debug_sections+set}" = set; then :
3029 enableval=$enable_compressed_debug_sections;
3030 if test x"$enable_compressed_debug_sections" = xyes; then
3031 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3034 else
3035 enable_compressed_debug_sections=
3039 # Configure extra directories which are host specific
3041 case "${host}" in
3042 *-cygwin*)
3043 configdirs="$configdirs libtermcap" ;;
3044 esac
3046 # A target can indicate whether a language isn't supported for some reason.
3047 # Only spaces may be used in this macro; not newlines or tabs.
3048 unsupported_languages=
3050 # Remove more programs from consideration, based on the host or
3051 # target this usually means that a port of the program doesn't
3052 # exist yet.
3054 case "${host}" in
3055 i[3456789]86-*-msdosdjgpp*)
3056 noconfigdirs="$noconfigdirs tcl tk itcl"
3058 esac
3061 # Check whether --enable-libquadmath was given.
3062 if test "${enable_libquadmath+set}" = set; then :
3063 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3064 else
3065 ENABLE_LIBQUADMATH=yes
3068 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3069 noconfigdirs="$noconfigdirs target-libquadmath"
3073 # Check whether --enable-libquadmath-support was given.
3074 if test "${enable_libquadmath_support+set}" = set; then :
3075 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3076 else
3077 ENABLE_LIBQUADMATH_SUPPORT=yes
3080 enable_libquadmath_support=
3081 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3082 enable_libquadmath_support=no
3086 # Check whether --enable-libada was given.
3087 if test "${enable_libada+set}" = set; then :
3088 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3089 else
3090 ENABLE_LIBADA=yes
3093 if test "${ENABLE_LIBADA}" != "yes" ; then
3094 noconfigdirs="$noconfigdirs gnattools"
3097 # Check whether --enable-libssp was given.
3098 if test "${enable_libssp+set}" = set; then :
3099 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3100 else
3101 ENABLE_LIBSSP=yes
3105 # Check whether --enable-libstdcxx was given.
3106 if test "${enable_libstdcxx+set}" = set; then :
3107 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3108 else
3109 ENABLE_LIBSTDCXX=default
3112 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3113 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3116 # If this is accelerator compiler and its target is intelmic we enable
3117 # target liboffloadmic by default. If this is compiler with offloading
3118 # for intelmic we enable host liboffloadmic by default. Otherwise
3119 # liboffloadmic is disabled by default.
3120 # Check whether --enable-liboffloadmic was given.
3121 if test "${enable_liboffloadmic+set}" = set; then :
3122 enableval=$enable_liboffloadmic; case "$enableval" in
3123 no | host | target)
3124 enable_liboffloadmic=$enableval ;;
3126 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3127 esac
3128 else
3129 if test x"$enable_as_accelerator_for" != x; then
3130 case "${target}" in
3131 *-intelmic-* | *-intelmicemul-*)
3132 enable_liboffloadmic=target
3133 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3136 enable_liboffloadmic=no
3138 esac
3139 else
3140 case "${enable_offload_targets}" in
3141 *-intelmic-* | *-intelmicemul-*)
3142 enable_liboffloadmic=host
3143 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3146 enable_liboffloadmic=no
3148 esac
3154 # Enable libgomp by default on hosted POSIX systems, and a few others.
3155 if test x$enable_libgomp = x ; then
3156 case "${target}" in
3157 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3159 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3161 *-*-solaris2* | *-*-hpux11*)
3163 *-*-darwin* | *-*-aix*)
3165 nvptx*-*-*)
3168 noconfigdirs="$noconfigdirs target-libgomp"
3170 esac
3173 # Disable libatomic on unsupported systems.
3174 if test -d ${srcdir}/libatomic; then
3175 if test x$enable_libatomic = x; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3177 $as_echo_n "checking for libatomic support... " >&6; }
3178 if (srcdir=${srcdir}/libatomic; \
3179 . ${srcdir}/configure.tgt; \
3180 test -n "$UNSUPPORTED")
3181 then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 noconfigdirs="$noconfigdirs target-libatomic"
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187 $as_echo "yes" >&6; }
3192 # Disable libcilkrts on unsupported systems.
3193 if test -d ${srcdir}/libcilkrts; then
3194 if test x$enable_libcilkrts = x; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3196 $as_echo_n "checking for libcilkrts support... " >&6; }
3197 if (srcdir=${srcdir}/libcilkrts; \
3198 . ${srcdir}/configure.tgt; \
3199 test -n "$UNSUPPORTED")
3200 then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 noconfigdirs="$noconfigdirs target-libcilkrts"
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3206 $as_echo "yes" >&6; }
3211 # Disable liboffloadmic on unsupported systems.
3212 if test -d ${srcdir}/liboffloadmic; then
3213 if test x$enable_liboffloadmic != xno; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3215 $as_echo_n "checking for liboffloadmic support... " >&6; }
3216 if (srcdir=${srcdir}/liboffloadmic; \
3217 . ${srcdir}/configure.tgt; \
3218 test -n "$UNSUPPORTED")
3219 then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222 noconfigdirs="$noconfigdirs target-liboffloadmic"
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3225 $as_echo "yes" >&6; }
3230 # Disable libitm on unsupported systems.
3231 if test -d ${srcdir}/libitm; then
3232 if test x$enable_libitm = x; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3234 $as_echo_n "checking for libitm support... " >&6; }
3235 if (srcdir=${srcdir}/libitm; \
3236 . ${srcdir}/configure.tgt; \
3237 test -n "$UNSUPPORTED")
3238 then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 noconfigdirs="$noconfigdirs target-libitm"
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3244 $as_echo "yes" >&6; }
3249 # Disable libsanitizer on unsupported systems.
3250 if test -d ${srcdir}/libsanitizer; then
3251 if test x$enable_libsanitizer = x; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3253 $as_echo_n "checking for libsanitizer support... " >&6; }
3254 if (srcdir=${srcdir}/libsanitizer; \
3255 . ${srcdir}/configure.tgt; \
3256 test -n "$UNSUPPORTED")
3257 then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260 noconfigdirs="$noconfigdirs target-libsanitizer"
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263 $as_echo "yes" >&6; }
3268 # Disable libvtv on unsupported systems.
3269 if test -d ${srcdir}/libvtv; then
3270 if test x$enable_libvtv = x; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3272 $as_echo_n "checking for libvtv support... " >&6; }
3273 if (srcdir=${srcdir}/libvtv; \
3274 . ${srcdir}/configure.tgt; \
3275 test "$VTV_SUPPORTED" != "yes")
3276 then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 noconfigdirs="$noconfigdirs target-libvtv"
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3288 # Enable libmpx on supported systems by request.
3289 if test -d ${srcdir}/libmpx; then
3290 if test x$enable_libmpx = x; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3292 $as_echo_n "checking for libmpx support... " >&6; }
3293 if (srcdir=${srcdir}/libmpx; \
3294 . ${srcdir}/configure.tgt; \
3295 test "$LIBMPX_SUPPORTED" != "yes")
3296 then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 noconfigdirs="$noconfigdirs target-libmpx"
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302 $as_echo "yes" >&6; }
3309 # Disable libquadmath for some systems.
3310 case "${target}" in
3311 avr-*-*)
3312 noconfigdirs="$noconfigdirs target-libquadmath"
3314 # libquadmath is unused on AIX and libquadmath build process use of
3315 # LD_LIBRARY_PATH can break AIX bootstrap.
3316 powerpc-*-aix* | rs6000-*-aix*)
3317 noconfigdirs="$noconfigdirs target-libquadmath"
3319 esac
3321 # Disable libssp for some systems.
3322 case "${target}" in
3323 avr-*-*)
3324 # No hosted I/O support.
3325 noconfigdirs="$noconfigdirs target-libssp"
3327 powerpc-*-aix* | rs6000-*-aix*)
3328 noconfigdirs="$noconfigdirs target-libssp"
3330 rl78-*-*)
3331 # libssp uses a misaligned load to trigger a fault, but the RL78
3332 # doesn't fault for those - instead, it gives a build-time error
3333 # for explicit misaligned loads.
3334 noconfigdirs="$noconfigdirs target-libssp"
3336 visium-*-*)
3337 # No hosted I/O support.
3338 noconfigdirs="$noconfigdirs target-libssp"
3340 esac
3342 # Disable libstdc++-v3 for some systems.
3343 # Allow user to override this if they pass --enable-libstdc++-v3
3344 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3345 case "${target}" in
3346 *-*-vxworks*)
3347 # VxWorks uses the Dinkumware C++ library.
3348 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3350 arm*-wince-pe*)
3351 # the C++ libraries don't build on top of CE's C libraries
3352 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3354 avr-*-*)
3355 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3357 ft32-*-*)
3358 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3360 esac
3363 # Disable Fortran for some systems.
3364 case "${target}" in
3365 mmix-*-*)
3366 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3367 unsupported_languages="$unsupported_languages fortran"
3369 esac
3371 # Disable libffi for some systems.
3372 case "${target}" in
3373 powerpc-*-darwin*)
3375 i[3456789]86-*-darwin*)
3377 x86_64-*-darwin[912]*)
3379 *-*-darwin*)
3380 noconfigdirs="$noconfigdirs target-libffi"
3382 *-*-netware*)
3383 noconfigdirs="$noconfigdirs target-libffi"
3385 *-*-phoenix*)
3386 noconfigdirs="$noconfigdirs target-libffi"
3388 *-*-rtems*)
3389 noconfigdirs="$noconfigdirs target-libffi"
3391 *-*-tpf*)
3392 noconfigdirs="$noconfigdirs target-libffi"
3394 *-*-uclinux*)
3395 noconfigdirs="$noconfigdirs target-libffi"
3397 *-*-vxworks*)
3398 noconfigdirs="$noconfigdirs target-libffi"
3400 aarch64*-*-freebsd*)
3401 noconfigdirs="$noconfigdirs target-libffi"
3403 alpha*-*-*vms*)
3404 noconfigdirs="$noconfigdirs target-libffi"
3406 arm*-*-freebsd*)
3407 noconfigdirs="$noconfigdirs target-libffi"
3409 arm-wince-pe)
3410 noconfigdirs="$noconfigdirs target-libffi"
3412 arm*-*-symbianelf*)
3413 noconfigdirs="$noconfigdirs target-libffi"
3415 cris-*-* | crisv32-*-*)
3416 case "${target}" in
3417 *-*-linux*)
3419 *) # See PR46792 regarding target-libffi.
3420 noconfigdirs="$noconfigdirs target-libffi";;
3421 esac
3423 hppa*64*-*-hpux*)
3424 noconfigdirs="$noconfigdirs target-libffi"
3426 hppa*-hp-hpux11*)
3428 hppa*-*-hpux*)
3429 noconfigdirs="$noconfigdirs target-libffi"
3431 ia64*-*-*vms*)
3432 noconfigdirs="$noconfigdirs target-libffi"
3434 i[3456789]86-w64-mingw*)
3435 noconfigdirs="$noconfigdirs target-libffi"
3437 i[3456789]86-*-mingw*)
3438 noconfigdirs="$noconfigdirs target-libffi"
3440 x86_64-*-mingw*)
3441 noconfigdirs="$noconfigdirs target-libffi"
3443 mmix-*-*)
3444 noconfigdirs="$noconfigdirs target-libffi"
3446 powerpc-*-aix*)
3447 # copied from rs6000-*-* entry
3448 noconfigdirs="$noconfigdirs target-libffi"
3450 rs6000-*-aix*)
3451 noconfigdirs="$noconfigdirs target-libffi"
3453 ft32-*-*)
3454 noconfigdirs="$noconfigdirs target-libffi"
3456 *-*-lynxos*)
3457 noconfigdirs="$noconfigdirs target-libffi"
3459 esac
3461 # Disable the go frontend on systems where it is known to not work. Please keep
3462 # this in sync with contrib/config-list.mk.
3463 case "${target}" in
3464 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3465 unsupported_languages="$unsupported_languages go"
3467 esac
3469 # Disable libgo for some systems where it is known to not work.
3470 # For testing, you can easily override this with --enable-libgo.
3471 if test x$enable_libgo = x; then
3472 case "${target}" in
3473 *-*-darwin*)
3474 # PR 46986
3475 noconfigdirs="$noconfigdirs target-libgo"
3477 *-*-cygwin* | *-*-mingw*)
3478 noconfigdirs="$noconfigdirs target-libgo"
3480 *-*-aix*)
3481 noconfigdirs="$noconfigdirs target-libgo"
3483 esac
3486 # Disable the BRIG frontend and libhsail-rt on untested or known
3487 # broken systems. Currently it has been tested only on x86_64 Linux
3488 # of the upstream gcc targets. More targets shall be added after testing.
3489 case "${target}" in
3490 x86_64-*-linux*)
3493 unsupported_languages="$unsupported_languages brig"
3494 # This implicitly disables also target-libhsail-rt as it won't
3495 # get added to the build without BRIG FE.
3497 esac
3499 # Default libgloss CPU subdirectory.
3500 libgloss_dir="$target_cpu"
3502 case "${target}" in
3503 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3504 libgloss_dir=wince
3506 aarch64*-*-* )
3507 libgloss_dir=aarch64
3509 arm*-*-*)
3510 libgloss_dir=arm
3512 cris-*-* | crisv32-*-*)
3513 libgloss_dir=cris
3515 hppa*-*-*)
3516 libgloss_dir=pa
3518 i[3456789]86-*-*)
3519 libgloss_dir=i386
3521 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3522 libgloss_dir=m68hc11
3524 m68*-*-* | fido-*-*)
3525 libgloss_dir=m68k
3527 mips*-*-*)
3528 libgloss_dir=mips
3530 powerpc*-*-*)
3531 libgloss_dir=rs6000
3533 sparc*-*-*)
3534 libgloss_dir=sparc
3536 esac
3538 # Disable newlib and libgloss for various target OSes.
3539 case "${target}" in
3540 alpha*-dec-osf*)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3543 i[3456789]86-*-linux*)
3544 # This section makes it possible to build newlib natively on linux.
3545 # If we are using a cross compiler then don't configure newlib.
3546 if test x${is_cross_compiler} != xno ; then
3547 noconfigdirs="$noconfigdirs target-newlib"
3549 noconfigdirs="$noconfigdirs target-libgloss"
3550 # If we are not using a cross compiler, do configure newlib.
3551 # Note however, that newlib will only be configured in this situation
3552 # if the --with-newlib option has been given, because otherwise
3553 # 'target-newlib' will appear in skipdirs.
3555 i[3456789]86-*-rdos*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3558 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3561 sparc-*-sunos4*)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3564 *-*-aix*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3567 *-*-beos*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3570 *-*-chorusos)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3573 *-*-dragonfly*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3576 *-*-freebsd*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3579 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3582 *-*-lynxos*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3585 *-*-mingw*)
3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3588 *-*-netbsd*)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3591 *-*-netware*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3594 *-*-tpf*)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3597 *-*-uclinux*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3600 *-*-vxworks*)
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3603 esac
3605 case "${target}" in
3606 *-*-chorusos)
3608 aarch64-*-darwin*)
3609 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3610 noconfigdirs="$noconfigdirs sim target-rda"
3612 arm-*-darwin*)
3613 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3614 noconfigdirs="$noconfigdirs sim target-rda"
3616 powerpc-*-darwin*)
3617 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3618 noconfigdirs="$noconfigdirs sim target-rda"
3620 i[3456789]86-*-darwin*)
3621 noconfigdirs="$noconfigdirs ld gprof"
3622 noconfigdirs="$noconfigdirs sim target-rda"
3624 x86_64-*-darwin[912]*)
3625 noconfigdirs="$noconfigdirs ld gas gprof"
3626 noconfigdirs="$noconfigdirs sim target-rda"
3628 *-*-darwin*)
3629 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3630 noconfigdirs="$noconfigdirs sim target-rda"
3632 *-*-dragonfly*)
3634 *-*-freebsd*)
3635 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3636 && test -f /usr/local/include/gmp.h; then
3637 with_gmp=/usr/local
3640 *-*-kaos*)
3641 # Remove unsupported stuff on all kaOS configurations.
3642 noconfigdirs="$noconfigdirs target-libgloss"
3644 *-*-netbsd*)
3646 *-*-netware*)
3648 *-*-phoenix*)
3649 noconfigdirs="$noconfigdirs target-libgloss"
3651 *-*-rtems*)
3652 noconfigdirs="$noconfigdirs target-libgloss"
3653 # this is not caught below because this stanza matches earlier
3654 case $target in
3655 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3656 esac
3658 # The tpf target doesn't support gdb yet.
3659 *-*-tpf*)
3660 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3662 *-*-uclinux*)
3663 noconfigdirs="$noconfigdirs target-rda"
3665 *-*-vxworks*)
3667 alpha*-dec-osf*)
3668 # ld works, but does not support shared libraries.
3669 # gas doesn't generate exception information.
3670 noconfigdirs="$noconfigdirs gas ld"
3672 alpha*-*-*vms*)
3673 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3675 alpha*-*-*)
3676 # newlib is not 64 bit ready
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3680 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3682 arc*-*-*)
3683 noconfigdirs="$noconfigdirs sim"
3685 arm-*-pe*)
3686 noconfigdirs="$noconfigdirs target-libgloss"
3688 arm-*-riscix*)
3689 noconfigdirs="$noconfigdirs ld target-libgloss"
3691 avr-*-*)
3692 if test x${with_avrlibc} != xno; then
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696 c4x-*-* | tic4x-*-*)
3697 noconfigdirs="$noconfigdirs target-libgloss"
3699 tic54x-*-*)
3700 noconfigdirs="$noconfigdirs target-libgloss gdb"
3702 d10v-*-*)
3703 noconfigdirs="$noconfigdirs target-libgloss"
3705 d30v-*-*)
3706 noconfigdirs="$noconfigdirs gdb"
3708 fr30-*-elf*)
3709 noconfigdirs="$noconfigdirs gdb"
3711 ft32-*-*)
3712 noconfigdirs="$noconfigdirs target-rda gprof"
3714 moxie-*-*)
3715 noconfigdirs="$noconfigdirs"
3717 h8300*-*-*)
3718 noconfigdirs="$noconfigdirs target-libgloss"
3720 h8500-*-*)
3721 noconfigdirs="$noconfigdirs target-libgloss"
3723 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3725 hppa*64*-*-hpux*)
3726 noconfigdirs="$noconfigdirs gdb"
3728 hppa*-*-hpux11*)
3729 noconfigdirs="$noconfigdirs gdb ld"
3731 hppa*64*-*-linux*)
3733 hppa*-*-linux*)
3735 hppa*-*-*elf* | \
3736 hppa*-*-lites* | \
3737 hppa*-*-openbsd* | \
3738 hppa*64*-*-*)
3740 hppa*-*-pro*)
3742 hppa*-*-*)
3743 noconfigdirs="$noconfigdirs ld"
3745 i960-*-*)
3746 noconfigdirs="$noconfigdirs gdb"
3748 ia64*-*-elf*)
3749 # No gdb support yet.
3750 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3752 ia64*-**-hpux*)
3753 # No ld support yet.
3754 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3756 ia64*-*-*vms*)
3757 # No ld support yet.
3758 noconfigdirs="$noconfigdirs libgui itcl ld"
3760 i[3456789]86-w64-mingw*)
3762 i[3456789]86-*-mingw*)
3763 target_configdirs="$target_configdirs target-winsup"
3765 *-*-cygwin*)
3766 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3767 noconfigdirs="$noconfigdirs target-libgloss"
3768 # always build newlib if winsup directory is present.
3769 if test -d "$srcdir/winsup/cygwin"; then
3770 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3771 elif test -d "$srcdir/newlib"; then
3772 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3775 i[3456789]86-*-pe)
3776 noconfigdirs="$noconfigdirs target-libgloss"
3778 i[3456789]86-*-sco3.2v5*)
3779 # The linker does not yet know about weak symbols in COFF,
3780 # and is not configured to handle mixed ELF and COFF.
3781 noconfigdirs="$noconfigdirs ld target-libgloss"
3783 i[3456789]86-*-sco*)
3784 noconfigdirs="$noconfigdirs gprof target-libgloss"
3786 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3787 noconfigdirs="$noconfigdirs target-libgloss"
3789 i[3456789]86-*-sysv4*)
3790 noconfigdirs="$noconfigdirs target-libgloss"
3792 i[3456789]86-*-beos*)
3793 noconfigdirs="$noconfigdirs gdb"
3795 i[3456789]86-*-rdos*)
3796 noconfigdirs="$noconfigdirs gdb"
3798 mmix-*-*)
3799 noconfigdirs="$noconfigdirs gdb"
3801 mt-*-*)
3802 noconfigdirs="$noconfigdirs sim"
3804 powerpc-*-aix*)
3805 # copied from rs6000-*-* entry
3806 noconfigdirs="$noconfigdirs gprof"
3808 powerpc*-*-winnt* | powerpc*-*-pe*)
3809 target_configdirs="$target_configdirs target-winsup"
3810 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3811 # always build newlib.
3812 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3814 # This is temporary until we can link against shared libraries
3815 powerpcle-*-solaris*)
3816 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3818 powerpc-*-beos*)
3819 noconfigdirs="$noconfigdirs gdb"
3821 rs6000-*-lynxos*)
3822 noconfigdirs="$noconfigdirs gprof"
3824 rs6000-*-aix*)
3825 noconfigdirs="$noconfigdirs gprof"
3827 rs6000-*-*)
3828 noconfigdirs="$noconfigdirs gprof"
3830 m68k-apollo-*)
3831 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3833 microblaze*)
3834 noconfigdirs="$noconfigdirs gprof"
3836 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3837 if test x$with_newlib = xyes; then
3838 noconfigdirs="$noconfigdirs gprof"
3841 mips*-*-irix5*)
3842 noconfigdirs="$noconfigdirs gprof target-libgloss"
3844 mips*-*-irix6*)
3845 noconfigdirs="$noconfigdirs gprof target-libgloss"
3847 mips*-*-bsd*)
3848 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3850 mips*-*-linux*)
3852 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3853 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3854 noconfigdirs="$noconfigdirs ld gas gprof"
3856 mips*-*-*)
3857 noconfigdirs="$noconfigdirs gprof"
3859 nvptx*-*-*)
3860 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3862 or1k*-*-*)
3863 noconfigdirs="$noconfigdirs gdb"
3865 sh-*-*)
3866 case "${target}" in
3867 sh*-*-elf)
3870 noconfigdirs="$noconfigdirs target-libgloss" ;;
3871 esac
3873 sparc-*-sunos4*)
3874 if test x${is_cross_compiler} = xno ; then
3875 use_gnu_ld=no
3878 tic6x-*-*)
3879 noconfigdirs="$noconfigdirs sim"
3881 tilepro*-*-* | tilegx*-*-*)
3882 noconfigdirs="$noconfigdirs sim"
3884 v810-*-*)
3885 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3887 vax-*-*)
3888 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3890 esac
3892 # If we aren't building newlib, then don't build libgloss, since libgloss
3893 # depends upon some newlib header files.
3894 case "${noconfigdirs}" in
3895 *target-libgloss*) ;;
3896 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3897 esac
3899 # Work in distributions that contain no compiler tools, like Autoconf.
3900 host_makefile_frag=/dev/null
3901 if test -d ${srcdir}/config ; then
3902 case "${host}" in
3903 i[3456789]86-*-msdosdjgpp*)
3904 host_makefile_frag="config/mh-djgpp"
3906 *-cygwin*)
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3909 $as_echo_n "checking to see if cat works as expected... " >&6; }
3910 echo a >cygwin-cat-check
3911 if test `cat cygwin-cat-check` = a ; then
3912 rm cygwin-cat-check
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3914 $as_echo "yes" >&6; }
3915 else
3916 rm cygwin-cat-check
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3919 as_fn_error "The cat command does not ignore carriage return characters.
3920 Please either mount the build directory in binary mode or run the following
3921 commands before running any configure script:
3922 set -o igncr
3923 export SHELLOPTS
3924 " "$LINENO" 5
3927 host_makefile_frag="config/mh-cygwin"
3929 *-mingw*)
3930 host_makefile_frag="config/mh-mingw"
3932 alpha*-linux*)
3933 host_makefile_frag="config/mh-alpha-linux"
3935 hppa*-hp-hpux10*)
3936 host_makefile_frag="config/mh-pa-hpux10"
3938 hppa*-hp-hpux*)
3939 host_makefile_frag="config/mh-pa"
3941 hppa*-*)
3942 host_makefile_frag="config/mh-pa"
3944 *-*-darwin*)
3945 host_makefile_frag="config/mh-darwin"
3947 powerpc-*-aix*)
3948 host_makefile_frag="config/mh-ppc-aix"
3950 rs6000-*-aix*)
3951 host_makefile_frag="config/mh-ppc-aix"
3953 esac
3956 if test "${build}" != "${host}" ; then
3957 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3958 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3959 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3960 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3961 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3962 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3963 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3964 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3965 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3966 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3967 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3968 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3969 else
3970 AR_FOR_BUILD="\$(AR)"
3971 AS_FOR_BUILD="\$(AS)"
3972 CC_FOR_BUILD="\$(CC)"
3973 CXX_FOR_BUILD="\$(CXX)"
3974 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3975 GOC_FOR_BUILD="\$(GOC)"
3976 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3977 LD_FOR_BUILD="\$(LD)"
3978 NM_FOR_BUILD="\$(NM)"
3979 RANLIB_FOR_BUILD="\$(RANLIB)"
3980 WINDRES_FOR_BUILD="\$(WINDRES)"
3981 WINDMC_FOR_BUILD="\$(WINDMC)"
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 if test -n "$ac_tool_prefix"; then
3990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_CC+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 if test -n "$CC"; then
3998 ac_cv_prog_CC="$CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4011 done
4012 done
4013 IFS=$as_save_IFS
4017 CC=$ac_cv_prog_CC
4018 if test -n "$CC"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4020 $as_echo "$CC" >&6; }
4021 else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4028 if test -z "$ac_cv_prog_CC"; then
4029 ac_ct_CC=$CC
4030 # Extract the first word of "gcc", so it can be a program name with args.
4031 set dummy gcc; ac_word=$2
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 if test -n "$ac_ct_CC"; then
4038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047 ac_cv_prog_ac_ct_CC="gcc"
4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4051 done
4052 done
4053 IFS=$as_save_IFS
4057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4058 if test -n "$ac_ct_CC"; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4060 $as_echo "$ac_ct_CC" >&6; }
4061 else
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4066 if test "x$ac_ct_CC" = x; then
4067 CC=""
4068 else
4069 case $cross_compiling:$ac_tool_warned in
4070 yes:)
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4073 ac_tool_warned=yes ;;
4074 esac
4075 CC=$ac_ct_CC
4077 else
4078 CC="$ac_cv_prog_CC"
4081 if test -z "$CC"; then
4082 if test -n "$ac_tool_prefix"; then
4083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}cc; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if test "${ac_cv_prog_CC+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 ac_cv_prog_CC="${ac_tool_prefix}cc"
4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4104 done
4105 done
4106 IFS=$as_save_IFS
4110 CC=$ac_cv_prog_CC
4111 if test -n "$CC"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113 $as_echo "$CC" >&6; }
4114 else
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4122 if test -z "$CC"; then
4123 # Extract the first word of "cc", so it can be a program name with args.
4124 set dummy cc; ac_word=$2
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 $as_echo_n "checking for $ac_word... " >&6; }
4127 if test "${ac_cv_prog_CC+set}" = set; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 if test -n "$CC"; then
4131 ac_cv_prog_CC="$CC" # Let the user override the test.
4132 else
4133 ac_prog_rejected=no
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4142 ac_prog_rejected=yes
4143 continue
4145 ac_cv_prog_CC="cc"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 break 2
4149 done
4150 done
4151 IFS=$as_save_IFS
4153 if test $ac_prog_rejected = yes; then
4154 # We found a bogon in the path, so make sure we never use it.
4155 set dummy $ac_cv_prog_CC
4156 shift
4157 if test $# != 0; then
4158 # We chose a different compiler from the bogus one.
4159 # However, it has the same basename, so the bogon will be chosen
4160 # first if we set CC to just the basename; use the full file name.
4161 shift
4162 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4167 CC=$ac_cv_prog_CC
4168 if test -n "$CC"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170 $as_echo "$CC" >&6; }
4171 else
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4178 if test -z "$CC"; then
4179 if test -n "$ac_tool_prefix"; then
4180 for ac_prog in cl.exe
4182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if test "${ac_cv_prog_CC+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 break 2
4203 done
4204 done
4205 IFS=$as_save_IFS
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4213 else
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4219 test -n "$CC" && break
4220 done
4222 if test -z "$CC"; then
4223 ac_ct_CC=$CC
4224 for ac_prog in cl.exe
4226 # Extract the first word of "$ac_prog", so it can be a program name with args.
4227 set dummy $ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if test -n "$ac_ct_CC"; then
4234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_ac_ct_CC="$ac_prog"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4247 done
4248 done
4249 IFS=$as_save_IFS
4253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4254 if test -n "$ac_ct_CC"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4256 $as_echo "$ac_ct_CC" >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4263 test -n "$ac_ct_CC" && break
4264 done
4266 if test "x$ac_ct_CC" = x; then
4267 CC=""
4268 else
4269 case $cross_compiling:$ac_tool_warned in
4270 yes:)
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273 ac_tool_warned=yes ;;
4274 esac
4275 CC=$ac_ct_CC
4282 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4284 as_fn_error "no acceptable C compiler found in \$PATH
4285 See \`config.log' for more details." "$LINENO" 5; }
4287 # Provide some information about the compiler.
4288 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4289 set X $ac_compile
4290 ac_compiler=$2
4291 for ac_option in --version -v -V -qversion; do
4292 { { ac_try="$ac_compiler $ac_option >&5"
4293 case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4300 ac_status=$?
4301 if test -s conftest.err; then
4302 sed '10a\
4303 ... rest of stderr output deleted ...
4304 10q' conftest.err >conftest.er1
4305 cat conftest.er1 >&5
4306 rm -f conftest.er1 conftest.err
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; }
4310 done
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4316 main ()
4320 return 0;
4322 _ACEOF
4323 ac_clean_files_save=$ac_clean_files
4324 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4325 # Try to create an executable without -o first, disregard a.out.
4326 # It will help us diagnose broken compilers, and finding out an intuition
4327 # of exeext.
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4329 $as_echo_n "checking for C compiler default output file name... " >&6; }
4330 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4332 # The possible output files:
4333 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4335 ac_rmfiles=
4336 for ac_file in $ac_files
4338 case $ac_file in
4339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4340 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4341 esac
4342 done
4343 rm -f $ac_rmfiles
4345 if { { ac_try="$ac_link_default"
4346 case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4351 $as_echo "$ac_try_echo"; } >&5
4352 (eval "$ac_link_default") 2>&5
4353 ac_status=$?
4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355 test $ac_status = 0; }; then :
4356 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4357 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4358 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4359 # so that the user can short-circuit this test for compilers unknown to
4360 # Autoconf.
4361 for ac_file in $ac_files ''
4363 test -f "$ac_file" || continue
4364 case $ac_file in
4365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4367 [ab].out )
4368 # We found the default executable, but exeext='' is most
4369 # certainly right.
4370 break;;
4371 *.* )
4372 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4373 then :; else
4374 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4376 # We set ac_cv_exeext here because the later test for it is not
4377 # safe: cross compilers may not add the suffix if given an `-o'
4378 # argument, so we may need to know it at that point already.
4379 # Even if this section looks crufty: it has the advantage of
4380 # actually working.
4381 break;;
4383 break;;
4384 esac
4385 done
4386 test "$ac_cv_exeext" = no && ac_cv_exeext=
4388 else
4389 ac_file=''
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4392 $as_echo "$ac_file" >&6; }
4393 if test -z "$ac_file"; then :
4394 $as_echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4399 { as_fn_set_status 77
4400 as_fn_error "C compiler cannot create executables
4401 See \`config.log' for more details." "$LINENO" 5; }; }
4403 ac_exeext=$ac_cv_exeext
4405 # Check that the compiler produces executables we can run. If not, either
4406 # the compiler is broken, or we cross compile.
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4408 $as_echo_n "checking whether the C compiler works... " >&6; }
4409 # If not cross compiling, check that we can run a simple program.
4410 if test "$cross_compiling" != yes; then
4411 if { ac_try='./$ac_file'
4412 { { case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_try") 2>&5
4419 ac_status=$?
4420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421 test $ac_status = 0; }; }; then
4422 cross_compiling=no
4423 else
4424 if test "$cross_compiling" = maybe; then
4425 cross_compiling=yes
4426 else
4427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4429 as_fn_error "cannot run C compiled programs.
4430 If you meant to cross compile, use \`--host'.
4431 See \`config.log' for more details." "$LINENO" 5; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4436 $as_echo "yes" >&6; }
4438 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4439 ac_clean_files=$ac_clean_files_save
4440 # Check that the compiler produces executables we can run. If not, either
4441 # the compiler is broken, or we cross compile.
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4443 $as_echo_n "checking whether we are cross compiling... " >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4445 $as_echo "$cross_compiling" >&6; }
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4448 $as_echo_n "checking for suffix of executables... " >&6; }
4449 if { { ac_try="$ac_link"
4450 case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_link") 2>&5
4457 ac_status=$?
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; then :
4460 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4461 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4462 # work properly (i.e., refer to `conftest.exe'), while it won't with
4463 # `rm'.
4464 for ac_file in conftest.exe conftest conftest.*; do
4465 test -f "$ac_file" || continue
4466 case $ac_file in
4467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4469 break;;
4470 * ) break;;
4471 esac
4472 done
4473 else
4474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error "cannot compute suffix of executables: cannot compile and link
4477 See \`config.log' for more details." "$LINENO" 5; }
4479 rm -f conftest$ac_cv_exeext
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4481 $as_echo "$ac_cv_exeext" >&6; }
4483 rm -f conftest.$ac_ext
4484 EXEEXT=$ac_cv_exeext
4485 ac_exeext=$EXEEXT
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4487 $as_echo_n "checking for suffix of object files... " >&6; }
4488 if test "${ac_cv_objext+set}" = set; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4495 main ()
4499 return 0;
4501 _ACEOF
4502 rm -f conftest.o conftest.obj
4503 if { { ac_try="$ac_compile"
4504 case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507 esac
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_compile") 2>&5
4511 ac_status=$?
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }; then :
4514 for ac_file in conftest.o conftest.obj conftest.*; do
4515 test -f "$ac_file" || continue;
4516 case $ac_file in
4517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4519 break;;
4520 esac
4521 done
4522 else
4523 $as_echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4528 as_fn_error "cannot compute suffix of object files: cannot compile
4529 See \`config.log' for more details." "$LINENO" 5; }
4531 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4534 $as_echo "$ac_cv_objext" >&6; }
4535 OBJEXT=$ac_cv_objext
4536 ac_objext=$OBJEXT
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4538 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4539 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4546 main ()
4548 #ifndef __GNUC__
4549 choke me
4550 #endif
4553 return 0;
4555 _ACEOF
4556 if ac_fn_c_try_compile "$LINENO"; then :
4557 ac_compiler_gnu=yes
4558 else
4559 ac_compiler_gnu=no
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4566 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4567 if test $ac_compiler_gnu = yes; then
4568 GCC=yes
4569 else
4570 GCC=
4572 ac_test_CFLAGS=${CFLAGS+set}
4573 ac_save_CFLAGS=$CFLAGS
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4575 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4576 if test "${ac_cv_prog_cc_g+set}" = set; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 ac_save_c_werror_flag=$ac_c_werror_flag
4580 ac_c_werror_flag=yes
4581 ac_cv_prog_cc_g=no
4582 CFLAGS="-g"
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4587 main ()
4591 return 0;
4593 _ACEOF
4594 if ac_fn_c_try_compile "$LINENO"; then :
4595 ac_cv_prog_cc_g=yes
4596 else
4597 CFLAGS=""
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4602 main ()
4606 return 0;
4608 _ACEOF
4609 if ac_fn_c_try_compile "$LINENO"; then :
4611 else
4612 ac_c_werror_flag=$ac_save_c_werror_flag
4613 CFLAGS="-g"
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4618 main ()
4622 return 0;
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626 ac_cv_prog_cc_g=yes
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 ac_c_werror_flag=$ac_save_c_werror_flag
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4636 $as_echo "$ac_cv_prog_cc_g" >&6; }
4637 if test "$ac_test_CFLAGS" = set; then
4638 CFLAGS=$ac_save_CFLAGS
4639 elif test $ac_cv_prog_cc_g = yes; then
4640 if test "$GCC" = yes; then
4641 CFLAGS="-g -O2"
4642 else
4643 CFLAGS="-g"
4645 else
4646 if test "$GCC" = yes; then
4647 CFLAGS="-O2"
4648 else
4649 CFLAGS=
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4653 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4654 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 ac_cv_prog_cc_c89=no
4658 ac_save_CC=$CC
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661 #include <stdarg.h>
4662 #include <stdio.h>
4663 #include <sys/types.h>
4664 #include <sys/stat.h>
4665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4666 struct buf { int x; };
4667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4668 static char *e (p, i)
4669 char **p;
4670 int i;
4672 return p[i];
4674 static char *f (char * (*g) (char **, int), char **p, ...)
4676 char *s;
4677 va_list v;
4678 va_start (v,p);
4679 s = g (p, va_arg (v,int));
4680 va_end (v);
4681 return s;
4684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4685 function prototypes and stuff, but not '\xHH' hex character constants.
4686 These don't provoke an error unfortunately, instead are silently treated
4687 as 'x'. The following induces an error, until -std is added to get
4688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4689 array size at least. It's necessary to write '\x00'==0 to get something
4690 that's true only with -std. */
4691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4693 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4694 inside strings and character constants. */
4695 #define FOO(x) 'x'
4696 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4698 int test (int i, double x);
4699 struct s1 {int (*f) (int a);};
4700 struct s2 {int (*f) (double a);};
4701 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4702 int argc;
4703 char **argv;
4705 main ()
4707 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4709 return 0;
4711 _ACEOF
4712 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4715 CC="$ac_save_CC $ac_arg"
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717 ac_cv_prog_cc_c89=$ac_arg
4719 rm -f core conftest.err conftest.$ac_objext
4720 test "x$ac_cv_prog_cc_c89" != "xno" && break
4721 done
4722 rm -f conftest.$ac_ext
4723 CC=$ac_save_CC
4726 # AC_CACHE_VAL
4727 case "x$ac_cv_prog_cc_c89" in
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4730 $as_echo "none needed" >&6; } ;;
4731 xno)
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4733 $as_echo "unsupported" >&6; } ;;
4735 CC="$CC $ac_cv_prog_cc_c89"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4737 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4738 esac
4739 if test "x$ac_cv_prog_cc_c89" != xno; then :
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4749 ac_ext=cpp
4750 ac_cpp='$CXXCPP $CPPFLAGS'
4751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4754 if test -z "$CXX"; then
4755 if test -n "$CCC"; then
4756 CXX=$CCC
4757 else
4758 if test -n "$ac_tool_prefix"; then
4759 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if test "${ac_cv_prog_CXX+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$CXX"; then
4769 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4782 done
4783 done
4784 IFS=$as_save_IFS
4788 CXX=$ac_cv_prog_CXX
4789 if test -n "$CXX"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4791 $as_echo "$CXX" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4798 test -n "$CXX" && break
4799 done
4801 if test -z "$CXX"; then
4802 ac_ct_CXX=$CXX
4803 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4805 # Extract the first word of "$ac_prog", so it can be a program name with args.
4806 set dummy $ac_prog; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 if test -n "$ac_ct_CXX"; then
4813 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_ac_ct_CXX="$ac_prog"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4826 done
4827 done
4828 IFS=$as_save_IFS
4832 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4833 if test -n "$ac_ct_CXX"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4835 $as_echo "$ac_ct_CXX" >&6; }
4836 else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4842 test -n "$ac_ct_CXX" && break
4843 done
4845 if test "x$ac_ct_CXX" = x; then
4846 CXX="g++"
4847 else
4848 case $cross_compiling:$ac_tool_warned in
4849 yes:)
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4852 ac_tool_warned=yes ;;
4853 esac
4854 CXX=$ac_ct_CXX
4860 # Provide some information about the compiler.
4861 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4862 set X $ac_compile
4863 ac_compiler=$2
4864 for ac_option in --version -v -V -qversion; do
4865 { { ac_try="$ac_compiler $ac_option >&5"
4866 case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869 esac
4870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4871 $as_echo "$ac_try_echo"; } >&5
4872 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4873 ac_status=$?
4874 if test -s conftest.err; then
4875 sed '10a\
4876 ... rest of stderr output deleted ...
4877 10q' conftest.err >conftest.er1
4878 cat conftest.er1 >&5
4879 rm -f conftest.er1 conftest.err
4881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4882 test $ac_status = 0; }
4883 done
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4886 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4887 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4894 main ()
4896 #ifndef __GNUC__
4897 choke me
4898 #endif
4901 return 0;
4903 _ACEOF
4904 if ac_fn_cxx_try_compile "$LINENO"; then :
4905 ac_compiler_gnu=yes
4906 else
4907 ac_compiler_gnu=no
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4914 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4915 if test $ac_compiler_gnu = yes; then
4916 GXX=yes
4917 else
4918 GXX=
4920 ac_test_CXXFLAGS=${CXXFLAGS+set}
4921 ac_save_CXXFLAGS=$CXXFLAGS
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4923 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4924 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4928 ac_cxx_werror_flag=yes
4929 ac_cv_prog_cxx_g=no
4930 CXXFLAGS="-g"
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4935 main ()
4939 return 0;
4941 _ACEOF
4942 if ac_fn_cxx_try_compile "$LINENO"; then :
4943 ac_cv_prog_cxx_g=yes
4944 else
4945 CXXFLAGS=""
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4950 main ()
4954 return 0;
4956 _ACEOF
4957 if ac_fn_cxx_try_compile "$LINENO"; then :
4959 else
4960 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4961 CXXFLAGS="-g"
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4966 main ()
4970 return 0;
4972 _ACEOF
4973 if ac_fn_cxx_try_compile "$LINENO"; then :
4974 ac_cv_prog_cxx_g=yes
4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4984 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4985 if test "$ac_test_CXXFLAGS" = set; then
4986 CXXFLAGS=$ac_save_CXXFLAGS
4987 elif test $ac_cv_prog_cxx_g = yes; then
4988 if test "$GXX" = yes; then
4989 CXXFLAGS="-g -O2"
4990 else
4991 CXXFLAGS="-g"
4993 else
4994 if test "$GXX" = yes; then
4995 CXXFLAGS="-O2"
4996 else
4997 CXXFLAGS=
5000 ac_ext=c
5001 ac_cpp='$CPP $CPPFLAGS'
5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007 # We must set the default linker to the linker used by gcc for the correct
5008 # operation of libtool. If LD is not defined and we are using gcc, try to
5009 # set the LD default to the ld used by gcc.
5010 if test -z "$LD"; then
5011 if test "$GCC" = yes; then
5012 case $build in
5013 *-*-mingw*)
5014 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5016 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5017 esac
5018 case $gcc_prog_ld in
5019 # Accept absolute paths.
5020 [\\/]* | [A-Za-z]:[\\/]*)
5021 LD="$gcc_prog_ld" ;;
5022 esac
5026 # Check whether -static-libstdc++ -static-libgcc is supported.
5027 have_static_libs=no
5028 if test "$GCC" = yes; then
5029 saved_LDFLAGS="$LDFLAGS"
5031 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5033 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5034 ac_ext=cpp
5035 ac_cpp='$CXXCPP $CPPFLAGS'
5036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5044 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5045 #error -static-libstdc++ not implemented
5046 #endif
5047 int main() {}
5048 _ACEOF
5049 if ac_fn_cxx_try_link "$LINENO"; then :
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5051 $as_echo "yes" >&6; }; have_static_libs=yes
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5056 rm -f core conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
5058 ac_ext=c
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065 LDFLAGS="$saved_LDFLAGS"
5071 if test -n "$ac_tool_prefix"; then
5072 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5073 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 if test -n "$GNATBIND"; then
5080 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5093 done
5094 done
5095 IFS=$as_save_IFS
5099 GNATBIND=$ac_cv_prog_GNATBIND
5100 if test -n "$GNATBIND"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5102 $as_echo "$GNATBIND" >&6; }
5103 else
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5110 if test -z "$ac_cv_prog_GNATBIND"; then
5111 ac_ct_GNATBIND=$GNATBIND
5112 # Extract the first word of "gnatbind", so it can be a program name with args.
5113 set dummy gnatbind; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -n "$ac_ct_GNATBIND"; then
5120 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5133 done
5134 done
5135 IFS=$as_save_IFS
5139 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5140 if test -n "$ac_ct_GNATBIND"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5142 $as_echo "$ac_ct_GNATBIND" >&6; }
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5148 if test "x$ac_ct_GNATBIND" = x; then
5149 GNATBIND="no"
5150 else
5151 case $cross_compiling:$ac_tool_warned in
5152 yes:)
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5155 ac_tool_warned=yes ;;
5156 esac
5157 GNATBIND=$ac_ct_GNATBIND
5159 else
5160 GNATBIND="$ac_cv_prog_GNATBIND"
5163 if test -n "$ac_tool_prefix"; then
5164 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5165 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -n "$GNATMAKE"; then
5172 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5187 IFS=$as_save_IFS
5191 GNATMAKE=$ac_cv_prog_GNATMAKE
5192 if test -n "$GNATMAKE"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5194 $as_echo "$GNATMAKE" >&6; }
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5202 if test -z "$ac_cv_prog_GNATMAKE"; then
5203 ac_ct_GNATMAKE=$GNATMAKE
5204 # Extract the first word of "gnatmake", so it can be a program name with args.
5205 set dummy gnatmake; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if test -n "$ac_ct_GNATMAKE"; then
5212 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5227 IFS=$as_save_IFS
5231 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5232 if test -n "$ac_ct_GNATMAKE"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5234 $as_echo "$ac_ct_GNATMAKE" >&6; }
5235 else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5240 if test "x$ac_ct_GNATMAKE" = x; then
5241 GNATMAKE="no"
5242 else
5243 case $cross_compiling:$ac_tool_warned in
5244 yes:)
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247 ac_tool_warned=yes ;;
5248 esac
5249 GNATMAKE=$ac_ct_GNATMAKE
5251 else
5252 GNATMAKE="$ac_cv_prog_GNATMAKE"
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5256 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5257 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 cat >conftest.adb <<EOF
5261 procedure conftest is begin null; end conftest;
5263 acx_cv_cc_gcc_supports_ada=no
5264 # There is a bug in old released versions of GCC which causes the
5265 # driver to exit successfully when the appropriate language module
5266 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5267 # Therefore we must check for the error message as well as an
5268 # unsuccessful exit.
5269 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5270 # given a .adb file, but produce no object file. So we must check
5271 # if an object file was really produced to guard against this.
5272 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5273 if test x"$errors" = x && test -f conftest.$ac_objext; then
5274 acx_cv_cc_gcc_supports_ada=yes
5276 rm -f conftest.*
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5279 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5281 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5282 have_gnat=yes
5283 else
5284 have_gnat=no
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5288 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5289 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 echo abfoo >t1
5293 echo cdfoo >t2
5294 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5295 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5296 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5298 else
5299 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5302 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5303 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5305 else
5306 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5309 rm t1 t2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5313 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5314 do_compare="$gcc_cv_prog_cmp_skip"
5318 # Check whether --enable-bootstrap was given.
5319 if test "${enable_bootstrap+set}" = set; then :
5320 enableval=$enable_bootstrap;
5321 else
5322 enable_bootstrap=default
5326 # Issue errors and warnings for invalid/strange bootstrap combinations.
5327 if test -r $srcdir/gcc/configure; then
5328 have_compiler=yes
5329 else
5330 have_compiler=no
5333 case "$have_compiler:$host:$target:$enable_bootstrap" in
5334 *:*:*:no) ;;
5336 # Default behavior. Enable bootstrap if we have a compiler
5337 # and we are in a native configuration.
5338 yes:$build:$build:default)
5339 enable_bootstrap=yes ;;
5341 *:*:*:default)
5342 enable_bootstrap=no ;;
5344 # We have a compiler and we are in a native configuration, bootstrap is ok
5345 yes:$build:$build:yes)
5348 # Other configurations, but we have a compiler. Assume the user knows
5349 # what he's doing.
5350 yes:*:*:yes)
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5352 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5355 # No compiler: if they passed --enable-bootstrap explicitly, fail
5356 no:*:*:yes)
5357 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5359 # Fail if wrong command line
5361 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5363 esac
5365 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5366 # C++98 compiler can still start the bootstrap.
5367 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5368 CXX="$CXX -std=gnu++98"
5371 # Used for setting $lt_cv_objdir
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5373 $as_echo_n "checking for objdir... " >&6; }
5374 if test "${lt_cv_objdir+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 rm -f .libs 2>/dev/null
5378 mkdir .libs 2>/dev/null
5379 if test -d .libs; then
5380 lt_cv_objdir=.libs
5381 else
5382 # MS-DOS does not allow filenames that begin with a dot.
5383 lt_cv_objdir=_libs
5385 rmdir .libs 2>/dev/null
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5388 $as_echo "$lt_cv_objdir" >&6; }
5389 objdir=$lt_cv_objdir
5395 cat >>confdefs.h <<_ACEOF
5396 #define LT_OBJDIR "$lt_cv_objdir/"
5397 _ACEOF
5401 # Check for GMP, MPFR and MPC
5402 gmplibs="-lmpc -lmpfr -lgmp"
5403 gmpinc=
5404 have_gmp=no
5406 # Specify a location for mpc
5407 # check for this first so it ends up on the link line before mpfr.
5409 # Check whether --with-mpc was given.
5410 if test "${with_mpc+set}" = set; then :
5411 withval=$with_mpc;
5415 # Check whether --with-mpc-include was given.
5416 if test "${with_mpc_include+set}" = set; then :
5417 withval=$with_mpc_include;
5421 # Check whether --with-mpc-lib was given.
5422 if test "${with_mpc_lib+set}" = set; then :
5423 withval=$with_mpc_lib;
5427 if test "x$with_mpc" != x; then
5428 gmplibs="-L$with_mpc/lib $gmplibs"
5429 gmpinc="-I$with_mpc/include $gmpinc"
5431 if test "x$with_mpc_include" != x; then
5432 gmpinc="-I$with_mpc_include $gmpinc"
5434 if test "x$with_mpc_lib" != x; then
5435 gmplibs="-L$with_mpc_lib $gmplibs"
5437 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5438 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5439 gmpinc='-I$$s/mpc/src '"$gmpinc"
5440 # Do not test the mpc version. Assume that it is sufficient, since
5441 # it is in the source tree, and the library has not been built yet
5442 # but it would be included on the link line in the version check below
5443 # hence making the test fail.
5444 have_gmp=yes
5447 # Specify a location for mpfr
5448 # check for this first so it ends up on the link line before gmp.
5450 # Check whether --with-mpfr-dir was given.
5451 if test "${with_mpfr_dir+set}" = set; then :
5452 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5453 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5458 # Check whether --with-mpfr was given.
5459 if test "${with_mpfr+set}" = set; then :
5460 withval=$with_mpfr;
5464 # Check whether --with-mpfr-include was given.
5465 if test "${with_mpfr_include+set}" = set; then :
5466 withval=$with_mpfr_include;
5470 # Check whether --with-mpfr-lib was given.
5471 if test "${with_mpfr_lib+set}" = set; then :
5472 withval=$with_mpfr_lib;
5476 if test "x$with_mpfr" != x; then
5477 gmplibs="-L$with_mpfr/lib $gmplibs"
5478 gmpinc="-I$with_mpfr/include $gmpinc"
5480 if test "x$with_mpfr_include" != x; then
5481 gmpinc="-I$with_mpfr_include $gmpinc"
5483 if test "x$with_mpfr_lib" != x; then
5484 gmplibs="-L$with_mpfr_lib $gmplibs"
5486 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5487 # MPFR v3.1.0 moved the sources into a src sub-directory.
5488 if ! test -d ${srcdir}/mpfr/src; then
5489 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
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 # Do not test the mpfr version. Assume that it is sufficient, since
5495 # it is in the source tree, and the library has not been built yet
5496 # but it would be included on the link line in the version check below
5497 # hence making the test fail.
5498 have_gmp=yes
5501 # Specify a location for gmp
5503 # Check whether --with-gmp-dir was given.
5504 if test "${with_gmp_dir+set}" = set; then :
5505 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5506 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5511 # Check whether --with-gmp was given.
5512 if test "${with_gmp+set}" = set; then :
5513 withval=$with_gmp;
5517 # Check whether --with-gmp-include was given.
5518 if test "${with_gmp_include+set}" = set; then :
5519 withval=$with_gmp_include;
5523 # Check whether --with-gmp-lib was given.
5524 if test "${with_gmp_lib+set}" = set; then :
5525 withval=$with_gmp_lib;
5530 if test "x$with_gmp" != x; then
5531 gmplibs="-L$with_gmp/lib $gmplibs"
5532 gmpinc="-I$with_gmp/include $gmpinc"
5534 if test "x$with_gmp_include" != x; then
5535 gmpinc="-I$with_gmp_include $gmpinc"
5537 if test "x$with_gmp_lib" != x; then
5538 gmplibs="-L$with_gmp_lib $gmplibs"
5540 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5541 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5542 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5543 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5544 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5545 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5546 # Do not test the gmp version. Assume that it is sufficient, since
5547 # it is in the source tree, and the library has not been built yet
5548 # but it would be included on the link line in the version check below
5549 # hence making the test fail.
5550 have_gmp=yes
5553 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5554 have_gmp=yes
5555 saved_CFLAGS="$CFLAGS"
5556 CFLAGS="$CFLAGS $gmpinc"
5557 # Check for the recommended and required versions of GMP.
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5559 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 #include "gmp.h"
5565 main ()
5568 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5569 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5570 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5571 choke me
5572 #endif
5575 return 0;
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"; then :
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5581 #include <gmp.h>
5583 main ()
5586 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5587 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5588 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5589 choke me
5590 #endif
5593 return 0;
5595 _ACEOF
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5598 $as_echo "yes" >&6; }
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5601 $as_echo "buggy but acceptable" >&6; }
5603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }; have_gmp=no
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610 # If we have GMP, check the MPFR version.
5611 if test x"$have_gmp" = xyes; then
5612 # Check for the recommended and required versions of MPFR.
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5614 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #include <gmp.h>
5618 #include <mpfr.h>
5620 main ()
5623 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5624 choke me
5625 #endif
5628 return 0;
5630 _ACEOF
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 #include <gmp.h>
5635 #include <mpfr.h>
5637 main ()
5640 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5641 choke me
5642 #endif
5645 return 0;
5647 _ACEOF
5648 if ac_fn_c_try_compile "$LINENO"; then :
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650 $as_echo "yes" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5653 $as_echo "buggy but acceptable" >&6; }
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }; have_gmp=no
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 # Check for the MPC header version.
5664 if test x"$have_gmp" = xyes ; then
5665 # Check for the recommended and required versions of MPC.
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5667 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 #include <mpc.h>
5672 main ()
5675 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5676 choke me
5677 #endif
5680 return 0;
5682 _ACEOF
5683 if ac_fn_c_try_compile "$LINENO"; then :
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #include <mpc.h>
5688 main ()
5691 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5692 choke me
5693 #endif
5696 return 0;
5698 _ACEOF
5699 if ac_fn_c_try_compile "$LINENO"; then :
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701 $as_echo "yes" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5704 $as_echo "buggy but acceptable" >&6; }
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }; have_gmp=no
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 # Now check the MPFR library.
5715 if test x"$have_gmp" = xyes; then
5716 saved_LIBS="$LIBS"
5717 LIBS="$LIBS $gmplibs"
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5719 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 #include <mpc.h>
5724 main ()
5727 mpfr_t n;
5728 mpfr_t x;
5729 mpc_t c;
5730 int t;
5731 mpfr_init (n);
5732 mpfr_init (x);
5733 mpfr_atan2 (n, n, x, GMP_RNDN);
5734 mpfr_erfc (n, x, GMP_RNDN);
5735 mpfr_subnormalize (x, t, GMP_RNDN);
5736 mpfr_clear(n);
5737 mpfr_clear(x);
5738 mpc_init2 (c, 53);
5739 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5740 mpc_cosh (c, c, MPC_RNDNN);
5741 mpc_pow (c, c, c, MPC_RNDNN);
5742 mpc_acosh (c, c, MPC_RNDNN);
5743 mpc_clear (c);
5746 return 0;
5748 _ACEOF
5749 if ac_fn_c_try_link "$LINENO"; then :
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5751 $as_echo "yes" >&6; }
5752 else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }; have_gmp=no
5756 rm -f core conftest.err conftest.$ac_objext \
5757 conftest$ac_exeext conftest.$ac_ext
5758 LIBS="$saved_LIBS"
5761 CFLAGS="$saved_CFLAGS"
5763 # The library versions listed in the error message below should match
5764 # the HARD-minimums enforced above.
5765 if test x$have_gmp != xyes; then
5766 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5767 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5768 their locations. Source code for these libraries can be found at
5769 their respective hosting sites as well as at
5770 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5771 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5772 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5773 make sure that you have installed both the libraries and the header
5774 files. They may be located in separate packages." "$LINENO" 5
5778 # Flags needed for both GMP, MPFR and/or MPC.
5786 # Libraries to use for stage1 or when not bootstrapping.
5788 # Check whether --with-stage1-libs was given.
5789 if test "${with_stage1_libs+set}" = set; then :
5790 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5791 stage1_libs=
5792 else
5793 stage1_libs=$withval
5795 else
5796 stage1_libs=
5801 # Linker flags to use for stage1 or when not bootstrapping.
5803 # Check whether --with-stage1-ldflags was given.
5804 if test "${with_stage1_ldflags+set}" = set; then :
5805 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5806 stage1_ldflags=
5807 else
5808 stage1_ldflags=$withval
5810 else
5811 stage1_ldflags=
5812 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5813 # if supported. But if the user explicitly specified the libraries to use,
5814 # trust that they are doing what they want.
5815 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5816 stage1_ldflags="-static-libstdc++ -static-libgcc"
5822 # Libraries to use for stage2 and later builds.
5824 # Check whether --with-boot-libs was given.
5825 if test "${with_boot_libs+set}" = set; then :
5826 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5827 poststage1_libs=
5828 else
5829 poststage1_libs=$withval
5831 else
5832 poststage1_libs=
5837 # Linker flags to use for stage2 and later builds.
5839 # Check whether --with-boot-ldflags was given.
5840 if test "${with_boot_ldflags+set}" = set; then :
5841 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5842 poststage1_ldflags=
5843 else
5844 poststage1_ldflags=$withval
5846 else
5847 poststage1_ldflags=
5848 # In stages 2 and 3, default to linking libstdc++ and libgcc
5849 # statically. But if the user explicitly specified the libraries to
5850 # use, trust that they are doing what they want.
5851 if test "$poststage1_libs" = ""; then
5852 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5858 # GCC GRAPHITE dependency isl.
5859 # Basic setup is inlined here, actual checks are in config/isl.m4
5862 # Check whether --with-isl was given.
5863 if test "${with_isl+set}" = set; then :
5864 withval=$with_isl;
5868 # Treat --without-isl as a request to disable
5869 # GRAPHITE support and skip all following checks.
5870 if test "x$with_isl" != "xno"; then
5871 # Check for isl
5874 # Check whether --with-isl-include was given.
5875 if test "${with_isl_include+set}" = set; then :
5876 withval=$with_isl_include;
5880 # Check whether --with-isl-lib was given.
5881 if test "${with_isl_lib+set}" = set; then :
5882 withval=$with_isl_lib;
5886 # Check whether --enable-isl-version-check was given.
5887 if test "${enable_isl_version_check+set}" = set; then :
5888 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5889 else
5890 ENABLE_ISL_CHECK=yes
5894 # Initialize isllibs and islinc.
5895 case $with_isl in
5897 isllibs=
5898 islinc=
5900 "" | yes)
5903 isllibs="-L$with_isl/lib"
5904 islinc="-I$with_isl/include"
5906 esac
5907 if test "x${with_isl_include}" != x ; then
5908 islinc="-I$with_isl_include"
5910 if test "x${with_isl_lib}" != x; then
5911 isllibs="-L$with_isl_lib"
5913 if test "x${islinc}" = x && test "x${isllibs}" = x \
5914 && test -d ${srcdir}/isl; then
5915 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5916 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5917 ENABLE_ISL_CHECK=no
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5919 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5922 isllibs="${isllibs} -lisl"
5926 if test "${ENABLE_ISL_CHECK}" = yes ; then
5927 _isl_saved_CFLAGS=$CFLAGS
5928 _isl_saved_LDFLAGS=$LDFLAGS
5929 _isl_saved_LIBS=$LIBS
5931 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5932 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5933 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5936 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939 #include <isl/ctx.h>
5941 main ()
5943 isl_ctx_get_max_operations (isl_ctx_alloc ());
5945 return 0;
5947 _ACEOF
5948 if ac_fn_c_try_link "$LINENO"; then :
5949 gcc_cv_isl=yes
5950 else
5951 gcc_cv_isl=no
5953 rm -f core conftest.err conftest.$ac_objext \
5954 conftest$ac_exeext conftest.$ac_ext
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5956 $as_echo "$gcc_cv_isl" >&6; }
5958 if test "${gcc_cv_isl}" = no ; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5960 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5964 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 #include <isl/schedule.h>
5969 main ()
5971 isl_options_set_schedule_serialize_sccs (NULL, 0);
5973 return 0;
5975 _ACEOF
5976 if ac_fn_c_try_link "$LINENO"; then :
5977 ac_has_isl_options_set_schedule_serialize_sccs=yes
5978 else
5979 ac_has_isl_options_set_schedule_serialize_sccs=no
5981 rm -f core conftest.err conftest.$ac_objext \
5982 conftest$ac_exeext conftest.$ac_ext
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5984 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5986 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5987 islver="0.15"
5991 CFLAGS=$_isl_saved_CFLAGS
5992 LDFLAGS=$_isl_saved_LDFLAGS
5993 LIBS=$_isl_saved_LIBS
6001 if test "x${with_isl}" = xno; then
6002 graphite_requested=no
6003 elif test "x${with_isl}" != x \
6004 || test "x${with_isl_include}" != x \
6005 || test "x${with_isl_lib}" != x ; then
6006 graphite_requested=yes
6007 else
6008 graphite_requested=no
6013 if test "${gcc_cv_isl}" = no ; then
6014 isllibs=
6015 islinc=
6018 if test "${graphite_requested}" = yes \
6019 && test "x${isllibs}" = x \
6020 && test "x${islinc}" = x ; then
6022 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6028 # If the isl check failed, disable builds of in-tree variant of isl
6029 if test "x$with_isl" = xno ||
6030 test "x$gcc_cv_isl" = xno; then
6031 noconfigdirs="$noconfigdirs isl"
6032 islinc=
6038 # Check for LTO support.
6039 # Check whether --enable-lto was given.
6040 if test "${enable_lto+set}" = set; then :
6041 enableval=$enable_lto; enable_lto=$enableval
6042 else
6043 enable_lto=yes; default_enable_lto=yes
6050 target_elf=no
6051 case $target in
6052 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6053 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6054 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6055 nvptx-*-none)
6056 target_elf=no
6059 target_elf=yes
6061 esac
6063 if test $target_elf = yes; then :
6064 # ELF platforms build the lto-plugin always.
6065 build_lto_plugin=yes
6067 else
6068 if test x"$default_enable_lto" = x"yes" ; then
6069 case $target in
6070 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6071 # On other non-ELF platforms, LTO has yet to be validated.
6072 *) enable_lto=no ;;
6073 esac
6074 else
6075 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6076 # It would also be nice to check the binutils support, but we don't
6077 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6078 # warn during gcc/ subconfigure; unless you're bootstrapping with
6079 # -flto it won't be needed until after installation anyway.
6080 case $target in
6081 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6082 *) if test x"$enable_lto" = x"yes"; then
6083 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6086 esac
6088 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6089 # Build it unless LTO was explicitly disabled.
6090 case $target in
6091 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6092 *) ;;
6093 esac
6098 # Check whether --enable-linker-plugin-configure-flags was given.
6099 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6100 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6101 else
6102 extra_linker_plugin_configure_flags=
6106 # Check whether --enable-linker-plugin-flags was given.
6107 if test "${enable_linker_plugin_flags+set}" = set; then :
6108 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6109 else
6110 extra_linker_plugin_flags=
6116 # By default, C and C++ are the only stage 1 languages.
6117 stage1_languages=,c,
6119 # Target libraries that we bootstrap.
6120 bootstrap_target_libs=,target-libgcc,
6122 # Figure out what language subdirectories are present.
6123 # Look if the user specified --enable-languages="..."; if not, use
6124 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6125 # go away some day.
6126 # NB: embedded tabs in this IF block -- do not untabify
6127 if test -d ${srcdir}/gcc; then
6128 if test x"${enable_languages+set}" != xset; then
6129 if test x"${LANGUAGES+set}" = xset; then
6130 enable_languages="${LANGUAGES}"
6131 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6132 else
6133 enable_languages=all
6135 else
6136 if test x"${enable_languages}" = x ||
6137 test x"${enable_languages}" = xyes;
6138 then
6139 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6140 exit 1
6143 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6145 # 'f95' is the old name for the 'fortran' language. We issue a warning
6146 # and make the substitution.
6147 case ,${enable_languages}, in
6148 *,f95,*)
6149 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6150 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6152 esac
6154 # If bootstrapping, C++ must be enabled.
6155 case ",$enable_languages,:$enable_bootstrap" in
6156 *,c++,*:*) ;;
6157 *:yes)
6158 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6159 enable_languages="${enable_languages},c++"
6160 else
6161 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6164 esac
6166 # First scan to see if an enabled language requires some other language.
6167 # We assume that a given config-lang.in will list all the language
6168 # front ends it requires, even if some are required indirectly.
6169 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6170 case ${lang_frag} in
6171 ..) ;;
6172 # The odd quoting in the next line works around
6173 # an apparent bug in bash 1.12 on linux.
6174 ${srcdir}/gcc/[*]/config-lang.in) ;;
6176 # From the config-lang.in, get $language, $lang_requires, and
6177 # $lang_requires_boot_languages.
6178 language=
6179 lang_requires=
6180 lang_requires_boot_languages=
6181 . ${lang_frag}
6182 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6183 case ,${enable_languages}, in
6184 *,$other,*) ;;
6185 *,all,*) ;;
6186 *,$language,*)
6187 echo " \`$other' language required by \`$language'; enabling" 1>&2
6188 enable_languages="${enable_languages},${other}"
6190 esac
6191 done
6192 for other in ${lang_requires_boot_languages} ; do
6193 if test "$other" != "c"; then
6194 case ,${enable_stage1_languages}, in
6195 *,$other,*) ;;
6196 *,all,*) ;;
6198 case ,${enable_languages}, in
6199 *,$language,*)
6200 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6201 enable_stage1_languages="$enable_stage1_languages,${other}"
6203 esac
6205 esac
6207 done
6209 esac
6210 done
6212 new_enable_languages=,c,
6214 # If LTO is enabled, add the LTO front end.
6215 if test "$enable_lto" = "yes" ; then
6216 case ,${enable_languages}, in
6217 *,lto,*) ;;
6218 *) enable_languages="${enable_languages},lto" ;;
6219 esac
6220 if test "${build_lto_plugin}" = "yes" ; then
6221 configdirs="$configdirs lto-plugin"
6225 # If we're building an offloading compiler, add the LTO front end.
6226 if test x"$enable_as_accelerator_for" != x ; then
6227 case ,${enable_languages}, in
6228 *,lto,*) ;;
6229 *) enable_languages="${enable_languages},lto" ;;
6230 esac
6233 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6234 potential_languages=,c,
6236 enabled_target_libs=
6237 disabled_target_libs=
6239 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6240 case ${lang_frag} in
6241 ..) ;;
6242 # The odd quoting in the next line works around
6243 # an apparent bug in bash 1.12 on linux.
6244 ${srcdir}/gcc/[*]/config-lang.in) ;;
6246 # From the config-lang.in, get $language, $target_libs,
6247 # $lang_dirs, $boot_language, and $build_by_default
6248 language=
6249 target_libs=
6250 lang_dirs=
6251 subdir_requires=
6252 boot_language=no
6253 build_by_default=yes
6254 . ${lang_frag}
6255 if test x${language} = x; then
6256 echo "${lang_frag} doesn't set \$language." 1>&2
6257 exit 1
6260 if test "$language" = "c++"; then
6261 boot_language=yes
6264 add_this_lang=no
6265 case ,${enable_languages}, in
6266 *,${language},*)
6267 # Language was explicitly selected; include it
6268 # unless it is C, which is enabled by default.
6269 if test "$language" != "c"; then
6270 add_this_lang=yes
6273 *,all,*)
6274 # 'all' was selected, select it if it is a default language
6275 if test "$language" != "c"; then
6276 add_this_lang=${build_by_default}
6279 esac
6281 # Disable languages that need other directories if these aren't available.
6282 for i in $subdir_requires; do
6283 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6284 case ,${enable_languages}, in
6285 *,${language},*)
6286 # Specifically requested language; tell them.
6287 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6290 # Silently disable.
6291 add_this_lang=unsupported
6293 esac
6294 done
6296 # Disable Ada if no preexisting GNAT is available.
6297 case ,${enable_languages},:${language}:${have_gnat} in
6298 *,${language},*:ada:no)
6299 # Specifically requested language; tell them.
6300 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6302 *:ada:no)
6303 # Silently disable.
6304 add_this_lang=unsupported
6306 esac
6308 # Disable a language that is unsupported by the target.
6309 case " $unsupported_languages " in
6310 *" $language "*)
6311 add_this_lang=unsupported
6313 esac
6315 case $add_this_lang in
6316 unsupported)
6317 # Remove language-dependent dirs.
6318 disabled_target_libs="$disabled_target_libs $target_libs"
6319 noconfigdirs="$noconfigdirs $lang_dirs"
6322 # Remove language-dependent dirs; still show language as supported.
6323 disabled_target_libs="$disabled_target_libs $target_libs"
6324 noconfigdirs="$noconfigdirs $lang_dirs"
6325 potential_languages="${potential_languages}${language},"
6327 yes)
6328 new_enable_languages="${new_enable_languages}${language},"
6329 potential_languages="${potential_languages}${language},"
6330 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6331 enabled_target_libs="$enabled_target_libs $target_libs"
6332 case "${boot_language}:,$enable_stage1_languages," in
6333 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6334 # Add to (comma-separated) list of stage 1 languages.
6335 case ",$stage1_languages," in
6336 *,$language,* | ,yes, | ,all,) ;;
6337 *) stage1_languages="${stage1_languages}${language}," ;;
6338 esac
6339 # We need to bootstrap any supporting libraries.
6340 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6342 esac
6344 esac
6346 esac
6347 done
6349 # Add target libraries which are only needed for disabled languages
6350 # to noconfigdirs.
6351 if test -n "$disabled_target_libs"; then
6352 for dir in $disabled_target_libs; do
6353 case " $enabled_target_libs " in
6354 *" ${dir} "*) ;;
6355 *) noconfigdirs="$noconfigdirs $dir" ;;
6356 esac
6357 done
6360 # Check whether --enable-stage1-languages was given.
6361 if test "${enable_stage1_languages+set}" = set; then :
6362 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6363 ,no,|,,)
6364 # Set it to something that will have no effect in the loop below
6365 enable_stage1_languages=c ;;
6366 ,yes,)
6367 enable_stage1_languages=`echo $new_enable_languages | \
6368 sed -e "s/^,//" -e "s/,$//" ` ;;
6369 *,all,*)
6370 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6371 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6372 esac
6374 # Add "good" languages from enable_stage1_languages to stage1_languages,
6375 # while "bad" languages go in missing_languages. Leave no duplicates.
6376 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6377 case $potential_languages in
6378 *,$i,*)
6379 case $stage1_languages in
6380 *,$i,*) ;;
6381 *) stage1_languages="$stage1_languages$i," ;;
6382 esac ;;
6384 case $missing_languages in
6385 *,$i,*) ;;
6386 *) missing_languages="$missing_languages$i," ;;
6387 esac ;;
6388 esac
6389 done
6393 # Remove leading/trailing commas that were added for simplicity
6394 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6395 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6396 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6397 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6399 if test "x$missing_languages" != x; then
6400 as_fn_error "
6401 The following requested languages could not be built: ${missing_languages}
6402 Supported languages are: ${potential_languages}" "$LINENO" 5
6404 if test "x$new_enable_languages" != "x$enable_languages"; then
6405 echo The following languages will be built: ${new_enable_languages}
6406 enable_languages="$new_enable_languages"
6410 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6413 # Handle --disable-<component> generically.
6414 for dir in $configdirs $build_configdirs $target_configdirs ; do
6415 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6416 varname=`echo $dirname | sed -e s/+/_/g`
6417 if eval test x\${enable_${varname}} "=" xno ; then
6418 noconfigdirs="$noconfigdirs $dir"
6420 done
6422 # Check for Boehm's garbage collector
6423 # Check whether --enable-objc-gc was given.
6424 if test "${enable_objc_gc+set}" = set; then :
6425 enableval=$enable_objc_gc;
6429 # Check whether --with-target-bdw-gc was given.
6430 if test "${with_target_bdw_gc+set}" = set; then :
6431 withval=$with_target_bdw_gc;
6435 # Check whether --with-target-bdw-gc-include was given.
6436 if test "${with_target_bdw_gc_include+set}" = set; then :
6437 withval=$with_target_bdw_gc_include;
6441 # Check whether --with-target-bdw-gc-lib was given.
6442 if test "${with_target_bdw_gc_lib+set}" = set; then :
6443 withval=$with_target_bdw_gc_lib;
6447 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6449 $as_echo_n "checking for bdw garbage collector... " >&6; }
6450 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6452 $as_echo "using bdw-gc in default locations" >&6; }
6453 else
6454 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6455 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6456 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6457 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6458 else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6460 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6463 esac
6465 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6466 case ,${enable_languages}, in
6467 *,c++,*)
6468 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6469 case "${noconfigdirs}" in
6470 *target-libstdc++-v3*)
6471 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6473 *) ;;
6474 esac
6477 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6479 esac
6481 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6482 # $build_configdirs and $target_configdirs.
6483 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6485 notsupp=""
6486 for dir in . $skipdirs $noconfigdirs ; do
6487 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6488 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6489 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6490 if test -r $srcdir/$dirname/configure ; then
6491 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6492 true
6493 else
6494 notsupp="$notsupp $dir"
6498 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6499 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6500 if test -r $srcdir/$dirname/configure ; then
6501 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6502 true
6503 else
6504 notsupp="$notsupp $dir"
6508 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6509 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6510 if test -r $srcdir/$dirname/configure ; then
6511 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6512 true
6513 else
6514 notsupp="$notsupp $dir"
6518 done
6520 # Quietly strip out all directories which aren't configurable in this tree.
6521 # This relies on all configurable subdirectories being autoconfiscated, which
6522 # is now the case.
6523 build_configdirs_all="$build_configdirs"
6524 build_configdirs=
6525 for i in ${build_configdirs_all} ; do
6526 j=`echo $i | sed -e s/build-//g`
6527 if test -f ${srcdir}/$j/configure ; then
6528 build_configdirs="${build_configdirs} $i"
6530 done
6532 configdirs_all="$configdirs"
6533 configdirs=
6534 for i in ${configdirs_all} ; do
6535 if test -f ${srcdir}/$i/configure ; then
6536 configdirs="${configdirs} $i"
6538 done
6540 target_configdirs_all="$target_configdirs"
6541 target_configdirs=
6542 for i in ${target_configdirs_all} ; do
6543 j=`echo $i | sed -e s/target-//g`
6544 if test -f ${srcdir}/$j/configure ; then
6545 target_configdirs="${target_configdirs} $i"
6547 done
6549 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6550 # so we have to add it after the preceding checks.
6551 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6552 then
6553 case " $configdirs " in
6554 *" libiberty "*)
6555 # If we can build libiberty, we can also build libiberty-linker-plugin.
6556 configdirs="$configdirs libiberty-linker-plugin"
6557 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6558 --with-libiberty=../libiberty-linker-plugin";;
6560 as_fn_error "libiberty missing" "$LINENO" 5;;
6561 esac
6564 # Sometimes we have special requirements for the host libiberty.
6565 extra_host_libiberty_configure_flags=
6566 extra_host_zlib_configure_flags=
6567 case " $configdirs " in
6568 *" lto-plugin "* | *" libcc1 "*)
6569 # When these are to be built as shared libraries, the same applies to
6570 # libiberty.
6571 extra_host_libiberty_configure_flags=--enable-shared
6573 *" bfd "*)
6574 # When bfd is to be built as a shared library, the same applies to
6575 # zlib.
6576 if test "$enable_shared" = "yes"; then
6577 extra_host_zlib_configure_flags=--enable-host-shared
6580 esac
6584 # Produce a warning message for the subdirs we can't configure.
6585 # This isn't especially interesting in the Cygnus tree, but in the individual
6586 # FSF releases, it's important to let people know when their machine isn't
6587 # supported by the one or two programs in a package.
6589 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6590 # If $appdirs is non-empty, at least one of those directories must still
6591 # be configured, or we error out. (E.g., if the gas release supports a
6592 # specified target in some subdirs but not the gas subdir, we shouldn't
6593 # pretend that all is well.)
6594 if test -n "$appdirs" ; then
6595 for dir in $appdirs ; do
6596 if test -r $dir/Makefile.in ; then
6597 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6598 appdirs=""
6599 break
6601 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6602 appdirs=""
6603 break
6606 done
6607 if test -n "$appdirs" ; then
6608 echo "*** This configuration is not supported by this package." 1>&2
6609 exit 1
6612 # Okay, some application will build, or we don't care to check. Still
6613 # notify of subdirs not getting built.
6614 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6615 echo " ${notsupp}" 1>&2
6616 echo " (Any other directories should still work fine.)" 1>&2
6619 case "$host" in
6620 *msdosdjgpp*)
6621 enable_gdbtk=no ;;
6622 esac
6624 # To find our prefix, in gcc_cv_tool_prefix.
6626 # The user is always right.
6627 if test "${PATH_SEPARATOR+set}" != set; then
6628 echo "#! /bin/sh" >conf$$.sh
6629 echo "exit 0" >>conf$$.sh
6630 chmod +x conf$$.sh
6631 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6632 PATH_SEPARATOR=';'
6633 else
6634 PATH_SEPARATOR=:
6636 rm -f conf$$.sh
6640 get_gcc_base_ver="cat"
6642 # Check whether --with-gcc-major-version-only was given.
6643 if test "${with_gcc_major_version_only+set}" = set; then :
6644 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6645 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
6655 if test "x$exec_prefix" = xNONE; then
6656 if test "x$prefix" = xNONE; then
6657 gcc_cv_tool_prefix=$ac_default_prefix
6658 else
6659 gcc_cv_tool_prefix=$prefix
6661 else
6662 gcc_cv_tool_prefix=$exec_prefix
6665 # If there is no compiler in the tree, use the PATH only. In any
6666 # case, if there is no compiler in the tree nobody should use
6667 # AS_FOR_TARGET and LD_FOR_TARGET.
6668 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6669 if test x$with_gcc_major_version_only = xyes ; then
6670 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6671 else
6672 gcc_version=`cat $srcdir/gcc/BASE-VER`
6674 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6675 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6676 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6677 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6678 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6679 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6680 else
6681 gcc_cv_tool_dirs=
6684 if test x$build = x$target && test -n "$md_exec_prefix"; then
6685 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6690 copy_dirs=
6693 # Check whether --with-build-sysroot was given.
6694 if test "${with_build_sysroot+set}" = set; then :
6695 withval=$with_build_sysroot; if test x"$withval" != x ; then
6696 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6698 else
6699 SYSROOT_CFLAGS_FOR_TARGET=
6705 # Check whether --with-debug-prefix-map was given.
6706 if test "${with_debug_prefix_map+set}" = set; then :
6707 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6708 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6709 for debug_map in $withval; do
6710 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6711 done
6713 else
6714 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6719 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6720 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6721 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6722 # We want to ensure that TARGET libraries (which we know are built with
6723 # gcc) are built with "-O2 -g", so include those options when setting
6724 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6725 if test "x$CFLAGS_FOR_TARGET" = x; then
6726 if test "x${is_cross_compiler}" = xyes; then
6727 CFLAGS_FOR_TARGET="-g -O2"
6728 else
6729 CFLAGS_FOR_TARGET=$CFLAGS
6730 case " $CFLAGS " in
6731 *" -O2 "*) ;;
6732 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6733 esac
6734 case " $CFLAGS " in
6735 *" -g "* | *" -g3 "*) ;;
6736 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6737 esac
6742 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6743 if test "x${is_cross_compiler}" = xyes; then
6744 CXXFLAGS_FOR_TARGET="-g -O2"
6745 else
6746 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6747 case " $CXXFLAGS " in
6748 *" -O2 "*) ;;
6749 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6750 esac
6751 case " $CXXFLAGS " in
6752 *" -g "* | *" -g3 "*) ;;
6753 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6754 esac
6761 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6762 # the named directory are copied to $(tooldir)/sys-include.
6763 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6764 if test x${is_cross_compiler} = xno ; then
6765 echo 1>&2 '***' --with-headers is only supported when cross compiling
6766 exit 1
6768 if test x"${with_headers}" != xyes ; then
6769 x=${gcc_cv_tool_prefix}
6770 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6774 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6775 # the name directories are copied to $(tooldir)/lib. Multiple directories
6776 # are permitted.
6777 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6778 if test x${is_cross_compiler} = xno ; then
6779 echo 1>&2 '***' --with-libs is only supported when cross compiling
6780 exit 1
6782 if test x"${with_libs}" != xyes ; then
6783 # Copy the libraries in reverse order, so that files in the first named
6784 # library override files in subsequent libraries.
6785 x=${gcc_cv_tool_prefix}
6786 for l in ${with_libs}; do
6787 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6788 done
6792 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6794 # This is done by determining whether or not the appropriate directory
6795 # is available, and by checking whether or not specific configurations
6796 # have requested that this magic not happen.
6798 # The command line options always override the explicit settings in
6799 # configure.ac, and the settings in configure.ac override this magic.
6801 # If the default for a toolchain is to use GNU as and ld, and you don't
6802 # want to do that, then you should use the --without-gnu-as and
6803 # --without-gnu-ld options for the configure script. Similarly, if
6804 # the default is to use the included zlib and you don't want to do that,
6805 # you should use the --with-system-zlib option for the configure script.
6807 if test x${use_gnu_as} = x &&
6808 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6809 with_gnu_as=yes
6810 extra_host_args="$extra_host_args --with-gnu-as"
6813 if test x${use_gnu_ld} = x &&
6814 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6815 with_gnu_ld=yes
6816 extra_host_args="$extra_host_args --with-gnu-ld"
6819 if test x${use_included_zlib} = x &&
6820 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6822 else
6823 with_system_zlib=yes
6824 extra_host_args="$extra_host_args --with-system-zlib"
6827 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6828 # can detect this case.
6830 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6831 with_newlib=yes
6832 extra_host_args="$extra_host_args --with-newlib"
6835 # Handle ${copy_dirs}
6836 set fnord ${copy_dirs}
6837 shift
6838 while test $# != 0 ; do
6839 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6841 else
6842 echo Copying $1 to $2
6844 # Use the install script to create the directory and all required
6845 # parent directories.
6846 if test -d $2 ; then
6848 else
6849 echo >config.temp
6850 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6853 # Copy the directory, assuming we have tar.
6854 # FIXME: Should we use B in the second tar? Not all systems support it.
6855 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6857 # It is the responsibility of the user to correctly adjust all
6858 # symlinks. If somebody can figure out how to handle them correctly
6859 # here, feel free to add the code.
6861 echo $1 > $2/COPIED
6863 shift; shift
6864 done
6866 # Determine a target-dependent exec_prefix that the installed
6867 # gcc will search in. Keep this list sorted by triplet, with
6868 # the *-*-osname triplets last.
6869 md_exec_prefix=
6870 case "${target}" in
6871 i[34567]86-pc-msdosdjgpp*)
6872 md_exec_prefix=/dev/env/DJDIR/bin
6874 *-*-hpux* | \
6875 *-*-nto-qnx* | \
6876 *-*-solaris2*)
6877 md_exec_prefix=/usr/ccs/bin
6879 esac
6881 extra_arflags_for_target=
6882 extra_nmflags_for_target=
6883 extra_ranlibflags_for_target=
6884 target_makefile_frag=/dev/null
6885 case "${target}" in
6886 spu-*-*)
6887 target_makefile_frag="config/mt-spu"
6889 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6890 target_makefile_frag="config/mt-sde"
6892 mipsisa*-*-elfoabi*)
6893 target_makefile_frag="config/mt-mips-elfoabi"
6895 mips*-*-*linux* | mips*-*-gnu*)
6896 target_makefile_frag="config/mt-mips-gnu"
6898 nios2-*-elf*)
6899 target_makefile_frag="config/mt-nios2-elf"
6901 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6902 target_makefile_frag="config/mt-gnu"
6904 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6905 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6906 # commands to handle both 32-bit and 64-bit objects. These flags are
6907 # harmless if we're using GNU nm or ar.
6908 extra_arflags_for_target=" -X32_64"
6909 extra_nmflags_for_target=" -B -X32_64"
6911 esac
6913 alphaieee_frag=/dev/null
6914 case $target in
6915 alpha*-*-*)
6916 # This just makes sure to use the -mieee option to build target libs.
6917 # This should probably be set individually by each library.
6918 alphaieee_frag="config/mt-alphaieee"
6920 esac
6922 # If --enable-target-optspace always use -Os instead of -O2 to build
6923 # the target libraries, similarly if it is not specified, use -Os
6924 # on selected platforms.
6925 ospace_frag=/dev/null
6926 case "${enable_target_optspace}:${target}" in
6927 yes:*)
6928 ospace_frag="config/mt-ospace"
6930 :d30v-*)
6931 ospace_frag="config/mt-d30v"
6933 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6934 ospace_frag="config/mt-ospace"
6936 no:* | :*)
6939 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6941 esac
6943 # Some systems (e.g., one of the i386-aix systems the gas testers are
6944 # using) don't handle "\$" correctly, so don't use it here.
6945 tooldir='${exec_prefix}'/${target_noncanonical}
6946 build_tooldir=${tooldir}
6948 # Create a .gdbinit file which runs the one in srcdir
6949 # and tells GDB to look there for source files.
6951 if test -r ${srcdir}/.gdbinit ; then
6952 case ${srcdir} in
6953 .) ;;
6954 *) cat > ./.gdbinit <<EOF
6955 # ${NO_EDIT}
6956 dir ${srcdir}
6957 dir .
6958 source ${srcdir}/.gdbinit
6961 esac
6964 # Make sure that the compiler is able to generate an executable. If it
6965 # can't, we are probably in trouble. We don't care whether we can run the
6966 # executable--we might be using a cross compiler--we only care whether it
6967 # can be created. At this point the main configure script has set CC.
6968 we_are_ok=no
6969 echo "int main () { return 0; }" > conftest.c
6970 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6971 if test $? = 0 ; then
6972 if test -s conftest || test -s conftest.exe ; then
6973 we_are_ok=yes
6976 case $we_are_ok in
6978 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6979 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6980 rm -f conftest*
6981 exit 1
6983 esac
6984 rm -f conftest*
6986 # Decide which environment variable is used to find dynamic libraries.
6987 case "${host}" in
6988 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6989 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6990 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6991 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6992 esac
6994 # On systems where the dynamic library environment variable is PATH,
6995 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6996 # built executables to PATH.
6997 if test "$RPATH_ENVVAR" = PATH; then
6998 GCC_SHLIB_SUBDIR=/shlib
6999 else
7000 GCC_SHLIB_SUBDIR=
7003 # Adjust the toplevel makefile according to whether bootstrap was selected.
7004 case $enable_bootstrap in
7005 yes)
7006 bootstrap_suffix=bootstrap
7007 BUILD_CONFIG=bootstrap-debug
7010 bootstrap_suffix=no-bootstrap
7011 BUILD_CONFIG=
7013 esac
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7016 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7019 # Check whether --with-build-config was given.
7020 if test "${with_build_config+set}" = set; then :
7021 withval=$with_build_config; case $with_build_config in
7022 yes) with_build_config= ;;
7023 no) with_build_config= BUILD_CONFIG= ;;
7024 esac
7028 if test "x${with_build_config}" != x; then
7029 BUILD_CONFIG=$with_build_config
7030 else
7031 case $BUILD_CONFIG in
7032 bootstrap-debug)
7033 if echo "int f (void) { return 0; }" > conftest.c &&
7034 ${CC} -c conftest.c &&
7035 mv conftest.o conftest.o.g0 &&
7036 ${CC} -c -g conftest.c &&
7037 mv conftest.o conftest.o.g &&
7038 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7040 else
7041 BUILD_CONFIG=
7043 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7045 esac
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7048 $as_echo "$BUILD_CONFIG" >&6; }
7051 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7053 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7054 # Check whether --enable-vtable-verify was given.
7055 if test "${enable_vtable_verify+set}" = set; then :
7056 enableval=$enable_vtable_verify; case "$enableval" in
7057 yes) enable_vtable_verify=yes ;;
7058 no) enable_vtable_verify=no ;;
7059 *) enable_vtable_verify=no;;
7060 esac
7061 else
7062 enable_vtable_verify=no
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7066 $as_echo "$enable_vtable_verify" >&6; }
7068 # Record target_configdirs and the configure arguments for target and
7069 # build configuration in Makefile.
7070 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7071 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7072 bootstrap_fixincludes=no
7074 # If we are building libgomp, bootstrap it.
7075 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7076 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7079 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7080 # or bootstrap-ubsan, bootstrap it.
7081 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7082 case "$BUILD_CONFIG" in
7083 *bootstrap-asan* | *bootstrap-ubsan* )
7084 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7085 bootstrap_fixincludes=yes
7087 esac
7090 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7091 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7092 test "$enable_vtable_verify" != no; then
7093 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7096 # If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7097 # bootstrap it.
7098 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7099 case "$BUILD_CONFIG" in
7100 *bootstrap-mpx* )
7101 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7103 esac
7106 # Determine whether gdb needs tk/tcl or not.
7107 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7108 # and in that case we want gdb to be built without tk. Ugh!
7109 # In fact I believe gdb is the *only* package directly dependent on tk,
7110 # so we should be able to put the 'maybe's in unconditionally and
7111 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7112 # 100% sure that that's safe though.
7114 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7115 case "$enable_gdbtk" in
7117 GDB_TK="" ;;
7118 yes)
7119 GDB_TK="${gdb_tk}" ;;
7121 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7122 # distro. Eventually someone will fix this and move Insight, nee
7123 # gdbtk to a separate directory.
7124 if test -d ${srcdir}/gdb/gdbtk ; then
7125 GDB_TK="${gdb_tk}"
7126 else
7127 GDB_TK=""
7130 esac
7131 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7132 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7134 # Strip out unwanted targets.
7136 # While at that, we remove Makefiles if we were started for recursive
7137 # configuration, so that the top-level Makefile reconfigures them,
7138 # like we used to do when configure itself was recursive.
7140 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7141 # but now we're fixing up the Makefile ourselves with the additional
7142 # commands passed to AC_CONFIG_FILES. Use separate variables
7143 # extrasub-{build,host,target} not because there is any reason to split
7144 # the substitutions up that way, but only to remain below the limit of
7145 # 99 commands in a script, for HP-UX sed.
7146 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7148 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7149 yes:yes:*\ gold\ *:*,c++,*) ;;
7150 yes:yes:*\ gold\ *:*)
7151 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7153 esac
7155 extrasub_build=
7156 for module in ${build_configdirs} ; do
7157 if test -z "${no_recursion}" \
7158 && test -f ${build_subdir}/${module}/Makefile; then
7159 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7160 rm -f ${build_subdir}/${module}/Makefile
7162 extrasub_build="$extrasub_build
7163 /^@if build-$module\$/d
7164 /^@endif build-$module\$/d
7165 /^@if build-$module-$bootstrap_suffix\$/d
7166 /^@endif build-$module-$bootstrap_suffix\$/d"
7167 done
7168 extrasub_host=
7169 for module in ${configdirs} ; do
7170 if test -z "${no_recursion}"; then
7171 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7172 if test -f ${file}; then
7173 echo 1>&2 "*** removing ${file} to force reconfigure"
7174 rm -f ${file}
7176 done
7178 case ${module},${bootstrap_fixincludes} in
7179 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7180 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7181 esac
7182 extrasub_host="$extrasub_host
7183 /^@if $module\$/d
7184 /^@endif $module\$/d
7185 /^@if $module-$host_bootstrap_suffix\$/d
7186 /^@endif $module-$host_bootstrap_suffix\$/d"
7187 done
7188 extrasub_target=
7189 for module in ${target_configdirs} ; do
7190 if test -z "${no_recursion}" \
7191 && test -f ${target_subdir}/${module}/Makefile; then
7192 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7193 rm -f ${target_subdir}/${module}/Makefile
7196 # We only bootstrap target libraries listed in bootstrap_target_libs.
7197 case $bootstrap_target_libs in
7198 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7199 *) target_bootstrap_suffix=no-bootstrap ;;
7200 esac
7202 extrasub_target="$extrasub_target
7203 /^@if target-$module\$/d
7204 /^@endif target-$module\$/d
7205 /^@if target-$module-$target_bootstrap_suffix\$/d
7206 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7207 done
7209 # Do the final fixup along with target modules.
7210 extrasub_target="$extrasub_target
7211 /^@if /,/^@endif /d"
7213 # Create the serialization dependencies. This uses a temporary file.
7215 # Check whether --enable-serial-configure was given.
7216 if test "${enable_serial_configure+set}" = set; then :
7217 enableval=$enable_serial_configure;
7221 case ${enable_serial_configure} in
7222 yes)
7223 enable_serial_build_configure=yes
7224 enable_serial_host_configure=yes
7225 enable_serial_target_configure=yes
7227 esac
7229 # These force 'configure's to be done one at a time, to avoid problems
7230 # with contention over a shared config.cache.
7231 rm -f serdep.tmp
7232 echo '# serdep.tmp' > serdep.tmp
7233 olditem=
7234 test "x${enable_serial_build_configure}" = xyes &&
7235 for item in ${build_configdirs} ; do
7236 case ${olditem} in
7237 "") ;;
7238 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7239 esac
7240 olditem=${item}
7241 done
7242 olditem=
7243 test "x${enable_serial_host_configure}" = xyes &&
7244 for item in ${configdirs} ; do
7245 case ${olditem} in
7246 "") ;;
7247 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7248 esac
7249 olditem=${item}
7250 done
7251 olditem=
7252 test "x${enable_serial_target_configure}" = xyes &&
7253 for item in ${target_configdirs} ; do
7254 case ${olditem} in
7255 "") ;;
7256 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7257 esac
7258 olditem=${item}
7259 done
7260 serialization_dependencies=serdep.tmp
7263 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7264 # target, nonopt, and variable assignments. These are the ones we
7265 # might not want to pass down to subconfigures. The exception being
7266 # --cache-file=/dev/null, which is used to turn off the use of cache
7267 # files altogether, and which should be passed on to subconfigures.
7268 # Also strip program-prefix, program-suffix, and program-transform-name,
7269 # so that we can pass down a consistent program-transform-name.
7270 baseargs=
7271 tbaseargs=
7272 keep_next=no
7273 skip_next=no
7274 eval "set -- $ac_configure_args"
7275 for ac_arg
7277 if test X"$skip_next" = X"yes"; then
7278 skip_next=no
7279 continue
7281 if test X"$keep_next" = X"yes"; then
7282 case $ac_arg in
7283 *\'*)
7284 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7285 esac
7286 baseargs="$baseargs '$ac_arg'"
7287 tbaseargs="$tbaseargs '$ac_arg'"
7288 keep_next=no
7289 continue
7292 # Handle separated arguments. Based on the logic generated by
7293 # autoconf 2.59.
7294 case $ac_arg in
7295 *=* | --config-cache | -C | -disable-* | --disable-* \
7296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7298 | -with-* | --with-* | -without-* | --without-* | --x)
7299 separate_arg=no
7302 separate_arg=yes
7305 separate_arg=no
7307 esac
7309 skip_targ=no
7310 case $ac_arg in
7312 --with-* | --without-*)
7313 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7315 case $libopt in
7316 *[-_]include)
7317 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7319 *[-_]lib)
7320 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7323 lib=$libopt
7325 esac
7328 case $lib in
7329 mpc | mpfr | gmp | isl)
7330 # If we're processing --with-$lib, --with-$lib-include or
7331 # --with-$lib-lib, for one of the libs above, and target is
7332 # different from host, don't pass the current argument to any
7333 # target library's configure.
7334 if test x$is_cross_compiler = xyes; then
7335 skip_targ=yes
7338 esac
7340 esac
7342 case "$ac_arg" in
7343 --cache-file=/dev/null | \
7344 -cache-file=/dev/null )
7345 # Handled here to avoid the test to skip args below.
7346 baseargs="$baseargs '$ac_arg'"
7347 tbaseargs="$tbaseargs '$ac_arg'"
7348 # Assert: $separate_arg should always be no.
7349 keep_next=$separate_arg
7351 --no*)
7352 continue
7354 --c* | \
7355 --sr* | \
7356 --ho* | \
7357 --bu* | \
7358 --t* | \
7359 --program-* | \
7360 -cache_file* | \
7361 -srcdir* | \
7362 -host* | \
7363 -build* | \
7364 -target* | \
7365 -program-prefix* | \
7366 -program-suffix* | \
7367 -program-transform-name* )
7368 skip_next=$separate_arg
7369 continue
7372 # An option. Add it.
7373 case $ac_arg in
7374 *\'*)
7375 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7376 esac
7377 baseargs="$baseargs '$ac_arg'"
7378 if test X"$skip_targ" = Xno; then
7379 tbaseargs="$tbaseargs '$ac_arg'"
7381 keep_next=$separate_arg
7384 # Either a variable assignment, or a nonopt (triplet). Don't
7385 # pass it down; let the Makefile handle this.
7386 continue
7388 esac
7389 done
7390 # Remove the initial space we just introduced and, as these will be
7391 # expanded by make, quote '$'.
7392 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7394 # Add in --program-transform-name, after --program-prefix and
7395 # --program-suffix have been applied to it. Autoconf has already
7396 # doubled dollar signs and backslashes in program_transform_name; we want
7397 # the backslashes un-doubled, and then the entire thing wrapped in single
7398 # quotes, because this will be expanded first by make and then by the shell.
7399 # Also, because we want to override the logic in subdir configure scripts to
7400 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7401 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7402 ${program_transform_name}
7403 EOF_SED
7404 gcc_transform_name=`cat conftestsed.out`
7405 rm -f conftestsed.out
7406 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7407 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7408 if test "$silent" = yes; then
7409 baseargs="$baseargs --silent"
7410 tbaseargs="$tbaseargs --silent"
7412 baseargs="$baseargs --disable-option-checking"
7413 tbaseargs="$tbaseargs --disable-option-checking"
7415 # Record and document user additions to sub configure arguments.
7420 # For the build-side libraries, we just need to pretend we're native,
7421 # and not use the same cache file. Multilibs are neither needed nor
7422 # desired. We can't even use the same cache file for all build-side
7423 # libraries, as they're compiled differently; some with C, some with
7424 # C++ or with different feature-enabling options.
7425 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7427 # For host modules, accept cache file option, or specification as blank.
7428 case "${cache_file}" in
7429 "") # empty
7430 cache_file_option="" ;;
7431 /* | [A-Za-z]:[\\/]* ) # absolute path
7432 cache_file_option="--cache-file=${cache_file}" ;;
7433 *) # relative path
7434 cache_file_option="--cache-file=../${cache_file}" ;;
7435 esac
7437 # Host dirs don't like to share a cache file either, horribly enough.
7438 # This seems to be due to autoconf 2.5x stupidity.
7439 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7441 target_configargs="$target_configargs ${tbaseargs}"
7443 # Passing a --with-cross-host argument lets the target libraries know
7444 # whether they are being built with a cross-compiler or being built
7445 # native. However, it would be better to use other mechanisms to make the
7446 # sorts of decisions they want to make on this basis. Please consider
7447 # this option to be deprecated. FIXME.
7448 if test x${is_cross_compiler} = xyes ; then
7449 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7452 # Special user-friendly check for native x86_64-linux build, if
7453 # multilib is not explicitly enabled.
7454 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7455 x86_64-*linux*:yes:$build:$build:)
7456 # Make sure we have a development environment that handles 32-bit
7457 dev64=no
7458 echo "int main () { return 0; }" > conftest.c
7459 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7460 if test $? = 0 ; then
7461 if test -s conftest || test -s conftest.exe ; then
7462 dev64=yes
7465 rm -f conftest*
7466 if test x${dev64} != xyes ; then
7467 as_fn_error "I suspect your system does not have 32-bit development 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
7470 esac
7472 # Default to --enable-multilib.
7473 if test x${enable_multilib} = x ; then
7474 target_configargs="--enable-multilib ${target_configargs}"
7477 # Pass --with-newlib if appropriate. Note that target_configdirs has
7478 # changed from the earlier setting of with_newlib.
7479 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7480 target_configargs="--with-newlib ${target_configargs}"
7483 # Different target subdirs use different values of certain variables
7484 # (notably CXX). Worse, multilibs use *lots* of different values.
7485 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7486 # it doesn't automatically accept command-line overrides of them.
7487 # This means it's not safe for target subdirs to share a cache file,
7488 # which is disgusting, but there you have it. Hopefully this can be
7489 # fixed in future. It's still worthwhile to use a cache file for each
7490 # directory. I think.
7492 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7493 # We need to pass --target, as newer autoconf's requires consistency
7494 # for target_alias and gcc doesn't manage it consistently.
7495 target_configargs="--cache-file=./config.cache ${target_configargs}"
7497 FLAGS_FOR_TARGET=
7498 case " $target_configdirs " in
7499 *" newlib "*)
7500 case " $target_configargs " in
7501 *" --with-newlib "*)
7502 case "$target" in
7503 *-cygwin*)
7504 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7506 esac
7508 # If we're not building GCC, don't discard standard headers.
7509 if test -d ${srcdir}/gcc; then
7510 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7512 if test "${build}" != "${host}"; then
7513 # On Canadian crosses, CC_FOR_TARGET will have already been set
7514 # by `configure', so we won't have an opportunity to add -Bgcc/
7515 # to it. This is right: we don't want to search that directory
7516 # for binaries, but we want the header files in there, so add
7517 # them explicitly.
7518 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7520 # Someone might think of using the pre-installed headers on
7521 # Canadian crosses, in case the installed compiler is not fully
7522 # compatible with the compiler being built. In this case, it
7523 # would be better to flag an error than risking having
7524 # incompatible object files being constructed. We can't
7525 # guarantee that an error will be flagged, but let's hope the
7526 # compiler will do it, when presented with incompatible header
7527 # files.
7531 case "${target}-${is_cross_compiler}" in
7532 i[3456789]86-*-linux*-no)
7533 # Here host == target, so we don't need to build gcc,
7534 # so we don't want to discard standard headers.
7535 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7538 # If we're building newlib, use its generic headers last, but search
7539 # for any libc-related directories first (so make it the last -B
7540 # switch).
7541 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7543 # If we're building libgloss, find the startup file, simulator library
7544 # and linker script.
7545 case " $target_configdirs " in
7546 *" libgloss "*)
7547 # Look for startup file, simulator library and maybe linker script.
7548 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7549 # Look for libnosys.a in case the target needs it.
7550 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7551 # Most targets have the linker script in the source directory.
7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7554 esac
7556 esac
7558 esac
7560 esac
7562 case "$target" in
7563 x86_64-*mingw* | *-w64-mingw*)
7564 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7565 # however, use a symlink named 'mingw' in ${prefix} .
7566 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7568 *-mingw*)
7569 # MinGW can't be handled as Cygwin above since it does not use newlib.
7570 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'
7572 esac
7574 # Allow the user to override the flags for
7575 # our build compiler if desired.
7576 if test x"${build}" = x"${host}" ; then
7577 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7578 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7579 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7582 # On Canadian crosses, we'll be searching the right directories for
7583 # the previously-installed cross compiler, so don't bother to add
7584 # flags for directories within the install tree of the compiler
7585 # being built; programs in there won't even run.
7586 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7587 # Search for pre-installed headers if nothing else fits.
7588 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7591 if test "x${use_gnu_ld}" = x &&
7592 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7593 # Arrange for us to find uninstalled linker scripts.
7594 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7597 # Search for other target-specific linker scripts and such.
7598 case "${target}" in
7599 mep*)
7600 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7602 esac
7604 # Makefile fragments.
7605 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7607 eval fragval=\$$frag
7608 if test $fragval != /dev/null; then
7609 eval $frag=${srcdir}/$fragval
7611 done
7617 # Miscellanea: directories, flags, etc.
7626 # Build module lists & subconfigure args.
7630 # Host module lists & subconfigure args.
7635 # Target module lists & subconfigure args.
7639 # Build tools.
7656 # Generate default definitions for YACC, M4, LEX and other programs that run
7657 # on the build machine. These are used if the Makefile can't locate these
7658 # programs in objdir.
7659 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7661 for ac_prog in 'bison -y' byacc yacc
7663 # Extract the first word of "$ac_prog", so it can be a program name with args.
7664 set dummy $ac_prog; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if test "${ac_cv_prog_YACC+set}" = set; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 if test -n "$YACC"; then
7671 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7680 ac_cv_prog_YACC="$ac_prog"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7684 done
7685 done
7686 IFS=$as_save_IFS
7690 YACC=$ac_cv_prog_YACC
7691 if test -n "$YACC"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7693 $as_echo "$YACC" >&6; }
7694 else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7700 test -n "$YACC" && break
7701 done
7702 test -n "$YACC" || YACC="$MISSING bison -y"
7704 case " $build_configdirs " in
7705 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7706 esac
7708 for ac_prog in bison
7710 # Extract the first word of "$ac_prog", so it can be a program name with args.
7711 set dummy $ac_prog; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_BISON+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 if test -n "$BISON"; then
7718 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_prog_BISON="$ac_prog"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7731 done
7732 done
7733 IFS=$as_save_IFS
7737 BISON=$ac_cv_prog_BISON
7738 if test -n "$BISON"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7740 $as_echo "$BISON" >&6; }
7741 else
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7747 test -n "$BISON" && break
7748 done
7749 test -n "$BISON" || BISON="$MISSING bison"
7751 case " $build_configdirs " in
7752 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7753 esac
7755 for ac_prog in gm4 gnum4 m4
7757 # Extract the first word of "$ac_prog", so it can be a program name with args.
7758 set dummy $ac_prog; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if test "${ac_cv_prog_M4+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$M4"; then
7765 ac_cv_prog_M4="$M4" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_prog_M4="$ac_prog"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7778 done
7779 done
7780 IFS=$as_save_IFS
7784 M4=$ac_cv_prog_M4
7785 if test -n "$M4"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7787 $as_echo "$M4" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7794 test -n "$M4" && break
7795 done
7796 test -n "$M4" || M4="$MISSING m4"
7798 case " $build_configdirs " in
7799 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7800 esac
7802 for ac_prog in flex lex
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_prog_LEX+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 if test -n "$LEX"; then
7812 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_prog_LEX="$ac_prog"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7825 done
7826 done
7827 IFS=$as_save_IFS
7831 LEX=$ac_cv_prog_LEX
7832 if test -n "$LEX"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7834 $as_echo "$LEX" >&6; }
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7841 test -n "$LEX" && break
7842 done
7843 test -n "$LEX" || LEX="$MISSING flex"
7845 case " $build_configdirs " in
7846 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7847 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7848 esac
7850 for ac_prog in flex
7852 # Extract the first word of "$ac_prog", so it can be a program name with args.
7853 set dummy $ac_prog; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_prog_FLEX+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 if test -n "$FLEX"; then
7860 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869 ac_cv_prog_FLEX="$ac_prog"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7873 done
7874 done
7875 IFS=$as_save_IFS
7879 FLEX=$ac_cv_prog_FLEX
7880 if test -n "$FLEX"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7882 $as_echo "$FLEX" >&6; }
7883 else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7889 test -n "$FLEX" && break
7890 done
7891 test -n "$FLEX" || FLEX="$MISSING flex"
7893 case " $build_configdirs " in
7894 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7895 esac
7897 for ac_prog in makeinfo
7899 # Extract the first word of "$ac_prog", so it can be a program name with args.
7900 set dummy $ac_prog; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$MAKEINFO"; then
7907 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_prog_MAKEINFO="$ac_prog"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7920 done
7921 done
7922 IFS=$as_save_IFS
7926 MAKEINFO=$ac_cv_prog_MAKEINFO
7927 if test -n "$MAKEINFO"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7929 $as_echo "$MAKEINFO" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7936 test -n "$MAKEINFO" && break
7937 done
7938 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7940 case " $build_configdirs " in
7941 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7944 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7945 # higher, else we use the "missing" dummy.
7946 if ${MAKEINFO} --version \
7947 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7949 else
7950 MAKEINFO="$MISSING makeinfo"
7954 esac
7956 # FIXME: expect and dejagnu may become build tools?
7958 for ac_prog in expect
7960 # Extract the first word of "$ac_prog", so it can be a program name with args.
7961 set dummy $ac_prog; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 if test -n "$EXPECT"; then
7968 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7969 else
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7977 ac_cv_prog_EXPECT="$ac_prog"
7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7981 done
7982 done
7983 IFS=$as_save_IFS
7987 EXPECT=$ac_cv_prog_EXPECT
7988 if test -n "$EXPECT"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7990 $as_echo "$EXPECT" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7997 test -n "$EXPECT" && break
7998 done
7999 test -n "$EXPECT" || EXPECT="expect"
8001 case " $configdirs " in
8002 *" expect "*)
8003 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8005 esac
8007 for ac_prog in runtest
8009 # Extract the first word of "$ac_prog", so it can be a program name with args.
8010 set dummy $ac_prog; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 if test -n "$RUNTEST"; then
8017 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026 ac_cv_prog_RUNTEST="$ac_prog"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8030 done
8031 done
8032 IFS=$as_save_IFS
8036 RUNTEST=$ac_cv_prog_RUNTEST
8037 if test -n "$RUNTEST"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8039 $as_echo "$RUNTEST" >&6; }
8040 else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8046 test -n "$RUNTEST" && break
8047 done
8048 test -n "$RUNTEST" || RUNTEST="runtest"
8050 case " $configdirs " in
8051 *" dejagnu "*)
8052 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8054 esac
8057 # Host tools.
8058 ncn_tool_prefix=
8059 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8060 ncn_target_tool_prefix=
8061 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8065 if test -n "$AR"; then
8066 ac_cv_prog_AR=$AR
8067 elif test -n "$ac_cv_prog_AR"; then
8068 AR=$ac_cv_prog_AR
8071 if test -n "$ac_cv_prog_AR"; then
8072 for ncn_progname in ar; do
8073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8074 set dummy ${ncn_progname}; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if test "${ac_cv_prog_AR+set}" = set; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 if test -n "$AR"; then
8081 ac_cv_prog_AR="$AR" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8090 ac_cv_prog_AR="${ncn_progname}"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8094 done
8095 done
8096 IFS=$as_save_IFS
8100 AR=$ac_cv_prog_AR
8101 if test -n "$AR"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8103 $as_echo "$AR" >&6; }
8104 else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8110 done
8113 for ncn_progname in ar; do
8114 if test -n "$ncn_tool_prefix"; then
8115 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8116 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if test "${ac_cv_prog_AR+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 if test -n "$AR"; then
8123 ac_cv_prog_AR="$AR" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8136 done
8137 done
8138 IFS=$as_save_IFS
8142 AR=$ac_cv_prog_AR
8143 if test -n "$AR"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8145 $as_echo "$AR" >&6; }
8146 else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8153 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8155 set dummy ${ncn_progname}; ac_word=$2
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157 $as_echo_n "checking for $ac_word... " >&6; }
8158 if test "${ac_cv_prog_AR+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 if test -n "$AR"; then
8162 ac_cv_prog_AR="$AR" # Let the user override the test.
8163 else
8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8171 ac_cv_prog_AR="${ncn_progname}"
8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 break 2
8175 done
8176 done
8177 IFS=$as_save_IFS
8181 AR=$ac_cv_prog_AR
8182 if test -n "$AR"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8184 $as_echo "$AR" >&6; }
8185 else
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 $as_echo "no" >&6; }
8192 test -n "$ac_cv_prog_AR" && break
8193 done
8195 if test -z "$ac_cv_prog_AR" ; then
8196 set dummy ar
8197 if test $build = $host ; then
8198 AR="$2"
8199 else
8200 AR="${ncn_tool_prefix}$2"
8206 if test -n "$AS"; then
8207 ac_cv_prog_AS=$AS
8208 elif test -n "$ac_cv_prog_AS"; then
8209 AS=$ac_cv_prog_AS
8212 if test -n "$ac_cv_prog_AS"; then
8213 for ncn_progname in as; do
8214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8215 set dummy ${ncn_progname}; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_prog_AS+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 if test -n "$AS"; then
8222 ac_cv_prog_AS="$AS" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_prog_AS="${ncn_progname}"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8235 done
8236 done
8237 IFS=$as_save_IFS
8241 AS=$ac_cv_prog_AS
8242 if test -n "$AS"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8244 $as_echo "$AS" >&6; }
8245 else
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8251 done
8254 for ncn_progname in as; do
8255 if test -n "$ncn_tool_prefix"; then
8256 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8257 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_AS+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 if test -n "$AS"; then
8264 ac_cv_prog_AS="$AS" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8277 done
8278 done
8279 IFS=$as_save_IFS
8283 AS=$ac_cv_prog_AS
8284 if test -n "$AS"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8286 $as_echo "$AS" >&6; }
8287 else
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8294 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8296 set dummy ${ncn_progname}; ac_word=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if test "${ac_cv_prog_AS+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 if test -n "$AS"; then
8303 ac_cv_prog_AS="$AS" # Let the user override the test.
8304 else
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 ac_cv_prog_AS="${ncn_progname}"
8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8316 done
8317 done
8318 IFS=$as_save_IFS
8322 AS=$ac_cv_prog_AS
8323 if test -n "$AS"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8325 $as_echo "$AS" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8333 test -n "$ac_cv_prog_AS" && break
8334 done
8336 if test -z "$ac_cv_prog_AS" ; then
8337 set dummy as
8338 if test $build = $host ; then
8339 AS="$2"
8340 else
8341 AS="${ncn_tool_prefix}$2"
8347 if test -n "$DLLTOOL"; then
8348 ac_cv_prog_DLLTOOL=$DLLTOOL
8349 elif test -n "$ac_cv_prog_DLLTOOL"; then
8350 DLLTOOL=$ac_cv_prog_DLLTOOL
8353 if test -n "$ac_cv_prog_DLLTOOL"; then
8354 for ncn_progname in dlltool; do
8355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8356 set dummy ${ncn_progname}; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 if test -n "$DLLTOOL"; then
8363 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_DLLTOOL="${ncn_progname}"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8376 done
8377 done
8378 IFS=$as_save_IFS
8382 DLLTOOL=$ac_cv_prog_DLLTOOL
8383 if test -n "$DLLTOOL"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8385 $as_echo "$DLLTOOL" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8392 done
8395 for ncn_progname in dlltool; do
8396 if test -n "$ncn_tool_prefix"; then
8397 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8398 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 if test -n "$DLLTOOL"; then
8405 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8418 done
8419 done
8420 IFS=$as_save_IFS
8424 DLLTOOL=$ac_cv_prog_DLLTOOL
8425 if test -n "$DLLTOOL"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8427 $as_echo "$DLLTOOL" >&6; }
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8435 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8437 set dummy ${ncn_progname}; ac_word=$2
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 $as_echo_n "checking for $ac_word... " >&6; }
8440 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 if test -n "$DLLTOOL"; then
8444 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8445 else
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $PATH
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8453 ac_cv_prog_DLLTOOL="${ncn_progname}"
8454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 break 2
8457 done
8458 done
8459 IFS=$as_save_IFS
8463 DLLTOOL=$ac_cv_prog_DLLTOOL
8464 if test -n "$DLLTOOL"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8466 $as_echo "$DLLTOOL" >&6; }
8467 else
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8474 test -n "$ac_cv_prog_DLLTOOL" && break
8475 done
8477 if test -z "$ac_cv_prog_DLLTOOL" ; then
8478 set dummy dlltool
8479 if test $build = $host ; then
8480 DLLTOOL="$2"
8481 else
8482 DLLTOOL="${ncn_tool_prefix}$2"
8488 if test -n "$LD"; then
8489 ac_cv_prog_LD=$LD
8490 elif test -n "$ac_cv_prog_LD"; then
8491 LD=$ac_cv_prog_LD
8494 if test -n "$ac_cv_prog_LD"; then
8495 for ncn_progname in ld; do
8496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8497 set dummy ${ncn_progname}; ac_word=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if test "${ac_cv_prog_LD+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 if test -n "$LD"; then
8504 ac_cv_prog_LD="$LD" # Let the user override the test.
8505 else
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8513 ac_cv_prog_LD="${ncn_progname}"
8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8517 done
8518 done
8519 IFS=$as_save_IFS
8523 LD=$ac_cv_prog_LD
8524 if test -n "$LD"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8526 $as_echo "$LD" >&6; }
8527 else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8533 done
8536 for ncn_progname in ld; do
8537 if test -n "$ncn_tool_prefix"; then
8538 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8539 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if test "${ac_cv_prog_LD+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8545 if test -n "$LD"; then
8546 ac_cv_prog_LD="$LD" # Let the user override the test.
8547 else
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8559 done
8560 done
8561 IFS=$as_save_IFS
8565 LD=$ac_cv_prog_LD
8566 if test -n "$LD"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8568 $as_echo "$LD" >&6; }
8569 else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8576 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8578 set dummy ${ncn_progname}; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if test "${ac_cv_prog_LD+set}" = set; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 if test -n "$LD"; then
8585 ac_cv_prog_LD="$LD" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8594 ac_cv_prog_LD="${ncn_progname}"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 break 2
8598 done
8599 done
8600 IFS=$as_save_IFS
8604 LD=$ac_cv_prog_LD
8605 if test -n "$LD"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8607 $as_echo "$LD" >&6; }
8608 else
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8615 test -n "$ac_cv_prog_LD" && break
8616 done
8618 if test -z "$ac_cv_prog_LD" ; then
8619 set dummy ld
8620 if test $build = $host ; then
8621 LD="$2"
8622 else
8623 LD="${ncn_tool_prefix}$2"
8629 if test -n "$LIPO"; then
8630 ac_cv_prog_LIPO=$LIPO
8631 elif test -n "$ac_cv_prog_LIPO"; then
8632 LIPO=$ac_cv_prog_LIPO
8635 if test -n "$ac_cv_prog_LIPO"; then
8636 for ncn_progname in lipo; do
8637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8638 set dummy ${ncn_progname}; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if test "${ac_cv_prog_LIPO+set}" = set; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 if test -n "$LIPO"; then
8645 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8646 else
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_prog_LIPO="${ncn_progname}"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8658 done
8659 done
8660 IFS=$as_save_IFS
8664 LIPO=$ac_cv_prog_LIPO
8665 if test -n "$LIPO"; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8667 $as_echo "$LIPO" >&6; }
8668 else
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8674 done
8677 for ncn_progname in lipo; do
8678 if test -n "$ncn_tool_prefix"; then
8679 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8680 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 $as_echo_n "checking for $ac_word... " >&6; }
8683 if test "${ac_cv_prog_LIPO+set}" = set; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 if test -n "$LIPO"; then
8687 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8688 else
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8692 IFS=$as_save_IFS
8693 test -z "$as_dir" && as_dir=.
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8696 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698 break 2
8700 done
8701 done
8702 IFS=$as_save_IFS
8706 LIPO=$ac_cv_prog_LIPO
8707 if test -n "$LIPO"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8709 $as_echo "$LIPO" >&6; }
8710 else
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8717 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8719 set dummy ${ncn_progname}; ac_word=$2
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721 $as_echo_n "checking for $ac_word... " >&6; }
8722 if test "${ac_cv_prog_LIPO+set}" = set; then :
8723 $as_echo_n "(cached) " >&6
8724 else
8725 if test -n "$LIPO"; then
8726 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8727 else
8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729 for as_dir in $PATH
8731 IFS=$as_save_IFS
8732 test -z "$as_dir" && as_dir=.
8733 for ac_exec_ext in '' $ac_executable_extensions; do
8734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8735 ac_cv_prog_LIPO="${ncn_progname}"
8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 break 2
8739 done
8740 done
8741 IFS=$as_save_IFS
8745 LIPO=$ac_cv_prog_LIPO
8746 if test -n "$LIPO"; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8748 $as_echo "$LIPO" >&6; }
8749 else
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751 $as_echo "no" >&6; }
8756 test -n "$ac_cv_prog_LIPO" && break
8757 done
8759 if test -z "$ac_cv_prog_LIPO" ; then
8760 set dummy lipo
8761 if test $build = $host ; then
8762 LIPO="$2"
8763 else
8764 LIPO="${ncn_tool_prefix}$2"
8770 if test -n "$NM"; then
8771 ac_cv_prog_NM=$NM
8772 elif test -n "$ac_cv_prog_NM"; then
8773 NM=$ac_cv_prog_NM
8776 if test -n "$ac_cv_prog_NM"; then
8777 for ncn_progname in nm; do
8778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8779 set dummy ${ncn_progname}; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if test "${ac_cv_prog_NM+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 if test -n "$NM"; then
8786 ac_cv_prog_NM="$NM" # Let the user override the test.
8787 else
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8795 ac_cv_prog_NM="${ncn_progname}"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8799 done
8800 done
8801 IFS=$as_save_IFS
8805 NM=$ac_cv_prog_NM
8806 if test -n "$NM"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8808 $as_echo "$NM" >&6; }
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8815 done
8818 for ncn_progname in nm; do
8819 if test -n "$ncn_tool_prefix"; then
8820 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8821 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 $as_echo_n "checking for $ac_word... " >&6; }
8824 if test "${ac_cv_prog_NM+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 if test -n "$NM"; then
8828 ac_cv_prog_NM="$NM" # Let the user override the test.
8829 else
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 for as_dir in $PATH
8833 IFS=$as_save_IFS
8834 test -z "$as_dir" && as_dir=.
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8837 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 break 2
8841 done
8842 done
8843 IFS=$as_save_IFS
8847 NM=$ac_cv_prog_NM
8848 if test -n "$NM"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8850 $as_echo "$NM" >&6; }
8851 else
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8858 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8860 set dummy ${ncn_progname}; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if test "${ac_cv_prog_NM+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 if test -n "$NM"; then
8867 ac_cv_prog_NM="$NM" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876 ac_cv_prog_NM="${ncn_progname}"
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 break 2
8880 done
8881 done
8882 IFS=$as_save_IFS
8886 NM=$ac_cv_prog_NM
8887 if test -n "$NM"; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8889 $as_echo "$NM" >&6; }
8890 else
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8897 test -n "$ac_cv_prog_NM" && break
8898 done
8900 if test -z "$ac_cv_prog_NM" ; then
8901 set dummy nm
8902 if test $build = $host ; then
8903 NM="$2"
8904 else
8905 NM="${ncn_tool_prefix}$2"
8911 if test -n "$RANLIB"; then
8912 ac_cv_prog_RANLIB=$RANLIB
8913 elif test -n "$ac_cv_prog_RANLIB"; then
8914 RANLIB=$ac_cv_prog_RANLIB
8917 if test -n "$ac_cv_prog_RANLIB"; then
8918 for ncn_progname in ranlib; do
8919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8920 set dummy ${ncn_progname}; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 if test -n "$RANLIB"; then
8927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8928 else
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936 ac_cv_prog_RANLIB="${ncn_progname}"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 break 2
8940 done
8941 done
8942 IFS=$as_save_IFS
8946 RANLIB=$ac_cv_prog_RANLIB
8947 if test -n "$RANLIB"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8949 $as_echo "$RANLIB" >&6; }
8950 else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8956 done
8959 for ncn_progname in ranlib; do
8960 if test -n "$ncn_tool_prefix"; then
8961 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8962 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964 $as_echo_n "checking for $ac_word... " >&6; }
8965 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 if test -n "$RANLIB"; then
8969 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8970 else
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8978 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8982 done
8983 done
8984 IFS=$as_save_IFS
8988 RANLIB=$ac_cv_prog_RANLIB
8989 if test -n "$RANLIB"; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8991 $as_echo "$RANLIB" >&6; }
8992 else
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8999 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9001 set dummy ${ncn_progname}; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 if test -n "$RANLIB"; then
9008 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9009 else
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 for as_dir in $PATH
9013 IFS=$as_save_IFS
9014 test -z "$as_dir" && as_dir=.
9015 for ac_exec_ext in '' $ac_executable_extensions; do
9016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9017 ac_cv_prog_RANLIB="${ncn_progname}"
9018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 break 2
9021 done
9022 done
9023 IFS=$as_save_IFS
9027 RANLIB=$ac_cv_prog_RANLIB
9028 if test -n "$RANLIB"; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9030 $as_echo "$RANLIB" >&6; }
9031 else
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033 $as_echo "no" >&6; }
9038 test -n "$ac_cv_prog_RANLIB" && break
9039 done
9041 if test -z "$ac_cv_prog_RANLIB" ; then
9042 RANLIB="true"
9047 if test -n "$STRIP"; then
9048 ac_cv_prog_STRIP=$STRIP
9049 elif test -n "$ac_cv_prog_STRIP"; then
9050 STRIP=$ac_cv_prog_STRIP
9053 if test -n "$ac_cv_prog_STRIP"; then
9054 for ncn_progname in strip; do
9055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9056 set dummy ${ncn_progname}; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if test "${ac_cv_prog_STRIP+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 if test -n "$STRIP"; then
9063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9064 else
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9072 ac_cv_prog_STRIP="${ncn_progname}"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074 break 2
9076 done
9077 done
9078 IFS=$as_save_IFS
9082 STRIP=$ac_cv_prog_STRIP
9083 if test -n "$STRIP"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9085 $as_echo "$STRIP" >&6; }
9086 else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9092 done
9095 for ncn_progname in strip; do
9096 if test -n "$ncn_tool_prefix"; then
9097 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9098 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100 $as_echo_n "checking for $ac_word... " >&6; }
9101 if test "${ac_cv_prog_STRIP+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 if test -n "$STRIP"; then
9105 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9106 else
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9114 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9116 break 2
9118 done
9119 done
9120 IFS=$as_save_IFS
9124 STRIP=$ac_cv_prog_STRIP
9125 if test -n "$STRIP"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9127 $as_echo "$STRIP" >&6; }
9128 else
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9135 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9137 set dummy ${ncn_progname}; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if test "${ac_cv_prog_STRIP+set}" = set; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 if test -n "$STRIP"; then
9144 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9145 else
9146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147 for as_dir in $PATH
9149 IFS=$as_save_IFS
9150 test -z "$as_dir" && as_dir=.
9151 for ac_exec_ext in '' $ac_executable_extensions; do
9152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9153 ac_cv_prog_STRIP="${ncn_progname}"
9154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155 break 2
9157 done
9158 done
9159 IFS=$as_save_IFS
9163 STRIP=$ac_cv_prog_STRIP
9164 if test -n "$STRIP"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9166 $as_echo "$STRIP" >&6; }
9167 else
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9174 test -n "$ac_cv_prog_STRIP" && break
9175 done
9177 if test -z "$ac_cv_prog_STRIP" ; then
9178 STRIP="true"
9183 if test -n "$WINDRES"; then
9184 ac_cv_prog_WINDRES=$WINDRES
9185 elif test -n "$ac_cv_prog_WINDRES"; then
9186 WINDRES=$ac_cv_prog_WINDRES
9189 if test -n "$ac_cv_prog_WINDRES"; then
9190 for ncn_progname in windres; do
9191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9192 set dummy ${ncn_progname}; ac_word=$2
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9194 $as_echo_n "checking for $ac_word... " >&6; }
9195 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 if test -n "$WINDRES"; then
9199 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9200 else
9201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202 for as_dir in $PATH
9204 IFS=$as_save_IFS
9205 test -z "$as_dir" && as_dir=.
9206 for ac_exec_ext in '' $ac_executable_extensions; do
9207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9208 ac_cv_prog_WINDRES="${ncn_progname}"
9209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9210 break 2
9212 done
9213 done
9214 IFS=$as_save_IFS
9218 WINDRES=$ac_cv_prog_WINDRES
9219 if test -n "$WINDRES"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9221 $as_echo "$WINDRES" >&6; }
9222 else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9228 done
9231 for ncn_progname in windres; do
9232 if test -n "$ncn_tool_prefix"; then
9233 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9234 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236 $as_echo_n "checking for $ac_word... " >&6; }
9237 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 if test -n "$WINDRES"; then
9241 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9242 else
9243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244 for as_dir in $PATH
9246 IFS=$as_save_IFS
9247 test -z "$as_dir" && as_dir=.
9248 for ac_exec_ext in '' $ac_executable_extensions; do
9249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9250 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9252 break 2
9254 done
9255 done
9256 IFS=$as_save_IFS
9260 WINDRES=$ac_cv_prog_WINDRES
9261 if test -n "$WINDRES"; then
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9263 $as_echo "$WINDRES" >&6; }
9264 else
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9266 $as_echo "no" >&6; }
9271 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9273 set dummy ${ncn_progname}; ac_word=$2
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9275 $as_echo_n "checking for $ac_word... " >&6; }
9276 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 if test -n "$WINDRES"; then
9280 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9281 else
9282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283 for as_dir in $PATH
9285 IFS=$as_save_IFS
9286 test -z "$as_dir" && as_dir=.
9287 for ac_exec_ext in '' $ac_executable_extensions; do
9288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9289 ac_cv_prog_WINDRES="${ncn_progname}"
9290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9291 break 2
9293 done
9294 done
9295 IFS=$as_save_IFS
9299 WINDRES=$ac_cv_prog_WINDRES
9300 if test -n "$WINDRES"; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9302 $as_echo "$WINDRES" >&6; }
9303 else
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9310 test -n "$ac_cv_prog_WINDRES" && break
9311 done
9313 if test -z "$ac_cv_prog_WINDRES" ; then
9314 set dummy windres
9315 if test $build = $host ; then
9316 WINDRES="$2"
9317 else
9318 WINDRES="${ncn_tool_prefix}$2"
9324 if test -n "$WINDMC"; then
9325 ac_cv_prog_WINDMC=$WINDMC
9326 elif test -n "$ac_cv_prog_WINDMC"; then
9327 WINDMC=$ac_cv_prog_WINDMC
9330 if test -n "$ac_cv_prog_WINDMC"; then
9331 for ncn_progname in windmc; do
9332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9333 set dummy ${ncn_progname}; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 if test -n "$WINDMC"; then
9340 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9341 else
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_prog_WINDMC="${ncn_progname}"
9350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9353 done
9354 done
9355 IFS=$as_save_IFS
9359 WINDMC=$ac_cv_prog_WINDMC
9360 if test -n "$WINDMC"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9362 $as_echo "$WINDMC" >&6; }
9363 else
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9369 done
9372 for ncn_progname in windmc; do
9373 if test -n "$ncn_tool_prefix"; then
9374 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9375 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 if test -n "$WINDMC"; then
9382 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9383 else
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 for as_dir in $PATH
9387 IFS=$as_save_IFS
9388 test -z "$as_dir" && as_dir=.
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9391 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9393 break 2
9395 done
9396 done
9397 IFS=$as_save_IFS
9401 WINDMC=$ac_cv_prog_WINDMC
9402 if test -n "$WINDMC"; then
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9404 $as_echo "$WINDMC" >&6; }
9405 else
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9412 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9414 set dummy ${ncn_progname}; ac_word=$2
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9416 $as_echo_n "checking for $ac_word... " >&6; }
9417 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 if test -n "$WINDMC"; then
9421 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9422 else
9423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 for as_dir in $PATH
9426 IFS=$as_save_IFS
9427 test -z "$as_dir" && as_dir=.
9428 for ac_exec_ext in '' $ac_executable_extensions; do
9429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9430 ac_cv_prog_WINDMC="${ncn_progname}"
9431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9432 break 2
9434 done
9435 done
9436 IFS=$as_save_IFS
9440 WINDMC=$ac_cv_prog_WINDMC
9441 if test -n "$WINDMC"; then
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9443 $as_echo "$WINDMC" >&6; }
9444 else
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446 $as_echo "no" >&6; }
9451 test -n "$ac_cv_prog_WINDMC" && break
9452 done
9454 if test -z "$ac_cv_prog_WINDMC" ; then
9455 set dummy windmc
9456 if test $build = $host ; then
9457 WINDMC="$2"
9458 else
9459 WINDMC="${ncn_tool_prefix}$2"
9465 if test -n "$OBJCOPY"; then
9466 ac_cv_prog_OBJCOPY=$OBJCOPY
9467 elif test -n "$ac_cv_prog_OBJCOPY"; then
9468 OBJCOPY=$ac_cv_prog_OBJCOPY
9471 if test -n "$ac_cv_prog_OBJCOPY"; then
9472 for ncn_progname in objcopy; do
9473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9474 set dummy ${ncn_progname}; ac_word=$2
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9476 $as_echo_n "checking for $ac_word... " >&6; }
9477 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 if test -n "$OBJCOPY"; then
9481 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9482 else
9483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9484 for as_dir in $PATH
9486 IFS=$as_save_IFS
9487 test -z "$as_dir" && as_dir=.
9488 for ac_exec_ext in '' $ac_executable_extensions; do
9489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9490 ac_cv_prog_OBJCOPY="${ncn_progname}"
9491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9492 break 2
9494 done
9495 done
9496 IFS=$as_save_IFS
9500 OBJCOPY=$ac_cv_prog_OBJCOPY
9501 if test -n "$OBJCOPY"; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9503 $as_echo "$OBJCOPY" >&6; }
9504 else
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9506 $as_echo "no" >&6; }
9510 done
9513 for ncn_progname in objcopy; do
9514 if test -n "$ncn_tool_prefix"; then
9515 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9516 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9518 $as_echo_n "checking for $ac_word... " >&6; }
9519 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9520 $as_echo_n "(cached) " >&6
9521 else
9522 if test -n "$OBJCOPY"; then
9523 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9524 else
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 for as_dir in $PATH
9528 IFS=$as_save_IFS
9529 test -z "$as_dir" && as_dir=.
9530 for ac_exec_ext in '' $ac_executable_extensions; do
9531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9532 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9534 break 2
9536 done
9537 done
9538 IFS=$as_save_IFS
9542 OBJCOPY=$ac_cv_prog_OBJCOPY
9543 if test -n "$OBJCOPY"; then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9545 $as_echo "$OBJCOPY" >&6; }
9546 else
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9553 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9555 set dummy ${ncn_progname}; ac_word=$2
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557 $as_echo_n "checking for $ac_word... " >&6; }
9558 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9561 if test -n "$OBJCOPY"; then
9562 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9563 else
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 for as_dir in $PATH
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9571 ac_cv_prog_OBJCOPY="${ncn_progname}"
9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9575 done
9576 done
9577 IFS=$as_save_IFS
9581 OBJCOPY=$ac_cv_prog_OBJCOPY
9582 if test -n "$OBJCOPY"; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9584 $as_echo "$OBJCOPY" >&6; }
9585 else
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 $as_echo "no" >&6; }
9592 test -n "$ac_cv_prog_OBJCOPY" && break
9593 done
9595 if test -z "$ac_cv_prog_OBJCOPY" ; then
9596 set dummy objcopy
9597 if test $build = $host ; then
9598 OBJCOPY="$2"
9599 else
9600 OBJCOPY="${ncn_tool_prefix}$2"
9606 if test -n "$OBJDUMP"; then
9607 ac_cv_prog_OBJDUMP=$OBJDUMP
9608 elif test -n "$ac_cv_prog_OBJDUMP"; then
9609 OBJDUMP=$ac_cv_prog_OBJDUMP
9612 if test -n "$ac_cv_prog_OBJDUMP"; then
9613 for ncn_progname in objdump; do
9614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9615 set dummy ${ncn_progname}; ac_word=$2
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9617 $as_echo_n "checking for $ac_word... " >&6; }
9618 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 if test -n "$OBJDUMP"; then
9622 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9623 else
9624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625 for as_dir in $PATH
9627 IFS=$as_save_IFS
9628 test -z "$as_dir" && as_dir=.
9629 for ac_exec_ext in '' $ac_executable_extensions; do
9630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9631 ac_cv_prog_OBJDUMP="${ncn_progname}"
9632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9633 break 2
9635 done
9636 done
9637 IFS=$as_save_IFS
9641 OBJDUMP=$ac_cv_prog_OBJDUMP
9642 if test -n "$OBJDUMP"; then
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9644 $as_echo "$OBJDUMP" >&6; }
9645 else
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9647 $as_echo "no" >&6; }
9651 done
9654 for ncn_progname in objdump; do
9655 if test -n "$ncn_tool_prefix"; then
9656 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9657 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 if test -n "$OBJDUMP"; then
9664 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9665 else
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9669 IFS=$as_save_IFS
9670 test -z "$as_dir" && as_dir=.
9671 for ac_exec_ext in '' $ac_executable_extensions; do
9672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9673 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675 break 2
9677 done
9678 done
9679 IFS=$as_save_IFS
9683 OBJDUMP=$ac_cv_prog_OBJDUMP
9684 if test -n "$OBJDUMP"; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9686 $as_echo "$OBJDUMP" >&6; }
9687 else
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689 $as_echo "no" >&6; }
9694 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9696 set dummy ${ncn_progname}; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 if test -n "$OBJDUMP"; then
9703 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9704 else
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9712 ac_cv_prog_OBJDUMP="${ncn_progname}"
9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714 break 2
9716 done
9717 done
9718 IFS=$as_save_IFS
9722 OBJDUMP=$ac_cv_prog_OBJDUMP
9723 if test -n "$OBJDUMP"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9725 $as_echo "$OBJDUMP" >&6; }
9726 else
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9733 test -n "$ac_cv_prog_OBJDUMP" && break
9734 done
9736 if test -z "$ac_cv_prog_OBJDUMP" ; then
9737 set dummy objdump
9738 if test $build = $host ; then
9739 OBJDUMP="$2"
9740 else
9741 OBJDUMP="${ncn_tool_prefix}$2"
9747 if test -n "$READELF"; then
9748 ac_cv_prog_READELF=$READELF
9749 elif test -n "$ac_cv_prog_READELF"; then
9750 READELF=$ac_cv_prog_READELF
9753 if test -n "$ac_cv_prog_READELF"; then
9754 for ncn_progname in readelf; do
9755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9756 set dummy ${ncn_progname}; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if test "${ac_cv_prog_READELF+set}" = set; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 if test -n "$READELF"; then
9763 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9764 else
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 for as_dir in $PATH
9768 IFS=$as_save_IFS
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9772 ac_cv_prog_READELF="${ncn_progname}"
9773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9774 break 2
9776 done
9777 done
9778 IFS=$as_save_IFS
9782 READELF=$ac_cv_prog_READELF
9783 if test -n "$READELF"; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9785 $as_echo "$READELF" >&6; }
9786 else
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9792 done
9795 for ncn_progname in readelf; do
9796 if test -n "$ncn_tool_prefix"; then
9797 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9798 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9800 $as_echo_n "checking for $ac_word... " >&6; }
9801 if test "${ac_cv_prog_READELF+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 if test -n "$READELF"; then
9805 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9806 else
9807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808 for as_dir in $PATH
9810 IFS=$as_save_IFS
9811 test -z "$as_dir" && as_dir=.
9812 for ac_exec_ext in '' $ac_executable_extensions; do
9813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9814 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9816 break 2
9818 done
9819 done
9820 IFS=$as_save_IFS
9824 READELF=$ac_cv_prog_READELF
9825 if test -n "$READELF"; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9827 $as_echo "$READELF" >&6; }
9828 else
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830 $as_echo "no" >&6; }
9835 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9837 set dummy ${ncn_progname}; ac_word=$2
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9839 $as_echo_n "checking for $ac_word... " >&6; }
9840 if test "${ac_cv_prog_READELF+set}" = set; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 if test -n "$READELF"; then
9844 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9845 else
9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in $PATH
9849 IFS=$as_save_IFS
9850 test -z "$as_dir" && as_dir=.
9851 for ac_exec_ext in '' $ac_executable_extensions; do
9852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9853 ac_cv_prog_READELF="${ncn_progname}"
9854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9855 break 2
9857 done
9858 done
9859 IFS=$as_save_IFS
9863 READELF=$ac_cv_prog_READELF
9864 if test -n "$READELF"; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9866 $as_echo "$READELF" >&6; }
9867 else
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869 $as_echo "no" >&6; }
9874 test -n "$ac_cv_prog_READELF" && break
9875 done
9877 if test -z "$ac_cv_prog_READELF" ; then
9878 set dummy readelf
9879 if test $build = $host ; then
9880 READELF="$2"
9881 else
9882 READELF="${ncn_tool_prefix}$2"
9891 # Target tools.
9893 # Check whether --with-build-time-tools was given.
9894 if test "${with_build_time_tools+set}" = set; then :
9895 withval=$with_build_time_tools; case x"$withval" in
9896 x/*) ;;
9898 with_build_time_tools=
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9900 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9902 esac
9903 else
9904 with_build_time_tools=
9910 if test -n "$CC_FOR_TARGET"; then
9911 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9912 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9913 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9916 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9917 for ncn_progname in cc gcc; do
9918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9919 set dummy ${ncn_progname}; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 if test -n "$CC_FOR_TARGET"; then
9926 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9927 else
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9931 IFS=$as_save_IFS
9932 test -z "$as_dir" && as_dir=.
9933 for ac_exec_ext in '' $ac_executable_extensions; do
9934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9935 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937 break 2
9939 done
9940 done
9941 IFS=$as_save_IFS
9945 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9946 if test -n "$CC_FOR_TARGET"; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9948 $as_echo "$CC_FOR_TARGET" >&6; }
9949 else
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9955 done
9958 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9959 for ncn_progname in cc gcc; do
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9961 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9962 if test -x $with_build_time_tools/${ncn_progname}; then
9963 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9965 $as_echo "yes" >&6; }
9966 break
9967 else
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9971 done
9974 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9975 for ncn_progname in cc gcc; do
9976 if test -n "$ncn_target_tool_prefix"; then
9977 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9978 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980 $as_echo_n "checking for $ac_word... " >&6; }
9981 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9984 if test -n "$CC_FOR_TARGET"; then
9985 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9986 else
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in $PATH
9990 IFS=$as_save_IFS
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9994 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996 break 2
9998 done
9999 done
10000 IFS=$as_save_IFS
10004 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10005 if test -n "$CC_FOR_TARGET"; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10007 $as_echo "$CC_FOR_TARGET" >&6; }
10008 else
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010 $as_echo "no" >&6; }
10015 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10017 set dummy ${ncn_progname}; ac_word=$2
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10019 $as_echo_n "checking for $ac_word... " >&6; }
10020 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 if test -n "$CC_FOR_TARGET"; then
10024 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10025 else
10026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027 for as_dir in $PATH
10029 IFS=$as_save_IFS
10030 test -z "$as_dir" && as_dir=.
10031 for ac_exec_ext in '' $ac_executable_extensions; do
10032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10033 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 break 2
10037 done
10038 done
10039 IFS=$as_save_IFS
10043 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10044 if test -n "$CC_FOR_TARGET"; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10046 $as_echo "$CC_FOR_TARGET" >&6; }
10047 else
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049 $as_echo "no" >&6; }
10054 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10055 done
10058 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10059 set dummy cc gcc
10060 if test $build = $target ; then
10061 CC_FOR_TARGET="$2"
10062 else
10063 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10065 else
10066 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10071 if test -n "$CXX_FOR_TARGET"; then
10072 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10073 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10074 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10077 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10078 for ncn_progname in c++ g++ cxx gxx; do
10079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10080 set dummy ${ncn_progname}; ac_word=$2
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 $as_echo_n "checking for $ac_word... " >&6; }
10083 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 if test -n "$CXX_FOR_TARGET"; then
10087 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10088 else
10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10096 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 break 2
10100 done
10101 done
10102 IFS=$as_save_IFS
10106 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10107 if test -n "$CXX_FOR_TARGET"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10109 $as_echo "$CXX_FOR_TARGET" >&6; }
10110 else
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10116 done
10119 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10120 for ncn_progname in c++ g++ cxx gxx; do
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10122 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10123 if test -x $with_build_time_tools/${ncn_progname}; then
10124 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10126 $as_echo "yes" >&6; }
10127 break
10128 else
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10132 done
10135 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10136 for ncn_progname in c++ g++ cxx gxx; do
10137 if test -n "$ncn_target_tool_prefix"; then
10138 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10139 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10141 $as_echo_n "checking for $ac_word... " >&6; }
10142 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10143 $as_echo_n "(cached) " >&6
10144 else
10145 if test -n "$CXX_FOR_TARGET"; then
10146 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10147 else
10148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149 for as_dir in $PATH
10151 IFS=$as_save_IFS
10152 test -z "$as_dir" && as_dir=.
10153 for ac_exec_ext in '' $ac_executable_extensions; do
10154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10155 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10157 break 2
10159 done
10160 done
10161 IFS=$as_save_IFS
10165 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10166 if test -n "$CXX_FOR_TARGET"; then
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10168 $as_echo "$CXX_FOR_TARGET" >&6; }
10169 else
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171 $as_echo "no" >&6; }
10176 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10178 set dummy ${ncn_progname}; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10182 $as_echo_n "(cached) " >&6
10183 else
10184 if test -n "$CXX_FOR_TARGET"; then
10185 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10186 else
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10194 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10198 done
10199 done
10200 IFS=$as_save_IFS
10204 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10205 if test -n "$CXX_FOR_TARGET"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10207 $as_echo "$CXX_FOR_TARGET" >&6; }
10208 else
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10215 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10216 done
10219 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10220 set dummy c++ g++ cxx gxx
10221 if test $build = $target ; then
10222 CXX_FOR_TARGET="$2"
10223 else
10224 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10226 else
10227 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10232 if test -n "$GCC_FOR_TARGET"; then
10233 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10234 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10235 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10238 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10239 for ncn_progname in gcc; do
10240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10241 set dummy ${ncn_progname}; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 if test -n "$GCC_FOR_TARGET"; then
10248 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10249 else
10250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in $PATH
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10257 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10259 break 2
10261 done
10262 done
10263 IFS=$as_save_IFS
10267 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10268 if test -n "$GCC_FOR_TARGET"; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10270 $as_echo "$GCC_FOR_TARGET" >&6; }
10271 else
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10277 done
10280 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10281 for ncn_progname in gcc; do
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10283 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10284 if test -x $with_build_time_tools/${ncn_progname}; then
10285 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10287 $as_echo "yes" >&6; }
10288 break
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10293 done
10296 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10297 for ncn_progname in gcc; do
10298 if test -n "$ncn_target_tool_prefix"; then
10299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302 $as_echo_n "checking for $ac_word... " >&6; }
10303 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 if test -n "$GCC_FOR_TARGET"; then
10307 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10308 else
10309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10312 IFS=$as_save_IFS
10313 test -z "$as_dir" && as_dir=.
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10316 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318 break 2
10320 done
10321 done
10322 IFS=$as_save_IFS
10326 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10327 if test -n "$GCC_FOR_TARGET"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10329 $as_echo "$GCC_FOR_TARGET" >&6; }
10330 else
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10337 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10339 set dummy ${ncn_progname}; ac_word=$2
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10341 $as_echo_n "checking for $ac_word... " >&6; }
10342 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
10344 else
10345 if test -n "$GCC_FOR_TARGET"; then
10346 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10347 else
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
10353 for ac_exec_ext in '' $ac_executable_extensions; do
10354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10355 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10357 break 2
10359 done
10360 done
10361 IFS=$as_save_IFS
10365 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10366 if test -n "$GCC_FOR_TARGET"; then
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10368 $as_echo "$GCC_FOR_TARGET" >&6; }
10369 else
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10371 $as_echo "no" >&6; }
10376 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10377 done
10380 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10381 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10382 else
10383 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10388 if test -n "$GFORTRAN_FOR_TARGET"; then
10389 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10390 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10391 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10394 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10395 for ncn_progname in gfortran; do
10396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10397 set dummy ${ncn_progname}; ac_word=$2
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10399 $as_echo_n "checking for $ac_word... " >&6; }
10400 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10401 $as_echo_n "(cached) " >&6
10402 else
10403 if test -n "$GFORTRAN_FOR_TARGET"; then
10404 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10405 else
10406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407 for as_dir in $PATH
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
10411 for ac_exec_ext in '' $ac_executable_extensions; do
10412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10413 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10415 break 2
10417 done
10418 done
10419 IFS=$as_save_IFS
10423 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10424 if test -n "$GFORTRAN_FOR_TARGET"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10426 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10427 else
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10433 done
10436 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10437 for ncn_progname in gfortran; do
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10439 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10440 if test -x $with_build_time_tools/${ncn_progname}; then
10441 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10443 $as_echo "yes" >&6; }
10444 break
10445 else
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10449 done
10452 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10453 for ncn_progname in gfortran; do
10454 if test -n "$ncn_target_tool_prefix"; then
10455 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10456 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10458 $as_echo_n "checking for $ac_word... " >&6; }
10459 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10460 $as_echo_n "(cached) " >&6
10461 else
10462 if test -n "$GFORTRAN_FOR_TARGET"; then
10463 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10464 else
10465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466 for as_dir in $PATH
10468 IFS=$as_save_IFS
10469 test -z "$as_dir" && as_dir=.
10470 for ac_exec_ext in '' $ac_executable_extensions; do
10471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10472 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10474 break 2
10476 done
10477 done
10478 IFS=$as_save_IFS
10482 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10483 if test -n "$GFORTRAN_FOR_TARGET"; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10485 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10486 else
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10488 $as_echo "no" >&6; }
10493 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10495 set dummy ${ncn_progname}; ac_word=$2
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497 $as_echo_n "checking for $ac_word... " >&6; }
10498 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 if test -n "$GFORTRAN_FOR_TARGET"; then
10502 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10503 else
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10511 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10515 done
10516 done
10517 IFS=$as_save_IFS
10521 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10522 if test -n "$GFORTRAN_FOR_TARGET"; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10524 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10525 else
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527 $as_echo "no" >&6; }
10532 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10533 done
10536 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10537 set dummy gfortran
10538 if test $build = $target ; then
10539 GFORTRAN_FOR_TARGET="$2"
10540 else
10541 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10543 else
10544 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10549 if test -n "$GOC_FOR_TARGET"; then
10550 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10551 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10552 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10555 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10556 for ncn_progname in gccgo; do
10557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10558 set dummy ${ncn_progname}; ac_word=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 if test -n "$GOC_FOR_TARGET"; then
10565 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10566 else
10567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568 for as_dir in $PATH
10570 IFS=$as_save_IFS
10571 test -z "$as_dir" && as_dir=.
10572 for ac_exec_ext in '' $ac_executable_extensions; do
10573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10574 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10576 break 2
10578 done
10579 done
10580 IFS=$as_save_IFS
10584 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10585 if test -n "$GOC_FOR_TARGET"; then
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10587 $as_echo "$GOC_FOR_TARGET" >&6; }
10588 else
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590 $as_echo "no" >&6; }
10594 done
10597 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10598 for ncn_progname in gccgo; do
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10600 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10601 if test -x $with_build_time_tools/${ncn_progname}; then
10602 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10604 $as_echo "yes" >&6; }
10605 break
10606 else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 $as_echo "no" >&6; }
10610 done
10613 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10614 for ncn_progname in gccgo; do
10615 if test -n "$ncn_target_tool_prefix"; then
10616 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10617 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10621 $as_echo_n "(cached) " >&6
10622 else
10623 if test -n "$GOC_FOR_TARGET"; then
10624 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10625 else
10626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627 for as_dir in $PATH
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10633 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10637 done
10638 done
10639 IFS=$as_save_IFS
10643 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10644 if test -n "$GOC_FOR_TARGET"; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10646 $as_echo "$GOC_FOR_TARGET" >&6; }
10647 else
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10654 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10656 set dummy ${ncn_progname}; ac_word=$2
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10658 $as_echo_n "checking for $ac_word... " >&6; }
10659 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10660 $as_echo_n "(cached) " >&6
10661 else
10662 if test -n "$GOC_FOR_TARGET"; then
10663 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10664 else
10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666 for as_dir in $PATH
10668 IFS=$as_save_IFS
10669 test -z "$as_dir" && as_dir=.
10670 for ac_exec_ext in '' $ac_executable_extensions; do
10671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10672 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10674 break 2
10676 done
10677 done
10678 IFS=$as_save_IFS
10682 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10683 if test -n "$GOC_FOR_TARGET"; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10685 $as_echo "$GOC_FOR_TARGET" >&6; }
10686 else
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10693 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10694 done
10697 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10698 set dummy gccgo
10699 if test $build = $target ; then
10700 GOC_FOR_TARGET="$2"
10701 else
10702 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10704 else
10705 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10710 cat > conftest.c << \EOF
10711 #ifdef __GNUC__
10712 gcc_yay;
10713 #endif
10715 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10716 have_gcc_for_target=yes
10717 else
10718 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10719 have_gcc_for_target=no
10721 rm conftest.c
10726 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10727 if test -n "$with_build_time_tools"; then
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10729 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10730 if test -x $with_build_time_tools/ar; then
10731 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10732 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10734 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10735 else
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10739 elif test $build != $host && test $have_gcc_for_target = yes; then
10740 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10741 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10742 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10745 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10746 # Extract the first word of "ar", so it can be a program name with args.
10747 set dummy ar; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 case $AR_FOR_TARGET in
10754 [\\/]* | ?:[\\/]*)
10755 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $gcc_cv_tool_dirs
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10765 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10769 done
10770 done
10771 IFS=$as_save_IFS
10774 esac
10776 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10777 if test -n "$AR_FOR_TARGET"; then
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10779 $as_echo "$AR_FOR_TARGET" >&6; }
10780 else
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; }
10787 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10790 if test -n "$AR_FOR_TARGET"; then
10791 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10792 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10793 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10796 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10797 for ncn_progname in ar; do
10798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10799 set dummy ${ncn_progname}; ac_word=$2
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10801 $as_echo_n "checking for $ac_word... " >&6; }
10802 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10805 if test -n "$AR_FOR_TARGET"; then
10806 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10807 else
10808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809 for as_dir in $PATH
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
10814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10815 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 break 2
10819 done
10820 done
10821 IFS=$as_save_IFS
10825 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10826 if test -n "$AR_FOR_TARGET"; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10828 $as_echo "$AR_FOR_TARGET" >&6; }
10829 else
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10835 done
10838 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10839 for ncn_progname in ar; do
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10841 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10842 if test -x $with_build_time_tools/${ncn_progname}; then
10843 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10845 $as_echo "yes" >&6; }
10846 break
10847 else
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849 $as_echo "no" >&6; }
10851 done
10854 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10855 for ncn_progname in ar; do
10856 if test -n "$ncn_target_tool_prefix"; then
10857 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10858 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10860 $as_echo_n "checking for $ac_word... " >&6; }
10861 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10862 $as_echo_n "(cached) " >&6
10863 else
10864 if test -n "$AR_FOR_TARGET"; then
10865 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10866 else
10867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868 for as_dir in $PATH
10870 IFS=$as_save_IFS
10871 test -z "$as_dir" && as_dir=.
10872 for ac_exec_ext in '' $ac_executable_extensions; do
10873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10874 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876 break 2
10878 done
10879 done
10880 IFS=$as_save_IFS
10884 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10885 if test -n "$AR_FOR_TARGET"; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10887 $as_echo "$AR_FOR_TARGET" >&6; }
10888 else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10895 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10897 set dummy ${ncn_progname}; ac_word=$2
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10899 $as_echo_n "checking for $ac_word... " >&6; }
10900 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 if test -n "$AR_FOR_TARGET"; then
10904 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10905 else
10906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907 for as_dir in $PATH
10909 IFS=$as_save_IFS
10910 test -z "$as_dir" && as_dir=.
10911 for ac_exec_ext in '' $ac_executable_extensions; do
10912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10913 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10915 break 2
10917 done
10918 done
10919 IFS=$as_save_IFS
10923 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10924 if test -n "$AR_FOR_TARGET"; then
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10926 $as_echo "$AR_FOR_TARGET" >&6; }
10927 else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10934 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10935 done
10938 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10939 set dummy ar
10940 if test $build = $target ; then
10941 AR_FOR_TARGET="$2"
10942 else
10943 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10945 else
10946 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10949 else
10950 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10956 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10957 if test -n "$with_build_time_tools"; then
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10959 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10960 if test -x $with_build_time_tools/as; then
10961 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10962 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10964 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967 $as_echo "no" >&6; }
10969 elif test $build != $host && test $have_gcc_for_target = yes; then
10970 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10971 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10972 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10975 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10976 # Extract the first word of "as", so it can be a program name with args.
10977 set dummy as; ac_word=$2
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979 $as_echo_n "checking for $ac_word... " >&6; }
10980 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 case $AS_FOR_TARGET in
10984 [\\/]* | ?:[\\/]*)
10985 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989 for as_dir in $gcc_cv_tool_dirs
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
10993 for ac_exec_ext in '' $ac_executable_extensions; do
10994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10995 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 break 2
10999 done
11000 done
11001 IFS=$as_save_IFS
11004 esac
11006 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11007 if test -n "$AS_FOR_TARGET"; then
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11009 $as_echo "$AS_FOR_TARGET" >&6; }
11010 else
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012 $as_echo "no" >&6; }
11017 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11020 if test -n "$AS_FOR_TARGET"; then
11021 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11022 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11023 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11026 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11027 for ncn_progname in as; do
11028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11029 set dummy ${ncn_progname}; ac_word=$2
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11031 $as_echo_n "checking for $ac_word... " >&6; }
11032 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 if test -n "$AS_FOR_TARGET"; then
11036 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11037 else
11038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039 for as_dir in $PATH
11041 IFS=$as_save_IFS
11042 test -z "$as_dir" && as_dir=.
11043 for ac_exec_ext in '' $ac_executable_extensions; do
11044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11045 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11047 break 2
11049 done
11050 done
11051 IFS=$as_save_IFS
11055 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11056 if test -n "$AS_FOR_TARGET"; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11058 $as_echo "$AS_FOR_TARGET" >&6; }
11059 else
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061 $as_echo "no" >&6; }
11065 done
11068 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11069 for ncn_progname in as; do
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11071 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11072 if test -x $with_build_time_tools/${ncn_progname}; then
11073 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11075 $as_echo "yes" >&6; }
11076 break
11077 else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11081 done
11084 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11085 for ncn_progname in as; do
11086 if test -n "$ncn_target_tool_prefix"; then
11087 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11088 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090 $as_echo_n "checking for $ac_word... " >&6; }
11091 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 if test -n "$AS_FOR_TARGET"; then
11095 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11096 else
11097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 for as_dir in $PATH
11100 IFS=$as_save_IFS
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11104 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 break 2
11108 done
11109 done
11110 IFS=$as_save_IFS
11114 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11115 if test -n "$AS_FOR_TARGET"; then
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11117 $as_echo "$AS_FOR_TARGET" >&6; }
11118 else
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; }
11125 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11127 set dummy ${ncn_progname}; ac_word=$2
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 if test -n "$AS_FOR_TARGET"; then
11134 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11135 else
11136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137 for as_dir in $PATH
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11143 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 break 2
11147 done
11148 done
11149 IFS=$as_save_IFS
11153 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11154 if test -n "$AS_FOR_TARGET"; then
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11156 $as_echo "$AS_FOR_TARGET" >&6; }
11157 else
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11164 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11165 done
11168 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11169 set dummy as
11170 if test $build = $target ; then
11171 AS_FOR_TARGET="$2"
11172 else
11173 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11175 else
11176 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11179 else
11180 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11186 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11187 if test -n "$with_build_time_tools"; then
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11189 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11190 if test -x $with_build_time_tools/dlltool; then
11191 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11192 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11194 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11195 else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11199 elif test $build != $host && test $have_gcc_for_target = yes; then
11200 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11201 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11202 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11205 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11206 # Extract the first word of "dlltool", so it can be a program name with args.
11207 set dummy dlltool; ac_word=$2
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11209 $as_echo_n "checking for $ac_word... " >&6; }
11210 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11211 $as_echo_n "(cached) " >&6
11212 else
11213 case $DLLTOOL_FOR_TARGET in
11214 [\\/]* | ?:[\\/]*)
11215 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219 for as_dir in $gcc_cv_tool_dirs
11221 IFS=$as_save_IFS
11222 test -z "$as_dir" && as_dir=.
11223 for ac_exec_ext in '' $ac_executable_extensions; do
11224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11225 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11227 break 2
11229 done
11230 done
11231 IFS=$as_save_IFS
11234 esac
11236 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11237 if test -n "$DLLTOOL_FOR_TARGET"; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11239 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11240 else
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11247 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11250 if test -n "$DLLTOOL_FOR_TARGET"; then
11251 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11252 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11253 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11256 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11257 for ncn_progname in dlltool; do
11258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11259 set dummy ${ncn_progname}; ac_word=$2
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11261 $as_echo_n "checking for $ac_word... " >&6; }
11262 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 if test -n "$DLLTOOL_FOR_TARGET"; then
11266 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11267 else
11268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269 for as_dir in $PATH
11271 IFS=$as_save_IFS
11272 test -z "$as_dir" && as_dir=.
11273 for ac_exec_ext in '' $ac_executable_extensions; do
11274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11275 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277 break 2
11279 done
11280 done
11281 IFS=$as_save_IFS
11285 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11286 if test -n "$DLLTOOL_FOR_TARGET"; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11288 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11289 else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11295 done
11298 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11299 for ncn_progname in dlltool; do
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11301 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11302 if test -x $with_build_time_tools/${ncn_progname}; then
11303 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11305 $as_echo "yes" >&6; }
11306 break
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11311 done
11314 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11315 for ncn_progname in dlltool; do
11316 if test -n "$ncn_target_tool_prefix"; then
11317 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11318 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320 $as_echo_n "checking for $ac_word... " >&6; }
11321 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 if test -n "$DLLTOOL_FOR_TARGET"; then
11325 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11326 else
11327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in $PATH
11330 IFS=$as_save_IFS
11331 test -z "$as_dir" && as_dir=.
11332 for ac_exec_ext in '' $ac_executable_extensions; do
11333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11334 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11336 break 2
11338 done
11339 done
11340 IFS=$as_save_IFS
11344 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11345 if test -n "$DLLTOOL_FOR_TARGET"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11347 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11355 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11357 set dummy ${ncn_progname}; ac_word=$2
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11359 $as_echo_n "checking for $ac_word... " >&6; }
11360 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 if test -n "$DLLTOOL_FOR_TARGET"; then
11364 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11365 else
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in $PATH
11369 IFS=$as_save_IFS
11370 test -z "$as_dir" && as_dir=.
11371 for ac_exec_ext in '' $ac_executable_extensions; do
11372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11373 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11375 break 2
11377 done
11378 done
11379 IFS=$as_save_IFS
11383 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11384 if test -n "$DLLTOOL_FOR_TARGET"; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11386 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11387 else
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11394 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11395 done
11398 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11399 set dummy dlltool
11400 if test $build = $target ; then
11401 DLLTOOL_FOR_TARGET="$2"
11402 else
11403 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11405 else
11406 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11409 else
11410 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11416 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11417 if test -n "$with_build_time_tools"; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11419 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11420 if test -x $with_build_time_tools/ld; then
11421 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11422 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11424 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11429 elif test $build != $host && test $have_gcc_for_target = yes; then
11430 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11431 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11432 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11435 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11436 # Extract the first word of "ld", so it can be a program name with args.
11437 set dummy ld; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 case $LD_FOR_TARGET in
11444 [\\/]* | ?:[\\/]*)
11445 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $gcc_cv_tool_dirs
11451 IFS=$as_save_IFS
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11455 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457 break 2
11459 done
11460 done
11461 IFS=$as_save_IFS
11464 esac
11466 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11467 if test -n "$LD_FOR_TARGET"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11469 $as_echo "$LD_FOR_TARGET" >&6; }
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11477 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11480 if test -n "$LD_FOR_TARGET"; then
11481 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11482 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11483 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11486 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11487 for ncn_progname in ld; do
11488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11489 set dummy ${ncn_progname}; ac_word=$2
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11491 $as_echo_n "checking for $ac_word... " >&6; }
11492 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 if test -n "$LD_FOR_TARGET"; then
11496 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11497 else
11498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11499 for as_dir in $PATH
11501 IFS=$as_save_IFS
11502 test -z "$as_dir" && as_dir=.
11503 for ac_exec_ext in '' $ac_executable_extensions; do
11504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11505 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11507 break 2
11509 done
11510 done
11511 IFS=$as_save_IFS
11515 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11516 if test -n "$LD_FOR_TARGET"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11518 $as_echo "$LD_FOR_TARGET" >&6; }
11519 else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521 $as_echo "no" >&6; }
11525 done
11528 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11529 for ncn_progname in ld; do
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11531 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11532 if test -x $with_build_time_tools/${ncn_progname}; then
11533 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11535 $as_echo "yes" >&6; }
11536 break
11537 else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11541 done
11544 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11545 for ncn_progname in ld; do
11546 if test -n "$ncn_target_tool_prefix"; then
11547 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11548 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11550 $as_echo_n "checking for $ac_word... " >&6; }
11551 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11552 $as_echo_n "(cached) " >&6
11553 else
11554 if test -n "$LD_FOR_TARGET"; then
11555 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11556 else
11557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in $PATH
11560 IFS=$as_save_IFS
11561 test -z "$as_dir" && as_dir=.
11562 for ac_exec_ext in '' $ac_executable_extensions; do
11563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11564 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 break 2
11568 done
11569 done
11570 IFS=$as_save_IFS
11574 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11575 if test -n "$LD_FOR_TARGET"; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11577 $as_echo "$LD_FOR_TARGET" >&6; }
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11585 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11587 set dummy ${ncn_progname}; ac_word=$2
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11589 $as_echo_n "checking for $ac_word... " >&6; }
11590 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11591 $as_echo_n "(cached) " >&6
11592 else
11593 if test -n "$LD_FOR_TARGET"; then
11594 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11595 else
11596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597 for as_dir in $PATH
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
11601 for ac_exec_ext in '' $ac_executable_extensions; do
11602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11603 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 break 2
11607 done
11608 done
11609 IFS=$as_save_IFS
11613 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11614 if test -n "$LD_FOR_TARGET"; then
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11616 $as_echo "$LD_FOR_TARGET" >&6; }
11617 else
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11624 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11625 done
11628 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11629 set dummy ld
11630 if test $build = $target ; then
11631 LD_FOR_TARGET="$2"
11632 else
11633 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11635 else
11636 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11639 else
11640 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11646 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11647 if test -n "$with_build_time_tools"; then
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11649 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11650 if test -x $with_build_time_tools/lipo; then
11651 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11652 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11654 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11659 elif test $build != $host && test $have_gcc_for_target = yes; then
11660 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11661 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11662 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11665 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11666 # Extract the first word of "lipo", so it can be a program name with args.
11667 set dummy lipo; ac_word=$2
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11669 $as_echo_n "checking for $ac_word... " >&6; }
11670 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11671 $as_echo_n "(cached) " >&6
11672 else
11673 case $LIPO_FOR_TARGET in
11674 [\\/]* | ?:[\\/]*)
11675 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679 for as_dir in $gcc_cv_tool_dirs
11681 IFS=$as_save_IFS
11682 test -z "$as_dir" && as_dir=.
11683 for ac_exec_ext in '' $ac_executable_extensions; do
11684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11685 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11687 break 2
11689 done
11690 done
11691 IFS=$as_save_IFS
11694 esac
11696 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11697 if test -n "$LIPO_FOR_TARGET"; then
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11699 $as_echo "$LIPO_FOR_TARGET" >&6; }
11700 else
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; }
11707 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11710 if test -n "$LIPO_FOR_TARGET"; then
11711 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11712 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11713 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11716 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11717 for ncn_progname in lipo; do
11718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11719 set dummy ${ncn_progname}; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 if test -n "$LIPO_FOR_TARGET"; then
11726 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11727 else
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11731 IFS=$as_save_IFS
11732 test -z "$as_dir" && as_dir=.
11733 for ac_exec_ext in '' $ac_executable_extensions; do
11734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11735 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 break 2
11739 done
11740 done
11741 IFS=$as_save_IFS
11745 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11746 if test -n "$LIPO_FOR_TARGET"; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11748 $as_echo "$LIPO_FOR_TARGET" >&6; }
11749 else
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11755 done
11758 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11759 for ncn_progname in lipo; do
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11761 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11762 if test -x $with_build_time_tools/${ncn_progname}; then
11763 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11765 $as_echo "yes" >&6; }
11766 break
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11771 done
11774 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11775 for ncn_progname in lipo; do
11776 if test -n "$ncn_target_tool_prefix"; then
11777 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11778 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11782 $as_echo_n "(cached) " >&6
11783 else
11784 if test -n "$LIPO_FOR_TARGET"; then
11785 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11786 else
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11790 IFS=$as_save_IFS
11791 test -z "$as_dir" && as_dir=.
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11794 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796 break 2
11798 done
11799 done
11800 IFS=$as_save_IFS
11804 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11805 if test -n "$LIPO_FOR_TARGET"; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11807 $as_echo "$LIPO_FOR_TARGET" >&6; }
11808 else
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11815 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11817 set dummy ${ncn_progname}; ac_word=$2
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11819 $as_echo_n "checking for $ac_word... " >&6; }
11820 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 if test -n "$LIPO_FOR_TARGET"; then
11824 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11825 else
11826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827 for as_dir in $PATH
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11833 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11837 done
11838 done
11839 IFS=$as_save_IFS
11843 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11844 if test -n "$LIPO_FOR_TARGET"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11846 $as_echo "$LIPO_FOR_TARGET" >&6; }
11847 else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11854 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11855 done
11858 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11859 set dummy lipo
11860 if test $build = $target ; then
11861 LIPO_FOR_TARGET="$2"
11862 else
11863 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11865 else
11866 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11869 else
11870 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11876 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11877 if test -n "$with_build_time_tools"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11879 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11880 if test -x $with_build_time_tools/nm; then
11881 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11882 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11884 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11889 elif test $build != $host && test $have_gcc_for_target = yes; then
11890 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11891 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11892 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11895 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11896 # Extract the first word of "nm", so it can be a program name with args.
11897 set dummy nm; ac_word=$2
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899 $as_echo_n "checking for $ac_word... " >&6; }
11900 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 case $NM_FOR_TARGET in
11904 [\\/]* | ?:[\\/]*)
11905 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $gcc_cv_tool_dirs
11911 IFS=$as_save_IFS
11912 test -z "$as_dir" && as_dir=.
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11915 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11917 break 2
11919 done
11920 done
11921 IFS=$as_save_IFS
11924 esac
11926 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11927 if test -n "$NM_FOR_TARGET"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11929 $as_echo "$NM_FOR_TARGET" >&6; }
11930 else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11937 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11940 if test -n "$NM_FOR_TARGET"; then
11941 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11942 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11943 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11946 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11947 for ncn_progname in nm; do
11948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11949 set dummy ${ncn_progname}; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 if test -n "$NM_FOR_TARGET"; then
11956 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11957 else
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11965 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11969 done
11970 done
11971 IFS=$as_save_IFS
11975 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11976 if test -n "$NM_FOR_TARGET"; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11978 $as_echo "$NM_FOR_TARGET" >&6; }
11979 else
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11985 done
11988 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11989 for ncn_progname in nm; do
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11991 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11992 if test -x $with_build_time_tools/${ncn_progname}; then
11993 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11995 $as_echo "yes" >&6; }
11996 break
11997 else
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12001 done
12004 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12005 for ncn_progname in nm; do
12006 if test -n "$ncn_target_tool_prefix"; then
12007 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12008 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 if test -n "$NM_FOR_TARGET"; then
12015 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12016 else
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12020 IFS=$as_save_IFS
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
12023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12024 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 break 2
12028 done
12029 done
12030 IFS=$as_save_IFS
12034 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12035 if test -n "$NM_FOR_TARGET"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12037 $as_echo "$NM_FOR_TARGET" >&6; }
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12045 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12047 set dummy ${ncn_progname}; ac_word=$2
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049 $as_echo_n "checking for $ac_word... " >&6; }
12050 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 if test -n "$NM_FOR_TARGET"; then
12054 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12055 else
12056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057 for as_dir in $PATH
12059 IFS=$as_save_IFS
12060 test -z "$as_dir" && as_dir=.
12061 for ac_exec_ext in '' $ac_executable_extensions; do
12062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12063 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12065 break 2
12067 done
12068 done
12069 IFS=$as_save_IFS
12073 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12074 if test -n "$NM_FOR_TARGET"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12076 $as_echo "$NM_FOR_TARGET" >&6; }
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12084 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12085 done
12088 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12089 set dummy nm
12090 if test $build = $target ; then
12091 NM_FOR_TARGET="$2"
12092 else
12093 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12095 else
12096 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12099 else
12100 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12106 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12107 if test -n "$with_build_time_tools"; then
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12109 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12110 if test -x $with_build_time_tools/objcopy; then
12111 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12112 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12114 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12119 elif test $build != $host && test $have_gcc_for_target = yes; then
12120 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12121 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12122 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12125 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12126 # Extract the first word of "objcopy", so it can be a program name with args.
12127 set dummy objcopy; ac_word=$2
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12129 $as_echo_n "checking for $ac_word... " >&6; }
12130 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 case $OBJCOPY_FOR_TARGET in
12134 [\\/]* | ?:[\\/]*)
12135 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12139 for as_dir in $gcc_cv_tool_dirs
12141 IFS=$as_save_IFS
12142 test -z "$as_dir" && as_dir=.
12143 for ac_exec_ext in '' $ac_executable_extensions; do
12144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12145 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12147 break 2
12149 done
12150 done
12151 IFS=$as_save_IFS
12154 esac
12156 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12157 if test -n "$OBJCOPY_FOR_TARGET"; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12159 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12160 else
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12167 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12170 if test -n "$OBJCOPY_FOR_TARGET"; then
12171 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12172 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12173 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12176 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12177 for ncn_progname in objcopy; do
12178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12179 set dummy ${ncn_progname}; ac_word=$2
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12181 $as_echo_n "checking for $ac_word... " >&6; }
12182 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 if test -n "$OBJCOPY_FOR_TARGET"; then
12186 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12187 else
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189 for as_dir in $PATH
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12195 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12199 done
12200 done
12201 IFS=$as_save_IFS
12205 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12206 if test -n "$OBJCOPY_FOR_TARGET"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12208 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12209 else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12215 done
12218 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12219 for ncn_progname in objcopy; do
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12221 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12222 if test -x $with_build_time_tools/${ncn_progname}; then
12223 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12225 $as_echo "yes" >&6; }
12226 break
12227 else
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12231 done
12234 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12235 for ncn_progname in objcopy; do
12236 if test -n "$ncn_target_tool_prefix"; then
12237 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12238 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12240 $as_echo_n "checking for $ac_word... " >&6; }
12241 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 if test -n "$OBJCOPY_FOR_TARGET"; then
12245 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12246 else
12247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248 for as_dir in $PATH
12250 IFS=$as_save_IFS
12251 test -z "$as_dir" && as_dir=.
12252 for ac_exec_ext in '' $ac_executable_extensions; do
12253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12254 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256 break 2
12258 done
12259 done
12260 IFS=$as_save_IFS
12264 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12265 if test -n "$OBJCOPY_FOR_TARGET"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12267 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12268 else
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12275 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12277 set dummy ${ncn_progname}; ac_word=$2
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12279 $as_echo_n "checking for $ac_word... " >&6; }
12280 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 if test -n "$OBJCOPY_FOR_TARGET"; then
12284 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12285 else
12286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287 for as_dir in $PATH
12289 IFS=$as_save_IFS
12290 test -z "$as_dir" && as_dir=.
12291 for ac_exec_ext in '' $ac_executable_extensions; do
12292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12293 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12295 break 2
12297 done
12298 done
12299 IFS=$as_save_IFS
12303 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12304 if test -n "$OBJCOPY_FOR_TARGET"; then
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12306 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12307 else
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12314 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12315 done
12318 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12319 set dummy objcopy
12320 if test $build = $target ; then
12321 OBJCOPY_FOR_TARGET="$2"
12322 else
12323 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12325 else
12326 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12329 else
12330 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12336 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12337 if test -n "$with_build_time_tools"; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12339 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12340 if test -x $with_build_time_tools/objdump; then
12341 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12342 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12344 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12349 elif test $build != $host && test $have_gcc_for_target = yes; then
12350 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12351 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12352 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12355 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12356 # Extract the first word of "objdump", so it can be a program name with args.
12357 set dummy objdump; ac_word=$2
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359 $as_echo_n "checking for $ac_word... " >&6; }
12360 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 case $OBJDUMP_FOR_TARGET in
12364 [\\/]* | ?:[\\/]*)
12365 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $gcc_cv_tool_dirs
12371 IFS=$as_save_IFS
12372 test -z "$as_dir" && as_dir=.
12373 for ac_exec_ext in '' $ac_executable_extensions; do
12374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12375 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377 break 2
12379 done
12380 done
12381 IFS=$as_save_IFS
12384 esac
12386 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12387 if test -n "$OBJDUMP_FOR_TARGET"; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12389 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12390 else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12397 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12400 if test -n "$OBJDUMP_FOR_TARGET"; then
12401 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12402 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12403 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12406 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12407 for ncn_progname in objdump; do
12408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12409 set dummy ${ncn_progname}; ac_word=$2
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12411 $as_echo_n "checking for $ac_word... " >&6; }
12412 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12413 $as_echo_n "(cached) " >&6
12414 else
12415 if test -n "$OBJDUMP_FOR_TARGET"; then
12416 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12417 else
12418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419 for as_dir in $PATH
12421 IFS=$as_save_IFS
12422 test -z "$as_dir" && as_dir=.
12423 for ac_exec_ext in '' $ac_executable_extensions; do
12424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12425 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 break 2
12429 done
12430 done
12431 IFS=$as_save_IFS
12435 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12436 if test -n "$OBJDUMP_FOR_TARGET"; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12438 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12439 else
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441 $as_echo "no" >&6; }
12445 done
12448 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12449 for ncn_progname in objdump; do
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12451 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12452 if test -x $with_build_time_tools/${ncn_progname}; then
12453 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12455 $as_echo "yes" >&6; }
12456 break
12457 else
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12461 done
12464 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12465 for ncn_progname in objdump; do
12466 if test -n "$ncn_target_tool_prefix"; then
12467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12468 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470 $as_echo_n "checking for $ac_word... " >&6; }
12471 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474 if test -n "$OBJDUMP_FOR_TARGET"; then
12475 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12476 else
12477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478 for as_dir in $PATH
12480 IFS=$as_save_IFS
12481 test -z "$as_dir" && as_dir=.
12482 for ac_exec_ext in '' $ac_executable_extensions; do
12483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12484 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12486 break 2
12488 done
12489 done
12490 IFS=$as_save_IFS
12494 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12495 if test -n "$OBJDUMP_FOR_TARGET"; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12497 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12498 else
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12505 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12507 set dummy ${ncn_progname}; ac_word=$2
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509 $as_echo_n "checking for $ac_word... " >&6; }
12510 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 if test -n "$OBJDUMP_FOR_TARGET"; then
12514 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12515 else
12516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12517 for as_dir in $PATH
12519 IFS=$as_save_IFS
12520 test -z "$as_dir" && as_dir=.
12521 for ac_exec_ext in '' $ac_executable_extensions; do
12522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12523 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12525 break 2
12527 done
12528 done
12529 IFS=$as_save_IFS
12533 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12534 if test -n "$OBJDUMP_FOR_TARGET"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12536 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12537 else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12544 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12545 done
12548 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12549 set dummy objdump
12550 if test $build = $target ; then
12551 OBJDUMP_FOR_TARGET="$2"
12552 else
12553 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12555 else
12556 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12559 else
12560 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12566 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12567 if test -n "$with_build_time_tools"; then
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12569 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12570 if test -x $with_build_time_tools/ranlib; then
12571 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12572 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12574 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12575 else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12579 elif test $build != $host && test $have_gcc_for_target = yes; then
12580 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12581 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12582 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12585 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12586 # Extract the first word of "ranlib", so it can be a program name with args.
12587 set dummy ranlib; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 case $RANLIB_FOR_TARGET in
12594 [\\/]* | ?:[\\/]*)
12595 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $gcc_cv_tool_dirs
12601 IFS=$as_save_IFS
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12605 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 break 2
12609 done
12610 done
12611 IFS=$as_save_IFS
12614 esac
12616 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12617 if test -n "$RANLIB_FOR_TARGET"; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12619 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12620 else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12627 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12630 if test -n "$RANLIB_FOR_TARGET"; then
12631 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12632 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12633 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12636 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12637 for ncn_progname in ranlib; do
12638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12639 set dummy ${ncn_progname}; ac_word=$2
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12641 $as_echo_n "checking for $ac_word... " >&6; }
12642 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
12644 else
12645 if test -n "$RANLIB_FOR_TARGET"; then
12646 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12647 else
12648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12649 for as_dir in $PATH
12651 IFS=$as_save_IFS
12652 test -z "$as_dir" && as_dir=.
12653 for ac_exec_ext in '' $ac_executable_extensions; do
12654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12655 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12657 break 2
12659 done
12660 done
12661 IFS=$as_save_IFS
12665 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12666 if test -n "$RANLIB_FOR_TARGET"; then
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12668 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12669 else
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12675 done
12678 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12679 for ncn_progname in ranlib; do
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12681 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12682 if test -x $with_build_time_tools/${ncn_progname}; then
12683 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12685 $as_echo "yes" >&6; }
12686 break
12687 else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12691 done
12694 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12695 for ncn_progname in ranlib; do
12696 if test -n "$ncn_target_tool_prefix"; then
12697 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12698 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700 $as_echo_n "checking for $ac_word... " >&6; }
12701 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 if test -n "$RANLIB_FOR_TARGET"; then
12705 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12706 else
12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in $PATH
12710 IFS=$as_save_IFS
12711 test -z "$as_dir" && as_dir=.
12712 for ac_exec_ext in '' $ac_executable_extensions; do
12713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12714 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12716 break 2
12718 done
12719 done
12720 IFS=$as_save_IFS
12724 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12725 if test -n "$RANLIB_FOR_TARGET"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12727 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12728 else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730 $as_echo "no" >&6; }
12735 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12737 set dummy ${ncn_progname}; ac_word=$2
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12739 $as_echo_n "checking for $ac_word... " >&6; }
12740 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12742 else
12743 if test -n "$RANLIB_FOR_TARGET"; then
12744 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12745 else
12746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747 for as_dir in $PATH
12749 IFS=$as_save_IFS
12750 test -z "$as_dir" && as_dir=.
12751 for ac_exec_ext in '' $ac_executable_extensions; do
12752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12753 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12755 break 2
12757 done
12758 done
12759 IFS=$as_save_IFS
12763 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12764 if test -n "$RANLIB_FOR_TARGET"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12766 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12767 else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12774 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12775 done
12778 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12779 set dummy ranlib
12780 if test $build = $target ; then
12781 RANLIB_FOR_TARGET="$2"
12782 else
12783 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12785 else
12786 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12789 else
12790 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12796 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12797 if test -n "$with_build_time_tools"; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12799 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12800 if test -x $with_build_time_tools/readelf; then
12801 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12802 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12804 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12809 elif test $build != $host && test $have_gcc_for_target = yes; then
12810 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12811 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12812 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12815 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12816 # Extract the first word of "readelf", so it can be a program name with args.
12817 set dummy readelf; ac_word=$2
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819 $as_echo_n "checking for $ac_word... " >&6; }
12820 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12821 $as_echo_n "(cached) " >&6
12822 else
12823 case $READELF_FOR_TARGET in
12824 [\\/]* | ?:[\\/]*)
12825 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829 for as_dir in $gcc_cv_tool_dirs
12831 IFS=$as_save_IFS
12832 test -z "$as_dir" && as_dir=.
12833 for ac_exec_ext in '' $ac_executable_extensions; do
12834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12835 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12837 break 2
12839 done
12840 done
12841 IFS=$as_save_IFS
12844 esac
12846 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12847 if test -n "$READELF_FOR_TARGET"; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12849 $as_echo "$READELF_FOR_TARGET" >&6; }
12850 else
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852 $as_echo "no" >&6; }
12857 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12860 if test -n "$READELF_FOR_TARGET"; then
12861 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12862 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12863 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12866 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12867 for ncn_progname in readelf; do
12868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12869 set dummy ${ncn_progname}; ac_word=$2
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12871 $as_echo_n "checking for $ac_word... " >&6; }
12872 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 if test -n "$READELF_FOR_TARGET"; then
12876 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12877 else
12878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879 for as_dir in $PATH
12881 IFS=$as_save_IFS
12882 test -z "$as_dir" && as_dir=.
12883 for ac_exec_ext in '' $ac_executable_extensions; do
12884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12885 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 break 2
12889 done
12890 done
12891 IFS=$as_save_IFS
12895 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12896 if test -n "$READELF_FOR_TARGET"; then
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12898 $as_echo "$READELF_FOR_TARGET" >&6; }
12899 else
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901 $as_echo "no" >&6; }
12905 done
12908 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12909 for ncn_progname in readelf; do
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12911 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12912 if test -x $with_build_time_tools/${ncn_progname}; then
12913 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12915 $as_echo "yes" >&6; }
12916 break
12917 else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 $as_echo "no" >&6; }
12921 done
12924 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12925 for ncn_progname in readelf; do
12926 if test -n "$ncn_target_tool_prefix"; then
12927 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12928 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12930 $as_echo_n "checking for $ac_word... " >&6; }
12931 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 if test -n "$READELF_FOR_TARGET"; then
12935 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12936 else
12937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12938 for as_dir in $PATH
12940 IFS=$as_save_IFS
12941 test -z "$as_dir" && as_dir=.
12942 for ac_exec_ext in '' $ac_executable_extensions; do
12943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12944 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12946 break 2
12948 done
12949 done
12950 IFS=$as_save_IFS
12954 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12955 if test -n "$READELF_FOR_TARGET"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12957 $as_echo "$READELF_FOR_TARGET" >&6; }
12958 else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12965 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12967 set dummy ${ncn_progname}; ac_word=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969 $as_echo_n "checking for $ac_word... " >&6; }
12970 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 if test -n "$READELF_FOR_TARGET"; then
12974 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12975 else
12976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH
12979 IFS=$as_save_IFS
12980 test -z "$as_dir" && as_dir=.
12981 for ac_exec_ext in '' $ac_executable_extensions; do
12982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12983 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985 break 2
12987 done
12988 done
12989 IFS=$as_save_IFS
12993 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12994 if test -n "$READELF_FOR_TARGET"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12996 $as_echo "$READELF_FOR_TARGET" >&6; }
12997 else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13004 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13005 done
13008 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13009 set dummy readelf
13010 if test $build = $target ; then
13011 READELF_FOR_TARGET="$2"
13012 else
13013 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13015 else
13016 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13019 else
13020 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13026 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13027 if test -n "$with_build_time_tools"; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13029 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13030 if test -x $with_build_time_tools/strip; then
13031 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13032 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13034 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13035 else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13039 elif test $build != $host && test $have_gcc_for_target = yes; then
13040 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13041 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13042 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13045 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13046 # Extract the first word of "strip", so it can be a program name with args.
13047 set dummy strip; ac_word=$2
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049 $as_echo_n "checking for $ac_word... " >&6; }
13050 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13051 $as_echo_n "(cached) " >&6
13052 else
13053 case $STRIP_FOR_TARGET in
13054 [\\/]* | ?:[\\/]*)
13055 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059 for as_dir in $gcc_cv_tool_dirs
13061 IFS=$as_save_IFS
13062 test -z "$as_dir" && as_dir=.
13063 for ac_exec_ext in '' $ac_executable_extensions; do
13064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13065 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13067 break 2
13069 done
13070 done
13071 IFS=$as_save_IFS
13074 esac
13076 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13077 if test -n "$STRIP_FOR_TARGET"; then
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13079 $as_echo "$STRIP_FOR_TARGET" >&6; }
13080 else
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13087 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13090 if test -n "$STRIP_FOR_TARGET"; then
13091 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13092 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13093 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13096 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13097 for ncn_progname in strip; do
13098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13099 set dummy ${ncn_progname}; ac_word=$2
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 $as_echo_n "checking for $ac_word... " >&6; }
13102 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 if test -n "$STRIP_FOR_TARGET"; then
13106 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13107 else
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13111 IFS=$as_save_IFS
13112 test -z "$as_dir" && as_dir=.
13113 for ac_exec_ext in '' $ac_executable_extensions; do
13114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13115 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13117 break 2
13119 done
13120 done
13121 IFS=$as_save_IFS
13125 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13126 if test -n "$STRIP_FOR_TARGET"; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13128 $as_echo "$STRIP_FOR_TARGET" >&6; }
13129 else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13135 done
13138 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13139 for ncn_progname in strip; do
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13141 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13142 if test -x $with_build_time_tools/${ncn_progname}; then
13143 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13145 $as_echo "yes" >&6; }
13146 break
13147 else
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13151 done
13154 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13155 for ncn_progname in strip; do
13156 if test -n "$ncn_target_tool_prefix"; then
13157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13158 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13160 $as_echo_n "checking for $ac_word... " >&6; }
13161 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13162 $as_echo_n "(cached) " >&6
13163 else
13164 if test -n "$STRIP_FOR_TARGET"; then
13165 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13166 else
13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168 for as_dir in $PATH
13170 IFS=$as_save_IFS
13171 test -z "$as_dir" && as_dir=.
13172 for ac_exec_ext in '' $ac_executable_extensions; do
13173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13174 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13176 break 2
13178 done
13179 done
13180 IFS=$as_save_IFS
13184 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13185 if test -n "$STRIP_FOR_TARGET"; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13187 $as_echo "$STRIP_FOR_TARGET" >&6; }
13188 else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13195 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13197 set dummy ${ncn_progname}; ac_word=$2
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199 $as_echo_n "checking for $ac_word... " >&6; }
13200 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13201 $as_echo_n "(cached) " >&6
13202 else
13203 if test -n "$STRIP_FOR_TARGET"; then
13204 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13205 else
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13209 IFS=$as_save_IFS
13210 test -z "$as_dir" && as_dir=.
13211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13213 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13215 break 2
13217 done
13218 done
13219 IFS=$as_save_IFS
13223 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13224 if test -n "$STRIP_FOR_TARGET"; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13226 $as_echo "$STRIP_FOR_TARGET" >&6; }
13227 else
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13234 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13235 done
13238 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13239 set dummy strip
13240 if test $build = $target ; then
13241 STRIP_FOR_TARGET="$2"
13242 else
13243 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13245 else
13246 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13249 else
13250 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13256 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13257 if test -n "$with_build_time_tools"; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13259 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13260 if test -x $with_build_time_tools/windres; then
13261 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13262 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13264 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13269 elif test $build != $host && test $have_gcc_for_target = yes; then
13270 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13271 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13272 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13275 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13276 # Extract the first word of "windres", so it can be a program name with args.
13277 set dummy windres; ac_word=$2
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279 $as_echo_n "checking for $ac_word... " >&6; }
13280 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13281 $as_echo_n "(cached) " >&6
13282 else
13283 case $WINDRES_FOR_TARGET in
13284 [\\/]* | ?:[\\/]*)
13285 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13289 for as_dir in $gcc_cv_tool_dirs
13291 IFS=$as_save_IFS
13292 test -z "$as_dir" && as_dir=.
13293 for ac_exec_ext in '' $ac_executable_extensions; do
13294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13295 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13297 break 2
13299 done
13300 done
13301 IFS=$as_save_IFS
13304 esac
13306 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13307 if test -n "$WINDRES_FOR_TARGET"; then
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13309 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13310 else
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312 $as_echo "no" >&6; }
13317 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13320 if test -n "$WINDRES_FOR_TARGET"; then
13321 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13322 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13323 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13326 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13327 for ncn_progname in windres; do
13328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13329 set dummy ${ncn_progname}; ac_word=$2
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331 $as_echo_n "checking for $ac_word... " >&6; }
13332 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335 if test -n "$WINDRES_FOR_TARGET"; then
13336 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13337 else
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13341 IFS=$as_save_IFS
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13345 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 break 2
13349 done
13350 done
13351 IFS=$as_save_IFS
13355 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13356 if test -n "$WINDRES_FOR_TARGET"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13358 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13359 else
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361 $as_echo "no" >&6; }
13365 done
13368 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13369 for ncn_progname in windres; do
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13371 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13372 if test -x $with_build_time_tools/${ncn_progname}; then
13373 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13375 $as_echo "yes" >&6; }
13376 break
13377 else
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379 $as_echo "no" >&6; }
13381 done
13384 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13385 for ncn_progname in windres; do
13386 if test -n "$ncn_target_tool_prefix"; then
13387 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13388 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13390 $as_echo_n "checking for $ac_word... " >&6; }
13391 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394 if test -n "$WINDRES_FOR_TARGET"; then
13395 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13396 else
13397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13398 for as_dir in $PATH
13400 IFS=$as_save_IFS
13401 test -z "$as_dir" && as_dir=.
13402 for ac_exec_ext in '' $ac_executable_extensions; do
13403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13404 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13406 break 2
13408 done
13409 done
13410 IFS=$as_save_IFS
13414 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13415 if test -n "$WINDRES_FOR_TARGET"; then
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13417 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13418 else
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420 $as_echo "no" >&6; }
13425 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13427 set dummy ${ncn_progname}; ac_word=$2
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13429 $as_echo_n "checking for $ac_word... " >&6; }
13430 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13431 $as_echo_n "(cached) " >&6
13432 else
13433 if test -n "$WINDRES_FOR_TARGET"; then
13434 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13435 else
13436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437 for as_dir in $PATH
13439 IFS=$as_save_IFS
13440 test -z "$as_dir" && as_dir=.
13441 for ac_exec_ext in '' $ac_executable_extensions; do
13442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13443 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13445 break 2
13447 done
13448 done
13449 IFS=$as_save_IFS
13453 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13454 if test -n "$WINDRES_FOR_TARGET"; then
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13456 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13457 else
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459 $as_echo "no" >&6; }
13464 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13465 done
13468 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13469 set dummy windres
13470 if test $build = $target ; then
13471 WINDRES_FOR_TARGET="$2"
13472 else
13473 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13475 else
13476 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13479 else
13480 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13486 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13487 if test -n "$with_build_time_tools"; then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13489 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13490 if test -x $with_build_time_tools/windmc; then
13491 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13492 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13494 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13495 else
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13499 elif test $build != $host && test $have_gcc_for_target = yes; then
13500 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13501 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13502 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13505 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13506 # Extract the first word of "windmc", so it can be a program name with args.
13507 set dummy windmc; ac_word=$2
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13509 $as_echo_n "checking for $ac_word... " >&6; }
13510 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 case $WINDMC_FOR_TARGET in
13514 [\\/]* | ?:[\\/]*)
13515 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13519 for as_dir in $gcc_cv_tool_dirs
13521 IFS=$as_save_IFS
13522 test -z "$as_dir" && as_dir=.
13523 for ac_exec_ext in '' $ac_executable_extensions; do
13524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13525 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13527 break 2
13529 done
13530 done
13531 IFS=$as_save_IFS
13534 esac
13536 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13537 if test -n "$WINDMC_FOR_TARGET"; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13539 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13540 else
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13547 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13550 if test -n "$WINDMC_FOR_TARGET"; then
13551 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13552 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13553 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13556 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13557 for ncn_progname in windmc; do
13558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13559 set dummy ${ncn_progname}; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561 $as_echo_n "checking for $ac_word... " >&6; }
13562 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 if test -n "$WINDMC_FOR_TARGET"; then
13566 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13567 else
13568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569 for as_dir in $PATH
13571 IFS=$as_save_IFS
13572 test -z "$as_dir" && as_dir=.
13573 for ac_exec_ext in '' $ac_executable_extensions; do
13574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13575 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13577 break 2
13579 done
13580 done
13581 IFS=$as_save_IFS
13585 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13586 if test -n "$WINDMC_FOR_TARGET"; then
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13588 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13589 else
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591 $as_echo "no" >&6; }
13595 done
13598 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13599 for ncn_progname in windmc; do
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13601 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13602 if test -x $with_build_time_tools/${ncn_progname}; then
13603 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13605 $as_echo "yes" >&6; }
13606 break
13607 else
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13611 done
13614 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13615 for ncn_progname in windmc; do
13616 if test -n "$ncn_target_tool_prefix"; then
13617 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13618 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 if test -n "$WINDMC_FOR_TARGET"; then
13625 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13634 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13638 done
13639 done
13640 IFS=$as_save_IFS
13644 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13645 if test -n "$WINDMC_FOR_TARGET"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13647 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13648 else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13655 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13657 set dummy ${ncn_progname}; ac_word=$2
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13659 $as_echo_n "checking for $ac_word... " >&6; }
13660 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 if test -n "$WINDMC_FOR_TARGET"; then
13664 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13665 else
13666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667 for as_dir in $PATH
13669 IFS=$as_save_IFS
13670 test -z "$as_dir" && as_dir=.
13671 for ac_exec_ext in '' $ac_executable_extensions; do
13672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13673 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13675 break 2
13677 done
13678 done
13679 IFS=$as_save_IFS
13683 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13684 if test -n "$WINDMC_FOR_TARGET"; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13686 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13687 else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13694 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13695 done
13698 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13699 set dummy windmc
13700 if test $build = $target ; then
13701 WINDMC_FOR_TARGET="$2"
13702 else
13703 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13705 else
13706 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13709 else
13710 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13714 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13717 $as_echo_n "checking where to find the target ar... " >&6; }
13718 if test "x${build}" != "x${host}" ; then
13719 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13720 # We already found the complete path
13721 ac_dir=`dirname $AR_FOR_TARGET`
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13723 $as_echo "pre-installed in $ac_dir" >&6; }
13724 else
13725 # Canadian cross, just use what we found
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13727 $as_echo "pre-installed" >&6; }
13729 else
13730 ok=yes
13731 case " ${configdirs} " in
13732 *" binutils "*) ;;
13733 *) ok=no ;;
13734 esac
13736 if test $ok = yes; then
13737 # An in-tree tool is available and we can use it
13738 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13740 $as_echo "just compiled" >&6; }
13741 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13742 # We already found the complete path
13743 ac_dir=`dirname $AR_FOR_TARGET`
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13745 $as_echo "pre-installed in $ac_dir" >&6; }
13746 elif test "x$target" = "x$host"; then
13747 # We can use an host tool
13748 AR_FOR_TARGET='$(AR)'
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13750 $as_echo "host tool" >&6; }
13751 else
13752 # We need a cross tool
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13754 $as_echo "pre-installed" >&6; }
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13759 $as_echo_n "checking where to find the target as... " >&6; }
13760 if test "x${build}" != "x${host}" ; then
13761 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13762 # We already found the complete path
13763 ac_dir=`dirname $AS_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 else
13767 # Canadian cross, just use what we found
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13769 $as_echo "pre-installed" >&6; }
13771 else
13772 ok=yes
13773 case " ${configdirs} " in
13774 *" gas "*) ;;
13775 *) ok=no ;;
13776 esac
13778 if test $ok = yes; then
13779 # An in-tree tool is available and we can use it
13780 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13782 $as_echo "just compiled" >&6; }
13783 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13784 # We already found the complete path
13785 ac_dir=`dirname $AS_FOR_TARGET`
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13787 $as_echo "pre-installed in $ac_dir" >&6; }
13788 elif test "x$target" = "x$host"; then
13789 # We can use an host tool
13790 AS_FOR_TARGET='$(AS)'
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13792 $as_echo "host tool" >&6; }
13793 else
13794 # We need a cross tool
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13796 $as_echo "pre-installed" >&6; }
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13801 $as_echo_n "checking where to find the target cc... " >&6; }
13802 if test "x${build}" != "x${host}" ; then
13803 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13804 # We already found the complete path
13805 ac_dir=`dirname $CC_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 else
13809 # Canadian cross, just use what we found
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13811 $as_echo "pre-installed" >&6; }
13813 else
13814 ok=yes
13815 case " ${configdirs} " in
13816 *" gcc "*) ;;
13817 *) ok=no ;;
13818 esac
13820 if test $ok = yes; then
13821 # An in-tree tool is available and we can use it
13822 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13824 $as_echo "just compiled" >&6; }
13825 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13826 # We already found the complete path
13827 ac_dir=`dirname $CC_FOR_TARGET`
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13829 $as_echo "pre-installed in $ac_dir" >&6; }
13830 elif test "x$target" = "x$host"; then
13831 # We can use an host tool
13832 CC_FOR_TARGET='$(CC)'
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13834 $as_echo "host tool" >&6; }
13835 else
13836 # We need a cross tool
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13838 $as_echo "pre-installed" >&6; }
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13843 $as_echo_n "checking where to find the target c++... " >&6; }
13844 if test "x${build}" != "x${host}" ; then
13845 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13846 # We already found the complete path
13847 ac_dir=`dirname $CXX_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 else
13851 # Canadian cross, just use what we found
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13853 $as_echo "pre-installed" >&6; }
13855 else
13856 ok=yes
13857 case " ${configdirs} " in
13858 *" gcc "*) ;;
13859 *) ok=no ;;
13860 esac
13861 case ,${enable_languages}, in
13862 *,c++,*) ;;
13863 *) ok=no ;;
13864 esac
13865 if test $ok = yes; then
13866 # An in-tree tool is available and we can use it
13867 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'
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13869 $as_echo "just compiled" >&6; }
13870 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13871 # We already found the complete path
13872 ac_dir=`dirname $CXX_FOR_TARGET`
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13874 $as_echo "pre-installed in $ac_dir" >&6; }
13875 elif test "x$target" = "x$host"; then
13876 # We can use an host tool
13877 CXX_FOR_TARGET='$(CXX)'
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13879 $as_echo "host tool" >&6; }
13880 else
13881 # We need a cross tool
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13883 $as_echo "pre-installed" >&6; }
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13888 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13889 if test "x${build}" != "x${host}" ; then
13890 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13891 # We already found the complete path
13892 ac_dir=`dirname $RAW_CXX_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 else
13896 # Canadian cross, just use what we found
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13898 $as_echo "pre-installed" >&6; }
13900 else
13901 ok=yes
13902 case " ${configdirs} " in
13903 *" gcc "*) ;;
13904 *) ok=no ;;
13905 esac
13906 case ,${enable_languages}, in
13907 *,c++,*) ;;
13908 *) ok=no ;;
13909 esac
13910 if test $ok = yes; then
13911 # An in-tree tool is available and we can use it
13912 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'
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13914 $as_echo "just compiled" >&6; }
13915 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13916 # We already found the complete path
13917 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13919 $as_echo "pre-installed in $ac_dir" >&6; }
13920 elif test "x$target" = "x$host"; then
13921 # We can use an host tool
13922 RAW_CXX_FOR_TARGET='$(CXX)'
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13924 $as_echo "host tool" >&6; }
13925 else
13926 # We need a cross tool
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13928 $as_echo "pre-installed" >&6; }
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13933 $as_echo_n "checking where to find the target dlltool... " >&6; }
13934 if test "x${build}" != "x${host}" ; then
13935 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13936 # We already found the complete path
13937 ac_dir=`dirname $DLLTOOL_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 else
13941 # Canadian cross, just use what we found
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13943 $as_echo "pre-installed" >&6; }
13945 else
13946 ok=yes
13947 case " ${configdirs} " in
13948 *" binutils "*) ;;
13949 *) ok=no ;;
13950 esac
13952 if test $ok = yes; then
13953 # An in-tree tool is available and we can use it
13954 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13956 $as_echo "just compiled" >&6; }
13957 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13958 # We already found the complete path
13959 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13961 $as_echo "pre-installed in $ac_dir" >&6; }
13962 elif test "x$target" = "x$host"; then
13963 # We can use an host tool
13964 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13966 $as_echo "host tool" >&6; }
13967 else
13968 # We need a cross tool
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13970 $as_echo "pre-installed" >&6; }
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13975 $as_echo_n "checking where to find the target gcc... " >&6; }
13976 if test "x${build}" != "x${host}" ; then
13977 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13978 # We already found the complete path
13979 ac_dir=`dirname $GCC_FOR_TARGET`
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13981 $as_echo "pre-installed in $ac_dir" >&6; }
13982 else
13983 # Canadian cross, just use what we found
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13985 $as_echo "pre-installed" >&6; }
13987 else
13988 ok=yes
13989 case " ${configdirs} " in
13990 *" gcc "*) ;;
13991 *) ok=no ;;
13992 esac
13994 if test $ok = yes; then
13995 # An in-tree tool is available and we can use it
13996 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13998 $as_echo "just compiled" >&6; }
13999 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14000 # We already found the complete path
14001 ac_dir=`dirname $GCC_FOR_TARGET`
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14003 $as_echo "pre-installed in $ac_dir" >&6; }
14004 elif test "x$target" = "x$host"; then
14005 # We can use an host tool
14006 GCC_FOR_TARGET='$()'
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14008 $as_echo "host tool" >&6; }
14009 else
14010 # We need a cross tool
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14012 $as_echo "pre-installed" >&6; }
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14017 $as_echo_n "checking where to find the target gfortran... " >&6; }
14018 if test "x${build}" != "x${host}" ; then
14019 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14020 # We already found the complete path
14021 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14023 $as_echo "pre-installed in $ac_dir" >&6; }
14024 else
14025 # Canadian cross, just use what we found
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14027 $as_echo "pre-installed" >&6; }
14029 else
14030 ok=yes
14031 case " ${configdirs} " in
14032 *" gcc "*) ;;
14033 *) ok=no ;;
14034 esac
14035 case ,${enable_languages}, in
14036 *,fortran,*) ;;
14037 *) ok=no ;;
14038 esac
14039 if test $ok = yes; then
14040 # An in-tree tool is available and we can use it
14041 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14043 $as_echo "just compiled" >&6; }
14044 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14045 # We already found the complete path
14046 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14048 $as_echo "pre-installed in $ac_dir" >&6; }
14049 elif test "x$target" = "x$host"; then
14050 # We can use an host tool
14051 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14053 $as_echo "host tool" >&6; }
14054 else
14055 # We need a cross tool
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14057 $as_echo "pre-installed" >&6; }
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14062 $as_echo_n "checking where to find the target gccgo... " >&6; }
14063 if test "x${build}" != "x${host}" ; then
14064 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14065 # We already found the complete path
14066 ac_dir=`dirname $GOC_FOR_TARGET`
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14068 $as_echo "pre-installed in $ac_dir" >&6; }
14069 else
14070 # Canadian cross, just use what we found
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14072 $as_echo "pre-installed" >&6; }
14074 else
14075 ok=yes
14076 case " ${configdirs} " in
14077 *" gcc "*) ;;
14078 *) ok=no ;;
14079 esac
14080 case ,${enable_languages}, in
14081 *,go,*) ;;
14082 *) ok=no ;;
14083 esac
14084 if test $ok = yes; then
14085 # An in-tree tool is available and we can use it
14086 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14088 $as_echo "just compiled" >&6; }
14089 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14090 # We already found the complete path
14091 ac_dir=`dirname $GOC_FOR_TARGET`
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14093 $as_echo "pre-installed in $ac_dir" >&6; }
14094 elif test "x$target" = "x$host"; then
14095 # We can use an host tool
14096 GOC_FOR_TARGET='$(GOC)'
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14098 $as_echo "host tool" >&6; }
14099 else
14100 # We need a cross tool
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14102 $as_echo "pre-installed" >&6; }
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14107 $as_echo_n "checking where to find the target ld... " >&6; }
14108 if test "x${build}" != "x${host}" ; then
14109 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14110 # We already found the complete path
14111 ac_dir=`dirname $LD_FOR_TARGET`
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14113 $as_echo "pre-installed in $ac_dir" >&6; }
14114 else
14115 # Canadian cross, just use what we found
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14117 $as_echo "pre-installed" >&6; }
14119 else
14120 ok=yes
14121 case " ${configdirs} " in
14122 *" ld "*) ;;
14123 *) ok=no ;;
14124 esac
14126 if test $ok = yes; then
14127 # An in-tree tool is available and we can use it
14128 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14130 $as_echo "just compiled" >&6; }
14131 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14132 # We already found the complete path
14133 ac_dir=`dirname $LD_FOR_TARGET`
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14135 $as_echo "pre-installed in $ac_dir" >&6; }
14136 elif test "x$target" = "x$host"; then
14137 # We can use an host tool
14138 LD_FOR_TARGET='$(LD)'
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14140 $as_echo "host tool" >&6; }
14141 else
14142 # We need a cross tool
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14144 $as_echo "pre-installed" >&6; }
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14149 $as_echo_n "checking where to find the target lipo... " >&6; }
14150 if test "x${build}" != "x${host}" ; then
14151 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14152 # We already found the complete path
14153 ac_dir=`dirname $LIPO_FOR_TARGET`
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14155 $as_echo "pre-installed in $ac_dir" >&6; }
14156 else
14157 # Canadian cross, just use what we found
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14159 $as_echo "pre-installed" >&6; }
14161 else
14162 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14163 # We already found the complete path
14164 ac_dir=`dirname $LIPO_FOR_TARGET`
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14166 $as_echo "pre-installed in $ac_dir" >&6; }
14167 elif test "x$target" = "x$host"; then
14168 # We can use an host tool
14169 LIPO_FOR_TARGET='$(LIPO)'
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14171 $as_echo "host tool" >&6; }
14172 else
14173 # We need a cross tool
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14175 $as_echo "pre-installed" >&6; }
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14180 $as_echo_n "checking where to find the target nm... " >&6; }
14181 if test "x${build}" != "x${host}" ; then
14182 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14183 # We already found the complete path
14184 ac_dir=`dirname $NM_FOR_TARGET`
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14186 $as_echo "pre-installed in $ac_dir" >&6; }
14187 else
14188 # Canadian cross, just use what we found
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14190 $as_echo "pre-installed" >&6; }
14192 else
14193 ok=yes
14194 case " ${configdirs} " in
14195 *" binutils "*) ;;
14196 *) ok=no ;;
14197 esac
14199 if test $ok = yes; then
14200 # An in-tree tool is available and we can use it
14201 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14203 $as_echo "just compiled" >&6; }
14204 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14205 # We already found the complete path
14206 ac_dir=`dirname $NM_FOR_TARGET`
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14208 $as_echo "pre-installed in $ac_dir" >&6; }
14209 elif test "x$target" = "x$host"; then
14210 # We can use an host tool
14211 NM_FOR_TARGET='$(NM)'
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14213 $as_echo "host tool" >&6; }
14214 else
14215 # We need a cross tool
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14217 $as_echo "pre-installed" >&6; }
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14222 $as_echo_n "checking where to find the target objcopy... " >&6; }
14223 if test "x${build}" != "x${host}" ; then
14224 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14225 # We already found the complete path
14226 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14228 $as_echo "pre-installed in $ac_dir" >&6; }
14229 else
14230 # Canadian cross, just use what we found
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14232 $as_echo "pre-installed" >&6; }
14234 else
14235 ok=yes
14236 case " ${configdirs} " in
14237 *" binutils "*) ;;
14238 *) ok=no ;;
14239 esac
14241 if test $ok = yes; then
14242 # An in-tree tool is available and we can use it
14243 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14245 $as_echo "just compiled" >&6; }
14246 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14247 # We already found the complete path
14248 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14250 $as_echo "pre-installed in $ac_dir" >&6; }
14251 elif test "x$target" = "x$host"; then
14252 # We can use an host tool
14253 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14255 $as_echo "host tool" >&6; }
14256 else
14257 # We need a cross tool
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14259 $as_echo "pre-installed" >&6; }
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14264 $as_echo_n "checking where to find the target objdump... " >&6; }
14265 if test "x${build}" != "x${host}" ; then
14266 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14267 # We already found the complete path
14268 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14270 $as_echo "pre-installed in $ac_dir" >&6; }
14271 else
14272 # Canadian cross, just use what we found
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14274 $as_echo "pre-installed" >&6; }
14276 else
14277 ok=yes
14278 case " ${configdirs} " in
14279 *" binutils "*) ;;
14280 *) ok=no ;;
14281 esac
14283 if test $ok = yes; then
14284 # An in-tree tool is available and we can use it
14285 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14287 $as_echo "just compiled" >&6; }
14288 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14289 # We already found the complete path
14290 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14292 $as_echo "pre-installed in $ac_dir" >&6; }
14293 elif test "x$target" = "x$host"; then
14294 # We can use an host tool
14295 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14297 $as_echo "host tool" >&6; }
14298 else
14299 # We need a cross tool
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14301 $as_echo "pre-installed" >&6; }
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14306 $as_echo_n "checking where to find the target ranlib... " >&6; }
14307 if test "x${build}" != "x${host}" ; then
14308 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14309 # We already found the complete path
14310 ac_dir=`dirname $RANLIB_FOR_TARGET`
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14312 $as_echo "pre-installed in $ac_dir" >&6; }
14313 else
14314 # Canadian cross, just use what we found
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14316 $as_echo "pre-installed" >&6; }
14318 else
14319 ok=yes
14320 case " ${configdirs} " in
14321 *" binutils "*) ;;
14322 *) ok=no ;;
14323 esac
14325 if test $ok = yes; then
14326 # An in-tree tool is available and we can use it
14327 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14329 $as_echo "just compiled" >&6; }
14330 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14331 # We already found the complete path
14332 ac_dir=`dirname $RANLIB_FOR_TARGET`
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14334 $as_echo "pre-installed in $ac_dir" >&6; }
14335 elif test "x$target" = "x$host"; then
14336 # We can use an host tool
14337 RANLIB_FOR_TARGET='$(RANLIB)'
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14339 $as_echo "host tool" >&6; }
14340 else
14341 # We need a cross tool
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14343 $as_echo "pre-installed" >&6; }
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14348 $as_echo_n "checking where to find the target readelf... " >&6; }
14349 if test "x${build}" != "x${host}" ; then
14350 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14351 # We already found the complete path
14352 ac_dir=`dirname $READELF_FOR_TARGET`
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14354 $as_echo "pre-installed in $ac_dir" >&6; }
14355 else
14356 # Canadian cross, just use what we found
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14358 $as_echo "pre-installed" >&6; }
14360 else
14361 ok=yes
14362 case " ${configdirs} " in
14363 *" binutils "*) ;;
14364 *) ok=no ;;
14365 esac
14367 if test $ok = yes; then
14368 # An in-tree tool is available and we can use it
14369 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14371 $as_echo "just compiled" >&6; }
14372 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14373 # We already found the complete path
14374 ac_dir=`dirname $READELF_FOR_TARGET`
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14376 $as_echo "pre-installed in $ac_dir" >&6; }
14377 elif test "x$target" = "x$host"; then
14378 # We can use an host tool
14379 READELF_FOR_TARGET='$(READELF)'
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14381 $as_echo "host tool" >&6; }
14382 else
14383 # We need a cross tool
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14385 $as_echo "pre-installed" >&6; }
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14390 $as_echo_n "checking where to find the target strip... " >&6; }
14391 if test "x${build}" != "x${host}" ; then
14392 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14393 # We already found the complete path
14394 ac_dir=`dirname $STRIP_FOR_TARGET`
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14396 $as_echo "pre-installed in $ac_dir" >&6; }
14397 else
14398 # Canadian cross, just use what we found
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14400 $as_echo "pre-installed" >&6; }
14402 else
14403 ok=yes
14404 case " ${configdirs} " in
14405 *" binutils "*) ;;
14406 *) ok=no ;;
14407 esac
14409 if test $ok = yes; then
14410 # An in-tree tool is available and we can use it
14411 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14413 $as_echo "just compiled" >&6; }
14414 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14415 # We already found the complete path
14416 ac_dir=`dirname $STRIP_FOR_TARGET`
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14418 $as_echo "pre-installed in $ac_dir" >&6; }
14419 elif test "x$target" = "x$host"; then
14420 # We can use an host tool
14421 STRIP_FOR_TARGET='$(STRIP)'
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14423 $as_echo "host tool" >&6; }
14424 else
14425 # We need a cross tool
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14427 $as_echo "pre-installed" >&6; }
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14432 $as_echo_n "checking where to find the target windres... " >&6; }
14433 if test "x${build}" != "x${host}" ; then
14434 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14435 # We already found the complete path
14436 ac_dir=`dirname $WINDRES_FOR_TARGET`
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14438 $as_echo "pre-installed in $ac_dir" >&6; }
14439 else
14440 # Canadian cross, just use what we found
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14442 $as_echo "pre-installed" >&6; }
14444 else
14445 ok=yes
14446 case " ${configdirs} " in
14447 *" binutils "*) ;;
14448 *) ok=no ;;
14449 esac
14451 if test $ok = yes; then
14452 # An in-tree tool is available and we can use it
14453 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14455 $as_echo "just compiled" >&6; }
14456 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14457 # We already found the complete path
14458 ac_dir=`dirname $WINDRES_FOR_TARGET`
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14460 $as_echo "pre-installed in $ac_dir" >&6; }
14461 elif test "x$target" = "x$host"; then
14462 # We can use an host tool
14463 WINDRES_FOR_TARGET='$(WINDRES)'
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14465 $as_echo "host tool" >&6; }
14466 else
14467 # We need a cross tool
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14469 $as_echo "pre-installed" >&6; }
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14474 $as_echo_n "checking where to find the target windmc... " >&6; }
14475 if test "x${build}" != "x${host}" ; then
14476 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14477 # We already found the complete path
14478 ac_dir=`dirname $WINDMC_FOR_TARGET`
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14480 $as_echo "pre-installed in $ac_dir" >&6; }
14481 else
14482 # Canadian cross, just use what we found
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14484 $as_echo "pre-installed" >&6; }
14486 else
14487 ok=yes
14488 case " ${configdirs} " in
14489 *" binutils "*) ;;
14490 *) ok=no ;;
14491 esac
14493 if test $ok = yes; then
14494 # An in-tree tool is available and we can use it
14495 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14497 $as_echo "just compiled" >&6; }
14498 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14499 # We already found the complete path
14500 ac_dir=`dirname $WINDMC_FOR_TARGET`
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14502 $as_echo "pre-installed in $ac_dir" >&6; }
14503 elif test "x$target" = "x$host"; then
14504 # We can use an host tool
14505 WINDMC_FOR_TARGET='$(WINDMC)'
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14507 $as_echo "host tool" >&6; }
14508 else
14509 # We need a cross tool
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14511 $as_echo "pre-installed" >&6; }
14519 # Certain tools may need extra flags.
14520 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14521 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14522 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14524 # When building target libraries, except in a Canadian cross, we use
14525 # the same toolchain as the compiler we just built.
14526 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14527 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14528 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14529 if test $host = $build; then
14530 case " $configdirs " in
14531 *" gcc "*)
14532 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14533 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14534 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14536 esac
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14544 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14545 # Check whether --enable-maintainer-mode was given.
14546 if test "${enable_maintainer_mode+set}" = set; then :
14547 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14548 else
14549 USE_MAINTAINER_MODE=no
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14553 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14556 if test "$USE_MAINTAINER_MODE" = yes; then
14557 MAINTAINER_MODE_TRUE=
14558 MAINTAINER_MODE_FALSE='#'
14559 else
14560 MAINTAINER_MODE_TRUE='#'
14561 MAINTAINER_MODE_FALSE=
14563 MAINT=$MAINTAINER_MODE_TRUE
14565 # ---------------------
14566 # GCC bootstrap support
14567 # ---------------------
14569 # Stage specific cflags for build.
14570 stage1_cflags="-g"
14571 case $build in
14572 vax-*-*)
14573 case ${GCC} in
14574 yes) stage1_cflags="-g -Wa,-J" ;;
14575 *) stage1_cflags="-g -J" ;;
14576 esac ;;
14577 esac
14581 # Enable --enable-checking in stage1 of the compiler.
14582 # Check whether --enable-stage1-checking was given.
14583 if test "${enable_stage1_checking+set}" = set; then :
14584 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14585 else
14586 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14587 # For --disable-checking or implicit --enable-checking=release, avoid
14588 # setting --enable-checking=gc in the default stage1 checking for LTO
14589 # bootstraps. See PR62077.
14590 case $BUILD_CONFIG in
14591 *lto*)
14592 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14594 stage1_checking=--enable-checking=yes,types;;
14595 esac
14596 if test "x$enable_checking" = x && \
14597 test -d ${srcdir}/gcc && \
14598 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14599 stage1_checking=--enable-checking=yes,types,extra
14601 else
14602 stage1_checking=--enable-checking=$enable_checking,types
14608 # Enable -Werror in bootstrap stage2 and later.
14609 # Check whether --enable-werror was given.
14610 if test "${enable_werror+set}" = set; then :
14611 enableval=$enable_werror;
14612 else
14613 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14614 enable_werror=yes
14615 else
14616 enable_werror=no
14620 case ${enable_werror} in
14621 yes) stage2_werror_flag="--enable-werror-always" ;;
14622 *) stage2_werror_flag="" ;;
14623 esac
14626 # Enable --enable-host-shared.
14627 # Check whether --enable-host-shared was given.
14628 if test "${enable_host_shared+set}" = set; then :
14629 enableval=$enable_host_shared; host_shared=$enableval
14630 else
14631 host_shared=no
14636 # PR jit/64780: Require the user to explicitly specify
14637 # --enable-host-shared if the jit is enabled, hinting
14638 # that they might want to do a separate configure/build of
14639 # the jit, to avoid users from slowing down the rest of the
14640 # compiler by enabling the jit.
14641 if test ${host_shared} = "no" ; then
14642 case "${enable_languages}" in
14643 *jit*)
14644 as_fn_error "
14645 Enabling language \"jit\" requires --enable-host-shared.
14647 --enable-host-shared typically slows the rest of the compiler down by
14648 a few %, so you must explicitly enable it.
14650 If you want to build both the jit and the regular compiler, it is often
14651 best to do this via two separate configure/builds, in separate
14652 directories, to avoid imposing the performance cost of
14653 --enable-host-shared on the regular compiler." "$LINENO" 5
14657 esac
14660 # Specify what files to not compare during bootstrap.
14662 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14663 case "$target" in
14664 hppa*64*-*-hpux*) ;;
14665 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14666 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14667 esac
14670 ac_config_files="$ac_config_files Makefile"
14672 cat >confcache <<\_ACEOF
14673 # This file is a shell script that caches the results of configure
14674 # tests run on this system so they can be shared between configure
14675 # scripts and configure runs, see configure's option --config-cache.
14676 # It is not useful on other systems. If it contains results you don't
14677 # want to keep, you may remove or edit it.
14679 # config.status only pays attention to the cache file if you give it
14680 # the --recheck option to rerun configure.
14682 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14683 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14684 # following values.
14686 _ACEOF
14688 # The following way of writing the cache mishandles newlines in values,
14689 # but we know of no workaround that is simple, portable, and efficient.
14690 # So, we kill variables containing newlines.
14691 # Ultrix sh set writes to stderr and can't be redirected directly,
14692 # and sets the high bit in the cache file unless we assign to the vars.
14694 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14695 eval ac_val=\$$ac_var
14696 case $ac_val in #(
14697 *${as_nl}*)
14698 case $ac_var in #(
14699 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14701 esac
14702 case $ac_var in #(
14703 _ | IFS | as_nl) ;; #(
14704 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14705 *) { eval $ac_var=; unset $ac_var;} ;;
14706 esac ;;
14707 esac
14708 done
14710 (set) 2>&1 |
14711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14712 *${as_nl}ac_space=\ *)
14713 # `set' does not quote correctly, so add quotes: double-quote
14714 # substitution turns \\\\ into \\, and sed turns \\ into \.
14715 sed -n \
14716 "s/'/'\\\\''/g;
14717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14718 ;; #(
14720 # `set' quotes correctly as required by POSIX, so do not add quotes.
14721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14723 esac |
14724 sort
14726 sed '
14727 /^ac_cv_env_/b end
14728 t clear
14729 :clear
14730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14731 t end
14732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14733 :end' >>confcache
14734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14735 if test -w "$cache_file"; then
14736 test "x$cache_file" != "x/dev/null" &&
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14738 $as_echo "$as_me: updating cache $cache_file" >&6;}
14739 cat confcache >$cache_file
14740 else
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14742 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14745 rm -f confcache
14747 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14748 # Let make expand exec_prefix.
14749 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14751 # Transform confdefs.h into DEFS.
14752 # Protect against shell expansion while executing Makefile rules.
14753 # Protect against Makefile macro expansion.
14755 # If the first sed substitution is executed (which looks for macros that
14756 # take arguments), then branch to the quote section. Otherwise,
14757 # look for a macro that doesn't take arguments.
14758 ac_script='
14759 :mline
14760 /\\$/{
14762 s,\\\n,,
14763 b mline
14765 t clear
14766 :clear
14767 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14768 t quote
14769 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14770 t quote
14771 b any
14772 :quote
14773 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14774 s/\[/\\&/g
14775 s/\]/\\&/g
14776 s/\$/$$/g
14778 :any
14781 s/^\n//
14782 s/\n/ /g
14786 DEFS=`sed -n "$ac_script" confdefs.h`
14789 ac_libobjs=
14790 ac_ltlibobjs=
14791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14792 # 1. Remove the extension, and $U if already installed.
14793 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14794 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14795 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14796 # will be set to the directory where LIBOBJS objects are built.
14797 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14798 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14799 done
14800 LIBOBJS=$ac_libobjs
14802 LTLIBOBJS=$ac_ltlibobjs
14806 : ${CONFIG_STATUS=./config.status}
14807 ac_write_fail=0
14808 ac_clean_files_save=$ac_clean_files
14809 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14811 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14812 as_write_fail=0
14813 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14814 #! $SHELL
14815 # Generated by $as_me.
14816 # Run this file to recreate the current configuration.
14817 # Compiler output produced by configure, useful for debugging
14818 # configure, is in config.log if it exists.
14820 debug=false
14821 ac_cs_recheck=false
14822 ac_cs_silent=false
14824 SHELL=\${CONFIG_SHELL-$SHELL}
14825 export SHELL
14826 _ASEOF
14827 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14828 ## -------------------- ##
14829 ## M4sh Initialization. ##
14830 ## -------------------- ##
14832 # Be more Bourne compatible
14833 DUALCASE=1; export DUALCASE # for MKS sh
14834 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14835 emulate sh
14836 NULLCMD=:
14837 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14838 # is contrary to our usage. Disable this feature.
14839 alias -g '${1+"$@"}'='"$@"'
14840 setopt NO_GLOB_SUBST
14841 else
14842 case `(set -o) 2>/dev/null` in #(
14843 *posix*) :
14844 set -o posix ;; #(
14845 *) :
14847 esac
14851 as_nl='
14853 export as_nl
14854 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14855 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14856 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14857 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14858 # Prefer a ksh shell builtin over an external printf program on Solaris,
14859 # but without wasting forks for bash or zsh.
14860 if test -z "$BASH_VERSION$ZSH_VERSION" \
14861 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14862 as_echo='print -r --'
14863 as_echo_n='print -rn --'
14864 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14865 as_echo='printf %s\n'
14866 as_echo_n='printf %s'
14867 else
14868 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14869 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14870 as_echo_n='/usr/ucb/echo -n'
14871 else
14872 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14873 as_echo_n_body='eval
14874 arg=$1;
14875 case $arg in #(
14876 *"$as_nl"*)
14877 expr "X$arg" : "X\\(.*\\)$as_nl";
14878 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14879 esac;
14880 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14882 export as_echo_n_body
14883 as_echo_n='sh -c $as_echo_n_body as_echo'
14885 export as_echo_body
14886 as_echo='sh -c $as_echo_body as_echo'
14889 # The user is always right.
14890 if test "${PATH_SEPARATOR+set}" != set; then
14891 PATH_SEPARATOR=:
14892 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14893 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14894 PATH_SEPARATOR=';'
14899 # IFS
14900 # We need space, tab and new line, in precisely that order. Quoting is
14901 # there to prevent editors from complaining about space-tab.
14902 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14903 # splitting by setting IFS to empty value.)
14904 IFS=" "" $as_nl"
14906 # Find who we are. Look in the path if we contain no directory separator.
14907 case $0 in #((
14908 *[\\/]* ) as_myself=$0 ;;
14909 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14910 for as_dir in $PATH
14912 IFS=$as_save_IFS
14913 test -z "$as_dir" && as_dir=.
14914 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14915 done
14916 IFS=$as_save_IFS
14919 esac
14920 # We did not find ourselves, most probably we were run as `sh COMMAND'
14921 # in which case we are not to be found in the path.
14922 if test "x$as_myself" = x; then
14923 as_myself=$0
14925 if test ! -f "$as_myself"; then
14926 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14927 exit 1
14930 # Unset variables that we do not need and which cause bugs (e.g. in
14931 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14932 # suppresses any "Segmentation fault" message there. '((' could
14933 # trigger a bug in pdksh 5.2.14.
14934 for as_var in BASH_ENV ENV MAIL MAILPATH
14935 do eval test x\${$as_var+set} = xset \
14936 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14937 done
14938 PS1='$ '
14939 PS2='> '
14940 PS4='+ '
14942 # NLS nuisances.
14943 LC_ALL=C
14944 export LC_ALL
14945 LANGUAGE=C
14946 export LANGUAGE
14948 # CDPATH.
14949 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14952 # as_fn_error ERROR [LINENO LOG_FD]
14953 # ---------------------------------
14954 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14955 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14956 # script with status $?, using 1 if that was 0.
14957 as_fn_error ()
14959 as_status=$?; test $as_status -eq 0 && as_status=1
14960 if test "$3"; then
14961 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14962 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14964 $as_echo "$as_me: error: $1" >&2
14965 as_fn_exit $as_status
14966 } # as_fn_error
14969 # as_fn_set_status STATUS
14970 # -----------------------
14971 # Set $? to STATUS, without forking.
14972 as_fn_set_status ()
14974 return $1
14975 } # as_fn_set_status
14977 # as_fn_exit STATUS
14978 # -----------------
14979 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14980 as_fn_exit ()
14982 set +e
14983 as_fn_set_status $1
14984 exit $1
14985 } # as_fn_exit
14987 # as_fn_unset VAR
14988 # ---------------
14989 # Portably unset VAR.
14990 as_fn_unset ()
14992 { eval $1=; unset $1;}
14994 as_unset=as_fn_unset
14995 # as_fn_append VAR VALUE
14996 # ----------------------
14997 # Append the text in VALUE to the end of the definition contained in VAR. Take
14998 # advantage of any shell optimizations that allow amortized linear growth over
14999 # repeated appends, instead of the typical quadratic growth present in naive
15000 # implementations.
15001 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15002 eval 'as_fn_append ()
15004 eval $1+=\$2
15006 else
15007 as_fn_append ()
15009 eval $1=\$$1\$2
15011 fi # as_fn_append
15013 # as_fn_arith ARG...
15014 # ------------------
15015 # Perform arithmetic evaluation on the ARGs, and store the result in the
15016 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15017 # must be portable across $(()) and expr.
15018 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15019 eval 'as_fn_arith ()
15021 as_val=$(( $* ))
15023 else
15024 as_fn_arith ()
15026 as_val=`expr "$@" || test $? -eq 1`
15028 fi # as_fn_arith
15031 if expr a : '\(a\)' >/dev/null 2>&1 &&
15032 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15033 as_expr=expr
15034 else
15035 as_expr=false
15038 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15039 as_basename=basename
15040 else
15041 as_basename=false
15044 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15045 as_dirname=dirname
15046 else
15047 as_dirname=false
15050 as_me=`$as_basename -- "$0" ||
15051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15052 X"$0" : 'X\(//\)$' \| \
15053 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15054 $as_echo X/"$0" |
15055 sed '/^.*\/\([^/][^/]*\)\/*$/{
15056 s//\1/
15059 /^X\/\(\/\/\)$/{
15060 s//\1/
15063 /^X\/\(\/\).*/{
15064 s//\1/
15067 s/.*/./; q'`
15069 # Avoid depending upon Character Ranges.
15070 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15071 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15072 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15073 as_cr_digits='0123456789'
15074 as_cr_alnum=$as_cr_Letters$as_cr_digits
15076 ECHO_C= ECHO_N= ECHO_T=
15077 case `echo -n x` in #(((((
15078 -n*)
15079 case `echo 'xy\c'` in
15080 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15081 xy) ECHO_C='\c';;
15082 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15083 ECHO_T=' ';;
15084 esac;;
15086 ECHO_N='-n';;
15087 esac
15089 rm -f conf$$ conf$$.exe conf$$.file
15090 if test -d conf$$.dir; then
15091 rm -f conf$$.dir/conf$$.file
15092 else
15093 rm -f conf$$.dir
15094 mkdir conf$$.dir 2>/dev/null
15096 if (echo >conf$$.file) 2>/dev/null; then
15097 if ln -s conf$$.file conf$$ 2>/dev/null; then
15098 as_ln_s='ln -s'
15099 # ... but there are two gotchas:
15100 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15101 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15102 # In both cases, we have to default to `cp -p'.
15103 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15104 as_ln_s='cp -p'
15105 elif ln conf$$.file conf$$ 2>/dev/null; then
15106 as_ln_s=ln
15107 else
15108 as_ln_s='cp -p'
15110 else
15111 as_ln_s='cp -p'
15113 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15114 rmdir conf$$.dir 2>/dev/null
15117 # as_fn_mkdir_p
15118 # -------------
15119 # Create "$as_dir" as a directory, including parents if necessary.
15120 as_fn_mkdir_p ()
15123 case $as_dir in #(
15124 -*) as_dir=./$as_dir;;
15125 esac
15126 test -d "$as_dir" || eval $as_mkdir_p || {
15127 as_dirs=
15128 while :; do
15129 case $as_dir in #(
15130 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15131 *) as_qdir=$as_dir;;
15132 esac
15133 as_dirs="'$as_qdir' $as_dirs"
15134 as_dir=`$as_dirname -- "$as_dir" ||
15135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15136 X"$as_dir" : 'X\(//\)[^/]' \| \
15137 X"$as_dir" : 'X\(//\)$' \| \
15138 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15139 $as_echo X"$as_dir" |
15140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15141 s//\1/
15144 /^X\(\/\/\)[^/].*/{
15145 s//\1/
15148 /^X\(\/\/\)$/{
15149 s//\1/
15152 /^X\(\/\).*/{
15153 s//\1/
15156 s/.*/./; q'`
15157 test -d "$as_dir" && break
15158 done
15159 test -z "$as_dirs" || eval "mkdir $as_dirs"
15160 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15163 } # as_fn_mkdir_p
15164 if mkdir -p . 2>/dev/null; then
15165 as_mkdir_p='mkdir -p "$as_dir"'
15166 else
15167 test -d ./-p && rmdir ./-p
15168 as_mkdir_p=false
15171 if test -x / >/dev/null 2>&1; then
15172 as_test_x='test -x'
15173 else
15174 if ls -dL / >/dev/null 2>&1; then
15175 as_ls_L_option=L
15176 else
15177 as_ls_L_option=
15179 as_test_x='
15180 eval sh -c '\''
15181 if test -d "$1"; then
15182 test -d "$1/.";
15183 else
15184 case $1 in #(
15185 -*)set "./$1";;
15186 esac;
15187 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15188 ???[sx]*):;;*)false;;esac;fi
15189 '\'' sh
15192 as_executable_p=$as_test_x
15194 # Sed expression to map a string onto a valid CPP name.
15195 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15197 # Sed expression to map a string onto a valid variable name.
15198 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15201 exec 6>&1
15202 ## ----------------------------------- ##
15203 ## Main body of $CONFIG_STATUS script. ##
15204 ## ----------------------------------- ##
15205 _ASEOF
15206 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15209 # Save the log message, to keep $0 and so on meaningful, and to
15210 # report actual input values of CONFIG_FILES etc. instead of their
15211 # values after options handling.
15212 ac_log="
15213 This file was extended by $as_me, which was
15214 generated by GNU Autoconf 2.64. Invocation command line was
15216 CONFIG_FILES = $CONFIG_FILES
15217 CONFIG_HEADERS = $CONFIG_HEADERS
15218 CONFIG_LINKS = $CONFIG_LINKS
15219 CONFIG_COMMANDS = $CONFIG_COMMANDS
15220 $ $0 $@
15222 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15225 _ACEOF
15227 case $ac_config_files in *"
15228 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15229 esac
15233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15234 # Files that config.status was made for.
15235 config_files="$ac_config_files"
15237 _ACEOF
15239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15240 ac_cs_usage="\
15241 \`$as_me' instantiates files and other configuration actions
15242 from templates according to the current configuration. Unless the files
15243 and actions are specified as TAGs, all are instantiated by default.
15245 Usage: $0 [OPTION]... [TAG]...
15247 -h, --help print this help, then exit
15248 -V, --version print version number and configuration settings, then exit
15249 -q, --quiet, --silent
15250 do not print progress messages
15251 -d, --debug don't remove temporary files
15252 --recheck update $as_me by reconfiguring in the same conditions
15253 --file=FILE[:TEMPLATE]
15254 instantiate the configuration file FILE
15256 Configuration files:
15257 $config_files
15259 Report bugs to the package provider."
15261 _ACEOF
15262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15263 ac_cs_version="\\
15264 config.status
15265 configured by $0, generated by GNU Autoconf 2.64,
15266 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15268 Copyright (C) 2009 Free Software Foundation, Inc.
15269 This config.status script is free software; the Free Software Foundation
15270 gives unlimited permission to copy, distribute and modify it."
15272 ac_pwd='$ac_pwd'
15273 srcdir='$srcdir'
15274 INSTALL='$INSTALL'
15275 AWK='$AWK'
15276 test -n "\$AWK" || AWK=awk
15277 _ACEOF
15279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15280 # The default lists apply if the user does not specify any file.
15281 ac_need_defaults=:
15282 while test $# != 0
15284 case $1 in
15285 --*=*)
15286 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15287 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15288 ac_shift=:
15291 ac_option=$1
15292 ac_optarg=$2
15293 ac_shift=shift
15295 esac
15297 case $ac_option in
15298 # Handling of the options.
15299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15300 ac_cs_recheck=: ;;
15301 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15302 $as_echo "$ac_cs_version"; exit ;;
15303 --debug | --debu | --deb | --de | --d | -d )
15304 debug=: ;;
15305 --file | --fil | --fi | --f )
15306 $ac_shift
15307 case $ac_optarg in
15308 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15309 esac
15310 as_fn_append CONFIG_FILES " '$ac_optarg'"
15311 ac_need_defaults=false;;
15312 --he | --h | --help | --hel | -h )
15313 $as_echo "$ac_cs_usage"; exit ;;
15314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15315 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15316 ac_cs_silent=: ;;
15318 # This is an error.
15319 -*) as_fn_error "unrecognized option: \`$1'
15320 Try \`$0 --help' for more information." ;;
15322 *) as_fn_append ac_config_targets " $1"
15323 ac_need_defaults=false ;;
15325 esac
15326 shift
15327 done
15329 ac_configure_extra_args=
15331 if $ac_cs_silent; then
15332 exec 6>/dev/null
15333 ac_configure_extra_args="$ac_configure_extra_args --silent"
15336 _ACEOF
15337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15338 if \$ac_cs_recheck; then
15339 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15340 shift
15341 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15342 CONFIG_SHELL='$SHELL'
15343 export CONFIG_SHELL
15344 exec "\$@"
15347 _ACEOF
15348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15349 exec 5>>config.log
15351 echo
15352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15353 ## Running $as_me. ##
15354 _ASBOX
15355 $as_echo "$ac_log"
15356 } >&5
15358 _ACEOF
15359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15361 # INIT-COMMANDS
15363 extrasub_build="$extrasub_build"
15364 extrasub_host="$extrasub_host"
15365 extrasub_target="$extrasub_target"
15367 _ACEOF
15369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15371 # Handling of arguments.
15372 for ac_config_target in $ac_config_targets
15374 case $ac_config_target in
15375 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15377 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15378 esac
15379 done
15382 # If the user did not use the arguments to specify the items to instantiate,
15383 # then the envvar interface is used. Set only those that are not.
15384 # We use the long form for the default assignment because of an extremely
15385 # bizarre bug on SunOS 4.1.3.
15386 if $ac_need_defaults; then
15387 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15390 # Have a temporary directory for convenience. Make it in the build tree
15391 # simply because there is no reason against having it here, and in addition,
15392 # creating and moving files from /tmp can sometimes cause problems.
15393 # Hook for its removal unless debugging.
15394 # Note that there is a small window in which the directory will not be cleaned:
15395 # after its creation but before its name has been assigned to `$tmp'.
15396 $debug ||
15398 tmp=
15399 trap 'exit_status=$?
15400 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15402 trap 'as_fn_exit 1' 1 2 13 15
15404 # Create a (secure) tmp directory for tmp files.
15407 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15408 test -n "$tmp" && test -d "$tmp"
15409 } ||
15411 tmp=./conf$$-$RANDOM
15412 (umask 077 && mkdir "$tmp")
15413 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15415 # Set up the scripts for CONFIG_FILES section.
15416 # No need to generate them if there are no CONFIG_FILES.
15417 # This happens for instance with `./config.status config.h'.
15418 if test -n "$CONFIG_FILES"; then
15420 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15421 ac_cs_awk_getline=:
15422 ac_cs_awk_pipe_init=
15423 ac_cs_awk_read_file='
15424 while ((getline aline < (F[key])) > 0)
15425 print(aline)
15426 close(F[key])'
15427 ac_cs_awk_pipe_fini=
15428 else
15429 ac_cs_awk_getline=false
15430 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15431 ac_cs_awk_read_file='
15432 print "|#_!!_#|"
15433 print "cat " F[key] " &&"
15434 '$ac_cs_awk_pipe_init
15435 # The final `:' finishes the AND list.
15436 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15438 ac_cr=`echo X | tr X '\015'`
15439 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15440 # But we know of no other shell where ac_cr would be empty at this
15441 # point, so we can use a bashism as a fallback.
15442 if test "x$ac_cr" = x; then
15443 eval ac_cr=\$\'\\r\'
15445 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15446 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15447 ac_cs_awk_cr='\r'
15448 else
15449 ac_cs_awk_cr=$ac_cr
15452 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15453 _ACEOF
15455 # Create commands to substitute file output variables.
15457 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15458 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15459 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15460 echo "_ACAWK" &&
15461 echo "_ACEOF"
15462 } >conf$$files.sh &&
15463 . ./conf$$files.sh ||
15464 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15465 rm -f conf$$files.sh
15468 echo "cat >conf$$subs.awk <<_ACEOF" &&
15469 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15470 echo "_ACEOF"
15471 } >conf$$subs.sh ||
15472 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15473 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15474 ac_delim='%!_!# '
15475 for ac_last_try in false false false false false :; do
15476 . ./conf$$subs.sh ||
15477 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15479 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15480 if test $ac_delim_n = $ac_delim_num; then
15481 break
15482 elif $ac_last_try; then
15483 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15484 else
15485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15487 done
15488 rm -f conf$$subs.sh
15490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15491 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15492 _ACEOF
15493 sed -n '
15495 s/^/S["/; s/!.*/"]=/
15498 s/^[^!]*!//
15499 :repl
15500 t repl
15501 s/'"$ac_delim"'$//
15502 t delim
15505 s/\(.\{148\}\).*/\1/
15506 t more1
15507 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15510 b repl
15511 :more1
15512 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15515 s/.\{148\}//
15516 t nl
15517 :delim
15519 s/\(.\{148\}\).*/\1/
15520 t more2
15521 s/["\\]/\\&/g; s/^/"/; s/$/"/
15524 :more2
15525 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15528 s/.\{148\}//
15529 t delim
15530 ' <conf$$subs.awk | sed '
15531 /^[^""]/{
15533 s/\n//
15535 ' >>$CONFIG_STATUS || ac_write_fail=1
15536 rm -f conf$$subs.awk
15537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15538 _ACAWK
15539 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15540 for (key in S) S_is_set[key] = 1
15541 FS = "\a"
15542 \$ac_cs_awk_pipe_init
15545 line = $ 0
15546 nfields = split(line, field, "@")
15547 substed = 0
15548 len = length(field[1])
15549 for (i = 2; i < nfields; i++) {
15550 key = field[i]
15551 keylen = length(key)
15552 if (S_is_set[key]) {
15553 value = S[key]
15554 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15555 len += length(value) + length(field[++i])
15556 substed = 1
15557 } else
15558 len += 1 + keylen
15560 if (nfields == 3 && !substed) {
15561 key = field[2]
15562 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15563 \$ac_cs_awk_read_file
15564 next
15567 print line
15569 \$ac_cs_awk_pipe_fini
15570 _ACAWK
15571 _ACEOF
15572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15573 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15574 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15575 else
15577 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15578 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15579 _ACEOF
15581 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15582 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15583 # trailing colons and then remove the whole line if VPATH becomes empty
15584 # (actually we leave an empty line to preserve line numbers).
15585 if test "x$srcdir" = x.; then
15586 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15587 s/:*\$(srcdir):*/:/
15588 s/:*\${srcdir}:*/:/
15589 s/:*@srcdir@:*/:/
15590 s/^\([^=]*=[ ]*\):*/\1/
15591 s/:*$//
15592 s/^[^=]*=[ ]*$//
15596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597 fi # test -n "$CONFIG_FILES"
15600 eval set X " :F $CONFIG_FILES "
15601 shift
15602 for ac_tag
15604 case $ac_tag in
15605 :[FHLC]) ac_mode=$ac_tag; continue;;
15606 esac
15607 case $ac_mode$ac_tag in
15608 :[FHL]*:*);;
15609 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15610 :[FH]-) ac_tag=-:-;;
15611 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15612 esac
15613 ac_save_IFS=$IFS
15614 IFS=:
15615 set x $ac_tag
15616 IFS=$ac_save_IFS
15617 shift
15618 ac_file=$1
15619 shift
15621 case $ac_mode in
15622 :L) ac_source=$1;;
15623 :[FH])
15624 ac_file_inputs=
15625 for ac_f
15627 case $ac_f in
15628 -) ac_f="$tmp/stdin";;
15629 *) # Look for the file first in the build tree, then in the source tree
15630 # (if the path is not absolute). The absolute path cannot be DOS-style,
15631 # because $ac_f cannot contain `:'.
15632 test -f "$ac_f" ||
15633 case $ac_f in
15634 [\\/$]*) false;;
15635 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15636 esac ||
15637 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15638 esac
15639 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15640 as_fn_append ac_file_inputs " '$ac_f'"
15641 done
15643 # Let's still pretend it is `configure' which instantiates (i.e., don't
15644 # use $as_me), people would be surprised to read:
15645 # /* config.h. Generated by config.status. */
15646 configure_input='Generated from '`
15647 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15648 `' by configure.'
15649 if test x"$ac_file" != x-; then
15650 configure_input="$ac_file. $configure_input"
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15652 $as_echo "$as_me: creating $ac_file" >&6;}
15654 # Neutralize special characters interpreted by sed in replacement strings.
15655 case $configure_input in #(
15656 *\&* | *\|* | *\\* )
15657 ac_sed_conf_input=`$as_echo "$configure_input" |
15658 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15659 *) ac_sed_conf_input=$configure_input;;
15660 esac
15662 case $ac_tag in
15663 *:-:* | *:-) cat >"$tmp/stdin" \
15664 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15665 esac
15667 esac
15669 ac_dir=`$as_dirname -- "$ac_file" ||
15670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15671 X"$ac_file" : 'X\(//\)[^/]' \| \
15672 X"$ac_file" : 'X\(//\)$' \| \
15673 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15674 $as_echo X"$ac_file" |
15675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15676 s//\1/
15679 /^X\(\/\/\)[^/].*/{
15680 s//\1/
15683 /^X\(\/\/\)$/{
15684 s//\1/
15687 /^X\(\/\).*/{
15688 s//\1/
15691 s/.*/./; q'`
15692 as_dir="$ac_dir"; as_fn_mkdir_p
15693 ac_builddir=.
15695 case "$ac_dir" in
15696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15698 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15699 # A ".." for each directory in $ac_dir_suffix.
15700 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15701 case $ac_top_builddir_sub in
15702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15704 esac ;;
15705 esac
15706 ac_abs_top_builddir=$ac_pwd
15707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15708 # for backward compatibility:
15709 ac_top_builddir=$ac_top_build_prefix
15711 case $srcdir in
15712 .) # We are building in place.
15713 ac_srcdir=.
15714 ac_top_srcdir=$ac_top_builddir_sub
15715 ac_abs_top_srcdir=$ac_pwd ;;
15716 [\\/]* | ?:[\\/]* ) # Absolute name.
15717 ac_srcdir=$srcdir$ac_dir_suffix;
15718 ac_top_srcdir=$srcdir
15719 ac_abs_top_srcdir=$srcdir ;;
15720 *) # Relative name.
15721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15722 ac_top_srcdir=$ac_top_build_prefix$srcdir
15723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15724 esac
15725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15728 case $ac_mode in
15731 # CONFIG_FILE
15734 case $INSTALL in
15735 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15736 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15737 esac
15738 _ACEOF
15740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15741 # If the template does not know about datarootdir, expand it.
15742 # FIXME: This hack should be removed a few years after 2.60.
15743 ac_datarootdir_hack=; ac_datarootdir_seen=
15744 ac_sed_dataroot='
15745 /datarootdir/ {
15749 /@datadir@/p
15750 /@docdir@/p
15751 /@infodir@/p
15752 /@localedir@/p
15753 /@mandir@/p'
15754 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15755 *datarootdir*) ac_datarootdir_seen=yes;;
15756 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15758 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15759 _ACEOF
15760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15761 ac_datarootdir_hack='
15762 s&@datadir@&$datadir&g
15763 s&@docdir@&$docdir&g
15764 s&@infodir@&$infodir&g
15765 s&@localedir@&$localedir&g
15766 s&@mandir@&$mandir&g
15767 s&\\\${datarootdir}&$datarootdir&g' ;;
15768 esac
15769 _ACEOF
15771 # Neutralize VPATH when `$srcdir' = `.'.
15772 # Shell code in configure.ac might set extrasub.
15773 # FIXME: do we really want to maintain this feature?
15774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15775 ac_sed_extra="$ac_vpsub
15776 $extrasub
15777 _ACEOF
15778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15781 s|@configure_input@|$ac_sed_conf_input|;t t
15782 s&@top_builddir@&$ac_top_builddir_sub&;t t
15783 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15784 s&@srcdir@&$ac_srcdir&;t t
15785 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15786 s&@top_srcdir@&$ac_top_srcdir&;t t
15787 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15788 s&@builddir@&$ac_builddir&;t t
15789 s&@abs_builddir@&$ac_abs_builddir&;t t
15790 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15791 s&@INSTALL@&$ac_INSTALL&;t t
15792 $ac_datarootdir_hack
15794 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15795 if $ac_cs_awk_getline; then
15796 $AWK -f "$tmp/subs.awk"
15797 else
15798 $AWK -f "$tmp/subs.awk" | $SHELL
15799 fi >$tmp/out \
15800 || as_fn_error "could not create $ac_file" "$LINENO" 5
15802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15803 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15804 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15806 which seems to be undefined. Please make sure it is defined." >&5
15807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15808 which seems to be undefined. Please make sure it is defined." >&2;}
15810 rm -f "$tmp/stdin"
15811 case $ac_file in
15812 -) cat "$tmp/out" && rm -f "$tmp/out";;
15813 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15814 esac \
15815 || as_fn_error "could not create $ac_file" "$LINENO" 5
15820 esac
15823 case $ac_file$ac_mode in
15824 "Makefile":F) sed "$extrasub_build" Makefile |
15825 sed "$extrasub_host" |
15826 sed "$extrasub_target" > mf$$
15827 mv -f mf$$ Makefile ;;
15829 esac
15830 done # for ac_tag
15833 as_fn_exit 0
15834 _ACEOF
15835 ac_clean_files=$ac_clean_files_save
15837 test $ac_write_fail = 0 ||
15838 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15841 # configure is writing to config.log, and then calls config.status.
15842 # config.status does its own redirection, appending to config.log.
15843 # Unfortunately, on DOS this fails, as config.log is still kept open
15844 # by configure, so config.status won't be able to write to it; its
15845 # output is simply discarded. So we exec the FD to /dev/null,
15846 # effectively closing config.log, so it can be properly (re)opened and
15847 # appended to by config.status. When coming back to configure, we
15848 # need to make the FD available again.
15849 if test "$no_create" != yes; then
15850 ac_cs_success=:
15851 ac_config_status_args=
15852 test "$silent" = yes &&
15853 ac_config_status_args="$ac_config_status_args --quiet"
15854 exec 5>/dev/null
15855 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15856 exec 5>>config.log
15857 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15858 # would make configure fail if this is the last instruction.
15859 $ac_cs_success || as_fn_exit $?
15861 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15863 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}