AVX-512. Add integer max/min.
[official-gcc.git] / configure
blobc292b095229df491485b379a065146a69556e966
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 clooginc
650 clooglibs
651 islinc
652 isllibs
653 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
676 EXTRA_CONFIGARGS_LIBJAVA
677 target_subdir
678 host_subdir
679 build_subdir
680 build_libsubdir
683 LN_S
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 target_noncanonical
697 host_noncanonical
698 build_noncanonical
699 build_os
700 build_vendor
701 build_cpu
702 build
703 TOPLEVEL_CONFIGURE_ARGUMENTS
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files='serialization_dependencies
743 host_makefile_frag
744 target_makefile_frag
745 alphaieee_frag
746 ospace_frag'
747 ac_user_opts='
748 enable_option_checking
749 with_build_libsubdir
750 enable_gold
751 enable_ld
752 enable_libquadmath
753 enable_libquadmath_support
754 enable_libada
755 enable_libssp
756 enable_libstdcxx
757 enable_static_libjava
758 enable_bootstrap
759 with_mpc
760 with_mpc_include
761 with_mpc_lib
762 with_mpfr_dir
763 with_mpfr
764 with_mpfr_include
765 with_mpfr_lib
766 with_gmp_dir
767 with_gmp
768 with_gmp_include
769 with_gmp_lib
770 with_host_libstdcxx
771 with_stage1_libs
772 with_stage1_ldflags
773 with_boot_libs
774 with_boot_ldflags
775 with_cloog
776 with_isl
777 with_isl_include
778 with_isl_lib
779 enable_isl_version_check
780 with_cloog_include
781 with_cloog_lib
782 enable_cloog_version_check
783 enable_lto
784 enable_linker_plugin_configure_flags
785 enable_linker_plugin_flags
786 enable_stage1_languages
787 enable_objc_gc
788 with_build_sysroot
789 with_debug_prefix_map
790 with_build_config
791 enable_vtable_verify
792 enable_serial_configure
793 with_build_time_tools
794 enable_maintainer_mode
795 enable_stage1_checking
796 enable_werror
797 enable_host_shared
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
808 CXXFLAGS
810 build_configargs
811 host_configargs
812 target_configargs
815 DLLTOOL
817 LIPO
819 RANLIB
820 STRIP
821 WINDRES
822 WINDMC
823 OBJCOPY
824 OBJDUMP
825 READELF
826 CC_FOR_TARGET
827 CXX_FOR_TARGET
828 GCC_FOR_TARGET
829 GCJ_FOR_TARGET
830 GFORTRAN_FOR_TARGET
831 GOC_FOR_TARGET
832 AR_FOR_TARGET
833 AS_FOR_TARGET
834 DLLTOOL_FOR_TARGET
835 LD_FOR_TARGET
836 LIPO_FOR_TARGET
837 NM_FOR_TARGET
838 OBJDUMP_FOR_TARGET
839 RANLIB_FOR_TARGET
840 READELF_FOR_TARGET
841 STRIP_FOR_TARGET
842 WINDRES_FOR_TARGET
843 WINDMC_FOR_TARGET'
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
894 ac_prev=
895 ac_dashdash=
896 for ac_option
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
901 ac_prev=
902 continue
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
910 # Accept the important Cygnus configure options, so we can diagnose typos.
912 case $ac_dashdash$ac_option in
914 ac_dashdash=yes ;;
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
933 --config-cache | -C)
934 cache_file=config.cache ;;
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1228 -*) as_fn_error "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information."
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 esac
1251 done
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error "missing argument to $ac_option"
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308 test "$silent" = yes && exec 6>/dev/null
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error "pwd does not report name of working directory"
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1337 /^X\(\/\/\)$/{
1338 s//\1/
1341 /^X\(\/\).*/{
1342 s//\1/
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1350 else
1351 ac_srcdir_defaulted=no
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 case $srcdir in
1372 *" "*)
1373 as_fn_error "path to source, $srcdir, contains spaces"
1375 esac
1376 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures this package to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1447 cat <<\_ACEOF
1449 Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454 System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458 _ACEOF
1461 if test -n "$ac_init_help"; then
1463 cat <<\_ACEOF
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1470 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1471 --disable-libquadmath do not build libquadmath directory
1472 --disable-libquadmath-support
1473 disable libquadmath support for Fortran
1474 --enable-libada build libada directory
1475 --enable-libssp build libssp directory
1476 --disable-libstdcxx do not build libstdc++-v3 directory
1477 --enable-static-libjava[=ARG]
1478 build static libjava [default=no]
1479 --enable-bootstrap enable bootstrapping [yes if native build]
1480 --disable-isl-version-check
1481 disable check for ISL version
1482 --disable-cloog-version-check
1483 disable check for CLooG version
1484 --enable-lto enable link time optimization support
1485 --enable-linker-plugin-configure-flags=FLAGS
1486 additional flags for configuring linker plugins
1487 [none]
1488 --enable-linker-plugin-flags=FLAGS
1489 additional flags for configuring and building linker
1490 plugins [none]
1491 --enable-stage1-languages[=all]
1492 choose additional languages to build during stage1.
1493 Mostly useful for compiler development
1494 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1495 Objective-C runtime
1496 --enable-vtable-verify Enable vtable verification feature
1497 --enable-serial-[{host,target,build}-]configure
1498 force sequential configuration of sub-packages for
1499 the host, target or build machine, or all
1500 sub-packages
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
1504 --enable-stage1-checking[=all]
1505 choose additional checking for stage1 of the
1506 compiler
1507 --enable-werror enable -Werror in bootstrap stage2 and later
1508 --enable-host-shared build host code as shared libraries
1510 Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-build-libsubdir=DIR Directory where to find libraries for build system
1514 --with-mpc=PATH specify prefix directory for installed MPC package.
1515 Equivalent to --with-mpc-include=PATH/include plus
1516 --with-mpc-lib=PATH/lib
1517 --with-mpc-include=PATH specify directory for installed MPC include files
1518 --with-mpc-lib=PATH specify directory for the installed MPC library
1519 --with-mpfr-dir=PATH this option has been REMOVED
1520 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1521 Equivalent to --with-mpfr-include=PATH/include plus
1522 --with-mpfr-lib=PATH/lib
1523 --with-mpfr-include=PATH
1524 specify directory for installed MPFR include files
1525 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1526 --with-gmp-dir=PATH this option has been REMOVED
1527 --with-gmp=PATH specify prefix directory for the installed GMP
1528 package. Equivalent to
1529 --with-gmp-include=PATH/include plus
1530 --with-gmp-lib=PATH/lib
1531 --with-gmp-include=PATH specify directory for installed GMP include files
1532 --with-gmp-lib=PATH specify directory for the installed GMP library
1533 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1534 linking with PPL
1535 --with-stage1-libs=LIBS libraries for stage1
1536 --with-stage1-ldflags=FLAGS
1537 linker flags for stage1
1538 --with-boot-libs=LIBS libraries for stage2 and later
1539 --with-boot-ldflags=FLAGS
1540 linker flags for stage2 and later
1541 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1542 package. Equivalent to
1543 --with-cloog-include=PATH/include plus
1544 --with-cloog-lib=PATH/lib
1545 --with-isl=PATH Specify prefix directory for the installed ISL
1546 package. Equivalent to
1547 --with-isl-include=PATH/include plus
1548 --with-isl-lib=PATH/lib
1549 --with-isl-include=PATH Specify directory for installed ISL include files
1550 --with-isl-lib=PATH Specify the directory for the installed ISL library
1551 --with-cloog-include=PATH
1552 Specify directory for installed CLooG include files
1553 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1554 library
1555 --with-build-sysroot=SYSROOT
1556 use sysroot as the system root during the build
1557 --with-debug-prefix-map='A=B C=D ...'
1558 map A to B, C to D ... in debug information
1559 --with-build-config='NAME NAME2...'
1560 use config/NAME.mk build configuration
1561 --with-build-time-tools=PATH
1562 use given path to find target tools during the build
1564 Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1572 CXX C++ compiler command
1573 CXXFLAGS C++ compiler flags
1574 build_configargs
1575 additional configure arguments for build directories
1576 host_configargs
1577 additional configure arguments for host directories
1578 target_configargs
1579 additional configure arguments for target directories
1580 AR AR for the host
1581 AS AS for the host
1582 DLLTOOL DLLTOOL for the host
1583 LD LD for the host
1584 LIPO LIPO for the host
1585 NM NM for the host
1586 RANLIB RANLIB for the host
1587 STRIP STRIP for the host
1588 WINDRES WINDRES for the host
1589 WINDMC WINDMC for the host
1590 OBJCOPY OBJCOPY for the host
1591 OBJDUMP OBJDUMP for the host
1592 READELF READELF for the host
1593 CC_FOR_TARGET
1594 CC for the target
1595 CXX_FOR_TARGET
1596 CXX for the target
1597 GCC_FOR_TARGET
1598 GCC for the target
1599 GCJ_FOR_TARGET
1600 GCJ for the target
1601 GFORTRAN_FOR_TARGET
1602 GFORTRAN for the target
1603 GOC_FOR_TARGET
1604 GOC for the target
1605 AR_FOR_TARGET
1606 AR for the target
1607 AS_FOR_TARGET
1608 AS for the target
1609 DLLTOOL_FOR_TARGET
1610 DLLTOOL for the target
1611 LD_FOR_TARGET
1612 LD for the target
1613 LIPO_FOR_TARGET
1614 LIPO for the target
1615 NM_FOR_TARGET
1616 NM for the target
1617 OBJDUMP_FOR_TARGET
1618 OBJDUMP for the target
1619 RANLIB_FOR_TARGET
1620 RANLIB for the target
1621 READELF_FOR_TARGET
1622 READELF for the target
1623 STRIP_FOR_TARGET
1624 STRIP for the target
1625 WINDRES_FOR_TARGET
1626 WINDRES for the target
1627 WINDMC_FOR_TARGET
1628 WINDMC for the target
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1633 Report bugs to the package provider.
1634 _ACEOF
1635 ac_status=$?
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1644 ac_builddir=.
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1662 case $srcdir in
1663 .) # We are building in place.
1664 ac_srcdir=.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1686 else
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 fi || ac_status=$?
1689 cd "$ac_pwd" || { ac_status=$?; break; }
1690 done
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1695 cat <<\_ACEOF
1696 configure
1697 generated by GNU Autoconf 2.64
1699 Copyright (C) 2009 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1702 _ACEOF
1703 exit
1706 ## ------------------------ ##
1707 ## Autoconf initialization. ##
1708 ## ------------------------ ##
1710 # ac_fn_c_try_compile LINENO
1711 # --------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=1
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 return $ac_retval
1746 } # ac_fn_c_try_compile
1748 # ac_fn_cxx_try_compile LINENO
1749 # ----------------------------
1750 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext
1755 if { { ac_try="$ac_compile"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_compile") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_cxx_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest.$ac_objext; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=1
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 return $ac_retval
1784 } # ac_fn_cxx_try_compile
1786 # ac_fn_cxx_try_link LINENO
1787 # -------------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_cxx_try_link ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_cxx_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 return $ac_retval
1830 } # ac_fn_cxx_try_link
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_link ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 $as_test_x conftest$ac_exeext
1860 }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 ac_retval=1
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1876 } # ac_fn_c_try_link
1878 # ac_fn_c_try_run LINENO
1879 # ----------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1881 # that executables *can* be run.
1882 ac_fn_c_try_run ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { { ac_try="$ac_link"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>&5
1893 ac_status=$?
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1896 { { case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_try") 2>&5
1903 ac_status=$?
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; }; }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: program exited with status $ac_status" >&5
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1912 ac_retval=$ac_status
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916 return $ac_retval
1918 } # ac_fn_c_try_run
1919 cat >config.log <<_ACEOF
1920 This file contains any messages produced by compilers while
1921 running configure, to aid debugging if configure makes a mistake.
1923 It was created by $as_me, which was
1924 generated by GNU Autoconf 2.64. Invocation command line was
1926 $ $0 $@
1928 _ACEOF
1929 exec 5>>config.log
1931 cat <<_ASUNAME
1932 ## --------- ##
1933 ## Platform. ##
1934 ## --------- ##
1936 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1946 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1947 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1948 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1949 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1950 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1951 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953 _ASUNAME
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 $as_echo "PATH: $as_dir"
1961 done
1962 IFS=$as_save_IFS
1964 } >&5
1966 cat >&5 <<_ACEOF
1969 ## ----------- ##
1970 ## Core tests. ##
1971 ## ----------- ##
1973 _ACEOF
1976 # Keep a trace of the command line.
1977 # Strip out --no-create and --no-recursion so they do not pile up.
1978 # Strip out --silent because we don't want to record it for future runs.
1979 # Also quote any args containing shell meta-characters.
1980 # Make two passes to allow for proper duplicate-argument suppression.
1981 ac_configure_args=
1982 ac_configure_args0=
1983 ac_configure_args1=
1984 ac_must_keep_next=false
1985 for ac_pass in 1 2
1987 for ac_arg
1989 case $ac_arg in
1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 | -silent | --silent | --silen | --sile | --sil)
1993 continue ;;
1994 *\'*)
1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 esac
1997 case $ac_pass in
1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2000 as_fn_append ac_configure_args1 " '$ac_arg'"
2001 if test $ac_must_keep_next = true; then
2002 ac_must_keep_next=false # Got value, back to normal.
2003 else
2004 case $ac_arg in
2005 *=* | --config-cache | -C | -disable-* | --disable-* \
2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 | -with-* | --with-* | -without-* | --without-* | --x)
2009 case "$ac_configure_args0 " in
2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 esac
2013 -* ) ac_must_keep_next=true ;;
2014 esac
2016 as_fn_append ac_configure_args " '$ac_arg'"
2018 esac
2019 done
2020 done
2021 { ac_configure_args0=; unset ac_configure_args0;}
2022 { ac_configure_args1=; unset ac_configure_args1;}
2024 # When interrupted or exit'd, cleanup temporary files, and complete
2025 # config.log. We remove comments because anyway the quotes in there
2026 # would cause problems or look ugly.
2027 # WARNING: Use '\'' to represent an apostrophe within the trap.
2028 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029 trap 'exit_status=$?
2030 # Save into config.log some information that might help in debugging.
2032 echo
2034 cat <<\_ASBOX
2035 ## ---------------- ##
2036 ## Cache variables. ##
2037 ## ---------------- ##
2038 _ASBOX
2039 echo
2040 # The following way of writing the cache mishandles newlines in values,
2042 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in #(
2045 *${as_nl}*)
2046 case $ac_var in #(
2047 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2048 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2049 esac
2050 case $ac_var in #(
2051 _ | IFS | as_nl) ;; #(
2052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2053 *) { eval $ac_var=; unset $ac_var;} ;;
2054 esac ;;
2055 esac
2056 done
2057 (set) 2>&1 |
2058 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059 *${as_nl}ac_space=\ *)
2060 sed -n \
2061 "s/'\''/'\''\\\\'\'''\''/g;
2062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063 ;; #(
2065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2067 esac |
2068 sort
2070 echo
2072 cat <<\_ASBOX
2073 ## ----------------- ##
2074 ## Output variables. ##
2075 ## ----------------- ##
2076 _ASBOX
2077 echo
2078 for ac_var in $ac_subst_vars
2080 eval ac_val=\$$ac_var
2081 case $ac_val in
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 esac
2084 $as_echo "$ac_var='\''$ac_val'\''"
2085 done | sort
2086 echo
2088 if test -n "$ac_subst_files"; then
2089 cat <<\_ASBOX
2090 ## ------------------- ##
2091 ## File substitutions. ##
2092 ## ------------------- ##
2093 _ASBOX
2094 echo
2095 for ac_var in $ac_subst_files
2097 eval ac_val=\$$ac_var
2098 case $ac_val in
2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100 esac
2101 $as_echo "$ac_var='\''$ac_val'\''"
2102 done | sort
2103 echo
2106 if test -s confdefs.h; then
2107 cat <<\_ASBOX
2108 ## ----------- ##
2109 ## confdefs.h. ##
2110 ## ----------- ##
2111 _ASBOX
2112 echo
2113 cat confdefs.h
2114 echo
2116 test "$ac_signal" != 0 &&
2117 $as_echo "$as_me: caught signal $ac_signal"
2118 $as_echo "$as_me: exit $exit_status"
2119 } >&5
2120 rm -f core *.core core.conftest.* &&
2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122 exit $exit_status
2124 for ac_signal in 1 2 13 15; do
2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 done
2127 ac_signal=0
2129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2130 rm -f -r conftest* confdefs.h
2132 $as_echo "/* confdefs.h */" > confdefs.h
2134 # Predefined preprocessor variables.
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_NAME "$PACKAGE_NAME"
2138 _ACEOF
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142 _ACEOF
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2146 _ACEOF
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_STRING "$PACKAGE_STRING"
2150 _ACEOF
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 _ACEOF
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_URL "$PACKAGE_URL"
2158 _ACEOF
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 ac_site_file1=NONE
2164 ac_site_file2=NONE
2165 if test -n "$CONFIG_SITE"; then
2166 ac_site_file1=$CONFIG_SITE
2167 elif test "x$prefix" != xNONE; then
2168 ac_site_file1=$prefix/share/config.site
2169 ac_site_file2=$prefix/etc/config.site
2170 else
2171 ac_site_file1=$ac_default_prefix/share/config.site
2172 ac_site_file2=$ac_default_prefix/etc/config.site
2174 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2176 test "x$ac_site_file" = xNONE && continue
2177 if test -r "$ac_site_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2180 sed 's/^/| /' "$ac_site_file" >&5
2181 . "$ac_site_file"
2183 done
2185 if test -r "$cache_file"; then
2186 # Some versions of bash will fail to source /dev/null (special
2187 # files actually), so we avoid doing that.
2188 if test -f "$cache_file"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2190 $as_echo "$as_me: loading cache $cache_file" >&6;}
2191 case $cache_file in
2192 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193 *) . "./$cache_file";;
2194 esac
2196 else
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2198 $as_echo "$as_me: creating cache $cache_file" >&6;}
2199 >$cache_file
2202 # Check that the precious variables saved in the cache have kept the same
2203 # value.
2204 ac_cache_corrupted=false
2205 for ac_var in $ac_precious_vars; do
2206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2207 eval ac_new_set=\$ac_env_${ac_var}_set
2208 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2209 eval ac_new_val=\$ac_env_${ac_var}_value
2210 case $ac_old_set,$ac_new_set in
2211 set,)
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2213 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2214 ac_cache_corrupted=: ;;
2215 ,set)
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2217 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2218 ac_cache_corrupted=: ;;
2219 ,);;
2221 if test "x$ac_old_val" != "x$ac_new_val"; then
2222 # differences in whitespace do not lead to failure.
2223 ac_old_val_w=`echo x $ac_old_val`
2224 ac_new_val_w=`echo x $ac_new_val`
2225 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2227 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2228 ac_cache_corrupted=:
2229 else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2231 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2232 eval $ac_var=\$ac_old_val
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2235 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2237 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2238 fi;;
2239 esac
2240 # Pass precious variables to config.status.
2241 if test "$ac_new_set" = set; then
2242 case $ac_new_val in
2243 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2244 *) ac_arg=$ac_var=$ac_new_val ;;
2245 esac
2246 case " $ac_configure_args " in
2247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2248 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2249 esac
2251 done
2252 if $ac_cache_corrupted; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2256 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2257 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2259 ## -------------------- ##
2260 ## Main body of script. ##
2261 ## -------------------- ##
2263 ac_ext=c
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277 progname=$0
2278 # if PWD already has a value, it is probably wrong.
2279 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2281 # Export original configure arguments for use by sub-configures.
2282 # Quote arguments with shell meta charatcers.
2283 TOPLEVEL_CONFIGURE_ARGUMENTS=
2284 set -- "$progname" "$@"
2285 for ac_arg
2287 case "$ac_arg" in
2288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2289 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2290 # if the argument is of the form -foo=baz, quote the baz part only
2291 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2292 *) ;;
2293 esac
2294 # Add the quoted argument to the list.
2295 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2296 done
2297 if test "$silent" = yes; then
2298 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2300 # Remove the initial space we just introduced and, as these will be
2301 # expanded by make, quote '$'.
2302 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2305 # Find the build, host, and target systems.
2306 ac_aux_dir=
2307 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2308 for ac_t in install-sh install.sh shtool; do
2309 if test -f "$ac_dir/$ac_t"; then
2310 ac_aux_dir=$ac_dir
2311 ac_install_sh="$ac_aux_dir/$ac_t -c"
2312 break 2
2314 done
2315 done
2316 if test -z "$ac_aux_dir"; then
2317 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2320 # These three variables are undocumented and unsupported,
2321 # and are intended to be withdrawn in a future Autoconf release.
2322 # They can cause serious problems if a builder's source tree is in a directory
2323 # whose full name contains unusual characters.
2324 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2325 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2326 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2329 # Make sure we can run config.sub.
2330 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2331 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2334 $as_echo_n "checking build system type... " >&6; }
2335 if test "${ac_cv_build+set}" = set; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 ac_build_alias=$build_alias
2339 test "x$ac_build_alias" = x &&
2340 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2341 test "x$ac_build_alias" = x &&
2342 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2343 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2344 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2348 $as_echo "$ac_cv_build" >&6; }
2349 case $ac_cv_build in
2350 *-*-*) ;;
2351 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2352 esac
2353 build=$ac_cv_build
2354 ac_save_IFS=$IFS; IFS='-'
2355 set x $ac_cv_build
2356 shift
2357 build_cpu=$1
2358 build_vendor=$2
2359 shift; shift
2360 # Remember, the first character of IFS is used to create $*,
2361 # except with old shells:
2362 build_os=$*
2363 IFS=$ac_save_IFS
2364 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2367 case ${build_alias} in
2368 "") build_noncanonical=${build} ;;
2369 *) build_noncanonical=${build_alias} ;;
2370 esac
2374 case ${host_alias} in
2375 "") host_noncanonical=${build_noncanonical} ;;
2376 *) host_noncanonical=${host_alias} ;;
2377 esac
2381 case ${target_alias} in
2382 "") target_noncanonical=${host_noncanonical} ;;
2383 *) target_noncanonical=${target_alias} ;;
2384 esac
2389 test "$host_noncanonical" = "$target_noncanonical" &&
2390 test "$program_prefix$program_suffix$program_transform_name" = \
2391 NONENONEs,x,x, &&
2392 program_transform_name=s,y,y,
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2395 $as_echo_n "checking host system type... " >&6; }
2396 if test "${ac_cv_host+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test "x$host_alias" = x; then
2400 ac_cv_host=$ac_cv_build
2401 else
2402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2408 $as_echo "$ac_cv_host" >&6; }
2409 case $ac_cv_host in
2410 *-*-*) ;;
2411 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2412 esac
2413 host=$ac_cv_host
2414 ac_save_IFS=$IFS; IFS='-'
2415 set x $ac_cv_host
2416 shift
2417 host_cpu=$1
2418 host_vendor=$2
2419 shift; shift
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2422 host_os=$*
2423 IFS=$ac_save_IFS
2424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2428 $as_echo_n "checking target system type... " >&6; }
2429 if test "${ac_cv_target+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 if test "x$target_alias" = x; then
2433 ac_cv_target=$ac_cv_host
2434 else
2435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2441 $as_echo "$ac_cv_target" >&6; }
2442 case $ac_cv_target in
2443 *-*-*) ;;
2444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2445 esac
2446 target=$ac_cv_target
2447 ac_save_IFS=$IFS; IFS='-'
2448 set x $ac_cv_target
2449 shift
2450 target_cpu=$1
2451 target_vendor=$2
2452 shift; shift
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2455 target_os=$*
2456 IFS=$ac_save_IFS
2457 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2460 # The aliases save the names the user supplied, while $host etc.
2461 # will get canonicalized.
2462 test -n "$target_alias" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2464 NONENONEs,x,x, &&
2465 program_prefix=${target_alias}-
2467 test "$program_prefix" != NONE &&
2468 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2469 # Use a double $ so make ignores it.
2470 test "$program_suffix" != NONE &&
2471 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2472 # Double any \ or $.
2473 # By default was `s,x,x', remove it if useless.
2474 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2475 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2479 # Get 'install' or 'install-sh' and its variants.
2480 # Find a good install program. We prefer a C program (faster),
2481 # so one script is as good as another. But avoid the broken or
2482 # incompatible versions:
2483 # SysV /etc/install, /usr/sbin/install
2484 # SunOS /usr/etc/install
2485 # IRIX /sbin/install
2486 # AIX /bin/install
2487 # AmigaOS /C/install, which installs bootblocks on floppy discs
2488 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2489 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2490 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2491 # OS/2's system install, which has a completely different semantic
2492 # ./install, which can be erroneously created by make from ./install.sh.
2493 # Reject install programs that cannot install multiple files.
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2495 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2496 if test -z "$INSTALL"; then
2497 if test "${ac_cv_path_install+set}" = set; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 # Account for people who put trailing slashes in PATH elements.
2506 case $as_dir/ in #((
2507 ./ | .// | /[cC]/* | \
2508 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2509 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2510 /usr/ucb/* ) ;;
2512 # OSF1 and SCO ODT 3.0 have their own names for install.
2513 # Don't use installbsd from OSF since it installs stuff as root
2514 # by default.
2515 for ac_prog in ginstall scoinst install; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2518 if test $ac_prog = install &&
2519 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2520 # AIX install. It has an incompatible calling convention.
2522 elif test $ac_prog = install &&
2523 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # program-specific install script used by HP pwplus--don't use.
2526 else
2527 rm -rf conftest.one conftest.two conftest.dir
2528 echo one > conftest.one
2529 echo two > conftest.two
2530 mkdir conftest.dir
2531 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2532 test -s conftest.one && test -s conftest.two &&
2533 test -s conftest.dir/conftest.one &&
2534 test -s conftest.dir/conftest.two
2535 then
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537 break 3
2541 done
2542 done
2544 esac
2546 done
2547 IFS=$as_save_IFS
2549 rm -rf conftest.one conftest.two conftest.dir
2552 if test "${ac_cv_path_install+set}" = set; then
2553 INSTALL=$ac_cv_path_install
2554 else
2555 # As a last resort, use the slow shell script. Don't cache a
2556 # value for INSTALL within a source directory, because that will
2557 # break other packages using the cache if that directory is
2558 # removed, or if the value is a relative name.
2559 INSTALL=$ac_install_sh
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2563 $as_echo "$INSTALL" >&6; }
2565 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2566 # It thinks the first close brace ends the variable substitution.
2567 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2571 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2574 $as_echo_n "checking whether ln works... " >&6; }
2575 if test "${acx_cv_prog_LN+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 rm -f conftestdata_t
2579 echo >conftestdata_f
2580 if ln conftestdata_f conftestdata_t 2>/dev/null
2581 then
2582 acx_cv_prog_LN=ln
2583 else
2584 acx_cv_prog_LN=no
2586 rm -f conftestdata_f conftestdata_t
2589 if test $acx_cv_prog_LN = no; then
2590 LN="cp"
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2592 $as_echo "no, using $LN" >&6; }
2593 else
2594 LN="$acx_cv_prog_LN"
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2596 $as_echo "yes" >&6; }
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2600 $as_echo_n "checking whether ln -s works... " >&6; }
2601 LN_S=$as_ln_s
2602 if test "$LN_S" = "ln -s"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2604 $as_echo "yes" >&6; }
2605 else
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2607 $as_echo "no, using $LN_S" >&6; }
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2611 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2612 if test "${ac_cv_path_SED+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2616 for ac_i in 1 2 3 4 5 6 7; do
2617 ac_script="$ac_script$as_nl$ac_script"
2618 done
2619 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2620 { ac_script=; unset ac_script;}
2621 if test -z "$SED"; then
2622 ac_path_SED_found=false
2623 # Loop through the user's path and test for each of PROGNAME-LIST
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_prog in sed gsed; do
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2632 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2633 # Check for GNU ac_path_SED and select it if it is found.
2634 # Check for GNU $ac_path_SED
2635 case `"$ac_path_SED" --version 2>&1` in
2636 *GNU*)
2637 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2639 ac_count=0
2640 $as_echo_n 0123456789 >"conftest.in"
2641 while :
2643 cat "conftest.in" "conftest.in" >"conftest.tmp"
2644 mv "conftest.tmp" "conftest.in"
2645 cp "conftest.in" "conftest.nl"
2646 $as_echo '' >> "conftest.nl"
2647 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2649 as_fn_arith $ac_count + 1 && ac_count=$as_val
2650 if test $ac_count -gt ${ac_path_SED_max-0}; then
2651 # Best one so far, save it but keep looking for a better one
2652 ac_cv_path_SED="$ac_path_SED"
2653 ac_path_SED_max=$ac_count
2655 # 10*(2^10) chars as input seems more than enough
2656 test $ac_count -gt 10 && break
2657 done
2658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2659 esac
2661 $ac_path_SED_found && break 3
2662 done
2663 done
2664 done
2665 IFS=$as_save_IFS
2666 if test -z "$ac_cv_path_SED"; then
2667 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2669 else
2670 ac_cv_path_SED=$SED
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2675 $as_echo "$ac_cv_path_SED" >&6; }
2676 SED="$ac_cv_path_SED"
2677 rm -f conftest.sed
2679 for ac_prog in gawk mawk nawk awk
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if test "${ac_cv_prog_AWK+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test -n "$AWK"; then
2689 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_AWK="$ac_prog"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2702 done
2703 done
2704 IFS=$as_save_IFS
2708 AWK=$ac_cv_prog_AWK
2709 if test -n "$AWK"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2711 $as_echo "$AWK" >&6; }
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2718 test -n "$AWK" && break
2719 done
2722 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2724 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2725 # a relative path.
2726 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2727 INSTALL="${srcpwd}/install-sh -c"
2730 # Set srcdir to "." if that's what it is.
2731 # This is important for multilib support.
2732 pwd=`${PWDCMD-pwd}`
2733 if test "${pwd}" = "${srcpwd}" ; then
2734 srcdir=.
2737 topsrcdir=$srcpwd
2739 extra_host_args=
2741 ### To add a new directory to the tree, first choose whether it is a target
2742 ### or a host dependent tool. Then put it into the appropriate list
2743 ### (library or tools, host or target), doing a dependency sort.
2745 # Subdirs will be configured in the order listed in build_configdirs,
2746 # configdirs, or target_configdirs; see the serialization section below.
2748 # Dependency sorting is only needed when *configuration* must be done in
2749 # a particular order. In all cases a dependency should be specified in
2750 # the Makefile, whether or not it's implicitly specified here.
2752 # Double entries in build_configdirs, configdirs, or target_configdirs may
2753 # cause circular dependencies and break everything horribly.
2755 # these library is used by various programs built for the build
2756 # environment
2758 build_libs="build-libiberty"
2760 # these tools are built for the build environment
2761 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2763 # these libraries are used by various programs built for the host environment
2765 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2767 # these tools are built for the host environment
2768 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2769 # know that we are building the simulator.
2770 # binutils, gas and ld appear in that order because it makes sense to run
2771 # "make check" in that particular order.
2772 # If --enable-gold is used, "gold" may replace "ld".
2773 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2775 # libgcj represents the runtime libraries only used by gcj.
2776 libgcj="target-libffi \
2777 target-zlib \
2778 target-libjava"
2780 # these libraries are built for the target environment, and are built after
2781 # the host libraries and the host tools (which may be a cross compiler)
2782 # Note that libiberty is not a target library.
2783 target_libraries="target-libgcc \
2784 target-libbacktrace \
2785 target-libgloss \
2786 target-newlib \
2787 target-libgomp \
2788 target-libcilkrts \
2789 target-libatomic \
2790 target-libitm \
2791 target-libstdc++-v3 \
2792 target-libsanitizer \
2793 target-libvtv \
2794 target-libssp \
2795 target-libquadmath \
2796 target-libgfortran \
2797 target-boehm-gc \
2798 ${libgcj} \
2799 target-libobjc \
2800 target-libada \
2801 target-libgo"
2803 # these tools are built using the target libraries, and are intended to
2804 # run only in the target environment
2806 # note: any program that *uses* libraries that are in the "target_libraries"
2807 # list belongs in this list.
2809 target_tools="target-rda"
2811 ################################################################################
2813 ## All tools belong in one of the four categories, and are assigned above
2814 ## We assign ${configdirs} this way to remove all embedded newlines. This
2815 ## is important because configure will choke if they ever get through.
2816 ## ${configdirs} is directories we build using the host tools.
2817 ## ${target_configdirs} is directories we build using the target tools.
2818 configdirs=`echo ${host_libs} ${host_tools}`
2819 target_configdirs=`echo ${target_libraries} ${target_tools}`
2820 build_configdirs=`echo ${build_libs} ${build_tools}`
2824 ################################################################################
2826 srcname="gnu development package"
2828 # This gets set non-empty for some net releases of packages.
2829 appdirs=""
2831 # Define is_cross_compiler to save on calls to 'test'.
2832 is_cross_compiler=
2833 if test x"${host}" = x"${target}" ; then
2834 is_cross_compiler=no
2835 else
2836 is_cross_compiler=yes
2839 # Find the build and target subdir names.
2841 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2842 # have matching libraries, they should use host libraries: Makefile.tpl
2843 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2844 # However, they still use the build modules, because the corresponding
2845 # host modules (e.g. bison) are only built for the host when bootstrap
2846 # finishes. So:
2847 # - build_subdir is where we find build modules, and never changes.
2848 # - build_libsubdir is where we find build libraries, and can be overridden.
2850 # Prefix 'build-' so this never conflicts with target_subdir.
2851 build_subdir="build-${build_noncanonical}"
2853 # Check whether --with-build-libsubdir was given.
2854 if test "${with_build_libsubdir+set}" = set; then :
2855 withval=$with_build_libsubdir; build_libsubdir="$withval"
2856 else
2857 build_libsubdir="$build_subdir"
2860 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2861 if ( test $srcdir = . && test -d gcc ) \
2862 || test -d $srcdir/../host-${host_noncanonical}; then
2863 host_subdir="host-${host_noncanonical}"
2864 else
2865 host_subdir=.
2867 # No prefix.
2868 target_subdir=${target_noncanonical}
2870 # Be sure to cover against remnants of an in-tree build.
2871 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2872 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2873 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2876 # Skipdirs are removed silently.
2877 skipdirs=
2878 # Noconfigdirs are removed loudly.
2879 noconfigdirs=""
2881 use_gnu_ld=
2882 # Make sure we don't let GNU ld be added if we didn't want it.
2883 if test x$with_gnu_ld = xno ; then
2884 use_gnu_ld=no
2885 noconfigdirs="$noconfigdirs ld gold"
2888 use_gnu_as=
2889 # Make sure we don't let GNU as be added if we didn't want it.
2890 if test x$with_gnu_as = xno ; then
2891 use_gnu_as=no
2892 noconfigdirs="$noconfigdirs gas"
2895 use_included_zlib=
2896 # Make sure we don't let ZLIB be added if we didn't want it.
2897 if test x$with_system_zlib = xyes ; then
2898 use_included_zlib=no
2899 noconfigdirs="$noconfigdirs zlib"
2902 # some tools are so dependent upon X11 that if we're not building with X,
2903 # it's not even worth trying to configure, much less build, that tool.
2905 case ${with_x} in
2906 yes | "") ;; # the default value for this tree is that X11 is available
2908 skipdirs="${skipdirs} tk itcl libgui"
2909 # We won't be able to build gdbtk without X.
2910 enable_gdbtk=no
2912 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2913 esac
2915 # Some are only suitable for cross toolchains.
2916 # Remove these if host=target.
2917 cross_only="target-libgloss target-newlib target-opcodes"
2919 case $is_cross_compiler in
2920 no) skipdirs="${skipdirs} ${cross_only}" ;;
2921 esac
2923 # If both --with-headers and --with-libs are specified, default to
2924 # --without-newlib.
2925 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2926 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2927 if test x"${with_newlib}" = x ; then
2928 with_newlib=no
2932 # Recognize --with-newlib/--without-newlib.
2933 case ${with_newlib} in
2934 no) skipdirs="${skipdirs} target-newlib" ;;
2935 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2936 esac
2938 # Handle --enable-gold, --enable-ld.
2939 # --disable-gold [--enable-ld]
2940 # Build only ld. Default option.
2941 # --enable-gold [--enable-ld]
2942 # Build both gold and ld. Install gold as "ld.gold", install ld
2943 # as "ld.bfd" and "ld".
2944 # --enable-gold=default [--enable-ld]
2945 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2946 # install ld as "ld.bfd".
2947 # --enable-gold[=default] --disable-ld
2948 # Build only gold, which is then installed as both "ld.gold" and "ld".
2949 # --enable-gold --enable-ld=default
2950 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2951 # and ld.bfd).
2952 # In other words, ld is default
2953 # --enable-gold=default --enable-ld=default
2954 # Error.
2956 default_ld=
2957 # Check whether --enable-gold was given.
2958 if test "${enable_gold+set}" = set; then :
2959 enableval=$enable_gold; ENABLE_GOLD=$enableval
2960 else
2961 ENABLE_GOLD=no
2964 case "${ENABLE_GOLD}" in
2965 yes|default)
2966 # Check for ELF target.
2967 is_elf=no
2968 case "${target}" in
2969 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2970 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2971 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2972 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2973 case "${target}" in
2974 *-*-linux*aout* | *-*-linux*oldld*)
2977 is_elf=yes
2979 esac
2980 esac
2982 if test "$is_elf" = "yes"; then
2983 # Check for target supported by gold.
2984 case "${target}" in
2985 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2986 configdirs="$configdirs gold"
2987 if test x${ENABLE_GOLD} = xdefault; then
2988 default_ld=gold
2990 ENABLE_GOLD=yes
2992 esac
2998 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3000 esac
3002 # Check whether --enable-ld was given.
3003 if test "${enable_ld+set}" = set; then :
3004 enableval=$enable_ld; ENABLE_LD=$enableval
3005 else
3006 ENABLE_LD=yes
3010 case "${ENABLE_LD}" in
3011 default)
3012 if test x${default_ld} != x; then
3013 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3016 yes)
3019 if test x${ENABLE_GOLD} != xyes; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3021 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3023 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3026 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3028 esac
3030 # Configure extra directories which are host specific
3032 case "${host}" in
3033 *-cygwin*)
3034 configdirs="$configdirs libtermcap" ;;
3035 esac
3037 # A target can indicate whether a language isn't supported for some reason.
3038 # Only spaces may be used in this macro; not newlines or tabs.
3039 unsupported_languages=
3041 # Remove more programs from consideration, based on the host or
3042 # target this usually means that a port of the program doesn't
3043 # exist yet.
3045 case "${host}" in
3046 i[3456789]86-*-msdosdjgpp*)
3047 noconfigdirs="$noconfigdirs tcl tk itcl"
3049 esac
3052 # Check whether --enable-libquadmath was given.
3053 if test "${enable_libquadmath+set}" = set; then :
3054 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3055 else
3056 ENABLE_LIBQUADMATH=yes
3059 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3060 noconfigdirs="$noconfigdirs target-libquadmath"
3064 # Check whether --enable-libquadmath-support was given.
3065 if test "${enable_libquadmath_support+set}" = set; then :
3066 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3067 else
3068 ENABLE_LIBQUADMATH_SUPPORT=yes
3071 enable_libquadmath_support=
3072 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3073 enable_libquadmath_support=no
3077 # Check whether --enable-libada was given.
3078 if test "${enable_libada+set}" = set; then :
3079 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3080 else
3081 ENABLE_LIBADA=yes
3084 if test "${ENABLE_LIBADA}" != "yes" ; then
3085 noconfigdirs="$noconfigdirs gnattools"
3088 # Check whether --enable-libssp was given.
3089 if test "${enable_libssp+set}" = set; then :
3090 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3091 else
3092 ENABLE_LIBSSP=yes
3096 # Check whether --enable-libstdcxx was given.
3097 if test "${enable_libstdcxx+set}" = set; then :
3098 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3099 else
3100 ENABLE_LIBSTDCXX=default
3103 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3104 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3107 # Save it here so that, even in case of --enable-libgcj, if the Java
3108 # front-end isn't enabled, we still get libgcj disabled.
3109 libgcj_saved=$libgcj
3110 case $enable_libgcj in
3111 yes)
3112 # If we reset it here, it won't get added to noconfigdirs in the
3113 # target-specific build rules, so it will be forcibly enabled
3114 # (unless the Java language itself isn't enabled).
3115 libgcj=
3118 # Make sure we get it printed in the list of not supported target libs.
3119 # Don't disable libffi, though, other languages use it.
3120 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3121 # Clear libgcj_saved so that even if java is enabled libffi won't be
3122 # built.
3123 libgcj_saved=
3125 esac
3127 # Check whether --enable-static-libjava was given.
3128 if test "${enable_static_libjava+set}" = set; then :
3129 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3130 else
3131 ENABLE_STATIC_LIBJAVA=no
3134 enable_static_libjava=
3135 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3136 enable_static_libjava=yes
3139 if test x$enable_static_libjava != xyes ; then
3140 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3144 # Disable libgomp on non POSIX hosted systems.
3145 if test x$enable_libgomp = x ; then
3146 # Enable libgomp by default on hosted POSIX systems.
3147 case "${target}" in
3148 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3150 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3152 *-*-solaris2* | *-*-hpux11*)
3154 *-*-darwin* | *-*-aix*)
3157 noconfigdirs="$noconfigdirs target-libgomp"
3159 esac
3162 # Disable libatomic on unsupported systems.
3163 if test -d ${srcdir}/libatomic; then
3164 if test x$enable_libatomic = x; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3166 $as_echo_n "checking for libatomic support... " >&6; }
3167 if (srcdir=${srcdir}/libatomic; \
3168 . ${srcdir}/configure.tgt; \
3169 test -n "$UNSUPPORTED")
3170 then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 noconfigdirs="$noconfigdirs target-libatomic"
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3176 $as_echo "yes" >&6; }
3181 # Disable libcilkrts on unsupported systems.
3182 if test -d ${srcdir}/libcilkrts; then
3183 if test x$enable_libcilkrts = x; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3185 $as_echo_n "checking for libcilkrts support... " >&6; }
3186 if (srcdir=${srcdir}/libcilkrts; \
3187 . ${srcdir}/configure.tgt; \
3188 test -n "$UNSUPPORTED")
3189 then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 noconfigdirs="$noconfigdirs target-libcilkrts"
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195 $as_echo "yes" >&6; }
3200 # Disable libitm on unsupported systems.
3201 if test -d ${srcdir}/libitm; then
3202 if test x$enable_libitm = x; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3204 $as_echo_n "checking for libitm support... " >&6; }
3205 if (srcdir=${srcdir}/libitm; \
3206 . ${srcdir}/configure.tgt; \
3207 test -n "$UNSUPPORTED")
3208 then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3211 noconfigdirs="$noconfigdirs target-libitm"
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214 $as_echo "yes" >&6; }
3219 # Disable libsanitizer on unsupported systems.
3220 if test -d ${srcdir}/libsanitizer; then
3221 if test x$enable_libsanitizer = x; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3223 $as_echo_n "checking for libsanitizer support... " >&6; }
3224 if (srcdir=${srcdir}/libsanitizer; \
3225 . ${srcdir}/configure.tgt; \
3226 test -n "$UNSUPPORTED")
3227 then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 noconfigdirs="$noconfigdirs target-libsanitizer"
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 $as_echo "yes" >&6; }
3238 # Disable libvtv on unsupported systems.
3239 if test -d ${srcdir}/libvtv; then
3240 if test x$enable_libvtv = x; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3242 $as_echo_n "checking for libvtv support... " >&6; }
3243 if (srcdir=${srcdir}/libvtv; \
3244 . ${srcdir}/configure.tgt; \
3245 test "$VTV_SUPPORTED" != "yes")
3246 then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 noconfigdirs="$noconfigdirs target-libvtv"
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3257 # Disable libquadmath for some systems.
3258 case "${target}" in
3259 avr-*-*)
3260 noconfigdirs="$noconfigdirs target-libquadmath"
3262 # libquadmath is unused on AIX and libquadmath build process use of
3263 # LD_LIBRARY_PATH can break AIX bootstrap.
3264 powerpc-*-aix* | rs6000-*-aix*)
3265 noconfigdirs="$noconfigdirs target-libquadmath"
3267 esac
3269 # Disable libssp for some systems.
3270 case "${target}" in
3271 avr-*-*)
3272 # No hosted I/O support.
3273 noconfigdirs="$noconfigdirs target-libssp"
3275 powerpc-*-aix* | rs6000-*-aix*)
3276 noconfigdirs="$noconfigdirs target-libssp"
3278 rl78-*-*)
3279 # libssp uses a misaligned load to trigger a fault, but the RL78
3280 # doesn't fault for those - instead, it gives a build-time error
3281 # for explicit misaligned loads.
3282 noconfigdirs="$noconfigdirs target-libssp"
3284 esac
3286 # Disable libstdc++-v3 for some systems.
3287 # Allow user to override this if they pass --enable-libstdc++-v3
3288 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3289 case "${target}" in
3290 *-*-vxworks*)
3291 # VxWorks uses the Dinkumware C++ library.
3292 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3294 arm*-wince-pe*)
3295 # the C++ libraries don't build on top of CE's C libraries
3296 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3298 avr-*-*)
3299 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3301 esac
3304 # Disable Fortran for some systems.
3305 case "${target}" in
3306 mmix-*-*)
3307 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3308 unsupported_languages="$unsupported_languages fortran"
3310 esac
3312 # Disable Java if libffi is not supported.
3313 case "${target}" in
3314 aarch64-*-*)
3316 alpha*-*-*)
3318 arm*-*-*)
3320 cris-*-*)
3322 frv-*-*)
3324 hppa*-*-linux*)
3326 hppa*-*-hpux*)
3328 i?86-*-*)
3330 ia64*-*-*)
3332 m32r*-*-*)
3334 m68k-*-*)
3336 mips*-*-rtems*)
3338 mips*-*-linux*)
3340 powerpc*-*-linux*)
3342 powerpc-*-darwin*)
3344 powerpc-*-aix* | rs6000-*-aix*)
3346 powerpc-*-freebsd*)
3348 powerpc64-*-freebsd*)
3350 powerpc*-*-rtems*)
3352 s390-*-* | s390x-*-*)
3354 sh-*-* | sh[34]*-*-*)
3356 sh64-*-* | sh5*-*-*)
3358 sparc*-*-*)
3360 x86_64-*-*)
3362 *-*-*)
3363 unsupported_languages="$unsupported_languages java"
3365 esac
3367 # Disable Java, libgcj or related libraries for some systems.
3368 case "${target}" in
3369 powerpc-*-darwin*)
3371 i[3456789]86-*-darwin*)
3373 x86_64-*-darwin[912]*)
3375 *-*-darwin*)
3376 noconfigdirs="$noconfigdirs ${libgcj}"
3378 *-*-netware*)
3379 noconfigdirs="$noconfigdirs ${libgcj}"
3381 *-*-rtems*)
3382 noconfigdirs="$noconfigdirs ${libgcj}"
3384 *-*-tpf*)
3385 noconfigdirs="$noconfigdirs ${libgcj}"
3387 *-*-uclinux*)
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3390 *-*-vxworks*)
3391 noconfigdirs="$noconfigdirs ${libgcj}"
3393 alpha*-*-*vms*)
3394 noconfigdirs="$noconfigdirs ${libgcj}"
3396 arm-wince-pe)
3397 noconfigdirs="$noconfigdirs ${libgcj}"
3399 arm*-*-symbianelf*)
3400 noconfigdirs="$noconfigdirs ${libgcj}"
3402 bfin-*-*)
3403 noconfigdirs="$noconfigdirs target-boehm-gc"
3405 cris-*-* | crisv32-*-*)
3406 unsupported_languages="$unsupported_languages java"
3407 case "${target}" in
3408 *-*-linux*)
3410 *) # See PR46792 regarding target-libffi.
3411 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3412 esac
3414 hppa*64*-*-linux*)
3415 # In this case, it's because the hppa64-linux target is for
3416 # the kernel only at this point and has no libc, and thus no
3417 # headers, crt*.o, etc., all of which are needed by these.
3418 unsupported_languages="$unsupported_languages java"
3420 hppa*64*-*-hpux*)
3421 noconfigdirs="$noconfigdirs ${libgcj}"
3423 hppa*-hp-hpux11*)
3425 hppa*-*-hpux*)
3426 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3427 # build on HP-UX 10.20.
3428 noconfigdirs="$noconfigdirs ${libgcj}"
3430 ia64*-*-*vms*)
3431 noconfigdirs="$noconfigdirs ${libgcj}"
3433 i[3456789]86-w64-mingw*)
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3436 i[3456789]86-*-mingw*)
3437 noconfigdirs="$noconfigdirs ${libgcj}"
3439 x86_64-*-mingw*)
3440 noconfigdirs="$noconfigdirs ${libgcj}"
3442 mmix-*-*)
3443 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3445 powerpc-*-aix*)
3446 # copied from rs6000-*-* entry
3447 noconfigdirs="$noconfigdirs ${libgcj}"
3449 rs6000-*-aix*)
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3452 *-*-lynxos*)
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3455 esac
3457 # Disable libgo for some systems where it is known to not work.
3458 # For testing, you can easily override this with --enable-libgo.
3459 if test x$enable_libgo = x; then
3460 case "${target}" in
3461 *-*-darwin*)
3462 # PR 46986
3463 noconfigdirs="$noconfigdirs target-libgo"
3465 *-*-cygwin* | *-*-mingw*)
3466 noconfigdirs="$noconfigdirs target-libgo"
3468 *-*-aix*)
3469 noconfigdirs="$noconfigdirs target-libgo"
3471 esac
3474 # Default libgloss CPU subdirectory.
3475 libgloss_dir="$target_cpu"
3477 case "${target}" in
3478 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3479 libgloss_dir=wince
3481 aarch64*-*-* )
3482 libgloss_dir=aarch64
3484 arm*-*-*)
3485 libgloss_dir=arm
3487 cris-*-* | crisv32-*-*)
3488 libgloss_dir=cris
3490 hppa*-*-*)
3491 libgloss_dir=pa
3493 i[3456789]86-*-*)
3494 libgloss_dir=i386
3496 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3497 libgloss_dir=m68hc11
3499 m68*-*-* | fido-*-*)
3500 libgloss_dir=m68k
3502 mips*-*-*)
3503 libgloss_dir=mips
3505 powerpc*-*-*)
3506 libgloss_dir=rs6000
3508 sparc*-*-*)
3509 libgloss_dir=sparc
3511 esac
3513 # Disable newlib and libgloss for various target OSes.
3514 case "${target}" in
3515 alpha*-dec-osf*)
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3518 i[3456789]86-*-linux*)
3519 # This section makes it possible to build newlib natively on linux.
3520 # If we are using a cross compiler then don't configure newlib.
3521 if test x${is_cross_compiler} != xno ; then
3522 noconfigdirs="$noconfigdirs target-newlib"
3524 noconfigdirs="$noconfigdirs target-libgloss"
3525 # If we are not using a cross compiler, do configure newlib.
3526 # Note however, that newlib will only be configured in this situation
3527 # if the --with-newlib option has been given, because otherwise
3528 # 'target-newlib' will appear in skipdirs.
3530 i[3456789]86-*-rdos*)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3536 sparc-*-sunos4*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 *-*-aix*)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 *-*-beos*)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 *-*-chorusos)
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 *-*-dragonfly*)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 *-*-freebsd*)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 *-*-lynxos*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 *-*-mingw*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 *-*-netbsd*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 *-*-netware*)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 *-*-tpf*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 *-*-uclinux*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 *-*-vxworks*)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 esac
3580 case "${target}" in
3581 *-*-chorusos)
3583 powerpc-*-darwin*)
3584 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3585 noconfigdirs="$noconfigdirs sim target-rda"
3587 i[3456789]86-*-darwin*)
3588 noconfigdirs="$noconfigdirs ld gprof"
3589 noconfigdirs="$noconfigdirs sim target-rda"
3591 x86_64-*-darwin[912]*)
3592 noconfigdirs="$noconfigdirs ld gas gprof"
3593 noconfigdirs="$noconfigdirs sim target-rda"
3595 *-*-darwin*)
3596 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3597 noconfigdirs="$noconfigdirs sim target-rda"
3599 *-*-dragonfly*)
3601 *-*-freebsd*)
3602 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3603 && test -f /usr/local/include/gmp.h; then
3604 with_gmp=/usr/local
3607 *-*-kaos*)
3608 # Remove unsupported stuff on all kaOS configurations.
3609 noconfigdirs="$noconfigdirs target-libgloss"
3611 *-*-netbsd*)
3613 *-*-netware*)
3615 *-*-rtems*)
3616 noconfigdirs="$noconfigdirs target-libgloss"
3618 # The tpf target doesn't support gdb yet.
3619 *-*-tpf*)
3620 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3622 *-*-uclinux*)
3623 noconfigdirs="$noconfigdirs target-rda"
3625 *-*-vxworks*)
3627 alpha*-dec-osf*)
3628 # ld works, but does not support shared libraries.
3629 # gas doesn't generate exception information.
3630 noconfigdirs="$noconfigdirs gas ld"
3632 alpha*-*-*vms*)
3633 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3635 alpha*-*-*)
3636 # newlib is not 64 bit ready
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3640 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3642 arc-*-*|arceb-*-*)
3643 noconfigdirs="$noconfigdirs target-libgloss"
3645 arm-*-pe*)
3646 noconfigdirs="$noconfigdirs target-libgloss"
3648 arm-*-riscix*)
3649 noconfigdirs="$noconfigdirs ld target-libgloss"
3651 avr-*-rtems*)
3653 avr-*-*)
3654 if test x${with_avrlibc} != xno; then
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 c4x-*-* | tic4x-*-*)
3659 noconfigdirs="$noconfigdirs target-libgloss"
3661 tic54x-*-*)
3662 noconfigdirs="$noconfigdirs target-libgloss gdb"
3664 d10v-*-*)
3665 noconfigdirs="$noconfigdirs target-libgloss"
3667 d30v-*-*)
3668 noconfigdirs="$noconfigdirs gdb"
3670 fr30-*-elf*)
3671 noconfigdirs="$noconfigdirs gdb"
3673 moxie-*-*)
3674 noconfigdirs="$noconfigdirs gprof"
3676 h8300*-*-*)
3677 noconfigdirs="$noconfigdirs target-libgloss"
3679 h8500-*-*)
3680 noconfigdirs="$noconfigdirs target-libgloss"
3682 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3684 hppa*64*-*-linux*)
3686 hppa*-*-linux*)
3688 hppa*-*-*elf* | \
3689 hppa*-*-lites* | \
3690 hppa*-*-openbsd* | \
3691 hppa*64*-*-*)
3693 hppa*-hp-hpux11*)
3694 noconfigdirs="$noconfigdirs ld"
3696 hppa*-*-pro*)
3698 hppa*-*-*)
3699 noconfigdirs="$noconfigdirs ld"
3701 i960-*-*)
3702 noconfigdirs="$noconfigdirs gdb"
3704 ia64*-*-elf*)
3705 # No gdb support yet.
3706 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3708 ia64*-**-hpux*)
3709 # No ld support yet.
3710 noconfigdirs="$noconfigdirs libgui itcl ld"
3712 ia64*-*-*vms*)
3713 # No ld support yet.
3714 noconfigdirs="$noconfigdirs libgui itcl ld"
3716 i[3456789]86-w64-mingw*)
3718 i[3456789]86-*-mingw*)
3719 target_configdirs="$target_configdirs target-winsup"
3721 *-*-cygwin*)
3722 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3723 noconfigdirs="$noconfigdirs target-libgloss"
3724 # always build newlib if winsup directory is present.
3725 if test -d "$srcdir/winsup/cygwin"; then
3726 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3727 elif test -d "$srcdir/newlib"; then
3728 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3731 i[3456789]86-*-pe)
3732 noconfigdirs="$noconfigdirs target-libgloss"
3734 i[3456789]86-*-sco3.2v5*)
3735 # The linker does not yet know about weak symbols in COFF,
3736 # and is not configured to handle mixed ELF and COFF.
3737 noconfigdirs="$noconfigdirs ld target-libgloss"
3739 i[3456789]86-*-sco*)
3740 noconfigdirs="$noconfigdirs gprof target-libgloss"
3742 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3743 noconfigdirs="$noconfigdirs target-libgloss"
3745 i[3456789]86-*-sysv4*)
3746 noconfigdirs="$noconfigdirs target-libgloss"
3748 i[3456789]86-*-beos*)
3749 noconfigdirs="$noconfigdirs gdb"
3751 i[3456789]86-*-rdos*)
3752 noconfigdirs="$noconfigdirs gdb"
3754 mmix-*-*)
3755 noconfigdirs="$noconfigdirs gdb"
3757 mt-*-*)
3758 noconfigdirs="$noconfigdirs sim"
3760 powerpc-*-aix*)
3761 # copied from rs6000-*-* entry
3762 noconfigdirs="$noconfigdirs gprof"
3764 powerpc*-*-winnt* | powerpc*-*-pe*)
3765 target_configdirs="$target_configdirs target-winsup"
3766 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3767 # always build newlib.
3768 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3770 # This is temporary until we can link against shared libraries
3771 powerpcle-*-solaris*)
3772 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3774 powerpc-*-beos*)
3775 noconfigdirs="$noconfigdirs gdb"
3777 rs6000-*-lynxos*)
3778 noconfigdirs="$noconfigdirs gprof"
3780 rs6000-*-aix*)
3781 noconfigdirs="$noconfigdirs gprof"
3783 rs6000-*-*)
3784 noconfigdirs="$noconfigdirs gprof"
3786 m68k-apollo-*)
3787 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3789 microblaze*)
3790 noconfigdirs="$noconfigdirs gprof"
3792 mips*-sde-elf* | mips*-mti-elf*)
3793 if test x$with_newlib = xyes; then
3794 noconfigdirs="$noconfigdirs gprof"
3797 mips*-*-irix5*)
3798 noconfigdirs="$noconfigdirs gprof target-libgloss"
3800 mips*-*-irix6*)
3801 noconfigdirs="$noconfigdirs gprof target-libgloss"
3803 mips*-*-bsd*)
3804 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3806 mips*-*-linux*)
3808 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3809 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3810 noconfigdirs="$noconfigdirs ld gas gprof"
3812 mips*-*-*)
3813 noconfigdirs="$noconfigdirs gprof"
3815 sh-*-* | sh64-*-*)
3816 case "${target}" in
3817 sh*-*-elf)
3820 noconfigdirs="$noconfigdirs target-libgloss" ;;
3821 esac
3823 sparc-*-sunos4*)
3824 if test x${is_cross_compiler} = xno ; then
3825 use_gnu_ld=no
3828 tic6x-*-*)
3829 noconfigdirs="$noconfigdirs sim"
3831 tilepro*-*-* | tilegx*-*-*)
3832 noconfigdirs="$noconfigdirs sim"
3834 v810-*-*)
3835 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3837 vax-*-*)
3838 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3840 esac
3842 # If we aren't building newlib, then don't build libgloss, since libgloss
3843 # depends upon some newlib header files.
3844 case "${noconfigdirs}" in
3845 *target-libgloss*) ;;
3846 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3847 esac
3849 # Work in distributions that contain no compiler tools, like Autoconf.
3850 host_makefile_frag=/dev/null
3851 if test -d ${srcdir}/config ; then
3852 case "${host}" in
3853 i[3456789]86-*-msdosdjgpp*)
3854 host_makefile_frag="config/mh-djgpp"
3856 *-cygwin*)
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3859 $as_echo_n "checking to see if cat works as expected... " >&6; }
3860 echo a >cygwin-cat-check
3861 if test `cat cygwin-cat-check` = a ; then
3862 rm cygwin-cat-check
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3864 $as_echo "yes" >&6; }
3865 else
3866 rm cygwin-cat-check
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3869 as_fn_error "The cat command does not ignore carriage return characters.
3870 Please either mount the build directory in binary mode or run the following
3871 commands before running any configure script:
3872 set -o igncr
3873 export SHELLOPTS
3874 " "$LINENO" 5
3877 host_makefile_frag="config/mh-cygwin"
3879 *-mingw*)
3880 host_makefile_frag="config/mh-mingw"
3882 alpha*-*-linux*)
3883 host_makefile_frag="config/mh-alpha-linux"
3885 hppa*-hp-hpux10*)
3886 host_makefile_frag="config/mh-pa-hpux10"
3888 hppa*-hp-hpux*)
3889 host_makefile_frag="config/mh-pa"
3891 hppa*-*)
3892 host_makefile_frag="config/mh-pa"
3894 *-*-darwin*)
3895 host_makefile_frag="config/mh-darwin"
3897 powerpc-*-aix*)
3898 host_makefile_frag="config/mh-ppc-aix"
3900 rs6000-*-aix*)
3901 host_makefile_frag="config/mh-ppc-aix"
3903 esac
3906 if test "${build}" != "${host}" ; then
3907 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3908 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3909 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3910 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3911 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3912 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3913 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3914 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3915 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3916 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3917 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3918 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3919 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3920 else
3921 AR_FOR_BUILD="\$(AR)"
3922 AS_FOR_BUILD="\$(AS)"
3923 CC_FOR_BUILD="\$(CC)"
3924 CXX_FOR_BUILD="\$(CXX)"
3925 GCJ_FOR_BUILD="\$(GCJ)"
3926 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3927 GOC_FOR_BUILD="\$(GOC)"
3928 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3929 LD_FOR_BUILD="\$(LD)"
3930 NM_FOR_BUILD="\$(NM)"
3931 RANLIB_FOR_BUILD="\$(RANLIB)"
3932 WINDRES_FOR_BUILD="\$(WINDRES)"
3933 WINDMC_FOR_BUILD="\$(WINDMC)"
3936 ac_ext=c
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941 if test -n "$ac_tool_prefix"; then
3942 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3943 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if test "${ac_cv_prog_CC+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 if test -n "$CC"; then
3950 ac_cv_prog_CC="$CC" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3959 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3963 done
3964 done
3965 IFS=$as_save_IFS
3969 CC=$ac_cv_prog_CC
3970 if test -n "$CC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972 $as_echo "$CC" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3980 if test -z "$ac_cv_prog_CC"; then
3981 ac_ct_CC=$CC
3982 # Extract the first word of "gcc", so it can be a program name with args.
3983 set dummy gcc; ac_word=$2
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 $as_echo_n "checking for $ac_word... " >&6; }
3986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 if test -n "$ac_ct_CC"; then
3990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999 ac_cv_prog_ac_ct_CC="gcc"
4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4003 done
4004 done
4005 IFS=$as_save_IFS
4009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4010 if test -n "$ac_ct_CC"; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4012 $as_echo "$ac_ct_CC" >&6; }
4013 else
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 $as_echo "no" >&6; }
4018 if test "x$ac_ct_CC" = x; then
4019 CC=""
4020 else
4021 case $cross_compiling:$ac_tool_warned in
4022 yes:)
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4025 ac_tool_warned=yes ;;
4026 esac
4027 CC=$ac_ct_CC
4029 else
4030 CC="$ac_cv_prog_CC"
4033 if test -z "$CC"; then
4034 if test -n "$ac_tool_prefix"; then
4035 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4036 set dummy ${ac_tool_prefix}cc; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if test "${ac_cv_prog_CC+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 if test -n "$CC"; then
4043 ac_cv_prog_CC="$CC" # Let the user override the test.
4044 else
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_prog_CC="${ac_tool_prefix}cc"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4056 done
4057 done
4058 IFS=$as_save_IFS
4062 CC=$ac_cv_prog_CC
4063 if test -n "$CC"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065 $as_echo "$CC" >&6; }
4066 else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 $as_echo "no" >&6; }
4074 if test -z "$CC"; then
4075 # Extract the first word of "cc", so it can be a program name with args.
4076 set dummy cc; ac_word=$2
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078 $as_echo_n "checking for $ac_word... " >&6; }
4079 if test "${ac_cv_prog_CC+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 if test -n "$CC"; then
4083 ac_cv_prog_CC="$CC" # Let the user override the test.
4084 else
4085 ac_prog_rejected=no
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4094 ac_prog_rejected=yes
4095 continue
4097 ac_cv_prog_CC="cc"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4101 done
4102 done
4103 IFS=$as_save_IFS
4105 if test $ac_prog_rejected = yes; then
4106 # We found a bogon in the path, so make sure we never use it.
4107 set dummy $ac_cv_prog_CC
4108 shift
4109 if test $# != 0; then
4110 # We chose a different compiler from the bogus one.
4111 # However, it has the same basename, so the bogon will be chosen
4112 # first if we set CC to just the basename; use the full file name.
4113 shift
4114 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4119 CC=$ac_cv_prog_CC
4120 if test -n "$CC"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4122 $as_echo "$CC" >&6; }
4123 else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4130 if test -z "$CC"; then
4131 if test -n "$ac_tool_prefix"; then
4132 for ac_prog in cl.exe
4134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if test "${ac_cv_prog_CC+set}" = set; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 if test -n "$CC"; then
4142 ac_cv_prog_CC="$CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4155 done
4156 done
4157 IFS=$as_save_IFS
4161 CC=$ac_cv_prog_CC
4162 if test -n "$CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4164 $as_echo "$CC" >&6; }
4165 else
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4171 test -n "$CC" && break
4172 done
4174 if test -z "$CC"; then
4175 ac_ct_CC=$CC
4176 for ac_prog in cl.exe
4178 # Extract the first word of "$ac_prog", so it can be a program name with args.
4179 set dummy $ac_prog; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4195 ac_cv_prog_ac_ct_CC="$ac_prog"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4199 done
4200 done
4201 IFS=$as_save_IFS
4205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4206 if test -n "$ac_ct_CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4208 $as_echo "$ac_ct_CC" >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4215 test -n "$ac_ct_CC" && break
4216 done
4218 if test "x$ac_ct_CC" = x; then
4219 CC=""
4220 else
4221 case $cross_compiling:$ac_tool_warned in
4222 yes:)
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4225 ac_tool_warned=yes ;;
4226 esac
4227 CC=$ac_ct_CC
4234 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236 as_fn_error "no acceptable C compiler found in \$PATH
4237 See \`config.log' for more details." "$LINENO" 5; }
4239 # Provide some information about the compiler.
4240 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4241 set X $ac_compile
4242 ac_compiler=$2
4243 for ac_option in --version -v -V -qversion; do
4244 { { ac_try="$ac_compiler $ac_option >&5"
4245 case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4252 ac_status=$?
4253 if test -s conftest.err; then
4254 sed '10a\
4255 ... rest of stderr output deleted ...
4256 10q' conftest.err >conftest.er1
4257 cat conftest.er1 >&5
4258 rm -f conftest.er1 conftest.err
4260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; }
4262 done
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4268 main ()
4272 return 0;
4274 _ACEOF
4275 ac_clean_files_save=$ac_clean_files
4276 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4277 # Try to create an executable without -o first, disregard a.out.
4278 # It will help us diagnose broken compilers, and finding out an intuition
4279 # of exeext.
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4281 $as_echo_n "checking for C compiler default output file name... " >&6; }
4282 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4284 # The possible output files:
4285 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4287 ac_rmfiles=
4288 for ac_file in $ac_files
4290 case $ac_file in
4291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4292 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4293 esac
4294 done
4295 rm -f $ac_rmfiles
4297 if { { ac_try="$ac_link_default"
4298 case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301 esac
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304 (eval "$ac_link_default") 2>&5
4305 ac_status=$?
4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; }; then :
4308 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4309 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4310 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4311 # so that the user can short-circuit this test for compilers unknown to
4312 # Autoconf.
4313 for ac_file in $ac_files ''
4315 test -f "$ac_file" || continue
4316 case $ac_file in
4317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4319 [ab].out )
4320 # We found the default executable, but exeext='' is most
4321 # certainly right.
4322 break;;
4323 *.* )
4324 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4325 then :; else
4326 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4328 # We set ac_cv_exeext here because the later test for it is not
4329 # safe: cross compilers may not add the suffix if given an `-o'
4330 # argument, so we may need to know it at that point already.
4331 # Even if this section looks crufty: it has the advantage of
4332 # actually working.
4333 break;;
4335 break;;
4336 esac
4337 done
4338 test "$ac_cv_exeext" = no && ac_cv_exeext=
4340 else
4341 ac_file=''
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4344 $as_echo "$ac_file" >&6; }
4345 if test -z "$ac_file"; then :
4346 $as_echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4351 { as_fn_set_status 77
4352 as_fn_error "C compiler cannot create executables
4353 See \`config.log' for more details." "$LINENO" 5; }; }
4355 ac_exeext=$ac_cv_exeext
4357 # Check that the compiler produces executables we can run. If not, either
4358 # the compiler is broken, or we cross compile.
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4360 $as_echo_n "checking whether the C compiler works... " >&6; }
4361 # If not cross compiling, check that we can run a simple program.
4362 if test "$cross_compiling" != yes; then
4363 if { ac_try='./$ac_file'
4364 { { case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367 esac
4368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4369 $as_echo "$ac_try_echo"; } >&5
4370 (eval "$ac_try") 2>&5
4371 ac_status=$?
4372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4373 test $ac_status = 0; }; }; then
4374 cross_compiling=no
4375 else
4376 if test "$cross_compiling" = maybe; then
4377 cross_compiling=yes
4378 else
4379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4381 as_fn_error "cannot run C compiled programs.
4382 If you meant to cross compile, use \`--host'.
4383 See \`config.log' for more details." "$LINENO" 5; }
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4388 $as_echo "yes" >&6; }
4390 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4391 ac_clean_files=$ac_clean_files_save
4392 # Check that the compiler produces executables we can run. If not, either
4393 # the compiler is broken, or we cross compile.
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4395 $as_echo_n "checking whether we are cross compiling... " >&6; }
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4397 $as_echo "$cross_compiling" >&6; }
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4400 $as_echo_n "checking for suffix of executables... " >&6; }
4401 if { { ac_try="$ac_link"
4402 case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405 esac
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_link") 2>&5
4409 ac_status=$?
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }; then :
4412 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4413 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4414 # work properly (i.e., refer to `conftest.exe'), while it won't with
4415 # `rm'.
4416 for ac_file in conftest.exe conftest conftest.*; do
4417 test -f "$ac_file" || continue
4418 case $ac_file in
4419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4420 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4421 break;;
4422 * ) break;;
4423 esac
4424 done
4425 else
4426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 as_fn_error "cannot compute suffix of executables: cannot compile and link
4429 See \`config.log' for more details." "$LINENO" 5; }
4431 rm -f conftest$ac_cv_exeext
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4433 $as_echo "$ac_cv_exeext" >&6; }
4435 rm -f conftest.$ac_ext
4436 EXEEXT=$ac_cv_exeext
4437 ac_exeext=$EXEEXT
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4439 $as_echo_n "checking for suffix of object files... " >&6; }
4440 if test "${ac_cv_objext+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4447 main ()
4451 return 0;
4453 _ACEOF
4454 rm -f conftest.o conftest.obj
4455 if { { ac_try="$ac_compile"
4456 case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459 esac
4460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461 $as_echo "$ac_try_echo"; } >&5
4462 (eval "$ac_compile") 2>&5
4463 ac_status=$?
4464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465 test $ac_status = 0; }; then :
4466 for ac_file in conftest.o conftest.obj conftest.*; do
4467 test -f "$ac_file" || continue;
4468 case $ac_file in
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4470 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4471 break;;
4472 esac
4473 done
4474 else
4475 $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480 as_fn_error "cannot compute suffix of object files: cannot compile
4481 See \`config.log' for more details." "$LINENO" 5; }
4483 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4486 $as_echo "$ac_cv_objext" >&6; }
4487 OBJEXT=$ac_cv_objext
4488 ac_objext=$OBJEXT
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4490 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4491 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4498 main ()
4500 #ifndef __GNUC__
4501 choke me
4502 #endif
4505 return 0;
4507 _ACEOF
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509 ac_compiler_gnu=yes
4510 else
4511 ac_compiler_gnu=no
4513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4518 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4519 if test $ac_compiler_gnu = yes; then
4520 GCC=yes
4521 else
4522 GCC=
4524 ac_test_CFLAGS=${CFLAGS+set}
4525 ac_save_CFLAGS=$CFLAGS
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4527 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4528 if test "${ac_cv_prog_cc_g+set}" = set; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 ac_save_c_werror_flag=$ac_c_werror_flag
4532 ac_c_werror_flag=yes
4533 ac_cv_prog_cc_g=no
4534 CFLAGS="-g"
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4539 main ()
4543 return 0;
4545 _ACEOF
4546 if ac_fn_c_try_compile "$LINENO"; then :
4547 ac_cv_prog_cc_g=yes
4548 else
4549 CFLAGS=""
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4554 main ()
4558 return 0;
4560 _ACEOF
4561 if ac_fn_c_try_compile "$LINENO"; then :
4563 else
4564 ac_c_werror_flag=$ac_save_c_werror_flag
4565 CFLAGS="-g"
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4570 main ()
4574 return 0;
4576 _ACEOF
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578 ac_cv_prog_cc_g=yes
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 ac_c_werror_flag=$ac_save_c_werror_flag
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4588 $as_echo "$ac_cv_prog_cc_g" >&6; }
4589 if test "$ac_test_CFLAGS" = set; then
4590 CFLAGS=$ac_save_CFLAGS
4591 elif test $ac_cv_prog_cc_g = yes; then
4592 if test "$GCC" = yes; then
4593 CFLAGS="-g -O2"
4594 else
4595 CFLAGS="-g"
4597 else
4598 if test "$GCC" = yes; then
4599 CFLAGS="-O2"
4600 else
4601 CFLAGS=
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4605 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4606 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 ac_cv_prog_cc_c89=no
4610 ac_save_CC=$CC
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 #include <stdarg.h>
4614 #include <stdio.h>
4615 #include <sys/types.h>
4616 #include <sys/stat.h>
4617 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4618 struct buf { int x; };
4619 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4620 static char *e (p, i)
4621 char **p;
4622 int i;
4624 return p[i];
4626 static char *f (char * (*g) (char **, int), char **p, ...)
4628 char *s;
4629 va_list v;
4630 va_start (v,p);
4631 s = g (p, va_arg (v,int));
4632 va_end (v);
4633 return s;
4636 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4637 function prototypes and stuff, but not '\xHH' hex character constants.
4638 These don't provoke an error unfortunately, instead are silently treated
4639 as 'x'. The following induces an error, until -std is added to get
4640 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4641 array size at least. It's necessary to write '\x00'==0 to get something
4642 that's true only with -std. */
4643 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4645 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4646 inside strings and character constants. */
4647 #define FOO(x) 'x'
4648 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4650 int test (int i, double x);
4651 struct s1 {int (*f) (int a);};
4652 struct s2 {int (*f) (double a);};
4653 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4654 int argc;
4655 char **argv;
4657 main ()
4659 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4661 return 0;
4663 _ACEOF
4664 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4665 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4667 CC="$ac_save_CC $ac_arg"
4668 if ac_fn_c_try_compile "$LINENO"; then :
4669 ac_cv_prog_cc_c89=$ac_arg
4671 rm -f core conftest.err conftest.$ac_objext
4672 test "x$ac_cv_prog_cc_c89" != "xno" && break
4673 done
4674 rm -f conftest.$ac_ext
4675 CC=$ac_save_CC
4678 # AC_CACHE_VAL
4679 case "x$ac_cv_prog_cc_c89" in
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4682 $as_echo "none needed" >&6; } ;;
4683 xno)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4685 $as_echo "unsupported" >&6; } ;;
4687 CC="$CC $ac_cv_prog_cc_c89"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4689 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4690 esac
4691 if test "x$ac_cv_prog_cc_c89" != xno; then :
4695 ac_ext=c
4696 ac_cpp='$CPP $CPPFLAGS'
4697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701 ac_ext=cpp
4702 ac_cpp='$CXXCPP $CPPFLAGS'
4703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4706 if test -z "$CXX"; then
4707 if test -n "$CCC"; then
4708 CXX=$CCC
4709 else
4710 if test -n "$ac_tool_prefix"; then
4711 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4714 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_CXX+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -n "$CXX"; then
4721 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4734 done
4735 done
4736 IFS=$as_save_IFS
4740 CXX=$ac_cv_prog_CXX
4741 if test -n "$CXX"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4743 $as_echo "$CXX" >&6; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4750 test -n "$CXX" && break
4751 done
4753 if test -z "$CXX"; then
4754 ac_ct_CXX=$CXX
4755 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4757 # Extract the first word of "$ac_prog", so it can be a program name with args.
4758 set dummy $ac_prog; ac_word=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 if test -n "$ac_ct_CXX"; then
4765 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_prog_ac_ct_CXX="$ac_prog"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4778 done
4779 done
4780 IFS=$as_save_IFS
4784 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4785 if test -n "$ac_ct_CXX"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4787 $as_echo "$ac_ct_CXX" >&6; }
4788 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4794 test -n "$ac_ct_CXX" && break
4795 done
4797 if test "x$ac_ct_CXX" = x; then
4798 CXX="g++"
4799 else
4800 case $cross_compiling:$ac_tool_warned in
4801 yes:)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4804 ac_tool_warned=yes ;;
4805 esac
4806 CXX=$ac_ct_CXX
4812 # Provide some information about the compiler.
4813 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4814 set X $ac_compile
4815 ac_compiler=$2
4816 for ac_option in --version -v -V -qversion; do
4817 { { ac_try="$ac_compiler $ac_option >&5"
4818 case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4821 esac
4822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4823 $as_echo "$ac_try_echo"; } >&5
4824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4825 ac_status=$?
4826 if test -s conftest.err; then
4827 sed '10a\
4828 ... rest of stderr output deleted ...
4829 10q' conftest.err >conftest.er1
4830 cat conftest.er1 >&5
4831 rm -f conftest.er1 conftest.err
4833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4834 test $ac_status = 0; }
4835 done
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4838 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4839 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4846 main ()
4848 #ifndef __GNUC__
4849 choke me
4850 #endif
4853 return 0;
4855 _ACEOF
4856 if ac_fn_cxx_try_compile "$LINENO"; then :
4857 ac_compiler_gnu=yes
4858 else
4859 ac_compiler_gnu=no
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4866 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4867 if test $ac_compiler_gnu = yes; then
4868 GXX=yes
4869 else
4870 GXX=
4872 ac_test_CXXFLAGS=${CXXFLAGS+set}
4873 ac_save_CXXFLAGS=$CXXFLAGS
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4875 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4876 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4880 ac_cxx_werror_flag=yes
4881 ac_cv_prog_cxx_g=no
4882 CXXFLAGS="-g"
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4887 main ()
4891 return 0;
4893 _ACEOF
4894 if ac_fn_cxx_try_compile "$LINENO"; then :
4895 ac_cv_prog_cxx_g=yes
4896 else
4897 CXXFLAGS=""
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4902 main ()
4906 return 0;
4908 _ACEOF
4909 if ac_fn_cxx_try_compile "$LINENO"; then :
4911 else
4912 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4913 CXXFLAGS="-g"
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4918 main ()
4922 return 0;
4924 _ACEOF
4925 if ac_fn_cxx_try_compile "$LINENO"; then :
4926 ac_cv_prog_cxx_g=yes
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4936 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4937 if test "$ac_test_CXXFLAGS" = set; then
4938 CXXFLAGS=$ac_save_CXXFLAGS
4939 elif test $ac_cv_prog_cxx_g = yes; then
4940 if test "$GXX" = yes; then
4941 CXXFLAGS="-g -O2"
4942 else
4943 CXXFLAGS="-g"
4945 else
4946 if test "$GXX" = yes; then
4947 CXXFLAGS="-O2"
4948 else
4949 CXXFLAGS=
4952 ac_ext=c
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959 # We must set the default linker to the linker used by gcc for the correct
4960 # operation of libtool. If LD is not defined and we are using gcc, try to
4961 # set the LD default to the ld used by gcc.
4962 if test -z "$LD"; then
4963 if test "$GCC" = yes; then
4964 case $build in
4965 *-*-mingw*)
4966 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4968 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4969 esac
4970 case $gcc_prog_ld in
4971 # Accept absolute paths.
4972 [\\/]* | [A-Za-z]:[\\/]*)
4973 LD="$gcc_prog_ld" ;;
4974 esac
4978 # Check whether -static-libstdc++ -static-libgcc is supported.
4979 have_static_libs=no
4980 if test "$GCC" = yes; then
4981 saved_LDFLAGS="$LDFLAGS"
4983 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4985 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4986 ac_ext=cpp
4987 ac_cpp='$CXXCPP $CPPFLAGS'
4988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4996 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4997 #error -static-libstdc++ not implemented
4998 #endif
4999 int main() {}
5000 _ACEOF
5001 if ac_fn_cxx_try_link "$LINENO"; then :
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5003 $as_echo "yes" >&6; }; have_static_libs=yes
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5008 rm -f core conftest.err conftest.$ac_objext \
5009 conftest$ac_exeext conftest.$ac_ext
5010 ac_ext=c
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 LDFLAGS="$saved_LDFLAGS"
5023 if test -n "$ac_tool_prefix"; then
5024 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5025 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 if test -n "$GNATBIND"; then
5032 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5045 done
5046 done
5047 IFS=$as_save_IFS
5051 GNATBIND=$ac_cv_prog_GNATBIND
5052 if test -n "$GNATBIND"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5054 $as_echo "$GNATBIND" >&6; }
5055 else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5062 if test -z "$ac_cv_prog_GNATBIND"; then
5063 ac_ct_GNATBIND=$GNATBIND
5064 # Extract the first word of "gnatbind", so it can be a program name with args.
5065 set dummy gnatbind; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 if test -n "$ac_ct_GNATBIND"; then
5072 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5085 done
5086 done
5087 IFS=$as_save_IFS
5091 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5092 if test -n "$ac_ct_GNATBIND"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5094 $as_echo "$ac_ct_GNATBIND" >&6; }
5095 else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5100 if test "x$ac_ct_GNATBIND" = x; then
5101 GNATBIND="no"
5102 else
5103 case $cross_compiling:$ac_tool_warned in
5104 yes:)
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5107 ac_tool_warned=yes ;;
5108 esac
5109 GNATBIND=$ac_ct_GNATBIND
5111 else
5112 GNATBIND="$ac_cv_prog_GNATBIND"
5115 if test -n "$ac_tool_prefix"; then
5116 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5117 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test -n "$GNATMAKE"; then
5124 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5137 done
5138 done
5139 IFS=$as_save_IFS
5143 GNATMAKE=$ac_cv_prog_GNATMAKE
5144 if test -n "$GNATMAKE"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5146 $as_echo "$GNATMAKE" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5154 if test -z "$ac_cv_prog_GNATMAKE"; then
5155 ac_ct_GNATMAKE=$GNATMAKE
5156 # Extract the first word of "gnatmake", so it can be a program name with args.
5157 set dummy gnatmake; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$ac_ct_GNATMAKE"; then
5164 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5177 done
5178 done
5179 IFS=$as_save_IFS
5183 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5184 if test -n "$ac_ct_GNATMAKE"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5186 $as_echo "$ac_ct_GNATMAKE" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5192 if test "x$ac_ct_GNATMAKE" = x; then
5193 GNATMAKE="no"
5194 else
5195 case $cross_compiling:$ac_tool_warned in
5196 yes:)
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5199 ac_tool_warned=yes ;;
5200 esac
5201 GNATMAKE=$ac_ct_GNATMAKE
5203 else
5204 GNATMAKE="$ac_cv_prog_GNATMAKE"
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5208 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5209 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 cat >conftest.adb <<EOF
5213 procedure conftest is begin null; end conftest;
5215 acx_cv_cc_gcc_supports_ada=no
5216 # There is a bug in old released versions of GCC which causes the
5217 # driver to exit successfully when the appropriate language module
5218 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5219 # Therefore we must check for the error message as well as an
5220 # unsuccessful exit.
5221 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5222 # given a .adb file, but produce no object file. So we must check
5223 # if an object file was really produced to guard against this.
5224 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5225 if test x"$errors" = x && test -f conftest.$ac_objext; then
5226 acx_cv_cc_gcc_supports_ada=yes
5228 rm -f conftest.*
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5231 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5233 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5234 have_gnat=yes
5235 else
5236 have_gnat=no
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5240 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5241 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 echo abfoo >t1
5245 echo cdfoo >t2
5246 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5247 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5248 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5250 else
5251 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5254 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5255 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5257 else
5258 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5261 rm t1 t2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5265 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5266 do_compare="$gcc_cv_prog_cmp_skip"
5270 # Check whether --enable-bootstrap was given.
5271 if test "${enable_bootstrap+set}" = set; then :
5272 enableval=$enable_bootstrap;
5273 else
5274 enable_bootstrap=default
5278 # Issue errors and warnings for invalid/strange bootstrap combinations.
5279 if test -r $srcdir/gcc/configure; then
5280 have_compiler=yes
5281 else
5282 have_compiler=no
5285 case "$have_compiler:$host:$target:$enable_bootstrap" in
5286 *:*:*:no) ;;
5288 # Default behavior. Enable bootstrap if we have a compiler
5289 # and we are in a native configuration.
5290 yes:$build:$build:default)
5291 enable_bootstrap=yes ;;
5293 *:*:*:default)
5294 enable_bootstrap=no ;;
5296 # We have a compiler and we are in a native configuration, bootstrap is ok
5297 yes:$build:$build:yes)
5300 # Other configurations, but we have a compiler. Assume the user knows
5301 # what he's doing.
5302 yes:*:*:yes)
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5304 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5307 # No compiler: if they passed --enable-bootstrap explicitly, fail
5308 no:*:*:yes)
5309 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5311 # Fail if wrong command line
5313 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5315 esac
5317 # Used for setting $lt_cv_objdir
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5319 $as_echo_n "checking for objdir... " >&6; }
5320 if test "${lt_cv_objdir+set}" = set; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 rm -f .libs 2>/dev/null
5324 mkdir .libs 2>/dev/null
5325 if test -d .libs; then
5326 lt_cv_objdir=.libs
5327 else
5328 # MS-DOS does not allow filenames that begin with a dot.
5329 lt_cv_objdir=_libs
5331 rmdir .libs 2>/dev/null
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5334 $as_echo "$lt_cv_objdir" >&6; }
5335 objdir=$lt_cv_objdir
5341 cat >>confdefs.h <<_ACEOF
5342 #define LT_OBJDIR "$lt_cv_objdir/"
5343 _ACEOF
5347 # Check for GMP, MPFR and MPC
5348 gmplibs="-lmpc -lmpfr -lgmp"
5349 gmpinc=
5350 have_gmp=no
5352 # Specify a location for mpc
5353 # check for this first so it ends up on the link line before mpfr.
5355 # Check whether --with-mpc was given.
5356 if test "${with_mpc+set}" = set; then :
5357 withval=$with_mpc;
5361 # Check whether --with-mpc-include was given.
5362 if test "${with_mpc_include+set}" = set; then :
5363 withval=$with_mpc_include;
5367 # Check whether --with-mpc-lib was given.
5368 if test "${with_mpc_lib+set}" = set; then :
5369 withval=$with_mpc_lib;
5373 if test "x$with_mpc" != x; then
5374 gmplibs="-L$with_mpc/lib $gmplibs"
5375 gmpinc="-I$with_mpc/include $gmpinc"
5377 if test "x$with_mpc_include" != x; then
5378 gmpinc="-I$with_mpc_include $gmpinc"
5380 if test "x$with_mpc_lib" != x; then
5381 gmplibs="-L$with_mpc_lib $gmplibs"
5383 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5384 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5385 gmpinc='-I$$s/mpc/src '"$gmpinc"
5386 # Do not test the mpc version. Assume that it is sufficient, since
5387 # it is in the source tree, and the library has not been built yet
5388 # but it would be included on the link line in the version check below
5389 # hence making the test fail.
5390 have_gmp=yes
5393 # Specify a location for mpfr
5394 # check for this first so it ends up on the link line before gmp.
5396 # Check whether --with-mpfr-dir was given.
5397 if test "${with_mpfr_dir+set}" = set; then :
5398 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5399 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5404 # Check whether --with-mpfr was given.
5405 if test "${with_mpfr+set}" = set; then :
5406 withval=$with_mpfr;
5410 # Check whether --with-mpfr-include was given.
5411 if test "${with_mpfr_include+set}" = set; then :
5412 withval=$with_mpfr_include;
5416 # Check whether --with-mpfr-lib was given.
5417 if test "${with_mpfr_lib+set}" = set; then :
5418 withval=$with_mpfr_lib;
5422 if test "x$with_mpfr" != x; then
5423 gmplibs="-L$with_mpfr/lib $gmplibs"
5424 gmpinc="-I$with_mpfr/include $gmpinc"
5426 if test "x$with_mpfr_include" != x; then
5427 gmpinc="-I$with_mpfr_include $gmpinc"
5429 if test "x$with_mpfr_lib" != x; then
5430 gmplibs="-L$with_mpfr_lib $gmplibs"
5432 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5433 # MPFR v3.1.0 moved the sources into a src sub-directory.
5434 if test -d ${srcdir}/mpfr/src; then
5435 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5436 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5437 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5438 else
5439 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5440 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5441 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5443 # Do not test the mpfr version. Assume that it is sufficient, since
5444 # it is in the source tree, and the library has not been built yet
5445 # but it would be included on the link line in the version check below
5446 # hence making the test fail.
5447 have_gmp=yes
5450 # Specify a location for gmp
5452 # Check whether --with-gmp-dir was given.
5453 if test "${with_gmp_dir+set}" = set; then :
5454 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5455 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5460 # Check whether --with-gmp was given.
5461 if test "${with_gmp+set}" = set; then :
5462 withval=$with_gmp;
5466 # Check whether --with-gmp-include was given.
5467 if test "${with_gmp_include+set}" = set; then :
5468 withval=$with_gmp_include;
5472 # Check whether --with-gmp-lib was given.
5473 if test "${with_gmp_lib+set}" = set; then :
5474 withval=$with_gmp_lib;
5479 if test "x$with_gmp" != x; then
5480 gmplibs="-L$with_gmp/lib $gmplibs"
5481 gmpinc="-I$with_gmp/include $gmpinc"
5483 if test "x$with_gmp_include" != x; then
5484 gmpinc="-I$with_gmp_include $gmpinc"
5486 if test "x$with_gmp_lib" != x; then
5487 gmplibs="-L$with_gmp_lib $gmplibs"
5489 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5490 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5491 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5492 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5493 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5494 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5495 # Do not test the gmp version. Assume that it is sufficient, since
5496 # it is in the source tree, and the library has not been built yet
5497 # but it would be included on the link line in the version check below
5498 # hence making the test fail.
5499 have_gmp=yes
5502 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5503 have_gmp=yes
5504 saved_CFLAGS="$CFLAGS"
5505 CFLAGS="$CFLAGS $gmpinc"
5506 # Check for the recommended and required versions of GMP.
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5508 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 #include "gmp.h"
5514 main ()
5517 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5518 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5519 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5520 choke me
5521 #endif
5524 return 0;
5526 _ACEOF
5527 if ac_fn_c_try_compile "$LINENO"; then :
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <gmp.h>
5532 main ()
5535 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5536 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5537 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5538 choke me
5539 #endif
5542 return 0;
5544 _ACEOF
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547 $as_echo "yes" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5550 $as_echo "buggy but acceptable" >&6; }
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 else
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }; have_gmp=no
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 # If we have GMP, check the MPFR version.
5560 if test x"$have_gmp" = xyes; then
5561 # Check for the recommended and required versions of MPFR.
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5563 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #include <gmp.h>
5567 #include <mpfr.h>
5569 main ()
5572 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5573 choke me
5574 #endif
5577 return 0;
5579 _ACEOF
5580 if ac_fn_c_try_compile "$LINENO"; then :
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 #include <gmp.h>
5584 #include <mpfr.h>
5586 main ()
5589 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5590 choke me
5591 #endif
5594 return 0;
5596 _ACEOF
5597 if ac_fn_c_try_compile "$LINENO"; then :
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5599 $as_echo "yes" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5602 $as_echo "buggy but acceptable" >&6; }
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }; have_gmp=no
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 # Check for the MPC header version.
5613 if test x"$have_gmp" = xyes ; then
5614 # Check for the recommended and required versions of MPC.
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5616 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <mpc.h>
5621 main ()
5624 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5625 choke me
5626 #endif
5629 return 0;
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <mpc.h>
5637 main ()
5640 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5641 choke me
5642 #endif
5645 return 0;
5647 _ACEOF
5648 if ac_fn_c_try_compile "$LINENO"; then :
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650 $as_echo "yes" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5653 $as_echo "buggy but acceptable" >&6; }
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }; have_gmp=no
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 # Now check the MPFR library.
5664 if test x"$have_gmp" = xyes; then
5665 saved_LIBS="$LIBS"
5666 LIBS="$LIBS $gmplibs"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5668 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <mpc.h>
5673 main ()
5676 mpfr_t n;
5677 mpfr_t x;
5678 mpc_t c;
5679 int t;
5680 mpfr_init (n);
5681 mpfr_init (x);
5682 mpfr_atan2 (n, n, x, GMP_RNDN);
5683 mpfr_erfc (n, x, GMP_RNDN);
5684 mpfr_subnormalize (x, t, GMP_RNDN);
5685 mpfr_clear(n);
5686 mpfr_clear(x);
5687 mpc_init2 (c, 53);
5688 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5689 mpc_cosh (c, c, MPC_RNDNN);
5690 mpc_pow (c, c, c, MPC_RNDNN);
5691 mpc_acosh (c, c, MPC_RNDNN);
5692 mpc_clear (c);
5695 return 0;
5697 _ACEOF
5698 if ac_fn_c_try_link "$LINENO"; then :
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5700 $as_echo "yes" >&6; }
5701 else
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }; have_gmp=no
5705 rm -f core conftest.err conftest.$ac_objext \
5706 conftest$ac_exeext conftest.$ac_ext
5707 LIBS="$saved_LIBS"
5710 CFLAGS="$saved_CFLAGS"
5712 # The library versions listed in the error message below should match
5713 # the HARD-minimums enforced above.
5714 if test x$have_gmp != xyes; then
5715 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5716 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5717 their locations. Source code for these libraries can be found at
5718 their respective hosting sites as well as at
5719 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5720 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5721 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5722 make sure that you have installed both the libraries and the header
5723 files. They may be located in separate packages." "$LINENO" 5
5727 # Flags needed for both GMP, MPFR and/or MPC.
5735 # Allow host libstdc++ to be specified for static linking with PPL.
5737 # Check whether --with-host-libstdcxx was given.
5738 if test "${with_host_libstdcxx+set}" = set; then :
5739 withval=$with_host_libstdcxx;
5743 case $with_host_libstdcxx in
5744 no|yes)
5745 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5747 esac
5749 # Libraries to use for stage1 or when not bootstrapping.
5751 # Check whether --with-stage1-libs was given.
5752 if test "${with_stage1_libs+set}" = set; then :
5753 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5754 stage1_libs=
5755 else
5756 stage1_libs=$withval
5758 else
5759 stage1_libs=$with_host_libstdcxx
5764 # Linker flags to use for stage1 or when not bootstrapping.
5766 # Check whether --with-stage1-ldflags was given.
5767 if test "${with_stage1_ldflags+set}" = set; then :
5768 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5769 stage1_ldflags=
5770 else
5771 stage1_ldflags=$withval
5773 else
5774 stage1_ldflags=
5775 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5776 # if supported. But if the user explicitly specified the libraries to use,
5777 # trust that they are doing what they want.
5778 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5779 stage1_ldflags="-static-libstdc++ -static-libgcc"
5785 # Libraries to use for stage2 and later builds. This defaults to the
5786 # argument passed to --with-host-libstdcxx.
5788 # Check whether --with-boot-libs was given.
5789 if test "${with_boot_libs+set}" = set; then :
5790 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5791 poststage1_libs=
5792 else
5793 poststage1_libs=$withval
5795 else
5796 poststage1_libs=$with_host_libstdcxx
5801 # Linker flags to use for stage2 and later builds.
5803 # Check whether --with-boot-ldflags was given.
5804 if test "${with_boot_ldflags+set}" = set; then :
5805 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5806 poststage1_ldflags=
5807 else
5808 poststage1_ldflags=$withval
5810 else
5811 poststage1_ldflags=
5812 # In stages 2 and 3, default to linking libstdc++ and libgcc
5813 # statically. But if the user explicitly specified the libraries to
5814 # use, trust that they are doing what they want.
5815 if test "$poststage1_libs" = ""; then
5816 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5822 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5823 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5824 # config/isl.m4
5827 # Check whether --with-cloog was given.
5828 if test "${with_cloog+set}" = set; then :
5829 withval=$with_cloog;
5833 # Check whether --with-isl was given.
5834 if test "${with_isl+set}" = set; then :
5835 withval=$with_isl;
5839 # Treat --without-isl as a request to disable
5840 # GRAPHITE support and skip all following checks.
5841 if test "x$with_isl" != "xno"; then
5842 # Check for ISL
5845 # Check whether --with-isl-include was given.
5846 if test "${with_isl_include+set}" = set; then :
5847 withval=$with_isl_include;
5851 # Check whether --with-isl-lib was given.
5852 if test "${with_isl_lib+set}" = set; then :
5853 withval=$with_isl_lib;
5857 # Check whether --enable-isl-version-check was given.
5858 if test "${enable_isl_version_check+set}" = set; then :
5859 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5860 else
5861 ENABLE_ISL_CHECK=yes
5865 # Initialize isllibs and islinc.
5866 case $with_isl in
5868 isllibs=
5869 islinc=
5871 "" | yes)
5874 isllibs="-L$with_isl/lib"
5875 islinc="-I$with_isl/include"
5877 esac
5878 if test "x${with_isl_include}" != x ; then
5879 islinc="-I$with_isl_include"
5881 if test "x${with_isl_lib}" != x; then
5882 isllibs="-L$with_isl_lib"
5884 if test "x${islinc}" = x && test "x${isllibs}" = x \
5885 && test -d ${srcdir}/isl; then
5886 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5887 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5888 ENABLE_ISL_CHECK=no
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5890 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5893 islinc="-DCLOOG_INT_GMP ${islinc}"
5894 isllibs="${isllibs} -lisl"
5898 if test "${ENABLE_ISL_CHECK}" = yes ; then
5899 _isl_saved_CFLAGS=$CFLAGS
5900 _isl_saved_LDFLAGS=$LDFLAGS
5901 _isl_saved_LIBS=$LIBS
5903 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5904 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5905 LIBS="${_isl_saved_LIBS} -lisl"
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
5908 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
5909 if test "$cross_compiling" = yes; then :
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 #include <isl/version.h>
5914 #include <string.h>
5916 main ()
5918 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
5919 return 1;
5922 return 0;
5924 _ACEOF
5925 if ac_fn_c_try_link "$LINENO"; then :
5926 gcc_cv_isl=yes
5927 else
5928 gcc_cv_isl=no
5930 rm -f core conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext conftest.$ac_ext
5933 else
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5936 #include <isl/version.h>
5937 #include <string.h>
5939 main ()
5941 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
5942 return 1;
5945 return 0;
5947 _ACEOF
5948 if ac_fn_c_try_run "$LINENO"; then :
5949 gcc_cv_isl=yes
5950 else
5951 gcc_cv_isl=no
5953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5954 conftest.$ac_objext conftest.beam conftest.$ac_ext
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5958 $as_echo "$gcc_cv_isl" >&6; }
5960 CFLAGS=$_isl_saved_CFLAGS
5961 LDFLAGS=$_isl_saved_LDFLAGS
5962 LIBS=$_isl_saved_LIBS
5970 if test "x${with_isl}" = xno; then
5971 graphite_requested=no
5972 elif test "x${with_isl}" != x \
5973 || test "x${with_isl_include}" != x \
5974 || test "x${with_isl_lib}" != x ; then
5975 graphite_requested=yes
5976 else
5977 graphite_requested=no
5982 if test "${gcc_cv_isl}" = no ; then
5983 isllibs=
5984 islinc=
5987 if test "${graphite_requested}" = yes \
5988 && test "x${isllibs}" = x \
5989 && test "x${islinc}" = x ; then
5991 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5996 if test "x$gcc_cv_isl" != "xno"; then
5997 # Check for CLOOG
6000 # Check whether --with-cloog-include was given.
6001 if test "${with_cloog_include+set}" = set; then :
6002 withval=$with_cloog_include;
6006 # Check whether --with-cloog-lib was given.
6007 if test "${with_cloog_lib+set}" = set; then :
6008 withval=$with_cloog_lib;
6012 # Check whether --enable-cloog-version-check was given.
6013 if test "${enable_cloog_version_check+set}" = set; then :
6014 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6015 else
6016 ENABLE_CLOOG_CHECK=yes
6020 # Initialize clooglibs and clooginc.
6021 case $with_cloog in
6023 clooglibs=
6024 clooginc=
6026 "" | yes)
6029 clooglibs="-L$with_cloog/lib"
6030 clooginc="-I$with_cloog/include"
6032 esac
6033 if test "x${with_cloog_include}" != x ; then
6034 clooginc="-I$with_cloog_include"
6036 if test "x${with_cloog_lib}" != x; then
6037 clooglibs="-L$with_cloog_lib"
6039 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6040 && test -d ${srcdir}/cloog; then
6041 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6042 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include'
6043 ENABLE_CLOOG_CHECK=no
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6045 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6048 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6049 clooglibs="${clooglibs} -lcloog-isl"
6055 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6056 _cloog_saved_CFLAGS=$CFLAGS
6057 _cloog_saved_LDFLAGS=$LDFLAGS
6059 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6060 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.1 of CLooG" >&5
6063 $as_echo_n "checking for version 0.18.1 of CLooG... " >&6; }
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066 #include "cloog/version.h"
6068 main ()
6070 #if CLOOG_VERSION_MAJOR != 0 \
6071 || CLOOG_VERSION_MINOR != 18 \
6072 || CLOOG_VERSION_REVISION < 1
6073 choke me
6074 #endif
6076 return 0;
6078 _ACEOF
6079 if ac_fn_c_try_compile "$LINENO"; then :
6080 gcc_cv_cloog=yes
6081 else
6082 gcc_cv_cloog=no
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6086 $as_echo "$gcc_cv_cloog" >&6; }
6088 CFLAGS=$_cloog_saved_CFLAGS
6089 LDFLAGS=$_cloog_saved_LDFLAGS
6098 if test "x${with_cloog}" = xno; then
6099 graphite_requested=no
6100 elif test "x${with_cloog}" != x \
6101 || test "x${with_cloog_include}" != x \
6102 || test "x${with_cloog_lib}" != x ; then
6103 graphite_requested=yes
6104 else
6105 graphite_requested=no
6110 if test "${gcc_cv_cloog}" = no ; then
6111 clooglibs=
6112 clooginc=
6115 if test "${graphite_requested}" = yes \
6116 && test "x${clooglibs}" = x \
6117 && test "x${clooginc}" = x ; then
6119 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6126 # If the ISL check failed, disable builds of in-tree
6127 # variants of both ISL and CLooG
6128 if test "x$with_isl" = xno ||
6129 test "x$gcc_cv_isl" = xno; then
6130 noconfigdirs="$noconfigdirs cloog isl"
6131 islinc=
6132 clooginc=
6133 clooglibs=
6136 # If the CLooG check failed, disable builds of in-tree
6137 # variants of CLooG
6138 if test "x$with_cloog" = xno ||
6139 test "x$gcc_cv_cloog" = xno; then
6140 noconfigdirs="$noconfigdirs cloog isl"
6141 clooginc=
6142 clooglibs=
6150 # Check for LTO support.
6151 # Check whether --enable-lto was given.
6152 if test "${enable_lto+set}" = set; then :
6153 enableval=$enable_lto; enable_lto=$enableval
6154 else
6155 enable_lto=yes; default_enable_lto=yes
6162 target_elf=no
6163 case $target in
6164 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6165 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6166 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6167 target_elf=no
6170 target_elf=yes
6172 esac
6174 if test $target_elf = yes; then :
6175 # ELF platforms build the lto-plugin always.
6176 build_lto_plugin=yes
6178 else
6179 if test x"$default_enable_lto" = x"yes" ; then
6180 case $target in
6181 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6182 # On other non-ELF platforms, LTO has yet to be validated.
6183 *) enable_lto=no ;;
6184 esac
6185 else
6186 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6187 # It would also be nice to check the binutils support, but we don't
6188 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6189 # warn during gcc/ subconfigure; unless you're bootstrapping with
6190 # -flto it won't be needed until after installation anyway.
6191 case $target in
6192 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6193 *) if test x"$enable_lto" = x"yes"; then
6194 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6197 esac
6199 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6200 # Build it unless LTO was explicitly disabled.
6201 case $target in
6202 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6203 *) ;;
6204 esac
6209 # Check whether --enable-linker-plugin-configure-flags was given.
6210 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6211 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6212 else
6213 extra_linker_plugin_configure_flags=
6217 # Check whether --enable-linker-plugin-flags was given.
6218 if test "${enable_linker_plugin_flags+set}" = set; then :
6219 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6220 else
6221 extra_linker_plugin_flags=
6227 # By default, C and C++ are the only stage 1 languages.
6228 stage1_languages=,c,
6230 # Target libraries that we bootstrap.
6231 bootstrap_target_libs=,target-libgcc,
6233 # Figure out what language subdirectories are present.
6234 # Look if the user specified --enable-languages="..."; if not, use
6235 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6236 # go away some day.
6237 # NB: embedded tabs in this IF block -- do not untabify
6238 if test -d ${srcdir}/gcc; then
6239 if test x"${enable_languages+set}" != xset; then
6240 if test x"${LANGUAGES+set}" = xset; then
6241 enable_languages="${LANGUAGES}"
6242 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6243 else
6244 enable_languages=all
6246 else
6247 if test x"${enable_languages}" = x ||
6248 test x"${enable_languages}" = xyes;
6249 then
6250 echo configure.in: --enable-languages needs at least one language argument 1>&2
6251 exit 1
6254 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6256 # 'f95' is the old name for the 'fortran' language. We issue a warning
6257 # and make the substitution.
6258 case ,${enable_languages}, in
6259 *,f95,*)
6260 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6261 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6263 esac
6265 # If bootstrapping, C++ must be enabled.
6266 case ",$enable_languages,:$enable_bootstrap" in
6267 *,c++,*:*) ;;
6268 *:yes)
6269 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6270 enable_languages="${enable_languages},c++"
6271 else
6272 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6275 esac
6277 # First scan to see if an enabled language requires some other language.
6278 # We assume that a given config-lang.in will list all the language
6279 # front ends it requires, even if some are required indirectly.
6280 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6281 case ${lang_frag} in
6282 ..) ;;
6283 # The odd quoting in the next line works around
6284 # an apparent bug in bash 1.12 on linux.
6285 ${srcdir}/gcc/[*]/config-lang.in) ;;
6287 # From the config-lang.in, get $language, $lang_requires, and
6288 # $lang_requires_boot_languages.
6289 language=
6290 lang_requires=
6291 lang_requires_boot_languages=
6292 . ${lang_frag}
6293 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6294 case ,${enable_languages}, in
6295 *,$other,*) ;;
6296 *,all,*) ;;
6297 *,$language,*)
6298 echo " \`$other' language required by \`$language'; enabling" 1>&2
6299 enable_languages="${enable_languages},${other}"
6301 esac
6302 done
6303 for other in ${lang_requires_boot_languages} ; do
6304 if test "$other" != "c"; then
6305 case ,${enable_stage1_languages}, in
6306 *,$other,*) ;;
6307 *,all,*) ;;
6309 case ,${enable_languages}, in
6310 *,$language,*)
6311 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6312 enable_stage1_languages="$enable_stage1_languages,${other}"
6314 esac
6316 esac
6318 done
6320 esac
6321 done
6323 new_enable_languages=,c,
6325 # If LTO is enabled, add the LTO front end.
6326 extra_host_libiberty_configure_flags=
6327 if test "$enable_lto" = "yes" ; then
6328 case ,${enable_languages}, in
6329 *,lto,*) ;;
6330 *) enable_languages="${enable_languages},lto" ;;
6331 esac
6332 if test "${build_lto_plugin}" = "yes" ; then
6333 configdirs="$configdirs lto-plugin"
6334 extra_host_libiberty_configure_flags=--enable-shared
6339 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6340 potential_languages=,c,
6342 enabled_target_libs=
6343 disabled_target_libs=
6345 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6346 case ${lang_frag} in
6347 ..) ;;
6348 # The odd quoting in the next line works around
6349 # an apparent bug in bash 1.12 on linux.
6350 ${srcdir}/gcc/[*]/config-lang.in) ;;
6352 # From the config-lang.in, get $language, $target_libs,
6353 # $lang_dirs, $boot_language, and $build_by_default
6354 language=
6355 target_libs=
6356 lang_dirs=
6357 subdir_requires=
6358 boot_language=no
6359 build_by_default=yes
6360 . ${lang_frag}
6361 if test x${language} = x; then
6362 echo "${lang_frag} doesn't set \$language." 1>&2
6363 exit 1
6366 if test "$language" = "c++"; then
6367 boot_language=yes
6370 add_this_lang=no
6371 case ,${enable_languages}, in
6372 *,${language},*)
6373 # Language was explicitly selected; include it
6374 # unless it is C, which is enabled by default.
6375 if test "$language" != "c"; then
6376 add_this_lang=yes
6379 *,all,*)
6380 # 'all' was selected, select it if it is a default language
6381 if test "$language" != "c"; then
6382 add_this_lang=${build_by_default}
6385 esac
6387 # Disable languages that need other directories if these aren't available.
6388 for i in $subdir_requires; do
6389 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6390 case ,${enable_languages}, in
6391 *,${language},*)
6392 # Specifically requested language; tell them.
6393 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6396 # Silently disable.
6397 add_this_lang=unsupported
6399 esac
6400 done
6402 # Disable Ada if no preexisting GNAT is available.
6403 case ,${enable_languages},:${language}:${have_gnat} in
6404 *,${language},*:ada:no)
6405 # Specifically requested language; tell them.
6406 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6408 *:ada:no)
6409 # Silently disable.
6410 add_this_lang=unsupported
6412 esac
6414 # Disable a language that is unsupported by the target.
6415 case " $unsupported_languages " in
6416 *" $language "*)
6417 add_this_lang=unsupported
6419 esac
6421 case $add_this_lang in
6422 unsupported)
6423 # Remove language-dependent dirs.
6424 disabled_target_libs="$disabled_target_libs $target_libs"
6425 noconfigdirs="$noconfigdirs $lang_dirs"
6428 # Remove language-dependent dirs; still show language as supported.
6429 disabled_target_libs="$disabled_target_libs $target_libs"
6430 noconfigdirs="$noconfigdirs $lang_dirs"
6431 potential_languages="${potential_languages}${language},"
6433 yes)
6434 new_enable_languages="${new_enable_languages}${language},"
6435 potential_languages="${potential_languages}${language},"
6436 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6437 enabled_target_libs="$enabled_target_libs $target_libs"
6438 case "${boot_language}:,$enable_stage1_languages," in
6439 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6440 # Add to (comma-separated) list of stage 1 languages.
6441 case ",$stage1_languages," in
6442 *,$language,* | ,yes, | ,all,) ;;
6443 *) stage1_languages="${stage1_languages}${language}," ;;
6444 esac
6445 # We need to bootstrap any supporting libraries.
6446 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6448 esac
6450 esac
6452 esac
6453 done
6455 # Add target libraries which are only needed for disabled languages
6456 # to noconfigdirs.
6457 if test -n "$disabled_target_libs"; then
6458 for dir in $disabled_target_libs; do
6459 case " $enabled_target_libs " in
6460 *" ${dir} "*) ;;
6461 *) noconfigdirs="$noconfigdirs $dir" ;;
6462 esac
6463 done
6466 # Check whether --enable-stage1-languages was given.
6467 if test "${enable_stage1_languages+set}" = set; then :
6468 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6469 ,no,|,,)
6470 # Set it to something that will have no effect in the loop below
6471 enable_stage1_languages=c ;;
6472 ,yes,)
6473 enable_stage1_languages=`echo $new_enable_languages | \
6474 sed -e "s/^,//" -e "s/,$//" ` ;;
6475 *,all,*)
6476 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6477 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6478 esac
6480 # Add "good" languages from enable_stage1_languages to stage1_languages,
6481 # while "bad" languages go in missing_languages. Leave no duplicates.
6482 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6483 case $potential_languages in
6484 *,$i,*)
6485 case $stage1_languages in
6486 *,$i,*) ;;
6487 *) stage1_languages="$stage1_languages$i," ;;
6488 esac ;;
6490 case $missing_languages in
6491 *,$i,*) ;;
6492 *) missing_languages="$missing_languages$i," ;;
6493 esac ;;
6494 esac
6495 done
6499 # Remove leading/trailing commas that were added for simplicity
6500 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6501 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6502 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6503 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6505 if test "x$missing_languages" != x; then
6506 as_fn_error "
6507 The following requested languages could not be built: ${missing_languages}
6508 Supported languages are: ${potential_languages}" "$LINENO" 5
6510 if test "x$new_enable_languages" != "x$enable_languages"; then
6511 echo The following languages will be built: ${new_enable_languages}
6512 enable_languages="$new_enable_languages"
6516 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6519 # Handle --disable-<component> generically.
6520 for dir in $configdirs $build_configdirs $target_configdirs ; do
6521 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6522 varname=`echo $dirname | sed -e s/+/_/g`
6523 if eval test x\${enable_${varname}} "=" xno ; then
6524 noconfigdirs="$noconfigdirs $dir"
6526 done
6528 # Check for Boehm's garbage collector
6529 # Check whether --enable-objc-gc was given.
6530 if test "${enable_objc_gc+set}" = set; then :
6531 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6532 *,objc,*:*:yes:*target-boehm-gc*)
6533 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6535 esac
6539 # Make sure we only build Boehm's garbage collector if required.
6540 case ,${enable_languages},:${enable_objc_gc} in
6541 *,objc,*:yes)
6542 # Keep target-boehm-gc if requested for Objective-C.
6545 # Otherwise remove target-boehm-gc depending on target-libjava.
6546 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6547 noconfigdirs="$noconfigdirs target-boehm-gc"
6550 esac
6552 # Disable libcilkrts, libitm, libsanitizer, libvtv if we're not building C++
6553 case ,${enable_languages}, in
6554 *,c++,*)
6555 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6556 case "${noconfigdirs}" in
6557 *target-libstdc++-v3*)
6558 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6560 *) ;;
6561 esac
6564 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6566 esac
6568 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6569 # $build_configdirs and $target_configdirs.
6570 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6572 notsupp=""
6573 for dir in . $skipdirs $noconfigdirs ; do
6574 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6575 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6576 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6577 if test -r $srcdir/$dirname/configure ; then
6578 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6579 true
6580 else
6581 notsupp="$notsupp $dir"
6585 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6586 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6587 if test -r $srcdir/$dirname/configure ; then
6588 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6589 true
6590 else
6591 notsupp="$notsupp $dir"
6595 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6596 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6597 if test -r $srcdir/$dirname/configure ; then
6598 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6599 true
6600 else
6601 notsupp="$notsupp $dir"
6605 done
6607 # Quietly strip out all directories which aren't configurable in this tree.
6608 # This relies on all configurable subdirectories being autoconfiscated, which
6609 # is now the case.
6610 build_configdirs_all="$build_configdirs"
6611 build_configdirs=
6612 for i in ${build_configdirs_all} ; do
6613 j=`echo $i | sed -e s/build-//g`
6614 if test -f ${srcdir}/$j/configure ; then
6615 build_configdirs="${build_configdirs} $i"
6617 done
6619 configdirs_all="$configdirs"
6620 configdirs=
6621 for i in ${configdirs_all} ; do
6622 if test -f ${srcdir}/$i/configure ; then
6623 configdirs="${configdirs} $i"
6625 done
6627 target_configdirs_all="$target_configdirs"
6628 target_configdirs=
6629 for i in ${target_configdirs_all} ; do
6630 j=`echo $i | sed -e s/target-//g`
6631 if test -f ${srcdir}/$j/configure ; then
6632 target_configdirs="${target_configdirs} $i"
6634 done
6636 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6637 # so we have to add it after the preceding checks.
6638 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6639 then
6640 case " $configdirs " in
6641 *" libiberty "*)
6642 # If we can build libiberty, we can also build libiberty-linker-plugin.
6643 configdirs="$configdirs libiberty-linker-plugin"
6644 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6645 --with-libiberty=../libiberty-linker-plugin";;
6647 as_fn_error "libiberty missing" "$LINENO" 5;;
6648 esac
6651 # Produce a warning message for the subdirs we can't configure.
6652 # This isn't especially interesting in the Cygnus tree, but in the individual
6653 # FSF releases, it's important to let people know when their machine isn't
6654 # supported by the one or two programs in a package.
6656 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6657 # If $appdirs is non-empty, at least one of those directories must still
6658 # be configured, or we error out. (E.g., if the gas release supports a
6659 # specified target in some subdirs but not the gas subdir, we shouldn't
6660 # pretend that all is well.)
6661 if test -n "$appdirs" ; then
6662 for dir in $appdirs ; do
6663 if test -r $dir/Makefile.in ; then
6664 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6665 appdirs=""
6666 break
6668 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6669 appdirs=""
6670 break
6673 done
6674 if test -n "$appdirs" ; then
6675 echo "*** This configuration is not supported by this package." 1>&2
6676 exit 1
6679 # Okay, some application will build, or we don't care to check. Still
6680 # notify of subdirs not getting built.
6681 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6682 echo " ${notsupp}" 1>&2
6683 echo " (Any other directories should still work fine.)" 1>&2
6686 case "$host" in
6687 *msdosdjgpp*)
6688 enable_gdbtk=no ;;
6689 esac
6691 # To find our prefix, in gcc_cv_tool_prefix.
6693 # The user is always right.
6694 if test "${PATH_SEPARATOR+set}" != set; then
6695 echo "#! /bin/sh" >conf$$.sh
6696 echo "exit 0" >>conf$$.sh
6697 chmod +x conf$$.sh
6698 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6699 PATH_SEPARATOR=';'
6700 else
6701 PATH_SEPARATOR=:
6703 rm -f conf$$.sh
6708 if test "x$exec_prefix" = xNONE; then
6709 if test "x$prefix" = xNONE; then
6710 gcc_cv_tool_prefix=$ac_default_prefix
6711 else
6712 gcc_cv_tool_prefix=$prefix
6714 else
6715 gcc_cv_tool_prefix=$exec_prefix
6718 # If there is no compiler in the tree, use the PATH only. In any
6719 # case, if there is no compiler in the tree nobody should use
6720 # AS_FOR_TARGET and LD_FOR_TARGET.
6721 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6722 gcc_version=`cat $srcdir/gcc/BASE-VER`
6723 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6724 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6725 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6726 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6727 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6728 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6729 else
6730 gcc_cv_tool_dirs=
6733 if test x$build = x$target && test -n "$md_exec_prefix"; then
6734 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6739 copy_dirs=
6742 # Check whether --with-build-sysroot was given.
6743 if test "${with_build_sysroot+set}" = set; then :
6744 withval=$with_build_sysroot; if test x"$withval" != x ; then
6745 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6747 else
6748 SYSROOT_CFLAGS_FOR_TARGET=
6754 # Check whether --with-debug-prefix-map was given.
6755 if test "${with_debug_prefix_map+set}" = set; then :
6756 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6757 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6758 for debug_map in $withval; do
6759 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6760 done
6762 else
6763 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6768 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6769 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6770 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6771 # We want to ensure that TARGET libraries (which we know are built with
6772 # gcc) are built with "-O2 -g", so include those options when setting
6773 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6774 if test "x$CFLAGS_FOR_TARGET" = x; then
6775 CFLAGS_FOR_TARGET=$CFLAGS
6776 case " $CFLAGS " in
6777 *" -O2 "*) ;;
6778 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6779 esac
6780 case " $CFLAGS " in
6781 *" -g "* | *" -g3 "*) ;;
6782 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6783 esac
6787 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6788 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6789 case " $CXXFLAGS " in
6790 *" -O2 "*) ;;
6791 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6792 esac
6793 case " $CXXFLAGS " in
6794 *" -g "* | *" -g3 "*) ;;
6795 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6796 esac
6802 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6803 # the named directory are copied to $(tooldir)/sys-include.
6804 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6805 if test x${is_cross_compiler} = xno ; then
6806 echo 1>&2 '***' --with-headers is only supported when cross compiling
6807 exit 1
6809 if test x"${with_headers}" != xyes ; then
6810 x=${gcc_cv_tool_prefix}
6811 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6815 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6816 # the name directories are copied to $(tooldir)/lib. Multiple directories
6817 # are permitted.
6818 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6819 if test x${is_cross_compiler} = xno ; then
6820 echo 1>&2 '***' --with-libs is only supported when cross compiling
6821 exit 1
6823 if test x"${with_libs}" != xyes ; then
6824 # Copy the libraries in reverse order, so that files in the first named
6825 # library override files in subsequent libraries.
6826 x=${gcc_cv_tool_prefix}
6827 for l in ${with_libs}; do
6828 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6829 done
6833 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6835 # This is done by determining whether or not the appropriate directory
6836 # is available, and by checking whether or not specific configurations
6837 # have requested that this magic not happen.
6839 # The command line options always override the explicit settings in
6840 # configure.in, and the settings in configure.in override this magic.
6842 # If the default for a toolchain is to use GNU as and ld, and you don't
6843 # want to do that, then you should use the --without-gnu-as and
6844 # --without-gnu-ld options for the configure script. Similarly, if
6845 # the default is to use the included zlib and you don't want to do that,
6846 # you should use the --with-system-zlib option for the configure script.
6848 if test x${use_gnu_as} = x &&
6849 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6850 with_gnu_as=yes
6851 extra_host_args="$extra_host_args --with-gnu-as"
6854 if test x${use_gnu_ld} = x &&
6855 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6856 with_gnu_ld=yes
6857 extra_host_args="$extra_host_args --with-gnu-ld"
6860 if test x${use_included_zlib} = x &&
6861 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6863 else
6864 with_system_zlib=yes
6865 extra_host_args="$extra_host_args --with-system-zlib"
6868 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6869 # can detect this case.
6871 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6872 with_newlib=yes
6873 extra_host_args="$extra_host_args --with-newlib"
6876 # Handle ${copy_dirs}
6877 set fnord ${copy_dirs}
6878 shift
6879 while test $# != 0 ; do
6880 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6882 else
6883 echo Copying $1 to $2
6885 # Use the install script to create the directory and all required
6886 # parent directories.
6887 if test -d $2 ; then
6889 else
6890 echo >config.temp
6891 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6894 # Copy the directory, assuming we have tar.
6895 # FIXME: Should we use B in the second tar? Not all systems support it.
6896 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6898 # It is the responsibility of the user to correctly adjust all
6899 # symlinks. If somebody can figure out how to handle them correctly
6900 # here, feel free to add the code.
6902 echo $1 > $2/COPIED
6904 shift; shift
6905 done
6907 # Determine a target-dependent exec_prefix that the installed
6908 # gcc will search in. Keep this list sorted by triplet, with
6909 # the *-*-osname triplets last.
6910 md_exec_prefix=
6911 case "${target}" in
6912 i[34567]86-pc-msdosdjgpp*)
6913 md_exec_prefix=/dev/env/DJDIR/bin
6915 *-*-hpux* | \
6916 *-*-nto-qnx* | \
6917 *-*-solaris2*)
6918 md_exec_prefix=/usr/ccs/bin
6920 esac
6922 extra_arflags_for_target=
6923 extra_nmflags_for_target=
6924 extra_ranlibflags_for_target=
6925 target_makefile_frag=/dev/null
6926 case "${target}" in
6927 spu-*-*)
6928 target_makefile_frag="config/mt-spu"
6930 mips*-sde-elf* | mips*-mti-elf*)
6931 target_makefile_frag="config/mt-sde"
6933 mipsisa*-*-elfoabi*)
6934 target_makefile_frag="config/mt-mips-elfoabi"
6936 mips*-*-*linux* | mips*-*-gnu*)
6937 target_makefile_frag="config/mt-mips-gnu"
6939 nios2-*-elf*)
6940 target_makefile_frag="config/mt-nios2-elf"
6942 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6943 target_makefile_frag="config/mt-gnu"
6945 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6946 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6947 # commands to handle both 32-bit and 64-bit objects. These flags are
6948 # harmless if we're using GNU nm or ar.
6949 extra_arflags_for_target=" -X32_64"
6950 extra_nmflags_for_target=" -B -X32_64"
6952 esac
6954 alphaieee_frag=/dev/null
6955 case $target in
6956 alpha*-*-*)
6957 # This just makes sure to use the -mieee option to build target libs.
6958 # This should probably be set individually by each library.
6959 alphaieee_frag="config/mt-alphaieee"
6961 esac
6963 # If --enable-target-optspace always use -Os instead of -O2 to build
6964 # the target libraries, similarly if it is not specified, use -Os
6965 # on selected platforms.
6966 ospace_frag=/dev/null
6967 case "${enable_target_optspace}:${target}" in
6968 yes:*)
6969 ospace_frag="config/mt-ospace"
6971 :d30v-*)
6972 ospace_frag="config/mt-d30v"
6974 :m32r-* | :d10v-* | :fr30-*)
6975 ospace_frag="config/mt-ospace"
6977 no:* | :*)
6980 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6982 esac
6984 # Some systems (e.g., one of the i386-aix systems the gas testers are
6985 # using) don't handle "\$" correctly, so don't use it here.
6986 tooldir='${exec_prefix}'/${target_noncanonical}
6987 build_tooldir=${tooldir}
6989 # Create a .gdbinit file which runs the one in srcdir
6990 # and tells GDB to look there for source files.
6992 if test -r ${srcdir}/.gdbinit ; then
6993 case ${srcdir} in
6994 .) ;;
6995 *) cat > ./.gdbinit <<EOF
6996 # ${NO_EDIT}
6997 dir ${srcdir}
6998 dir .
6999 source ${srcdir}/.gdbinit
7002 esac
7005 # Make sure that the compiler is able to generate an executable. If it
7006 # can't, we are probably in trouble. We don't care whether we can run the
7007 # executable--we might be using a cross compiler--we only care whether it
7008 # can be created. At this point the main configure script has set CC.
7009 we_are_ok=no
7010 echo "int main () { return 0; }" > conftest.c
7011 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7012 if test $? = 0 ; then
7013 if test -s conftest || test -s conftest.exe ; then
7014 we_are_ok=yes
7017 case $we_are_ok in
7019 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7020 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7021 rm -f conftest*
7022 exit 1
7024 esac
7025 rm -f conftest*
7027 # Decide which environment variable is used to find dynamic libraries.
7028 case "${host}" in
7029 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7030 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7031 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7032 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7033 esac
7035 # On systems where the dynamic library environment variable is PATH,
7036 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7037 # built executables to PATH.
7038 if test "$RPATH_ENVVAR" = PATH; then
7039 GCC_SHLIB_SUBDIR=/shlib
7040 else
7041 GCC_SHLIB_SUBDIR=
7044 # Adjust the toplevel makefile according to whether bootstrap was selected.
7045 case $enable_bootstrap in
7046 yes)
7047 bootstrap_suffix=bootstrap
7048 BUILD_CONFIG=bootstrap-debug
7051 bootstrap_suffix=no-bootstrap
7052 BUILD_CONFIG=
7054 esac
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7057 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7060 # Check whether --with-build-config was given.
7061 if test "${with_build_config+set}" = set; then :
7062 withval=$with_build_config; case $with_build_config in
7063 yes) with_build_config= ;;
7064 no) with_build_config= BUILD_CONFIG= ;;
7065 esac
7069 if test "x${with_build_config}" != x; then
7070 BUILD_CONFIG=$with_build_config
7071 else
7072 case $BUILD_CONFIG in
7073 bootstrap-debug)
7074 if echo "int f (void) { return 0; }" > conftest.c &&
7075 ${CC} -c conftest.c &&
7076 mv conftest.o conftest.o.g0 &&
7077 ${CC} -c -g conftest.c &&
7078 mv conftest.o conftest.o.g &&
7079 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7081 else
7082 BUILD_CONFIG=
7084 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7086 esac
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7089 $as_echo "$BUILD_CONFIG" >&6; }
7092 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7094 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7095 # Check whether --enable-vtable-verify was given.
7096 if test "${enable_vtable_verify+set}" = set; then :
7097 enableval=$enable_vtable_verify; case "$enableval" in
7098 yes) enable_vtable_verify=yes ;;
7099 no) enable_vtable_verify=no ;;
7100 *) enable_vtable_verify=no;;
7101 esac
7102 else
7103 enable_vtable_verify=no
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7107 $as_echo "$enable_vtable_verify" >&6; }
7109 # Record target_configdirs and the configure arguments for target and
7110 # build configuration in Makefile.
7111 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7112 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7113 bootstrap_fixincludes=no
7115 # If we are building libgomp, bootstrap it.
7116 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7117 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7120 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7121 # or bootstrap-ubsan, bootstrap it.
7122 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7123 case "$BUILD_CONFIG" in
7124 *bootstrap-asan* | *bootstrap-ubsan* )
7125 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7126 bootstrap_fixincludes=yes
7128 esac
7131 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7132 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7133 test "$enable_vtable_verify" != no; then
7134 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7137 # Determine whether gdb needs tk/tcl or not.
7138 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7139 # and in that case we want gdb to be built without tk. Ugh!
7140 # In fact I believe gdb is the *only* package directly dependent on tk,
7141 # so we should be able to put the 'maybe's in unconditionally and
7142 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7143 # 100% sure that that's safe though.
7145 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7146 case "$enable_gdbtk" in
7148 GDB_TK="" ;;
7149 yes)
7150 GDB_TK="${gdb_tk}" ;;
7152 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7153 # distro. Eventually someone will fix this and move Insight, nee
7154 # gdbtk to a separate directory.
7155 if test -d ${srcdir}/gdb/gdbtk ; then
7156 GDB_TK="${gdb_tk}"
7157 else
7158 GDB_TK=""
7161 esac
7162 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7163 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7165 # Strip out unwanted targets.
7167 # While at that, we remove Makefiles if we were started for recursive
7168 # configuration, so that the top-level Makefile reconfigures them,
7169 # like we used to do when configure itself was recursive.
7171 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7172 # but now we're fixing up the Makefile ourselves with the additional
7173 # commands passed to AC_CONFIG_FILES. Use separate variables
7174 # extrasub-{build,host,target} not because there is any reason to split
7175 # the substitutions up that way, but only to remain below the limit of
7176 # 99 commands in a script, for HP-UX sed.
7177 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7179 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7180 yes:yes:*\ gold\ *:*,c++,*) ;;
7181 yes:yes:*\ gold\ *:*)
7182 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7184 esac
7186 extrasub_build=
7187 for module in ${build_configdirs} ; do
7188 if test -z "${no_recursion}" \
7189 && test -f ${build_subdir}/${module}/Makefile; then
7190 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7191 rm -f ${build_subdir}/${module}/Makefile
7193 extrasub_build="$extrasub_build
7194 /^@if build-$module\$/d
7195 /^@endif build-$module\$/d
7196 /^@if build-$module-$bootstrap_suffix\$/d
7197 /^@endif build-$module-$bootstrap_suffix\$/d"
7198 done
7199 extrasub_host=
7200 for module in ${configdirs} ; do
7201 if test -z "${no_recursion}"; then
7202 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7203 if test -f ${file}; then
7204 echo 1>&2 "*** removing ${file} to force reconfigure"
7205 rm -f ${file}
7207 done
7209 case ${module},${bootstrap_fixincludes} in
7210 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7211 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7212 esac
7213 extrasub_host="$extrasub_host
7214 /^@if $module\$/d
7215 /^@endif $module\$/d
7216 /^@if $module-$host_bootstrap_suffix\$/d
7217 /^@endif $module-$host_bootstrap_suffix\$/d"
7218 done
7219 extrasub_target=
7220 for module in ${target_configdirs} ; do
7221 if test -z "${no_recursion}" \
7222 && test -f ${target_subdir}/${module}/Makefile; then
7223 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7224 rm -f ${target_subdir}/${module}/Makefile
7227 # We only bootstrap target libraries listed in bootstrap_target_libs.
7228 case $bootstrap_target_libs in
7229 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7230 *) target_bootstrap_suffix=no-bootstrap ;;
7231 esac
7233 extrasub_target="$extrasub_target
7234 /^@if target-$module\$/d
7235 /^@endif target-$module\$/d
7236 /^@if target-$module-$target_bootstrap_suffix\$/d
7237 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7238 done
7240 # Do the final fixup along with target modules.
7241 extrasub_target="$extrasub_target
7242 /^@if /,/^@endif /d"
7244 # Create the serialization dependencies. This uses a temporary file.
7246 # Check whether --enable-serial-configure was given.
7247 if test "${enable_serial_configure+set}" = set; then :
7248 enableval=$enable_serial_configure;
7252 case ${enable_serial_configure} in
7253 yes)
7254 enable_serial_build_configure=yes
7255 enable_serial_host_configure=yes
7256 enable_serial_target_configure=yes
7258 esac
7260 # These force 'configure's to be done one at a time, to avoid problems
7261 # with contention over a shared config.cache.
7262 rm -f serdep.tmp
7263 echo '# serdep.tmp' > serdep.tmp
7264 olditem=
7265 test "x${enable_serial_build_configure}" = xyes &&
7266 for item in ${build_configdirs} ; do
7267 case ${olditem} in
7268 "") ;;
7269 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7270 esac
7271 olditem=${item}
7272 done
7273 olditem=
7274 test "x${enable_serial_host_configure}" = xyes &&
7275 for item in ${configdirs} ; do
7276 case ${olditem} in
7277 "") ;;
7278 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7279 esac
7280 olditem=${item}
7281 done
7282 olditem=
7283 test "x${enable_serial_target_configure}" = xyes &&
7284 for item in ${target_configdirs} ; do
7285 case ${olditem} in
7286 "") ;;
7287 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7288 esac
7289 olditem=${item}
7290 done
7291 serialization_dependencies=serdep.tmp
7294 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7295 # target, nonopt, and variable assignments. These are the ones we
7296 # might not want to pass down to subconfigures. The exception being
7297 # --cache-file=/dev/null, which is used to turn off the use of cache
7298 # files altogether, and which should be passed on to subconfigures.
7299 # Also strip program-prefix, program-suffix, and program-transform-name,
7300 # so that we can pass down a consistent program-transform-name.
7301 baseargs=
7302 tbaseargs=
7303 keep_next=no
7304 skip_next=no
7305 eval "set -- $ac_configure_args"
7306 for ac_arg
7308 if test X"$skip_next" = X"yes"; then
7309 skip_next=no
7310 continue
7312 if test X"$keep_next" = X"yes"; then
7313 case $ac_arg in
7314 *\'*)
7315 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7316 esac
7317 baseargs="$baseargs '$ac_arg'"
7318 tbaseargs="$tbaseargs '$ac_arg'"
7319 keep_next=no
7320 continue
7323 # Handle separated arguments. Based on the logic generated by
7324 # autoconf 2.59.
7325 case $ac_arg in
7326 *=* | --config-cache | -C | -disable-* | --disable-* \
7327 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7328 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7329 | -with-* | --with-* | -without-* | --without-* | --x)
7330 separate_arg=no
7333 separate_arg=yes
7336 separate_arg=no
7338 esac
7340 skip_targ=no
7341 case $ac_arg in
7343 --with-* | --without-*)
7344 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7346 case $libopt in
7347 *[-_]include)
7348 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7350 *[-_]lib)
7351 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7354 lib=$libopt
7356 esac
7359 case $lib in
7360 mpc | mpfr | gmp | isl | cloog)
7361 # If we're processing --with-$lib, --with-$lib-include or
7362 # --with-$lib-lib, for one of the libs above, and target is
7363 # different from host, don't pass the current argument to any
7364 # target library's configure.
7365 if test x$is_cross_compiler = xyes; then
7366 skip_targ=yes
7369 esac
7371 esac
7373 case "$ac_arg" in
7374 --cache-file=/dev/null | \
7375 -cache-file=/dev/null )
7376 # Handled here to avoid the test to skip args below.
7377 baseargs="$baseargs '$ac_arg'"
7378 tbaseargs="$tbaseargs '$ac_arg'"
7379 # Assert: $separate_arg should always be no.
7380 keep_next=$separate_arg
7382 --no*)
7383 continue
7385 --c* | \
7386 --sr* | \
7387 --ho* | \
7388 --bu* | \
7389 --t* | \
7390 --program-* | \
7391 -cache_file* | \
7392 -srcdir* | \
7393 -host* | \
7394 -build* | \
7395 -target* | \
7396 -program-prefix* | \
7397 -program-suffix* | \
7398 -program-transform-name* )
7399 skip_next=$separate_arg
7400 continue
7403 # An option. Add it.
7404 case $ac_arg in
7405 *\'*)
7406 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7407 esac
7408 baseargs="$baseargs '$ac_arg'"
7409 if test X"$skip_targ" = Xno; then
7410 tbaseargs="$tbaseargs '$ac_arg'"
7412 keep_next=$separate_arg
7415 # Either a variable assignment, or a nonopt (triplet). Don't
7416 # pass it down; let the Makefile handle this.
7417 continue
7419 esac
7420 done
7421 # Remove the initial space we just introduced and, as these will be
7422 # expanded by make, quote '$'.
7423 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7425 # Add in --program-transform-name, after --program-prefix and
7426 # --program-suffix have been applied to it. Autoconf has already
7427 # doubled dollar signs and backslashes in program_transform_name; we want
7428 # the backslashes un-doubled, and then the entire thing wrapped in single
7429 # quotes, because this will be expanded first by make and then by the shell.
7430 # Also, because we want to override the logic in subdir configure scripts to
7431 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7432 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7433 ${program_transform_name}
7434 EOF_SED
7435 gcc_transform_name=`cat conftestsed.out`
7436 rm -f conftestsed.out
7437 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7438 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7439 if test "$silent" = yes; then
7440 baseargs="$baseargs --silent"
7441 tbaseargs="$tbaseargs --silent"
7443 baseargs="$baseargs --disable-option-checking"
7444 tbaseargs="$tbaseargs --disable-option-checking"
7446 # Record and document user additions to sub configure arguments.
7451 # For the build-side libraries, we just need to pretend we're native,
7452 # and not use the same cache file. Multilibs are neither needed nor
7453 # desired.
7454 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7456 # For host modules, accept cache file option, or specification as blank.
7457 case "${cache_file}" in
7458 "") # empty
7459 cache_file_option="" ;;
7460 /* | [A-Za-z]:[\\/]* ) # absolute path
7461 cache_file_option="--cache-file=${cache_file}" ;;
7462 *) # relative path
7463 cache_file_option="--cache-file=../${cache_file}" ;;
7464 esac
7466 # Host dirs don't like to share a cache file either, horribly enough.
7467 # This seems to be due to autoconf 2.5x stupidity.
7468 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7470 target_configargs="$target_configargs ${tbaseargs}"
7472 # Passing a --with-cross-host argument lets the target libraries know
7473 # whether they are being built with a cross-compiler or being built
7474 # native. However, it would be better to use other mechanisms to make the
7475 # sorts of decisions they want to make on this basis. Please consider
7476 # this option to be deprecated. FIXME.
7477 if test x${is_cross_compiler} = xyes ; then
7478 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7481 # Special user-friendly check for native x86_64-linux build, if
7482 # multilib is not explicitly enabled.
7483 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7484 x86_64-*linux*:yes:$build:$build:)
7485 # Make sure we have a developement environment that handles 32-bit
7486 dev64=no
7487 echo "int main () { return 0; }" > conftest.c
7488 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7489 if test $? = 0 ; then
7490 if test -s conftest || test -s conftest.exe ; then
7491 dev64=yes
7494 rm -f conftest*
7495 if test x${dev64} != xyes ; then
7496 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7499 esac
7501 # Default to --enable-multilib.
7502 if test x${enable_multilib} = x ; then
7503 target_configargs="--enable-multilib ${target_configargs}"
7506 # Pass --with-newlib if appropriate. Note that target_configdirs has
7507 # changed from the earlier setting of with_newlib.
7508 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7509 target_configargs="--with-newlib ${target_configargs}"
7512 # Different target subdirs use different values of certain variables
7513 # (notably CXX). Worse, multilibs use *lots* of different values.
7514 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7515 # it doesn't automatically accept command-line overrides of them.
7516 # This means it's not safe for target subdirs to share a cache file,
7517 # which is disgusting, but there you have it. Hopefully this can be
7518 # fixed in future. It's still worthwhile to use a cache file for each
7519 # directory. I think.
7521 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7522 # We need to pass --target, as newer autoconf's requires consistency
7523 # for target_alias and gcc doesn't manage it consistently.
7524 target_configargs="--cache-file=./config.cache ${target_configargs}"
7526 FLAGS_FOR_TARGET=
7527 case " $target_configdirs " in
7528 *" newlib "*)
7529 case " $target_configargs " in
7530 *" --with-newlib "*)
7531 case "$target" in
7532 *-cygwin*)
7533 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7535 esac
7537 # If we're not building GCC, don't discard standard headers.
7538 if test -d ${srcdir}/gcc; then
7539 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7541 if test "${build}" != "${host}"; then
7542 # On Canadian crosses, CC_FOR_TARGET will have already been set
7543 # by `configure', so we won't have an opportunity to add -Bgcc/
7544 # to it. This is right: we don't want to search that directory
7545 # for binaries, but we want the header files in there, so add
7546 # them explicitly.
7547 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7549 # Someone might think of using the pre-installed headers on
7550 # Canadian crosses, in case the installed compiler is not fully
7551 # compatible with the compiler being built. In this case, it
7552 # would be better to flag an error than risking having
7553 # incompatible object files being constructed. We can't
7554 # guarantee that an error will be flagged, but let's hope the
7555 # compiler will do it, when presented with incompatible header
7556 # files.
7560 case "${target}-${is_cross_compiler}" in
7561 i[3456789]86-*-linux*-no)
7562 # Here host == target, so we don't need to build gcc,
7563 # so we don't want to discard standard headers.
7564 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7567 # If we're building newlib, use its generic headers last, but search
7568 # for any libc-related directories first (so make it the last -B
7569 # switch).
7570 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7572 # If we're building libgloss, find the startup file, simulator library
7573 # and linker script.
7574 case " $target_configdirs " in
7575 *" libgloss "*)
7576 # Look for startup file, simulator library and maybe linker script.
7577 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7578 # Look for libnosys.a in case the target needs it.
7579 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7580 # Most targets have the linker script in the source directory.
7581 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7583 esac
7585 esac
7587 esac
7589 esac
7591 case "$target" in
7592 x86_64-*mingw* | *-w64-mingw*)
7593 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7594 # however, use a symlink named 'mingw' in ${prefix} .
7595 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7597 *-mingw*)
7598 # MinGW can't be handled as Cygwin above since it does not use newlib.
7599 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'
7601 esac
7603 # Allow the user to override the flags for
7604 # our build compiler if desired.
7605 if test x"${build}" = x"${host}" ; then
7606 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7607 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7608 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7611 # On Canadian crosses, we'll be searching the right directories for
7612 # the previously-installed cross compiler, so don't bother to add
7613 # flags for directories within the install tree of the compiler
7614 # being built; programs in there won't even run.
7615 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7616 # Search for pre-installed headers if nothing else fits.
7617 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7620 if test "x${use_gnu_ld}" = x &&
7621 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7622 # Arrange for us to find uninstalled linker scripts.
7623 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7626 # Search for other target-specific linker scripts and such.
7627 case "${target}" in
7628 mep*)
7629 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7631 esac
7633 # Makefile fragments.
7634 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7636 eval fragval=\$$frag
7637 if test $fragval != /dev/null; then
7638 eval $frag=${srcdir}/$fragval
7640 done
7646 # Miscellanea: directories, flags, etc.
7655 # Build module lists & subconfigure args.
7659 # Host module lists & subconfigure args.
7664 # Target module lists & subconfigure args.
7668 # Build tools.
7686 # Generate default definitions for YACC, M4, LEX and other programs that run
7687 # on the build machine. These are used if the Makefile can't locate these
7688 # programs in objdir.
7689 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7691 for ac_prog in 'bison -y' byacc yacc
7693 # Extract the first word of "$ac_prog", so it can be a program name with args.
7694 set dummy $ac_prog; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if test "${ac_cv_prog_YACC+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 if test -n "$YACC"; then
7701 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7702 else
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7706 IFS=$as_save_IFS
7707 test -z "$as_dir" && as_dir=.
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7710 ac_cv_prog_YACC="$ac_prog"
7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 break 2
7714 done
7715 done
7716 IFS=$as_save_IFS
7720 YACC=$ac_cv_prog_YACC
7721 if test -n "$YACC"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7723 $as_echo "$YACC" >&6; }
7724 else
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7730 test -n "$YACC" && break
7731 done
7732 test -n "$YACC" || YACC="$MISSING bison -y"
7734 case " $build_configdirs " in
7735 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7736 esac
7738 for ac_prog in bison
7740 # Extract the first word of "$ac_prog", so it can be a program name with args.
7741 set dummy $ac_prog; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if test "${ac_cv_prog_BISON+set}" = set; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 if test -n "$BISON"; then
7748 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_prog_BISON="$ac_prog"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7761 done
7762 done
7763 IFS=$as_save_IFS
7767 BISON=$ac_cv_prog_BISON
7768 if test -n "$BISON"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7770 $as_echo "$BISON" >&6; }
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7777 test -n "$BISON" && break
7778 done
7779 test -n "$BISON" || BISON="$MISSING bison"
7781 case " $build_configdirs " in
7782 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7783 esac
7785 for ac_prog in gm4 gnum4 m4
7787 # Extract the first word of "$ac_prog", so it can be a program name with args.
7788 set dummy $ac_prog; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if test "${ac_cv_prog_M4+set}" = set; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 if test -n "$M4"; then
7795 ac_cv_prog_M4="$M4" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7804 ac_cv_prog_M4="$ac_prog"
7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 break 2
7808 done
7809 done
7810 IFS=$as_save_IFS
7814 M4=$ac_cv_prog_M4
7815 if test -n "$M4"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7817 $as_echo "$M4" >&6; }
7818 else
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7824 test -n "$M4" && break
7825 done
7826 test -n "$M4" || M4="$MISSING m4"
7828 case " $build_configdirs " in
7829 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7830 esac
7832 for ac_prog in flex lex
7834 # Extract the first word of "$ac_prog", so it can be a program name with args.
7835 set dummy $ac_prog; ac_word=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if test "${ac_cv_prog_LEX+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 if test -n "$LEX"; then
7842 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7843 else
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7851 ac_cv_prog_LEX="$ac_prog"
7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7855 done
7856 done
7857 IFS=$as_save_IFS
7861 LEX=$ac_cv_prog_LEX
7862 if test -n "$LEX"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7864 $as_echo "$LEX" >&6; }
7865 else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7871 test -n "$LEX" && break
7872 done
7873 test -n "$LEX" || LEX="$MISSING flex"
7875 case " $build_configdirs " in
7876 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7877 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7878 esac
7880 for ac_prog in flex
7882 # Extract the first word of "$ac_prog", so it can be a program name with args.
7883 set dummy $ac_prog; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if test "${ac_cv_prog_FLEX+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 if test -n "$FLEX"; then
7890 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899 ac_cv_prog_FLEX="$ac_prog"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7903 done
7904 done
7905 IFS=$as_save_IFS
7909 FLEX=$ac_cv_prog_FLEX
7910 if test -n "$FLEX"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7912 $as_echo "$FLEX" >&6; }
7913 else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7919 test -n "$FLEX" && break
7920 done
7921 test -n "$FLEX" || FLEX="$MISSING flex"
7923 case " $build_configdirs " in
7924 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7925 esac
7927 for ac_prog in makeinfo
7929 # Extract the first word of "$ac_prog", so it can be a program name with args.
7930 set dummy $ac_prog; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 if test -n "$MAKEINFO"; then
7937 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7938 else
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7942 IFS=$as_save_IFS
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7946 ac_cv_prog_MAKEINFO="$ac_prog"
7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 break 2
7950 done
7951 done
7952 IFS=$as_save_IFS
7956 MAKEINFO=$ac_cv_prog_MAKEINFO
7957 if test -n "$MAKEINFO"; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7959 $as_echo "$MAKEINFO" >&6; }
7960 else
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7966 test -n "$MAKEINFO" && break
7967 done
7968 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7970 case " $build_configdirs " in
7971 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7974 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7975 # higher, else we use the "missing" dummy.
7976 if ${MAKEINFO} --version \
7977 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7979 else
7980 MAKEINFO="$MISSING makeinfo"
7984 esac
7986 # FIXME: expect and dejagnu may become build tools?
7988 for ac_prog in expect
7990 # Extract the first word of "$ac_prog", so it can be a program name with args.
7991 set dummy $ac_prog; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 if test -n "$EXPECT"; then
7998 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7999 else
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8007 ac_cv_prog_EXPECT="$ac_prog"
8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8011 done
8012 done
8013 IFS=$as_save_IFS
8017 EXPECT=$ac_cv_prog_EXPECT
8018 if test -n "$EXPECT"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8020 $as_echo "$EXPECT" >&6; }
8021 else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8027 test -n "$EXPECT" && break
8028 done
8029 test -n "$EXPECT" || EXPECT="expect"
8031 case " $configdirs " in
8032 *" expect "*)
8033 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8035 esac
8037 for ac_prog in runtest
8039 # Extract the first word of "$ac_prog", so it can be a program name with args.
8040 set dummy $ac_prog; ac_word=$2
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 $as_echo_n "checking for $ac_word... " >&6; }
8043 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 if test -n "$RUNTEST"; then
8047 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8048 else
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8056 ac_cv_prog_RUNTEST="$ac_prog"
8057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 break 2
8060 done
8061 done
8062 IFS=$as_save_IFS
8066 RUNTEST=$ac_cv_prog_RUNTEST
8067 if test -n "$RUNTEST"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8069 $as_echo "$RUNTEST" >&6; }
8070 else
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 $as_echo "no" >&6; }
8076 test -n "$RUNTEST" && break
8077 done
8078 test -n "$RUNTEST" || RUNTEST="runtest"
8080 case " $configdirs " in
8081 *" dejagnu "*)
8082 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8084 esac
8087 # Host tools.
8088 ncn_tool_prefix=
8089 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8090 ncn_target_tool_prefix=
8091 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8095 if test -n "$AR"; then
8096 ac_cv_prog_AR=$AR
8097 elif test -n "$ac_cv_prog_AR"; then
8098 AR=$ac_cv_prog_AR
8101 if test -n "$ac_cv_prog_AR"; then
8102 for ncn_progname in ar; do
8103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8104 set dummy ${ncn_progname}; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if test "${ac_cv_prog_AR+set}" = set; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 if test -n "$AR"; then
8111 ac_cv_prog_AR="$AR" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8120 ac_cv_prog_AR="${ncn_progname}"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 break 2
8124 done
8125 done
8126 IFS=$as_save_IFS
8130 AR=$ac_cv_prog_AR
8131 if test -n "$AR"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8133 $as_echo "$AR" >&6; }
8134 else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8140 done
8143 for ncn_progname in ar; do
8144 if test -n "$ncn_tool_prefix"; then
8145 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8146 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_AR+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 if test -n "$AR"; then
8153 ac_cv_prog_AR="$AR" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8166 done
8167 done
8168 IFS=$as_save_IFS
8172 AR=$ac_cv_prog_AR
8173 if test -n "$AR"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8175 $as_echo "$AR" >&6; }
8176 else
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8183 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8185 set dummy ${ncn_progname}; ac_word=$2
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187 $as_echo_n "checking for $ac_word... " >&6; }
8188 if test "${ac_cv_prog_AR+set}" = set; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 if test -n "$AR"; then
8192 ac_cv_prog_AR="$AR" # Let the user override the test.
8193 else
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 for as_dir in $PATH
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8201 ac_cv_prog_AR="${ncn_progname}"
8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 break 2
8205 done
8206 done
8207 IFS=$as_save_IFS
8211 AR=$ac_cv_prog_AR
8212 if test -n "$AR"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8214 $as_echo "$AR" >&6; }
8215 else
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8222 test -n "$ac_cv_prog_AR" && break
8223 done
8225 if test -z "$ac_cv_prog_AR" ; then
8226 set dummy ar
8227 if test $build = $host ; then
8228 AR="$2"
8229 else
8230 AR="${ncn_tool_prefix}$2"
8236 if test -n "$AS"; then
8237 ac_cv_prog_AS=$AS
8238 elif test -n "$ac_cv_prog_AS"; then
8239 AS=$ac_cv_prog_AS
8242 if test -n "$ac_cv_prog_AS"; then
8243 for ncn_progname in as; do
8244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8245 set dummy ${ncn_progname}; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if test "${ac_cv_prog_AS+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 if test -n "$AS"; then
8252 ac_cv_prog_AS="$AS" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8257 IFS=$as_save_IFS
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261 ac_cv_prog_AS="${ncn_progname}"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 break 2
8265 done
8266 done
8267 IFS=$as_save_IFS
8271 AS=$ac_cv_prog_AS
8272 if test -n "$AS"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8274 $as_echo "$AS" >&6; }
8275 else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8281 done
8284 for ncn_progname in as; do
8285 if test -n "$ncn_tool_prefix"; then
8286 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8287 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if test "${ac_cv_prog_AS+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 if test -n "$AS"; then
8294 ac_cv_prog_AS="$AS" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8299 IFS=$as_save_IFS
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 break 2
8307 done
8308 done
8309 IFS=$as_save_IFS
8313 AS=$ac_cv_prog_AS
8314 if test -n "$AS"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8316 $as_echo "$AS" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8324 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8326 set dummy ${ncn_progname}; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if test "${ac_cv_prog_AS+set}" = set; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 if test -n "$AS"; then
8333 ac_cv_prog_AS="$AS" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8342 ac_cv_prog_AS="${ncn_progname}"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8346 done
8347 done
8348 IFS=$as_save_IFS
8352 AS=$ac_cv_prog_AS
8353 if test -n "$AS"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8355 $as_echo "$AS" >&6; }
8356 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8363 test -n "$ac_cv_prog_AS" && break
8364 done
8366 if test -z "$ac_cv_prog_AS" ; then
8367 set dummy as
8368 if test $build = $host ; then
8369 AS="$2"
8370 else
8371 AS="${ncn_tool_prefix}$2"
8377 if test -n "$DLLTOOL"; then
8378 ac_cv_prog_DLLTOOL=$DLLTOOL
8379 elif test -n "$ac_cv_prog_DLLTOOL"; then
8380 DLLTOOL=$ac_cv_prog_DLLTOOL
8383 if test -n "$ac_cv_prog_DLLTOOL"; then
8384 for ncn_progname in dlltool; do
8385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8386 set dummy ${ncn_progname}; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 if test -n "$DLLTOOL"; then
8393 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8394 else
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8398 IFS=$as_save_IFS
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8402 ac_cv_prog_DLLTOOL="${ncn_progname}"
8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 break 2
8406 done
8407 done
8408 IFS=$as_save_IFS
8412 DLLTOOL=$ac_cv_prog_DLLTOOL
8413 if test -n "$DLLTOOL"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8415 $as_echo "$DLLTOOL" >&6; }
8416 else
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8422 done
8425 for ncn_progname in dlltool; do
8426 if test -n "$ncn_tool_prefix"; then
8427 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8428 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 if test -n "$DLLTOOL"; then
8435 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 break 2
8448 done
8449 done
8450 IFS=$as_save_IFS
8454 DLLTOOL=$ac_cv_prog_DLLTOOL
8455 if test -n "$DLLTOOL"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8457 $as_echo "$DLLTOOL" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8465 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8467 set dummy ${ncn_progname}; ac_word=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 if test -n "$DLLTOOL"; then
8474 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8475 else
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_prog_DLLTOOL="${ncn_progname}"
8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8487 done
8488 done
8489 IFS=$as_save_IFS
8493 DLLTOOL=$ac_cv_prog_DLLTOOL
8494 if test -n "$DLLTOOL"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8496 $as_echo "$DLLTOOL" >&6; }
8497 else
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8504 test -n "$ac_cv_prog_DLLTOOL" && break
8505 done
8507 if test -z "$ac_cv_prog_DLLTOOL" ; then
8508 set dummy dlltool
8509 if test $build = $host ; then
8510 DLLTOOL="$2"
8511 else
8512 DLLTOOL="${ncn_tool_prefix}$2"
8518 if test -n "$LD"; then
8519 ac_cv_prog_LD=$LD
8520 elif test -n "$ac_cv_prog_LD"; then
8521 LD=$ac_cv_prog_LD
8524 if test -n "$ac_cv_prog_LD"; then
8525 for ncn_progname in ld; do
8526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8527 set dummy ${ncn_progname}; ac_word=$2
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 $as_echo_n "checking for $ac_word... " >&6; }
8530 if test "${ac_cv_prog_LD+set}" = set; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 if test -n "$LD"; then
8534 ac_cv_prog_LD="$LD" # Let the user override the test.
8535 else
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8543 ac_cv_prog_LD="${ncn_progname}"
8544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8547 done
8548 done
8549 IFS=$as_save_IFS
8553 LD=$ac_cv_prog_LD
8554 if test -n "$LD"; then
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8556 $as_echo "$LD" >&6; }
8557 else
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 $as_echo "no" >&6; }
8563 done
8566 for ncn_progname in ld; do
8567 if test -n "$ncn_tool_prefix"; then
8568 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8569 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 $as_echo_n "checking for $ac_word... " >&6; }
8572 if test "${ac_cv_prog_LD+set}" = set; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 if test -n "$LD"; then
8576 ac_cv_prog_LD="$LD" # Let the user override the test.
8577 else
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8581 IFS=$as_save_IFS
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
8584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8585 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 break 2
8589 done
8590 done
8591 IFS=$as_save_IFS
8595 LD=$ac_cv_prog_LD
8596 if test -n "$LD"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8598 $as_echo "$LD" >&6; }
8599 else
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8606 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8608 set dummy ${ncn_progname}; ac_word=$2
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8610 $as_echo_n "checking for $ac_word... " >&6; }
8611 if test "${ac_cv_prog_LD+set}" = set; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 if test -n "$LD"; then
8615 ac_cv_prog_LD="$LD" # Let the user override the test.
8616 else
8617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 for as_dir in $PATH
8620 IFS=$as_save_IFS
8621 test -z "$as_dir" && as_dir=.
8622 for ac_exec_ext in '' $ac_executable_extensions; do
8623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8624 ac_cv_prog_LD="${ncn_progname}"
8625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 break 2
8628 done
8629 done
8630 IFS=$as_save_IFS
8634 LD=$ac_cv_prog_LD
8635 if test -n "$LD"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8637 $as_echo "$LD" >&6; }
8638 else
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640 $as_echo "no" >&6; }
8645 test -n "$ac_cv_prog_LD" && break
8646 done
8648 if test -z "$ac_cv_prog_LD" ; then
8649 set dummy ld
8650 if test $build = $host ; then
8651 LD="$2"
8652 else
8653 LD="${ncn_tool_prefix}$2"
8659 if test -n "$LIPO"; then
8660 ac_cv_prog_LIPO=$LIPO
8661 elif test -n "$ac_cv_prog_LIPO"; then
8662 LIPO=$ac_cv_prog_LIPO
8665 if test -n "$ac_cv_prog_LIPO"; then
8666 for ncn_progname in lipo; do
8667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8668 set dummy ${ncn_progname}; ac_word=$2
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8670 $as_echo_n "checking for $ac_word... " >&6; }
8671 if test "${ac_cv_prog_LIPO+set}" = set; then :
8672 $as_echo_n "(cached) " >&6
8673 else
8674 if test -n "$LIPO"; then
8675 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8676 else
8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 for as_dir in $PATH
8680 IFS=$as_save_IFS
8681 test -z "$as_dir" && as_dir=.
8682 for ac_exec_ext in '' $ac_executable_extensions; do
8683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8684 ac_cv_prog_LIPO="${ncn_progname}"
8685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8686 break 2
8688 done
8689 done
8690 IFS=$as_save_IFS
8694 LIPO=$ac_cv_prog_LIPO
8695 if test -n "$LIPO"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8697 $as_echo "$LIPO" >&6; }
8698 else
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 $as_echo "no" >&6; }
8704 done
8707 for ncn_progname in lipo; do
8708 if test -n "$ncn_tool_prefix"; then
8709 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8710 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if test "${ac_cv_prog_LIPO+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 if test -n "$LIPO"; then
8717 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8718 else
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 for as_dir in $PATH
8722 IFS=$as_save_IFS
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8726 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 break 2
8730 done
8731 done
8732 IFS=$as_save_IFS
8736 LIPO=$ac_cv_prog_LIPO
8737 if test -n "$LIPO"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8739 $as_echo "$LIPO" >&6; }
8740 else
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8747 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8749 set dummy ${ncn_progname}; ac_word=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if test "${ac_cv_prog_LIPO+set}" = set; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 if test -n "$LIPO"; then
8756 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8757 else
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 for as_dir in $PATH
8761 IFS=$as_save_IFS
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765 ac_cv_prog_LIPO="${ncn_progname}"
8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 break 2
8769 done
8770 done
8771 IFS=$as_save_IFS
8775 LIPO=$ac_cv_prog_LIPO
8776 if test -n "$LIPO"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8778 $as_echo "$LIPO" >&6; }
8779 else
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8786 test -n "$ac_cv_prog_LIPO" && break
8787 done
8789 if test -z "$ac_cv_prog_LIPO" ; then
8790 set dummy lipo
8791 if test $build = $host ; then
8792 LIPO="$2"
8793 else
8794 LIPO="${ncn_tool_prefix}$2"
8800 if test -n "$NM"; then
8801 ac_cv_prog_NM=$NM
8802 elif test -n "$ac_cv_prog_NM"; then
8803 NM=$ac_cv_prog_NM
8806 if test -n "$ac_cv_prog_NM"; then
8807 for ncn_progname in nm; do
8808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8809 set dummy ${ncn_progname}; ac_word=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if test "${ac_cv_prog_NM+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 if test -n "$NM"; then
8816 ac_cv_prog_NM="$NM" # Let the user override the test.
8817 else
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 for as_dir in $PATH
8821 IFS=$as_save_IFS
8822 test -z "$as_dir" && as_dir=.
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8825 ac_cv_prog_NM="${ncn_progname}"
8826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827 break 2
8829 done
8830 done
8831 IFS=$as_save_IFS
8835 NM=$ac_cv_prog_NM
8836 if test -n "$NM"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8838 $as_echo "$NM" >&6; }
8839 else
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8845 done
8848 for ncn_progname in nm; do
8849 if test -n "$ncn_tool_prefix"; then
8850 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8851 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853 $as_echo_n "checking for $ac_word... " >&6; }
8854 if test "${ac_cv_prog_NM+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 if test -n "$NM"; then
8858 ac_cv_prog_NM="$NM" # Let the user override the test.
8859 else
8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8863 IFS=$as_save_IFS
8864 test -z "$as_dir" && as_dir=.
8865 for ac_exec_ext in '' $ac_executable_extensions; do
8866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8867 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 break 2
8871 done
8872 done
8873 IFS=$as_save_IFS
8877 NM=$ac_cv_prog_NM
8878 if test -n "$NM"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8880 $as_echo "$NM" >&6; }
8881 else
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8888 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8890 set dummy ${ncn_progname}; ac_word=$2
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892 $as_echo_n "checking for $ac_word... " >&6; }
8893 if test "${ac_cv_prog_NM+set}" = set; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 if test -n "$NM"; then
8897 ac_cv_prog_NM="$NM" # Let the user override the test.
8898 else
8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 for as_dir in $PATH
8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
8905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8906 ac_cv_prog_NM="${ncn_progname}"
8907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 break 2
8910 done
8911 done
8912 IFS=$as_save_IFS
8916 NM=$ac_cv_prog_NM
8917 if test -n "$NM"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8919 $as_echo "$NM" >&6; }
8920 else
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922 $as_echo "no" >&6; }
8927 test -n "$ac_cv_prog_NM" && break
8928 done
8930 if test -z "$ac_cv_prog_NM" ; then
8931 set dummy nm
8932 if test $build = $host ; then
8933 NM="$2"
8934 else
8935 NM="${ncn_tool_prefix}$2"
8941 if test -n "$RANLIB"; then
8942 ac_cv_prog_RANLIB=$RANLIB
8943 elif test -n "$ac_cv_prog_RANLIB"; then
8944 RANLIB=$ac_cv_prog_RANLIB
8947 if test -n "$ac_cv_prog_RANLIB"; then
8948 for ncn_progname in ranlib; do
8949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8950 set dummy ${ncn_progname}; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 if test -n "$RANLIB"; then
8957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8958 else
8959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960 for as_dir in $PATH
8962 IFS=$as_save_IFS
8963 test -z "$as_dir" && as_dir=.
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8966 ac_cv_prog_RANLIB="${ncn_progname}"
8967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968 break 2
8970 done
8971 done
8972 IFS=$as_save_IFS
8976 RANLIB=$ac_cv_prog_RANLIB
8977 if test -n "$RANLIB"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8979 $as_echo "$RANLIB" >&6; }
8980 else
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8986 done
8989 for ncn_progname in ranlib; do
8990 if test -n "$ncn_tool_prefix"; then
8991 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8992 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994 $as_echo_n "checking for $ac_word... " >&6; }
8995 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 if test -n "$RANLIB"; then
8999 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9000 else
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 for as_dir in $PATH
9004 IFS=$as_save_IFS
9005 test -z "$as_dir" && as_dir=.
9006 for ac_exec_ext in '' $ac_executable_extensions; do
9007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9008 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9010 break 2
9012 done
9013 done
9014 IFS=$as_save_IFS
9018 RANLIB=$ac_cv_prog_RANLIB
9019 if test -n "$RANLIB"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9021 $as_echo "$RANLIB" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9029 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9031 set dummy ${ncn_progname}; ac_word=$2
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033 $as_echo_n "checking for $ac_word... " >&6; }
9034 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 if test -n "$RANLIB"; then
9038 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9039 else
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041 for as_dir in $PATH
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9047 ac_cv_prog_RANLIB="${ncn_progname}"
9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9049 break 2
9051 done
9052 done
9053 IFS=$as_save_IFS
9057 RANLIB=$ac_cv_prog_RANLIB
9058 if test -n "$RANLIB"; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9060 $as_echo "$RANLIB" >&6; }
9061 else
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9068 test -n "$ac_cv_prog_RANLIB" && break
9069 done
9071 if test -z "$ac_cv_prog_RANLIB" ; then
9072 RANLIB="true"
9077 if test -n "$STRIP"; then
9078 ac_cv_prog_STRIP=$STRIP
9079 elif test -n "$ac_cv_prog_STRIP"; then
9080 STRIP=$ac_cv_prog_STRIP
9083 if test -n "$ac_cv_prog_STRIP"; then
9084 for ncn_progname in strip; do
9085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9086 set dummy ${ncn_progname}; ac_word=$2
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088 $as_echo_n "checking for $ac_word... " >&6; }
9089 if test "${ac_cv_prog_STRIP+set}" = set; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 if test -n "$STRIP"; then
9093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9094 else
9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 for as_dir in $PATH
9098 IFS=$as_save_IFS
9099 test -z "$as_dir" && as_dir=.
9100 for ac_exec_ext in '' $ac_executable_extensions; do
9101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9102 ac_cv_prog_STRIP="${ncn_progname}"
9103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9104 break 2
9106 done
9107 done
9108 IFS=$as_save_IFS
9112 STRIP=$ac_cv_prog_STRIP
9113 if test -n "$STRIP"; then
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9115 $as_echo "$STRIP" >&6; }
9116 else
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9118 $as_echo "no" >&6; }
9122 done
9125 for ncn_progname in strip; do
9126 if test -n "$ncn_tool_prefix"; then
9127 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9128 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if test "${ac_cv_prog_STRIP+set}" = set; then :
9132 $as_echo_n "(cached) " >&6
9133 else
9134 if test -n "$STRIP"; then
9135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9136 else
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 for as_dir in $PATH
9140 IFS=$as_save_IFS
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 break 2
9148 done
9149 done
9150 IFS=$as_save_IFS
9154 STRIP=$ac_cv_prog_STRIP
9155 if test -n "$STRIP"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9157 $as_echo "$STRIP" >&6; }
9158 else
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9165 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9167 set dummy ${ncn_progname}; ac_word=$2
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9169 $as_echo_n "checking for $ac_word... " >&6; }
9170 if test "${ac_cv_prog_STRIP+set}" = set; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 if test -n "$STRIP"; then
9174 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9175 else
9176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 for as_dir in $PATH
9179 IFS=$as_save_IFS
9180 test -z "$as_dir" && as_dir=.
9181 for ac_exec_ext in '' $ac_executable_extensions; do
9182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9183 ac_cv_prog_STRIP="${ncn_progname}"
9184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185 break 2
9187 done
9188 done
9189 IFS=$as_save_IFS
9193 STRIP=$ac_cv_prog_STRIP
9194 if test -n "$STRIP"; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9196 $as_echo "$STRIP" >&6; }
9197 else
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 $as_echo "no" >&6; }
9204 test -n "$ac_cv_prog_STRIP" && break
9205 done
9207 if test -z "$ac_cv_prog_STRIP" ; then
9208 STRIP="true"
9213 if test -n "$WINDRES"; then
9214 ac_cv_prog_WINDRES=$WINDRES
9215 elif test -n "$ac_cv_prog_WINDRES"; then
9216 WINDRES=$ac_cv_prog_WINDRES
9219 if test -n "$ac_cv_prog_WINDRES"; then
9220 for ncn_progname in windres; do
9221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9222 set dummy ${ncn_progname}; ac_word=$2
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9224 $as_echo_n "checking for $ac_word... " >&6; }
9225 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 if test -n "$WINDRES"; then
9229 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9230 else
9231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232 for as_dir in $PATH
9234 IFS=$as_save_IFS
9235 test -z "$as_dir" && as_dir=.
9236 for ac_exec_ext in '' $ac_executable_extensions; do
9237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9238 ac_cv_prog_WINDRES="${ncn_progname}"
9239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9240 break 2
9242 done
9243 done
9244 IFS=$as_save_IFS
9248 WINDRES=$ac_cv_prog_WINDRES
9249 if test -n "$WINDRES"; then
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9251 $as_echo "$WINDRES" >&6; }
9252 else
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254 $as_echo "no" >&6; }
9258 done
9261 for ncn_progname in windres; do
9262 if test -n "$ncn_tool_prefix"; then
9263 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9264 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 $as_echo_n "checking for $ac_word... " >&6; }
9267 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 if test -n "$WINDRES"; then
9271 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9272 else
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 break 2
9284 done
9285 done
9286 IFS=$as_save_IFS
9290 WINDRES=$ac_cv_prog_WINDRES
9291 if test -n "$WINDRES"; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9293 $as_echo "$WINDRES" >&6; }
9294 else
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9301 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9303 set dummy ${ncn_progname}; ac_word=$2
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305 $as_echo_n "checking for $ac_word... " >&6; }
9306 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 if test -n "$WINDRES"; then
9310 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9311 else
9312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313 for as_dir in $PATH
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
9317 for ac_exec_ext in '' $ac_executable_extensions; do
9318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9319 ac_cv_prog_WINDRES="${ncn_progname}"
9320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9321 break 2
9323 done
9324 done
9325 IFS=$as_save_IFS
9329 WINDRES=$ac_cv_prog_WINDRES
9330 if test -n "$WINDRES"; then
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9332 $as_echo "$WINDRES" >&6; }
9333 else
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335 $as_echo "no" >&6; }
9340 test -n "$ac_cv_prog_WINDRES" && break
9341 done
9343 if test -z "$ac_cv_prog_WINDRES" ; then
9344 set dummy windres
9345 if test $build = $host ; then
9346 WINDRES="$2"
9347 else
9348 WINDRES="${ncn_tool_prefix}$2"
9354 if test -n "$WINDMC"; then
9355 ac_cv_prog_WINDMC=$WINDMC
9356 elif test -n "$ac_cv_prog_WINDMC"; then
9357 WINDMC=$ac_cv_prog_WINDMC
9360 if test -n "$ac_cv_prog_WINDMC"; then
9361 for ncn_progname in windmc; do
9362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9363 set dummy ${ncn_progname}; ac_word=$2
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9365 $as_echo_n "checking for $ac_word... " >&6; }
9366 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9367 $as_echo_n "(cached) " >&6
9368 else
9369 if test -n "$WINDMC"; then
9370 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9371 else
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $PATH
9375 IFS=$as_save_IFS
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9379 ac_cv_prog_WINDMC="${ncn_progname}"
9380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9381 break 2
9383 done
9384 done
9385 IFS=$as_save_IFS
9389 WINDMC=$ac_cv_prog_WINDMC
9390 if test -n "$WINDMC"; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9392 $as_echo "$WINDMC" >&6; }
9393 else
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9395 $as_echo "no" >&6; }
9399 done
9402 for ncn_progname in windmc; do
9403 if test -n "$ncn_tool_prefix"; then
9404 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9405 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 if test -n "$WINDMC"; then
9412 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9413 else
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9421 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 break 2
9425 done
9426 done
9427 IFS=$as_save_IFS
9431 WINDMC=$ac_cv_prog_WINDMC
9432 if test -n "$WINDMC"; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9434 $as_echo "$WINDMC" >&6; }
9435 else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9442 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9444 set dummy ${ncn_progname}; ac_word=$2
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9446 $as_echo_n "checking for $ac_word... " >&6; }
9447 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 if test -n "$WINDMC"; then
9451 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9452 else
9453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9454 for as_dir in $PATH
9456 IFS=$as_save_IFS
9457 test -z "$as_dir" && as_dir=.
9458 for ac_exec_ext in '' $ac_executable_extensions; do
9459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9460 ac_cv_prog_WINDMC="${ncn_progname}"
9461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9462 break 2
9464 done
9465 done
9466 IFS=$as_save_IFS
9470 WINDMC=$ac_cv_prog_WINDMC
9471 if test -n "$WINDMC"; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9473 $as_echo "$WINDMC" >&6; }
9474 else
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9481 test -n "$ac_cv_prog_WINDMC" && break
9482 done
9484 if test -z "$ac_cv_prog_WINDMC" ; then
9485 set dummy windmc
9486 if test $build = $host ; then
9487 WINDMC="$2"
9488 else
9489 WINDMC="${ncn_tool_prefix}$2"
9495 if test -n "$OBJCOPY"; then
9496 ac_cv_prog_OBJCOPY=$OBJCOPY
9497 elif test -n "$ac_cv_prog_OBJCOPY"; then
9498 OBJCOPY=$ac_cv_prog_OBJCOPY
9501 if test -n "$ac_cv_prog_OBJCOPY"; then
9502 for ncn_progname in objcopy; do
9503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9504 set dummy ${ncn_progname}; ac_word=$2
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9506 $as_echo_n "checking for $ac_word... " >&6; }
9507 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 if test -n "$OBJCOPY"; then
9511 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9512 else
9513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 for as_dir in $PATH
9516 IFS=$as_save_IFS
9517 test -z "$as_dir" && as_dir=.
9518 for ac_exec_ext in '' $ac_executable_extensions; do
9519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9520 ac_cv_prog_OBJCOPY="${ncn_progname}"
9521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9522 break 2
9524 done
9525 done
9526 IFS=$as_save_IFS
9530 OBJCOPY=$ac_cv_prog_OBJCOPY
9531 if test -n "$OBJCOPY"; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9533 $as_echo "$OBJCOPY" >&6; }
9534 else
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9540 done
9543 for ncn_progname in objcopy; do
9544 if test -n "$ncn_tool_prefix"; then
9545 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9546 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548 $as_echo_n "checking for $ac_word... " >&6; }
9549 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 if test -n "$OBJCOPY"; then
9553 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9554 else
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 for as_dir in $PATH
9558 IFS=$as_save_IFS
9559 test -z "$as_dir" && as_dir=.
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9562 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9564 break 2
9566 done
9567 done
9568 IFS=$as_save_IFS
9572 OBJCOPY=$ac_cv_prog_OBJCOPY
9573 if test -n "$OBJCOPY"; then
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9575 $as_echo "$OBJCOPY" >&6; }
9576 else
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9583 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9585 set dummy ${ncn_progname}; ac_word=$2
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587 $as_echo_n "checking for $ac_word... " >&6; }
9588 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 if test -n "$OBJCOPY"; then
9592 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9593 else
9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595 for as_dir in $PATH
9597 IFS=$as_save_IFS
9598 test -z "$as_dir" && as_dir=.
9599 for ac_exec_ext in '' $ac_executable_extensions; do
9600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9601 ac_cv_prog_OBJCOPY="${ncn_progname}"
9602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 break 2
9605 done
9606 done
9607 IFS=$as_save_IFS
9611 OBJCOPY=$ac_cv_prog_OBJCOPY
9612 if test -n "$OBJCOPY"; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9614 $as_echo "$OBJCOPY" >&6; }
9615 else
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 $as_echo "no" >&6; }
9622 test -n "$ac_cv_prog_OBJCOPY" && break
9623 done
9625 if test -z "$ac_cv_prog_OBJCOPY" ; then
9626 set dummy objcopy
9627 if test $build = $host ; then
9628 OBJCOPY="$2"
9629 else
9630 OBJCOPY="${ncn_tool_prefix}$2"
9636 if test -n "$OBJDUMP"; then
9637 ac_cv_prog_OBJDUMP=$OBJDUMP
9638 elif test -n "$ac_cv_prog_OBJDUMP"; then
9639 OBJDUMP=$ac_cv_prog_OBJDUMP
9642 if test -n "$ac_cv_prog_OBJDUMP"; then
9643 for ncn_progname in objdump; do
9644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9645 set dummy ${ncn_progname}; ac_word=$2
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9647 $as_echo_n "checking for $ac_word... " >&6; }
9648 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 if test -n "$OBJDUMP"; then
9652 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9653 else
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 for as_dir in $PATH
9657 IFS=$as_save_IFS
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9661 ac_cv_prog_OBJDUMP="${ncn_progname}"
9662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663 break 2
9665 done
9666 done
9667 IFS=$as_save_IFS
9671 OBJDUMP=$ac_cv_prog_OBJDUMP
9672 if test -n "$OBJDUMP"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9674 $as_echo "$OBJDUMP" >&6; }
9675 else
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9681 done
9684 for ncn_progname in objdump; do
9685 if test -n "$ncn_tool_prefix"; then
9686 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9687 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 if test -n "$OBJDUMP"; then
9694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9695 else
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 for as_dir in $PATH
9699 IFS=$as_save_IFS
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9703 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 break 2
9707 done
9708 done
9709 IFS=$as_save_IFS
9713 OBJDUMP=$ac_cv_prog_OBJDUMP
9714 if test -n "$OBJDUMP"; then
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9716 $as_echo "$OBJDUMP" >&6; }
9717 else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; }
9724 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9726 set dummy ${ncn_progname}; ac_word=$2
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9728 $as_echo_n "checking for $ac_word... " >&6; }
9729 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 if test -n "$OBJDUMP"; then
9733 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9734 else
9735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736 for as_dir in $PATH
9738 IFS=$as_save_IFS
9739 test -z "$as_dir" && as_dir=.
9740 for ac_exec_ext in '' $ac_executable_extensions; do
9741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9742 ac_cv_prog_OBJDUMP="${ncn_progname}"
9743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9744 break 2
9746 done
9747 done
9748 IFS=$as_save_IFS
9752 OBJDUMP=$ac_cv_prog_OBJDUMP
9753 if test -n "$OBJDUMP"; then
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9755 $as_echo "$OBJDUMP" >&6; }
9756 else
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9758 $as_echo "no" >&6; }
9763 test -n "$ac_cv_prog_OBJDUMP" && break
9764 done
9766 if test -z "$ac_cv_prog_OBJDUMP" ; then
9767 set dummy objdump
9768 if test $build = $host ; then
9769 OBJDUMP="$2"
9770 else
9771 OBJDUMP="${ncn_tool_prefix}$2"
9777 if test -n "$READELF"; then
9778 ac_cv_prog_READELF=$READELF
9779 elif test -n "$ac_cv_prog_READELF"; then
9780 READELF=$ac_cv_prog_READELF
9783 if test -n "$ac_cv_prog_READELF"; then
9784 for ncn_progname in readelf; do
9785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9786 set dummy ${ncn_progname}; ac_word=$2
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9788 $as_echo_n "checking for $ac_word... " >&6; }
9789 if test "${ac_cv_prog_READELF+set}" = set; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 if test -n "$READELF"; then
9793 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9794 else
9795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796 for as_dir in $PATH
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
9801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9802 ac_cv_prog_READELF="${ncn_progname}"
9803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 break 2
9806 done
9807 done
9808 IFS=$as_save_IFS
9812 READELF=$ac_cv_prog_READELF
9813 if test -n "$READELF"; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9815 $as_echo "$READELF" >&6; }
9816 else
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9818 $as_echo "no" >&6; }
9822 done
9825 for ncn_progname in readelf; do
9826 if test -n "$ncn_tool_prefix"; then
9827 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9828 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9830 $as_echo_n "checking for $ac_word... " >&6; }
9831 if test "${ac_cv_prog_READELF+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 if test -n "$READELF"; then
9835 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9836 else
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9844 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 break 2
9848 done
9849 done
9850 IFS=$as_save_IFS
9854 READELF=$ac_cv_prog_READELF
9855 if test -n "$READELF"; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9857 $as_echo "$READELF" >&6; }
9858 else
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 $as_echo "no" >&6; }
9865 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9867 set dummy ${ncn_progname}; ac_word=$2
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 $as_echo_n "checking for $ac_word... " >&6; }
9870 if test "${ac_cv_prog_READELF+set}" = set; then :
9871 $as_echo_n "(cached) " >&6
9872 else
9873 if test -n "$READELF"; then
9874 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9875 else
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 for as_dir in $PATH
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883 ac_cv_prog_READELF="${ncn_progname}"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 break 2
9887 done
9888 done
9889 IFS=$as_save_IFS
9893 READELF=$ac_cv_prog_READELF
9894 if test -n "$READELF"; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9896 $as_echo "$READELF" >&6; }
9897 else
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899 $as_echo "no" >&6; }
9904 test -n "$ac_cv_prog_READELF" && break
9905 done
9907 if test -z "$ac_cv_prog_READELF" ; then
9908 set dummy readelf
9909 if test $build = $host ; then
9910 READELF="$2"
9911 else
9912 READELF="${ncn_tool_prefix}$2"
9921 # Target tools.
9923 # Check whether --with-build-time-tools was given.
9924 if test "${with_build_time_tools+set}" = set; then :
9925 withval=$with_build_time_tools; case x"$withval" in
9926 x/*) ;;
9928 with_build_time_tools=
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9930 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9932 esac
9933 else
9934 with_build_time_tools=
9940 if test -n "$CC_FOR_TARGET"; then
9941 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9942 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9943 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9946 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9947 for ncn_progname in cc gcc; do
9948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9949 set dummy ${ncn_progname}; ac_word=$2
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951 $as_echo_n "checking for $ac_word... " >&6; }
9952 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9953 $as_echo_n "(cached) " >&6
9954 else
9955 if test -n "$CC_FOR_TARGET"; then
9956 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9957 else
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 for as_dir in $PATH
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9965 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 break 2
9969 done
9970 done
9971 IFS=$as_save_IFS
9975 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9976 if test -n "$CC_FOR_TARGET"; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9978 $as_echo "$CC_FOR_TARGET" >&6; }
9979 else
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9985 done
9988 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9989 for ncn_progname in cc gcc; do
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9991 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9992 if test -x $with_build_time_tools/${ncn_progname}; then
9993 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9995 $as_echo "yes" >&6; }
9996 break
9997 else
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10001 done
10004 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10005 for ncn_progname in cc gcc; do
10006 if test -n "$ncn_target_tool_prefix"; then
10007 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10008 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10010 $as_echo_n "checking for $ac_word... " >&6; }
10011 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10012 $as_echo_n "(cached) " >&6
10013 else
10014 if test -n "$CC_FOR_TARGET"; then
10015 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10016 else
10017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018 for as_dir in $PATH
10020 IFS=$as_save_IFS
10021 test -z "$as_dir" && as_dir=.
10022 for ac_exec_ext in '' $ac_executable_extensions; do
10023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10024 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10026 break 2
10028 done
10029 done
10030 IFS=$as_save_IFS
10034 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10035 if test -n "$CC_FOR_TARGET"; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10037 $as_echo "$CC_FOR_TARGET" >&6; }
10038 else
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10040 $as_echo "no" >&6; }
10045 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10047 set dummy ${ncn_progname}; ac_word=$2
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 $as_echo_n "checking for $ac_word... " >&6; }
10050 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 if test -n "$CC_FOR_TARGET"; then
10054 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10055 else
10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057 for as_dir in $PATH
10059 IFS=$as_save_IFS
10060 test -z "$as_dir" && as_dir=.
10061 for ac_exec_ext in '' $ac_executable_extensions; do
10062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10063 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10065 break 2
10067 done
10068 done
10069 IFS=$as_save_IFS
10073 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10074 if test -n "$CC_FOR_TARGET"; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10076 $as_echo "$CC_FOR_TARGET" >&6; }
10077 else
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10084 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10085 done
10088 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10089 set dummy cc gcc
10090 if test $build = $target ; then
10091 CC_FOR_TARGET="$2"
10092 else
10093 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10095 else
10096 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10101 if test -n "$CXX_FOR_TARGET"; then
10102 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10103 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10104 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10107 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10108 for ncn_progname in c++ g++ cxx gxx; do
10109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10110 set dummy ${ncn_progname}; ac_word=$2
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10112 $as_echo_n "checking for $ac_word... " >&6; }
10113 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 if test -n "$CXX_FOR_TARGET"; then
10117 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10118 else
10119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10120 for as_dir in $PATH
10122 IFS=$as_save_IFS
10123 test -z "$as_dir" && as_dir=.
10124 for ac_exec_ext in '' $ac_executable_extensions; do
10125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10126 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10128 break 2
10130 done
10131 done
10132 IFS=$as_save_IFS
10136 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10137 if test -n "$CXX_FOR_TARGET"; then
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10139 $as_echo "$CXX_FOR_TARGET" >&6; }
10140 else
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10142 $as_echo "no" >&6; }
10146 done
10149 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10150 for ncn_progname in c++ g++ cxx gxx; do
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10152 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10153 if test -x $with_build_time_tools/${ncn_progname}; then
10154 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10156 $as_echo "yes" >&6; }
10157 break
10158 else
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160 $as_echo "no" >&6; }
10162 done
10165 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10166 for ncn_progname in c++ g++ cxx gxx; do
10167 if test -n "$ncn_target_tool_prefix"; then
10168 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10169 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 if test -n "$CXX_FOR_TARGET"; then
10176 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10177 else
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179 for as_dir in $PATH
10181 IFS=$as_save_IFS
10182 test -z "$as_dir" && as_dir=.
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10185 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 break 2
10189 done
10190 done
10191 IFS=$as_save_IFS
10195 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10196 if test -n "$CXX_FOR_TARGET"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10198 $as_echo "$CXX_FOR_TARGET" >&6; }
10199 else
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10206 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10208 set dummy ${ncn_progname}; ac_word=$2
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210 $as_echo_n "checking for $ac_word... " >&6; }
10211 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 if test -n "$CXX_FOR_TARGET"; then
10215 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10216 else
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10224 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10228 done
10229 done
10230 IFS=$as_save_IFS
10234 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10235 if test -n "$CXX_FOR_TARGET"; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10237 $as_echo "$CXX_FOR_TARGET" >&6; }
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10245 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10246 done
10249 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10250 set dummy c++ g++ cxx gxx
10251 if test $build = $target ; then
10252 CXX_FOR_TARGET="$2"
10253 else
10254 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10256 else
10257 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10262 if test -n "$GCC_FOR_TARGET"; then
10263 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10264 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10265 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10268 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10269 for ncn_progname in gcc; do
10270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10271 set dummy ${ncn_progname}; ac_word=$2
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10273 $as_echo_n "checking for $ac_word... " >&6; }
10274 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10275 $as_echo_n "(cached) " >&6
10276 else
10277 if test -n "$GCC_FOR_TARGET"; then
10278 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10279 else
10280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281 for as_dir in $PATH
10283 IFS=$as_save_IFS
10284 test -z "$as_dir" && as_dir=.
10285 for ac_exec_ext in '' $ac_executable_extensions; do
10286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10287 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10289 break 2
10291 done
10292 done
10293 IFS=$as_save_IFS
10297 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10298 if test -n "$GCC_FOR_TARGET"; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10300 $as_echo "$GCC_FOR_TARGET" >&6; }
10301 else
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10303 $as_echo "no" >&6; }
10307 done
10310 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10311 for ncn_progname in gcc; do
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10313 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10314 if test -x $with_build_time_tools/${ncn_progname}; then
10315 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10317 $as_echo "yes" >&6; }
10318 break
10319 else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10323 done
10326 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10327 for ncn_progname in gcc; do
10328 if test -n "$ncn_target_tool_prefix"; then
10329 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10330 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332 $as_echo_n "checking for $ac_word... " >&6; }
10333 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 if test -n "$GCC_FOR_TARGET"; then
10337 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10338 else
10339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340 for as_dir in $PATH
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10346 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10348 break 2
10350 done
10351 done
10352 IFS=$as_save_IFS
10356 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10357 if test -n "$GCC_FOR_TARGET"; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10359 $as_echo "$GCC_FOR_TARGET" >&6; }
10360 else
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; }
10367 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10369 set dummy ${ncn_progname}; ac_word=$2
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371 $as_echo_n "checking for $ac_word... " >&6; }
10372 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 if test -n "$GCC_FOR_TARGET"; then
10376 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10377 else
10378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379 for as_dir in $PATH
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10385 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 break 2
10389 done
10390 done
10391 IFS=$as_save_IFS
10395 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10396 if test -n "$GCC_FOR_TARGET"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10398 $as_echo "$GCC_FOR_TARGET" >&6; }
10399 else
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401 $as_echo "no" >&6; }
10406 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10407 done
10410 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10411 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10412 else
10413 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10418 if test -n "$GCJ_FOR_TARGET"; then
10419 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10420 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10421 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10424 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10425 for ncn_progname in gcj; do
10426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10427 set dummy ${ncn_progname}; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 if test -n "$GCJ_FOR_TARGET"; then
10434 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10435 else
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $PATH
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10443 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10447 done
10448 done
10449 IFS=$as_save_IFS
10453 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10454 if test -n "$GCJ_FOR_TARGET"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10456 $as_echo "$GCJ_FOR_TARGET" >&6; }
10457 else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10463 done
10466 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10467 for ncn_progname in gcj; do
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10469 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10470 if test -x $with_build_time_tools/${ncn_progname}; then
10471 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10473 $as_echo "yes" >&6; }
10474 break
10475 else
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; }
10479 done
10482 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10483 for ncn_progname in gcj; do
10484 if test -n "$ncn_target_tool_prefix"; then
10485 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10486 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488 $as_echo_n "checking for $ac_word... " >&6; }
10489 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 if test -n "$GCJ_FOR_TARGET"; then
10493 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10494 else
10495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10498 IFS=$as_save_IFS
10499 test -z "$as_dir" && as_dir=.
10500 for ac_exec_ext in '' $ac_executable_extensions; do
10501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10502 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10504 break 2
10506 done
10507 done
10508 IFS=$as_save_IFS
10512 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10513 if test -n "$GCJ_FOR_TARGET"; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10515 $as_echo "$GCJ_FOR_TARGET" >&6; }
10516 else
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 $as_echo "no" >&6; }
10523 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10525 set dummy ${ncn_progname}; ac_word=$2
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10527 $as_echo_n "checking for $ac_word... " >&6; }
10528 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10531 if test -n "$GCJ_FOR_TARGET"; then
10532 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10533 else
10534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535 for as_dir in $PATH
10537 IFS=$as_save_IFS
10538 test -z "$as_dir" && as_dir=.
10539 for ac_exec_ext in '' $ac_executable_extensions; do
10540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10541 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543 break 2
10545 done
10546 done
10547 IFS=$as_save_IFS
10551 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10552 if test -n "$GCJ_FOR_TARGET"; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10554 $as_echo "$GCJ_FOR_TARGET" >&6; }
10555 else
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 $as_echo "no" >&6; }
10562 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10563 done
10566 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10567 set dummy gcj
10568 if test $build = $target ; then
10569 GCJ_FOR_TARGET="$2"
10570 else
10571 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10573 else
10574 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10579 if test -n "$GFORTRAN_FOR_TARGET"; then
10580 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10581 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10582 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10585 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10586 for ncn_progname in gfortran; do
10587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10588 set dummy ${ncn_progname}; ac_word=$2
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10590 $as_echo_n "checking for $ac_word... " >&6; }
10591 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10592 $as_echo_n "(cached) " >&6
10593 else
10594 if test -n "$GFORTRAN_FOR_TARGET"; then
10595 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10596 else
10597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10600 IFS=$as_save_IFS
10601 test -z "$as_dir" && as_dir=.
10602 for ac_exec_ext in '' $ac_executable_extensions; do
10603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10604 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10606 break 2
10608 done
10609 done
10610 IFS=$as_save_IFS
10614 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10615 if test -n "$GFORTRAN_FOR_TARGET"; then
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10617 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10618 else
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10624 done
10627 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10628 for ncn_progname in gfortran; do
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10630 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10631 if test -x $with_build_time_tools/${ncn_progname}; then
10632 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10634 $as_echo "yes" >&6; }
10635 break
10636 else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; }
10640 done
10643 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10644 for ncn_progname in gfortran; do
10645 if test -n "$ncn_target_tool_prefix"; then
10646 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10647 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649 $as_echo_n "checking for $ac_word... " >&6; }
10650 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 if test -n "$GFORTRAN_FOR_TARGET"; then
10654 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10655 else
10656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657 for as_dir in $PATH
10659 IFS=$as_save_IFS
10660 test -z "$as_dir" && as_dir=.
10661 for ac_exec_ext in '' $ac_executable_extensions; do
10662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10663 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10665 break 2
10667 done
10668 done
10669 IFS=$as_save_IFS
10673 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10674 if test -n "$GFORTRAN_FOR_TARGET"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10676 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10684 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10686 set dummy ${ncn_progname}; ac_word=$2
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10688 $as_echo_n "checking for $ac_word... " >&6; }
10689 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 if test -n "$GFORTRAN_FOR_TARGET"; then
10693 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10694 else
10695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696 for as_dir in $PATH
10698 IFS=$as_save_IFS
10699 test -z "$as_dir" && as_dir=.
10700 for ac_exec_ext in '' $ac_executable_extensions; do
10701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10702 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10704 break 2
10706 done
10707 done
10708 IFS=$as_save_IFS
10712 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10713 if test -n "$GFORTRAN_FOR_TARGET"; then
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10715 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10716 else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 $as_echo "no" >&6; }
10723 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10724 done
10727 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10728 set dummy gfortran
10729 if test $build = $target ; then
10730 GFORTRAN_FOR_TARGET="$2"
10731 else
10732 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10734 else
10735 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10740 if test -n "$GOC_FOR_TARGET"; then
10741 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10742 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10743 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10746 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10747 for ncn_progname in gccgo; do
10748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10749 set dummy ${ncn_progname}; ac_word=$2
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751 $as_echo_n "checking for $ac_word... " >&6; }
10752 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 if test -n "$GOC_FOR_TARGET"; then
10756 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10757 else
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $PATH
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10765 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10769 done
10770 done
10771 IFS=$as_save_IFS
10775 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10776 if test -n "$GOC_FOR_TARGET"; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10778 $as_echo "$GOC_FOR_TARGET" >&6; }
10779 else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781 $as_echo "no" >&6; }
10785 done
10788 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10789 for ncn_progname in gccgo; do
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10791 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10792 if test -x $with_build_time_tools/${ncn_progname}; then
10793 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10795 $as_echo "yes" >&6; }
10796 break
10797 else
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10799 $as_echo "no" >&6; }
10801 done
10804 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10805 for ncn_progname in gccgo; do
10806 if test -n "$ncn_target_tool_prefix"; then
10807 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10808 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10810 $as_echo_n "checking for $ac_word... " >&6; }
10811 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 if test -n "$GOC_FOR_TARGET"; then
10815 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10816 else
10817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818 for as_dir in $PATH
10820 IFS=$as_save_IFS
10821 test -z "$as_dir" && as_dir=.
10822 for ac_exec_ext in '' $ac_executable_extensions; do
10823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10824 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10826 break 2
10828 done
10829 done
10830 IFS=$as_save_IFS
10834 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10835 if test -n "$GOC_FOR_TARGET"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10837 $as_echo "$GOC_FOR_TARGET" >&6; }
10838 else
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10845 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10847 set dummy ${ncn_progname}; ac_word=$2
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849 $as_echo_n "checking for $ac_word... " >&6; }
10850 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 if test -n "$GOC_FOR_TARGET"; then
10854 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10855 else
10856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857 for as_dir in $PATH
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10863 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 break 2
10867 done
10868 done
10869 IFS=$as_save_IFS
10873 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10874 if test -n "$GOC_FOR_TARGET"; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10876 $as_echo "$GOC_FOR_TARGET" >&6; }
10877 else
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 $as_echo "no" >&6; }
10884 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10885 done
10888 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10889 set dummy gccgo
10890 if test $build = $target ; then
10891 GOC_FOR_TARGET="$2"
10892 else
10893 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10895 else
10896 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10901 cat > conftest.c << \EOF
10902 #ifdef __GNUC__
10903 gcc_yay;
10904 #endif
10906 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10907 have_gcc_for_target=yes
10908 else
10909 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10910 have_gcc_for_target=no
10912 rm conftest.c
10917 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10918 if test -n "$with_build_time_tools"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10920 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10921 if test -x $with_build_time_tools/ar; then
10922 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10923 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10925 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10926 else
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 $as_echo "no" >&6; }
10930 elif test $build != $host && test $have_gcc_for_target = yes; then
10931 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10932 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10933 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10936 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10937 # Extract the first word of "ar", so it can be a program name with args.
10938 set dummy ar; ac_word=$2
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940 $as_echo_n "checking for $ac_word... " >&6; }
10941 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 case $AR_FOR_TARGET in
10945 [\\/]* | ?:[\\/]*)
10946 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950 for as_dir in $gcc_cv_tool_dirs
10952 IFS=$as_save_IFS
10953 test -z "$as_dir" && as_dir=.
10954 for ac_exec_ext in '' $ac_executable_extensions; do
10955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10956 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10958 break 2
10960 done
10961 done
10962 IFS=$as_save_IFS
10965 esac
10967 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10968 if test -n "$AR_FOR_TARGET"; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10970 $as_echo "$AR_FOR_TARGET" >&6; }
10971 else
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; }
10978 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10981 if test -n "$AR_FOR_TARGET"; then
10982 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10983 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10984 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10987 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10988 for ncn_progname in ar; do
10989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10990 set dummy ${ncn_progname}; ac_word=$2
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10992 $as_echo_n "checking for $ac_word... " >&6; }
10993 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 if test -n "$AR_FOR_TARGET"; then
10997 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10998 else
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11006 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 break 2
11010 done
11011 done
11012 IFS=$as_save_IFS
11016 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11017 if test -n "$AR_FOR_TARGET"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11019 $as_echo "$AR_FOR_TARGET" >&6; }
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11026 done
11029 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11030 for ncn_progname in ar; do
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11032 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11033 if test -x $with_build_time_tools/${ncn_progname}; then
11034 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11036 $as_echo "yes" >&6; }
11037 break
11038 else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040 $as_echo "no" >&6; }
11042 done
11045 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11046 for ncn_progname in ar; do
11047 if test -n "$ncn_target_tool_prefix"; then
11048 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11049 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11051 $as_echo_n "checking for $ac_word... " >&6; }
11052 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
11054 else
11055 if test -n "$AR_FOR_TARGET"; then
11056 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11057 else
11058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059 for as_dir in $PATH
11061 IFS=$as_save_IFS
11062 test -z "$as_dir" && as_dir=.
11063 for ac_exec_ext in '' $ac_executable_extensions; do
11064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11065 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11067 break 2
11069 done
11070 done
11071 IFS=$as_save_IFS
11075 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11076 if test -n "$AR_FOR_TARGET"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11078 $as_echo "$AR_FOR_TARGET" >&6; }
11079 else
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11086 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11088 set dummy ${ncn_progname}; ac_word=$2
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090 $as_echo_n "checking for $ac_word... " >&6; }
11091 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 if test -n "$AR_FOR_TARGET"; then
11095 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11096 else
11097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 for as_dir in $PATH
11100 IFS=$as_save_IFS
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11104 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 break 2
11108 done
11109 done
11110 IFS=$as_save_IFS
11114 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11115 if test -n "$AR_FOR_TARGET"; then
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11117 $as_echo "$AR_FOR_TARGET" >&6; }
11118 else
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; }
11125 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11126 done
11129 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11130 set dummy ar
11131 if test $build = $target ; then
11132 AR_FOR_TARGET="$2"
11133 else
11134 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11136 else
11137 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11140 else
11141 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11147 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11148 if test -n "$with_build_time_tools"; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11150 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11151 if test -x $with_build_time_tools/as; then
11152 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11153 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11155 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11156 else
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158 $as_echo "no" >&6; }
11160 elif test $build != $host && test $have_gcc_for_target = yes; then
11161 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11162 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11163 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11166 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11167 # Extract the first word of "as", so it can be a program name with args.
11168 set dummy as; ac_word=$2
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11170 $as_echo_n "checking for $ac_word... " >&6; }
11171 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11172 $as_echo_n "(cached) " >&6
11173 else
11174 case $AS_FOR_TARGET in
11175 [\\/]* | ?:[\\/]*)
11176 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180 for as_dir in $gcc_cv_tool_dirs
11182 IFS=$as_save_IFS
11183 test -z "$as_dir" && as_dir=.
11184 for ac_exec_ext in '' $ac_executable_extensions; do
11185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11186 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11188 break 2
11190 done
11191 done
11192 IFS=$as_save_IFS
11195 esac
11197 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11198 if test -n "$AS_FOR_TARGET"; then
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11200 $as_echo "$AS_FOR_TARGET" >&6; }
11201 else
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203 $as_echo "no" >&6; }
11208 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11211 if test -n "$AS_FOR_TARGET"; then
11212 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11213 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11214 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11217 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11218 for ncn_progname in as; do
11219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11220 set dummy ${ncn_progname}; ac_word=$2
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222 $as_echo_n "checking for $ac_word... " >&6; }
11223 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 if test -n "$AS_FOR_TARGET"; then
11227 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11228 else
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11236 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11240 done
11241 done
11242 IFS=$as_save_IFS
11246 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11247 if test -n "$AS_FOR_TARGET"; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11249 $as_echo "$AS_FOR_TARGET" >&6; }
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11256 done
11259 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11260 for ncn_progname in as; do
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11262 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11263 if test -x $with_build_time_tools/${ncn_progname}; then
11264 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11266 $as_echo "yes" >&6; }
11267 break
11268 else
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11270 $as_echo "no" >&6; }
11272 done
11275 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11276 for ncn_progname in as; do
11277 if test -n "$ncn_target_tool_prefix"; then
11278 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11279 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 $as_echo_n "checking for $ac_word... " >&6; }
11282 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 if test -n "$AS_FOR_TARGET"; then
11286 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11287 else
11288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289 for as_dir in $PATH
11291 IFS=$as_save_IFS
11292 test -z "$as_dir" && as_dir=.
11293 for ac_exec_ext in '' $ac_executable_extensions; do
11294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11295 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11297 break 2
11299 done
11300 done
11301 IFS=$as_save_IFS
11305 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11306 if test -n "$AS_FOR_TARGET"; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11308 $as_echo "$AS_FOR_TARGET" >&6; }
11309 else
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11316 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11318 set dummy ${ncn_progname}; ac_word=$2
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320 $as_echo_n "checking for $ac_word... " >&6; }
11321 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 if test -n "$AS_FOR_TARGET"; then
11325 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11326 else
11327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in $PATH
11330 IFS=$as_save_IFS
11331 test -z "$as_dir" && as_dir=.
11332 for ac_exec_ext in '' $ac_executable_extensions; do
11333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11334 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11336 break 2
11338 done
11339 done
11340 IFS=$as_save_IFS
11344 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11345 if test -n "$AS_FOR_TARGET"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11347 $as_echo "$AS_FOR_TARGET" >&6; }
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11355 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11356 done
11359 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11360 set dummy as
11361 if test $build = $target ; then
11362 AS_FOR_TARGET="$2"
11363 else
11364 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11366 else
11367 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11370 else
11371 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11377 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11378 if test -n "$with_build_time_tools"; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11380 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11381 if test -x $with_build_time_tools/dlltool; then
11382 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11383 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11385 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11386 else
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388 $as_echo "no" >&6; }
11390 elif test $build != $host && test $have_gcc_for_target = yes; then
11391 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11392 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11393 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11396 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11397 # Extract the first word of "dlltool", so it can be a program name with args.
11398 set dummy dlltool; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 case $DLLTOOL_FOR_TARGET in
11405 [\\/]* | ?:[\\/]*)
11406 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $gcc_cv_tool_dirs
11412 IFS=$as_save_IFS
11413 test -z "$as_dir" && as_dir=.
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11416 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 break 2
11420 done
11421 done
11422 IFS=$as_save_IFS
11425 esac
11427 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11428 if test -n "$DLLTOOL_FOR_TARGET"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11430 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11438 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11441 if test -n "$DLLTOOL_FOR_TARGET"; then
11442 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11443 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11444 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11447 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11448 for ncn_progname in dlltool; do
11449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11450 set dummy ${ncn_progname}; ac_word=$2
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11452 $as_echo_n "checking for $ac_word... " >&6; }
11453 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 if test -n "$DLLTOOL_FOR_TARGET"; then
11457 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11458 else
11459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11462 IFS=$as_save_IFS
11463 test -z "$as_dir" && as_dir=.
11464 for ac_exec_ext in '' $ac_executable_extensions; do
11465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11466 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11468 break 2
11470 done
11471 done
11472 IFS=$as_save_IFS
11476 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11477 if test -n "$DLLTOOL_FOR_TARGET"; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11479 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11480 else
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 $as_echo "no" >&6; }
11486 done
11489 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11490 for ncn_progname in dlltool; do
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11492 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11493 if test -x $with_build_time_tools/${ncn_progname}; then
11494 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11496 $as_echo "yes" >&6; }
11497 break
11498 else
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11502 done
11505 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11506 for ncn_progname in dlltool; do
11507 if test -n "$ncn_target_tool_prefix"; then
11508 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11509 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511 $as_echo_n "checking for $ac_word... " >&6; }
11512 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 if test -n "$DLLTOOL_FOR_TARGET"; then
11516 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11517 else
11518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11519 for as_dir in $PATH
11521 IFS=$as_save_IFS
11522 test -z "$as_dir" && as_dir=.
11523 for ac_exec_ext in '' $ac_executable_extensions; do
11524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11525 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11527 break 2
11529 done
11530 done
11531 IFS=$as_save_IFS
11535 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11536 if test -n "$DLLTOOL_FOR_TARGET"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11538 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11539 else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11546 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11548 set dummy ${ncn_progname}; ac_word=$2
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11550 $as_echo_n "checking for $ac_word... " >&6; }
11551 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11552 $as_echo_n "(cached) " >&6
11553 else
11554 if test -n "$DLLTOOL_FOR_TARGET"; then
11555 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11556 else
11557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in $PATH
11560 IFS=$as_save_IFS
11561 test -z "$as_dir" && as_dir=.
11562 for ac_exec_ext in '' $ac_executable_extensions; do
11563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11564 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 break 2
11568 done
11569 done
11570 IFS=$as_save_IFS
11574 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11575 if test -n "$DLLTOOL_FOR_TARGET"; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11577 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11585 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11586 done
11589 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11590 set dummy dlltool
11591 if test $build = $target ; then
11592 DLLTOOL_FOR_TARGET="$2"
11593 else
11594 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11596 else
11597 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11600 else
11601 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11607 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11608 if test -n "$with_build_time_tools"; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11610 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11611 if test -x $with_build_time_tools/ld; then
11612 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11613 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11615 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11616 else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11620 elif test $build != $host && test $have_gcc_for_target = yes; then
11621 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11622 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11623 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11626 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11627 # Extract the first word of "ld", so it can be a program name with args.
11628 set dummy ld; ac_word=$2
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11630 $as_echo_n "checking for $ac_word... " >&6; }
11631 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 case $LD_FOR_TARGET in
11635 [\\/]* | ?:[\\/]*)
11636 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in $gcc_cv_tool_dirs
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11646 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11650 done
11651 done
11652 IFS=$as_save_IFS
11655 esac
11657 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11658 if test -n "$LD_FOR_TARGET"; then
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11660 $as_echo "$LD_FOR_TARGET" >&6; }
11661 else
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11668 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11671 if test -n "$LD_FOR_TARGET"; then
11672 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11673 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11674 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11677 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11678 for ncn_progname in ld; do
11679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11680 set dummy ${ncn_progname}; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 if test -n "$LD_FOR_TARGET"; then
11687 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11688 else
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11692 IFS=$as_save_IFS
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11696 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698 break 2
11700 done
11701 done
11702 IFS=$as_save_IFS
11706 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11707 if test -n "$LD_FOR_TARGET"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11709 $as_echo "$LD_FOR_TARGET" >&6; }
11710 else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11716 done
11719 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11720 for ncn_progname in ld; do
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11722 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11723 if test -x $with_build_time_tools/${ncn_progname}; then
11724 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11726 $as_echo "yes" >&6; }
11727 break
11728 else
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730 $as_echo "no" >&6; }
11732 done
11735 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11736 for ncn_progname in ld; do
11737 if test -n "$ncn_target_tool_prefix"; then
11738 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11739 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 if test -n "$LD_FOR_TARGET"; then
11746 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11747 else
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11751 IFS=$as_save_IFS
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11757 break 2
11759 done
11760 done
11761 IFS=$as_save_IFS
11765 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11766 if test -n "$LD_FOR_TARGET"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11768 $as_echo "$LD_FOR_TARGET" >&6; }
11769 else
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11776 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11778 set dummy ${ncn_progname}; ac_word=$2
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11782 $as_echo_n "(cached) " >&6
11783 else
11784 if test -n "$LD_FOR_TARGET"; then
11785 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11786 else
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11790 IFS=$as_save_IFS
11791 test -z "$as_dir" && as_dir=.
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11794 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796 break 2
11798 done
11799 done
11800 IFS=$as_save_IFS
11804 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11805 if test -n "$LD_FOR_TARGET"; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11807 $as_echo "$LD_FOR_TARGET" >&6; }
11808 else
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11815 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11816 done
11819 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11820 set dummy ld
11821 if test $build = $target ; then
11822 LD_FOR_TARGET="$2"
11823 else
11824 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11826 else
11827 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11830 else
11831 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11837 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11838 if test -n "$with_build_time_tools"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11840 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11841 if test -x $with_build_time_tools/lipo; then
11842 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11843 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11845 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11846 else
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11850 elif test $build != $host && test $have_gcc_for_target = yes; then
11851 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11852 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11853 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11856 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11857 # Extract the first word of "lipo", so it can be a program name with args.
11858 set dummy lipo; ac_word=$2
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860 $as_echo_n "checking for $ac_word... " >&6; }
11861 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 case $LIPO_FOR_TARGET in
11865 [\\/]* | ?:[\\/]*)
11866 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870 for as_dir in $gcc_cv_tool_dirs
11872 IFS=$as_save_IFS
11873 test -z "$as_dir" && as_dir=.
11874 for ac_exec_ext in '' $ac_executable_extensions; do
11875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11876 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11878 break 2
11880 done
11881 done
11882 IFS=$as_save_IFS
11885 esac
11887 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11888 if test -n "$LIPO_FOR_TARGET"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11890 $as_echo "$LIPO_FOR_TARGET" >&6; }
11891 else
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11898 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11901 if test -n "$LIPO_FOR_TARGET"; then
11902 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11903 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11904 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11907 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11908 for ncn_progname in lipo; do
11909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11910 set dummy ${ncn_progname}; ac_word=$2
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11914 $as_echo_n "(cached) " >&6
11915 else
11916 if test -n "$LIPO_FOR_TARGET"; then
11917 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11918 else
11919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920 for as_dir in $PATH
11922 IFS=$as_save_IFS
11923 test -z "$as_dir" && as_dir=.
11924 for ac_exec_ext in '' $ac_executable_extensions; do
11925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11926 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928 break 2
11930 done
11931 done
11932 IFS=$as_save_IFS
11936 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11937 if test -n "$LIPO_FOR_TARGET"; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11939 $as_echo "$LIPO_FOR_TARGET" >&6; }
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11946 done
11949 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11950 for ncn_progname in lipo; do
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11952 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11953 if test -x $with_build_time_tools/${ncn_progname}; then
11954 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11956 $as_echo "yes" >&6; }
11957 break
11958 else
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11962 done
11965 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11966 for ncn_progname in lipo; do
11967 if test -n "$ncn_target_tool_prefix"; then
11968 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11969 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971 $as_echo_n "checking for $ac_word... " >&6; }
11972 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 if test -n "$LIPO_FOR_TARGET"; then
11976 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11977 else
11978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11979 for as_dir in $PATH
11981 IFS=$as_save_IFS
11982 test -z "$as_dir" && as_dir=.
11983 for ac_exec_ext in '' $ac_executable_extensions; do
11984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11985 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11987 break 2
11989 done
11990 done
11991 IFS=$as_save_IFS
11995 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11996 if test -n "$LIPO_FOR_TARGET"; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11998 $as_echo "$LIPO_FOR_TARGET" >&6; }
11999 else
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001 $as_echo "no" >&6; }
12006 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12008 set dummy ${ncn_progname}; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 if test -n "$LIPO_FOR_TARGET"; then
12015 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12016 else
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12020 IFS=$as_save_IFS
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
12023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12024 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 break 2
12028 done
12029 done
12030 IFS=$as_save_IFS
12034 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12035 if test -n "$LIPO_FOR_TARGET"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12037 $as_echo "$LIPO_FOR_TARGET" >&6; }
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12045 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12046 done
12049 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12050 set dummy lipo
12051 if test $build = $target ; then
12052 LIPO_FOR_TARGET="$2"
12053 else
12054 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12056 else
12057 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12060 else
12061 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12067 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12068 if test -n "$with_build_time_tools"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12070 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12071 if test -x $with_build_time_tools/nm; then
12072 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12073 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12075 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12080 elif test $build != $host && test $have_gcc_for_target = yes; then
12081 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12082 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12083 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12086 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12087 # Extract the first word of "nm", so it can be a program name with args.
12088 set dummy nm; ac_word=$2
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090 $as_echo_n "checking for $ac_word... " >&6; }
12091 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 case $NM_FOR_TARGET in
12095 [\\/]* | ?:[\\/]*)
12096 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $gcc_cv_tool_dirs
12102 IFS=$as_save_IFS
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12106 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 break 2
12110 done
12111 done
12112 IFS=$as_save_IFS
12115 esac
12117 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12118 if test -n "$NM_FOR_TARGET"; then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12120 $as_echo "$NM_FOR_TARGET" >&6; }
12121 else
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12128 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12131 if test -n "$NM_FOR_TARGET"; then
12132 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12133 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12134 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12137 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12138 for ncn_progname in nm; do
12139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12140 set dummy ${ncn_progname}; ac_word=$2
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12142 $as_echo_n "checking for $ac_word... " >&6; }
12143 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12146 if test -n "$NM_FOR_TARGET"; then
12147 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12148 else
12149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150 for as_dir in $PATH
12152 IFS=$as_save_IFS
12153 test -z "$as_dir" && as_dir=.
12154 for ac_exec_ext in '' $ac_executable_extensions; do
12155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12156 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12158 break 2
12160 done
12161 done
12162 IFS=$as_save_IFS
12166 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12167 if test -n "$NM_FOR_TARGET"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12169 $as_echo "$NM_FOR_TARGET" >&6; }
12170 else
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12176 done
12179 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12180 for ncn_progname in nm; do
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12182 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12183 if test -x $with_build_time_tools/${ncn_progname}; then
12184 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12186 $as_echo "yes" >&6; }
12187 break
12188 else
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12192 done
12195 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12196 for ncn_progname in nm; do
12197 if test -n "$ncn_target_tool_prefix"; then
12198 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12199 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12201 $as_echo_n "checking for $ac_word... " >&6; }
12202 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 if test -n "$NM_FOR_TARGET"; then
12206 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12207 else
12208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209 for as_dir in $PATH
12211 IFS=$as_save_IFS
12212 test -z "$as_dir" && as_dir=.
12213 for ac_exec_ext in '' $ac_executable_extensions; do
12214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12215 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217 break 2
12219 done
12220 done
12221 IFS=$as_save_IFS
12225 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12226 if test -n "$NM_FOR_TARGET"; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12228 $as_echo "$NM_FOR_TARGET" >&6; }
12229 else
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231 $as_echo "no" >&6; }
12236 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12238 set dummy ${ncn_progname}; ac_word=$2
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12240 $as_echo_n "checking for $ac_word... " >&6; }
12241 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 if test -n "$NM_FOR_TARGET"; then
12245 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12246 else
12247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248 for as_dir in $PATH
12250 IFS=$as_save_IFS
12251 test -z "$as_dir" && as_dir=.
12252 for ac_exec_ext in '' $ac_executable_extensions; do
12253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12254 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256 break 2
12258 done
12259 done
12260 IFS=$as_save_IFS
12264 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12265 if test -n "$NM_FOR_TARGET"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12267 $as_echo "$NM_FOR_TARGET" >&6; }
12268 else
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12275 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12276 done
12279 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12280 set dummy nm
12281 if test $build = $target ; then
12282 NM_FOR_TARGET="$2"
12283 else
12284 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12286 else
12287 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12290 else
12291 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12297 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12298 if test -n "$with_build_time_tools"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12300 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12301 if test -x $with_build_time_tools/objdump; then
12302 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12303 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12305 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12306 else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12310 elif test $build != $host && test $have_gcc_for_target = yes; then
12311 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12312 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12313 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12316 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12317 # Extract the first word of "objdump", so it can be a program name with args.
12318 set dummy objdump; ac_word=$2
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320 $as_echo_n "checking for $ac_word... " >&6; }
12321 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12322 $as_echo_n "(cached) " >&6
12323 else
12324 case $OBJDUMP_FOR_TARGET in
12325 [\\/]* | ?:[\\/]*)
12326 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $gcc_cv_tool_dirs
12332 IFS=$as_save_IFS
12333 test -z "$as_dir" && as_dir=.
12334 for ac_exec_ext in '' $ac_executable_extensions; do
12335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12336 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 break 2
12340 done
12341 done
12342 IFS=$as_save_IFS
12345 esac
12347 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12348 if test -n "$OBJDUMP_FOR_TARGET"; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12350 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12351 else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 $as_echo "no" >&6; }
12358 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12361 if test -n "$OBJDUMP_FOR_TARGET"; then
12362 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12363 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12364 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12367 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12368 for ncn_progname in objdump; do
12369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12370 set dummy ${ncn_progname}; ac_word=$2
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372 $as_echo_n "checking for $ac_word... " >&6; }
12373 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 if test -n "$OBJDUMP_FOR_TARGET"; then
12377 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12378 else
12379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380 for as_dir in $PATH
12382 IFS=$as_save_IFS
12383 test -z "$as_dir" && as_dir=.
12384 for ac_exec_ext in '' $ac_executable_extensions; do
12385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12386 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388 break 2
12390 done
12391 done
12392 IFS=$as_save_IFS
12396 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12397 if test -n "$OBJDUMP_FOR_TARGET"; then
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12399 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12400 else
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12406 done
12409 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12410 for ncn_progname in objdump; do
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12412 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12413 if test -x $with_build_time_tools/${ncn_progname}; then
12414 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12416 $as_echo "yes" >&6; }
12417 break
12418 else
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12422 done
12425 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12426 for ncn_progname in objdump; do
12427 if test -n "$ncn_target_tool_prefix"; then
12428 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12429 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431 $as_echo_n "checking for $ac_word... " >&6; }
12432 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 if test -n "$OBJDUMP_FOR_TARGET"; then
12436 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12437 else
12438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439 for as_dir in $PATH
12441 IFS=$as_save_IFS
12442 test -z "$as_dir" && as_dir=.
12443 for ac_exec_ext in '' $ac_executable_extensions; do
12444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12445 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447 break 2
12449 done
12450 done
12451 IFS=$as_save_IFS
12455 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12456 if test -n "$OBJDUMP_FOR_TARGET"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12458 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12459 else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
12466 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12468 set dummy ${ncn_progname}; ac_word=$2
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470 $as_echo_n "checking for $ac_word... " >&6; }
12471 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474 if test -n "$OBJDUMP_FOR_TARGET"; then
12475 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12476 else
12477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478 for as_dir in $PATH
12480 IFS=$as_save_IFS
12481 test -z "$as_dir" && as_dir=.
12482 for ac_exec_ext in '' $ac_executable_extensions; do
12483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12484 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12486 break 2
12488 done
12489 done
12490 IFS=$as_save_IFS
12494 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12495 if test -n "$OBJDUMP_FOR_TARGET"; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12497 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12498 else
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12505 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12506 done
12509 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12510 set dummy objdump
12511 if test $build = $target ; then
12512 OBJDUMP_FOR_TARGET="$2"
12513 else
12514 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12516 else
12517 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12520 else
12521 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12527 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12528 if test -n "$with_build_time_tools"; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12530 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12531 if test -x $with_build_time_tools/ranlib; then
12532 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12533 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12535 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12536 else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12540 elif test $build != $host && test $have_gcc_for_target = yes; then
12541 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12542 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12543 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12546 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12547 # Extract the first word of "ranlib", so it can be a program name with args.
12548 set dummy ranlib; ac_word=$2
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12550 $as_echo_n "checking for $ac_word... " >&6; }
12551 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12552 $as_echo_n "(cached) " >&6
12553 else
12554 case $RANLIB_FOR_TARGET in
12555 [\\/]* | ?:[\\/]*)
12556 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560 for as_dir in $gcc_cv_tool_dirs
12562 IFS=$as_save_IFS
12563 test -z "$as_dir" && as_dir=.
12564 for ac_exec_ext in '' $ac_executable_extensions; do
12565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12566 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12568 break 2
12570 done
12571 done
12572 IFS=$as_save_IFS
12575 esac
12577 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12578 if test -n "$RANLIB_FOR_TARGET"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12580 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12581 else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583 $as_echo "no" >&6; }
12588 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12591 if test -n "$RANLIB_FOR_TARGET"; then
12592 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12593 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12594 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12597 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12598 for ncn_progname in ranlib; do
12599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12600 set dummy ${ncn_progname}; ac_word=$2
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602 $as_echo_n "checking for $ac_word... " >&6; }
12603 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12606 if test -n "$RANLIB_FOR_TARGET"; then
12607 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12608 else
12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610 for as_dir in $PATH
12612 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
12614 for ac_exec_ext in '' $ac_executable_extensions; do
12615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12616 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 break 2
12620 done
12621 done
12622 IFS=$as_save_IFS
12626 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12627 if test -n "$RANLIB_FOR_TARGET"; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12629 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12630 else
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12636 done
12639 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12640 for ncn_progname in ranlib; do
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12642 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12643 if test -x $with_build_time_tools/${ncn_progname}; then
12644 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12646 $as_echo "yes" >&6; }
12647 break
12648 else
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12652 done
12655 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12656 for ncn_progname in ranlib; do
12657 if test -n "$ncn_target_tool_prefix"; then
12658 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12659 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661 $as_echo_n "checking for $ac_word... " >&6; }
12662 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 if test -n "$RANLIB_FOR_TARGET"; then
12666 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12667 else
12668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in $PATH
12671 IFS=$as_save_IFS
12672 test -z "$as_dir" && as_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12675 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12677 break 2
12679 done
12680 done
12681 IFS=$as_save_IFS
12685 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12686 if test -n "$RANLIB_FOR_TARGET"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12688 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12689 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12696 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12698 set dummy ${ncn_progname}; ac_word=$2
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700 $as_echo_n "checking for $ac_word... " >&6; }
12701 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 if test -n "$RANLIB_FOR_TARGET"; then
12705 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12706 else
12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in $PATH
12710 IFS=$as_save_IFS
12711 test -z "$as_dir" && as_dir=.
12712 for ac_exec_ext in '' $ac_executable_extensions; do
12713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12714 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12716 break 2
12718 done
12719 done
12720 IFS=$as_save_IFS
12724 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12725 if test -n "$RANLIB_FOR_TARGET"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12727 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12728 else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730 $as_echo "no" >&6; }
12735 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12736 done
12739 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12740 set dummy ranlib
12741 if test $build = $target ; then
12742 RANLIB_FOR_TARGET="$2"
12743 else
12744 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12746 else
12747 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12750 else
12751 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12757 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12758 if test -n "$with_build_time_tools"; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12760 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12761 if test -x $with_build_time_tools/readelf; then
12762 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12763 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12765 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12766 else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12770 elif test $build != $host && test $have_gcc_for_target = yes; then
12771 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12772 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12773 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12776 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12777 # Extract the first word of "readelf", so it can be a program name with args.
12778 set dummy readelf; ac_word=$2
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780 $as_echo_n "checking for $ac_word... " >&6; }
12781 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12782 $as_echo_n "(cached) " >&6
12783 else
12784 case $READELF_FOR_TARGET in
12785 [\\/]* | ?:[\\/]*)
12786 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12790 for as_dir in $gcc_cv_tool_dirs
12792 IFS=$as_save_IFS
12793 test -z "$as_dir" && as_dir=.
12794 for ac_exec_ext in '' $ac_executable_extensions; do
12795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12796 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12798 break 2
12800 done
12801 done
12802 IFS=$as_save_IFS
12805 esac
12807 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12808 if test -n "$READELF_FOR_TARGET"; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12810 $as_echo "$READELF_FOR_TARGET" >&6; }
12811 else
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813 $as_echo "no" >&6; }
12818 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12821 if test -n "$READELF_FOR_TARGET"; then
12822 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12823 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12824 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12827 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12828 for ncn_progname in readelf; do
12829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12830 set dummy ${ncn_progname}; ac_word=$2
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12832 $as_echo_n "checking for $ac_word... " >&6; }
12833 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 if test -n "$READELF_FOR_TARGET"; then
12837 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12838 else
12839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12842 IFS=$as_save_IFS
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
12845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12846 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12848 break 2
12850 done
12851 done
12852 IFS=$as_save_IFS
12856 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12857 if test -n "$READELF_FOR_TARGET"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12859 $as_echo "$READELF_FOR_TARGET" >&6; }
12860 else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12866 done
12869 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12870 for ncn_progname in readelf; do
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12872 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12873 if test -x $with_build_time_tools/${ncn_progname}; then
12874 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12876 $as_echo "yes" >&6; }
12877 break
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12882 done
12885 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12886 for ncn_progname in readelf; do
12887 if test -n "$ncn_target_tool_prefix"; then
12888 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12889 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891 $as_echo_n "checking for $ac_word... " >&6; }
12892 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12893 $as_echo_n "(cached) " >&6
12894 else
12895 if test -n "$READELF_FOR_TARGET"; then
12896 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12897 else
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12905 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12907 break 2
12909 done
12910 done
12911 IFS=$as_save_IFS
12915 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12916 if test -n "$READELF_FOR_TARGET"; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12918 $as_echo "$READELF_FOR_TARGET" >&6; }
12919 else
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12926 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12928 set dummy ${ncn_progname}; ac_word=$2
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12930 $as_echo_n "checking for $ac_word... " >&6; }
12931 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 if test -n "$READELF_FOR_TARGET"; then
12935 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12936 else
12937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12938 for as_dir in $PATH
12940 IFS=$as_save_IFS
12941 test -z "$as_dir" && as_dir=.
12942 for ac_exec_ext in '' $ac_executable_extensions; do
12943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12944 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12946 break 2
12948 done
12949 done
12950 IFS=$as_save_IFS
12954 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12955 if test -n "$READELF_FOR_TARGET"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12957 $as_echo "$READELF_FOR_TARGET" >&6; }
12958 else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12965 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12966 done
12969 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12970 set dummy readelf
12971 if test $build = $target ; then
12972 READELF_FOR_TARGET="$2"
12973 else
12974 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12976 else
12977 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12980 else
12981 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12987 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12988 if test -n "$with_build_time_tools"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12990 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12991 if test -x $with_build_time_tools/strip; then
12992 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12993 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12995 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12996 else
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 $as_echo "no" >&6; }
13000 elif test $build != $host && test $have_gcc_for_target = yes; then
13001 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13002 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13003 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13006 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13007 # Extract the first word of "strip", so it can be a program name with args.
13008 set dummy strip; ac_word=$2
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010 $as_echo_n "checking for $ac_word... " >&6; }
13011 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 case $STRIP_FOR_TARGET in
13015 [\\/]* | ?:[\\/]*)
13016 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020 for as_dir in $gcc_cv_tool_dirs
13022 IFS=$as_save_IFS
13023 test -z "$as_dir" && as_dir=.
13024 for ac_exec_ext in '' $ac_executable_extensions; do
13025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13026 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13028 break 2
13030 done
13031 done
13032 IFS=$as_save_IFS
13035 esac
13037 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13038 if test -n "$STRIP_FOR_TARGET"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13040 $as_echo "$STRIP_FOR_TARGET" >&6; }
13041 else
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13048 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13051 if test -n "$STRIP_FOR_TARGET"; then
13052 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13053 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13054 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13057 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13058 for ncn_progname in strip; do
13059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13060 set dummy ${ncn_progname}; ac_word=$2
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13062 $as_echo_n "checking for $ac_word... " >&6; }
13063 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13064 $as_echo_n "(cached) " >&6
13065 else
13066 if test -n "$STRIP_FOR_TARGET"; then
13067 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13068 else
13069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH
13072 IFS=$as_save_IFS
13073 test -z "$as_dir" && as_dir=.
13074 for ac_exec_ext in '' $ac_executable_extensions; do
13075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13076 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13078 break 2
13080 done
13081 done
13082 IFS=$as_save_IFS
13086 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13087 if test -n "$STRIP_FOR_TARGET"; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13089 $as_echo "$STRIP_FOR_TARGET" >&6; }
13090 else
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13096 done
13099 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13100 for ncn_progname in strip; do
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13102 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13103 if test -x $with_build_time_tools/${ncn_progname}; then
13104 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13106 $as_echo "yes" >&6; }
13107 break
13108 else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13112 done
13115 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13116 for ncn_progname in strip; do
13117 if test -n "$ncn_target_tool_prefix"; then
13118 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13119 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121 $as_echo_n "checking for $ac_word... " >&6; }
13122 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 if test -n "$STRIP_FOR_TARGET"; then
13126 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13127 else
13128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129 for as_dir in $PATH
13131 IFS=$as_save_IFS
13132 test -z "$as_dir" && as_dir=.
13133 for ac_exec_ext in '' $ac_executable_extensions; do
13134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13135 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137 break 2
13139 done
13140 done
13141 IFS=$as_save_IFS
13145 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13146 if test -n "$STRIP_FOR_TARGET"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13148 $as_echo "$STRIP_FOR_TARGET" >&6; }
13149 else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $as_echo "no" >&6; }
13156 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13158 set dummy ${ncn_progname}; ac_word=$2
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13160 $as_echo_n "checking for $ac_word... " >&6; }
13161 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13162 $as_echo_n "(cached) " >&6
13163 else
13164 if test -n "$STRIP_FOR_TARGET"; then
13165 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13166 else
13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168 for as_dir in $PATH
13170 IFS=$as_save_IFS
13171 test -z "$as_dir" && as_dir=.
13172 for ac_exec_ext in '' $ac_executable_extensions; do
13173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13174 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13176 break 2
13178 done
13179 done
13180 IFS=$as_save_IFS
13184 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13185 if test -n "$STRIP_FOR_TARGET"; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13187 $as_echo "$STRIP_FOR_TARGET" >&6; }
13188 else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13195 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13196 done
13199 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13200 set dummy strip
13201 if test $build = $target ; then
13202 STRIP_FOR_TARGET="$2"
13203 else
13204 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13206 else
13207 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13210 else
13211 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13217 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13218 if test -n "$with_build_time_tools"; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13220 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13221 if test -x $with_build_time_tools/windres; then
13222 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13223 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13225 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13230 elif test $build != $host && test $have_gcc_for_target = yes; then
13231 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13232 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13233 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13236 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13237 # Extract the first word of "windres", so it can be a program name with args.
13238 set dummy windres; ac_word=$2
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13240 $as_echo_n "checking for $ac_word... " >&6; }
13241 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13242 $as_echo_n "(cached) " >&6
13243 else
13244 case $WINDRES_FOR_TARGET in
13245 [\\/]* | ?:[\\/]*)
13246 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $gcc_cv_tool_dirs
13252 IFS=$as_save_IFS
13253 test -z "$as_dir" && as_dir=.
13254 for ac_exec_ext in '' $ac_executable_extensions; do
13255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13256 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13258 break 2
13260 done
13261 done
13262 IFS=$as_save_IFS
13265 esac
13267 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13268 if test -n "$WINDRES_FOR_TARGET"; then
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13270 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13271 else
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273 $as_echo "no" >&6; }
13278 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13281 if test -n "$WINDRES_FOR_TARGET"; then
13282 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13283 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13284 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13287 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13288 for ncn_progname in windres; do
13289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13290 set dummy ${ncn_progname}; ac_word=$2
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292 $as_echo_n "checking for $ac_word... " >&6; }
13293 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 if test -n "$WINDRES_FOR_TARGET"; then
13297 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13298 else
13299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300 for as_dir in $PATH
13302 IFS=$as_save_IFS
13303 test -z "$as_dir" && as_dir=.
13304 for ac_exec_ext in '' $ac_executable_extensions; do
13305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13306 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13308 break 2
13310 done
13311 done
13312 IFS=$as_save_IFS
13316 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13317 if test -n "$WINDRES_FOR_TARGET"; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13319 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13320 else
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13326 done
13329 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13330 for ncn_progname in windres; do
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13332 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13333 if test -x $with_build_time_tools/${ncn_progname}; then
13334 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13336 $as_echo "yes" >&6; }
13337 break
13338 else
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340 $as_echo "no" >&6; }
13342 done
13345 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13346 for ncn_progname in windres; do
13347 if test -n "$ncn_target_tool_prefix"; then
13348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13349 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351 $as_echo_n "checking for $ac_word... " >&6; }
13352 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 if test -n "$WINDRES_FOR_TARGET"; then
13356 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13357 else
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13361 IFS=$as_save_IFS
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13365 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367 break 2
13369 done
13370 done
13371 IFS=$as_save_IFS
13375 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13376 if test -n "$WINDRES_FOR_TARGET"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13378 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13379 else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13386 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13388 set dummy ${ncn_progname}; ac_word=$2
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13390 $as_echo_n "checking for $ac_word... " >&6; }
13391 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394 if test -n "$WINDRES_FOR_TARGET"; then
13395 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13396 else
13397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13398 for as_dir in $PATH
13400 IFS=$as_save_IFS
13401 test -z "$as_dir" && as_dir=.
13402 for ac_exec_ext in '' $ac_executable_extensions; do
13403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13404 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13406 break 2
13408 done
13409 done
13410 IFS=$as_save_IFS
13414 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13415 if test -n "$WINDRES_FOR_TARGET"; then
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13417 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13418 else
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420 $as_echo "no" >&6; }
13425 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13426 done
13429 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13430 set dummy windres
13431 if test $build = $target ; then
13432 WINDRES_FOR_TARGET="$2"
13433 else
13434 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13436 else
13437 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13440 else
13441 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13447 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13448 if test -n "$with_build_time_tools"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13450 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13451 if test -x $with_build_time_tools/windmc; then
13452 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13453 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13455 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13456 else
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13458 $as_echo "no" >&6; }
13460 elif test $build != $host && test $have_gcc_for_target = yes; then
13461 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13462 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13463 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13466 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13467 # Extract the first word of "windmc", so it can be a program name with args.
13468 set dummy windmc; ac_word=$2
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470 $as_echo_n "checking for $ac_word... " >&6; }
13471 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13473 else
13474 case $WINDMC_FOR_TARGET in
13475 [\\/]* | ?:[\\/]*)
13476 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $gcc_cv_tool_dirs
13482 IFS=$as_save_IFS
13483 test -z "$as_dir" && as_dir=.
13484 for ac_exec_ext in '' $ac_executable_extensions; do
13485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13486 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13488 break 2
13490 done
13491 done
13492 IFS=$as_save_IFS
13495 esac
13497 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13498 if test -n "$WINDMC_FOR_TARGET"; then
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13500 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13501 else
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13503 $as_echo "no" >&6; }
13508 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13511 if test -n "$WINDMC_FOR_TARGET"; then
13512 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13513 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13514 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13517 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13518 for ncn_progname in windmc; do
13519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13520 set dummy ${ncn_progname}; ac_word=$2
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13522 $as_echo_n "checking for $ac_word... " >&6; }
13523 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 if test -n "$WINDMC_FOR_TARGET"; then
13527 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13528 else
13529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13530 for as_dir in $PATH
13532 IFS=$as_save_IFS
13533 test -z "$as_dir" && as_dir=.
13534 for ac_exec_ext in '' $ac_executable_extensions; do
13535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13536 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13538 break 2
13540 done
13541 done
13542 IFS=$as_save_IFS
13546 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13547 if test -n "$WINDMC_FOR_TARGET"; then
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13549 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13550 else
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552 $as_echo "no" >&6; }
13556 done
13559 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13560 for ncn_progname in windmc; do
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13562 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13563 if test -x $with_build_time_tools/${ncn_progname}; then
13564 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13566 $as_echo "yes" >&6; }
13567 break
13568 else
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13570 $as_echo "no" >&6; }
13572 done
13575 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13576 for ncn_progname in windmc; do
13577 if test -n "$ncn_target_tool_prefix"; then
13578 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13579 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581 $as_echo_n "checking for $ac_word... " >&6; }
13582 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 if test -n "$WINDMC_FOR_TARGET"; then
13586 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13587 else
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589 for as_dir in $PATH
13591 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do
13594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13595 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2
13599 done
13600 done
13601 IFS=$as_save_IFS
13605 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13606 if test -n "$WINDMC_FOR_TARGET"; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13608 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13609 else
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611 $as_echo "no" >&6; }
13616 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13618 set dummy ${ncn_progname}; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 if test -n "$WINDMC_FOR_TARGET"; then
13625 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13634 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13638 done
13639 done
13640 IFS=$as_save_IFS
13644 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13645 if test -n "$WINDMC_FOR_TARGET"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13647 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13648 else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13655 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13656 done
13659 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13660 set dummy windmc
13661 if test $build = $target ; then
13662 WINDMC_FOR_TARGET="$2"
13663 else
13664 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13666 else
13667 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13670 else
13671 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13675 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13678 $as_echo_n "checking where to find the target ar... " >&6; }
13679 if test "x${build}" != "x${host}" ; then
13680 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13681 # We already found the complete path
13682 ac_dir=`dirname $AR_FOR_TARGET`
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13684 $as_echo "pre-installed in $ac_dir" >&6; }
13685 else
13686 # Canadian cross, just use what we found
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13688 $as_echo "pre-installed" >&6; }
13690 else
13691 ok=yes
13692 case " ${configdirs} " in
13693 *" binutils "*) ;;
13694 *) ok=no ;;
13695 esac
13697 if test $ok = yes; then
13698 # An in-tree tool is available and we can use it
13699 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13701 $as_echo "just compiled" >&6; }
13702 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13703 # We already found the complete path
13704 ac_dir=`dirname $AR_FOR_TARGET`
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13706 $as_echo "pre-installed in $ac_dir" >&6; }
13707 elif test "x$target" = "x$host"; then
13708 # We can use an host tool
13709 AR_FOR_TARGET='$(AR)'
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13711 $as_echo "host tool" >&6; }
13712 else
13713 # We need a cross tool
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13715 $as_echo "pre-installed" >&6; }
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13720 $as_echo_n "checking where to find the target as... " >&6; }
13721 if test "x${build}" != "x${host}" ; then
13722 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13723 # We already found the complete path
13724 ac_dir=`dirname $AS_FOR_TARGET`
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13726 $as_echo "pre-installed in $ac_dir" >&6; }
13727 else
13728 # Canadian cross, just use what we found
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13730 $as_echo "pre-installed" >&6; }
13732 else
13733 ok=yes
13734 case " ${configdirs} " in
13735 *" gas "*) ;;
13736 *) ok=no ;;
13737 esac
13739 if test $ok = yes; then
13740 # An in-tree tool is available and we can use it
13741 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13743 $as_echo "just compiled" >&6; }
13744 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13745 # We already found the complete path
13746 ac_dir=`dirname $AS_FOR_TARGET`
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13748 $as_echo "pre-installed in $ac_dir" >&6; }
13749 elif test "x$target" = "x$host"; then
13750 # We can use an host tool
13751 AS_FOR_TARGET='$(AS)'
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13753 $as_echo "host tool" >&6; }
13754 else
13755 # We need a cross tool
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13757 $as_echo "pre-installed" >&6; }
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13762 $as_echo_n "checking where to find the target cc... " >&6; }
13763 if test "x${build}" != "x${host}" ; then
13764 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13765 # We already found the complete path
13766 ac_dir=`dirname $CC_FOR_TARGET`
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13768 $as_echo "pre-installed in $ac_dir" >&6; }
13769 else
13770 # Canadian cross, just use what we found
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772 $as_echo "pre-installed" >&6; }
13774 else
13775 ok=yes
13776 case " ${configdirs} " in
13777 *" gcc "*) ;;
13778 *) ok=no ;;
13779 esac
13781 if test $ok = yes; then
13782 # An in-tree tool is available and we can use it
13783 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13785 $as_echo "just compiled" >&6; }
13786 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13787 # We already found the complete path
13788 ac_dir=`dirname $CC_FOR_TARGET`
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13790 $as_echo "pre-installed in $ac_dir" >&6; }
13791 elif test "x$target" = "x$host"; then
13792 # We can use an host tool
13793 CC_FOR_TARGET='$(CC)'
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13795 $as_echo "host tool" >&6; }
13796 else
13797 # We need a cross tool
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13799 $as_echo "pre-installed" >&6; }
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13804 $as_echo_n "checking where to find the target c++... " >&6; }
13805 if test "x${build}" != "x${host}" ; then
13806 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13807 # We already found the complete path
13808 ac_dir=`dirname $CXX_FOR_TARGET`
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13810 $as_echo "pre-installed in $ac_dir" >&6; }
13811 else
13812 # Canadian cross, just use what we found
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13814 $as_echo "pre-installed" >&6; }
13816 else
13817 ok=yes
13818 case " ${configdirs} " in
13819 *" gcc "*) ;;
13820 *) ok=no ;;
13821 esac
13822 case ,${enable_languages}, in
13823 *,c++,*) ;;
13824 *) ok=no ;;
13825 esac
13826 if test $ok = yes; then
13827 # An in-tree tool is available and we can use it
13828 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'
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13830 $as_echo "just compiled" >&6; }
13831 elif 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 elif test "x$target" = "x$host"; then
13837 # We can use an host tool
13838 CXX_FOR_TARGET='$(CXX)'
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13840 $as_echo "host tool" >&6; }
13841 else
13842 # We need a cross tool
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13844 $as_echo "pre-installed" >&6; }
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13849 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13850 if test "x${build}" != "x${host}" ; then
13851 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13852 # We already found the complete path
13853 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13855 $as_echo "pre-installed in $ac_dir" >&6; }
13856 else
13857 # Canadian cross, just use what we found
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13859 $as_echo "pre-installed" >&6; }
13861 else
13862 ok=yes
13863 case " ${configdirs} " in
13864 *" gcc "*) ;;
13865 *) ok=no ;;
13866 esac
13867 case ,${enable_languages}, in
13868 *,c++,*) ;;
13869 *) ok=no ;;
13870 esac
13871 if test $ok = yes; then
13872 # An in-tree tool is available and we can use it
13873 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'
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13875 $as_echo "just compiled" >&6; }
13876 elif 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 elif test "x$target" = "x$host"; then
13882 # We can use an host tool
13883 RAW_CXX_FOR_TARGET='$(CXX)'
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13885 $as_echo "host tool" >&6; }
13886 else
13887 # We need a cross tool
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13889 $as_echo "pre-installed" >&6; }
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13894 $as_echo_n "checking where to find the target dlltool... " >&6; }
13895 if test "x${build}" != "x${host}" ; then
13896 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13897 # We already found the complete path
13898 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13900 $as_echo "pre-installed in $ac_dir" >&6; }
13901 else
13902 # Canadian cross, just use what we found
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13904 $as_echo "pre-installed" >&6; }
13906 else
13907 ok=yes
13908 case " ${configdirs} " in
13909 *" binutils "*) ;;
13910 *) ok=no ;;
13911 esac
13913 if test $ok = yes; then
13914 # An in-tree tool is available and we can use it
13915 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13917 $as_echo "just compiled" >&6; }
13918 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13919 # We already found the complete path
13920 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13922 $as_echo "pre-installed in $ac_dir" >&6; }
13923 elif test "x$target" = "x$host"; then
13924 # We can use an host tool
13925 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13927 $as_echo "host tool" >&6; }
13928 else
13929 # We need a cross tool
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931 $as_echo "pre-installed" >&6; }
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13936 $as_echo_n "checking where to find the target gcc... " >&6; }
13937 if test "x${build}" != "x${host}" ; then
13938 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13939 # We already found the complete path
13940 ac_dir=`dirname $GCC_FOR_TARGET`
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13942 $as_echo "pre-installed in $ac_dir" >&6; }
13943 else
13944 # Canadian cross, just use what we found
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946 $as_echo "pre-installed" >&6; }
13948 else
13949 ok=yes
13950 case " ${configdirs} " in
13951 *" gcc "*) ;;
13952 *) ok=no ;;
13953 esac
13955 if test $ok = yes; then
13956 # An in-tree tool is available and we can use it
13957 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13959 $as_echo "just compiled" >&6; }
13960 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13961 # We already found the complete path
13962 ac_dir=`dirname $GCC_FOR_TARGET`
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13964 $as_echo "pre-installed in $ac_dir" >&6; }
13965 elif test "x$target" = "x$host"; then
13966 # We can use an host tool
13967 GCC_FOR_TARGET='$()'
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13969 $as_echo "host tool" >&6; }
13970 else
13971 # We need a cross tool
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13973 $as_echo "pre-installed" >&6; }
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13978 $as_echo_n "checking where to find the target gcj... " >&6; }
13979 if test "x${build}" != "x${host}" ; then
13980 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13981 # We already found the complete path
13982 ac_dir=`dirname $GCJ_FOR_TARGET`
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13984 $as_echo "pre-installed in $ac_dir" >&6; }
13985 else
13986 # Canadian cross, just use what we found
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13988 $as_echo "pre-installed" >&6; }
13990 else
13991 ok=yes
13992 case " ${configdirs} " in
13993 *" gcc "*) ;;
13994 *) ok=no ;;
13995 esac
13996 case ,${enable_languages}, in
13997 *,java,*) ;;
13998 *) ok=no ;;
13999 esac
14000 if test $ok = yes; then
14001 # An in-tree tool is available and we can use it
14002 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14004 $as_echo "just compiled" >&6; }
14005 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14006 # We already found the complete path
14007 ac_dir=`dirname $GCJ_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 elif test "x$target" = "x$host"; then
14011 # We can use an host tool
14012 GCJ_FOR_TARGET='$(GCJ)'
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14014 $as_echo "host tool" >&6; }
14015 else
14016 # We need a cross tool
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14018 $as_echo "pre-installed" >&6; }
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14023 $as_echo_n "checking where to find the target gfortran... " >&6; }
14024 if test "x${build}" != "x${host}" ; then
14025 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14026 # We already found the complete path
14027 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14029 $as_echo "pre-installed in $ac_dir" >&6; }
14030 else
14031 # Canadian cross, just use what we found
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14033 $as_echo "pre-installed" >&6; }
14035 else
14036 ok=yes
14037 case " ${configdirs} " in
14038 *" gcc "*) ;;
14039 *) ok=no ;;
14040 esac
14041 case ,${enable_languages}, in
14042 *,fortran,*) ;;
14043 *) ok=no ;;
14044 esac
14045 if test $ok = yes; then
14046 # An in-tree tool is available and we can use it
14047 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14049 $as_echo "just compiled" >&6; }
14050 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14051 # We already found the complete path
14052 ac_dir=`dirname $GFORTRAN_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 elif test "x$target" = "x$host"; then
14056 # We can use an host tool
14057 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14059 $as_echo "host tool" >&6; }
14060 else
14061 # We need a cross tool
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063 $as_echo "pre-installed" >&6; }
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14068 $as_echo_n "checking where to find the target gccgo... " >&6; }
14069 if test "x${build}" != "x${host}" ; then
14070 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14071 # We already found the complete path
14072 ac_dir=`dirname $GOC_FOR_TARGET`
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14074 $as_echo "pre-installed in $ac_dir" >&6; }
14075 else
14076 # Canadian cross, just use what we found
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14078 $as_echo "pre-installed" >&6; }
14080 else
14081 ok=yes
14082 case " ${configdirs} " in
14083 *" gcc "*) ;;
14084 *) ok=no ;;
14085 esac
14086 case ,${enable_languages}, in
14087 *,go,*) ;;
14088 *) ok=no ;;
14089 esac
14090 if test $ok = yes; then
14091 # An in-tree tool is available and we can use it
14092 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14094 $as_echo "just compiled" >&6; }
14095 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14096 # We already found the complete path
14097 ac_dir=`dirname $GOC_FOR_TARGET`
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099 $as_echo "pre-installed in $ac_dir" >&6; }
14100 elif test "x$target" = "x$host"; then
14101 # We can use an host tool
14102 GOC_FOR_TARGET='$(GOC)'
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14104 $as_echo "host tool" >&6; }
14105 else
14106 # We need a cross tool
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108 $as_echo "pre-installed" >&6; }
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14113 $as_echo_n "checking where to find the target ld... " >&6; }
14114 if test "x${build}" != "x${host}" ; then
14115 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
14117 ac_dir=`dirname $LD_FOR_TARGET`
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119 $as_echo "pre-installed in $ac_dir" >&6; }
14120 else
14121 # Canadian cross, just use what we found
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14123 $as_echo "pre-installed" >&6; }
14125 else
14126 ok=yes
14127 case " ${configdirs} " in
14128 *" ld "*) ;;
14129 *) ok=no ;;
14130 esac
14132 if test $ok = yes; then
14133 # An in-tree tool is available and we can use it
14134 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14136 $as_echo "just compiled" >&6; }
14137 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14138 # We already found the complete path
14139 ac_dir=`dirname $LD_FOR_TARGET`
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14141 $as_echo "pre-installed in $ac_dir" >&6; }
14142 elif test "x$target" = "x$host"; then
14143 # We can use an host tool
14144 LD_FOR_TARGET='$(LD)'
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14146 $as_echo "host tool" >&6; }
14147 else
14148 # We need a cross tool
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14150 $as_echo "pre-installed" >&6; }
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14155 $as_echo_n "checking where to find the target lipo... " >&6; }
14156 if test "x${build}" != "x${host}" ; then
14157 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14158 # We already found the complete path
14159 ac_dir=`dirname $LIPO_FOR_TARGET`
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14161 $as_echo "pre-installed in $ac_dir" >&6; }
14162 else
14163 # Canadian cross, just use what we found
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14165 $as_echo "pre-installed" >&6; }
14167 else
14168 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14169 # We already found the complete path
14170 ac_dir=`dirname $LIPO_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 elif test "x$target" = "x$host"; then
14174 # We can use an host tool
14175 LIPO_FOR_TARGET='$(LIPO)'
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14177 $as_echo "host tool" >&6; }
14178 else
14179 # We need a cross tool
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14181 $as_echo "pre-installed" >&6; }
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14186 $as_echo_n "checking where to find the target nm... " >&6; }
14187 if test "x${build}" != "x${host}" ; then
14188 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14189 # We already found the complete path
14190 ac_dir=`dirname $NM_FOR_TARGET`
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14192 $as_echo "pre-installed in $ac_dir" >&6; }
14193 else
14194 # Canadian cross, just use what we found
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14196 $as_echo "pre-installed" >&6; }
14198 else
14199 ok=yes
14200 case " ${configdirs} " in
14201 *" binutils "*) ;;
14202 *) ok=no ;;
14203 esac
14205 if test $ok = yes; then
14206 # An in-tree tool is available and we can use it
14207 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14209 $as_echo "just compiled" >&6; }
14210 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14211 # We already found the complete path
14212 ac_dir=`dirname $NM_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 elif test "x$target" = "x$host"; then
14216 # We can use an host tool
14217 NM_FOR_TARGET='$(NM)'
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14219 $as_echo "host tool" >&6; }
14220 else
14221 # We need a cross tool
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14223 $as_echo "pre-installed" >&6; }
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14228 $as_echo_n "checking where to find the target objdump... " >&6; }
14229 if test "x${build}" != "x${host}" ; then
14230 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14231 # We already found the complete path
14232 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14234 $as_echo "pre-installed in $ac_dir" >&6; }
14235 else
14236 # Canadian cross, just use what we found
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14238 $as_echo "pre-installed" >&6; }
14240 else
14241 ok=yes
14242 case " ${configdirs} " in
14243 *" binutils "*) ;;
14244 *) ok=no ;;
14245 esac
14247 if test $ok = yes; then
14248 # An in-tree tool is available and we can use it
14249 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14251 $as_echo "just compiled" >&6; }
14252 elif 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 elif test "x$target" = "x$host"; then
14258 # We can use an host tool
14259 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14261 $as_echo "host tool" >&6; }
14262 else
14263 # We need a cross tool
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14265 $as_echo "pre-installed" >&6; }
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14270 $as_echo_n "checking where to find the target ranlib... " >&6; }
14271 if test "x${build}" != "x${host}" ; then
14272 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
14274 ac_dir=`dirname $RANLIB_FOR_TARGET`
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276 $as_echo "pre-installed in $ac_dir" >&6; }
14277 else
14278 # Canadian cross, just use what we found
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14280 $as_echo "pre-installed" >&6; }
14282 else
14283 ok=yes
14284 case " ${configdirs} " in
14285 *" binutils "*) ;;
14286 *) ok=no ;;
14287 esac
14289 if test $ok = yes; then
14290 # An in-tree tool is available and we can use it
14291 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14293 $as_echo "just compiled" >&6; }
14294 elif 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 elif test "x$target" = "x$host"; then
14300 # We can use an host tool
14301 RANLIB_FOR_TARGET='$(RANLIB)'
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14303 $as_echo "host tool" >&6; }
14304 else
14305 # We need a cross tool
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14307 $as_echo "pre-installed" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14312 $as_echo_n "checking where to find the target readelf... " >&6; }
14313 if test "x${build}" != "x${host}" ; then
14314 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
14316 ac_dir=`dirname $READELF_FOR_TARGET`
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14318 $as_echo "pre-installed in $ac_dir" >&6; }
14319 else
14320 # Canadian cross, just use what we found
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14322 $as_echo "pre-installed" >&6; }
14324 else
14325 ok=yes
14326 case " ${configdirs} " in
14327 *" binutils "*) ;;
14328 *) ok=no ;;
14329 esac
14331 if test $ok = yes; then
14332 # An in-tree tool is available and we can use it
14333 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14335 $as_echo "just compiled" >&6; }
14336 elif 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 elif test "x$target" = "x$host"; then
14342 # We can use an host tool
14343 READELF_FOR_TARGET='$(READELF)'
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14345 $as_echo "host tool" >&6; }
14346 else
14347 # We need a cross tool
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14349 $as_echo "pre-installed" >&6; }
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14354 $as_echo_n "checking where to find the target strip... " >&6; }
14355 if test "x${build}" != "x${host}" ; then
14356 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14357 # We already found the complete path
14358 ac_dir=`dirname $STRIP_FOR_TARGET`
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14360 $as_echo "pre-installed in $ac_dir" >&6; }
14361 else
14362 # Canadian cross, just use what we found
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14364 $as_echo "pre-installed" >&6; }
14366 else
14367 ok=yes
14368 case " ${configdirs} " in
14369 *" binutils "*) ;;
14370 *) ok=no ;;
14371 esac
14373 if test $ok = yes; then
14374 # An in-tree tool is available and we can use it
14375 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14377 $as_echo "just compiled" >&6; }
14378 elif 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 elif test "x$target" = "x$host"; then
14384 # We can use an host tool
14385 STRIP_FOR_TARGET='$(STRIP)'
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14387 $as_echo "host tool" >&6; }
14388 else
14389 # We need a cross tool
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14391 $as_echo "pre-installed" >&6; }
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14396 $as_echo_n "checking where to find the target windres... " >&6; }
14397 if test "x${build}" != "x${host}" ; then
14398 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
14400 ac_dir=`dirname $WINDRES_FOR_TARGET`
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402 $as_echo "pre-installed in $ac_dir" >&6; }
14403 else
14404 # Canadian cross, just use what we found
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14406 $as_echo "pre-installed" >&6; }
14408 else
14409 ok=yes
14410 case " ${configdirs} " in
14411 *" binutils "*) ;;
14412 *) ok=no ;;
14413 esac
14415 if test $ok = yes; then
14416 # An in-tree tool is available and we can use it
14417 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14419 $as_echo "just compiled" >&6; }
14420 elif 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 elif test "x$target" = "x$host"; then
14426 # We can use an host tool
14427 WINDRES_FOR_TARGET='$(WINDRES)'
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14429 $as_echo "host tool" >&6; }
14430 else
14431 # We need a cross tool
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433 $as_echo "pre-installed" >&6; }
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14438 $as_echo_n "checking where to find the target windmc... " >&6; }
14439 if test "x${build}" != "x${host}" ; then
14440 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
14442 ac_dir=`dirname $WINDMC_FOR_TARGET`
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444 $as_echo "pre-installed in $ac_dir" >&6; }
14445 else
14446 # Canadian cross, just use what we found
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14448 $as_echo "pre-installed" >&6; }
14450 else
14451 ok=yes
14452 case " ${configdirs} " in
14453 *" binutils "*) ;;
14454 *) ok=no ;;
14455 esac
14457 if test $ok = yes; then
14458 # An in-tree tool is available and we can use it
14459 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14461 $as_echo "just compiled" >&6; }
14462 elif 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 elif test "x$target" = "x$host"; then
14468 # We can use an host tool
14469 WINDMC_FOR_TARGET='$(WINDMC)'
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14471 $as_echo "host tool" >&6; }
14472 else
14473 # We need a cross tool
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14475 $as_echo "pre-installed" >&6; }
14483 # Certain tools may need extra flags.
14484 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14485 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14486 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14488 # When building target libraries, except in a Canadian cross, we use
14489 # the same toolchain as the compiler we just built.
14490 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14491 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14492 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14493 if test $host = $build; then
14494 case " $configdirs " in
14495 *" gcc "*)
14496 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14497 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14498 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14500 esac
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14508 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14509 # Check whether --enable-maintainer-mode was given.
14510 if test "${enable_maintainer_mode+set}" = set; then :
14511 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14512 else
14513 USE_MAINTAINER_MODE=no
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14517 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14520 if test "$USE_MAINTAINER_MODE" = yes; then
14521 MAINTAINER_MODE_TRUE=
14522 MAINTAINER_MODE_FALSE='#'
14523 else
14524 MAINTAINER_MODE_TRUE='#'
14525 MAINTAINER_MODE_FALSE=
14527 MAINT=$MAINTAINER_MODE_TRUE
14529 # ---------------------
14530 # GCC bootstrap support
14531 # ---------------------
14533 # Stage specific cflags for build.
14534 stage1_cflags="-g"
14535 case $build in
14536 vax-*-*)
14537 case ${GCC} in
14538 yes) stage1_cflags="-g -Wa,-J" ;;
14539 *) stage1_cflags="-g -J" ;;
14540 esac ;;
14541 esac
14545 # Enable --enable-checking in stage1 of the compiler.
14546 # Check whether --enable-stage1-checking was given.
14547 if test "${enable_stage1_checking+set}" = set; then :
14548 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14549 else
14550 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14551 stage1_checking=--enable-checking=yes,types
14552 else
14553 stage1_checking=--enable-checking=$enable_checking,types
14559 # Enable -Werror in bootstrap stage2 and later.
14560 # Check whether --enable-werror was given.
14561 if test "${enable_werror+set}" = set; then :
14562 enableval=$enable_werror;
14563 else
14564 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14565 enable_werror=yes
14566 else
14567 enable_werror=no
14571 case ${enable_werror} in
14572 yes) stage2_werror_flag="--enable-werror-always" ;;
14573 *) stage2_werror_flag="" ;;
14574 esac
14577 # Enable --enable-host-shared.
14578 # Check whether --enable-host-shared was given.
14579 if test "${enable_host_shared+set}" = set; then :
14580 enableval=$enable_host_shared; host_shared=$enableval
14581 else
14582 host_shared=no
14587 # Specify what files to not compare during bootstrap.
14589 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14590 case "$target" in
14591 hppa*64*-*-hpux*) ;;
14592 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14593 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14594 esac
14597 ac_config_files="$ac_config_files Makefile"
14599 cat >confcache <<\_ACEOF
14600 # This file is a shell script that caches the results of configure
14601 # tests run on this system so they can be shared between configure
14602 # scripts and configure runs, see configure's option --config-cache.
14603 # It is not useful on other systems. If it contains results you don't
14604 # want to keep, you may remove or edit it.
14606 # config.status only pays attention to the cache file if you give it
14607 # the --recheck option to rerun configure.
14609 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14610 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14611 # following values.
14613 _ACEOF
14615 # The following way of writing the cache mishandles newlines in values,
14616 # but we know of no workaround that is simple, portable, and efficient.
14617 # So, we kill variables containing newlines.
14618 # Ultrix sh set writes to stderr and can't be redirected directly,
14619 # and sets the high bit in the cache file unless we assign to the vars.
14621 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14622 eval ac_val=\$$ac_var
14623 case $ac_val in #(
14624 *${as_nl}*)
14625 case $ac_var in #(
14626 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14627 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14628 esac
14629 case $ac_var in #(
14630 _ | IFS | as_nl) ;; #(
14631 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14632 *) { eval $ac_var=; unset $ac_var;} ;;
14633 esac ;;
14634 esac
14635 done
14637 (set) 2>&1 |
14638 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14639 *${as_nl}ac_space=\ *)
14640 # `set' does not quote correctly, so add quotes: double-quote
14641 # substitution turns \\\\ into \\, and sed turns \\ into \.
14642 sed -n \
14643 "s/'/'\\\\''/g;
14644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14645 ;; #(
14647 # `set' quotes correctly as required by POSIX, so do not add quotes.
14648 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14650 esac |
14651 sort
14653 sed '
14654 /^ac_cv_env_/b end
14655 t clear
14656 :clear
14657 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14658 t end
14659 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14660 :end' >>confcache
14661 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14662 if test -w "$cache_file"; then
14663 test "x$cache_file" != "x/dev/null" &&
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14665 $as_echo "$as_me: updating cache $cache_file" >&6;}
14666 cat confcache >$cache_file
14667 else
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14669 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14672 rm -f confcache
14674 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14675 # Let make expand exec_prefix.
14676 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14678 # Transform confdefs.h into DEFS.
14679 # Protect against shell expansion while executing Makefile rules.
14680 # Protect against Makefile macro expansion.
14682 # If the first sed substitution is executed (which looks for macros that
14683 # take arguments), then branch to the quote section. Otherwise,
14684 # look for a macro that doesn't take arguments.
14685 ac_script='
14686 :mline
14687 /\\$/{
14689 s,\\\n,,
14690 b mline
14692 t clear
14693 :clear
14694 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14695 t quote
14696 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14697 t quote
14698 b any
14699 :quote
14700 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14701 s/\[/\\&/g
14702 s/\]/\\&/g
14703 s/\$/$$/g
14705 :any
14708 s/^\n//
14709 s/\n/ /g
14713 DEFS=`sed -n "$ac_script" confdefs.h`
14716 ac_libobjs=
14717 ac_ltlibobjs=
14718 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14719 # 1. Remove the extension, and $U if already installed.
14720 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14721 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14722 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14723 # will be set to the directory where LIBOBJS objects are built.
14724 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14725 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14726 done
14727 LIBOBJS=$ac_libobjs
14729 LTLIBOBJS=$ac_ltlibobjs
14733 : ${CONFIG_STATUS=./config.status}
14734 ac_write_fail=0
14735 ac_clean_files_save=$ac_clean_files
14736 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14738 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14739 as_write_fail=0
14740 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14741 #! $SHELL
14742 # Generated by $as_me.
14743 # Run this file to recreate the current configuration.
14744 # Compiler output produced by configure, useful for debugging
14745 # configure, is in config.log if it exists.
14747 debug=false
14748 ac_cs_recheck=false
14749 ac_cs_silent=false
14751 SHELL=\${CONFIG_SHELL-$SHELL}
14752 export SHELL
14753 _ASEOF
14754 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14755 ## -------------------- ##
14756 ## M4sh Initialization. ##
14757 ## -------------------- ##
14759 # Be more Bourne compatible
14760 DUALCASE=1; export DUALCASE # for MKS sh
14761 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14762 emulate sh
14763 NULLCMD=:
14764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14765 # is contrary to our usage. Disable this feature.
14766 alias -g '${1+"$@"}'='"$@"'
14767 setopt NO_GLOB_SUBST
14768 else
14769 case `(set -o) 2>/dev/null` in #(
14770 *posix*) :
14771 set -o posix ;; #(
14772 *) :
14774 esac
14778 as_nl='
14780 export as_nl
14781 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14782 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14783 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14784 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14785 # Prefer a ksh shell builtin over an external printf program on Solaris,
14786 # but without wasting forks for bash or zsh.
14787 if test -z "$BASH_VERSION$ZSH_VERSION" \
14788 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14789 as_echo='print -r --'
14790 as_echo_n='print -rn --'
14791 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14792 as_echo='printf %s\n'
14793 as_echo_n='printf %s'
14794 else
14795 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14796 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14797 as_echo_n='/usr/ucb/echo -n'
14798 else
14799 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14800 as_echo_n_body='eval
14801 arg=$1;
14802 case $arg in #(
14803 *"$as_nl"*)
14804 expr "X$arg" : "X\\(.*\\)$as_nl";
14805 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14806 esac;
14807 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14809 export as_echo_n_body
14810 as_echo_n='sh -c $as_echo_n_body as_echo'
14812 export as_echo_body
14813 as_echo='sh -c $as_echo_body as_echo'
14816 # The user is always right.
14817 if test "${PATH_SEPARATOR+set}" != set; then
14818 PATH_SEPARATOR=:
14819 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14820 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14821 PATH_SEPARATOR=';'
14826 # IFS
14827 # We need space, tab and new line, in precisely that order. Quoting is
14828 # there to prevent editors from complaining about space-tab.
14829 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14830 # splitting by setting IFS to empty value.)
14831 IFS=" "" $as_nl"
14833 # Find who we are. Look in the path if we contain no directory separator.
14834 case $0 in #((
14835 *[\\/]* ) as_myself=$0 ;;
14836 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14837 for as_dir in $PATH
14839 IFS=$as_save_IFS
14840 test -z "$as_dir" && as_dir=.
14841 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14842 done
14843 IFS=$as_save_IFS
14846 esac
14847 # We did not find ourselves, most probably we were run as `sh COMMAND'
14848 # in which case we are not to be found in the path.
14849 if test "x$as_myself" = x; then
14850 as_myself=$0
14852 if test ! -f "$as_myself"; then
14853 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14854 exit 1
14857 # Unset variables that we do not need and which cause bugs (e.g. in
14858 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14859 # suppresses any "Segmentation fault" message there. '((' could
14860 # trigger a bug in pdksh 5.2.14.
14861 for as_var in BASH_ENV ENV MAIL MAILPATH
14862 do eval test x\${$as_var+set} = xset \
14863 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14864 done
14865 PS1='$ '
14866 PS2='> '
14867 PS4='+ '
14869 # NLS nuisances.
14870 LC_ALL=C
14871 export LC_ALL
14872 LANGUAGE=C
14873 export LANGUAGE
14875 # CDPATH.
14876 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14879 # as_fn_error ERROR [LINENO LOG_FD]
14880 # ---------------------------------
14881 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14882 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14883 # script with status $?, using 1 if that was 0.
14884 as_fn_error ()
14886 as_status=$?; test $as_status -eq 0 && as_status=1
14887 if test "$3"; then
14888 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14889 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14891 $as_echo "$as_me: error: $1" >&2
14892 as_fn_exit $as_status
14893 } # as_fn_error
14896 # as_fn_set_status STATUS
14897 # -----------------------
14898 # Set $? to STATUS, without forking.
14899 as_fn_set_status ()
14901 return $1
14902 } # as_fn_set_status
14904 # as_fn_exit STATUS
14905 # -----------------
14906 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14907 as_fn_exit ()
14909 set +e
14910 as_fn_set_status $1
14911 exit $1
14912 } # as_fn_exit
14914 # as_fn_unset VAR
14915 # ---------------
14916 # Portably unset VAR.
14917 as_fn_unset ()
14919 { eval $1=; unset $1;}
14921 as_unset=as_fn_unset
14922 # as_fn_append VAR VALUE
14923 # ----------------------
14924 # Append the text in VALUE to the end of the definition contained in VAR. Take
14925 # advantage of any shell optimizations that allow amortized linear growth over
14926 # repeated appends, instead of the typical quadratic growth present in naive
14927 # implementations.
14928 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14929 eval 'as_fn_append ()
14931 eval $1+=\$2
14933 else
14934 as_fn_append ()
14936 eval $1=\$$1\$2
14938 fi # as_fn_append
14940 # as_fn_arith ARG...
14941 # ------------------
14942 # Perform arithmetic evaluation on the ARGs, and store the result in the
14943 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14944 # must be portable across $(()) and expr.
14945 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14946 eval 'as_fn_arith ()
14948 as_val=$(( $* ))
14950 else
14951 as_fn_arith ()
14953 as_val=`expr "$@" || test $? -eq 1`
14955 fi # as_fn_arith
14958 if expr a : '\(a\)' >/dev/null 2>&1 &&
14959 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14960 as_expr=expr
14961 else
14962 as_expr=false
14965 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14966 as_basename=basename
14967 else
14968 as_basename=false
14971 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14972 as_dirname=dirname
14973 else
14974 as_dirname=false
14977 as_me=`$as_basename -- "$0" ||
14978 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14979 X"$0" : 'X\(//\)$' \| \
14980 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14981 $as_echo X/"$0" |
14982 sed '/^.*\/\([^/][^/]*\)\/*$/{
14983 s//\1/
14986 /^X\/\(\/\/\)$/{
14987 s//\1/
14990 /^X\/\(\/\).*/{
14991 s//\1/
14994 s/.*/./; q'`
14996 # Avoid depending upon Character Ranges.
14997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15000 as_cr_digits='0123456789'
15001 as_cr_alnum=$as_cr_Letters$as_cr_digits
15003 ECHO_C= ECHO_N= ECHO_T=
15004 case `echo -n x` in #(((((
15005 -n*)
15006 case `echo 'xy\c'` in
15007 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15008 xy) ECHO_C='\c';;
15009 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15010 ECHO_T=' ';;
15011 esac;;
15013 ECHO_N='-n';;
15014 esac
15016 rm -f conf$$ conf$$.exe conf$$.file
15017 if test -d conf$$.dir; then
15018 rm -f conf$$.dir/conf$$.file
15019 else
15020 rm -f conf$$.dir
15021 mkdir conf$$.dir 2>/dev/null
15023 if (echo >conf$$.file) 2>/dev/null; then
15024 if ln -s conf$$.file conf$$ 2>/dev/null; then
15025 as_ln_s='ln -s'
15026 # ... but there are two gotchas:
15027 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15028 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15029 # In both cases, we have to default to `cp -p'.
15030 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15031 as_ln_s='cp -p'
15032 elif ln conf$$.file conf$$ 2>/dev/null; then
15033 as_ln_s=ln
15034 else
15035 as_ln_s='cp -p'
15037 else
15038 as_ln_s='cp -p'
15040 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15041 rmdir conf$$.dir 2>/dev/null
15044 # as_fn_mkdir_p
15045 # -------------
15046 # Create "$as_dir" as a directory, including parents if necessary.
15047 as_fn_mkdir_p ()
15050 case $as_dir in #(
15051 -*) as_dir=./$as_dir;;
15052 esac
15053 test -d "$as_dir" || eval $as_mkdir_p || {
15054 as_dirs=
15055 while :; do
15056 case $as_dir in #(
15057 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15058 *) as_qdir=$as_dir;;
15059 esac
15060 as_dirs="'$as_qdir' $as_dirs"
15061 as_dir=`$as_dirname -- "$as_dir" ||
15062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15063 X"$as_dir" : 'X\(//\)[^/]' \| \
15064 X"$as_dir" : 'X\(//\)$' \| \
15065 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15066 $as_echo X"$as_dir" |
15067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15068 s//\1/
15071 /^X\(\/\/\)[^/].*/{
15072 s//\1/
15075 /^X\(\/\/\)$/{
15076 s//\1/
15079 /^X\(\/\).*/{
15080 s//\1/
15083 s/.*/./; q'`
15084 test -d "$as_dir" && break
15085 done
15086 test -z "$as_dirs" || eval "mkdir $as_dirs"
15087 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15090 } # as_fn_mkdir_p
15091 if mkdir -p . 2>/dev/null; then
15092 as_mkdir_p='mkdir -p "$as_dir"'
15093 else
15094 test -d ./-p && rmdir ./-p
15095 as_mkdir_p=false
15098 if test -x / >/dev/null 2>&1; then
15099 as_test_x='test -x'
15100 else
15101 if ls -dL / >/dev/null 2>&1; then
15102 as_ls_L_option=L
15103 else
15104 as_ls_L_option=
15106 as_test_x='
15107 eval sh -c '\''
15108 if test -d "$1"; then
15109 test -d "$1/.";
15110 else
15111 case $1 in #(
15112 -*)set "./$1";;
15113 esac;
15114 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15115 ???[sx]*):;;*)false;;esac;fi
15116 '\'' sh
15119 as_executable_p=$as_test_x
15121 # Sed expression to map a string onto a valid CPP name.
15122 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15124 # Sed expression to map a string onto a valid variable name.
15125 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15128 exec 6>&1
15129 ## ----------------------------------- ##
15130 ## Main body of $CONFIG_STATUS script. ##
15131 ## ----------------------------------- ##
15132 _ASEOF
15133 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15136 # Save the log message, to keep $0 and so on meaningful, and to
15137 # report actual input values of CONFIG_FILES etc. instead of their
15138 # values after options handling.
15139 ac_log="
15140 This file was extended by $as_me, which was
15141 generated by GNU Autoconf 2.64. Invocation command line was
15143 CONFIG_FILES = $CONFIG_FILES
15144 CONFIG_HEADERS = $CONFIG_HEADERS
15145 CONFIG_LINKS = $CONFIG_LINKS
15146 CONFIG_COMMANDS = $CONFIG_COMMANDS
15147 $ $0 $@
15149 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15152 _ACEOF
15154 case $ac_config_files in *"
15155 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15156 esac
15160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161 # Files that config.status was made for.
15162 config_files="$ac_config_files"
15164 _ACEOF
15166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15167 ac_cs_usage="\
15168 \`$as_me' instantiates files and other configuration actions
15169 from templates according to the current configuration. Unless the files
15170 and actions are specified as TAGs, all are instantiated by default.
15172 Usage: $0 [OPTION]... [TAG]...
15174 -h, --help print this help, then exit
15175 -V, --version print version number and configuration settings, then exit
15176 -q, --quiet, --silent
15177 do not print progress messages
15178 -d, --debug don't remove temporary files
15179 --recheck update $as_me by reconfiguring in the same conditions
15180 --file=FILE[:TEMPLATE]
15181 instantiate the configuration file FILE
15183 Configuration files:
15184 $config_files
15186 Report bugs to the package provider."
15188 _ACEOF
15189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15190 ac_cs_version="\\
15191 config.status
15192 configured by $0, generated by GNU Autoconf 2.64,
15193 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15195 Copyright (C) 2009 Free Software Foundation, Inc.
15196 This config.status script is free software; the Free Software Foundation
15197 gives unlimited permission to copy, distribute and modify it."
15199 ac_pwd='$ac_pwd'
15200 srcdir='$srcdir'
15201 INSTALL='$INSTALL'
15202 AWK='$AWK'
15203 test -n "\$AWK" || AWK=awk
15204 _ACEOF
15206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15207 # The default lists apply if the user does not specify any file.
15208 ac_need_defaults=:
15209 while test $# != 0
15211 case $1 in
15212 --*=*)
15213 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15214 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15215 ac_shift=:
15218 ac_option=$1
15219 ac_optarg=$2
15220 ac_shift=shift
15222 esac
15224 case $ac_option in
15225 # Handling of the options.
15226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15227 ac_cs_recheck=: ;;
15228 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15229 $as_echo "$ac_cs_version"; exit ;;
15230 --debug | --debu | --deb | --de | --d | -d )
15231 debug=: ;;
15232 --file | --fil | --fi | --f )
15233 $ac_shift
15234 case $ac_optarg in
15235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15236 esac
15237 as_fn_append CONFIG_FILES " '$ac_optarg'"
15238 ac_need_defaults=false;;
15239 --he | --h | --help | --hel | -h )
15240 $as_echo "$ac_cs_usage"; exit ;;
15241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15242 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15243 ac_cs_silent=: ;;
15245 # This is an error.
15246 -*) as_fn_error "unrecognized option: \`$1'
15247 Try \`$0 --help' for more information." ;;
15249 *) as_fn_append ac_config_targets " $1"
15250 ac_need_defaults=false ;;
15252 esac
15253 shift
15254 done
15256 ac_configure_extra_args=
15258 if $ac_cs_silent; then
15259 exec 6>/dev/null
15260 ac_configure_extra_args="$ac_configure_extra_args --silent"
15263 _ACEOF
15264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15265 if \$ac_cs_recheck; then
15266 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15267 shift
15268 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15269 CONFIG_SHELL='$SHELL'
15270 export CONFIG_SHELL
15271 exec "\$@"
15274 _ACEOF
15275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15276 exec 5>>config.log
15278 echo
15279 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15280 ## Running $as_me. ##
15281 _ASBOX
15282 $as_echo "$ac_log"
15283 } >&5
15285 _ACEOF
15286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15288 # INIT-COMMANDS
15290 extrasub_build="$extrasub_build"
15291 extrasub_host="$extrasub_host"
15292 extrasub_target="$extrasub_target"
15294 _ACEOF
15296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15298 # Handling of arguments.
15299 for ac_config_target in $ac_config_targets
15301 case $ac_config_target in
15302 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15304 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15305 esac
15306 done
15309 # If the user did not use the arguments to specify the items to instantiate,
15310 # then the envvar interface is used. Set only those that are not.
15311 # We use the long form for the default assignment because of an extremely
15312 # bizarre bug on SunOS 4.1.3.
15313 if $ac_need_defaults; then
15314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15317 # Have a temporary directory for convenience. Make it in the build tree
15318 # simply because there is no reason against having it here, and in addition,
15319 # creating and moving files from /tmp can sometimes cause problems.
15320 # Hook for its removal unless debugging.
15321 # Note that there is a small window in which the directory will not be cleaned:
15322 # after its creation but before its name has been assigned to `$tmp'.
15323 $debug ||
15325 tmp=
15326 trap 'exit_status=$?
15327 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15329 trap 'as_fn_exit 1' 1 2 13 15
15331 # Create a (secure) tmp directory for tmp files.
15334 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15335 test -n "$tmp" && test -d "$tmp"
15336 } ||
15338 tmp=./conf$$-$RANDOM
15339 (umask 077 && mkdir "$tmp")
15340 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15342 # Set up the scripts for CONFIG_FILES section.
15343 # No need to generate them if there are no CONFIG_FILES.
15344 # This happens for instance with `./config.status config.h'.
15345 if test -n "$CONFIG_FILES"; then
15347 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15348 ac_cs_awk_getline=:
15349 ac_cs_awk_pipe_init=
15350 ac_cs_awk_read_file='
15351 while ((getline aline < (F[key])) > 0)
15352 print(aline)
15353 close(F[key])'
15354 ac_cs_awk_pipe_fini=
15355 else
15356 ac_cs_awk_getline=false
15357 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15358 ac_cs_awk_read_file='
15359 print "|#_!!_#|"
15360 print "cat " F[key] " &&"
15361 '$ac_cs_awk_pipe_init
15362 # The final `:' finishes the AND list.
15363 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15365 ac_cr=`echo X | tr X '\015'`
15366 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15367 # But we know of no other shell where ac_cr would be empty at this
15368 # point, so we can use a bashism as a fallback.
15369 if test "x$ac_cr" = x; then
15370 eval ac_cr=\$\'\\r\'
15372 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15373 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15374 ac_cs_awk_cr='\r'
15375 else
15376 ac_cs_awk_cr=$ac_cr
15379 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15380 _ACEOF
15382 # Create commands to substitute file output variables.
15384 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15385 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15386 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15387 echo "_ACAWK" &&
15388 echo "_ACEOF"
15389 } >conf$$files.sh &&
15390 . ./conf$$files.sh ||
15391 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15392 rm -f conf$$files.sh
15395 echo "cat >conf$$subs.awk <<_ACEOF" &&
15396 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15397 echo "_ACEOF"
15398 } >conf$$subs.sh ||
15399 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15400 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15401 ac_delim='%!_!# '
15402 for ac_last_try in false false false false false :; do
15403 . ./conf$$subs.sh ||
15404 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15406 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15407 if test $ac_delim_n = $ac_delim_num; then
15408 break
15409 elif $ac_last_try; then
15410 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15411 else
15412 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15414 done
15415 rm -f conf$$subs.sh
15417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15418 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15419 _ACEOF
15420 sed -n '
15422 s/^/S["/; s/!.*/"]=/
15425 s/^[^!]*!//
15426 :repl
15427 t repl
15428 s/'"$ac_delim"'$//
15429 t delim
15432 s/\(.\{148\}\).*/\1/
15433 t more1
15434 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15437 b repl
15438 :more1
15439 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15442 s/.\{148\}//
15443 t nl
15444 :delim
15446 s/\(.\{148\}\).*/\1/
15447 t more2
15448 s/["\\]/\\&/g; s/^/"/; s/$/"/
15451 :more2
15452 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15455 s/.\{148\}//
15456 t delim
15457 ' <conf$$subs.awk | sed '
15458 /^[^""]/{
15460 s/\n//
15462 ' >>$CONFIG_STATUS || ac_write_fail=1
15463 rm -f conf$$subs.awk
15464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15465 _ACAWK
15466 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15467 for (key in S) S_is_set[key] = 1
15468 FS = "\a"
15469 \$ac_cs_awk_pipe_init
15472 line = $ 0
15473 nfields = split(line, field, "@")
15474 substed = 0
15475 len = length(field[1])
15476 for (i = 2; i < nfields; i++) {
15477 key = field[i]
15478 keylen = length(key)
15479 if (S_is_set[key]) {
15480 value = S[key]
15481 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15482 len += length(value) + length(field[++i])
15483 substed = 1
15484 } else
15485 len += 1 + keylen
15487 if (nfields == 3 && !substed) {
15488 key = field[2]
15489 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15490 \$ac_cs_awk_read_file
15491 next
15494 print line
15496 \$ac_cs_awk_pipe_fini
15497 _ACAWK
15498 _ACEOF
15499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15500 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15501 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15502 else
15504 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15505 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15506 _ACEOF
15508 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15509 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15510 # trailing colons and then remove the whole line if VPATH becomes empty
15511 # (actually we leave an empty line to preserve line numbers).
15512 if test "x$srcdir" = x.; then
15513 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15514 s/:*\$(srcdir):*/:/
15515 s/:*\${srcdir}:*/:/
15516 s/:*@srcdir@:*/:/
15517 s/^\([^=]*=[ ]*\):*/\1/
15518 s/:*$//
15519 s/^[^=]*=[ ]*$//
15523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15524 fi # test -n "$CONFIG_FILES"
15527 eval set X " :F $CONFIG_FILES "
15528 shift
15529 for ac_tag
15531 case $ac_tag in
15532 :[FHLC]) ac_mode=$ac_tag; continue;;
15533 esac
15534 case $ac_mode$ac_tag in
15535 :[FHL]*:*);;
15536 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15537 :[FH]-) ac_tag=-:-;;
15538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15539 esac
15540 ac_save_IFS=$IFS
15541 IFS=:
15542 set x $ac_tag
15543 IFS=$ac_save_IFS
15544 shift
15545 ac_file=$1
15546 shift
15548 case $ac_mode in
15549 :L) ac_source=$1;;
15550 :[FH])
15551 ac_file_inputs=
15552 for ac_f
15554 case $ac_f in
15555 -) ac_f="$tmp/stdin";;
15556 *) # Look for the file first in the build tree, then in the source tree
15557 # (if the path is not absolute). The absolute path cannot be DOS-style,
15558 # because $ac_f cannot contain `:'.
15559 test -f "$ac_f" ||
15560 case $ac_f in
15561 [\\/$]*) false;;
15562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15563 esac ||
15564 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15565 esac
15566 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15567 as_fn_append ac_file_inputs " '$ac_f'"
15568 done
15570 # Let's still pretend it is `configure' which instantiates (i.e., don't
15571 # use $as_me), people would be surprised to read:
15572 # /* config.h. Generated by config.status. */
15573 configure_input='Generated from '`
15574 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15575 `' by configure.'
15576 if test x"$ac_file" != x-; then
15577 configure_input="$ac_file. $configure_input"
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15579 $as_echo "$as_me: creating $ac_file" >&6;}
15581 # Neutralize special characters interpreted by sed in replacement strings.
15582 case $configure_input in #(
15583 *\&* | *\|* | *\\* )
15584 ac_sed_conf_input=`$as_echo "$configure_input" |
15585 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15586 *) ac_sed_conf_input=$configure_input;;
15587 esac
15589 case $ac_tag in
15590 *:-:* | *:-) cat >"$tmp/stdin" \
15591 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15592 esac
15594 esac
15596 ac_dir=`$as_dirname -- "$ac_file" ||
15597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15598 X"$ac_file" : 'X\(//\)[^/]' \| \
15599 X"$ac_file" : 'X\(//\)$' \| \
15600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15601 $as_echo X"$ac_file" |
15602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15603 s//\1/
15606 /^X\(\/\/\)[^/].*/{
15607 s//\1/
15610 /^X\(\/\/\)$/{
15611 s//\1/
15614 /^X\(\/\).*/{
15615 s//\1/
15618 s/.*/./; q'`
15619 as_dir="$ac_dir"; as_fn_mkdir_p
15620 ac_builddir=.
15622 case "$ac_dir" in
15623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15626 # A ".." for each directory in $ac_dir_suffix.
15627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15628 case $ac_top_builddir_sub in
15629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15631 esac ;;
15632 esac
15633 ac_abs_top_builddir=$ac_pwd
15634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15635 # for backward compatibility:
15636 ac_top_builddir=$ac_top_build_prefix
15638 case $srcdir in
15639 .) # We are building in place.
15640 ac_srcdir=.
15641 ac_top_srcdir=$ac_top_builddir_sub
15642 ac_abs_top_srcdir=$ac_pwd ;;
15643 [\\/]* | ?:[\\/]* ) # Absolute name.
15644 ac_srcdir=$srcdir$ac_dir_suffix;
15645 ac_top_srcdir=$srcdir
15646 ac_abs_top_srcdir=$srcdir ;;
15647 *) # Relative name.
15648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15649 ac_top_srcdir=$ac_top_build_prefix$srcdir
15650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15651 esac
15652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15655 case $ac_mode in
15658 # CONFIG_FILE
15661 case $INSTALL in
15662 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15663 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15664 esac
15665 _ACEOF
15667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15668 # If the template does not know about datarootdir, expand it.
15669 # FIXME: This hack should be removed a few years after 2.60.
15670 ac_datarootdir_hack=; ac_datarootdir_seen=
15671 ac_sed_dataroot='
15672 /datarootdir/ {
15676 /@datadir@/p
15677 /@docdir@/p
15678 /@infodir@/p
15679 /@localedir@/p
15680 /@mandir@/p'
15681 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15682 *datarootdir*) ac_datarootdir_seen=yes;;
15683 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15685 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15686 _ACEOF
15687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15688 ac_datarootdir_hack='
15689 s&@datadir@&$datadir&g
15690 s&@docdir@&$docdir&g
15691 s&@infodir@&$infodir&g
15692 s&@localedir@&$localedir&g
15693 s&@mandir@&$mandir&g
15694 s&\\\${datarootdir}&$datarootdir&g' ;;
15695 esac
15696 _ACEOF
15698 # Neutralize VPATH when `$srcdir' = `.'.
15699 # Shell code in configure.ac might set extrasub.
15700 # FIXME: do we really want to maintain this feature?
15701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15702 ac_sed_extra="$ac_vpsub
15703 $extrasub
15704 _ACEOF
15705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15708 s|@configure_input@|$ac_sed_conf_input|;t t
15709 s&@top_builddir@&$ac_top_builddir_sub&;t t
15710 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15711 s&@srcdir@&$ac_srcdir&;t t
15712 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15713 s&@top_srcdir@&$ac_top_srcdir&;t t
15714 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15715 s&@builddir@&$ac_builddir&;t t
15716 s&@abs_builddir@&$ac_abs_builddir&;t t
15717 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15718 s&@INSTALL@&$ac_INSTALL&;t t
15719 $ac_datarootdir_hack
15721 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15722 if $ac_cs_awk_getline; then
15723 $AWK -f "$tmp/subs.awk"
15724 else
15725 $AWK -f "$tmp/subs.awk" | $SHELL
15726 fi >$tmp/out \
15727 || as_fn_error "could not create $ac_file" "$LINENO" 5
15729 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15730 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15731 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15733 which seems to be undefined. Please make sure it is defined." >&5
15734 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15735 which seems to be undefined. Please make sure it is defined." >&2;}
15737 rm -f "$tmp/stdin"
15738 case $ac_file in
15739 -) cat "$tmp/out" && rm -f "$tmp/out";;
15740 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15741 esac \
15742 || as_fn_error "could not create $ac_file" "$LINENO" 5
15747 esac
15750 case $ac_file$ac_mode in
15751 "Makefile":F) sed "$extrasub_build" Makefile |
15752 sed "$extrasub_host" |
15753 sed "$extrasub_target" > mf$$
15754 mv -f mf$$ Makefile ;;
15756 esac
15757 done # for ac_tag
15760 as_fn_exit 0
15761 _ACEOF
15762 ac_clean_files=$ac_clean_files_save
15764 test $ac_write_fail = 0 ||
15765 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15768 # configure is writing to config.log, and then calls config.status.
15769 # config.status does its own redirection, appending to config.log.
15770 # Unfortunately, on DOS this fails, as config.log is still kept open
15771 # by configure, so config.status won't be able to write to it; its
15772 # output is simply discarded. So we exec the FD to /dev/null,
15773 # effectively closing config.log, so it can be properly (re)opened and
15774 # appended to by config.status. When coming back to configure, we
15775 # need to make the FD available again.
15776 if test "$no_create" != yes; then
15777 ac_cs_success=:
15778 ac_config_status_args=
15779 test "$silent" = yes &&
15780 ac_config_status_args="$ac_config_status_args --quiet"
15781 exec 5>/dev/null
15782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15783 exec 5>>config.log
15784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15785 # would make configure fail if this is the last instruction.
15786 $ac_cs_success || as_fn_exit $?
15788 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15790 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}