* README.Portability: Remove note on an Irix compatibility issue.
[official-gcc.git] / configure
blob60532fe4c1bca97e6ce77c95678fa07fa8313b1b
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-libatomic \
2758 target-libitm \
2759 target-libstdc++-v3 \
2760 target-libsanitizer \
2761 target-libvtv \
2762 target-libmpx \
2763 target-libssp \
2764 target-libquadmath \
2765 target-libgfortran \
2766 target-libffi \
2767 target-libobjc \
2768 target-libada \
2769 target-libgo"
2771 # these tools are built using the target libraries, and are intended to
2772 # run only in the target environment
2774 # note: any program that *uses* libraries that are in the "target_libraries"
2775 # list belongs in this list.
2777 target_tools="target-rda"
2779 ################################################################################
2781 ## All tools belong in one of the four categories, and are assigned above
2782 ## We assign ${configdirs} this way to remove all embedded newlines. This
2783 ## is important because configure will choke if they ever get through.
2784 ## ${configdirs} is directories we build using the host tools.
2785 ## ${target_configdirs} is directories we build using the target tools.
2786 configdirs=`echo ${host_libs} ${host_tools}`
2787 target_configdirs=`echo ${target_libraries} ${target_tools}`
2788 build_configdirs=`echo ${build_libs} ${build_tools}`
2792 ################################################################################
2794 srcname="gnu development package"
2796 # This gets set non-empty for some net releases of packages.
2797 appdirs=""
2799 # Define is_cross_compiler to save on calls to 'test'.
2800 is_cross_compiler=
2801 if test x"${host}" = x"${target}" ; then
2802 is_cross_compiler=no
2803 else
2804 is_cross_compiler=yes
2807 # Find the build and target subdir names.
2809 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2810 # have matching libraries, they should use host libraries: Makefile.tpl
2811 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2812 # However, they still use the build modules, because the corresponding
2813 # host modules (e.g. bison) are only built for the host when bootstrap
2814 # finishes. So:
2815 # - build_subdir is where we find build modules, and never changes.
2816 # - build_libsubdir is where we find build libraries, and can be overridden.
2818 # Prefix 'build-' so this never conflicts with target_subdir.
2819 build_subdir="build-${build_noncanonical}"
2821 # Check whether --with-build-libsubdir was given.
2822 if test "${with_build_libsubdir+set}" = set; then :
2823 withval=$with_build_libsubdir; build_libsubdir="$withval"
2824 else
2825 build_libsubdir="$build_subdir"
2828 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2829 if ( test $srcdir = . && test -d gcc ) \
2830 || test -d $srcdir/../host-${host_noncanonical}; then
2831 host_subdir="host-${host_noncanonical}"
2832 else
2833 host_subdir=.
2835 # No prefix.
2836 target_subdir=${target_noncanonical}
2838 # Be sure to cover against remnants of an in-tree build.
2839 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2840 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2841 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2844 # Skipdirs are removed silently.
2845 skipdirs=
2846 # Noconfigdirs are removed loudly.
2847 noconfigdirs=""
2849 use_gnu_ld=
2850 # Make sure we don't let GNU ld be added if we didn't want it.
2851 if test x$with_gnu_ld = xno ; then
2852 use_gnu_ld=no
2853 noconfigdirs="$noconfigdirs ld gold"
2856 use_gnu_as=
2857 # Make sure we don't let GNU as be added if we didn't want it.
2858 if test x$with_gnu_as = xno ; then
2859 use_gnu_as=no
2860 noconfigdirs="$noconfigdirs gas"
2863 use_included_zlib=
2865 # Check whether --with-system-zlib was given.
2866 if test "${with_system_zlib+set}" = set; then :
2867 withval=$with_system_zlib;
2870 # Make sure we don't let ZLIB be added if we didn't want it.
2871 if test x$with_system_zlib = xyes ; then
2872 use_included_zlib=no
2873 noconfigdirs="$noconfigdirs zlib"
2876 # some tools are so dependent upon X11 that if we're not building with X,
2877 # it's not even worth trying to configure, much less build, that tool.
2879 case ${with_x} in
2880 yes | "") ;; # the default value for this tree is that X11 is available
2882 skipdirs="${skipdirs} tk itcl libgui"
2883 # We won't be able to build gdbtk without X.
2884 enable_gdbtk=no
2886 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2887 esac
2889 # Some are only suitable for cross toolchains.
2890 # Remove these if host=target.
2891 cross_only="target-libgloss target-newlib target-opcodes"
2893 case $is_cross_compiler in
2894 no) skipdirs="${skipdirs} ${cross_only}" ;;
2895 esac
2897 # If both --with-headers and --with-libs are specified, default to
2898 # --without-newlib.
2899 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2900 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2901 if test x"${with_newlib}" = x ; then
2902 with_newlib=no
2906 # Recognize --with-newlib/--without-newlib.
2907 case ${with_newlib} in
2908 no) skipdirs="${skipdirs} target-newlib" ;;
2909 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2910 esac
2912 # Check whether --enable-as-accelerator-for was given.
2913 if test "${enable_as_accelerator_for+set}" = set; then :
2914 enableval=$enable_as_accelerator_for;
2918 # Check whether --enable-offload-targets was given.
2919 if test "${enable_offload_targets+set}" = set; then :
2920 enableval=$enable_offload_targets;
2921 if test x"$enable_offload_targets" = x; then
2922 as_fn_error "no offload targets specified" "$LINENO" 5
2925 else
2926 enable_offload_targets=
2930 # Handle --enable-gold, --enable-ld.
2931 # --disable-gold [--enable-ld]
2932 # Build only ld. Default option.
2933 # --enable-gold [--enable-ld]
2934 # Build both gold and ld. Install gold as "ld.gold", install ld
2935 # as "ld.bfd" and "ld".
2936 # --enable-gold=default [--enable-ld]
2937 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2938 # install ld as "ld.bfd".
2939 # --enable-gold[=default] --disable-ld
2940 # Build only gold, which is then installed as both "ld.gold" and "ld".
2941 # --enable-gold --enable-ld=default
2942 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2943 # and ld.bfd).
2944 # In other words, ld is default
2945 # --enable-gold=default --enable-ld=default
2946 # Error.
2948 default_ld=
2949 # Check whether --enable-gold was given.
2950 if test "${enable_gold+set}" = set; then :
2951 enableval=$enable_gold; ENABLE_GOLD=$enableval
2952 else
2953 ENABLE_GOLD=no
2956 case "${ENABLE_GOLD}" in
2957 yes|default)
2958 # Check for ELF target.
2959 is_elf=no
2960 case "${target}" in
2961 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2962 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2963 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2964 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2965 case "${target}" in
2966 *-*-linux*aout* | *-*-linux*oldld*)
2969 is_elf=yes
2971 esac
2972 esac
2974 if test "$is_elf" = "yes"; then
2975 # Check for target supported by gold.
2976 case "${target}" in
2977 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2978 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2979 configdirs="$configdirs gold"
2980 if test x${ENABLE_GOLD} = xdefault; then
2981 default_ld=gold
2983 ENABLE_GOLD=yes
2985 esac
2991 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2993 esac
2995 # Check whether --enable-ld was given.
2996 if test "${enable_ld+set}" = set; then :
2997 enableval=$enable_ld; ENABLE_LD=$enableval
2998 else
2999 ENABLE_LD=yes
3003 case "${ENABLE_LD}" in
3004 default)
3005 if test x${default_ld} != x; then
3006 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3009 yes)
3012 if test x${ENABLE_GOLD} != xyes; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3014 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3016 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3019 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3021 esac
3023 # PR gas/19109
3024 # Decide the default method for compressing debug sections.
3025 # Provide a configure time option to override our default.
3026 # Check whether --enable-compressed_debug_sections was given.
3027 if test "${enable_compressed_debug_sections+set}" = set; then :
3028 enableval=$enable_compressed_debug_sections;
3029 if test x"$enable_compressed_debug_sections" = xyes; then
3030 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3033 else
3034 enable_compressed_debug_sections=
3038 # Configure extra directories which are host specific
3040 case "${host}" in
3041 *-cygwin*)
3042 configdirs="$configdirs libtermcap" ;;
3043 esac
3045 # A target can indicate whether a language isn't supported for some reason.
3046 # Only spaces may be used in this macro; not newlines or tabs.
3047 unsupported_languages=
3049 # Remove more programs from consideration, based on the host or
3050 # target this usually means that a port of the program doesn't
3051 # exist yet.
3053 case "${host}" in
3054 i[3456789]86-*-msdosdjgpp*)
3055 noconfigdirs="$noconfigdirs tcl tk itcl"
3057 esac
3060 # Check whether --enable-libquadmath was given.
3061 if test "${enable_libquadmath+set}" = set; then :
3062 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3063 else
3064 ENABLE_LIBQUADMATH=yes
3067 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3068 noconfigdirs="$noconfigdirs target-libquadmath"
3072 # Check whether --enable-libquadmath-support was given.
3073 if test "${enable_libquadmath_support+set}" = set; then :
3074 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3075 else
3076 ENABLE_LIBQUADMATH_SUPPORT=yes
3079 enable_libquadmath_support=
3080 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3081 enable_libquadmath_support=no
3085 # Check whether --enable-libada was given.
3086 if test "${enable_libada+set}" = set; then :
3087 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3088 else
3089 ENABLE_LIBADA=yes
3092 if test "${ENABLE_LIBADA}" != "yes" ; then
3093 noconfigdirs="$noconfigdirs gnattools"
3096 # Check whether --enable-libssp was given.
3097 if test "${enable_libssp+set}" = set; then :
3098 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3099 else
3100 ENABLE_LIBSSP=yes
3104 # Check whether --enable-libstdcxx was given.
3105 if test "${enable_libstdcxx+set}" = set; then :
3106 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3107 else
3108 ENABLE_LIBSTDCXX=default
3111 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3112 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3115 # If this is accelerator compiler and its target is intelmic we enable
3116 # target liboffloadmic by default. If this is compiler with offloading
3117 # for intelmic we enable host liboffloadmic by default. Otherwise
3118 # liboffloadmic is disabled by default.
3119 # Check whether --enable-liboffloadmic was given.
3120 if test "${enable_liboffloadmic+set}" = set; then :
3121 enableval=$enable_liboffloadmic; case "$enableval" in
3122 no | host | target)
3123 enable_liboffloadmic=$enableval ;;
3125 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3126 esac
3127 else
3128 if test x"$enable_as_accelerator_for" != x; then
3129 case "${target}" in
3130 *-intelmic-* | *-intelmicemul-*)
3131 enable_liboffloadmic=target
3132 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3135 enable_liboffloadmic=no
3137 esac
3138 else
3139 case "${enable_offload_targets}" in
3140 *-intelmic-* | *-intelmicemul-*)
3141 enable_liboffloadmic=host
3142 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3145 enable_liboffloadmic=no
3147 esac
3153 # Enable libgomp by default on hosted POSIX systems, and a few others.
3154 if test x$enable_libgomp = x ; then
3155 case "${target}" in
3156 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3158 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3160 *-*-solaris2* | *-*-hpux11*)
3162 *-*-darwin* | *-*-aix*)
3164 nvptx*-*-*)
3167 noconfigdirs="$noconfigdirs target-libgomp"
3169 esac
3172 # Disable libatomic on unsupported systems.
3173 if test -d ${srcdir}/libatomic; then
3174 if test x$enable_libatomic = x; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3176 $as_echo_n "checking for libatomic support... " >&6; }
3177 if (srcdir=${srcdir}/libatomic; \
3178 . ${srcdir}/configure.tgt; \
3179 test -n "$UNSUPPORTED")
3180 then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 noconfigdirs="$noconfigdirs target-libatomic"
3184 else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3186 $as_echo "yes" >&6; }
3191 # Disable libcilkrts on unsupported systems.
3192 if test -d ${srcdir}/libcilkrts; then
3193 if test x$enable_libcilkrts = x; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3195 $as_echo_n "checking for libcilkrts support... " >&6; }
3196 if (srcdir=${srcdir}/libcilkrts; \
3197 . ${srcdir}/configure.tgt; \
3198 test -n "$UNSUPPORTED")
3199 then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 noconfigdirs="$noconfigdirs target-libcilkrts"
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205 $as_echo "yes" >&6; }
3210 # Disable liboffloadmic on unsupported systems.
3211 if test -d ${srcdir}/liboffloadmic; then
3212 if test x$enable_liboffloadmic != xno; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3214 $as_echo_n "checking for liboffloadmic support... " >&6; }
3215 if (srcdir=${srcdir}/liboffloadmic; \
3216 . ${srcdir}/configure.tgt; \
3217 test -n "$UNSUPPORTED")
3218 then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 noconfigdirs="$noconfigdirs target-liboffloadmic"
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3224 $as_echo "yes" >&6; }
3229 # Disable libitm on unsupported systems.
3230 if test -d ${srcdir}/libitm; then
3231 if test x$enable_libitm = x; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3233 $as_echo_n "checking for libitm support... " >&6; }
3234 if (srcdir=${srcdir}/libitm; \
3235 . ${srcdir}/configure.tgt; \
3236 test -n "$UNSUPPORTED")
3237 then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 noconfigdirs="$noconfigdirs target-libitm"
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3243 $as_echo "yes" >&6; }
3248 # Disable libsanitizer on unsupported systems.
3249 if test -d ${srcdir}/libsanitizer; then
3250 if test x$enable_libsanitizer = x; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3252 $as_echo_n "checking for libsanitizer support... " >&6; }
3253 if (srcdir=${srcdir}/libsanitizer; \
3254 . ${srcdir}/configure.tgt; \
3255 test -n "$UNSUPPORTED")
3256 then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 noconfigdirs="$noconfigdirs target-libsanitizer"
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3267 # Disable libvtv on unsupported systems.
3268 if test -d ${srcdir}/libvtv; then
3269 if test x$enable_libvtv = x; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3271 $as_echo_n "checking for libvtv support... " >&6; }
3272 if (srcdir=${srcdir}/libvtv; \
3273 . ${srcdir}/configure.tgt; \
3274 test "$VTV_SUPPORTED" != "yes")
3275 then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 noconfigdirs="$noconfigdirs target-libvtv"
3279 else
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3287 # Enable libmpx on supported systems by request.
3288 if test -d ${srcdir}/libmpx; then
3289 if test x$enable_libmpx = x; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3291 $as_echo_n "checking for libmpx support... " >&6; }
3292 if (srcdir=${srcdir}/libmpx; \
3293 . ${srcdir}/configure.tgt; \
3294 test "$LIBMPX_SUPPORTED" != "yes")
3295 then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 noconfigdirs="$noconfigdirs target-libmpx"
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3301 $as_echo "yes" >&6; }
3308 # Disable libquadmath for some systems.
3309 case "${target}" in
3310 avr-*-*)
3311 noconfigdirs="$noconfigdirs target-libquadmath"
3313 # libquadmath is unused on AIX and libquadmath build process use of
3314 # LD_LIBRARY_PATH can break AIX bootstrap.
3315 powerpc-*-aix* | rs6000-*-aix*)
3316 noconfigdirs="$noconfigdirs target-libquadmath"
3318 esac
3320 # Disable libssp for some systems.
3321 case "${target}" in
3322 avr-*-*)
3323 # No hosted I/O support.
3324 noconfigdirs="$noconfigdirs target-libssp"
3326 powerpc-*-aix* | rs6000-*-aix*)
3327 noconfigdirs="$noconfigdirs target-libssp"
3329 rl78-*-*)
3330 # libssp uses a misaligned load to trigger a fault, but the RL78
3331 # doesn't fault for those - instead, it gives a build-time error
3332 # for explicit misaligned loads.
3333 noconfigdirs="$noconfigdirs target-libssp"
3335 visium-*-*)
3336 # No hosted I/O support.
3337 noconfigdirs="$noconfigdirs target-libssp"
3339 esac
3341 # Disable libstdc++-v3 for some systems.
3342 # Allow user to override this if they pass --enable-libstdc++-v3
3343 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3344 case "${target}" in
3345 *-*-vxworks*)
3346 # VxWorks uses the Dinkumware C++ library.
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3349 arm*-wince-pe*)
3350 # the C++ libraries don't build on top of CE's C libraries
3351 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3353 avr-*-*)
3354 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3356 ft32-*-*)
3357 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3359 esac
3362 # Disable Fortran for some systems.
3363 case "${target}" in
3364 mmix-*-*)
3365 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3366 unsupported_languages="$unsupported_languages fortran"
3368 esac
3370 # Disable libffi for some systems.
3371 case "${target}" in
3372 powerpc-*-darwin*)
3374 i[3456789]86-*-darwin*)
3376 x86_64-*-darwin[912]*)
3378 *-*-darwin*)
3379 noconfigdirs="$noconfigdirs target-libffi"
3381 *-*-netware*)
3382 noconfigdirs="$noconfigdirs target-libffi"
3384 *-*-phoenix*)
3385 noconfigdirs="$noconfigdirs target-libffi"
3387 *-*-rtems*)
3388 noconfigdirs="$noconfigdirs target-libffi"
3390 *-*-tpf*)
3391 noconfigdirs="$noconfigdirs target-libffi"
3393 *-*-uclinux*)
3394 noconfigdirs="$noconfigdirs target-libffi"
3396 *-*-vxworks*)
3397 noconfigdirs="$noconfigdirs target-libffi"
3399 aarch64*-*-freebsd*)
3400 noconfigdirs="$noconfigdirs target-libffi"
3402 alpha*-*-*vms*)
3403 noconfigdirs="$noconfigdirs target-libffi"
3405 arm*-*-freebsd*)
3406 noconfigdirs="$noconfigdirs target-libffi"
3408 arm-wince-pe)
3409 noconfigdirs="$noconfigdirs target-libffi"
3411 arm*-*-symbianelf*)
3412 noconfigdirs="$noconfigdirs target-libffi"
3414 cris-*-* | crisv32-*-*)
3415 case "${target}" in
3416 *-*-linux*)
3418 *) # See PR46792 regarding target-libffi.
3419 noconfigdirs="$noconfigdirs target-libffi";;
3420 esac
3422 hppa*64*-*-hpux*)
3423 noconfigdirs="$noconfigdirs target-libffi"
3425 hppa*-hp-hpux11*)
3427 hppa*-*-hpux*)
3428 noconfigdirs="$noconfigdirs target-libffi"
3430 ia64*-*-*vms*)
3431 noconfigdirs="$noconfigdirs target-libffi"
3433 i[3456789]86-w64-mingw*)
3434 noconfigdirs="$noconfigdirs target-libffi"
3436 i[3456789]86-*-mingw*)
3437 noconfigdirs="$noconfigdirs target-libffi"
3439 x86_64-*-mingw*)
3440 noconfigdirs="$noconfigdirs target-libffi"
3442 mmix-*-*)
3443 noconfigdirs="$noconfigdirs target-libffi"
3445 powerpc-*-aix*)
3446 # copied from rs6000-*-* entry
3447 noconfigdirs="$noconfigdirs target-libffi"
3449 rs6000-*-aix*)
3450 noconfigdirs="$noconfigdirs target-libffi"
3452 ft32-*-*)
3453 noconfigdirs="$noconfigdirs target-libffi"
3455 *-*-lynxos*)
3456 noconfigdirs="$noconfigdirs target-libffi"
3458 esac
3460 # Disable the go frontend on systems where it is known to not work. Please keep
3461 # this in sync with contrib/config-list.mk.
3462 case "${target}" in
3463 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3464 unsupported_languages="$unsupported_languages go"
3466 esac
3468 # Disable libgo for some systems where it is known to not work.
3469 # For testing, you can easily override this with --enable-libgo.
3470 if test x$enable_libgo = x; then
3471 case "${target}" in
3472 *-*-darwin*)
3473 # PR 46986
3474 noconfigdirs="$noconfigdirs target-libgo"
3476 *-*-cygwin* | *-*-mingw*)
3477 noconfigdirs="$noconfigdirs target-libgo"
3479 *-*-aix*)
3480 noconfigdirs="$noconfigdirs target-libgo"
3482 esac
3485 # Default libgloss CPU subdirectory.
3486 libgloss_dir="$target_cpu"
3488 case "${target}" in
3489 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3490 libgloss_dir=wince
3492 aarch64*-*-* )
3493 libgloss_dir=aarch64
3495 arm*-*-*)
3496 libgloss_dir=arm
3498 cris-*-* | crisv32-*-*)
3499 libgloss_dir=cris
3501 hppa*-*-*)
3502 libgloss_dir=pa
3504 i[3456789]86-*-*)
3505 libgloss_dir=i386
3507 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3508 libgloss_dir=m68hc11
3510 m68*-*-* | fido-*-*)
3511 libgloss_dir=m68k
3513 mips*-*-*)
3514 libgloss_dir=mips
3516 powerpc*-*-*)
3517 libgloss_dir=rs6000
3519 sparc*-*-*)
3520 libgloss_dir=sparc
3522 esac
3524 # Disable newlib and libgloss for various target OSes.
3525 case "${target}" in
3526 alpha*-dec-osf*)
3527 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3529 i[3456789]86-*-linux*)
3530 # This section makes it possible to build newlib natively on linux.
3531 # If we are using a cross compiler then don't configure newlib.
3532 if test x${is_cross_compiler} != xno ; then
3533 noconfigdirs="$noconfigdirs target-newlib"
3535 noconfigdirs="$noconfigdirs target-libgloss"
3536 # If we are not using a cross compiler, do configure newlib.
3537 # Note however, that newlib will only be configured in this situation
3538 # if the --with-newlib option has been given, because otherwise
3539 # 'target-newlib' will appear in skipdirs.
3541 i[3456789]86-*-rdos*)
3542 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3544 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3545 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3547 sparc-*-sunos4*)
3548 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3550 *-*-aix*)
3551 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3553 *-*-beos*)
3554 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3556 *-*-chorusos)
3557 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 *-*-dragonfly*)
3560 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3562 *-*-freebsd*)
3563 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3566 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3568 *-*-lynxos*)
3569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3571 *-*-mingw*)
3572 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3574 *-*-netbsd*)
3575 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3577 *-*-netware*)
3578 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3580 *-*-tpf*)
3581 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3583 *-*-uclinux*)
3584 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3586 *-*-vxworks*)
3587 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3589 esac
3591 case "${target}" in
3592 *-*-chorusos)
3594 aarch64-*-darwin*)
3595 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3596 noconfigdirs="$noconfigdirs sim target-rda"
3598 arm-*-darwin*)
3599 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3600 noconfigdirs="$noconfigdirs sim target-rda"
3602 powerpc-*-darwin*)
3603 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3604 noconfigdirs="$noconfigdirs sim target-rda"
3606 i[3456789]86-*-darwin*)
3607 noconfigdirs="$noconfigdirs ld gprof"
3608 noconfigdirs="$noconfigdirs sim target-rda"
3610 x86_64-*-darwin[912]*)
3611 noconfigdirs="$noconfigdirs ld gas gprof"
3612 noconfigdirs="$noconfigdirs sim target-rda"
3614 *-*-darwin*)
3615 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3616 noconfigdirs="$noconfigdirs sim target-rda"
3618 *-*-dragonfly*)
3620 *-*-freebsd*)
3621 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3622 && test -f /usr/local/include/gmp.h; then
3623 with_gmp=/usr/local
3626 *-*-kaos*)
3627 # Remove unsupported stuff on all kaOS configurations.
3628 noconfigdirs="$noconfigdirs target-libgloss"
3630 *-*-netbsd*)
3632 *-*-netware*)
3634 *-*-phoenix*)
3635 noconfigdirs="$noconfigdirs target-libgloss"
3637 *-*-rtems*)
3638 noconfigdirs="$noconfigdirs target-libgloss"
3639 # this is not caught below because this stanza matches earlier
3640 case $target in
3641 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3642 esac
3644 # The tpf target doesn't support gdb yet.
3645 *-*-tpf*)
3646 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3648 *-*-uclinux*)
3649 noconfigdirs="$noconfigdirs target-rda"
3651 *-*-vxworks*)
3653 alpha*-dec-osf*)
3654 # ld works, but does not support shared libraries.
3655 # gas doesn't generate exception information.
3656 noconfigdirs="$noconfigdirs gas ld"
3658 alpha*-*-*vms*)
3659 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3661 alpha*-*-*)
3662 # newlib is not 64 bit ready
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3666 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3668 arc*-*-*)
3669 noconfigdirs="$noconfigdirs sim"
3671 arm-*-pe*)
3672 noconfigdirs="$noconfigdirs target-libgloss"
3674 arm-*-riscix*)
3675 noconfigdirs="$noconfigdirs ld target-libgloss"
3677 avr-*-*)
3678 if test x${with_avrlibc} != xno; then
3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 c4x-*-* | tic4x-*-*)
3683 noconfigdirs="$noconfigdirs target-libgloss"
3685 tic54x-*-*)
3686 noconfigdirs="$noconfigdirs target-libgloss gdb"
3688 d10v-*-*)
3689 noconfigdirs="$noconfigdirs target-libgloss"
3691 d30v-*-*)
3692 noconfigdirs="$noconfigdirs gdb"
3694 fr30-*-elf*)
3695 noconfigdirs="$noconfigdirs gdb"
3697 ft32-*-*)
3698 noconfigdirs="$noconfigdirs target-rda gprof"
3700 moxie-*-*)
3701 noconfigdirs="$noconfigdirs"
3703 h8300*-*-*)
3704 noconfigdirs="$noconfigdirs target-libgloss"
3706 h8500-*-*)
3707 noconfigdirs="$noconfigdirs target-libgloss"
3709 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3711 hppa*64*-*-hpux*)
3712 noconfigdirs="$noconfigdirs gdb"
3714 hppa*-*-hpux11*)
3715 noconfigdirs="$noconfigdirs gdb ld"
3717 hppa*64*-*-linux*)
3719 hppa*-*-linux*)
3721 hppa*-*-*elf* | \
3722 hppa*-*-lites* | \
3723 hppa*-*-openbsd* | \
3724 hppa*64*-*-*)
3726 hppa*-*-pro*)
3728 hppa*-*-*)
3729 noconfigdirs="$noconfigdirs ld"
3731 i960-*-*)
3732 noconfigdirs="$noconfigdirs gdb"
3734 ia64*-*-elf*)
3735 # No gdb support yet.
3736 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3738 ia64*-**-hpux*)
3739 # No ld support yet.
3740 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3742 ia64*-*-*vms*)
3743 # No ld support yet.
3744 noconfigdirs="$noconfigdirs libgui itcl ld"
3746 i[3456789]86-w64-mingw*)
3748 i[3456789]86-*-mingw*)
3749 target_configdirs="$target_configdirs target-winsup"
3751 *-*-cygwin*)
3752 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3753 noconfigdirs="$noconfigdirs target-libgloss"
3754 # always build newlib if winsup directory is present.
3755 if test -d "$srcdir/winsup/cygwin"; then
3756 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3757 elif test -d "$srcdir/newlib"; then
3758 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3761 i[3456789]86-*-pe)
3762 noconfigdirs="$noconfigdirs target-libgloss"
3764 i[3456789]86-*-sco3.2v5*)
3765 # The linker does not yet know about weak symbols in COFF,
3766 # and is not configured to handle mixed ELF and COFF.
3767 noconfigdirs="$noconfigdirs ld target-libgloss"
3769 i[3456789]86-*-sco*)
3770 noconfigdirs="$noconfigdirs gprof target-libgloss"
3772 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3773 noconfigdirs="$noconfigdirs target-libgloss"
3775 i[3456789]86-*-sysv4*)
3776 noconfigdirs="$noconfigdirs target-libgloss"
3778 i[3456789]86-*-beos*)
3779 noconfigdirs="$noconfigdirs gdb"
3781 i[3456789]86-*-rdos*)
3782 noconfigdirs="$noconfigdirs gdb"
3784 mmix-*-*)
3785 noconfigdirs="$noconfigdirs gdb"
3787 mt-*-*)
3788 noconfigdirs="$noconfigdirs sim"
3790 powerpc-*-aix*)
3791 # copied from rs6000-*-* entry
3792 noconfigdirs="$noconfigdirs gprof"
3794 powerpc*-*-winnt* | powerpc*-*-pe*)
3795 target_configdirs="$target_configdirs target-winsup"
3796 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3797 # always build newlib.
3798 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3800 # This is temporary until we can link against shared libraries
3801 powerpcle-*-solaris*)
3802 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3804 powerpc-*-beos*)
3805 noconfigdirs="$noconfigdirs gdb"
3807 rs6000-*-lynxos*)
3808 noconfigdirs="$noconfigdirs gprof"
3810 rs6000-*-aix*)
3811 noconfigdirs="$noconfigdirs gprof"
3813 rs6000-*-*)
3814 noconfigdirs="$noconfigdirs gprof"
3816 m68k-apollo-*)
3817 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3819 microblaze*)
3820 noconfigdirs="$noconfigdirs gprof"
3822 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3823 if test x$with_newlib = xyes; then
3824 noconfigdirs="$noconfigdirs gprof"
3827 mips*-*-irix5*)
3828 noconfigdirs="$noconfigdirs gprof target-libgloss"
3830 mips*-*-irix6*)
3831 noconfigdirs="$noconfigdirs gprof target-libgloss"
3833 mips*-*-bsd*)
3834 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3836 mips*-*-linux*)
3838 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3839 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3840 noconfigdirs="$noconfigdirs ld gas gprof"
3842 mips*-*-*)
3843 noconfigdirs="$noconfigdirs gprof"
3845 nvptx*-*-*)
3846 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3848 or1k*-*-*)
3849 noconfigdirs="$noconfigdirs gdb"
3851 sh-*-*)
3852 case "${target}" in
3853 sh*-*-elf)
3856 noconfigdirs="$noconfigdirs target-libgloss" ;;
3857 esac
3859 sparc-*-sunos4*)
3860 if test x${is_cross_compiler} = xno ; then
3861 use_gnu_ld=no
3864 tic6x-*-*)
3865 noconfigdirs="$noconfigdirs sim"
3867 tilepro*-*-* | tilegx*-*-*)
3868 noconfigdirs="$noconfigdirs sim"
3870 v810-*-*)
3871 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3873 vax-*-*)
3874 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3876 esac
3878 # If we aren't building newlib, then don't build libgloss, since libgloss
3879 # depends upon some newlib header files.
3880 case "${noconfigdirs}" in
3881 *target-libgloss*) ;;
3882 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3883 esac
3885 # Work in distributions that contain no compiler tools, like Autoconf.
3886 host_makefile_frag=/dev/null
3887 if test -d ${srcdir}/config ; then
3888 case "${host}" in
3889 i[3456789]86-*-msdosdjgpp*)
3890 host_makefile_frag="config/mh-djgpp"
3892 *-cygwin*)
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3895 $as_echo_n "checking to see if cat works as expected... " >&6; }
3896 echo a >cygwin-cat-check
3897 if test `cat cygwin-cat-check` = a ; then
3898 rm cygwin-cat-check
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900 $as_echo "yes" >&6; }
3901 else
3902 rm cygwin-cat-check
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3905 as_fn_error "The cat command does not ignore carriage return characters.
3906 Please either mount the build directory in binary mode or run the following
3907 commands before running any configure script:
3908 set -o igncr
3909 export SHELLOPTS
3910 " "$LINENO" 5
3913 host_makefile_frag="config/mh-cygwin"
3915 *-mingw*)
3916 host_makefile_frag="config/mh-mingw"
3918 alpha*-linux*)
3919 host_makefile_frag="config/mh-alpha-linux"
3921 hppa*-hp-hpux10*)
3922 host_makefile_frag="config/mh-pa-hpux10"
3924 hppa*-hp-hpux*)
3925 host_makefile_frag="config/mh-pa"
3927 hppa*-*)
3928 host_makefile_frag="config/mh-pa"
3930 *-*-darwin*)
3931 host_makefile_frag="config/mh-darwin"
3933 powerpc-*-aix*)
3934 host_makefile_frag="config/mh-ppc-aix"
3936 rs6000-*-aix*)
3937 host_makefile_frag="config/mh-ppc-aix"
3939 esac
3942 if test "${build}" != "${host}" ; then
3943 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3944 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3945 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3946 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3947 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3948 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3949 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3950 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3951 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3952 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3953 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3954 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3955 else
3956 AR_FOR_BUILD="\$(AR)"
3957 AS_FOR_BUILD="\$(AS)"
3958 CC_FOR_BUILD="\$(CC)"
3959 CXX_FOR_BUILD="\$(CXX)"
3960 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3961 GOC_FOR_BUILD="\$(GOC)"
3962 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3963 LD_FOR_BUILD="\$(LD)"
3964 NM_FOR_BUILD="\$(NM)"
3965 RANLIB_FOR_BUILD="\$(RANLIB)"
3966 WINDRES_FOR_BUILD="\$(WINDRES)"
3967 WINDMC_FOR_BUILD="\$(WINDMC)"
3970 ac_ext=c
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_CC+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -n "$CC"; then
3984 ac_cv_prog_CC="$CC" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3997 done
3998 done
3999 IFS=$as_save_IFS
4003 CC=$ac_cv_prog_CC
4004 if test -n "$CC"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4006 $as_echo "$CC" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4014 if test -z "$ac_cv_prog_CC"; then
4015 ac_ct_CC=$CC
4016 # Extract the first word of "gcc", so it can be a program name with args.
4017 set dummy gcc; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 if test -n "$ac_ct_CC"; then
4024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_prog_ac_ct_CC="gcc"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4037 done
4038 done
4039 IFS=$as_save_IFS
4043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4044 if test -n "$ac_ct_CC"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4046 $as_echo "$ac_ct_CC" >&6; }
4047 else
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4052 if test "x$ac_ct_CC" = x; then
4053 CC=""
4054 else
4055 case $cross_compiling:$ac_tool_warned in
4056 yes:)
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059 ac_tool_warned=yes ;;
4060 esac
4061 CC=$ac_ct_CC
4063 else
4064 CC="$ac_cv_prog_CC"
4067 if test -z "$CC"; then
4068 if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4070 set dummy ${ac_tool_prefix}cc; ac_word=$2
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 $as_echo_n "checking for $ac_word... " >&6; }
4073 if test "${ac_cv_prog_CC+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 if test -n "$CC"; then
4077 ac_cv_prog_CC="$CC" # Let the user override the test.
4078 else
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4086 ac_cv_prog_CC="${ac_tool_prefix}cc"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4090 done
4091 done
4092 IFS=$as_save_IFS
4096 CC=$ac_cv_prog_CC
4097 if test -n "$CC"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 $as_echo "$CC" >&6; }
4100 else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4108 if test -z "$CC"; then
4109 # Extract the first word of "cc", so it can be a program name with args.
4110 set dummy cc; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if test "${ac_cv_prog_CC+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -n "$CC"; then
4117 ac_cv_prog_CC="$CC" # Let the user override the test.
4118 else
4119 ac_prog_rejected=no
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4127 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4128 ac_prog_rejected=yes
4129 continue
4131 ac_cv_prog_CC="cc"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4135 done
4136 done
4137 IFS=$as_save_IFS
4139 if test $ac_prog_rejected = yes; then
4140 # We found a bogon in the path, so make sure we never use it.
4141 set dummy $ac_cv_prog_CC
4142 shift
4143 if test $# != 0; then
4144 # We chose a different compiler from the bogus one.
4145 # However, it has the same basename, so the bogon will be chosen
4146 # first if we set CC to just the basename; use the full file name.
4147 shift
4148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4153 CC=$ac_cv_prog_CC
4154 if test -n "$CC"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4156 $as_echo "$CC" >&6; }
4157 else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4164 if test -z "$CC"; then
4165 if test -n "$ac_tool_prefix"; then
4166 for ac_prog in cl.exe
4168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if test "${ac_cv_prog_CC+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 if test -n "$CC"; then
4176 ac_cv_prog_CC="$CC" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 break 2
4189 done
4190 done
4191 IFS=$as_save_IFS
4195 CC=$ac_cv_prog_CC
4196 if test -n "$CC"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4198 $as_echo "$CC" >&6; }
4199 else
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4205 test -n "$CC" && break
4206 done
4208 if test -z "$CC"; then
4209 ac_ct_CC=$CC
4210 for ac_prog in cl.exe
4212 # Extract the first word of "$ac_prog", so it can be a program name with args.
4213 set dummy $ac_prog; ac_word=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if test -n "$ac_ct_CC"; then
4220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_prog_ac_ct_CC="$ac_prog"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4233 done
4234 done
4235 IFS=$as_save_IFS
4239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4240 if test -n "$ac_ct_CC"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4242 $as_echo "$ac_ct_CC" >&6; }
4243 else
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4249 test -n "$ac_ct_CC" && break
4250 done
4252 if test "x$ac_ct_CC" = x; then
4253 CC=""
4254 else
4255 case $cross_compiling:$ac_tool_warned in
4256 yes:)
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4259 ac_tool_warned=yes ;;
4260 esac
4261 CC=$ac_ct_CC
4268 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4270 as_fn_error "no acceptable C compiler found in \$PATH
4271 See \`config.log' for more details." "$LINENO" 5; }
4273 # Provide some information about the compiler.
4274 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4275 set X $ac_compile
4276 ac_compiler=$2
4277 for ac_option in --version -v -V -qversion; do
4278 { { ac_try="$ac_compiler $ac_option >&5"
4279 case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4286 ac_status=$?
4287 if test -s conftest.err; then
4288 sed '10a\
4289 ... rest of stderr output deleted ...
4290 10q' conftest.err >conftest.er1
4291 cat conftest.er1 >&5
4292 rm -f conftest.er1 conftest.err
4294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; }
4296 done
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4302 main ()
4306 return 0;
4308 _ACEOF
4309 ac_clean_files_save=$ac_clean_files
4310 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4311 # Try to create an executable without -o first, disregard a.out.
4312 # It will help us diagnose broken compilers, and finding out an intuition
4313 # of exeext.
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4315 $as_echo_n "checking for C compiler default output file name... " >&6; }
4316 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4318 # The possible output files:
4319 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4321 ac_rmfiles=
4322 for ac_file in $ac_files
4324 case $ac_file in
4325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4326 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4327 esac
4328 done
4329 rm -f $ac_rmfiles
4331 if { { ac_try="$ac_link_default"
4332 case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335 esac
4336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337 $as_echo "$ac_try_echo"; } >&5
4338 (eval "$ac_link_default") 2>&5
4339 ac_status=$?
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; }; then :
4342 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4343 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4344 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4345 # so that the user can short-circuit this test for compilers unknown to
4346 # Autoconf.
4347 for ac_file in $ac_files ''
4349 test -f "$ac_file" || continue
4350 case $ac_file in
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4353 [ab].out )
4354 # We found the default executable, but exeext='' is most
4355 # certainly right.
4356 break;;
4357 *.* )
4358 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4359 then :; else
4360 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4362 # We set ac_cv_exeext here because the later test for it is not
4363 # safe: cross compilers may not add the suffix if given an `-o'
4364 # argument, so we may need to know it at that point already.
4365 # Even if this section looks crufty: it has the advantage of
4366 # actually working.
4367 break;;
4369 break;;
4370 esac
4371 done
4372 test "$ac_cv_exeext" = no && ac_cv_exeext=
4374 else
4375 ac_file=''
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4378 $as_echo "$ac_file" >&6; }
4379 if test -z "$ac_file"; then :
4380 $as_echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4385 { as_fn_set_status 77
4386 as_fn_error "C compiler cannot create executables
4387 See \`config.log' for more details." "$LINENO" 5; }; }
4389 ac_exeext=$ac_cv_exeext
4391 # Check that the compiler produces executables we can run. If not, either
4392 # the compiler is broken, or we cross compile.
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4394 $as_echo_n "checking whether the C compiler works... " >&6; }
4395 # If not cross compiling, check that we can run a simple program.
4396 if test "$cross_compiling" != yes; then
4397 if { ac_try='./$ac_file'
4398 { { case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401 esac
4402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403 $as_echo "$ac_try_echo"; } >&5
4404 (eval "$ac_try") 2>&5
4405 ac_status=$?
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }; }; then
4408 cross_compiling=no
4409 else
4410 if test "$cross_compiling" = maybe; then
4411 cross_compiling=yes
4412 else
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error "cannot run C compiled programs.
4416 If you meant to cross compile, use \`--host'.
4417 See \`config.log' for more details." "$LINENO" 5; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4422 $as_echo "yes" >&6; }
4424 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4425 ac_clean_files=$ac_clean_files_save
4426 # Check that the compiler produces executables we can run. If not, either
4427 # the compiler is broken, or we cross compile.
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4429 $as_echo_n "checking whether we are cross compiling... " >&6; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4431 $as_echo "$cross_compiling" >&6; }
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4434 $as_echo_n "checking for suffix of executables... " >&6; }
4435 if { { ac_try="$ac_link"
4436 case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439 esac
4440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4441 $as_echo "$ac_try_echo"; } >&5
4442 (eval "$ac_link") 2>&5
4443 ac_status=$?
4444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445 test $ac_status = 0; }; then :
4446 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4447 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4448 # work properly (i.e., refer to `conftest.exe'), while it won't with
4449 # `rm'.
4450 for ac_file in conftest.exe conftest conftest.*; do
4451 test -f "$ac_file" || continue
4452 case $ac_file in
4453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4454 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4455 break;;
4456 * ) break;;
4457 esac
4458 done
4459 else
4460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4462 as_fn_error "cannot compute suffix of executables: cannot compile and link
4463 See \`config.log' for more details." "$LINENO" 5; }
4465 rm -f conftest$ac_cv_exeext
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4467 $as_echo "$ac_cv_exeext" >&6; }
4469 rm -f conftest.$ac_ext
4470 EXEEXT=$ac_cv_exeext
4471 ac_exeext=$EXEEXT
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4473 $as_echo_n "checking for suffix of object files... " >&6; }
4474 if test "${ac_cv_objext+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4481 main ()
4485 return 0;
4487 _ACEOF
4488 rm -f conftest.o conftest.obj
4489 if { { ac_try="$ac_compile"
4490 case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493 esac
4494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4495 $as_echo "$ac_try_echo"; } >&5
4496 (eval "$ac_compile") 2>&5
4497 ac_status=$?
4498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499 test $ac_status = 0; }; then :
4500 for ac_file in conftest.o conftest.obj conftest.*; do
4501 test -f "$ac_file" || continue;
4502 case $ac_file in
4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4505 break;;
4506 esac
4507 done
4508 else
4509 $as_echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514 as_fn_error "cannot compute suffix of object files: cannot compile
4515 See \`config.log' for more details." "$LINENO" 5; }
4517 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4520 $as_echo "$ac_cv_objext" >&6; }
4521 OBJEXT=$ac_cv_objext
4522 ac_objext=$OBJEXT
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4524 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4525 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4532 main ()
4534 #ifndef __GNUC__
4535 choke me
4536 #endif
4539 return 0;
4541 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 ac_compiler_gnu=yes
4544 else
4545 ac_compiler_gnu=no
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4552 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4553 if test $ac_compiler_gnu = yes; then
4554 GCC=yes
4555 else
4556 GCC=
4558 ac_test_CFLAGS=${CFLAGS+set}
4559 ac_save_CFLAGS=$CFLAGS
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4561 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4562 if test "${ac_cv_prog_cc_g+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 ac_save_c_werror_flag=$ac_c_werror_flag
4566 ac_c_werror_flag=yes
4567 ac_cv_prog_cc_g=no
4568 CFLAGS="-g"
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4573 main ()
4577 return 0;
4579 _ACEOF
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581 ac_cv_prog_cc_g=yes
4582 else
4583 CFLAGS=""
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4588 main ()
4592 return 0;
4594 _ACEOF
4595 if ac_fn_c_try_compile "$LINENO"; then :
4597 else
4598 ac_c_werror_flag=$ac_save_c_werror_flag
4599 CFLAGS="-g"
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4604 main ()
4608 return 0;
4610 _ACEOF
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612 ac_cv_prog_cc_g=yes
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4622 $as_echo "$ac_cv_prog_cc_g" >&6; }
4623 if test "$ac_test_CFLAGS" = set; then
4624 CFLAGS=$ac_save_CFLAGS
4625 elif test $ac_cv_prog_cc_g = yes; then
4626 if test "$GCC" = yes; then
4627 CFLAGS="-g -O2"
4628 else
4629 CFLAGS="-g"
4631 else
4632 if test "$GCC" = yes; then
4633 CFLAGS="-O2"
4634 else
4635 CFLAGS=
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4639 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4640 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 ac_cv_prog_cc_c89=no
4644 ac_save_CC=$CC
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4647 #include <stdarg.h>
4648 #include <stdio.h>
4649 #include <sys/types.h>
4650 #include <sys/stat.h>
4651 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4652 struct buf { int x; };
4653 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4654 static char *e (p, i)
4655 char **p;
4656 int i;
4658 return p[i];
4660 static char *f (char * (*g) (char **, int), char **p, ...)
4662 char *s;
4663 va_list v;
4664 va_start (v,p);
4665 s = g (p, va_arg (v,int));
4666 va_end (v);
4667 return s;
4670 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4671 function prototypes and stuff, but not '\xHH' hex character constants.
4672 These don't provoke an error unfortunately, instead are silently treated
4673 as 'x'. The following induces an error, until -std is added to get
4674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4675 array size at least. It's necessary to write '\x00'==0 to get something
4676 that's true only with -std. */
4677 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4679 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4680 inside strings and character constants. */
4681 #define FOO(x) 'x'
4682 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4684 int test (int i, double x);
4685 struct s1 {int (*f) (int a);};
4686 struct s2 {int (*f) (double a);};
4687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4688 int argc;
4689 char **argv;
4691 main ()
4693 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4695 return 0;
4697 _ACEOF
4698 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4701 CC="$ac_save_CC $ac_arg"
4702 if ac_fn_c_try_compile "$LINENO"; then :
4703 ac_cv_prog_cc_c89=$ac_arg
4705 rm -f core conftest.err conftest.$ac_objext
4706 test "x$ac_cv_prog_cc_c89" != "xno" && break
4707 done
4708 rm -f conftest.$ac_ext
4709 CC=$ac_save_CC
4712 # AC_CACHE_VAL
4713 case "x$ac_cv_prog_cc_c89" in
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4716 $as_echo "none needed" >&6; } ;;
4717 xno)
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4719 $as_echo "unsupported" >&6; } ;;
4721 CC="$CC $ac_cv_prog_cc_c89"
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4723 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4724 esac
4725 if test "x$ac_cv_prog_cc_c89" != xno; then :
4729 ac_ext=c
4730 ac_cpp='$CPP $CPPFLAGS'
4731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4735 ac_ext=cpp
4736 ac_cpp='$CXXCPP $CPPFLAGS'
4737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4740 if test -z "$CXX"; then
4741 if test -n "$CCC"; then
4742 CXX=$CCC
4743 else
4744 if test -n "$ac_tool_prefix"; then
4745 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if test "${ac_cv_prog_CXX+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 if test -n "$CXX"; then
4755 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4768 done
4769 done
4770 IFS=$as_save_IFS
4774 CXX=$ac_cv_prog_CXX
4775 if test -n "$CXX"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4777 $as_echo "$CXX" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4784 test -n "$CXX" && break
4785 done
4787 if test -z "$CXX"; then
4788 ac_ct_CXX=$CXX
4789 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4791 # Extract the first word of "$ac_prog", so it can be a program name with args.
4792 set dummy $ac_prog; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 if test -n "$ac_ct_CXX"; then
4799 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_ac_ct_CXX="$ac_prog"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4812 done
4813 done
4814 IFS=$as_save_IFS
4818 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4819 if test -n "$ac_ct_CXX"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4821 $as_echo "$ac_ct_CXX" >&6; }
4822 else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4828 test -n "$ac_ct_CXX" && break
4829 done
4831 if test "x$ac_ct_CXX" = x; then
4832 CXX="g++"
4833 else
4834 case $cross_compiling:$ac_tool_warned in
4835 yes:)
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838 ac_tool_warned=yes ;;
4839 esac
4840 CXX=$ac_ct_CXX
4846 # Provide some information about the compiler.
4847 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4848 set X $ac_compile
4849 ac_compiler=$2
4850 for ac_option in --version -v -V -qversion; do
4851 { { ac_try="$ac_compiler $ac_option >&5"
4852 case "(($ac_try" in
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4855 esac
4856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4857 $as_echo "$ac_try_echo"; } >&5
4858 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4859 ac_status=$?
4860 if test -s conftest.err; then
4861 sed '10a\
4862 ... rest of stderr output deleted ...
4863 10q' conftest.err >conftest.er1
4864 cat conftest.er1 >&5
4865 rm -f conftest.er1 conftest.err
4867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4868 test $ac_status = 0; }
4869 done
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4872 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4873 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4880 main ()
4882 #ifndef __GNUC__
4883 choke me
4884 #endif
4887 return 0;
4889 _ACEOF
4890 if ac_fn_cxx_try_compile "$LINENO"; then :
4891 ac_compiler_gnu=yes
4892 else
4893 ac_compiler_gnu=no
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4900 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4901 if test $ac_compiler_gnu = yes; then
4902 GXX=yes
4903 else
4904 GXX=
4906 ac_test_CXXFLAGS=${CXXFLAGS+set}
4907 ac_save_CXXFLAGS=$CXXFLAGS
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4909 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4910 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4914 ac_cxx_werror_flag=yes
4915 ac_cv_prog_cxx_g=no
4916 CXXFLAGS="-g"
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4921 main ()
4925 return 0;
4927 _ACEOF
4928 if ac_fn_cxx_try_compile "$LINENO"; then :
4929 ac_cv_prog_cxx_g=yes
4930 else
4931 CXXFLAGS=""
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4936 main ()
4940 return 0;
4942 _ACEOF
4943 if ac_fn_cxx_try_compile "$LINENO"; then :
4945 else
4946 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4947 CXXFLAGS="-g"
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4952 main ()
4956 return 0;
4958 _ACEOF
4959 if ac_fn_cxx_try_compile "$LINENO"; then :
4960 ac_cv_prog_cxx_g=yes
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4970 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4971 if test "$ac_test_CXXFLAGS" = set; then
4972 CXXFLAGS=$ac_save_CXXFLAGS
4973 elif test $ac_cv_prog_cxx_g = yes; then
4974 if test "$GXX" = yes; then
4975 CXXFLAGS="-g -O2"
4976 else
4977 CXXFLAGS="-g"
4979 else
4980 if test "$GXX" = yes; then
4981 CXXFLAGS="-O2"
4982 else
4983 CXXFLAGS=
4986 ac_ext=c
4987 ac_cpp='$CPP $CPPFLAGS'
4988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993 # We must set the default linker to the linker used by gcc for the correct
4994 # operation of libtool. If LD is not defined and we are using gcc, try to
4995 # set the LD default to the ld used by gcc.
4996 if test -z "$LD"; then
4997 if test "$GCC" = yes; then
4998 case $build in
4999 *-*-mingw*)
5000 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5002 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5003 esac
5004 case $gcc_prog_ld in
5005 # Accept absolute paths.
5006 [\\/]* | [A-Za-z]:[\\/]*)
5007 LD="$gcc_prog_ld" ;;
5008 esac
5012 # Check whether -static-libstdc++ -static-libgcc is supported.
5013 have_static_libs=no
5014 if test "$GCC" = yes; then
5015 saved_LDFLAGS="$LDFLAGS"
5017 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5019 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5020 ac_ext=cpp
5021 ac_cpp='$CXXCPP $CPPFLAGS'
5022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5030 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5031 #error -static-libstdc++ not implemented
5032 #endif
5033 int main() {}
5034 _ACEOF
5035 if ac_fn_cxx_try_link "$LINENO"; then :
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5037 $as_echo "yes" >&6; }; have_static_libs=yes
5038 else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5042 rm -f core conftest.err conftest.$ac_objext \
5043 conftest$ac_exeext conftest.$ac_ext
5044 ac_ext=c
5045 ac_cpp='$CPP $CPPFLAGS'
5046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051 LDFLAGS="$saved_LDFLAGS"
5057 if test -n "$ac_tool_prefix"; then
5058 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5059 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 if test -n "$GNATBIND"; then
5066 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5079 done
5080 done
5081 IFS=$as_save_IFS
5085 GNATBIND=$ac_cv_prog_GNATBIND
5086 if test -n "$GNATBIND"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5088 $as_echo "$GNATBIND" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5096 if test -z "$ac_cv_prog_GNATBIND"; then
5097 ac_ct_GNATBIND=$GNATBIND
5098 # Extract the first word of "gnatbind", so it can be a program name with args.
5099 set dummy gnatbind; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$ac_ct_GNATBIND"; then
5106 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5119 done
5120 done
5121 IFS=$as_save_IFS
5125 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5126 if test -n "$ac_ct_GNATBIND"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5128 $as_echo "$ac_ct_GNATBIND" >&6; }
5129 else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5134 if test "x$ac_ct_GNATBIND" = x; then
5135 GNATBIND="no"
5136 else
5137 case $cross_compiling:$ac_tool_warned in
5138 yes:)
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5141 ac_tool_warned=yes ;;
5142 esac
5143 GNATBIND=$ac_ct_GNATBIND
5145 else
5146 GNATBIND="$ac_cv_prog_GNATBIND"
5149 if test -n "$ac_tool_prefix"; then
5150 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5151 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -n "$GNATMAKE"; then
5158 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5171 done
5172 done
5173 IFS=$as_save_IFS
5177 GNATMAKE=$ac_cv_prog_GNATMAKE
5178 if test -n "$GNATMAKE"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5180 $as_echo "$GNATMAKE" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5188 if test -z "$ac_cv_prog_GNATMAKE"; then
5189 ac_ct_GNATMAKE=$GNATMAKE
5190 # Extract the first word of "gnatmake", so it can be a program name with args.
5191 set dummy gnatmake; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -n "$ac_ct_GNATMAKE"; then
5198 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5211 done
5212 done
5213 IFS=$as_save_IFS
5217 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5218 if test -n "$ac_ct_GNATMAKE"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5220 $as_echo "$ac_ct_GNATMAKE" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5226 if test "x$ac_ct_GNATMAKE" = x; then
5227 GNATMAKE="no"
5228 else
5229 case $cross_compiling:$ac_tool_warned in
5230 yes:)
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5233 ac_tool_warned=yes ;;
5234 esac
5235 GNATMAKE=$ac_ct_GNATMAKE
5237 else
5238 GNATMAKE="$ac_cv_prog_GNATMAKE"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5242 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5243 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 cat >conftest.adb <<EOF
5247 procedure conftest is begin null; end conftest;
5249 acx_cv_cc_gcc_supports_ada=no
5250 # There is a bug in old released versions of GCC which causes the
5251 # driver to exit successfully when the appropriate language module
5252 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5253 # Therefore we must check for the error message as well as an
5254 # unsuccessful exit.
5255 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5256 # given a .adb file, but produce no object file. So we must check
5257 # if an object file was really produced to guard against this.
5258 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5259 if test x"$errors" = x && test -f conftest.$ac_objext; then
5260 acx_cv_cc_gcc_supports_ada=yes
5262 rm -f conftest.*
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5265 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5267 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5268 have_gnat=yes
5269 else
5270 have_gnat=no
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5274 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5275 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 echo abfoo >t1
5279 echo cdfoo >t2
5280 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5281 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5282 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5284 else
5285 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5288 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5289 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5291 else
5292 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5295 rm t1 t2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5299 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5300 do_compare="$gcc_cv_prog_cmp_skip"
5304 # Check whether --enable-bootstrap was given.
5305 if test "${enable_bootstrap+set}" = set; then :
5306 enableval=$enable_bootstrap;
5307 else
5308 enable_bootstrap=default
5312 # Issue errors and warnings for invalid/strange bootstrap combinations.
5313 if test -r $srcdir/gcc/configure; then
5314 have_compiler=yes
5315 else
5316 have_compiler=no
5319 case "$have_compiler:$host:$target:$enable_bootstrap" in
5320 *:*:*:no) ;;
5322 # Default behavior. Enable bootstrap if we have a compiler
5323 # and we are in a native configuration.
5324 yes:$build:$build:default)
5325 enable_bootstrap=yes ;;
5327 *:*:*:default)
5328 enable_bootstrap=no ;;
5330 # We have a compiler and we are in a native configuration, bootstrap is ok
5331 yes:$build:$build:yes)
5334 # Other configurations, but we have a compiler. Assume the user knows
5335 # what he's doing.
5336 yes:*:*:yes)
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5338 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5341 # No compiler: if they passed --enable-bootstrap explicitly, fail
5342 no:*:*:yes)
5343 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5345 # Fail if wrong command line
5347 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5349 esac
5351 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5352 # C++98 compiler can still start the bootstrap.
5353 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5354 CXX="$CXX -std=gnu++98"
5357 # Used for setting $lt_cv_objdir
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5359 $as_echo_n "checking for objdir... " >&6; }
5360 if test "${lt_cv_objdir+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 rm -f .libs 2>/dev/null
5364 mkdir .libs 2>/dev/null
5365 if test -d .libs; then
5366 lt_cv_objdir=.libs
5367 else
5368 # MS-DOS does not allow filenames that begin with a dot.
5369 lt_cv_objdir=_libs
5371 rmdir .libs 2>/dev/null
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5374 $as_echo "$lt_cv_objdir" >&6; }
5375 objdir=$lt_cv_objdir
5381 cat >>confdefs.h <<_ACEOF
5382 #define LT_OBJDIR "$lt_cv_objdir/"
5383 _ACEOF
5387 # Check for GMP, MPFR and MPC
5388 gmplibs="-lmpc -lmpfr -lgmp"
5389 gmpinc=
5390 have_gmp=no
5392 # Specify a location for mpc
5393 # check for this first so it ends up on the link line before mpfr.
5395 # Check whether --with-mpc was given.
5396 if test "${with_mpc+set}" = set; then :
5397 withval=$with_mpc;
5401 # Check whether --with-mpc-include was given.
5402 if test "${with_mpc_include+set}" = set; then :
5403 withval=$with_mpc_include;
5407 # Check whether --with-mpc-lib was given.
5408 if test "${with_mpc_lib+set}" = set; then :
5409 withval=$with_mpc_lib;
5413 if test "x$with_mpc" != x; then
5414 gmplibs="-L$with_mpc/lib $gmplibs"
5415 gmpinc="-I$with_mpc/include $gmpinc"
5417 if test "x$with_mpc_include" != x; then
5418 gmpinc="-I$with_mpc_include $gmpinc"
5420 if test "x$with_mpc_lib" != x; then
5421 gmplibs="-L$with_mpc_lib $gmplibs"
5423 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5424 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5425 gmpinc='-I$$s/mpc/src '"$gmpinc"
5426 # Do not test the mpc version. Assume that it is sufficient, since
5427 # it is in the source tree, and the library has not been built yet
5428 # but it would be included on the link line in the version check below
5429 # hence making the test fail.
5430 have_gmp=yes
5433 # Specify a location for mpfr
5434 # check for this first so it ends up on the link line before gmp.
5436 # Check whether --with-mpfr-dir was given.
5437 if test "${with_mpfr_dir+set}" = set; then :
5438 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5439 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5444 # Check whether --with-mpfr was given.
5445 if test "${with_mpfr+set}" = set; then :
5446 withval=$with_mpfr;
5450 # Check whether --with-mpfr-include was given.
5451 if test "${with_mpfr_include+set}" = set; then :
5452 withval=$with_mpfr_include;
5456 # Check whether --with-mpfr-lib was given.
5457 if test "${with_mpfr_lib+set}" = set; then :
5458 withval=$with_mpfr_lib;
5462 if test "x$with_mpfr" != x; then
5463 gmplibs="-L$with_mpfr/lib $gmplibs"
5464 gmpinc="-I$with_mpfr/include $gmpinc"
5466 if test "x$with_mpfr_include" != x; then
5467 gmpinc="-I$with_mpfr_include $gmpinc"
5469 if test "x$with_mpfr_lib" != x; then
5470 gmplibs="-L$with_mpfr_lib $gmplibs"
5472 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5473 # MPFR v3.1.0 moved the sources into a src sub-directory.
5474 if ! test -d ${srcdir}/mpfr/src; then
5475 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5477 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5478 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5479 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5480 # Do not test the mpfr version. Assume that it is sufficient, since
5481 # it is in the source tree, and the library has not been built yet
5482 # but it would be included on the link line in the version check below
5483 # hence making the test fail.
5484 have_gmp=yes
5487 # Specify a location for gmp
5489 # Check whether --with-gmp-dir was given.
5490 if test "${with_gmp_dir+set}" = set; then :
5491 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5492 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5497 # Check whether --with-gmp was given.
5498 if test "${with_gmp+set}" = set; then :
5499 withval=$with_gmp;
5503 # Check whether --with-gmp-include was given.
5504 if test "${with_gmp_include+set}" = set; then :
5505 withval=$with_gmp_include;
5509 # Check whether --with-gmp-lib was given.
5510 if test "${with_gmp_lib+set}" = set; then :
5511 withval=$with_gmp_lib;
5516 if test "x$with_gmp" != x; then
5517 gmplibs="-L$with_gmp/lib $gmplibs"
5518 gmpinc="-I$with_gmp/include $gmpinc"
5520 if test "x$with_gmp_include" != x; then
5521 gmpinc="-I$with_gmp_include $gmpinc"
5523 if test "x$with_gmp_lib" != x; then
5524 gmplibs="-L$with_gmp_lib $gmplibs"
5526 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5527 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5528 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5529 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5530 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5531 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5532 # Do not test the gmp version. Assume that it is sufficient, since
5533 # it is in the source tree, and the library has not been built yet
5534 # but it would be included on the link line in the version check below
5535 # hence making the test fail.
5536 have_gmp=yes
5539 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5540 have_gmp=yes
5541 saved_CFLAGS="$CFLAGS"
5542 CFLAGS="$CFLAGS $gmpinc"
5543 # Check for the recommended and required versions of GMP.
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5545 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 #include "gmp.h"
5551 main ()
5554 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5555 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5556 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5557 choke me
5558 #endif
5561 return 0;
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #include <gmp.h>
5569 main ()
5572 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5573 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5574 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5575 choke me
5576 #endif
5579 return 0;
5581 _ACEOF
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5584 $as_echo "yes" >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5587 $as_echo "buggy but acceptable" >&6; }
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }; have_gmp=no
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 # If we have GMP, check the MPFR version.
5597 if test x"$have_gmp" = xyes; then
5598 # Check for the recommended and required versions of MPFR.
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5600 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #include <gmp.h>
5604 #include <mpfr.h>
5606 main ()
5609 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5610 choke me
5611 #endif
5614 return 0;
5616 _ACEOF
5617 if ac_fn_c_try_compile "$LINENO"; then :
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #include <gmp.h>
5621 #include <mpfr.h>
5623 main ()
5626 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5627 choke me
5628 #endif
5631 return 0;
5633 _ACEOF
5634 if ac_fn_c_try_compile "$LINENO"; then :
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5636 $as_echo "yes" >&6; }
5637 else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5639 $as_echo "buggy but acceptable" >&6; }
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }; have_gmp=no
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 # Check for the MPC header version.
5650 if test x"$have_gmp" = xyes ; then
5651 # Check for the recommended and required versions of MPC.
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5653 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #include <mpc.h>
5658 main ()
5661 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5662 choke me
5663 #endif
5666 return 0;
5668 _ACEOF
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672 #include <mpc.h>
5674 main ()
5677 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5678 choke me
5679 #endif
5682 return 0;
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687 $as_echo "yes" >&6; }
5688 else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5690 $as_echo "buggy but acceptable" >&6; }
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }; have_gmp=no
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 # Now check the MPFR library.
5701 if test x"$have_gmp" = xyes; then
5702 saved_LIBS="$LIBS"
5703 LIBS="$LIBS $gmplibs"
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5705 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 #include <mpc.h>
5710 main ()
5713 mpfr_t n;
5714 mpfr_t x;
5715 mpc_t c;
5716 int t;
5717 mpfr_init (n);
5718 mpfr_init (x);
5719 mpfr_atan2 (n, n, x, GMP_RNDN);
5720 mpfr_erfc (n, x, GMP_RNDN);
5721 mpfr_subnormalize (x, t, GMP_RNDN);
5722 mpfr_clear(n);
5723 mpfr_clear(x);
5724 mpc_init2 (c, 53);
5725 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5726 mpc_cosh (c, c, MPC_RNDNN);
5727 mpc_pow (c, c, c, MPC_RNDNN);
5728 mpc_acosh (c, c, MPC_RNDNN);
5729 mpc_clear (c);
5732 return 0;
5734 _ACEOF
5735 if ac_fn_c_try_link "$LINENO"; then :
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5737 $as_echo "yes" >&6; }
5738 else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }; have_gmp=no
5742 rm -f core conftest.err conftest.$ac_objext \
5743 conftest$ac_exeext conftest.$ac_ext
5744 LIBS="$saved_LIBS"
5747 CFLAGS="$saved_CFLAGS"
5749 # The library versions listed in the error message below should match
5750 # the HARD-minimums enforced above.
5751 if test x$have_gmp != xyes; then
5752 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5753 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5754 their locations. Source code for these libraries can be found at
5755 their respective hosting sites as well as at
5756 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5757 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5758 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5759 make sure that you have installed both the libraries and the header
5760 files. They may be located in separate packages." "$LINENO" 5
5764 # Flags needed for both GMP, MPFR and/or MPC.
5772 # Libraries to use for stage1 or when not bootstrapping.
5774 # Check whether --with-stage1-libs was given.
5775 if test "${with_stage1_libs+set}" = set; then :
5776 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5777 stage1_libs=
5778 else
5779 stage1_libs=$withval
5781 else
5782 stage1_libs=
5787 # Linker flags to use for stage1 or when not bootstrapping.
5789 # Check whether --with-stage1-ldflags was given.
5790 if test "${with_stage1_ldflags+set}" = set; then :
5791 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5792 stage1_ldflags=
5793 else
5794 stage1_ldflags=$withval
5796 else
5797 stage1_ldflags=
5798 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5799 # if supported. But if the user explicitly specified the libraries to use,
5800 # trust that they are doing what they want.
5801 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5802 stage1_ldflags="-static-libstdc++ -static-libgcc"
5808 # Libraries to use for stage2 and later builds.
5810 # Check whether --with-boot-libs was given.
5811 if test "${with_boot_libs+set}" = set; then :
5812 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5813 poststage1_libs=
5814 else
5815 poststage1_libs=$withval
5817 else
5818 poststage1_libs=
5823 # Linker flags to use for stage2 and later builds.
5825 # Check whether --with-boot-ldflags was given.
5826 if test "${with_boot_ldflags+set}" = set; then :
5827 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5828 poststage1_ldflags=
5829 else
5830 poststage1_ldflags=$withval
5832 else
5833 poststage1_ldflags=
5834 # In stages 2 and 3, default to linking libstdc++ and libgcc
5835 # statically. But if the user explicitly specified the libraries to
5836 # use, trust that they are doing what they want.
5837 if test "$poststage1_libs" = ""; then
5838 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5844 # GCC GRAPHITE dependency isl.
5845 # Basic setup is inlined here, actual checks are in config/isl.m4
5848 # Check whether --with-isl was given.
5849 if test "${with_isl+set}" = set; then :
5850 withval=$with_isl;
5854 # Treat --without-isl as a request to disable
5855 # GRAPHITE support and skip all following checks.
5856 if test "x$with_isl" != "xno"; then
5857 # Check for isl
5860 # Check whether --with-isl-include was given.
5861 if test "${with_isl_include+set}" = set; then :
5862 withval=$with_isl_include;
5866 # Check whether --with-isl-lib was given.
5867 if test "${with_isl_lib+set}" = set; then :
5868 withval=$with_isl_lib;
5872 # Check whether --enable-isl-version-check was given.
5873 if test "${enable_isl_version_check+set}" = set; then :
5874 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5875 else
5876 ENABLE_ISL_CHECK=yes
5880 # Initialize isllibs and islinc.
5881 case $with_isl in
5883 isllibs=
5884 islinc=
5886 "" | yes)
5889 isllibs="-L$with_isl/lib"
5890 islinc="-I$with_isl/include"
5892 esac
5893 if test "x${with_isl_include}" != x ; then
5894 islinc="-I$with_isl_include"
5896 if test "x${with_isl_lib}" != x; then
5897 isllibs="-L$with_isl_lib"
5899 if test "x${islinc}" = x && test "x${isllibs}" = x \
5900 && test -d ${srcdir}/isl; then
5901 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5902 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5903 ENABLE_ISL_CHECK=no
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5905 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5908 isllibs="${isllibs} -lisl"
5912 if test "${ENABLE_ISL_CHECK}" = yes ; then
5913 _isl_saved_CFLAGS=$CFLAGS
5914 _isl_saved_LDFLAGS=$LDFLAGS
5915 _isl_saved_LIBS=$LIBS
5917 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5918 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5919 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5922 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 #include <isl/ctx.h>
5927 main ()
5929 isl_ctx_get_max_operations (isl_ctx_alloc ());
5931 return 0;
5933 _ACEOF
5934 if ac_fn_c_try_link "$LINENO"; then :
5935 gcc_cv_isl=yes
5936 else
5937 gcc_cv_isl=no
5939 rm -f core conftest.err conftest.$ac_objext \
5940 conftest$ac_exeext conftest.$ac_ext
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5942 $as_echo "$gcc_cv_isl" >&6; }
5944 if test "${gcc_cv_isl}" = no ; then
5945 { $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
5946 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5950 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #include <isl/schedule.h>
5955 main ()
5957 isl_options_set_schedule_serialize_sccs (NULL, 0);
5959 return 0;
5961 _ACEOF
5962 if ac_fn_c_try_link "$LINENO"; then :
5963 ac_has_isl_options_set_schedule_serialize_sccs=yes
5964 else
5965 ac_has_isl_options_set_schedule_serialize_sccs=no
5967 rm -f core conftest.err conftest.$ac_objext \
5968 conftest$ac_exeext conftest.$ac_ext
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5970 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5972 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5973 islver="0.15"
5977 CFLAGS=$_isl_saved_CFLAGS
5978 LDFLAGS=$_isl_saved_LDFLAGS
5979 LIBS=$_isl_saved_LIBS
5987 if test "x${with_isl}" = xno; then
5988 graphite_requested=no
5989 elif test "x${with_isl}" != x \
5990 || test "x${with_isl_include}" != x \
5991 || test "x${with_isl_lib}" != x ; then
5992 graphite_requested=yes
5993 else
5994 graphite_requested=no
5999 if test "${gcc_cv_isl}" = no ; then
6000 isllibs=
6001 islinc=
6004 if test "${graphite_requested}" = yes \
6005 && test "x${isllibs}" = x \
6006 && test "x${islinc}" = x ; then
6008 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6014 # If the isl check failed, disable builds of in-tree variant of isl
6015 if test "x$with_isl" = xno ||
6016 test "x$gcc_cv_isl" = xno; then
6017 noconfigdirs="$noconfigdirs isl"
6018 islinc=
6024 # Check for LTO support.
6025 # Check whether --enable-lto was given.
6026 if test "${enable_lto+set}" = set; then :
6027 enableval=$enable_lto; enable_lto=$enableval
6028 else
6029 enable_lto=yes; default_enable_lto=yes
6036 target_elf=no
6037 case $target in
6038 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6039 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6040 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6041 nvptx-*-none)
6042 target_elf=no
6045 target_elf=yes
6047 esac
6049 if test $target_elf = yes; then :
6050 # ELF platforms build the lto-plugin always.
6051 build_lto_plugin=yes
6053 else
6054 if test x"$default_enable_lto" = x"yes" ; then
6055 case $target in
6056 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6057 # On other non-ELF platforms, LTO has yet to be validated.
6058 *) enable_lto=no ;;
6059 esac
6060 else
6061 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6062 # It would also be nice to check the binutils support, but we don't
6063 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6064 # warn during gcc/ subconfigure; unless you're bootstrapping with
6065 # -flto it won't be needed until after installation anyway.
6066 case $target in
6067 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6068 *) if test x"$enable_lto" = x"yes"; then
6069 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6072 esac
6074 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6075 # Build it unless LTO was explicitly disabled.
6076 case $target in
6077 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6078 *) ;;
6079 esac
6084 # Check whether --enable-linker-plugin-configure-flags was given.
6085 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6086 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6087 else
6088 extra_linker_plugin_configure_flags=
6092 # Check whether --enable-linker-plugin-flags was given.
6093 if test "${enable_linker_plugin_flags+set}" = set; then :
6094 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6095 else
6096 extra_linker_plugin_flags=
6102 # By default, C and C++ are the only stage 1 languages.
6103 stage1_languages=,c,
6105 # Target libraries that we bootstrap.
6106 bootstrap_target_libs=,target-libgcc,
6108 # Figure out what language subdirectories are present.
6109 # Look if the user specified --enable-languages="..."; if not, use
6110 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6111 # go away some day.
6112 # NB: embedded tabs in this IF block -- do not untabify
6113 if test -d ${srcdir}/gcc; then
6114 if test x"${enable_languages+set}" != xset; then
6115 if test x"${LANGUAGES+set}" = xset; then
6116 enable_languages="${LANGUAGES}"
6117 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6118 else
6119 enable_languages=all
6121 else
6122 if test x"${enable_languages}" = x ||
6123 test x"${enable_languages}" = xyes;
6124 then
6125 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6126 exit 1
6129 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6131 # 'f95' is the old name for the 'fortran' language. We issue a warning
6132 # and make the substitution.
6133 case ,${enable_languages}, in
6134 *,f95,*)
6135 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6136 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6138 esac
6140 # If bootstrapping, C++ must be enabled.
6141 case ",$enable_languages,:$enable_bootstrap" in
6142 *,c++,*:*) ;;
6143 *:yes)
6144 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6145 enable_languages="${enable_languages},c++"
6146 else
6147 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6150 esac
6152 # First scan to see if an enabled language requires some other language.
6153 # We assume that a given config-lang.in will list all the language
6154 # front ends it requires, even if some are required indirectly.
6155 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6156 case ${lang_frag} in
6157 ..) ;;
6158 # The odd quoting in the next line works around
6159 # an apparent bug in bash 1.12 on linux.
6160 ${srcdir}/gcc/[*]/config-lang.in) ;;
6162 # From the config-lang.in, get $language, $lang_requires, and
6163 # $lang_requires_boot_languages.
6164 language=
6165 lang_requires=
6166 lang_requires_boot_languages=
6167 . ${lang_frag}
6168 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6169 case ,${enable_languages}, in
6170 *,$other,*) ;;
6171 *,all,*) ;;
6172 *,$language,*)
6173 echo " \`$other' language required by \`$language'; enabling" 1>&2
6174 enable_languages="${enable_languages},${other}"
6176 esac
6177 done
6178 for other in ${lang_requires_boot_languages} ; do
6179 if test "$other" != "c"; then
6180 case ,${enable_stage1_languages}, in
6181 *,$other,*) ;;
6182 *,all,*) ;;
6184 case ,${enable_languages}, in
6185 *,$language,*)
6186 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6187 enable_stage1_languages="$enable_stage1_languages,${other}"
6189 esac
6191 esac
6193 done
6195 esac
6196 done
6198 new_enable_languages=,c,
6200 # If LTO is enabled, add the LTO front end.
6201 if test "$enable_lto" = "yes" ; then
6202 case ,${enable_languages}, in
6203 *,lto,*) ;;
6204 *) enable_languages="${enable_languages},lto" ;;
6205 esac
6206 if test "${build_lto_plugin}" = "yes" ; then
6207 configdirs="$configdirs lto-plugin"
6211 # If we're building an offloading compiler, add the LTO front end.
6212 if test x"$enable_as_accelerator_for" != x ; then
6213 case ,${enable_languages}, in
6214 *,lto,*) ;;
6215 *) enable_languages="${enable_languages},lto" ;;
6216 esac
6219 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6220 potential_languages=,c,
6222 enabled_target_libs=
6223 disabled_target_libs=
6225 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6226 case ${lang_frag} in
6227 ..) ;;
6228 # The odd quoting in the next line works around
6229 # an apparent bug in bash 1.12 on linux.
6230 ${srcdir}/gcc/[*]/config-lang.in) ;;
6232 # From the config-lang.in, get $language, $target_libs,
6233 # $lang_dirs, $boot_language, and $build_by_default
6234 language=
6235 target_libs=
6236 lang_dirs=
6237 subdir_requires=
6238 boot_language=no
6239 build_by_default=yes
6240 . ${lang_frag}
6241 if test x${language} = x; then
6242 echo "${lang_frag} doesn't set \$language." 1>&2
6243 exit 1
6246 if test "$language" = "c++"; then
6247 boot_language=yes
6250 add_this_lang=no
6251 case ,${enable_languages}, in
6252 *,${language},*)
6253 # Language was explicitly selected; include it
6254 # unless it is C, which is enabled by default.
6255 if test "$language" != "c"; then
6256 add_this_lang=yes
6259 *,all,*)
6260 # 'all' was selected, select it if it is a default language
6261 if test "$language" != "c"; then
6262 add_this_lang=${build_by_default}
6265 esac
6267 # Disable languages that need other directories if these aren't available.
6268 for i in $subdir_requires; do
6269 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6270 case ,${enable_languages}, in
6271 *,${language},*)
6272 # Specifically requested language; tell them.
6273 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6276 # Silently disable.
6277 add_this_lang=unsupported
6279 esac
6280 done
6282 # Disable Ada if no preexisting GNAT is available.
6283 case ,${enable_languages},:${language}:${have_gnat} in
6284 *,${language},*:ada:no)
6285 # Specifically requested language; tell them.
6286 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6288 *:ada:no)
6289 # Silently disable.
6290 add_this_lang=unsupported
6292 esac
6294 # Disable a language that is unsupported by the target.
6295 case " $unsupported_languages " in
6296 *" $language "*)
6297 add_this_lang=unsupported
6299 esac
6301 case $add_this_lang in
6302 unsupported)
6303 # Remove language-dependent dirs.
6304 disabled_target_libs="$disabled_target_libs $target_libs"
6305 noconfigdirs="$noconfigdirs $lang_dirs"
6308 # Remove language-dependent dirs; still show language as supported.
6309 disabled_target_libs="$disabled_target_libs $target_libs"
6310 noconfigdirs="$noconfigdirs $lang_dirs"
6311 potential_languages="${potential_languages}${language},"
6313 yes)
6314 new_enable_languages="${new_enable_languages}${language},"
6315 potential_languages="${potential_languages}${language},"
6316 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6317 enabled_target_libs="$enabled_target_libs $target_libs"
6318 case "${boot_language}:,$enable_stage1_languages," in
6319 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6320 # Add to (comma-separated) list of stage 1 languages.
6321 case ",$stage1_languages," in
6322 *,$language,* | ,yes, | ,all,) ;;
6323 *) stage1_languages="${stage1_languages}${language}," ;;
6324 esac
6325 # We need to bootstrap any supporting libraries.
6326 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6328 esac
6330 esac
6332 esac
6333 done
6335 # Add target libraries which are only needed for disabled languages
6336 # to noconfigdirs.
6337 if test -n "$disabled_target_libs"; then
6338 for dir in $disabled_target_libs; do
6339 case " $enabled_target_libs " in
6340 *" ${dir} "*) ;;
6341 *) noconfigdirs="$noconfigdirs $dir" ;;
6342 esac
6343 done
6346 # Check whether --enable-stage1-languages was given.
6347 if test "${enable_stage1_languages+set}" = set; then :
6348 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6349 ,no,|,,)
6350 # Set it to something that will have no effect in the loop below
6351 enable_stage1_languages=c ;;
6352 ,yes,)
6353 enable_stage1_languages=`echo $new_enable_languages | \
6354 sed -e "s/^,//" -e "s/,$//" ` ;;
6355 *,all,*)
6356 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6357 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6358 esac
6360 # Add "good" languages from enable_stage1_languages to stage1_languages,
6361 # while "bad" languages go in missing_languages. Leave no duplicates.
6362 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6363 case $potential_languages in
6364 *,$i,*)
6365 case $stage1_languages in
6366 *,$i,*) ;;
6367 *) stage1_languages="$stage1_languages$i," ;;
6368 esac ;;
6370 case $missing_languages in
6371 *,$i,*) ;;
6372 *) missing_languages="$missing_languages$i," ;;
6373 esac ;;
6374 esac
6375 done
6379 # Remove leading/trailing commas that were added for simplicity
6380 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6381 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6382 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6383 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6385 if test "x$missing_languages" != x; then
6386 as_fn_error "
6387 The following requested languages could not be built: ${missing_languages}
6388 Supported languages are: ${potential_languages}" "$LINENO" 5
6390 if test "x$new_enable_languages" != "x$enable_languages"; then
6391 echo The following languages will be built: ${new_enable_languages}
6392 enable_languages="$new_enable_languages"
6396 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6399 # Handle --disable-<component> generically.
6400 for dir in $configdirs $build_configdirs $target_configdirs ; do
6401 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6402 varname=`echo $dirname | sed -e s/+/_/g`
6403 if eval test x\${enable_${varname}} "=" xno ; then
6404 noconfigdirs="$noconfigdirs $dir"
6406 done
6408 # Check for Boehm's garbage collector
6409 # Check whether --enable-objc-gc was given.
6410 if test "${enable_objc_gc+set}" = set; then :
6411 enableval=$enable_objc_gc;
6415 # Check whether --with-target-bdw-gc was given.
6416 if test "${with_target_bdw_gc+set}" = set; then :
6417 withval=$with_target_bdw_gc;
6421 # Check whether --with-target-bdw-gc-include was given.
6422 if test "${with_target_bdw_gc_include+set}" = set; then :
6423 withval=$with_target_bdw_gc_include;
6427 # Check whether --with-target-bdw-gc-lib was given.
6428 if test "${with_target_bdw_gc_lib+set}" = set; then :
6429 withval=$with_target_bdw_gc_lib;
6433 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6435 $as_echo_n "checking for bdw garbage collector... " >&6; }
6436 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6438 $as_echo "using bdw-gc in default locations" >&6; }
6439 else
6440 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6441 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6442 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6443 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6444 else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6446 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6449 esac
6451 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6452 case ,${enable_languages}, in
6453 *,c++,*)
6454 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6455 case "${noconfigdirs}" in
6456 *target-libstdc++-v3*)
6457 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6459 *) ;;
6460 esac
6463 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6465 esac
6467 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6468 # $build_configdirs and $target_configdirs.
6469 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6471 notsupp=""
6472 for dir in . $skipdirs $noconfigdirs ; do
6473 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6474 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6475 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6476 if test -r $srcdir/$dirname/configure ; then
6477 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6478 true
6479 else
6480 notsupp="$notsupp $dir"
6484 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6485 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6486 if test -r $srcdir/$dirname/configure ; then
6487 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6488 true
6489 else
6490 notsupp="$notsupp $dir"
6494 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6495 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6496 if test -r $srcdir/$dirname/configure ; then
6497 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6498 true
6499 else
6500 notsupp="$notsupp $dir"
6504 done
6506 # Quietly strip out all directories which aren't configurable in this tree.
6507 # This relies on all configurable subdirectories being autoconfiscated, which
6508 # is now the case.
6509 build_configdirs_all="$build_configdirs"
6510 build_configdirs=
6511 for i in ${build_configdirs_all} ; do
6512 j=`echo $i | sed -e s/build-//g`
6513 if test -f ${srcdir}/$j/configure ; then
6514 build_configdirs="${build_configdirs} $i"
6516 done
6518 configdirs_all="$configdirs"
6519 configdirs=
6520 for i in ${configdirs_all} ; do
6521 if test -f ${srcdir}/$i/configure ; then
6522 configdirs="${configdirs} $i"
6524 done
6526 target_configdirs_all="$target_configdirs"
6527 target_configdirs=
6528 for i in ${target_configdirs_all} ; do
6529 j=`echo $i | sed -e s/target-//g`
6530 if test -f ${srcdir}/$j/configure ; then
6531 target_configdirs="${target_configdirs} $i"
6533 done
6535 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6536 # so we have to add it after the preceding checks.
6537 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6538 then
6539 case " $configdirs " in
6540 *" libiberty "*)
6541 # If we can build libiberty, we can also build libiberty-linker-plugin.
6542 configdirs="$configdirs libiberty-linker-plugin"
6543 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6544 --with-libiberty=../libiberty-linker-plugin";;
6546 as_fn_error "libiberty missing" "$LINENO" 5;;
6547 esac
6550 # Sometimes we have special requirements for the host libiberty.
6551 extra_host_libiberty_configure_flags=
6552 extra_host_zlib_configure_flags=
6553 case " $configdirs " in
6554 *" lto-plugin "* | *" libcc1 "*)
6555 # When these are to be built as shared libraries, the same applies to
6556 # libiberty.
6557 extra_host_libiberty_configure_flags=--enable-shared
6559 *" bfd "*)
6560 # When bfd is to be built as a shared library, the same applies to
6561 # zlib.
6562 if test "$enable_shared" = "yes"; then
6563 extra_host_zlib_configure_flags=--enable-host-shared
6566 esac
6570 # Produce a warning message for the subdirs we can't configure.
6571 # This isn't especially interesting in the Cygnus tree, but in the individual
6572 # FSF releases, it's important to let people know when their machine isn't
6573 # supported by the one or two programs in a package.
6575 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6576 # If $appdirs is non-empty, at least one of those directories must still
6577 # be configured, or we error out. (E.g., if the gas release supports a
6578 # specified target in some subdirs but not the gas subdir, we shouldn't
6579 # pretend that all is well.)
6580 if test -n "$appdirs" ; then
6581 for dir in $appdirs ; do
6582 if test -r $dir/Makefile.in ; then
6583 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6584 appdirs=""
6585 break
6587 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6588 appdirs=""
6589 break
6592 done
6593 if test -n "$appdirs" ; then
6594 echo "*** This configuration is not supported by this package." 1>&2
6595 exit 1
6598 # Okay, some application will build, or we don't care to check. Still
6599 # notify of subdirs not getting built.
6600 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6601 echo " ${notsupp}" 1>&2
6602 echo " (Any other directories should still work fine.)" 1>&2
6605 case "$host" in
6606 *msdosdjgpp*)
6607 enable_gdbtk=no ;;
6608 esac
6610 # To find our prefix, in gcc_cv_tool_prefix.
6612 # The user is always right.
6613 if test "${PATH_SEPARATOR+set}" != set; then
6614 echo "#! /bin/sh" >conf$$.sh
6615 echo "exit 0" >>conf$$.sh
6616 chmod +x conf$$.sh
6617 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6618 PATH_SEPARATOR=';'
6619 else
6620 PATH_SEPARATOR=:
6622 rm -f conf$$.sh
6626 get_gcc_base_ver="cat"
6628 # Check whether --with-gcc-major-version-only was given.
6629 if test "${with_gcc_major_version_only+set}" = set; then :
6630 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6631 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
6641 if test "x$exec_prefix" = xNONE; then
6642 if test "x$prefix" = xNONE; then
6643 gcc_cv_tool_prefix=$ac_default_prefix
6644 else
6645 gcc_cv_tool_prefix=$prefix
6647 else
6648 gcc_cv_tool_prefix=$exec_prefix
6651 # If there is no compiler in the tree, use the PATH only. In any
6652 # case, if there is no compiler in the tree nobody should use
6653 # AS_FOR_TARGET and LD_FOR_TARGET.
6654 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6655 if test x$with_gcc_major_version_only = xyes ; then
6656 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6657 else
6658 gcc_version=`cat $srcdir/gcc/BASE-VER`
6660 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6661 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6662 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6663 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6664 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6665 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6666 else
6667 gcc_cv_tool_dirs=
6670 if test x$build = x$target && test -n "$md_exec_prefix"; then
6671 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6676 copy_dirs=
6679 # Check whether --with-build-sysroot was given.
6680 if test "${with_build_sysroot+set}" = set; then :
6681 withval=$with_build_sysroot; if test x"$withval" != x ; then
6682 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6684 else
6685 SYSROOT_CFLAGS_FOR_TARGET=
6691 # Check whether --with-debug-prefix-map was given.
6692 if test "${with_debug_prefix_map+set}" = set; then :
6693 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6694 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6695 for debug_map in $withval; do
6696 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6697 done
6699 else
6700 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6705 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6706 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6707 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6708 # We want to ensure that TARGET libraries (which we know are built with
6709 # gcc) are built with "-O2 -g", so include those options when setting
6710 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6711 if test "x$CFLAGS_FOR_TARGET" = x; then
6712 if test "x${is_cross_compiler}" = xyes; then
6713 CFLAGS_FOR_TARGET="-g -O2"
6714 else
6715 CFLAGS_FOR_TARGET=$CFLAGS
6716 case " $CFLAGS " in
6717 *" -O2 "*) ;;
6718 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6719 esac
6720 case " $CFLAGS " in
6721 *" -g "* | *" -g3 "*) ;;
6722 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6723 esac
6728 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6729 if test "x${is_cross_compiler}" = xyes; then
6730 CXXFLAGS_FOR_TARGET="-g -O2"
6731 else
6732 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6733 case " $CXXFLAGS " in
6734 *" -O2 "*) ;;
6735 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6736 esac
6737 case " $CXXFLAGS " in
6738 *" -g "* | *" -g3 "*) ;;
6739 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6740 esac
6747 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6748 # the named directory are copied to $(tooldir)/sys-include.
6749 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6750 if test x${is_cross_compiler} = xno ; then
6751 echo 1>&2 '***' --with-headers is only supported when cross compiling
6752 exit 1
6754 if test x"${with_headers}" != xyes ; then
6755 x=${gcc_cv_tool_prefix}
6756 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6760 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6761 # the name directories are copied to $(tooldir)/lib. Multiple directories
6762 # are permitted.
6763 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6764 if test x${is_cross_compiler} = xno ; then
6765 echo 1>&2 '***' --with-libs is only supported when cross compiling
6766 exit 1
6768 if test x"${with_libs}" != xyes ; then
6769 # Copy the libraries in reverse order, so that files in the first named
6770 # library override files in subsequent libraries.
6771 x=${gcc_cv_tool_prefix}
6772 for l in ${with_libs}; do
6773 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6774 done
6778 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6780 # This is done by determining whether or not the appropriate directory
6781 # is available, and by checking whether or not specific configurations
6782 # have requested that this magic not happen.
6784 # The command line options always override the explicit settings in
6785 # configure.ac, and the settings in configure.ac override this magic.
6787 # If the default for a toolchain is to use GNU as and ld, and you don't
6788 # want to do that, then you should use the --without-gnu-as and
6789 # --without-gnu-ld options for the configure script. Similarly, if
6790 # the default is to use the included zlib and you don't want to do that,
6791 # you should use the --with-system-zlib option for the configure script.
6793 if test x${use_gnu_as} = x &&
6794 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6795 with_gnu_as=yes
6796 extra_host_args="$extra_host_args --with-gnu-as"
6799 if test x${use_gnu_ld} = x &&
6800 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6801 with_gnu_ld=yes
6802 extra_host_args="$extra_host_args --with-gnu-ld"
6805 if test x${use_included_zlib} = x &&
6806 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6808 else
6809 with_system_zlib=yes
6810 extra_host_args="$extra_host_args --with-system-zlib"
6813 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6814 # can detect this case.
6816 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6817 with_newlib=yes
6818 extra_host_args="$extra_host_args --with-newlib"
6821 # Handle ${copy_dirs}
6822 set fnord ${copy_dirs}
6823 shift
6824 while test $# != 0 ; do
6825 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6827 else
6828 echo Copying $1 to $2
6830 # Use the install script to create the directory and all required
6831 # parent directories.
6832 if test -d $2 ; then
6834 else
6835 echo >config.temp
6836 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6839 # Copy the directory, assuming we have tar.
6840 # FIXME: Should we use B in the second tar? Not all systems support it.
6841 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6843 # It is the responsibility of the user to correctly adjust all
6844 # symlinks. If somebody can figure out how to handle them correctly
6845 # here, feel free to add the code.
6847 echo $1 > $2/COPIED
6849 shift; shift
6850 done
6852 # Determine a target-dependent exec_prefix that the installed
6853 # gcc will search in. Keep this list sorted by triplet, with
6854 # the *-*-osname triplets last.
6855 md_exec_prefix=
6856 case "${target}" in
6857 i[34567]86-pc-msdosdjgpp*)
6858 md_exec_prefix=/dev/env/DJDIR/bin
6860 *-*-hpux* | \
6861 *-*-nto-qnx* | \
6862 *-*-solaris2*)
6863 md_exec_prefix=/usr/ccs/bin
6865 esac
6867 extra_arflags_for_target=
6868 extra_nmflags_for_target=
6869 extra_ranlibflags_for_target=
6870 target_makefile_frag=/dev/null
6871 case "${target}" in
6872 spu-*-*)
6873 target_makefile_frag="config/mt-spu"
6875 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6876 target_makefile_frag="config/mt-sde"
6878 mipsisa*-*-elfoabi*)
6879 target_makefile_frag="config/mt-mips-elfoabi"
6881 mips*-*-*linux* | mips*-*-gnu*)
6882 target_makefile_frag="config/mt-mips-gnu"
6884 nios2-*-elf*)
6885 target_makefile_frag="config/mt-nios2-elf"
6887 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6888 target_makefile_frag="config/mt-gnu"
6890 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6891 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6892 # commands to handle both 32-bit and 64-bit objects. These flags are
6893 # harmless if we're using GNU nm or ar.
6894 extra_arflags_for_target=" -X32_64"
6895 extra_nmflags_for_target=" -B -X32_64"
6897 esac
6899 alphaieee_frag=/dev/null
6900 case $target in
6901 alpha*-*-*)
6902 # This just makes sure to use the -mieee option to build target libs.
6903 # This should probably be set individually by each library.
6904 alphaieee_frag="config/mt-alphaieee"
6906 esac
6908 # If --enable-target-optspace always use -Os instead of -O2 to build
6909 # the target libraries, similarly if it is not specified, use -Os
6910 # on selected platforms.
6911 ospace_frag=/dev/null
6912 case "${enable_target_optspace}:${target}" in
6913 yes:*)
6914 ospace_frag="config/mt-ospace"
6916 :d30v-*)
6917 ospace_frag="config/mt-d30v"
6919 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6920 ospace_frag="config/mt-ospace"
6922 no:* | :*)
6925 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6927 esac
6929 # Some systems (e.g., one of the i386-aix systems the gas testers are
6930 # using) don't handle "\$" correctly, so don't use it here.
6931 tooldir='${exec_prefix}'/${target_noncanonical}
6932 build_tooldir=${tooldir}
6934 # Create a .gdbinit file which runs the one in srcdir
6935 # and tells GDB to look there for source files.
6937 if test -r ${srcdir}/.gdbinit ; then
6938 case ${srcdir} in
6939 .) ;;
6940 *) cat > ./.gdbinit <<EOF
6941 # ${NO_EDIT}
6942 dir ${srcdir}
6943 dir .
6944 source ${srcdir}/.gdbinit
6947 esac
6950 # Make sure that the compiler is able to generate an executable. If it
6951 # can't, we are probably in trouble. We don't care whether we can run the
6952 # executable--we might be using a cross compiler--we only care whether it
6953 # can be created. At this point the main configure script has set CC.
6954 we_are_ok=no
6955 echo "int main () { return 0; }" > conftest.c
6956 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6957 if test $? = 0 ; then
6958 if test -s conftest || test -s conftest.exe ; then
6959 we_are_ok=yes
6962 case $we_are_ok in
6964 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6965 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6966 rm -f conftest*
6967 exit 1
6969 esac
6970 rm -f conftest*
6972 # Decide which environment variable is used to find dynamic libraries.
6973 case "${host}" in
6974 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6975 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6976 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6977 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6978 esac
6980 # On systems where the dynamic library environment variable is PATH,
6981 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6982 # built executables to PATH.
6983 if test "$RPATH_ENVVAR" = PATH; then
6984 GCC_SHLIB_SUBDIR=/shlib
6985 else
6986 GCC_SHLIB_SUBDIR=
6989 # Adjust the toplevel makefile according to whether bootstrap was selected.
6990 case $enable_bootstrap in
6991 yes)
6992 bootstrap_suffix=bootstrap
6993 BUILD_CONFIG=bootstrap-debug
6996 bootstrap_suffix=no-bootstrap
6997 BUILD_CONFIG=
6999 esac
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7002 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7005 # Check whether --with-build-config was given.
7006 if test "${with_build_config+set}" = set; then :
7007 withval=$with_build_config; case $with_build_config in
7008 yes) with_build_config= ;;
7009 no) with_build_config= BUILD_CONFIG= ;;
7010 esac
7014 if test "x${with_build_config}" != x; then
7015 BUILD_CONFIG=$with_build_config
7016 else
7017 case $BUILD_CONFIG in
7018 bootstrap-debug)
7019 if echo "int f (void) { return 0; }" > conftest.c &&
7020 ${CC} -c conftest.c &&
7021 mv conftest.o conftest.o.g0 &&
7022 ${CC} -c -g conftest.c &&
7023 mv conftest.o conftest.o.g &&
7024 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7026 else
7027 BUILD_CONFIG=
7029 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7031 esac
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7034 $as_echo "$BUILD_CONFIG" >&6; }
7037 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7039 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7040 # Check whether --enable-vtable-verify was given.
7041 if test "${enable_vtable_verify+set}" = set; then :
7042 enableval=$enable_vtable_verify; case "$enableval" in
7043 yes) enable_vtable_verify=yes ;;
7044 no) enable_vtable_verify=no ;;
7045 *) enable_vtable_verify=no;;
7046 esac
7047 else
7048 enable_vtable_verify=no
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7052 $as_echo "$enable_vtable_verify" >&6; }
7054 # Record target_configdirs and the configure arguments for target and
7055 # build configuration in Makefile.
7056 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7057 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7058 bootstrap_fixincludes=no
7060 # If we are building libgomp, bootstrap it.
7061 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7062 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7065 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7066 # or bootstrap-ubsan, bootstrap it.
7067 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7068 case "$BUILD_CONFIG" in
7069 *bootstrap-asan* | *bootstrap-ubsan* )
7070 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7071 bootstrap_fixincludes=yes
7073 esac
7076 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7077 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7078 test "$enable_vtable_verify" != no; then
7079 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7082 # If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7083 # bootstrap it.
7084 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7085 case "$BUILD_CONFIG" in
7086 *bootstrap-mpx* )
7087 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7089 esac
7092 # Determine whether gdb needs tk/tcl or not.
7093 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7094 # and in that case we want gdb to be built without tk. Ugh!
7095 # In fact I believe gdb is the *only* package directly dependent on tk,
7096 # so we should be able to put the 'maybe's in unconditionally and
7097 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7098 # 100% sure that that's safe though.
7100 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7101 case "$enable_gdbtk" in
7103 GDB_TK="" ;;
7104 yes)
7105 GDB_TK="${gdb_tk}" ;;
7107 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7108 # distro. Eventually someone will fix this and move Insight, nee
7109 # gdbtk to a separate directory.
7110 if test -d ${srcdir}/gdb/gdbtk ; then
7111 GDB_TK="${gdb_tk}"
7112 else
7113 GDB_TK=""
7116 esac
7117 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7118 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7120 # Strip out unwanted targets.
7122 # While at that, we remove Makefiles if we were started for recursive
7123 # configuration, so that the top-level Makefile reconfigures them,
7124 # like we used to do when configure itself was recursive.
7126 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7127 # but now we're fixing up the Makefile ourselves with the additional
7128 # commands passed to AC_CONFIG_FILES. Use separate variables
7129 # extrasub-{build,host,target} not because there is any reason to split
7130 # the substitutions up that way, but only to remain below the limit of
7131 # 99 commands in a script, for HP-UX sed.
7132 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7134 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7135 yes:yes:*\ gold\ *:*,c++,*) ;;
7136 yes:yes:*\ gold\ *:*)
7137 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7139 esac
7141 extrasub_build=
7142 for module in ${build_configdirs} ; do
7143 if test -z "${no_recursion}" \
7144 && test -f ${build_subdir}/${module}/Makefile; then
7145 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7146 rm -f ${build_subdir}/${module}/Makefile
7148 extrasub_build="$extrasub_build
7149 /^@if build-$module\$/d
7150 /^@endif build-$module\$/d
7151 /^@if build-$module-$bootstrap_suffix\$/d
7152 /^@endif build-$module-$bootstrap_suffix\$/d"
7153 done
7154 extrasub_host=
7155 for module in ${configdirs} ; do
7156 if test -z "${no_recursion}"; then
7157 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7158 if test -f ${file}; then
7159 echo 1>&2 "*** removing ${file} to force reconfigure"
7160 rm -f ${file}
7162 done
7164 case ${module},${bootstrap_fixincludes} in
7165 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7166 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7167 esac
7168 extrasub_host="$extrasub_host
7169 /^@if $module\$/d
7170 /^@endif $module\$/d
7171 /^@if $module-$host_bootstrap_suffix\$/d
7172 /^@endif $module-$host_bootstrap_suffix\$/d"
7173 done
7174 extrasub_target=
7175 for module in ${target_configdirs} ; do
7176 if test -z "${no_recursion}" \
7177 && test -f ${target_subdir}/${module}/Makefile; then
7178 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7179 rm -f ${target_subdir}/${module}/Makefile
7182 # We only bootstrap target libraries listed in bootstrap_target_libs.
7183 case $bootstrap_target_libs in
7184 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7185 *) target_bootstrap_suffix=no-bootstrap ;;
7186 esac
7188 extrasub_target="$extrasub_target
7189 /^@if target-$module\$/d
7190 /^@endif target-$module\$/d
7191 /^@if target-$module-$target_bootstrap_suffix\$/d
7192 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7193 done
7195 # Do the final fixup along with target modules.
7196 extrasub_target="$extrasub_target
7197 /^@if /,/^@endif /d"
7199 # Create the serialization dependencies. This uses a temporary file.
7201 # Check whether --enable-serial-configure was given.
7202 if test "${enable_serial_configure+set}" = set; then :
7203 enableval=$enable_serial_configure;
7207 case ${enable_serial_configure} in
7208 yes)
7209 enable_serial_build_configure=yes
7210 enable_serial_host_configure=yes
7211 enable_serial_target_configure=yes
7213 esac
7215 # These force 'configure's to be done one at a time, to avoid problems
7216 # with contention over a shared config.cache.
7217 rm -f serdep.tmp
7218 echo '# serdep.tmp' > serdep.tmp
7219 olditem=
7220 test "x${enable_serial_build_configure}" = xyes &&
7221 for item in ${build_configdirs} ; do
7222 case ${olditem} in
7223 "") ;;
7224 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7225 esac
7226 olditem=${item}
7227 done
7228 olditem=
7229 test "x${enable_serial_host_configure}" = xyes &&
7230 for item in ${configdirs} ; do
7231 case ${olditem} in
7232 "") ;;
7233 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7234 esac
7235 olditem=${item}
7236 done
7237 olditem=
7238 test "x${enable_serial_target_configure}" = xyes &&
7239 for item in ${target_configdirs} ; do
7240 case ${olditem} in
7241 "") ;;
7242 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7243 esac
7244 olditem=${item}
7245 done
7246 serialization_dependencies=serdep.tmp
7249 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7250 # target, nonopt, and variable assignments. These are the ones we
7251 # might not want to pass down to subconfigures. The exception being
7252 # --cache-file=/dev/null, which is used to turn off the use of cache
7253 # files altogether, and which should be passed on to subconfigures.
7254 # Also strip program-prefix, program-suffix, and program-transform-name,
7255 # so that we can pass down a consistent program-transform-name.
7256 baseargs=
7257 tbaseargs=
7258 keep_next=no
7259 skip_next=no
7260 eval "set -- $ac_configure_args"
7261 for ac_arg
7263 if test X"$skip_next" = X"yes"; then
7264 skip_next=no
7265 continue
7267 if test X"$keep_next" = X"yes"; then
7268 case $ac_arg in
7269 *\'*)
7270 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7271 esac
7272 baseargs="$baseargs '$ac_arg'"
7273 tbaseargs="$tbaseargs '$ac_arg'"
7274 keep_next=no
7275 continue
7278 # Handle separated arguments. Based on the logic generated by
7279 # autoconf 2.59.
7280 case $ac_arg in
7281 *=* | --config-cache | -C | -disable-* | --disable-* \
7282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7284 | -with-* | --with-* | -without-* | --without-* | --x)
7285 separate_arg=no
7288 separate_arg=yes
7291 separate_arg=no
7293 esac
7295 skip_targ=no
7296 case $ac_arg in
7298 --with-* | --without-*)
7299 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7301 case $libopt in
7302 *[-_]include)
7303 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7305 *[-_]lib)
7306 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7309 lib=$libopt
7311 esac
7314 case $lib in
7315 mpc | mpfr | gmp | isl)
7316 # If we're processing --with-$lib, --with-$lib-include or
7317 # --with-$lib-lib, for one of the libs above, and target is
7318 # different from host, don't pass the current argument to any
7319 # target library's configure.
7320 if test x$is_cross_compiler = xyes; then
7321 skip_targ=yes
7324 esac
7326 esac
7328 case "$ac_arg" in
7329 --cache-file=/dev/null | \
7330 -cache-file=/dev/null )
7331 # Handled here to avoid the test to skip args below.
7332 baseargs="$baseargs '$ac_arg'"
7333 tbaseargs="$tbaseargs '$ac_arg'"
7334 # Assert: $separate_arg should always be no.
7335 keep_next=$separate_arg
7337 --no*)
7338 continue
7340 --c* | \
7341 --sr* | \
7342 --ho* | \
7343 --bu* | \
7344 --t* | \
7345 --program-* | \
7346 -cache_file* | \
7347 -srcdir* | \
7348 -host* | \
7349 -build* | \
7350 -target* | \
7351 -program-prefix* | \
7352 -program-suffix* | \
7353 -program-transform-name* )
7354 skip_next=$separate_arg
7355 continue
7358 # An option. Add it.
7359 case $ac_arg in
7360 *\'*)
7361 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7362 esac
7363 baseargs="$baseargs '$ac_arg'"
7364 if test X"$skip_targ" = Xno; then
7365 tbaseargs="$tbaseargs '$ac_arg'"
7367 keep_next=$separate_arg
7370 # Either a variable assignment, or a nonopt (triplet). Don't
7371 # pass it down; let the Makefile handle this.
7372 continue
7374 esac
7375 done
7376 # Remove the initial space we just introduced and, as these will be
7377 # expanded by make, quote '$'.
7378 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7380 # Add in --program-transform-name, after --program-prefix and
7381 # --program-suffix have been applied to it. Autoconf has already
7382 # doubled dollar signs and backslashes in program_transform_name; we want
7383 # the backslashes un-doubled, and then the entire thing wrapped in single
7384 # quotes, because this will be expanded first by make and then by the shell.
7385 # Also, because we want to override the logic in subdir configure scripts to
7386 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7387 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7388 ${program_transform_name}
7389 EOF_SED
7390 gcc_transform_name=`cat conftestsed.out`
7391 rm -f conftestsed.out
7392 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7393 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7394 if test "$silent" = yes; then
7395 baseargs="$baseargs --silent"
7396 tbaseargs="$tbaseargs --silent"
7398 baseargs="$baseargs --disable-option-checking"
7399 tbaseargs="$tbaseargs --disable-option-checking"
7401 # Record and document user additions to sub configure arguments.
7406 # For the build-side libraries, we just need to pretend we're native,
7407 # and not use the same cache file. Multilibs are neither needed nor
7408 # desired. We can't even use the same cache file for all build-side
7409 # libraries, as they're compiled differently; some with C, some with
7410 # C++ or with different feature-enabling options.
7411 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7413 # For host modules, accept cache file option, or specification as blank.
7414 case "${cache_file}" in
7415 "") # empty
7416 cache_file_option="" ;;
7417 /* | [A-Za-z]:[\\/]* ) # absolute path
7418 cache_file_option="--cache-file=${cache_file}" ;;
7419 *) # relative path
7420 cache_file_option="--cache-file=../${cache_file}" ;;
7421 esac
7423 # Host dirs don't like to share a cache file either, horribly enough.
7424 # This seems to be due to autoconf 2.5x stupidity.
7425 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7427 target_configargs="$target_configargs ${tbaseargs}"
7429 # Passing a --with-cross-host argument lets the target libraries know
7430 # whether they are being built with a cross-compiler or being built
7431 # native. However, it would be better to use other mechanisms to make the
7432 # sorts of decisions they want to make on this basis. Please consider
7433 # this option to be deprecated. FIXME.
7434 if test x${is_cross_compiler} = xyes ; then
7435 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7438 # Special user-friendly check for native x86_64-linux build, if
7439 # multilib is not explicitly enabled.
7440 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7441 x86_64-*linux*:yes:$build:$build:)
7442 # Make sure we have a development environment that handles 32-bit
7443 dev64=no
7444 echo "int main () { return 0; }" > conftest.c
7445 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7446 if test $? = 0 ; then
7447 if test -s conftest || test -s conftest.exe ; then
7448 dev64=yes
7451 rm -f conftest*
7452 if test x${dev64} != xyes ; then
7453 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
7456 esac
7458 # Default to --enable-multilib.
7459 if test x${enable_multilib} = x ; then
7460 target_configargs="--enable-multilib ${target_configargs}"
7463 # Pass --with-newlib if appropriate. Note that target_configdirs has
7464 # changed from the earlier setting of with_newlib.
7465 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7466 target_configargs="--with-newlib ${target_configargs}"
7469 # Different target subdirs use different values of certain variables
7470 # (notably CXX). Worse, multilibs use *lots* of different values.
7471 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7472 # it doesn't automatically accept command-line overrides of them.
7473 # This means it's not safe for target subdirs to share a cache file,
7474 # which is disgusting, but there you have it. Hopefully this can be
7475 # fixed in future. It's still worthwhile to use a cache file for each
7476 # directory. I think.
7478 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7479 # We need to pass --target, as newer autoconf's requires consistency
7480 # for target_alias and gcc doesn't manage it consistently.
7481 target_configargs="--cache-file=./config.cache ${target_configargs}"
7483 FLAGS_FOR_TARGET=
7484 case " $target_configdirs " in
7485 *" newlib "*)
7486 case " $target_configargs " in
7487 *" --with-newlib "*)
7488 case "$target" in
7489 *-cygwin*)
7490 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7492 esac
7494 # If we're not building GCC, don't discard standard headers.
7495 if test -d ${srcdir}/gcc; then
7496 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7498 if test "${build}" != "${host}"; then
7499 # On Canadian crosses, CC_FOR_TARGET will have already been set
7500 # by `configure', so we won't have an opportunity to add -Bgcc/
7501 # to it. This is right: we don't want to search that directory
7502 # for binaries, but we want the header files in there, so add
7503 # them explicitly.
7504 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7506 # Someone might think of using the pre-installed headers on
7507 # Canadian crosses, in case the installed compiler is not fully
7508 # compatible with the compiler being built. In this case, it
7509 # would be better to flag an error than risking having
7510 # incompatible object files being constructed. We can't
7511 # guarantee that an error will be flagged, but let's hope the
7512 # compiler will do it, when presented with incompatible header
7513 # files.
7517 case "${target}-${is_cross_compiler}" in
7518 i[3456789]86-*-linux*-no)
7519 # Here host == target, so we don't need to build gcc,
7520 # so we don't want to discard standard headers.
7521 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7524 # If we're building newlib, use its generic headers last, but search
7525 # for any libc-related directories first (so make it the last -B
7526 # switch).
7527 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7529 # If we're building libgloss, find the startup file, simulator library
7530 # and linker script.
7531 case " $target_configdirs " in
7532 *" libgloss "*)
7533 # Look for startup file, simulator library and maybe linker script.
7534 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7535 # Look for libnosys.a in case the target needs it.
7536 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7537 # Most targets have the linker script in the source directory.
7538 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7540 esac
7542 esac
7544 esac
7546 esac
7548 case "$target" in
7549 x86_64-*mingw* | *-w64-mingw*)
7550 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7551 # however, use a symlink named 'mingw' in ${prefix} .
7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7554 *-mingw*)
7555 # MinGW can't be handled as Cygwin above since it does not use newlib.
7556 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'
7558 esac
7560 # Allow the user to override the flags for
7561 # our build compiler if desired.
7562 if test x"${build}" = x"${host}" ; then
7563 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7564 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7565 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7568 # On Canadian crosses, we'll be searching the right directories for
7569 # the previously-installed cross compiler, so don't bother to add
7570 # flags for directories within the install tree of the compiler
7571 # being built; programs in there won't even run.
7572 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7573 # Search for pre-installed headers if nothing else fits.
7574 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7577 if test "x${use_gnu_ld}" = x &&
7578 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7579 # Arrange for us to find uninstalled linker scripts.
7580 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7583 # Search for other target-specific linker scripts and such.
7584 case "${target}" in
7585 mep*)
7586 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7588 esac
7590 # Makefile fragments.
7591 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7593 eval fragval=\$$frag
7594 if test $fragval != /dev/null; then
7595 eval $frag=${srcdir}/$fragval
7597 done
7603 # Miscellanea: directories, flags, etc.
7612 # Build module lists & subconfigure args.
7616 # Host module lists & subconfigure args.
7621 # Target module lists & subconfigure args.
7625 # Build tools.
7642 # Generate default definitions for YACC, M4, LEX and other programs that run
7643 # on the build machine. These are used if the Makefile can't locate these
7644 # programs in objdir.
7645 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7647 for ac_prog in 'bison -y' byacc yacc
7649 # Extract the first word of "$ac_prog", so it can be a program name with args.
7650 set dummy $ac_prog; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if test "${ac_cv_prog_YACC+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 if test -n "$YACC"; then
7657 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7658 else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7666 ac_cv_prog_YACC="$ac_prog"
7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7670 done
7671 done
7672 IFS=$as_save_IFS
7676 YACC=$ac_cv_prog_YACC
7677 if test -n "$YACC"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7679 $as_echo "$YACC" >&6; }
7680 else
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7686 test -n "$YACC" && break
7687 done
7688 test -n "$YACC" || YACC="$MISSING bison -y"
7690 case " $build_configdirs " in
7691 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7692 esac
7694 for ac_prog in bison
7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
7697 set dummy $ac_prog; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if test "${ac_cv_prog_BISON+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 if test -n "$BISON"; then
7704 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_BISON="$ac_prog"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7717 done
7718 done
7719 IFS=$as_save_IFS
7723 BISON=$ac_cv_prog_BISON
7724 if test -n "$BISON"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7726 $as_echo "$BISON" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7733 test -n "$BISON" && break
7734 done
7735 test -n "$BISON" || BISON="$MISSING bison"
7737 case " $build_configdirs " in
7738 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7739 esac
7741 for ac_prog in gm4 gnum4 m4
7743 # Extract the first word of "$ac_prog", so it can be a program name with args.
7744 set dummy $ac_prog; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if test "${ac_cv_prog_M4+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 if test -n "$M4"; then
7751 ac_cv_prog_M4="$M4" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_M4="$ac_prog"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7764 done
7765 done
7766 IFS=$as_save_IFS
7770 M4=$ac_cv_prog_M4
7771 if test -n "$M4"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7773 $as_echo "$M4" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7780 test -n "$M4" && break
7781 done
7782 test -n "$M4" || M4="$MISSING m4"
7784 case " $build_configdirs " in
7785 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7786 esac
7788 for ac_prog in flex lex
7790 # Extract the first word of "$ac_prog", so it can be a program name with args.
7791 set dummy $ac_prog; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if test "${ac_cv_prog_LEX+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 if test -n "$LEX"; then
7798 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_LEX="$ac_prog"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7811 done
7812 done
7813 IFS=$as_save_IFS
7817 LEX=$ac_cv_prog_LEX
7818 if test -n "$LEX"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7820 $as_echo "$LEX" >&6; }
7821 else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7827 test -n "$LEX" && break
7828 done
7829 test -n "$LEX" || LEX="$MISSING flex"
7831 case " $build_configdirs " in
7832 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7833 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7834 esac
7836 for ac_prog in flex
7838 # Extract the first word of "$ac_prog", so it can be a program name with args.
7839 set dummy $ac_prog; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_prog_FLEX+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 if test -n "$FLEX"; then
7846 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_prog_FLEX="$ac_prog"
7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 break 2
7859 done
7860 done
7861 IFS=$as_save_IFS
7865 FLEX=$ac_cv_prog_FLEX
7866 if test -n "$FLEX"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7868 $as_echo "$FLEX" >&6; }
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7875 test -n "$FLEX" && break
7876 done
7877 test -n "$FLEX" || FLEX="$MISSING flex"
7879 case " $build_configdirs " in
7880 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7881 esac
7883 for ac_prog in makeinfo
7885 # Extract the first word of "$ac_prog", so it can be a program name with args.
7886 set dummy $ac_prog; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 if test -n "$MAKEINFO"; then
7893 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7894 else
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_prog_MAKEINFO="$ac_prog"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7906 done
7907 done
7908 IFS=$as_save_IFS
7912 MAKEINFO=$ac_cv_prog_MAKEINFO
7913 if test -n "$MAKEINFO"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7915 $as_echo "$MAKEINFO" >&6; }
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7922 test -n "$MAKEINFO" && break
7923 done
7924 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7926 case " $build_configdirs " in
7927 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7930 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7931 # higher, else we use the "missing" dummy.
7932 if ${MAKEINFO} --version \
7933 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7935 else
7936 MAKEINFO="$MISSING makeinfo"
7940 esac
7942 # FIXME: expect and dejagnu may become build tools?
7944 for ac_prog in expect
7946 # Extract the first word of "$ac_prog", so it can be a program name with args.
7947 set dummy $ac_prog; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 if test -n "$EXPECT"; then
7954 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_prog_EXPECT="$ac_prog"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7967 done
7968 done
7969 IFS=$as_save_IFS
7973 EXPECT=$ac_cv_prog_EXPECT
7974 if test -n "$EXPECT"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7976 $as_echo "$EXPECT" >&6; }
7977 else
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7983 test -n "$EXPECT" && break
7984 done
7985 test -n "$EXPECT" || EXPECT="expect"
7987 case " $configdirs " in
7988 *" expect "*)
7989 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7991 esac
7993 for ac_prog in runtest
7995 # Extract the first word of "$ac_prog", so it can be a program name with args.
7996 set dummy $ac_prog; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 if test -n "$RUNTEST"; then
8003 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 ac_cv_prog_RUNTEST="$ac_prog"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8016 done
8017 done
8018 IFS=$as_save_IFS
8022 RUNTEST=$ac_cv_prog_RUNTEST
8023 if test -n "$RUNTEST"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8025 $as_echo "$RUNTEST" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8032 test -n "$RUNTEST" && break
8033 done
8034 test -n "$RUNTEST" || RUNTEST="runtest"
8036 case " $configdirs " in
8037 *" dejagnu "*)
8038 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8040 esac
8043 # Host tools.
8044 ncn_tool_prefix=
8045 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8046 ncn_target_tool_prefix=
8047 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8051 if test -n "$AR"; then
8052 ac_cv_prog_AR=$AR
8053 elif test -n "$ac_cv_prog_AR"; then
8054 AR=$ac_cv_prog_AR
8057 if test -n "$ac_cv_prog_AR"; then
8058 for ncn_progname in ar; do
8059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8060 set dummy ${ncn_progname}; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if test "${ac_cv_prog_AR+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 if test -n "$AR"; then
8067 ac_cv_prog_AR="$AR" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_prog_AR="${ncn_progname}"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8080 done
8081 done
8082 IFS=$as_save_IFS
8086 AR=$ac_cv_prog_AR
8087 if test -n "$AR"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8089 $as_echo "$AR" >&6; }
8090 else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8096 done
8099 for ncn_progname in ar; do
8100 if test -n "$ncn_tool_prefix"; then
8101 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8102 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if test "${ac_cv_prog_AR+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 if test -n "$AR"; then
8109 ac_cv_prog_AR="$AR" # Let the user override the test.
8110 else
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8118 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8122 done
8123 done
8124 IFS=$as_save_IFS
8128 AR=$ac_cv_prog_AR
8129 if test -n "$AR"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8131 $as_echo "$AR" >&6; }
8132 else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8139 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8141 set dummy ${ncn_progname}; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if test "${ac_cv_prog_AR+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 if test -n "$AR"; then
8148 ac_cv_prog_AR="$AR" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8157 ac_cv_prog_AR="${ncn_progname}"
8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8161 done
8162 done
8163 IFS=$as_save_IFS
8167 AR=$ac_cv_prog_AR
8168 if test -n "$AR"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8170 $as_echo "$AR" >&6; }
8171 else
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8178 test -n "$ac_cv_prog_AR" && break
8179 done
8181 if test -z "$ac_cv_prog_AR" ; then
8182 set dummy ar
8183 if test $build = $host ; then
8184 AR="$2"
8185 else
8186 AR="${ncn_tool_prefix}$2"
8192 if test -n "$AS"; then
8193 ac_cv_prog_AS=$AS
8194 elif test -n "$ac_cv_prog_AS"; then
8195 AS=$ac_cv_prog_AS
8198 if test -n "$ac_cv_prog_AS"; then
8199 for ncn_progname in as; do
8200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8201 set dummy ${ncn_progname}; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if test "${ac_cv_prog_AS+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 if test -n "$AS"; then
8208 ac_cv_prog_AS="$AS" # Let the user override the test.
8209 else
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217 ac_cv_prog_AS="${ncn_progname}"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 break 2
8221 done
8222 done
8223 IFS=$as_save_IFS
8227 AS=$ac_cv_prog_AS
8228 if test -n "$AS"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8230 $as_echo "$AS" >&6; }
8231 else
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8237 done
8240 for ncn_progname in as; do
8241 if test -n "$ncn_tool_prefix"; then
8242 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8243 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245 $as_echo_n "checking for $ac_word... " >&6; }
8246 if test "${ac_cv_prog_AS+set}" = set; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249 if test -n "$AS"; then
8250 ac_cv_prog_AS="$AS" # Let the user override the test.
8251 else
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253 for as_dir in $PATH
8255 IFS=$as_save_IFS
8256 test -z "$as_dir" && as_dir=.
8257 for ac_exec_ext in '' $ac_executable_extensions; do
8258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8259 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 break 2
8263 done
8264 done
8265 IFS=$as_save_IFS
8269 AS=$ac_cv_prog_AS
8270 if test -n "$AS"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8272 $as_echo "$AS" >&6; }
8273 else
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 $as_echo "no" >&6; }
8280 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8282 set dummy ${ncn_progname}; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if test "${ac_cv_prog_AS+set}" = set; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8288 if test -n "$AS"; then
8289 ac_cv_prog_AS="$AS" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8298 ac_cv_prog_AS="${ncn_progname}"
8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8302 done
8303 done
8304 IFS=$as_save_IFS
8308 AS=$ac_cv_prog_AS
8309 if test -n "$AS"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8311 $as_echo "$AS" >&6; }
8312 else
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8319 test -n "$ac_cv_prog_AS" && break
8320 done
8322 if test -z "$ac_cv_prog_AS" ; then
8323 set dummy as
8324 if test $build = $host ; then
8325 AS="$2"
8326 else
8327 AS="${ncn_tool_prefix}$2"
8333 if test -n "$DLLTOOL"; then
8334 ac_cv_prog_DLLTOOL=$DLLTOOL
8335 elif test -n "$ac_cv_prog_DLLTOOL"; then
8336 DLLTOOL=$ac_cv_prog_DLLTOOL
8339 if test -n "$ac_cv_prog_DLLTOOL"; then
8340 for ncn_progname in dlltool; do
8341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8342 set dummy ${ncn_progname}; ac_word=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 $as_echo_n "checking for $ac_word... " >&6; }
8345 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 if test -n "$DLLTOOL"; then
8349 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358 ac_cv_prog_DLLTOOL="${ncn_progname}"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 break 2
8362 done
8363 done
8364 IFS=$as_save_IFS
8368 DLLTOOL=$ac_cv_prog_DLLTOOL
8369 if test -n "$DLLTOOL"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8371 $as_echo "$DLLTOOL" >&6; }
8372 else
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8378 done
8381 for ncn_progname in dlltool; do
8382 if test -n "$ncn_tool_prefix"; then
8383 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8384 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 if test -n "$DLLTOOL"; then
8391 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8392 else
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8404 done
8405 done
8406 IFS=$as_save_IFS
8410 DLLTOOL=$ac_cv_prog_DLLTOOL
8411 if test -n "$DLLTOOL"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8413 $as_echo "$DLLTOOL" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8421 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8423 set dummy ${ncn_progname}; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 if test -n "$DLLTOOL"; then
8430 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8439 ac_cv_prog_DLLTOOL="${ncn_progname}"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8443 done
8444 done
8445 IFS=$as_save_IFS
8449 DLLTOOL=$ac_cv_prog_DLLTOOL
8450 if test -n "$DLLTOOL"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8452 $as_echo "$DLLTOOL" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8460 test -n "$ac_cv_prog_DLLTOOL" && break
8461 done
8463 if test -z "$ac_cv_prog_DLLTOOL" ; then
8464 set dummy dlltool
8465 if test $build = $host ; then
8466 DLLTOOL="$2"
8467 else
8468 DLLTOOL="${ncn_tool_prefix}$2"
8474 if test -n "$LD"; then
8475 ac_cv_prog_LD=$LD
8476 elif test -n "$ac_cv_prog_LD"; then
8477 LD=$ac_cv_prog_LD
8480 if test -n "$ac_cv_prog_LD"; then
8481 for ncn_progname in ld; do
8482 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8483 set dummy ${ncn_progname}; ac_word=$2
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 $as_echo_n "checking for $ac_word... " >&6; }
8486 if test "${ac_cv_prog_LD+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 if test -n "$LD"; then
8490 ac_cv_prog_LD="$LD" # Let the user override the test.
8491 else
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 for as_dir in $PATH
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8499 ac_cv_prog_LD="${ncn_progname}"
8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 break 2
8503 done
8504 done
8505 IFS=$as_save_IFS
8509 LD=$ac_cv_prog_LD
8510 if test -n "$LD"; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8512 $as_echo "$LD" >&6; }
8513 else
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 $as_echo "no" >&6; }
8519 done
8522 for ncn_progname in ld; do
8523 if test -n "$ncn_tool_prefix"; then
8524 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8525 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8527 $as_echo_n "checking for $ac_word... " >&6; }
8528 if test "${ac_cv_prog_LD+set}" = set; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 if test -n "$LD"; then
8532 ac_cv_prog_LD="$LD" # Let the user override the test.
8533 else
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8537 IFS=$as_save_IFS
8538 test -z "$as_dir" && as_dir=.
8539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8541 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8543 break 2
8545 done
8546 done
8547 IFS=$as_save_IFS
8551 LD=$ac_cv_prog_LD
8552 if test -n "$LD"; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8554 $as_echo "$LD" >&6; }
8555 else
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557 $as_echo "no" >&6; }
8562 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8564 set dummy ${ncn_progname}; ac_word=$2
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566 $as_echo_n "checking for $ac_word... " >&6; }
8567 if test "${ac_cv_prog_LD+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 if test -n "$LD"; then
8571 ac_cv_prog_LD="$LD" # Let the user override the test.
8572 else
8573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574 for as_dir in $PATH
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
8578 for ac_exec_ext in '' $ac_executable_extensions; do
8579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8580 ac_cv_prog_LD="${ncn_progname}"
8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 break 2
8584 done
8585 done
8586 IFS=$as_save_IFS
8590 LD=$ac_cv_prog_LD
8591 if test -n "$LD"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8593 $as_echo "$LD" >&6; }
8594 else
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8601 test -n "$ac_cv_prog_LD" && break
8602 done
8604 if test -z "$ac_cv_prog_LD" ; then
8605 set dummy ld
8606 if test $build = $host ; then
8607 LD="$2"
8608 else
8609 LD="${ncn_tool_prefix}$2"
8615 if test -n "$LIPO"; then
8616 ac_cv_prog_LIPO=$LIPO
8617 elif test -n "$ac_cv_prog_LIPO"; then
8618 LIPO=$ac_cv_prog_LIPO
8621 if test -n "$ac_cv_prog_LIPO"; then
8622 for ncn_progname in lipo; do
8623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8624 set dummy ${ncn_progname}; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if test "${ac_cv_prog_LIPO+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 if test -n "$LIPO"; then
8631 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640 ac_cv_prog_LIPO="${ncn_progname}"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8644 done
8645 done
8646 IFS=$as_save_IFS
8650 LIPO=$ac_cv_prog_LIPO
8651 if test -n "$LIPO"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8653 $as_echo "$LIPO" >&6; }
8654 else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8660 done
8663 for ncn_progname in lipo; do
8664 if test -n "$ncn_tool_prefix"; then
8665 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8666 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668 $as_echo_n "checking for $ac_word... " >&6; }
8669 if test "${ac_cv_prog_LIPO+set}" = set; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8672 if test -n "$LIPO"; then
8673 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8674 else
8675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676 for as_dir in $PATH
8678 IFS=$as_save_IFS
8679 test -z "$as_dir" && as_dir=.
8680 for ac_exec_ext in '' $ac_executable_extensions; do
8681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8682 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8684 break 2
8686 done
8687 done
8688 IFS=$as_save_IFS
8692 LIPO=$ac_cv_prog_LIPO
8693 if test -n "$LIPO"; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8695 $as_echo "$LIPO" >&6; }
8696 else
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 $as_echo "no" >&6; }
8703 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8705 set dummy ${ncn_progname}; ac_word=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if test "${ac_cv_prog_LIPO+set}" = set; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 if test -n "$LIPO"; then
8712 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8713 else
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 for as_dir in $PATH
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8721 ac_cv_prog_LIPO="${ncn_progname}"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 break 2
8725 done
8726 done
8727 IFS=$as_save_IFS
8731 LIPO=$ac_cv_prog_LIPO
8732 if test -n "$LIPO"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8734 $as_echo "$LIPO" >&6; }
8735 else
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8742 test -n "$ac_cv_prog_LIPO" && break
8743 done
8745 if test -z "$ac_cv_prog_LIPO" ; then
8746 set dummy lipo
8747 if test $build = $host ; then
8748 LIPO="$2"
8749 else
8750 LIPO="${ncn_tool_prefix}$2"
8756 if test -n "$NM"; then
8757 ac_cv_prog_NM=$NM
8758 elif test -n "$ac_cv_prog_NM"; then
8759 NM=$ac_cv_prog_NM
8762 if test -n "$ac_cv_prog_NM"; then
8763 for ncn_progname in nm; do
8764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8765 set dummy ${ncn_progname}; ac_word=$2
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 $as_echo_n "checking for $ac_word... " >&6; }
8768 if test "${ac_cv_prog_NM+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 if test -n "$NM"; then
8772 ac_cv_prog_NM="$NM" # Let the user override the test.
8773 else
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8781 ac_cv_prog_NM="${ncn_progname}"
8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 break 2
8785 done
8786 done
8787 IFS=$as_save_IFS
8791 NM=$ac_cv_prog_NM
8792 if test -n "$NM"; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8794 $as_echo "$NM" >&6; }
8795 else
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8801 done
8804 for ncn_progname in nm; do
8805 if test -n "$ncn_tool_prefix"; then
8806 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8807 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809 $as_echo_n "checking for $ac_word... " >&6; }
8810 if test "${ac_cv_prog_NM+set}" = set; then :
8811 $as_echo_n "(cached) " >&6
8812 else
8813 if test -n "$NM"; then
8814 ac_cv_prog_NM="$NM" # Let the user override the test.
8815 else
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817 for as_dir in $PATH
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8823 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 break 2
8827 done
8828 done
8829 IFS=$as_save_IFS
8833 NM=$ac_cv_prog_NM
8834 if test -n "$NM"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8836 $as_echo "$NM" >&6; }
8837 else
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8844 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8846 set dummy ${ncn_progname}; ac_word=$2
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848 $as_echo_n "checking for $ac_word... " >&6; }
8849 if test "${ac_cv_prog_NM+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 if test -n "$NM"; then
8853 ac_cv_prog_NM="$NM" # Let the user override the test.
8854 else
8855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856 for as_dir in $PATH
8858 IFS=$as_save_IFS
8859 test -z "$as_dir" && as_dir=.
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8862 ac_cv_prog_NM="${ncn_progname}"
8863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8864 break 2
8866 done
8867 done
8868 IFS=$as_save_IFS
8872 NM=$ac_cv_prog_NM
8873 if test -n "$NM"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8875 $as_echo "$NM" >&6; }
8876 else
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 $as_echo "no" >&6; }
8883 test -n "$ac_cv_prog_NM" && break
8884 done
8886 if test -z "$ac_cv_prog_NM" ; then
8887 set dummy nm
8888 if test $build = $host ; then
8889 NM="$2"
8890 else
8891 NM="${ncn_tool_prefix}$2"
8897 if test -n "$RANLIB"; then
8898 ac_cv_prog_RANLIB=$RANLIB
8899 elif test -n "$ac_cv_prog_RANLIB"; then
8900 RANLIB=$ac_cv_prog_RANLIB
8903 if test -n "$ac_cv_prog_RANLIB"; then
8904 for ncn_progname in ranlib; do
8905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8906 set dummy ${ncn_progname}; ac_word=$2
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 $as_echo_n "checking for $ac_word... " >&6; }
8909 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 if test -n "$RANLIB"; then
8913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8914 else
8915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916 for as_dir in $PATH
8918 IFS=$as_save_IFS
8919 test -z "$as_dir" && as_dir=.
8920 for ac_exec_ext in '' $ac_executable_extensions; do
8921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8922 ac_cv_prog_RANLIB="${ncn_progname}"
8923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8924 break 2
8926 done
8927 done
8928 IFS=$as_save_IFS
8932 RANLIB=$ac_cv_prog_RANLIB
8933 if test -n "$RANLIB"; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8935 $as_echo "$RANLIB" >&6; }
8936 else
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 $as_echo "no" >&6; }
8942 done
8945 for ncn_progname in ranlib; do
8946 if test -n "$ncn_tool_prefix"; then
8947 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8948 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950 $as_echo_n "checking for $ac_word... " >&6; }
8951 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 if test -n "$RANLIB"; then
8955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8956 else
8957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958 for as_dir in $PATH
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8964 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8966 break 2
8968 done
8969 done
8970 IFS=$as_save_IFS
8974 RANLIB=$ac_cv_prog_RANLIB
8975 if test -n "$RANLIB"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8977 $as_echo "$RANLIB" >&6; }
8978 else
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8985 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8987 set dummy ${ncn_progname}; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 if test -n "$RANLIB"; then
8994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8995 else
8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 for as_dir in $PATH
8999 IFS=$as_save_IFS
9000 test -z "$as_dir" && as_dir=.
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9003 ac_cv_prog_RANLIB="${ncn_progname}"
9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 break 2
9007 done
9008 done
9009 IFS=$as_save_IFS
9013 RANLIB=$ac_cv_prog_RANLIB
9014 if test -n "$RANLIB"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9016 $as_echo "$RANLIB" >&6; }
9017 else
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9024 test -n "$ac_cv_prog_RANLIB" && break
9025 done
9027 if test -z "$ac_cv_prog_RANLIB" ; then
9028 RANLIB="true"
9033 if test -n "$STRIP"; then
9034 ac_cv_prog_STRIP=$STRIP
9035 elif test -n "$ac_cv_prog_STRIP"; then
9036 STRIP=$ac_cv_prog_STRIP
9039 if test -n "$ac_cv_prog_STRIP"; then
9040 for ncn_progname in strip; do
9041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9042 set dummy ${ncn_progname}; ac_word=$2
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044 $as_echo_n "checking for $ac_word... " >&6; }
9045 if test "${ac_cv_prog_STRIP+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 if test -n "$STRIP"; then
9049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9050 else
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 for as_dir in $PATH
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9058 ac_cv_prog_STRIP="${ncn_progname}"
9059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 break 2
9062 done
9063 done
9064 IFS=$as_save_IFS
9068 STRIP=$ac_cv_prog_STRIP
9069 if test -n "$STRIP"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9071 $as_echo "$STRIP" >&6; }
9072 else
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9078 done
9081 for ncn_progname in strip; do
9082 if test -n "$ncn_tool_prefix"; then
9083 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9084 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 $as_echo_n "checking for $ac_word... " >&6; }
9087 if test "${ac_cv_prog_STRIP+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
9089 else
9090 if test -n "$STRIP"; then
9091 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9092 else
9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 for as_dir in $PATH
9096 IFS=$as_save_IFS
9097 test -z "$as_dir" && as_dir=.
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9100 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102 break 2
9104 done
9105 done
9106 IFS=$as_save_IFS
9110 STRIP=$ac_cv_prog_STRIP
9111 if test -n "$STRIP"; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9113 $as_echo "$STRIP" >&6; }
9114 else
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116 $as_echo "no" >&6; }
9121 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9123 set dummy ${ncn_progname}; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if test "${ac_cv_prog_STRIP+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 if test -n "$STRIP"; then
9130 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9131 else
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9139 ac_cv_prog_STRIP="${ncn_progname}"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 break 2
9143 done
9144 done
9145 IFS=$as_save_IFS
9149 STRIP=$ac_cv_prog_STRIP
9150 if test -n "$STRIP"; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9152 $as_echo "$STRIP" >&6; }
9153 else
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9160 test -n "$ac_cv_prog_STRIP" && break
9161 done
9163 if test -z "$ac_cv_prog_STRIP" ; then
9164 STRIP="true"
9169 if test -n "$WINDRES"; then
9170 ac_cv_prog_WINDRES=$WINDRES
9171 elif test -n "$ac_cv_prog_WINDRES"; then
9172 WINDRES=$ac_cv_prog_WINDRES
9175 if test -n "$ac_cv_prog_WINDRES"; then
9176 for ncn_progname in windres; do
9177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9178 set dummy ${ncn_progname}; ac_word=$2
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 $as_echo_n "checking for $ac_word... " >&6; }
9181 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 if test -n "$WINDRES"; then
9185 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9186 else
9187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 for as_dir in $PATH
9190 IFS=$as_save_IFS
9191 test -z "$as_dir" && as_dir=.
9192 for ac_exec_ext in '' $ac_executable_extensions; do
9193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9194 ac_cv_prog_WINDRES="${ncn_progname}"
9195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9196 break 2
9198 done
9199 done
9200 IFS=$as_save_IFS
9204 WINDRES=$ac_cv_prog_WINDRES
9205 if test -n "$WINDRES"; then
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9207 $as_echo "$WINDRES" >&6; }
9208 else
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9210 $as_echo "no" >&6; }
9214 done
9217 for ncn_progname in windres; do
9218 if test -n "$ncn_tool_prefix"; then
9219 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9220 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9222 $as_echo_n "checking for $ac_word... " >&6; }
9223 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9224 $as_echo_n "(cached) " >&6
9225 else
9226 if test -n "$WINDRES"; then
9227 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9228 else
9229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9230 for as_dir in $PATH
9232 IFS=$as_save_IFS
9233 test -z "$as_dir" && as_dir=.
9234 for ac_exec_ext in '' $ac_executable_extensions; do
9235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9236 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9238 break 2
9240 done
9241 done
9242 IFS=$as_save_IFS
9246 WINDRES=$ac_cv_prog_WINDRES
9247 if test -n "$WINDRES"; then
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9249 $as_echo "$WINDRES" >&6; }
9250 else
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 $as_echo "no" >&6; }
9257 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9259 set dummy ${ncn_progname}; ac_word=$2
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261 $as_echo_n "checking for $ac_word... " >&6; }
9262 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 if test -n "$WINDRES"; then
9266 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9267 else
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in $PATH
9271 IFS=$as_save_IFS
9272 test -z "$as_dir" && as_dir=.
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9275 ac_cv_prog_WINDRES="${ncn_progname}"
9276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9277 break 2
9279 done
9280 done
9281 IFS=$as_save_IFS
9285 WINDRES=$ac_cv_prog_WINDRES
9286 if test -n "$WINDRES"; then
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9288 $as_echo "$WINDRES" >&6; }
9289 else
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291 $as_echo "no" >&6; }
9296 test -n "$ac_cv_prog_WINDRES" && break
9297 done
9299 if test -z "$ac_cv_prog_WINDRES" ; then
9300 set dummy windres
9301 if test $build = $host ; then
9302 WINDRES="$2"
9303 else
9304 WINDRES="${ncn_tool_prefix}$2"
9310 if test -n "$WINDMC"; then
9311 ac_cv_prog_WINDMC=$WINDMC
9312 elif test -n "$ac_cv_prog_WINDMC"; then
9313 WINDMC=$ac_cv_prog_WINDMC
9316 if test -n "$ac_cv_prog_WINDMC"; then
9317 for ncn_progname in windmc; do
9318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9319 set dummy ${ncn_progname}; ac_word=$2
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 $as_echo_n "checking for $ac_word... " >&6; }
9322 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 if test -n "$WINDMC"; then
9326 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9327 else
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 for as_dir in $PATH
9331 IFS=$as_save_IFS
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9335 ac_cv_prog_WINDMC="${ncn_progname}"
9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337 break 2
9339 done
9340 done
9341 IFS=$as_save_IFS
9345 WINDMC=$ac_cv_prog_WINDMC
9346 if test -n "$WINDMC"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9348 $as_echo "$WINDMC" >&6; }
9349 else
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 $as_echo "no" >&6; }
9355 done
9358 for ncn_progname in windmc; do
9359 if test -n "$ncn_tool_prefix"; then
9360 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9361 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363 $as_echo_n "checking for $ac_word... " >&6; }
9364 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 if test -n "$WINDMC"; then
9368 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9369 else
9370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9371 for as_dir in $PATH
9373 IFS=$as_save_IFS
9374 test -z "$as_dir" && as_dir=.
9375 for ac_exec_ext in '' $ac_executable_extensions; do
9376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9377 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9379 break 2
9381 done
9382 done
9383 IFS=$as_save_IFS
9387 WINDMC=$ac_cv_prog_WINDMC
9388 if test -n "$WINDMC"; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9390 $as_echo "$WINDMC" >&6; }
9391 else
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393 $as_echo "no" >&6; }
9398 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9400 set dummy ${ncn_progname}; ac_word=$2
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9402 $as_echo_n "checking for $ac_word... " >&6; }
9403 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 if test -n "$WINDMC"; then
9407 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9408 else
9409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410 for as_dir in $PATH
9412 IFS=$as_save_IFS
9413 test -z "$as_dir" && as_dir=.
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9416 ac_cv_prog_WINDMC="${ncn_progname}"
9417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9418 break 2
9420 done
9421 done
9422 IFS=$as_save_IFS
9426 WINDMC=$ac_cv_prog_WINDMC
9427 if test -n "$WINDMC"; then
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9429 $as_echo "$WINDMC" >&6; }
9430 else
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9437 test -n "$ac_cv_prog_WINDMC" && break
9438 done
9440 if test -z "$ac_cv_prog_WINDMC" ; then
9441 set dummy windmc
9442 if test $build = $host ; then
9443 WINDMC="$2"
9444 else
9445 WINDMC="${ncn_tool_prefix}$2"
9451 if test -n "$OBJCOPY"; then
9452 ac_cv_prog_OBJCOPY=$OBJCOPY
9453 elif test -n "$ac_cv_prog_OBJCOPY"; then
9454 OBJCOPY=$ac_cv_prog_OBJCOPY
9457 if test -n "$ac_cv_prog_OBJCOPY"; then
9458 for ncn_progname in objcopy; do
9459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9460 set dummy ${ncn_progname}; ac_word=$2
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462 $as_echo_n "checking for $ac_word... " >&6; }
9463 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 if test -n "$OBJCOPY"; then
9467 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9468 else
9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470 for as_dir in $PATH
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
9474 for ac_exec_ext in '' $ac_executable_extensions; do
9475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9476 ac_cv_prog_OBJCOPY="${ncn_progname}"
9477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 break 2
9480 done
9481 done
9482 IFS=$as_save_IFS
9486 OBJCOPY=$ac_cv_prog_OBJCOPY
9487 if test -n "$OBJCOPY"; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9489 $as_echo "$OBJCOPY" >&6; }
9490 else
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9492 $as_echo "no" >&6; }
9496 done
9499 for ncn_progname in objcopy; do
9500 if test -n "$ncn_tool_prefix"; then
9501 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9502 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9504 $as_echo_n "checking for $ac_word... " >&6; }
9505 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 if test -n "$OBJCOPY"; then
9509 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9510 else
9511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512 for as_dir in $PATH
9514 IFS=$as_save_IFS
9515 test -z "$as_dir" && as_dir=.
9516 for ac_exec_ext in '' $ac_executable_extensions; do
9517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9518 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9520 break 2
9522 done
9523 done
9524 IFS=$as_save_IFS
9528 OBJCOPY=$ac_cv_prog_OBJCOPY
9529 if test -n "$OBJCOPY"; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9531 $as_echo "$OBJCOPY" >&6; }
9532 else
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9539 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9541 set dummy ${ncn_progname}; ac_word=$2
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543 $as_echo_n "checking for $ac_word... " >&6; }
9544 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 if test -n "$OBJCOPY"; then
9548 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9549 else
9550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 for as_dir in $PATH
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9557 ac_cv_prog_OBJCOPY="${ncn_progname}"
9558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9559 break 2
9561 done
9562 done
9563 IFS=$as_save_IFS
9567 OBJCOPY=$ac_cv_prog_OBJCOPY
9568 if test -n "$OBJCOPY"; then
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9570 $as_echo "$OBJCOPY" >&6; }
9571 else
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573 $as_echo "no" >&6; }
9578 test -n "$ac_cv_prog_OBJCOPY" && break
9579 done
9581 if test -z "$ac_cv_prog_OBJCOPY" ; then
9582 set dummy objcopy
9583 if test $build = $host ; then
9584 OBJCOPY="$2"
9585 else
9586 OBJCOPY="${ncn_tool_prefix}$2"
9592 if test -n "$OBJDUMP"; then
9593 ac_cv_prog_OBJDUMP=$OBJDUMP
9594 elif test -n "$ac_cv_prog_OBJDUMP"; then
9595 OBJDUMP=$ac_cv_prog_OBJDUMP
9598 if test -n "$ac_cv_prog_OBJDUMP"; then
9599 for ncn_progname in objdump; do
9600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9601 set dummy ${ncn_progname}; ac_word=$2
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603 $as_echo_n "checking for $ac_word... " >&6; }
9604 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 if test -n "$OBJDUMP"; then
9608 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9609 else
9610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611 for as_dir in $PATH
9613 IFS=$as_save_IFS
9614 test -z "$as_dir" && as_dir=.
9615 for ac_exec_ext in '' $ac_executable_extensions; do
9616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9617 ac_cv_prog_OBJDUMP="${ncn_progname}"
9618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 break 2
9621 done
9622 done
9623 IFS=$as_save_IFS
9627 OBJDUMP=$ac_cv_prog_OBJDUMP
9628 if test -n "$OBJDUMP"; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9630 $as_echo "$OBJDUMP" >&6; }
9631 else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9637 done
9640 for ncn_progname in objdump; do
9641 if test -n "$ncn_tool_prefix"; then
9642 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9643 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9645 $as_echo_n "checking for $ac_word... " >&6; }
9646 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 if test -n "$OBJDUMP"; then
9650 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9651 else
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 for as_dir in $PATH
9655 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9659 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 break 2
9663 done
9664 done
9665 IFS=$as_save_IFS
9669 OBJDUMP=$ac_cv_prog_OBJDUMP
9670 if test -n "$OBJDUMP"; then
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9672 $as_echo "$OBJDUMP" >&6; }
9673 else
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 $as_echo "no" >&6; }
9680 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9682 set dummy ${ncn_progname}; ac_word=$2
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684 $as_echo_n "checking for $ac_word... " >&6; }
9685 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 if test -n "$OBJDUMP"; then
9689 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9690 else
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692 for as_dir in $PATH
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9698 ac_cv_prog_OBJDUMP="${ncn_progname}"
9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 break 2
9702 done
9703 done
9704 IFS=$as_save_IFS
9708 OBJDUMP=$ac_cv_prog_OBJDUMP
9709 if test -n "$OBJDUMP"; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9711 $as_echo "$OBJDUMP" >&6; }
9712 else
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 $as_echo "no" >&6; }
9719 test -n "$ac_cv_prog_OBJDUMP" && break
9720 done
9722 if test -z "$ac_cv_prog_OBJDUMP" ; then
9723 set dummy objdump
9724 if test $build = $host ; then
9725 OBJDUMP="$2"
9726 else
9727 OBJDUMP="${ncn_tool_prefix}$2"
9733 if test -n "$READELF"; then
9734 ac_cv_prog_READELF=$READELF
9735 elif test -n "$ac_cv_prog_READELF"; then
9736 READELF=$ac_cv_prog_READELF
9739 if test -n "$ac_cv_prog_READELF"; then
9740 for ncn_progname in readelf; do
9741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9742 set dummy ${ncn_progname}; ac_word=$2
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744 $as_echo_n "checking for $ac_word... " >&6; }
9745 if test "${ac_cv_prog_READELF+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 if test -n "$READELF"; then
9749 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9750 else
9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 for as_dir in $PATH
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9758 ac_cv_prog_READELF="${ncn_progname}"
9759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 break 2
9762 done
9763 done
9764 IFS=$as_save_IFS
9768 READELF=$ac_cv_prog_READELF
9769 if test -n "$READELF"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9771 $as_echo "$READELF" >&6; }
9772 else
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 $as_echo "no" >&6; }
9778 done
9781 for ncn_progname in readelf; do
9782 if test -n "$ncn_tool_prefix"; then
9783 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9784 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if test "${ac_cv_prog_READELF+set}" = set; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 if test -n "$READELF"; then
9791 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9792 else
9793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 for as_dir in $PATH
9796 IFS=$as_save_IFS
9797 test -z "$as_dir" && as_dir=.
9798 for ac_exec_ext in '' $ac_executable_extensions; do
9799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9800 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9802 break 2
9804 done
9805 done
9806 IFS=$as_save_IFS
9810 READELF=$ac_cv_prog_READELF
9811 if test -n "$READELF"; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9813 $as_echo "$READELF" >&6; }
9814 else
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816 $as_echo "no" >&6; }
9821 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9823 set dummy ${ncn_progname}; ac_word=$2
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825 $as_echo_n "checking for $ac_word... " >&6; }
9826 if test "${ac_cv_prog_READELF+set}" = set; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 if test -n "$READELF"; then
9830 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9831 else
9832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833 for as_dir in $PATH
9835 IFS=$as_save_IFS
9836 test -z "$as_dir" && as_dir=.
9837 for ac_exec_ext in '' $ac_executable_extensions; do
9838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9839 ac_cv_prog_READELF="${ncn_progname}"
9840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9841 break 2
9843 done
9844 done
9845 IFS=$as_save_IFS
9849 READELF=$ac_cv_prog_READELF
9850 if test -n "$READELF"; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9852 $as_echo "$READELF" >&6; }
9853 else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855 $as_echo "no" >&6; }
9860 test -n "$ac_cv_prog_READELF" && break
9861 done
9863 if test -z "$ac_cv_prog_READELF" ; then
9864 set dummy readelf
9865 if test $build = $host ; then
9866 READELF="$2"
9867 else
9868 READELF="${ncn_tool_prefix}$2"
9877 # Target tools.
9879 # Check whether --with-build-time-tools was given.
9880 if test "${with_build_time_tools+set}" = set; then :
9881 withval=$with_build_time_tools; case x"$withval" in
9882 x/*) ;;
9884 with_build_time_tools=
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9886 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9888 esac
9889 else
9890 with_build_time_tools=
9896 if test -n "$CC_FOR_TARGET"; then
9897 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9898 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9899 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9902 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9903 for ncn_progname in cc gcc; do
9904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9905 set dummy ${ncn_progname}; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 if test -n "$CC_FOR_TARGET"; then
9912 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9913 else
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 for as_dir in $PATH
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9921 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9925 done
9926 done
9927 IFS=$as_save_IFS
9931 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9932 if test -n "$CC_FOR_TARGET"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9934 $as_echo "$CC_FOR_TARGET" >&6; }
9935 else
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9941 done
9944 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9945 for ncn_progname in cc gcc; do
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9947 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9948 if test -x $with_build_time_tools/${ncn_progname}; then
9949 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9951 $as_echo "yes" >&6; }
9952 break
9953 else
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9957 done
9960 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9961 for ncn_progname in cc gcc; do
9962 if test -n "$ncn_target_tool_prefix"; then
9963 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9964 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 if test -n "$CC_FOR_TARGET"; then
9971 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9972 else
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9984 done
9985 done
9986 IFS=$as_save_IFS
9990 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9991 if test -n "$CC_FOR_TARGET"; then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9993 $as_echo "$CC_FOR_TARGET" >&6; }
9994 else
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
10001 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10003 set dummy ${ncn_progname}; ac_word=$2
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10005 $as_echo_n "checking for $ac_word... " >&6; }
10006 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
10008 else
10009 if test -n "$CC_FOR_TARGET"; then
10010 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10011 else
10012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10013 for as_dir in $PATH
10015 IFS=$as_save_IFS
10016 test -z "$as_dir" && as_dir=.
10017 for ac_exec_ext in '' $ac_executable_extensions; do
10018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10019 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10021 break 2
10023 done
10024 done
10025 IFS=$as_save_IFS
10029 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10030 if test -n "$CC_FOR_TARGET"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10032 $as_echo "$CC_FOR_TARGET" >&6; }
10033 else
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10040 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10041 done
10044 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10045 set dummy cc gcc
10046 if test $build = $target ; then
10047 CC_FOR_TARGET="$2"
10048 else
10049 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10051 else
10052 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10057 if test -n "$CXX_FOR_TARGET"; then
10058 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10059 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10060 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10063 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10064 for ncn_progname in c++ g++ cxx gxx; do
10065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10066 set dummy ${ncn_progname}; ac_word=$2
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10068 $as_echo_n "checking for $ac_word... " >&6; }
10069 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10070 $as_echo_n "(cached) " >&6
10071 else
10072 if test -n "$CXX_FOR_TARGET"; then
10073 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10074 else
10075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10076 for as_dir in $PATH
10078 IFS=$as_save_IFS
10079 test -z "$as_dir" && as_dir=.
10080 for ac_exec_ext in '' $ac_executable_extensions; do
10081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10082 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10084 break 2
10086 done
10087 done
10088 IFS=$as_save_IFS
10092 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10093 if test -n "$CXX_FOR_TARGET"; then
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10095 $as_echo "$CXX_FOR_TARGET" >&6; }
10096 else
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098 $as_echo "no" >&6; }
10102 done
10105 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10106 for ncn_progname in c++ g++ cxx gxx; do
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10108 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10109 if test -x $with_build_time_tools/${ncn_progname}; then
10110 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10112 $as_echo "yes" >&6; }
10113 break
10114 else
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10118 done
10121 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10122 for ncn_progname in c++ g++ cxx gxx; do
10123 if test -n "$ncn_target_tool_prefix"; then
10124 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10125 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10127 $as_echo_n "checking for $ac_word... " >&6; }
10128 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10129 $as_echo_n "(cached) " >&6
10130 else
10131 if test -n "$CXX_FOR_TARGET"; then
10132 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10133 else
10134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135 for as_dir in $PATH
10137 IFS=$as_save_IFS
10138 test -z "$as_dir" && as_dir=.
10139 for ac_exec_ext in '' $ac_executable_extensions; do
10140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10141 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10143 break 2
10145 done
10146 done
10147 IFS=$as_save_IFS
10151 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10152 if test -n "$CXX_FOR_TARGET"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10154 $as_echo "$CXX_FOR_TARGET" >&6; }
10155 else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10162 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10164 set dummy ${ncn_progname}; ac_word=$2
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166 $as_echo_n "checking for $ac_word... " >&6; }
10167 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 if test -n "$CXX_FOR_TARGET"; then
10171 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10172 else
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10176 IFS=$as_save_IFS
10177 test -z "$as_dir" && as_dir=.
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10180 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10182 break 2
10184 done
10185 done
10186 IFS=$as_save_IFS
10190 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10191 if test -n "$CXX_FOR_TARGET"; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10193 $as_echo "$CXX_FOR_TARGET" >&6; }
10194 else
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196 $as_echo "no" >&6; }
10201 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10202 done
10205 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10206 set dummy c++ g++ cxx gxx
10207 if test $build = $target ; then
10208 CXX_FOR_TARGET="$2"
10209 else
10210 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10212 else
10213 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10218 if test -n "$GCC_FOR_TARGET"; then
10219 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10220 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10221 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10224 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10225 for ncn_progname in gcc; do
10226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10227 set dummy ${ncn_progname}; ac_word=$2
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 $as_echo_n "checking for $ac_word... " >&6; }
10230 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 if test -n "$GCC_FOR_TARGET"; then
10234 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10235 else
10236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in $PATH
10239 IFS=$as_save_IFS
10240 test -z "$as_dir" && as_dir=.
10241 for ac_exec_ext in '' $ac_executable_extensions; do
10242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10243 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10245 break 2
10247 done
10248 done
10249 IFS=$as_save_IFS
10253 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10254 if test -n "$GCC_FOR_TARGET"; then
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10256 $as_echo "$GCC_FOR_TARGET" >&6; }
10257 else
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259 $as_echo "no" >&6; }
10263 done
10266 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10267 for ncn_progname in gcc; do
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10269 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10270 if test -x $with_build_time_tools/${ncn_progname}; then
10271 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10273 $as_echo "yes" >&6; }
10274 break
10275 else
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10279 done
10282 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10283 for ncn_progname in gcc; do
10284 if test -n "$ncn_target_tool_prefix"; then
10285 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10286 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 if test -n "$GCC_FOR_TARGET"; then
10293 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304 break 2
10306 done
10307 done
10308 IFS=$as_save_IFS
10312 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10313 if test -n "$GCC_FOR_TARGET"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10315 $as_echo "$GCC_FOR_TARGET" >&6; }
10316 else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10323 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10325 set dummy ${ncn_progname}; ac_word=$2
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10327 $as_echo_n "checking for $ac_word... " >&6; }
10328 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 if test -n "$GCC_FOR_TARGET"; then
10332 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10333 else
10334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335 for as_dir in $PATH
10337 IFS=$as_save_IFS
10338 test -z "$as_dir" && as_dir=.
10339 for ac_exec_ext in '' $ac_executable_extensions; do
10340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10341 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10343 break 2
10345 done
10346 done
10347 IFS=$as_save_IFS
10351 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10352 if test -n "$GCC_FOR_TARGET"; then
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10354 $as_echo "$GCC_FOR_TARGET" >&6; }
10355 else
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357 $as_echo "no" >&6; }
10362 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10363 done
10366 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10367 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10368 else
10369 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10374 if test -n "$GFORTRAN_FOR_TARGET"; then
10375 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10376 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10377 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10380 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10381 for ncn_progname in gfortran; do
10382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10383 set dummy ${ncn_progname}; ac_word=$2
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10385 $as_echo_n "checking for $ac_word... " >&6; }
10386 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10387 $as_echo_n "(cached) " >&6
10388 else
10389 if test -n "$GFORTRAN_FOR_TARGET"; then
10390 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10391 else
10392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393 for as_dir in $PATH
10395 IFS=$as_save_IFS
10396 test -z "$as_dir" && as_dir=.
10397 for ac_exec_ext in '' $ac_executable_extensions; do
10398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10399 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10401 break 2
10403 done
10404 done
10405 IFS=$as_save_IFS
10409 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10410 if test -n "$GFORTRAN_FOR_TARGET"; then
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10412 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10413 else
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415 $as_echo "no" >&6; }
10419 done
10422 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10423 for ncn_progname in gfortran; do
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10425 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10426 if test -x $with_build_time_tools/${ncn_progname}; then
10427 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10429 $as_echo "yes" >&6; }
10430 break
10431 else
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433 $as_echo "no" >&6; }
10435 done
10438 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10439 for ncn_progname in gfortran; do
10440 if test -n "$ncn_target_tool_prefix"; then
10441 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10442 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10444 $as_echo_n "checking for $ac_word... " >&6; }
10445 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 if test -n "$GFORTRAN_FOR_TARGET"; then
10449 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10450 else
10451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452 for as_dir in $PATH
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10458 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 break 2
10462 done
10463 done
10464 IFS=$as_save_IFS
10468 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10469 if test -n "$GFORTRAN_FOR_TARGET"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10471 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10472 else
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10479 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10481 set dummy ${ncn_progname}; ac_word=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 if test -n "$GFORTRAN_FOR_TARGET"; then
10488 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10489 else
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499 break 2
10501 done
10502 done
10503 IFS=$as_save_IFS
10507 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10508 if test -n "$GFORTRAN_FOR_TARGET"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10510 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10511 else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10518 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10519 done
10522 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10523 set dummy gfortran
10524 if test $build = $target ; then
10525 GFORTRAN_FOR_TARGET="$2"
10526 else
10527 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10529 else
10530 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10535 if test -n "$GOC_FOR_TARGET"; then
10536 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10537 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10538 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10541 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10542 for ncn_progname in gccgo; do
10543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10544 set dummy ${ncn_progname}; ac_word=$2
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10546 $as_echo_n "checking for $ac_word... " >&6; }
10547 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10548 $as_echo_n "(cached) " >&6
10549 else
10550 if test -n "$GOC_FOR_TARGET"; then
10551 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10552 else
10553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554 for as_dir in $PATH
10556 IFS=$as_save_IFS
10557 test -z "$as_dir" && as_dir=.
10558 for ac_exec_ext in '' $ac_executable_extensions; do
10559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10560 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 break 2
10564 done
10565 done
10566 IFS=$as_save_IFS
10570 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10571 if test -n "$GOC_FOR_TARGET"; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10573 $as_echo "$GOC_FOR_TARGET" >&6; }
10574 else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; }
10580 done
10583 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10584 for ncn_progname in gccgo; do
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10586 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10587 if test -x $with_build_time_tools/${ncn_progname}; then
10588 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590 $as_echo "yes" >&6; }
10591 break
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10596 done
10599 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10600 for ncn_progname in gccgo; do
10601 if test -n "$ncn_target_tool_prefix"; then
10602 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10603 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10605 $as_echo_n "checking for $ac_word... " >&6; }
10606 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 if test -n "$GOC_FOR_TARGET"; then
10610 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10611 else
10612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613 for as_dir in $PATH
10615 IFS=$as_save_IFS
10616 test -z "$as_dir" && as_dir=.
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10619 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621 break 2
10623 done
10624 done
10625 IFS=$as_save_IFS
10629 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10630 if test -n "$GOC_FOR_TARGET"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10632 $as_echo "$GOC_FOR_TARGET" >&6; }
10633 else
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; }
10640 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10642 set dummy ${ncn_progname}; ac_word=$2
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644 $as_echo_n "checking for $ac_word... " >&6; }
10645 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 if test -n "$GOC_FOR_TARGET"; then
10649 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10650 else
10651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652 for as_dir in $PATH
10654 IFS=$as_save_IFS
10655 test -z "$as_dir" && as_dir=.
10656 for ac_exec_ext in '' $ac_executable_extensions; do
10657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10658 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 break 2
10662 done
10663 done
10664 IFS=$as_save_IFS
10668 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10669 if test -n "$GOC_FOR_TARGET"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10671 $as_echo "$GOC_FOR_TARGET" >&6; }
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10679 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10680 done
10683 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10684 set dummy gccgo
10685 if test $build = $target ; then
10686 GOC_FOR_TARGET="$2"
10687 else
10688 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10690 else
10691 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10696 cat > conftest.c << \EOF
10697 #ifdef __GNUC__
10698 gcc_yay;
10699 #endif
10701 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10702 have_gcc_for_target=yes
10703 else
10704 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10705 have_gcc_for_target=no
10707 rm conftest.c
10712 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10713 if test -n "$with_build_time_tools"; then
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10715 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10716 if test -x $with_build_time_tools/ar; then
10717 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10718 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10720 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10721 else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10725 elif test $build != $host && test $have_gcc_for_target = yes; then
10726 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10727 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10728 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10731 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10732 # Extract the first word of "ar", so it can be a program name with args.
10733 set dummy ar; ac_word=$2
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735 $as_echo_n "checking for $ac_word... " >&6; }
10736 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10737 $as_echo_n "(cached) " >&6
10738 else
10739 case $AR_FOR_TARGET in
10740 [\\/]* | ?:[\\/]*)
10741 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745 for as_dir in $gcc_cv_tool_dirs
10747 IFS=$as_save_IFS
10748 test -z "$as_dir" && as_dir=.
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10751 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10753 break 2
10755 done
10756 done
10757 IFS=$as_save_IFS
10760 esac
10762 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10763 if test -n "$AR_FOR_TARGET"; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10765 $as_echo "$AR_FOR_TARGET" >&6; }
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10773 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10776 if test -n "$AR_FOR_TARGET"; then
10777 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10778 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10779 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10782 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10783 for ncn_progname in ar; do
10784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10785 set dummy ${ncn_progname}; ac_word=$2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 $as_echo_n "checking for $ac_word... " >&6; }
10788 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 if test -n "$AR_FOR_TARGET"; then
10792 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10793 else
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10801 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10805 done
10806 done
10807 IFS=$as_save_IFS
10811 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10812 if test -n "$AR_FOR_TARGET"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10814 $as_echo "$AR_FOR_TARGET" >&6; }
10815 else
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817 $as_echo "no" >&6; }
10821 done
10824 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10825 for ncn_progname in ar; do
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10827 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10828 if test -x $with_build_time_tools/${ncn_progname}; then
10829 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831 $as_echo "yes" >&6; }
10832 break
10833 else
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10837 done
10840 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10841 for ncn_progname in ar; do
10842 if test -n "$ncn_target_tool_prefix"; then
10843 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10844 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10846 $as_echo_n "checking for $ac_word... " >&6; }
10847 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
10849 else
10850 if test -n "$AR_FOR_TARGET"; then
10851 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10852 else
10853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854 for as_dir in $PATH
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10860 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10862 break 2
10864 done
10865 done
10866 IFS=$as_save_IFS
10870 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10871 if test -n "$AR_FOR_TARGET"; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10873 $as_echo "$AR_FOR_TARGET" >&6; }
10874 else
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876 $as_echo "no" >&6; }
10881 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10883 set dummy ${ncn_progname}; ac_word=$2
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 $as_echo_n "checking for $ac_word... " >&6; }
10886 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 if test -n "$AR_FOR_TARGET"; then
10890 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10891 else
10892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10893 for as_dir in $PATH
10895 IFS=$as_save_IFS
10896 test -z "$as_dir" && as_dir=.
10897 for ac_exec_ext in '' $ac_executable_extensions; do
10898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10899 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10901 break 2
10903 done
10904 done
10905 IFS=$as_save_IFS
10909 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10910 if test -n "$AR_FOR_TARGET"; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10912 $as_echo "$AR_FOR_TARGET" >&6; }
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10920 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10921 done
10924 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10925 set dummy ar
10926 if test $build = $target ; then
10927 AR_FOR_TARGET="$2"
10928 else
10929 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10931 else
10932 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10935 else
10936 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10942 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10943 if test -n "$with_build_time_tools"; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10945 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10946 if test -x $with_build_time_tools/as; then
10947 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10948 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10950 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10951 else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10955 elif test $build != $host && test $have_gcc_for_target = yes; then
10956 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10957 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10958 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10961 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10962 # Extract the first word of "as", so it can be a program name with args.
10963 set dummy as; ac_word=$2
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965 $as_echo_n "checking for $ac_word... " >&6; }
10966 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
10968 else
10969 case $AS_FOR_TARGET in
10970 [\\/]* | ?:[\\/]*)
10971 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $gcc_cv_tool_dirs
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10981 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 break 2
10985 done
10986 done
10987 IFS=$as_save_IFS
10990 esac
10992 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10993 if test -n "$AS_FOR_TARGET"; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10995 $as_echo "$AS_FOR_TARGET" >&6; }
10996 else
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
11003 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11006 if test -n "$AS_FOR_TARGET"; then
11007 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11008 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11009 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11012 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11013 for ncn_progname in as; do
11014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11015 set dummy ${ncn_progname}; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 if test -n "$AS_FOR_TARGET"; then
11022 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11023 else
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11031 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11033 break 2
11035 done
11036 done
11037 IFS=$as_save_IFS
11041 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11042 if test -n "$AS_FOR_TARGET"; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11044 $as_echo "$AS_FOR_TARGET" >&6; }
11045 else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11051 done
11054 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11055 for ncn_progname in as; do
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11057 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11058 if test -x $with_build_time_tools/${ncn_progname}; then
11059 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11061 $as_echo "yes" >&6; }
11062 break
11063 else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065 $as_echo "no" >&6; }
11067 done
11070 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11071 for ncn_progname in as; do
11072 if test -n "$ncn_target_tool_prefix"; then
11073 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11074 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076 $as_echo_n "checking for $ac_word... " >&6; }
11077 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 if test -n "$AS_FOR_TARGET"; then
11081 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11082 else
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11090 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 break 2
11094 done
11095 done
11096 IFS=$as_save_IFS
11100 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11101 if test -n "$AS_FOR_TARGET"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11103 $as_echo "$AS_FOR_TARGET" >&6; }
11104 else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11111 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11113 set dummy ${ncn_progname}; ac_word=$2
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115 $as_echo_n "checking for $ac_word... " >&6; }
11116 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 if test -n "$AS_FOR_TARGET"; then
11120 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11121 else
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11129 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11131 break 2
11133 done
11134 done
11135 IFS=$as_save_IFS
11139 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11140 if test -n "$AS_FOR_TARGET"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11142 $as_echo "$AS_FOR_TARGET" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11150 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11151 done
11154 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11155 set dummy as
11156 if test $build = $target ; then
11157 AS_FOR_TARGET="$2"
11158 else
11159 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11161 else
11162 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11165 else
11166 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11172 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11173 if test -n "$with_build_time_tools"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11175 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11176 if test -x $with_build_time_tools/dlltool; then
11177 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11178 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11180 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11185 elif test $build != $host && test $have_gcc_for_target = yes; then
11186 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11187 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11188 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11191 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11192 # Extract the first word of "dlltool", so it can be a program name with args.
11193 set dummy dlltool; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
11198 else
11199 case $DLLTOOL_FOR_TARGET in
11200 [\\/]* | ?:[\\/]*)
11201 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $gcc_cv_tool_dirs
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11213 break 2
11215 done
11216 done
11217 IFS=$as_save_IFS
11220 esac
11222 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11223 if test -n "$DLLTOOL_FOR_TARGET"; then
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11225 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11226 else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11233 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11236 if test -n "$DLLTOOL_FOR_TARGET"; then
11237 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11238 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11239 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11242 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11243 for ncn_progname in dlltool; do
11244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11245 set dummy ${ncn_progname}; ac_word=$2
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247 $as_echo_n "checking for $ac_word... " >&6; }
11248 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 if test -n "$DLLTOOL_FOR_TARGET"; then
11252 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11253 else
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11261 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11265 done
11266 done
11267 IFS=$as_save_IFS
11271 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11272 if test -n "$DLLTOOL_FOR_TARGET"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11274 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11281 done
11284 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11285 for ncn_progname in dlltool; do
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11287 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11288 if test -x $with_build_time_tools/${ncn_progname}; then
11289 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11291 $as_echo "yes" >&6; }
11292 break
11293 else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11297 done
11300 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11301 for ncn_progname in dlltool; do
11302 if test -n "$ncn_target_tool_prefix"; then
11303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11304 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11306 $as_echo_n "checking for $ac_word... " >&6; }
11307 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11308 $as_echo_n "(cached) " >&6
11309 else
11310 if test -n "$DLLTOOL_FOR_TARGET"; then
11311 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11312 else
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11320 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 break 2
11324 done
11325 done
11326 IFS=$as_save_IFS
11330 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11331 if test -n "$DLLTOOL_FOR_TARGET"; then
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11333 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 $as_echo "no" >&6; }
11341 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11343 set dummy ${ncn_progname}; ac_word=$2
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345 $as_echo_n "checking for $ac_word... " >&6; }
11346 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 if test -n "$DLLTOOL_FOR_TARGET"; then
11350 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11351 else
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11359 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11363 done
11364 done
11365 IFS=$as_save_IFS
11369 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11370 if test -n "$DLLTOOL_FOR_TARGET"; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11372 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11373 else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11380 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11381 done
11384 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11385 set dummy dlltool
11386 if test $build = $target ; then
11387 DLLTOOL_FOR_TARGET="$2"
11388 else
11389 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11391 else
11392 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11395 else
11396 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11402 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11403 if test -n "$with_build_time_tools"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11405 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11406 if test -x $with_build_time_tools/ld; then
11407 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11408 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11410 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11415 elif test $build != $host && test $have_gcc_for_target = yes; then
11416 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11417 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11418 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11421 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11422 # Extract the first word of "ld", so it can be a program name with args.
11423 set dummy ld; ac_word=$2
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425 $as_echo_n "checking for $ac_word... " >&6; }
11426 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 case $LD_FOR_TARGET in
11430 [\\/]* | ?:[\\/]*)
11431 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435 for as_dir in $gcc_cv_tool_dirs
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11441 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 break 2
11445 done
11446 done
11447 IFS=$as_save_IFS
11450 esac
11452 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11453 if test -n "$LD_FOR_TARGET"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11455 $as_echo "$LD_FOR_TARGET" >&6; }
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11463 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11466 if test -n "$LD_FOR_TARGET"; then
11467 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11468 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11469 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11472 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11473 for ncn_progname in ld; do
11474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11475 set dummy ${ncn_progname}; ac_word=$2
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477 $as_echo_n "checking for $ac_word... " >&6; }
11478 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 if test -n "$LD_FOR_TARGET"; then
11482 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11483 else
11484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485 for as_dir in $PATH
11487 IFS=$as_save_IFS
11488 test -z "$as_dir" && as_dir=.
11489 for ac_exec_ext in '' $ac_executable_extensions; do
11490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11491 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11493 break 2
11495 done
11496 done
11497 IFS=$as_save_IFS
11501 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11502 if test -n "$LD_FOR_TARGET"; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11504 $as_echo "$LD_FOR_TARGET" >&6; }
11505 else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507 $as_echo "no" >&6; }
11511 done
11514 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11515 for ncn_progname in ld; do
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11517 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11518 if test -x $with_build_time_tools/${ncn_progname}; then
11519 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521 $as_echo "yes" >&6; }
11522 break
11523 else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11527 done
11530 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11531 for ncn_progname in ld; do
11532 if test -n "$ncn_target_tool_prefix"; then
11533 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11534 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11538 $as_echo_n "(cached) " >&6
11539 else
11540 if test -n "$LD_FOR_TARGET"; then
11541 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11542 else
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11550 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11552 break 2
11554 done
11555 done
11556 IFS=$as_save_IFS
11560 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11561 if test -n "$LD_FOR_TARGET"; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11563 $as_echo "$LD_FOR_TARGET" >&6; }
11564 else
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 $as_echo "no" >&6; }
11571 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11573 set dummy ${ncn_progname}; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 if test -n "$LD_FOR_TARGET"; then
11580 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11581 else
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11589 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 break 2
11593 done
11594 done
11595 IFS=$as_save_IFS
11599 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11600 if test -n "$LD_FOR_TARGET"; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11602 $as_echo "$LD_FOR_TARGET" >&6; }
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11610 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11611 done
11614 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11615 set dummy ld
11616 if test $build = $target ; then
11617 LD_FOR_TARGET="$2"
11618 else
11619 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11621 else
11622 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11625 else
11626 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11632 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11633 if test -n "$with_build_time_tools"; then
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11635 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11636 if test -x $with_build_time_tools/lipo; then
11637 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11638 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11640 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11645 elif test $build != $host && test $have_gcc_for_target = yes; then
11646 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11647 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11648 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11651 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11652 # Extract the first word of "lipo", so it can be a program name with args.
11653 set dummy lipo; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 case $LIPO_FOR_TARGET in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $gcc_cv_tool_dirs
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11671 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11675 done
11676 done
11677 IFS=$as_save_IFS
11680 esac
11682 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11683 if test -n "$LIPO_FOR_TARGET"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11685 $as_echo "$LIPO_FOR_TARGET" >&6; }
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11693 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11696 if test -n "$LIPO_FOR_TARGET"; then
11697 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11698 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11699 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11702 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11703 for ncn_progname in lipo; do
11704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11705 set dummy ${ncn_progname}; ac_word=$2
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 $as_echo_n "checking for $ac_word... " >&6; }
11708 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 if test -n "$LIPO_FOR_TARGET"; then
11712 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11713 else
11714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715 for as_dir in $PATH
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11721 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 break 2
11725 done
11726 done
11727 IFS=$as_save_IFS
11731 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11732 if test -n "$LIPO_FOR_TARGET"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11734 $as_echo "$LIPO_FOR_TARGET" >&6; }
11735 else
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11741 done
11744 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11745 for ncn_progname in lipo; do
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11747 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11748 if test -x $with_build_time_tools/${ncn_progname}; then
11749 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11751 $as_echo "yes" >&6; }
11752 break
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11757 done
11760 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11761 for ncn_progname in lipo; do
11762 if test -n "$ncn_target_tool_prefix"; then
11763 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11764 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11768 $as_echo_n "(cached) " >&6
11769 else
11770 if test -n "$LIPO_FOR_TARGET"; then
11771 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11772 else
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $PATH
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11780 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 break 2
11784 done
11785 done
11786 IFS=$as_save_IFS
11790 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11791 if test -n "$LIPO_FOR_TARGET"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11793 $as_echo "$LIPO_FOR_TARGET" >&6; }
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11801 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11803 set dummy ${ncn_progname}; ac_word=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 if test -n "$LIPO_FOR_TARGET"; then
11810 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11811 else
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11819 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 break 2
11823 done
11824 done
11825 IFS=$as_save_IFS
11829 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11830 if test -n "$LIPO_FOR_TARGET"; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11832 $as_echo "$LIPO_FOR_TARGET" >&6; }
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11840 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11841 done
11844 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11845 set dummy lipo
11846 if test $build = $target ; then
11847 LIPO_FOR_TARGET="$2"
11848 else
11849 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11851 else
11852 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11855 else
11856 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11862 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11863 if test -n "$with_build_time_tools"; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11865 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11866 if test -x $with_build_time_tools/nm; then
11867 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11868 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11870 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11871 else
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11875 elif test $build != $host && test $have_gcc_for_target = yes; then
11876 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11877 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11878 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11881 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11882 # Extract the first word of "nm", so it can be a program name with args.
11883 set dummy nm; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 case $NM_FOR_TARGET in
11890 [\\/]* | ?:[\\/]*)
11891 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $gcc_cv_tool_dirs
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11901 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 break 2
11905 done
11906 done
11907 IFS=$as_save_IFS
11910 esac
11912 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11913 if test -n "$NM_FOR_TARGET"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11915 $as_echo "$NM_FOR_TARGET" >&6; }
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11923 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11926 if test -n "$NM_FOR_TARGET"; then
11927 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11928 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11929 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11932 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11933 for ncn_progname in nm; do
11934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11935 set dummy ${ncn_progname}; ac_word=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 if test -n "$NM_FOR_TARGET"; then
11942 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11943 else
11944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11945 for as_dir in $PATH
11947 IFS=$as_save_IFS
11948 test -z "$as_dir" && as_dir=.
11949 for ac_exec_ext in '' $ac_executable_extensions; do
11950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11951 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11953 break 2
11955 done
11956 done
11957 IFS=$as_save_IFS
11961 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11962 if test -n "$NM_FOR_TARGET"; then
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11964 $as_echo "$NM_FOR_TARGET" >&6; }
11965 else
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11971 done
11974 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11975 for ncn_progname in nm; do
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11977 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11978 if test -x $with_build_time_tools/${ncn_progname}; then
11979 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11981 $as_echo "yes" >&6; }
11982 break
11983 else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11987 done
11990 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11991 for ncn_progname in nm; do
11992 if test -n "$ncn_target_tool_prefix"; then
11993 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11994 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996 $as_echo_n "checking for $ac_word... " >&6; }
11997 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 if test -n "$NM_FOR_TARGET"; then
12001 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12002 else
12003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12010 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012 break 2
12014 done
12015 done
12016 IFS=$as_save_IFS
12020 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12021 if test -n "$NM_FOR_TARGET"; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12023 $as_echo "$NM_FOR_TARGET" >&6; }
12024 else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12031 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12033 set dummy ${ncn_progname}; ac_word=$2
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035 $as_echo_n "checking for $ac_word... " >&6; }
12036 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 if test -n "$NM_FOR_TARGET"; then
12040 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12041 else
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12049 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051 break 2
12053 done
12054 done
12055 IFS=$as_save_IFS
12059 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12060 if test -n "$NM_FOR_TARGET"; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12062 $as_echo "$NM_FOR_TARGET" >&6; }
12063 else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12070 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12071 done
12074 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12075 set dummy nm
12076 if test $build = $target ; then
12077 NM_FOR_TARGET="$2"
12078 else
12079 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12081 else
12082 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12085 else
12086 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12092 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12093 if test -n "$with_build_time_tools"; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12095 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12096 if test -x $with_build_time_tools/objcopy; then
12097 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12098 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12100 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12105 elif test $build != $host && test $have_gcc_for_target = yes; then
12106 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12107 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12108 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12111 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12112 # Extract the first word of "objcopy", so it can be a program name with args.
12113 set dummy objcopy; ac_word=$2
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115 $as_echo_n "checking for $ac_word... " >&6; }
12116 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 case $OBJCOPY_FOR_TARGET in
12120 [\\/]* | ?:[\\/]*)
12121 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $gcc_cv_tool_dirs
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12135 done
12136 done
12137 IFS=$as_save_IFS
12140 esac
12142 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12143 if test -n "$OBJCOPY_FOR_TARGET"; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12145 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12146 else
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148 $as_echo "no" >&6; }
12153 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12156 if test -n "$OBJCOPY_FOR_TARGET"; then
12157 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12158 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12159 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12162 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12163 for ncn_progname in objcopy; do
12164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12165 set dummy ${ncn_progname}; ac_word=$2
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12167 $as_echo_n "checking for $ac_word... " >&6; }
12168 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 if test -n "$OBJCOPY_FOR_TARGET"; then
12172 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12173 else
12174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175 for as_dir in $PATH
12177 IFS=$as_save_IFS
12178 test -z "$as_dir" && as_dir=.
12179 for ac_exec_ext in '' $ac_executable_extensions; do
12180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12181 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12183 break 2
12185 done
12186 done
12187 IFS=$as_save_IFS
12191 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12192 if test -n "$OBJCOPY_FOR_TARGET"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12194 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197 $as_echo "no" >&6; }
12201 done
12204 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12205 for ncn_progname in objcopy; do
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12207 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12208 if test -x $with_build_time_tools/${ncn_progname}; then
12209 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12211 $as_echo "yes" >&6; }
12212 break
12213 else
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12217 done
12220 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12221 for ncn_progname in objcopy; do
12222 if test -n "$ncn_target_tool_prefix"; then
12223 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12224 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 if test -n "$OBJCOPY_FOR_TARGET"; then
12231 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12232 else
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12240 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 break 2
12244 done
12245 done
12246 IFS=$as_save_IFS
12250 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12251 if test -n "$OBJCOPY_FOR_TARGET"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12253 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12254 else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12261 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12263 set dummy ${ncn_progname}; ac_word=$2
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265 $as_echo_n "checking for $ac_word... " >&6; }
12266 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 if test -n "$OBJCOPY_FOR_TARGET"; then
12270 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12271 else
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $PATH
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12279 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 break 2
12283 done
12284 done
12285 IFS=$as_save_IFS
12289 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12290 if test -n "$OBJCOPY_FOR_TARGET"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12292 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12300 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12301 done
12304 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12305 set dummy objcopy
12306 if test $build = $target ; then
12307 OBJCOPY_FOR_TARGET="$2"
12308 else
12309 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12311 else
12312 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12315 else
12316 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12322 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12323 if test -n "$with_build_time_tools"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12325 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12326 if test -x $with_build_time_tools/objdump; then
12327 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12328 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12330 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12335 elif test $build != $host && test $have_gcc_for_target = yes; then
12336 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12337 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12338 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12341 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12342 # Extract the first word of "objdump", so it can be a program name with args.
12343 set dummy objdump; ac_word=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 case $OBJDUMP_FOR_TARGET in
12350 [\\/]* | ?:[\\/]*)
12351 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $gcc_cv_tool_dirs
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12361 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12365 done
12366 done
12367 IFS=$as_save_IFS
12370 esac
12372 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12373 if test -n "$OBJDUMP_FOR_TARGET"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12375 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12376 else
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12383 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12386 if test -n "$OBJDUMP_FOR_TARGET"; then
12387 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12388 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12389 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12392 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12393 for ncn_progname in objdump; do
12394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12395 set dummy ${ncn_progname}; ac_word=$2
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397 $as_echo_n "checking for $ac_word... " >&6; }
12398 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 if test -n "$OBJDUMP_FOR_TARGET"; then
12402 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12403 else
12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405 for as_dir in $PATH
12407 IFS=$as_save_IFS
12408 test -z "$as_dir" && as_dir=.
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12411 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413 break 2
12415 done
12416 done
12417 IFS=$as_save_IFS
12421 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12422 if test -n "$OBJDUMP_FOR_TARGET"; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12424 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12425 else
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12431 done
12434 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12435 for ncn_progname in objdump; do
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12437 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12438 if test -x $with_build_time_tools/${ncn_progname}; then
12439 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12441 $as_echo "yes" >&6; }
12442 break
12443 else
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445 $as_echo "no" >&6; }
12447 done
12450 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12451 for ncn_progname in objdump; do
12452 if test -n "$ncn_target_tool_prefix"; then
12453 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12454 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 if test -n "$OBJDUMP_FOR_TARGET"; then
12461 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12462 else
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12470 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 break 2
12474 done
12475 done
12476 IFS=$as_save_IFS
12480 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12481 if test -n "$OBJDUMP_FOR_TARGET"; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12483 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12491 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12493 set dummy ${ncn_progname}; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 if test -n "$OBJDUMP_FOR_TARGET"; then
12500 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12501 else
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511 break 2
12513 done
12514 done
12515 IFS=$as_save_IFS
12519 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12520 if test -n "$OBJDUMP_FOR_TARGET"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12522 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12530 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12531 done
12534 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12535 set dummy objdump
12536 if test $build = $target ; then
12537 OBJDUMP_FOR_TARGET="$2"
12538 else
12539 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12541 else
12542 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12545 else
12546 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12552 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12553 if test -n "$with_build_time_tools"; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12555 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12556 if test -x $with_build_time_tools/ranlib; then
12557 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12558 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12560 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 $as_echo "no" >&6; }
12565 elif test $build != $host && test $have_gcc_for_target = yes; then
12566 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12567 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12568 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12571 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12572 # Extract the first word of "ranlib", so it can be a program name with args.
12573 set dummy ranlib; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 $as_echo_n "checking for $ac_word... " >&6; }
12576 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 case $RANLIB_FOR_TARGET in
12580 [\\/]* | ?:[\\/]*)
12581 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585 for as_dir in $gcc_cv_tool_dirs
12587 IFS=$as_save_IFS
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12591 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12593 break 2
12595 done
12596 done
12597 IFS=$as_save_IFS
12600 esac
12602 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12603 if test -n "$RANLIB_FOR_TARGET"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12605 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12606 else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12613 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12616 if test -n "$RANLIB_FOR_TARGET"; then
12617 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12618 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12619 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12622 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12623 for ncn_progname in ranlib; do
12624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12625 set dummy ${ncn_progname}; ac_word=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627 $as_echo_n "checking for $ac_word... " >&6; }
12628 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 if test -n "$RANLIB_FOR_TARGET"; then
12632 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12633 else
12634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 for as_dir in $PATH
12637 IFS=$as_save_IFS
12638 test -z "$as_dir" && as_dir=.
12639 for ac_exec_ext in '' $ac_executable_extensions; do
12640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12641 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 break 2
12645 done
12646 done
12647 IFS=$as_save_IFS
12651 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12652 if test -n "$RANLIB_FOR_TARGET"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12654 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12655 else
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657 $as_echo "no" >&6; }
12661 done
12664 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12665 for ncn_progname in ranlib; do
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12667 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12668 if test -x $with_build_time_tools/${ncn_progname}; then
12669 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12671 $as_echo "yes" >&6; }
12672 break
12673 else
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12677 done
12680 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12681 for ncn_progname in ranlib; do
12682 if test -n "$ncn_target_tool_prefix"; then
12683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12684 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12686 $as_echo_n "checking for $ac_word... " >&6; }
12687 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12688 $as_echo_n "(cached) " >&6
12689 else
12690 if test -n "$RANLIB_FOR_TARGET"; then
12691 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12692 else
12693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694 for as_dir in $PATH
12696 IFS=$as_save_IFS
12697 test -z "$as_dir" && as_dir=.
12698 for ac_exec_ext in '' $ac_executable_extensions; do
12699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12700 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12702 break 2
12704 done
12705 done
12706 IFS=$as_save_IFS
12710 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12711 if test -n "$RANLIB_FOR_TARGET"; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12713 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 $as_echo "no" >&6; }
12721 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12723 set dummy ${ncn_progname}; ac_word=$2
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725 $as_echo_n "checking for $ac_word... " >&6; }
12726 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12728 else
12729 if test -n "$RANLIB_FOR_TARGET"; then
12730 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12731 else
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 break 2
12743 done
12744 done
12745 IFS=$as_save_IFS
12749 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12750 if test -n "$RANLIB_FOR_TARGET"; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12752 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12753 else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755 $as_echo "no" >&6; }
12760 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12761 done
12764 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12765 set dummy ranlib
12766 if test $build = $target ; then
12767 RANLIB_FOR_TARGET="$2"
12768 else
12769 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12771 else
12772 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12775 else
12776 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12782 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12783 if test -n "$with_build_time_tools"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12785 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12786 if test -x $with_build_time_tools/readelf; then
12787 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12788 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12790 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12795 elif test $build != $host && test $have_gcc_for_target = yes; then
12796 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12797 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12798 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12801 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12802 # Extract the first word of "readelf", so it can be a program name with args.
12803 set dummy readelf; ac_word=$2
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805 $as_echo_n "checking for $ac_word... " >&6; }
12806 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 case $READELF_FOR_TARGET in
12810 [\\/]* | ?:[\\/]*)
12811 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815 for as_dir in $gcc_cv_tool_dirs
12817 IFS=$as_save_IFS
12818 test -z "$as_dir" && as_dir=.
12819 for ac_exec_ext in '' $ac_executable_extensions; do
12820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12821 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12823 break 2
12825 done
12826 done
12827 IFS=$as_save_IFS
12830 esac
12832 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12833 if test -n "$READELF_FOR_TARGET"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12835 $as_echo "$READELF_FOR_TARGET" >&6; }
12836 else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12843 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12846 if test -n "$READELF_FOR_TARGET"; then
12847 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12848 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12849 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12852 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12853 for ncn_progname in readelf; do
12854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12855 set dummy ${ncn_progname}; ac_word=$2
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857 $as_echo_n "checking for $ac_word... " >&6; }
12858 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 if test -n "$READELF_FOR_TARGET"; then
12862 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12863 else
12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865 for as_dir in $PATH
12867 IFS=$as_save_IFS
12868 test -z "$as_dir" && as_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12871 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12873 break 2
12875 done
12876 done
12877 IFS=$as_save_IFS
12881 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12882 if test -n "$READELF_FOR_TARGET"; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12884 $as_echo "$READELF_FOR_TARGET" >&6; }
12885 else
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887 $as_echo "no" >&6; }
12891 done
12894 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12895 for ncn_progname in readelf; do
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12897 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12898 if test -x $with_build_time_tools/${ncn_progname}; then
12899 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12901 $as_echo "yes" >&6; }
12902 break
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12907 done
12910 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12911 for ncn_progname in readelf; do
12912 if test -n "$ncn_target_tool_prefix"; then
12913 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12914 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12916 $as_echo_n "checking for $ac_word... " >&6; }
12917 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12918 $as_echo_n "(cached) " >&6
12919 else
12920 if test -n "$READELF_FOR_TARGET"; then
12921 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12922 else
12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924 for as_dir in $PATH
12926 IFS=$as_save_IFS
12927 test -z "$as_dir" && as_dir=.
12928 for ac_exec_ext in '' $ac_executable_extensions; do
12929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12930 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12932 break 2
12934 done
12935 done
12936 IFS=$as_save_IFS
12940 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12941 if test -n "$READELF_FOR_TARGET"; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12943 $as_echo "$READELF_FOR_TARGET" >&6; }
12944 else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12951 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12953 set dummy ${ncn_progname}; ac_word=$2
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12955 $as_echo_n "checking for $ac_word... " >&6; }
12956 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959 if test -n "$READELF_FOR_TARGET"; then
12960 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12961 else
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 break 2
12973 done
12974 done
12975 IFS=$as_save_IFS
12979 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12980 if test -n "$READELF_FOR_TARGET"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12982 $as_echo "$READELF_FOR_TARGET" >&6; }
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12990 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12991 done
12994 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12995 set dummy readelf
12996 if test $build = $target ; then
12997 READELF_FOR_TARGET="$2"
12998 else
12999 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13001 else
13002 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13005 else
13006 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13012 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13013 if test -n "$with_build_time_tools"; then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13015 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13016 if test -x $with_build_time_tools/strip; then
13017 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13018 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13020 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13021 else
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13025 elif test $build != $host && test $have_gcc_for_target = yes; then
13026 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13027 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13028 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13031 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13032 # Extract the first word of "strip", so it can be a program name with args.
13033 set dummy strip; ac_word=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 case $STRIP_FOR_TARGET in
13040 [\\/]* | ?:[\\/]*)
13041 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $gcc_cv_tool_dirs
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13051 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053 break 2
13055 done
13056 done
13057 IFS=$as_save_IFS
13060 esac
13062 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13063 if test -n "$STRIP_FOR_TARGET"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13065 $as_echo "$STRIP_FOR_TARGET" >&6; }
13066 else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13073 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13076 if test -n "$STRIP_FOR_TARGET"; then
13077 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13078 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13079 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13082 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13083 for ncn_progname in strip; do
13084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13085 set dummy ${ncn_progname}; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 if test -n "$STRIP_FOR_TARGET"; then
13092 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13093 else
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 break 2
13105 done
13106 done
13107 IFS=$as_save_IFS
13111 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13112 if test -n "$STRIP_FOR_TARGET"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13114 $as_echo "$STRIP_FOR_TARGET" >&6; }
13115 else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13121 done
13124 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13125 for ncn_progname in strip; do
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13127 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13128 if test -x $with_build_time_tools/${ncn_progname}; then
13129 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13131 $as_echo "yes" >&6; }
13132 break
13133 else
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13137 done
13140 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13141 for ncn_progname in strip; do
13142 if test -n "$ncn_target_tool_prefix"; then
13143 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13144 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 $as_echo_n "checking for $ac_word... " >&6; }
13147 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 if test -n "$STRIP_FOR_TARGET"; then
13151 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13152 else
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13160 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 break 2
13164 done
13165 done
13166 IFS=$as_save_IFS
13170 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13171 if test -n "$STRIP_FOR_TARGET"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13173 $as_echo "$STRIP_FOR_TARGET" >&6; }
13174 else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 $as_echo "no" >&6; }
13181 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13183 set dummy ${ncn_progname}; ac_word=$2
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185 $as_echo_n "checking for $ac_word... " >&6; }
13186 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 if test -n "$STRIP_FOR_TARGET"; then
13190 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13191 else
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13203 done
13204 done
13205 IFS=$as_save_IFS
13209 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13210 if test -n "$STRIP_FOR_TARGET"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13212 $as_echo "$STRIP_FOR_TARGET" >&6; }
13213 else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13220 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13221 done
13224 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13225 set dummy strip
13226 if test $build = $target ; then
13227 STRIP_FOR_TARGET="$2"
13228 else
13229 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13231 else
13232 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13235 else
13236 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13242 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13243 if test -n "$with_build_time_tools"; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13245 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13246 if test -x $with_build_time_tools/windres; then
13247 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13248 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13250 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13251 else
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13255 elif test $build != $host && test $have_gcc_for_target = yes; then
13256 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13257 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13258 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13261 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13262 # Extract the first word of "windres", so it can be a program name with args.
13263 set dummy windres; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 case $WINDRES_FOR_TARGET in
13270 [\\/]* | ?:[\\/]*)
13271 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $gcc_cv_tool_dirs
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13285 done
13286 done
13287 IFS=$as_save_IFS
13290 esac
13292 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13293 if test -n "$WINDRES_FOR_TARGET"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13295 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13296 else
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13303 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13306 if test -n "$WINDRES_FOR_TARGET"; then
13307 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13308 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13309 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13312 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13313 for ncn_progname in windres; do
13314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13315 set dummy ${ncn_progname}; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 if test -n "$WINDRES_FOR_TARGET"; then
13322 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13335 done
13336 done
13337 IFS=$as_save_IFS
13341 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13342 if test -n "$WINDRES_FOR_TARGET"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13344 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13345 else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13351 done
13354 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13355 for ncn_progname in windres; do
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13357 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13358 if test -x $with_build_time_tools/${ncn_progname}; then
13359 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13361 $as_echo "yes" >&6; }
13362 break
13363 else
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13367 done
13370 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13371 for ncn_progname in windres; do
13372 if test -n "$ncn_target_tool_prefix"; then
13373 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13374 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 if test -n "$WINDRES_FOR_TARGET"; then
13381 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13382 else
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13390 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 break 2
13394 done
13395 done
13396 IFS=$as_save_IFS
13400 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13401 if test -n "$WINDRES_FOR_TARGET"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13403 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13411 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13413 set dummy ${ncn_progname}; ac_word=$2
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415 $as_echo_n "checking for $ac_word... " >&6; }
13416 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 if test -n "$WINDRES_FOR_TARGET"; then
13420 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13421 else
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $PATH
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13429 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13431 break 2
13433 done
13434 done
13435 IFS=$as_save_IFS
13439 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13440 if test -n "$WINDRES_FOR_TARGET"; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13442 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13443 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13450 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13451 done
13454 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13455 set dummy windres
13456 if test $build = $target ; then
13457 WINDRES_FOR_TARGET="$2"
13458 else
13459 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13461 else
13462 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13465 else
13466 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13472 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13473 if test -n "$with_build_time_tools"; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13475 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13476 if test -x $with_build_time_tools/windmc; then
13477 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13478 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13480 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13485 elif test $build != $host && test $have_gcc_for_target = yes; then
13486 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13487 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13488 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13491 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13492 # Extract the first word of "windmc", so it can be a program name with args.
13493 set dummy windmc; ac_word=$2
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 $as_echo_n "checking for $ac_word... " >&6; }
13496 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13497 $as_echo_n "(cached) " >&6
13498 else
13499 case $WINDMC_FOR_TARGET in
13500 [\\/]* | ?:[\\/]*)
13501 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $gcc_cv_tool_dirs
13507 IFS=$as_save_IFS
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13511 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513 break 2
13515 done
13516 done
13517 IFS=$as_save_IFS
13520 esac
13522 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13523 if test -n "$WINDMC_FOR_TARGET"; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13525 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13526 else
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528 $as_echo "no" >&6; }
13533 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13536 if test -n "$WINDMC_FOR_TARGET"; then
13537 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13538 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13539 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13542 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13543 for ncn_progname in windmc; do
13544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13545 set dummy ${ncn_progname}; ac_word=$2
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13547 $as_echo_n "checking for $ac_word... " >&6; }
13548 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 if test -n "$WINDMC_FOR_TARGET"; then
13552 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13553 else
13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555 for as_dir in $PATH
13557 IFS=$as_save_IFS
13558 test -z "$as_dir" && as_dir=.
13559 for ac_exec_ext in '' $ac_executable_extensions; do
13560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13561 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13563 break 2
13565 done
13566 done
13567 IFS=$as_save_IFS
13571 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13572 if test -n "$WINDMC_FOR_TARGET"; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13574 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13575 else
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13581 done
13584 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13585 for ncn_progname in windmc; do
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13587 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13588 if test -x $with_build_time_tools/${ncn_progname}; then
13589 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591 $as_echo "yes" >&6; }
13592 break
13593 else
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13597 done
13600 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13601 for ncn_progname in windmc; do
13602 if test -n "$ncn_target_tool_prefix"; then
13603 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13604 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606 $as_echo_n "checking for $ac_word... " >&6; }
13607 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 if test -n "$WINDMC_FOR_TARGET"; then
13611 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13612 else
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13620 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13624 done
13625 done
13626 IFS=$as_save_IFS
13630 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13631 if test -n "$WINDMC_FOR_TARGET"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13633 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13641 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13643 set dummy ${ncn_progname}; ac_word=$2
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645 $as_echo_n "checking for $ac_word... " >&6; }
13646 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 if test -n "$WINDMC_FOR_TARGET"; then
13650 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13651 else
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13655 IFS=$as_save_IFS
13656 test -z "$as_dir" && as_dir=.
13657 for ac_exec_ext in '' $ac_executable_extensions; do
13658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13659 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661 break 2
13663 done
13664 done
13665 IFS=$as_save_IFS
13669 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13670 if test -n "$WINDMC_FOR_TARGET"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13672 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13673 else
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13680 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13681 done
13684 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13685 set dummy windmc
13686 if test $build = $target ; then
13687 WINDMC_FOR_TARGET="$2"
13688 else
13689 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13691 else
13692 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13695 else
13696 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13700 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13703 $as_echo_n "checking where to find the target ar... " >&6; }
13704 if test "x${build}" != "x${host}" ; then
13705 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13706 # We already found the complete path
13707 ac_dir=`dirname $AR_FOR_TARGET`
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13709 $as_echo "pre-installed in $ac_dir" >&6; }
13710 else
13711 # Canadian cross, just use what we found
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13713 $as_echo "pre-installed" >&6; }
13715 else
13716 ok=yes
13717 case " ${configdirs} " in
13718 *" binutils "*) ;;
13719 *) ok=no ;;
13720 esac
13722 if test $ok = yes; then
13723 # An in-tree tool is available and we can use it
13724 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13726 $as_echo "just compiled" >&6; }
13727 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13728 # We already found the complete path
13729 ac_dir=`dirname $AR_FOR_TARGET`
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13731 $as_echo "pre-installed in $ac_dir" >&6; }
13732 elif test "x$target" = "x$host"; then
13733 # We can use an host tool
13734 AR_FOR_TARGET='$(AR)'
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13736 $as_echo "host tool" >&6; }
13737 else
13738 # We need a cross tool
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13740 $as_echo "pre-installed" >&6; }
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13745 $as_echo_n "checking where to find the target as... " >&6; }
13746 if test "x${build}" != "x${host}" ; then
13747 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13748 # We already found the complete path
13749 ac_dir=`dirname $AS_FOR_TARGET`
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13751 $as_echo "pre-installed in $ac_dir" >&6; }
13752 else
13753 # Canadian cross, just use what we found
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13755 $as_echo "pre-installed" >&6; }
13757 else
13758 ok=yes
13759 case " ${configdirs} " in
13760 *" gas "*) ;;
13761 *) ok=no ;;
13762 esac
13764 if test $ok = yes; then
13765 # An in-tree tool is available and we can use it
13766 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13768 $as_echo "just compiled" >&6; }
13769 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13770 # We already found the complete path
13771 ac_dir=`dirname $AS_FOR_TARGET`
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13773 $as_echo "pre-installed in $ac_dir" >&6; }
13774 elif test "x$target" = "x$host"; then
13775 # We can use an host tool
13776 AS_FOR_TARGET='$(AS)'
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13778 $as_echo "host tool" >&6; }
13779 else
13780 # We need a cross tool
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13782 $as_echo "pre-installed" >&6; }
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13787 $as_echo_n "checking where to find the target cc... " >&6; }
13788 if test "x${build}" != "x${host}" ; then
13789 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
13791 ac_dir=`dirname $CC_FOR_TARGET`
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793 $as_echo "pre-installed in $ac_dir" >&6; }
13794 else
13795 # Canadian cross, just use what we found
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13797 $as_echo "pre-installed" >&6; }
13799 else
13800 ok=yes
13801 case " ${configdirs} " in
13802 *" gcc "*) ;;
13803 *) ok=no ;;
13804 esac
13806 if test $ok = yes; then
13807 # An in-tree tool is available and we can use it
13808 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13810 $as_echo "just compiled" >&6; }
13811 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13812 # We already found the complete path
13813 ac_dir=`dirname $CC_FOR_TARGET`
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13815 $as_echo "pre-installed in $ac_dir" >&6; }
13816 elif test "x$target" = "x$host"; then
13817 # We can use an host tool
13818 CC_FOR_TARGET='$(CC)'
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13820 $as_echo "host tool" >&6; }
13821 else
13822 # We need a cross tool
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13824 $as_echo "pre-installed" >&6; }
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13829 $as_echo_n "checking where to find the target c++... " >&6; }
13830 if test "x${build}" != "x${host}" ; then
13831 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13832 # We already found the complete path
13833 ac_dir=`dirname $CXX_FOR_TARGET`
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13835 $as_echo "pre-installed in $ac_dir" >&6; }
13836 else
13837 # Canadian cross, just use what we found
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13839 $as_echo "pre-installed" >&6; }
13841 else
13842 ok=yes
13843 case " ${configdirs} " in
13844 *" gcc "*) ;;
13845 *) ok=no ;;
13846 esac
13847 case ,${enable_languages}, in
13848 *,c++,*) ;;
13849 *) ok=no ;;
13850 esac
13851 if test $ok = yes; then
13852 # An in-tree tool is available and we can use it
13853 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'
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13855 $as_echo "just compiled" >&6; }
13856 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13857 # We already found the complete path
13858 ac_dir=`dirname $CXX_FOR_TARGET`
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13860 $as_echo "pre-installed in $ac_dir" >&6; }
13861 elif test "x$target" = "x$host"; then
13862 # We can use an host tool
13863 CXX_FOR_TARGET='$(CXX)'
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13865 $as_echo "host tool" >&6; }
13866 else
13867 # We need a cross tool
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13869 $as_echo "pre-installed" >&6; }
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13874 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13875 if test "x${build}" != "x${host}" ; then
13876 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13877 # We already found the complete path
13878 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13880 $as_echo "pre-installed in $ac_dir" >&6; }
13881 else
13882 # Canadian cross, just use what we found
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13884 $as_echo "pre-installed" >&6; }
13886 else
13887 ok=yes
13888 case " ${configdirs} " in
13889 *" gcc "*) ;;
13890 *) ok=no ;;
13891 esac
13892 case ,${enable_languages}, in
13893 *,c++,*) ;;
13894 *) ok=no ;;
13895 esac
13896 if test $ok = yes; then
13897 # An in-tree tool is available and we can use it
13898 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'
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13900 $as_echo "just compiled" >&6; }
13901 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13902 # We already found the complete path
13903 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13905 $as_echo "pre-installed in $ac_dir" >&6; }
13906 elif test "x$target" = "x$host"; then
13907 # We can use an host tool
13908 RAW_CXX_FOR_TARGET='$(CXX)'
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13910 $as_echo "host tool" >&6; }
13911 else
13912 # We need a cross tool
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13914 $as_echo "pre-installed" >&6; }
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13919 $as_echo_n "checking where to find the target dlltool... " >&6; }
13920 if test "x${build}" != "x${host}" ; then
13921 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13922 # We already found the complete path
13923 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13925 $as_echo "pre-installed in $ac_dir" >&6; }
13926 else
13927 # Canadian cross, just use what we found
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13929 $as_echo "pre-installed" >&6; }
13931 else
13932 ok=yes
13933 case " ${configdirs} " in
13934 *" binutils "*) ;;
13935 *) ok=no ;;
13936 esac
13938 if test $ok = yes; then
13939 # An in-tree tool is available and we can use it
13940 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13942 $as_echo "just compiled" >&6; }
13943 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13944 # We already found the complete path
13945 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13947 $as_echo "pre-installed in $ac_dir" >&6; }
13948 elif test "x$target" = "x$host"; then
13949 # We can use an host tool
13950 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13952 $as_echo "host tool" >&6; }
13953 else
13954 # We need a cross tool
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13956 $as_echo "pre-installed" >&6; }
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13961 $as_echo_n "checking where to find the target gcc... " >&6; }
13962 if test "x${build}" != "x${host}" ; then
13963 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
13965 ac_dir=`dirname $GCC_FOR_TARGET`
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967 $as_echo "pre-installed in $ac_dir" >&6; }
13968 else
13969 # Canadian cross, just use what we found
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13971 $as_echo "pre-installed" >&6; }
13973 else
13974 ok=yes
13975 case " ${configdirs} " in
13976 *" gcc "*) ;;
13977 *) ok=no ;;
13978 esac
13980 if test $ok = yes; then
13981 # An in-tree tool is available and we can use it
13982 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13984 $as_echo "just compiled" >&6; }
13985 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13986 # We already found the complete path
13987 ac_dir=`dirname $GCC_FOR_TARGET`
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13989 $as_echo "pre-installed in $ac_dir" >&6; }
13990 elif test "x$target" = "x$host"; then
13991 # We can use an host tool
13992 GCC_FOR_TARGET='$()'
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13994 $as_echo "host tool" >&6; }
13995 else
13996 # We need a cross tool
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13998 $as_echo "pre-installed" >&6; }
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14003 $as_echo_n "checking where to find the target gfortran... " >&6; }
14004 if test "x${build}" != "x${host}" ; then
14005 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14006 # We already found the complete path
14007 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14009 $as_echo "pre-installed in $ac_dir" >&6; }
14010 else
14011 # Canadian cross, just use what we found
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14013 $as_echo "pre-installed" >&6; }
14015 else
14016 ok=yes
14017 case " ${configdirs} " in
14018 *" gcc "*) ;;
14019 *) ok=no ;;
14020 esac
14021 case ,${enable_languages}, in
14022 *,fortran,*) ;;
14023 *) ok=no ;;
14024 esac
14025 if test $ok = yes; then
14026 # An in-tree tool is available and we can use it
14027 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14029 $as_echo "just compiled" >&6; }
14030 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14031 # We already found the complete path
14032 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14034 $as_echo "pre-installed in $ac_dir" >&6; }
14035 elif test "x$target" = "x$host"; then
14036 # We can use an host tool
14037 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14039 $as_echo "host tool" >&6; }
14040 else
14041 # We need a cross tool
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14043 $as_echo "pre-installed" >&6; }
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14048 $as_echo_n "checking where to find the target gccgo... " >&6; }
14049 if test "x${build}" != "x${host}" ; then
14050 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14051 # We already found the complete path
14052 ac_dir=`dirname $GOC_FOR_TARGET`
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14054 $as_echo "pre-installed in $ac_dir" >&6; }
14055 else
14056 # Canadian cross, just use what we found
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14058 $as_echo "pre-installed" >&6; }
14060 else
14061 ok=yes
14062 case " ${configdirs} " in
14063 *" gcc "*) ;;
14064 *) ok=no ;;
14065 esac
14066 case ,${enable_languages}, in
14067 *,go,*) ;;
14068 *) ok=no ;;
14069 esac
14070 if test $ok = yes; then
14071 # An in-tree tool is available and we can use it
14072 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14074 $as_echo "just compiled" >&6; }
14075 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14076 # We already found the complete path
14077 ac_dir=`dirname $GOC_FOR_TARGET`
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14079 $as_echo "pre-installed in $ac_dir" >&6; }
14080 elif test "x$target" = "x$host"; then
14081 # We can use an host tool
14082 GOC_FOR_TARGET='$(GOC)'
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14084 $as_echo "host tool" >&6; }
14085 else
14086 # We need a cross tool
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14088 $as_echo "pre-installed" >&6; }
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14093 $as_echo_n "checking where to find the target ld... " >&6; }
14094 if test "x${build}" != "x${host}" ; then
14095 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14096 # We already found the complete path
14097 ac_dir=`dirname $LD_FOR_TARGET`
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099 $as_echo "pre-installed in $ac_dir" >&6; }
14100 else
14101 # Canadian cross, just use what we found
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14103 $as_echo "pre-installed" >&6; }
14105 else
14106 ok=yes
14107 case " ${configdirs} " in
14108 *" ld "*) ;;
14109 *) ok=no ;;
14110 esac
14112 if test $ok = yes; then
14113 # An in-tree tool is available and we can use it
14114 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14116 $as_echo "just compiled" >&6; }
14117 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14118 # We already found the complete path
14119 ac_dir=`dirname $LD_FOR_TARGET`
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14121 $as_echo "pre-installed in $ac_dir" >&6; }
14122 elif test "x$target" = "x$host"; then
14123 # We can use an host tool
14124 LD_FOR_TARGET='$(LD)'
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14126 $as_echo "host tool" >&6; }
14127 else
14128 # We need a cross tool
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14130 $as_echo "pre-installed" >&6; }
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14135 $as_echo_n "checking where to find the target lipo... " >&6; }
14136 if test "x${build}" != "x${host}" ; then
14137 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14138 # We already found the complete path
14139 ac_dir=`dirname $LIPO_FOR_TARGET`
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14141 $as_echo "pre-installed in $ac_dir" >&6; }
14142 else
14143 # Canadian cross, just use what we found
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14145 $as_echo "pre-installed" >&6; }
14147 else
14148 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14149 # We already found the complete path
14150 ac_dir=`dirname $LIPO_FOR_TARGET`
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14152 $as_echo "pre-installed in $ac_dir" >&6; }
14153 elif test "x$target" = "x$host"; then
14154 # We can use an host tool
14155 LIPO_FOR_TARGET='$(LIPO)'
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14157 $as_echo "host tool" >&6; }
14158 else
14159 # We need a cross tool
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14161 $as_echo "pre-installed" >&6; }
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14166 $as_echo_n "checking where to find the target nm... " >&6; }
14167 if test "x${build}" != "x${host}" ; then
14168 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14169 # We already found the complete path
14170 ac_dir=`dirname $NM_FOR_TARGET`
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14172 $as_echo "pre-installed in $ac_dir" >&6; }
14173 else
14174 # Canadian cross, just use what we found
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14176 $as_echo "pre-installed" >&6; }
14178 else
14179 ok=yes
14180 case " ${configdirs} " in
14181 *" binutils "*) ;;
14182 *) ok=no ;;
14183 esac
14185 if test $ok = yes; then
14186 # An in-tree tool is available and we can use it
14187 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14189 $as_echo "just compiled" >&6; }
14190 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14191 # We already found the complete path
14192 ac_dir=`dirname $NM_FOR_TARGET`
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14194 $as_echo "pre-installed in $ac_dir" >&6; }
14195 elif test "x$target" = "x$host"; then
14196 # We can use an host tool
14197 NM_FOR_TARGET='$(NM)'
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14199 $as_echo "host tool" >&6; }
14200 else
14201 # We need a cross tool
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14203 $as_echo "pre-installed" >&6; }
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14208 $as_echo_n "checking where to find the target objcopy... " >&6; }
14209 if test "x${build}" != "x${host}" ; then
14210 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14211 # We already found the complete path
14212 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14214 $as_echo "pre-installed in $ac_dir" >&6; }
14215 else
14216 # Canadian cross, just use what we found
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14218 $as_echo "pre-installed" >&6; }
14220 else
14221 ok=yes
14222 case " ${configdirs} " in
14223 *" binutils "*) ;;
14224 *) ok=no ;;
14225 esac
14227 if test $ok = yes; then
14228 # An in-tree tool is available and we can use it
14229 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14231 $as_echo "just compiled" >&6; }
14232 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14233 # We already found the complete path
14234 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14236 $as_echo "pre-installed in $ac_dir" >&6; }
14237 elif test "x$target" = "x$host"; then
14238 # We can use an host tool
14239 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14241 $as_echo "host tool" >&6; }
14242 else
14243 # We need a cross tool
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14245 $as_echo "pre-installed" >&6; }
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14250 $as_echo_n "checking where to find the target objdump... " >&6; }
14251 if test "x${build}" != "x${host}" ; then
14252 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14253 # We already found the complete path
14254 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14256 $as_echo "pre-installed in $ac_dir" >&6; }
14257 else
14258 # Canadian cross, just use what we found
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14260 $as_echo "pre-installed" >&6; }
14262 else
14263 ok=yes
14264 case " ${configdirs} " in
14265 *" binutils "*) ;;
14266 *) ok=no ;;
14267 esac
14269 if test $ok = yes; then
14270 # An in-tree tool is available and we can use it
14271 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14273 $as_echo "just compiled" >&6; }
14274 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14275 # We already found the complete path
14276 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14278 $as_echo "pre-installed in $ac_dir" >&6; }
14279 elif test "x$target" = "x$host"; then
14280 # We can use an host tool
14281 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14283 $as_echo "host tool" >&6; }
14284 else
14285 # We need a cross tool
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14287 $as_echo "pre-installed" >&6; }
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14292 $as_echo_n "checking where to find the target ranlib... " >&6; }
14293 if test "x${build}" != "x${host}" ; then
14294 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14295 # We already found the complete path
14296 ac_dir=`dirname $RANLIB_FOR_TARGET`
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14298 $as_echo "pre-installed in $ac_dir" >&6; }
14299 else
14300 # Canadian cross, just use what we found
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14302 $as_echo "pre-installed" >&6; }
14304 else
14305 ok=yes
14306 case " ${configdirs} " in
14307 *" binutils "*) ;;
14308 *) ok=no ;;
14309 esac
14311 if test $ok = yes; then
14312 # An in-tree tool is available and we can use it
14313 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14315 $as_echo "just compiled" >&6; }
14316 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14317 # We already found the complete path
14318 ac_dir=`dirname $RANLIB_FOR_TARGET`
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320 $as_echo "pre-installed in $ac_dir" >&6; }
14321 elif test "x$target" = "x$host"; then
14322 # We can use an host tool
14323 RANLIB_FOR_TARGET='$(RANLIB)'
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14325 $as_echo "host tool" >&6; }
14326 else
14327 # We need a cross tool
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14329 $as_echo "pre-installed" >&6; }
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14334 $as_echo_n "checking where to find the target readelf... " >&6; }
14335 if test "x${build}" != "x${host}" ; then
14336 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14337 # We already found the complete path
14338 ac_dir=`dirname $READELF_FOR_TARGET`
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14340 $as_echo "pre-installed in $ac_dir" >&6; }
14341 else
14342 # Canadian cross, just use what we found
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14344 $as_echo "pre-installed" >&6; }
14346 else
14347 ok=yes
14348 case " ${configdirs} " in
14349 *" binutils "*) ;;
14350 *) ok=no ;;
14351 esac
14353 if test $ok = yes; then
14354 # An in-tree tool is available and we can use it
14355 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14357 $as_echo "just compiled" >&6; }
14358 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14359 # We already found the complete path
14360 ac_dir=`dirname $READELF_FOR_TARGET`
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362 $as_echo "pre-installed in $ac_dir" >&6; }
14363 elif test "x$target" = "x$host"; then
14364 # We can use an host tool
14365 READELF_FOR_TARGET='$(READELF)'
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14367 $as_echo "host tool" >&6; }
14368 else
14369 # We need a cross tool
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14371 $as_echo "pre-installed" >&6; }
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14376 $as_echo_n "checking where to find the target strip... " >&6; }
14377 if test "x${build}" != "x${host}" ; then
14378 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14379 # We already found the complete path
14380 ac_dir=`dirname $STRIP_FOR_TARGET`
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14382 $as_echo "pre-installed in $ac_dir" >&6; }
14383 else
14384 # Canadian cross, just use what we found
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14386 $as_echo "pre-installed" >&6; }
14388 else
14389 ok=yes
14390 case " ${configdirs} " in
14391 *" binutils "*) ;;
14392 *) ok=no ;;
14393 esac
14395 if test $ok = yes; then
14396 # An in-tree tool is available and we can use it
14397 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14399 $as_echo "just compiled" >&6; }
14400 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14401 # We already found the complete path
14402 ac_dir=`dirname $STRIP_FOR_TARGET`
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14404 $as_echo "pre-installed in $ac_dir" >&6; }
14405 elif test "x$target" = "x$host"; then
14406 # We can use an host tool
14407 STRIP_FOR_TARGET='$(STRIP)'
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14409 $as_echo "host tool" >&6; }
14410 else
14411 # We need a cross tool
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14413 $as_echo "pre-installed" >&6; }
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14418 $as_echo_n "checking where to find the target windres... " >&6; }
14419 if test "x${build}" != "x${host}" ; then
14420 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14421 # We already found the complete path
14422 ac_dir=`dirname $WINDRES_FOR_TARGET`
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14424 $as_echo "pre-installed in $ac_dir" >&6; }
14425 else
14426 # Canadian cross, just use what we found
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14428 $as_echo "pre-installed" >&6; }
14430 else
14431 ok=yes
14432 case " ${configdirs} " in
14433 *" binutils "*) ;;
14434 *) ok=no ;;
14435 esac
14437 if test $ok = yes; then
14438 # An in-tree tool is available and we can use it
14439 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14441 $as_echo "just compiled" >&6; }
14442 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14443 # We already found the complete path
14444 ac_dir=`dirname $WINDRES_FOR_TARGET`
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14446 $as_echo "pre-installed in $ac_dir" >&6; }
14447 elif test "x$target" = "x$host"; then
14448 # We can use an host tool
14449 WINDRES_FOR_TARGET='$(WINDRES)'
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14451 $as_echo "host tool" >&6; }
14452 else
14453 # We need a cross tool
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14455 $as_echo "pre-installed" >&6; }
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14460 $as_echo_n "checking where to find the target windmc... " >&6; }
14461 if test "x${build}" != "x${host}" ; then
14462 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14463 # We already found the complete path
14464 ac_dir=`dirname $WINDMC_FOR_TARGET`
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14466 $as_echo "pre-installed in $ac_dir" >&6; }
14467 else
14468 # Canadian cross, just use what we found
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14470 $as_echo "pre-installed" >&6; }
14472 else
14473 ok=yes
14474 case " ${configdirs} " in
14475 *" binutils "*) ;;
14476 *) ok=no ;;
14477 esac
14479 if test $ok = yes; then
14480 # An in-tree tool is available and we can use it
14481 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14483 $as_echo "just compiled" >&6; }
14484 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14485 # We already found the complete path
14486 ac_dir=`dirname $WINDMC_FOR_TARGET`
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14488 $as_echo "pre-installed in $ac_dir" >&6; }
14489 elif test "x$target" = "x$host"; then
14490 # We can use an host tool
14491 WINDMC_FOR_TARGET='$(WINDMC)'
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14493 $as_echo "host tool" >&6; }
14494 else
14495 # We need a cross tool
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14497 $as_echo "pre-installed" >&6; }
14505 # Certain tools may need extra flags.
14506 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14507 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14508 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14510 # When building target libraries, except in a Canadian cross, we use
14511 # the same toolchain as the compiler we just built.
14512 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14513 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14514 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14515 if test $host = $build; then
14516 case " $configdirs " in
14517 *" gcc "*)
14518 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14519 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14520 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14522 esac
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14530 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14531 # Check whether --enable-maintainer-mode was given.
14532 if test "${enable_maintainer_mode+set}" = set; then :
14533 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14534 else
14535 USE_MAINTAINER_MODE=no
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14539 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14542 if test "$USE_MAINTAINER_MODE" = yes; then
14543 MAINTAINER_MODE_TRUE=
14544 MAINTAINER_MODE_FALSE='#'
14545 else
14546 MAINTAINER_MODE_TRUE='#'
14547 MAINTAINER_MODE_FALSE=
14549 MAINT=$MAINTAINER_MODE_TRUE
14551 # ---------------------
14552 # GCC bootstrap support
14553 # ---------------------
14555 # Stage specific cflags for build.
14556 stage1_cflags="-g"
14557 case $build in
14558 vax-*-*)
14559 case ${GCC} in
14560 yes) stage1_cflags="-g -Wa,-J" ;;
14561 *) stage1_cflags="-g -J" ;;
14562 esac ;;
14563 esac
14567 # Enable --enable-checking in stage1 of the compiler.
14568 # Check whether --enable-stage1-checking was given.
14569 if test "${enable_stage1_checking+set}" = set; then :
14570 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14571 else
14572 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14573 # For --disable-checking or implicit --enable-checking=release, avoid
14574 # setting --enable-checking=gc in the default stage1 checking for LTO
14575 # bootstraps. See PR62077.
14576 case $BUILD_CONFIG in
14577 *lto*)
14578 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14580 stage1_checking=--enable-checking=yes,types;;
14581 esac
14582 if test "x$enable_checking" = x && \
14583 test -d ${srcdir}/gcc && \
14584 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14585 stage1_checking=--enable-checking=yes,types,extra
14587 else
14588 stage1_checking=--enable-checking=$enable_checking,types
14594 # Enable -Werror in bootstrap stage2 and later.
14595 # Check whether --enable-werror was given.
14596 if test "${enable_werror+set}" = set; then :
14597 enableval=$enable_werror;
14598 else
14599 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14600 enable_werror=yes
14601 else
14602 enable_werror=no
14606 case ${enable_werror} in
14607 yes) stage2_werror_flag="--enable-werror-always" ;;
14608 *) stage2_werror_flag="" ;;
14609 esac
14612 # Enable --enable-host-shared.
14613 # Check whether --enable-host-shared was given.
14614 if test "${enable_host_shared+set}" = set; then :
14615 enableval=$enable_host_shared; host_shared=$enableval
14616 else
14617 host_shared=no
14622 # PR jit/64780: Require the user to explicitly specify
14623 # --enable-host-shared if the jit is enabled, hinting
14624 # that they might want to do a separate configure/build of
14625 # the jit, to avoid users from slowing down the rest of the
14626 # compiler by enabling the jit.
14627 if test ${host_shared} = "no" ; then
14628 case "${enable_languages}" in
14629 *jit*)
14630 as_fn_error "
14631 Enabling language \"jit\" requires --enable-host-shared.
14633 --enable-host-shared typically slows the rest of the compiler down by
14634 a few %, so you must explicitly enable it.
14636 If you want to build both the jit and the regular compiler, it is often
14637 best to do this via two separate configure/builds, in separate
14638 directories, to avoid imposing the performance cost of
14639 --enable-host-shared on the regular compiler." "$LINENO" 5
14643 esac
14646 # Specify what files to not compare during bootstrap.
14648 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14649 case "$target" in
14650 hppa*64*-*-hpux*) ;;
14651 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14652 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14653 esac
14656 ac_config_files="$ac_config_files Makefile"
14658 cat >confcache <<\_ACEOF
14659 # This file is a shell script that caches the results of configure
14660 # tests run on this system so they can be shared between configure
14661 # scripts and configure runs, see configure's option --config-cache.
14662 # It is not useful on other systems. If it contains results you don't
14663 # want to keep, you may remove or edit it.
14665 # config.status only pays attention to the cache file if you give it
14666 # the --recheck option to rerun configure.
14668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14670 # following values.
14672 _ACEOF
14674 # The following way of writing the cache mishandles newlines in values,
14675 # but we know of no workaround that is simple, portable, and efficient.
14676 # So, we kill variables containing newlines.
14677 # Ultrix sh set writes to stderr and can't be redirected directly,
14678 # and sets the high bit in the cache file unless we assign to the vars.
14680 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14681 eval ac_val=\$$ac_var
14682 case $ac_val in #(
14683 *${as_nl}*)
14684 case $ac_var in #(
14685 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14686 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14687 esac
14688 case $ac_var in #(
14689 _ | IFS | as_nl) ;; #(
14690 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14691 *) { eval $ac_var=; unset $ac_var;} ;;
14692 esac ;;
14693 esac
14694 done
14696 (set) 2>&1 |
14697 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14698 *${as_nl}ac_space=\ *)
14699 # `set' does not quote correctly, so add quotes: double-quote
14700 # substitution turns \\\\ into \\, and sed turns \\ into \.
14701 sed -n \
14702 "s/'/'\\\\''/g;
14703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14704 ;; #(
14706 # `set' quotes correctly as required by POSIX, so do not add quotes.
14707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14709 esac |
14710 sort
14712 sed '
14713 /^ac_cv_env_/b end
14714 t clear
14715 :clear
14716 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14717 t end
14718 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14719 :end' >>confcache
14720 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14721 if test -w "$cache_file"; then
14722 test "x$cache_file" != "x/dev/null" &&
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14724 $as_echo "$as_me: updating cache $cache_file" >&6;}
14725 cat confcache >$cache_file
14726 else
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14728 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14731 rm -f confcache
14733 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14734 # Let make expand exec_prefix.
14735 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14737 # Transform confdefs.h into DEFS.
14738 # Protect against shell expansion while executing Makefile rules.
14739 # Protect against Makefile macro expansion.
14741 # If the first sed substitution is executed (which looks for macros that
14742 # take arguments), then branch to the quote section. Otherwise,
14743 # look for a macro that doesn't take arguments.
14744 ac_script='
14745 :mline
14746 /\\$/{
14748 s,\\\n,,
14749 b mline
14751 t clear
14752 :clear
14753 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14754 t quote
14755 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14756 t quote
14757 b any
14758 :quote
14759 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14760 s/\[/\\&/g
14761 s/\]/\\&/g
14762 s/\$/$$/g
14764 :any
14767 s/^\n//
14768 s/\n/ /g
14772 DEFS=`sed -n "$ac_script" confdefs.h`
14775 ac_libobjs=
14776 ac_ltlibobjs=
14777 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14778 # 1. Remove the extension, and $U if already installed.
14779 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14780 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14781 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14782 # will be set to the directory where LIBOBJS objects are built.
14783 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14784 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14785 done
14786 LIBOBJS=$ac_libobjs
14788 LTLIBOBJS=$ac_ltlibobjs
14792 : ${CONFIG_STATUS=./config.status}
14793 ac_write_fail=0
14794 ac_clean_files_save=$ac_clean_files
14795 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14797 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14798 as_write_fail=0
14799 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14800 #! $SHELL
14801 # Generated by $as_me.
14802 # Run this file to recreate the current configuration.
14803 # Compiler output produced by configure, useful for debugging
14804 # configure, is in config.log if it exists.
14806 debug=false
14807 ac_cs_recheck=false
14808 ac_cs_silent=false
14810 SHELL=\${CONFIG_SHELL-$SHELL}
14811 export SHELL
14812 _ASEOF
14813 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14814 ## -------------------- ##
14815 ## M4sh Initialization. ##
14816 ## -------------------- ##
14818 # Be more Bourne compatible
14819 DUALCASE=1; export DUALCASE # for MKS sh
14820 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14821 emulate sh
14822 NULLCMD=:
14823 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14824 # is contrary to our usage. Disable this feature.
14825 alias -g '${1+"$@"}'='"$@"'
14826 setopt NO_GLOB_SUBST
14827 else
14828 case `(set -o) 2>/dev/null` in #(
14829 *posix*) :
14830 set -o posix ;; #(
14831 *) :
14833 esac
14837 as_nl='
14839 export as_nl
14840 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14841 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14842 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14843 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14844 # Prefer a ksh shell builtin over an external printf program on Solaris,
14845 # but without wasting forks for bash or zsh.
14846 if test -z "$BASH_VERSION$ZSH_VERSION" \
14847 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14848 as_echo='print -r --'
14849 as_echo_n='print -rn --'
14850 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14851 as_echo='printf %s\n'
14852 as_echo_n='printf %s'
14853 else
14854 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14855 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14856 as_echo_n='/usr/ucb/echo -n'
14857 else
14858 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14859 as_echo_n_body='eval
14860 arg=$1;
14861 case $arg in #(
14862 *"$as_nl"*)
14863 expr "X$arg" : "X\\(.*\\)$as_nl";
14864 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14865 esac;
14866 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14868 export as_echo_n_body
14869 as_echo_n='sh -c $as_echo_n_body as_echo'
14871 export as_echo_body
14872 as_echo='sh -c $as_echo_body as_echo'
14875 # The user is always right.
14876 if test "${PATH_SEPARATOR+set}" != set; then
14877 PATH_SEPARATOR=:
14878 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14879 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14880 PATH_SEPARATOR=';'
14885 # IFS
14886 # We need space, tab and new line, in precisely that order. Quoting is
14887 # there to prevent editors from complaining about space-tab.
14888 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14889 # splitting by setting IFS to empty value.)
14890 IFS=" "" $as_nl"
14892 # Find who we are. Look in the path if we contain no directory separator.
14893 case $0 in #((
14894 *[\\/]* ) as_myself=$0 ;;
14895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14896 for as_dir in $PATH
14898 IFS=$as_save_IFS
14899 test -z "$as_dir" && as_dir=.
14900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14901 done
14902 IFS=$as_save_IFS
14905 esac
14906 # We did not find ourselves, most probably we were run as `sh COMMAND'
14907 # in which case we are not to be found in the path.
14908 if test "x$as_myself" = x; then
14909 as_myself=$0
14911 if test ! -f "$as_myself"; then
14912 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14913 exit 1
14916 # Unset variables that we do not need and which cause bugs (e.g. in
14917 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14918 # suppresses any "Segmentation fault" message there. '((' could
14919 # trigger a bug in pdksh 5.2.14.
14920 for as_var in BASH_ENV ENV MAIL MAILPATH
14921 do eval test x\${$as_var+set} = xset \
14922 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14923 done
14924 PS1='$ '
14925 PS2='> '
14926 PS4='+ '
14928 # NLS nuisances.
14929 LC_ALL=C
14930 export LC_ALL
14931 LANGUAGE=C
14932 export LANGUAGE
14934 # CDPATH.
14935 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14938 # as_fn_error ERROR [LINENO LOG_FD]
14939 # ---------------------------------
14940 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14941 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14942 # script with status $?, using 1 if that was 0.
14943 as_fn_error ()
14945 as_status=$?; test $as_status -eq 0 && as_status=1
14946 if test "$3"; then
14947 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14948 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14950 $as_echo "$as_me: error: $1" >&2
14951 as_fn_exit $as_status
14952 } # as_fn_error
14955 # as_fn_set_status STATUS
14956 # -----------------------
14957 # Set $? to STATUS, without forking.
14958 as_fn_set_status ()
14960 return $1
14961 } # as_fn_set_status
14963 # as_fn_exit STATUS
14964 # -----------------
14965 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14966 as_fn_exit ()
14968 set +e
14969 as_fn_set_status $1
14970 exit $1
14971 } # as_fn_exit
14973 # as_fn_unset VAR
14974 # ---------------
14975 # Portably unset VAR.
14976 as_fn_unset ()
14978 { eval $1=; unset $1;}
14980 as_unset=as_fn_unset
14981 # as_fn_append VAR VALUE
14982 # ----------------------
14983 # Append the text in VALUE to the end of the definition contained in VAR. Take
14984 # advantage of any shell optimizations that allow amortized linear growth over
14985 # repeated appends, instead of the typical quadratic growth present in naive
14986 # implementations.
14987 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14988 eval 'as_fn_append ()
14990 eval $1+=\$2
14992 else
14993 as_fn_append ()
14995 eval $1=\$$1\$2
14997 fi # as_fn_append
14999 # as_fn_arith ARG...
15000 # ------------------
15001 # Perform arithmetic evaluation on the ARGs, and store the result in the
15002 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15003 # must be portable across $(()) and expr.
15004 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15005 eval 'as_fn_arith ()
15007 as_val=$(( $* ))
15009 else
15010 as_fn_arith ()
15012 as_val=`expr "$@" || test $? -eq 1`
15014 fi # as_fn_arith
15017 if expr a : '\(a\)' >/dev/null 2>&1 &&
15018 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15019 as_expr=expr
15020 else
15021 as_expr=false
15024 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15025 as_basename=basename
15026 else
15027 as_basename=false
15030 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15031 as_dirname=dirname
15032 else
15033 as_dirname=false
15036 as_me=`$as_basename -- "$0" ||
15037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15038 X"$0" : 'X\(//\)$' \| \
15039 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15040 $as_echo X/"$0" |
15041 sed '/^.*\/\([^/][^/]*\)\/*$/{
15042 s//\1/
15045 /^X\/\(\/\/\)$/{
15046 s//\1/
15049 /^X\/\(\/\).*/{
15050 s//\1/
15053 s/.*/./; q'`
15055 # Avoid depending upon Character Ranges.
15056 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15057 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15058 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15059 as_cr_digits='0123456789'
15060 as_cr_alnum=$as_cr_Letters$as_cr_digits
15062 ECHO_C= ECHO_N= ECHO_T=
15063 case `echo -n x` in #(((((
15064 -n*)
15065 case `echo 'xy\c'` in
15066 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15067 xy) ECHO_C='\c';;
15068 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15069 ECHO_T=' ';;
15070 esac;;
15072 ECHO_N='-n';;
15073 esac
15075 rm -f conf$$ conf$$.exe conf$$.file
15076 if test -d conf$$.dir; then
15077 rm -f conf$$.dir/conf$$.file
15078 else
15079 rm -f conf$$.dir
15080 mkdir conf$$.dir 2>/dev/null
15082 if (echo >conf$$.file) 2>/dev/null; then
15083 if ln -s conf$$.file conf$$ 2>/dev/null; then
15084 as_ln_s='ln -s'
15085 # ... but there are two gotchas:
15086 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15087 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15088 # In both cases, we have to default to `cp -p'.
15089 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15090 as_ln_s='cp -p'
15091 elif ln conf$$.file conf$$ 2>/dev/null; then
15092 as_ln_s=ln
15093 else
15094 as_ln_s='cp -p'
15096 else
15097 as_ln_s='cp -p'
15099 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15100 rmdir conf$$.dir 2>/dev/null
15103 # as_fn_mkdir_p
15104 # -------------
15105 # Create "$as_dir" as a directory, including parents if necessary.
15106 as_fn_mkdir_p ()
15109 case $as_dir in #(
15110 -*) as_dir=./$as_dir;;
15111 esac
15112 test -d "$as_dir" || eval $as_mkdir_p || {
15113 as_dirs=
15114 while :; do
15115 case $as_dir in #(
15116 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15117 *) as_qdir=$as_dir;;
15118 esac
15119 as_dirs="'$as_qdir' $as_dirs"
15120 as_dir=`$as_dirname -- "$as_dir" ||
15121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15122 X"$as_dir" : 'X\(//\)[^/]' \| \
15123 X"$as_dir" : 'X\(//\)$' \| \
15124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15125 $as_echo X"$as_dir" |
15126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15127 s//\1/
15130 /^X\(\/\/\)[^/].*/{
15131 s//\1/
15134 /^X\(\/\/\)$/{
15135 s//\1/
15138 /^X\(\/\).*/{
15139 s//\1/
15142 s/.*/./; q'`
15143 test -d "$as_dir" && break
15144 done
15145 test -z "$as_dirs" || eval "mkdir $as_dirs"
15146 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15149 } # as_fn_mkdir_p
15150 if mkdir -p . 2>/dev/null; then
15151 as_mkdir_p='mkdir -p "$as_dir"'
15152 else
15153 test -d ./-p && rmdir ./-p
15154 as_mkdir_p=false
15157 if test -x / >/dev/null 2>&1; then
15158 as_test_x='test -x'
15159 else
15160 if ls -dL / >/dev/null 2>&1; then
15161 as_ls_L_option=L
15162 else
15163 as_ls_L_option=
15165 as_test_x='
15166 eval sh -c '\''
15167 if test -d "$1"; then
15168 test -d "$1/.";
15169 else
15170 case $1 in #(
15171 -*)set "./$1";;
15172 esac;
15173 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15174 ???[sx]*):;;*)false;;esac;fi
15175 '\'' sh
15178 as_executable_p=$as_test_x
15180 # Sed expression to map a string onto a valid CPP name.
15181 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15183 # Sed expression to map a string onto a valid variable name.
15184 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15187 exec 6>&1
15188 ## ----------------------------------- ##
15189 ## Main body of $CONFIG_STATUS script. ##
15190 ## ----------------------------------- ##
15191 _ASEOF
15192 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15195 # Save the log message, to keep $0 and so on meaningful, and to
15196 # report actual input values of CONFIG_FILES etc. instead of their
15197 # values after options handling.
15198 ac_log="
15199 This file was extended by $as_me, which was
15200 generated by GNU Autoconf 2.64. Invocation command line was
15202 CONFIG_FILES = $CONFIG_FILES
15203 CONFIG_HEADERS = $CONFIG_HEADERS
15204 CONFIG_LINKS = $CONFIG_LINKS
15205 CONFIG_COMMANDS = $CONFIG_COMMANDS
15206 $ $0 $@
15208 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15211 _ACEOF
15213 case $ac_config_files in *"
15214 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15215 esac
15219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15220 # Files that config.status was made for.
15221 config_files="$ac_config_files"
15223 _ACEOF
15225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15226 ac_cs_usage="\
15227 \`$as_me' instantiates files and other configuration actions
15228 from templates according to the current configuration. Unless the files
15229 and actions are specified as TAGs, all are instantiated by default.
15231 Usage: $0 [OPTION]... [TAG]...
15233 -h, --help print this help, then exit
15234 -V, --version print version number and configuration settings, then exit
15235 -q, --quiet, --silent
15236 do not print progress messages
15237 -d, --debug don't remove temporary files
15238 --recheck update $as_me by reconfiguring in the same conditions
15239 --file=FILE[:TEMPLATE]
15240 instantiate the configuration file FILE
15242 Configuration files:
15243 $config_files
15245 Report bugs to the package provider."
15247 _ACEOF
15248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15249 ac_cs_version="\\
15250 config.status
15251 configured by $0, generated by GNU Autoconf 2.64,
15252 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15254 Copyright (C) 2009 Free Software Foundation, Inc.
15255 This config.status script is free software; the Free Software Foundation
15256 gives unlimited permission to copy, distribute and modify it."
15258 ac_pwd='$ac_pwd'
15259 srcdir='$srcdir'
15260 INSTALL='$INSTALL'
15261 AWK='$AWK'
15262 test -n "\$AWK" || AWK=awk
15263 _ACEOF
15265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15266 # The default lists apply if the user does not specify any file.
15267 ac_need_defaults=:
15268 while test $# != 0
15270 case $1 in
15271 --*=*)
15272 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15273 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15274 ac_shift=:
15277 ac_option=$1
15278 ac_optarg=$2
15279 ac_shift=shift
15281 esac
15283 case $ac_option in
15284 # Handling of the options.
15285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15286 ac_cs_recheck=: ;;
15287 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15288 $as_echo "$ac_cs_version"; exit ;;
15289 --debug | --debu | --deb | --de | --d | -d )
15290 debug=: ;;
15291 --file | --fil | --fi | --f )
15292 $ac_shift
15293 case $ac_optarg in
15294 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15295 esac
15296 as_fn_append CONFIG_FILES " '$ac_optarg'"
15297 ac_need_defaults=false;;
15298 --he | --h | --help | --hel | -h )
15299 $as_echo "$ac_cs_usage"; exit ;;
15300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15301 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15302 ac_cs_silent=: ;;
15304 # This is an error.
15305 -*) as_fn_error "unrecognized option: \`$1'
15306 Try \`$0 --help' for more information." ;;
15308 *) as_fn_append ac_config_targets " $1"
15309 ac_need_defaults=false ;;
15311 esac
15312 shift
15313 done
15315 ac_configure_extra_args=
15317 if $ac_cs_silent; then
15318 exec 6>/dev/null
15319 ac_configure_extra_args="$ac_configure_extra_args --silent"
15322 _ACEOF
15323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15324 if \$ac_cs_recheck; then
15325 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15326 shift
15327 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15328 CONFIG_SHELL='$SHELL'
15329 export CONFIG_SHELL
15330 exec "\$@"
15333 _ACEOF
15334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15335 exec 5>>config.log
15337 echo
15338 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15339 ## Running $as_me. ##
15340 _ASBOX
15341 $as_echo "$ac_log"
15342 } >&5
15344 _ACEOF
15345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15347 # INIT-COMMANDS
15349 extrasub_build="$extrasub_build"
15350 extrasub_host="$extrasub_host"
15351 extrasub_target="$extrasub_target"
15353 _ACEOF
15355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15357 # Handling of arguments.
15358 for ac_config_target in $ac_config_targets
15360 case $ac_config_target in
15361 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15363 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15364 esac
15365 done
15368 # If the user did not use the arguments to specify the items to instantiate,
15369 # then the envvar interface is used. Set only those that are not.
15370 # We use the long form for the default assignment because of an extremely
15371 # bizarre bug on SunOS 4.1.3.
15372 if $ac_need_defaults; then
15373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15376 # Have a temporary directory for convenience. Make it in the build tree
15377 # simply because there is no reason against having it here, and in addition,
15378 # creating and moving files from /tmp can sometimes cause problems.
15379 # Hook for its removal unless debugging.
15380 # Note that there is a small window in which the directory will not be cleaned:
15381 # after its creation but before its name has been assigned to `$tmp'.
15382 $debug ||
15384 tmp=
15385 trap 'exit_status=$?
15386 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15388 trap 'as_fn_exit 1' 1 2 13 15
15390 # Create a (secure) tmp directory for tmp files.
15393 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15394 test -n "$tmp" && test -d "$tmp"
15395 } ||
15397 tmp=./conf$$-$RANDOM
15398 (umask 077 && mkdir "$tmp")
15399 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15401 # Set up the scripts for CONFIG_FILES section.
15402 # No need to generate them if there are no CONFIG_FILES.
15403 # This happens for instance with `./config.status config.h'.
15404 if test -n "$CONFIG_FILES"; then
15406 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15407 ac_cs_awk_getline=:
15408 ac_cs_awk_pipe_init=
15409 ac_cs_awk_read_file='
15410 while ((getline aline < (F[key])) > 0)
15411 print(aline)
15412 close(F[key])'
15413 ac_cs_awk_pipe_fini=
15414 else
15415 ac_cs_awk_getline=false
15416 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15417 ac_cs_awk_read_file='
15418 print "|#_!!_#|"
15419 print "cat " F[key] " &&"
15420 '$ac_cs_awk_pipe_init
15421 # The final `:' finishes the AND list.
15422 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15424 ac_cr=`echo X | tr X '\015'`
15425 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15426 # But we know of no other shell where ac_cr would be empty at this
15427 # point, so we can use a bashism as a fallback.
15428 if test "x$ac_cr" = x; then
15429 eval ac_cr=\$\'\\r\'
15431 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15432 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15433 ac_cs_awk_cr='\r'
15434 else
15435 ac_cs_awk_cr=$ac_cr
15438 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15439 _ACEOF
15441 # Create commands to substitute file output variables.
15443 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15444 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15445 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15446 echo "_ACAWK" &&
15447 echo "_ACEOF"
15448 } >conf$$files.sh &&
15449 . ./conf$$files.sh ||
15450 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15451 rm -f conf$$files.sh
15454 echo "cat >conf$$subs.awk <<_ACEOF" &&
15455 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15456 echo "_ACEOF"
15457 } >conf$$subs.sh ||
15458 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15459 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15460 ac_delim='%!_!# '
15461 for ac_last_try in false false false false false :; do
15462 . ./conf$$subs.sh ||
15463 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15465 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15466 if test $ac_delim_n = $ac_delim_num; then
15467 break
15468 elif $ac_last_try; then
15469 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15470 else
15471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15473 done
15474 rm -f conf$$subs.sh
15476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15477 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15478 _ACEOF
15479 sed -n '
15481 s/^/S["/; s/!.*/"]=/
15484 s/^[^!]*!//
15485 :repl
15486 t repl
15487 s/'"$ac_delim"'$//
15488 t delim
15491 s/\(.\{148\}\).*/\1/
15492 t more1
15493 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15496 b repl
15497 :more1
15498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15501 s/.\{148\}//
15502 t nl
15503 :delim
15505 s/\(.\{148\}\).*/\1/
15506 t more2
15507 s/["\\]/\\&/g; s/^/"/; s/$/"/
15510 :more2
15511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15514 s/.\{148\}//
15515 t delim
15516 ' <conf$$subs.awk | sed '
15517 /^[^""]/{
15519 s/\n//
15521 ' >>$CONFIG_STATUS || ac_write_fail=1
15522 rm -f conf$$subs.awk
15523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15524 _ACAWK
15525 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15526 for (key in S) S_is_set[key] = 1
15527 FS = "\a"
15528 \$ac_cs_awk_pipe_init
15531 line = $ 0
15532 nfields = split(line, field, "@")
15533 substed = 0
15534 len = length(field[1])
15535 for (i = 2; i < nfields; i++) {
15536 key = field[i]
15537 keylen = length(key)
15538 if (S_is_set[key]) {
15539 value = S[key]
15540 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15541 len += length(value) + length(field[++i])
15542 substed = 1
15543 } else
15544 len += 1 + keylen
15546 if (nfields == 3 && !substed) {
15547 key = field[2]
15548 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15549 \$ac_cs_awk_read_file
15550 next
15553 print line
15555 \$ac_cs_awk_pipe_fini
15556 _ACAWK
15557 _ACEOF
15558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15559 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15560 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15561 else
15563 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15564 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15565 _ACEOF
15567 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15568 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15569 # trailing colons and then remove the whole line if VPATH becomes empty
15570 # (actually we leave an empty line to preserve line numbers).
15571 if test "x$srcdir" = x.; then
15572 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15573 s/:*\$(srcdir):*/:/
15574 s/:*\${srcdir}:*/:/
15575 s/:*@srcdir@:*/:/
15576 s/^\([^=]*=[ ]*\):*/\1/
15577 s/:*$//
15578 s/^[^=]*=[ ]*$//
15582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15583 fi # test -n "$CONFIG_FILES"
15586 eval set X " :F $CONFIG_FILES "
15587 shift
15588 for ac_tag
15590 case $ac_tag in
15591 :[FHLC]) ac_mode=$ac_tag; continue;;
15592 esac
15593 case $ac_mode$ac_tag in
15594 :[FHL]*:*);;
15595 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15596 :[FH]-) ac_tag=-:-;;
15597 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15598 esac
15599 ac_save_IFS=$IFS
15600 IFS=:
15601 set x $ac_tag
15602 IFS=$ac_save_IFS
15603 shift
15604 ac_file=$1
15605 shift
15607 case $ac_mode in
15608 :L) ac_source=$1;;
15609 :[FH])
15610 ac_file_inputs=
15611 for ac_f
15613 case $ac_f in
15614 -) ac_f="$tmp/stdin";;
15615 *) # Look for the file first in the build tree, then in the source tree
15616 # (if the path is not absolute). The absolute path cannot be DOS-style,
15617 # because $ac_f cannot contain `:'.
15618 test -f "$ac_f" ||
15619 case $ac_f in
15620 [\\/$]*) false;;
15621 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15622 esac ||
15623 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15624 esac
15625 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15626 as_fn_append ac_file_inputs " '$ac_f'"
15627 done
15629 # Let's still pretend it is `configure' which instantiates (i.e., don't
15630 # use $as_me), people would be surprised to read:
15631 # /* config.h. Generated by config.status. */
15632 configure_input='Generated from '`
15633 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15634 `' by configure.'
15635 if test x"$ac_file" != x-; then
15636 configure_input="$ac_file. $configure_input"
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15638 $as_echo "$as_me: creating $ac_file" >&6;}
15640 # Neutralize special characters interpreted by sed in replacement strings.
15641 case $configure_input in #(
15642 *\&* | *\|* | *\\* )
15643 ac_sed_conf_input=`$as_echo "$configure_input" |
15644 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15645 *) ac_sed_conf_input=$configure_input;;
15646 esac
15648 case $ac_tag in
15649 *:-:* | *:-) cat >"$tmp/stdin" \
15650 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15651 esac
15653 esac
15655 ac_dir=`$as_dirname -- "$ac_file" ||
15656 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15657 X"$ac_file" : 'X\(//\)[^/]' \| \
15658 X"$ac_file" : 'X\(//\)$' \| \
15659 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15660 $as_echo X"$ac_file" |
15661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15662 s//\1/
15665 /^X\(\/\/\)[^/].*/{
15666 s//\1/
15669 /^X\(\/\/\)$/{
15670 s//\1/
15673 /^X\(\/\).*/{
15674 s//\1/
15677 s/.*/./; q'`
15678 as_dir="$ac_dir"; as_fn_mkdir_p
15679 ac_builddir=.
15681 case "$ac_dir" in
15682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15685 # A ".." for each directory in $ac_dir_suffix.
15686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15687 case $ac_top_builddir_sub in
15688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15690 esac ;;
15691 esac
15692 ac_abs_top_builddir=$ac_pwd
15693 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15694 # for backward compatibility:
15695 ac_top_builddir=$ac_top_build_prefix
15697 case $srcdir in
15698 .) # We are building in place.
15699 ac_srcdir=.
15700 ac_top_srcdir=$ac_top_builddir_sub
15701 ac_abs_top_srcdir=$ac_pwd ;;
15702 [\\/]* | ?:[\\/]* ) # Absolute name.
15703 ac_srcdir=$srcdir$ac_dir_suffix;
15704 ac_top_srcdir=$srcdir
15705 ac_abs_top_srcdir=$srcdir ;;
15706 *) # Relative name.
15707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15708 ac_top_srcdir=$ac_top_build_prefix$srcdir
15709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15710 esac
15711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15714 case $ac_mode in
15717 # CONFIG_FILE
15720 case $INSTALL in
15721 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15722 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15723 esac
15724 _ACEOF
15726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15727 # If the template does not know about datarootdir, expand it.
15728 # FIXME: This hack should be removed a few years after 2.60.
15729 ac_datarootdir_hack=; ac_datarootdir_seen=
15730 ac_sed_dataroot='
15731 /datarootdir/ {
15735 /@datadir@/p
15736 /@docdir@/p
15737 /@infodir@/p
15738 /@localedir@/p
15739 /@mandir@/p'
15740 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15741 *datarootdir*) ac_datarootdir_seen=yes;;
15742 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15744 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15745 _ACEOF
15746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15747 ac_datarootdir_hack='
15748 s&@datadir@&$datadir&g
15749 s&@docdir@&$docdir&g
15750 s&@infodir@&$infodir&g
15751 s&@localedir@&$localedir&g
15752 s&@mandir@&$mandir&g
15753 s&\\\${datarootdir}&$datarootdir&g' ;;
15754 esac
15755 _ACEOF
15757 # Neutralize VPATH when `$srcdir' = `.'.
15758 # Shell code in configure.ac might set extrasub.
15759 # FIXME: do we really want to maintain this feature?
15760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15761 ac_sed_extra="$ac_vpsub
15762 $extrasub
15763 _ACEOF
15764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15767 s|@configure_input@|$ac_sed_conf_input|;t t
15768 s&@top_builddir@&$ac_top_builddir_sub&;t t
15769 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15770 s&@srcdir@&$ac_srcdir&;t t
15771 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15772 s&@top_srcdir@&$ac_top_srcdir&;t t
15773 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15774 s&@builddir@&$ac_builddir&;t t
15775 s&@abs_builddir@&$ac_abs_builddir&;t t
15776 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15777 s&@INSTALL@&$ac_INSTALL&;t t
15778 $ac_datarootdir_hack
15780 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15781 if $ac_cs_awk_getline; then
15782 $AWK -f "$tmp/subs.awk"
15783 else
15784 $AWK -f "$tmp/subs.awk" | $SHELL
15785 fi >$tmp/out \
15786 || as_fn_error "could not create $ac_file" "$LINENO" 5
15788 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15789 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15790 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15792 which seems to be undefined. Please make sure it is defined." >&5
15793 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15794 which seems to be undefined. Please make sure it is defined." >&2;}
15796 rm -f "$tmp/stdin"
15797 case $ac_file in
15798 -) cat "$tmp/out" && rm -f "$tmp/out";;
15799 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15800 esac \
15801 || as_fn_error "could not create $ac_file" "$LINENO" 5
15806 esac
15809 case $ac_file$ac_mode in
15810 "Makefile":F) sed "$extrasub_build" Makefile |
15811 sed "$extrasub_host" |
15812 sed "$extrasub_target" > mf$$
15813 mv -f mf$$ Makefile ;;
15815 esac
15816 done # for ac_tag
15819 as_fn_exit 0
15820 _ACEOF
15821 ac_clean_files=$ac_clean_files_save
15823 test $ac_write_fail = 0 ||
15824 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15827 # configure is writing to config.log, and then calls config.status.
15828 # config.status does its own redirection, appending to config.log.
15829 # Unfortunately, on DOS this fails, as config.log is still kept open
15830 # by configure, so config.status won't be able to write to it; its
15831 # output is simply discarded. So we exec the FD to /dev/null,
15832 # effectively closing config.log, so it can be properly (re)opened and
15833 # appended to by config.status. When coming back to configure, we
15834 # need to make the FD available again.
15835 if test "$no_create" != yes; then
15836 ac_cs_success=:
15837 ac_config_status_args=
15838 test "$silent" = yes &&
15839 ac_config_status_args="$ac_config_status_args --quiet"
15840 exec 5>/dev/null
15841 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15842 exec 5>>config.log
15843 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15844 # would make configure fail if this is the last instruction.
15845 $ac_cs_success || as_fn_exit $?
15847 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15849 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}