2011-06-13 Gary Funck <gary@intrepid.com>
[official-gcc.git] / configure
blob384bcfd3e45266c1c76058b578c45116695a582b
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 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 RANLIB_FOR_TARGET
574 OBJDUMP_FOR_TARGET
575 NM_FOR_TARGET
576 LIPO_FOR_TARGET
577 LD_FOR_TARGET
578 DLLTOOL_FOR_TARGET
579 AS_FOR_TARGET
580 AR_FOR_TARGET
581 GOC_FOR_TARGET
582 GFORTRAN_FOR_TARGET
583 GCJ_FOR_TARGET
584 GCC_FOR_TARGET
585 CXX_FOR_TARGET
586 CC_FOR_TARGET
587 OBJDUMP
588 OBJCOPY
589 WINDMC
590 WINDRES
591 STRIP
592 RANLIB
594 LIPO
596 DLLTOOL
599 RUNTEST
600 EXPECT
601 MAKEINFO
602 FLEX
605 BISON
606 YACC
607 WINDRES_FOR_BUILD
608 WINDMC_FOR_BUILD
609 RANLIB_FOR_BUILD
610 NM_FOR_BUILD
611 LD_FOR_BUILD
612 LDFLAGS_FOR_BUILD
613 GOC_FOR_BUILD
614 GFORTRAN_FOR_BUILD
615 GCJ_FOR_BUILD
616 DLLTOOL_FOR_BUILD
617 CXX_FOR_BUILD
618 CXXFLAGS_FOR_BUILD
619 CFLAGS_FOR_BUILD
620 CC_FOR_BUILD
621 AS_FOR_BUILD
622 AR_FOR_BUILD
623 target_configdirs
624 configdirs
625 build_configdirs
626 INSTALL_GDB_TK
627 GDB_TK
628 CONFIGURE_GDB_TK
629 build_tooldir
630 tooldir
631 GCC_SHLIB_SUBDIR
632 RPATH_ENVVAR
633 target_configargs
634 host_configargs
635 build_configargs
636 BUILD_CONFIG
637 LDFLAGS_FOR_TARGET
638 CXXFLAGS_FOR_TARGET
639 CFLAGS_FOR_TARGET
640 DEBUG_PREFIX_CFLAGS_FOR_TARGET
641 SYSROOT_CFLAGS_FOR_TARGET
642 stage1_languages
643 extra_host_libiberty_configure_flags
644 clooginc
645 clooglibs
646 pplinc
647 ppllibs
648 poststage1_ldflags
649 poststage1_libs
650 stage1_libs
651 stage1_ldflags
652 extra_mpc_mpfr_configure_flags
653 extra_mpc_gmp_configure_flags
654 extra_mpfr_configure_flags
655 gmpinc
656 gmplibs
657 do_compare
658 GNATMAKE
659 GNATBIND
660 ac_ct_CXX
661 CXXFLAGS
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
670 target_subdir
671 host_subdir
672 build_subdir
673 build_libsubdir
676 LN_S
678 INSTALL_DATA
679 INSTALL_SCRIPT
680 INSTALL_PROGRAM
681 target_os
682 target_vendor
683 target_cpu
684 target
685 host_os
686 host_vendor
687 host_cpu
688 host
689 target_noncanonical
690 host_noncanonical
691 build_noncanonical
692 build_os
693 build_vendor
694 build_cpu
695 build
696 TOPLEVEL_CONFIGURE_ARGUMENTS
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files='serialization_dependencies
736 host_makefile_frag
737 target_makefile_frag
738 alphaieee_frag
739 ospace_frag'
740 ac_user_opts='
741 enable_option_checking
742 with_build_libsubdir
743 enable_gold
744 enable_ld
745 enable_libquadmath
746 enable_libquadmath_support
747 enable_libada
748 enable_libssp
749 enable_build_with_cxx
750 with_mpc
751 with_mpc_include
752 with_mpc_lib
753 with_mpfr_dir
754 with_mpfr
755 with_mpfr_include
756 with_mpfr_lib
757 with_gmp_dir
758 with_gmp
759 with_gmp_include
760 with_gmp_lib
761 with_host_libstdcxx
762 with_stage1_ldflags
763 with_stage1_libs
764 with_boot_libs
765 with_boot_ldflags
766 with_ppl
767 with_ppl_include
768 with_ppl_lib
769 enable_ppl_version_check
770 with_cloog
771 with_cloog_include
772 with_cloog_lib
773 enable_cloog_backend
774 enable_cloog_version_check
775 enable_lto
776 enable_stage1_languages
777 enable_objc_gc
778 with_upc_pts
779 with_build_sysroot
780 with_debug_prefix_map
781 enable_bootstrap
782 with_build_config
783 enable_serial_configure
784 enable_upc_link_script
785 with_build_time_tools
786 enable_maintainer_mode
787 enable_stage1_checking
788 enable_werror
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
799 CXXFLAGS
801 build_configargs
802 host_configargs
803 target_configargs
806 DLLTOOL
808 LIPO
810 RANLIB
811 STRIP
812 WINDRES
813 WINDMC
814 OBJCOPY
815 OBJDUMP
816 CC_FOR_TARGET
817 CXX_FOR_TARGET
818 GCC_FOR_TARGET
819 GCJ_FOR_TARGET
820 GFORTRAN_FOR_TARGET
821 GOC_FOR_TARGET
822 AR_FOR_TARGET
823 AS_FOR_TARGET
824 DLLTOOL_FOR_TARGET
825 LD_FOR_TARGET
826 LIPO_FOR_TARGET
827 NM_FOR_TARGET
828 OBJDUMP_FOR_TARGET
829 RANLIB_FOR_TARGET
830 STRIP_FOR_TARGET
831 WINDRES_FOR_TARGET
832 WINDMC_FOR_TARGET'
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
883 ac_prev=
884 ac_dashdash=
885 for ac_option
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
890 ac_prev=
891 continue
894 case $ac_option in
895 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 *) ac_optarg=yes ;;
897 esac
899 # Accept the important Cygnus configure options, so we can diagnose typos.
901 case $ac_dashdash$ac_option in
903 ac_dashdash=yes ;;
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
922 --config-cache | -C)
923 cache_file=config.cache ;;
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1217 -*) as_fn_error "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information."
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239 esac
1240 done
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error "missing argument to $ac_option"
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used." >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error "pwd does not report name of working directory"
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1326 /^X\(\/\/\)$/{
1327 s//\1/
1330 /^X\(\/\).*/{
1331 s//\1/
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1339 else
1340 ac_srcdir_defaulted=no
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 case $srcdir in
1361 *" "*)
1362 as_fn_error "path to source, $srcdir, contains spaces"
1364 esac
1365 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381 \`configure' configures this package to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1390 Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434 _ACEOF
1436 cat <<\_ACEOF
1438 Program names:
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443 System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 --target=TARGET configure for building compilers for TARGET [HOST]
1447 _ACEOF
1450 if test -n "$ac_init_help"; then
1452 cat <<\_ACEOF
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1459 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1460 --disable-libquadmath do not build libquadmath directory
1461 --disable-libquadmath-support
1462 disable libquadmath support for Fortran
1463 --enable-libada build libada directory
1464 --enable-libssp build libssp directory
1465 --enable-build-with-cxx build with C++ compiler instead of C compiler
1466 --disable-ppl-version-check
1467 disable check for PPL version
1468 --enable-cloog-backend[=BACKEND]
1469 set the CLooG BACKEND used to either isl, ppl or
1470 ppl-legacy (default)
1471 --disable-cloog-version-check
1472 disable check for CLooG version
1473 --enable-lto enable link time optimization support
1474 --enable-stage1-languages[=all]
1475 choose additional languages to build during stage1.
1476 Mostly useful for compiler development
1477 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1478 Objective-C runtime
1479 --enable-bootstrap enable bootstrapping [yes if native build]
1480 --enable-serial-[{host,target,build}-]configure
1481 force sequential configuration of sub-packages for
1482 the host, target or build machine, or all
1483 sub-packages
1484 --enable-upc-link-script
1485 enable UPC's use of a custom linker script; this
1486 will define the UPC shared section as a no load
1487 section on targets where this feature is supported
1488 (requires GNU LD)
1489 --enable-maintainer-mode
1490 enable make rules and dependencies not useful (and
1491 sometimes confusing) to the casual installer
1492 --enable-stage1-checking[=all]
1493 choose additional checking for stage1 of the
1494 compiler
1495 --enable-werror enable -Werror in bootstrap stage2 and later
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-build-libsubdir=DIR Directory where to find libraries for build system
1501 --with-mpc=PATH specify prefix directory for installed MPC package.
1502 Equivalent to --with-mpc-include=PATH/include plus
1503 --with-mpc-lib=PATH/lib
1504 --with-mpc-include=PATH specify directory for installed MPC include files
1505 --with-mpc-lib=PATH specify directory for the installed MPC library
1506 --with-mpfr-dir=PATH this option has been REMOVED
1507 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1508 Equivalent to --with-mpfr-include=PATH/include plus
1509 --with-mpfr-lib=PATH/lib
1510 --with-mpfr-include=PATH
1511 specify directory for installed MPFR include files
1512 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1513 --with-gmp-dir=PATH this option has been REMOVED
1514 --with-gmp=PATH specify prefix directory for the installed GMP
1515 package. Equivalent to
1516 --with-gmp-include=PATH/include plus
1517 --with-gmp-lib=PATH/lib
1518 --with-gmp-include=PATH specify directory for installed GMP include files
1519 --with-gmp-lib=PATH specify directory for the installed GMP library
1520 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1521 linking with PPL
1522 --with-stage1-ldflags=FLAGS
1523 linker flags for stage1
1524 --with-stage1-libs=LIBS libraries for stage1
1525 --with-boot-libs=LIBS libraries for stage2 and later
1526 --with-boot-ldflags=FLAGS
1527 linker flags for stage2 and later
1528 --with-ppl=PATH specify prefix directory for the installed PPL
1529 package. Equivalent to
1530 --with-ppl-include=PATH/include plus
1531 --with-ppl-lib=PATH/lib
1532 --with-ppl-include=PATH specify directory for installed PPL include files
1533 --with-ppl-lib=PATH specify directory for the installed PPL library
1534 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1535 package. Equivalent to
1536 --with-cloog-include=PATH/include plus
1537 --with-cloog-lib=PATH/lib
1538 --with-cloog-include=PATH
1539 Specify directory for installed CLooG include files
1540 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1541 library
1542 --with-upc-pts={struct,packed}
1543 choose the representation of a UPC pointer-to-shared
1544 --with-build-sysroot=SYSROOT
1545 use sysroot as the system root during the build
1546 --with-debug-prefix-map='A=B C=D ...'
1547 map A to B, C to D ... in debug information
1548 --with-build-config='NAME NAME2...'
1549 use config/NAME.mk build configuration
1550 --with-build-time-tools=PATH
1551 use given path to find target tools during the build
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1563 build_configargs
1564 additional configure arguments for build directories
1565 host_configargs
1566 additional configure arguments for host directories
1567 target_configargs
1568 additional configure arguments for target directories
1569 AR AR for the host
1570 AS AS for the host
1571 DLLTOOL DLLTOOL for the host
1572 LD LD for the host
1573 LIPO LIPO for the host
1574 NM NM for the host
1575 RANLIB RANLIB for the host
1576 STRIP STRIP for the host
1577 WINDRES WINDRES for the host
1578 WINDMC WINDMC for the host
1579 OBJCOPY OBJCOPY for the host
1580 OBJDUMP OBJDUMP for the host
1581 CC_FOR_TARGET
1582 CC for the target
1583 CXX_FOR_TARGET
1584 CXX for the target
1585 GCC_FOR_TARGET
1586 GCC for the target
1587 GCJ_FOR_TARGET
1588 GCJ for the target
1589 GFORTRAN_FOR_TARGET
1590 GFORTRAN for the target
1591 GOC_FOR_TARGET
1592 GOC for the target
1593 AR_FOR_TARGET
1594 AR for the target
1595 AS_FOR_TARGET
1596 AS for the target
1597 DLLTOOL_FOR_TARGET
1598 DLLTOOL for the target
1599 LD_FOR_TARGET
1600 LD for the target
1601 LIPO_FOR_TARGET
1602 LIPO for the target
1603 NM_FOR_TARGET
1604 NM for the target
1605 OBJDUMP_FOR_TARGET
1606 OBJDUMP for the target
1607 RANLIB_FOR_TARGET
1608 RANLIB for the target
1609 STRIP_FOR_TARGET
1610 STRIP for the target
1611 WINDRES_FOR_TARGET
1612 WINDRES for the target
1613 WINDMC_FOR_TARGET
1614 WINDMC for the target
1616 Use these variables to override the choices made by `configure' or to help
1617 it to find libraries and programs with nonstandard names/locations.
1619 Report bugs to the package provider.
1620 _ACEOF
1621 ac_status=$?
1624 if test "$ac_init_help" = "recursive"; then
1625 # If there are subdirs, report their specific --help.
1626 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1627 test -d "$ac_dir" ||
1628 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1629 continue
1630 ac_builddir=.
1632 case "$ac_dir" in
1633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1641 esac ;;
1642 esac
1643 ac_abs_top_builddir=$ac_pwd
1644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645 # for backward compatibility:
1646 ac_top_builddir=$ac_top_build_prefix
1648 case $srcdir in
1649 .) # We are building in place.
1650 ac_srcdir=.
1651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
1654 ac_srcdir=$srcdir$ac_dir_suffix;
1655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1657 *) # Relative name.
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 esac
1662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure" --help=recursive
1672 else
1673 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 fi || ac_status=$?
1675 cd "$ac_pwd" || { ac_status=$?; break; }
1676 done
1679 test -n "$ac_init_help" && exit $ac_status
1680 if $ac_init_version; then
1681 cat <<\_ACEOF
1682 configure
1683 generated by GNU Autoconf 2.64
1685 Copyright (C) 2009 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1688 _ACEOF
1689 exit
1692 ## ------------------------ ##
1693 ## Autoconf initialization. ##
1694 ## ------------------------ ##
1696 # ac_fn_c_try_compile LINENO
1697 # --------------------------
1698 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_compile ()
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 rm -f conftest.$ac_objext
1703 if { { ac_try="$ac_compile"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_compile") 2>conftest.err
1711 ac_status=$?
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && {
1719 test -z "$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 } && test -s conftest.$ac_objext; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1727 ac_retval=1
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730 return $ac_retval
1732 } # ac_fn_c_try_compile
1734 # ac_fn_cxx_try_compile LINENO
1735 # ----------------------------
1736 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_cxx_try_compile ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext
1741 if { { ac_try="$ac_compile"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_compile") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_cxx_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest.$ac_objext; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 ac_retval=1
1767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 return $ac_retval
1770 } # ac_fn_cxx_try_compile
1772 # ac_fn_c_try_link LINENO
1773 # -----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_link ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext conftest$ac_exeext
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest$ac_exeext && {
1798 test "$cross_compiling" = yes ||
1799 $as_test_x conftest$ac_exeext
1800 }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1806 ac_retval=1
1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1810 # interfere with the next link command; also delete a directory that is
1811 # left behind by Apple's compiler. We do this before executing the actions.
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814 return $ac_retval
1816 } # ac_fn_c_try_link
1817 cat >config.log <<_ACEOF
1818 This file contains any messages produced by compilers while
1819 running configure, to aid debugging if configure makes a mistake.
1821 It was created by $as_me, which was
1822 generated by GNU Autoconf 2.64. Invocation command line was
1824 $ $0 $@
1826 _ACEOF
1827 exec 5>>config.log
1829 cat <<_ASUNAME
1830 ## --------- ##
1831 ## Platform. ##
1832 ## --------- ##
1834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1841 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1843 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1844 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1846 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1847 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1848 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1849 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1851 _ASUNAME
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1856 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=.
1858 $as_echo "PATH: $as_dir"
1859 done
1860 IFS=$as_save_IFS
1862 } >&5
1864 cat >&5 <<_ACEOF
1867 ## ----------- ##
1868 ## Core tests. ##
1869 ## ----------- ##
1871 _ACEOF
1874 # Keep a trace of the command line.
1875 # Strip out --no-create and --no-recursion so they do not pile up.
1876 # Strip out --silent because we don't want to record it for future runs.
1877 # Also quote any args containing shell meta-characters.
1878 # Make two passes to allow for proper duplicate-argument suppression.
1879 ac_configure_args=
1880 ac_configure_args0=
1881 ac_configure_args1=
1882 ac_must_keep_next=false
1883 for ac_pass in 1 2
1885 for ac_arg
1887 case $ac_arg in
1888 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1890 | -silent | --silent | --silen | --sile | --sil)
1891 continue ;;
1892 *\'*)
1893 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 esac
1895 case $ac_pass in
1896 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1898 as_fn_append ac_configure_args1 " '$ac_arg'"
1899 if test $ac_must_keep_next = true; then
1900 ac_must_keep_next=false # Got value, back to normal.
1901 else
1902 case $ac_arg in
1903 *=* | --config-cache | -C | -disable-* | --disable-* \
1904 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1905 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1906 | -with-* | --with-* | -without-* | --without-* | --x)
1907 case "$ac_configure_args0 " in
1908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1909 esac
1911 -* ) ac_must_keep_next=true ;;
1912 esac
1914 as_fn_append ac_configure_args " '$ac_arg'"
1916 esac
1917 done
1918 done
1919 { ac_configure_args0=; unset ac_configure_args0;}
1920 { ac_configure_args1=; unset ac_configure_args1;}
1922 # When interrupted or exit'd, cleanup temporary files, and complete
1923 # config.log. We remove comments because anyway the quotes in there
1924 # would cause problems or look ugly.
1925 # WARNING: Use '\'' to represent an apostrophe within the trap.
1926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1927 trap 'exit_status=$?
1928 # Save into config.log some information that might help in debugging.
1930 echo
1932 cat <<\_ASBOX
1933 ## ---------------- ##
1934 ## Cache variables. ##
1935 ## ---------------- ##
1936 _ASBOX
1937 echo
1938 # The following way of writing the cache mishandles newlines in values,
1940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1941 eval ac_val=\$$ac_var
1942 case $ac_val in #(
1943 *${as_nl}*)
1944 case $ac_var in #(
1945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1947 esac
1948 case $ac_var in #(
1949 _ | IFS | as_nl) ;; #(
1950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1951 *) { eval $ac_var=; unset $ac_var;} ;;
1952 esac ;;
1953 esac
1954 done
1955 (set) 2>&1 |
1956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1957 *${as_nl}ac_space=\ *)
1958 sed -n \
1959 "s/'\''/'\''\\\\'\'''\''/g;
1960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1961 ;; #(
1963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1965 esac |
1966 sort
1968 echo
1970 cat <<\_ASBOX
1971 ## ----------------- ##
1972 ## Output variables. ##
1973 ## ----------------- ##
1974 _ASBOX
1975 echo
1976 for ac_var in $ac_subst_vars
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 $as_echo "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1986 if test -n "$ac_subst_files"; then
1987 cat <<\_ASBOX
1988 ## ------------------- ##
1989 ## File substitutions. ##
1990 ## ------------------- ##
1991 _ASBOX
1992 echo
1993 for ac_var in $ac_subst_files
1995 eval ac_val=\$$ac_var
1996 case $ac_val in
1997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998 esac
1999 $as_echo "$ac_var='\''$ac_val'\''"
2000 done | sort
2001 echo
2004 if test -s confdefs.h; then
2005 cat <<\_ASBOX
2006 ## ----------- ##
2007 ## confdefs.h. ##
2008 ## ----------- ##
2009 _ASBOX
2010 echo
2011 cat confdefs.h
2012 echo
2014 test "$ac_signal" != 0 &&
2015 $as_echo "$as_me: caught signal $ac_signal"
2016 $as_echo "$as_me: exit $exit_status"
2017 } >&5
2018 rm -f core *.core core.conftest.* &&
2019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020 exit $exit_status
2022 for ac_signal in 1 2 13 15; do
2023 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2024 done
2025 ac_signal=0
2027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2028 rm -f -r conftest* confdefs.h
2030 $as_echo "/* confdefs.h */" > confdefs.h
2032 # Predefined preprocessor variables.
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_NAME "$PACKAGE_NAME"
2036 _ACEOF
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2040 _ACEOF
2042 cat >>confdefs.h <<_ACEOF
2043 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2044 _ACEOF
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_STRING "$PACKAGE_STRING"
2048 _ACEOF
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2052 _ACEOF
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_URL "$PACKAGE_URL"
2056 _ACEOF
2059 # Let the site file select an alternate cache file if it wants to.
2060 # Prefer an explicitly selected file to automatically selected ones.
2061 ac_site_file1=NONE
2062 ac_site_file2=NONE
2063 if test -n "$CONFIG_SITE"; then
2064 ac_site_file1=$CONFIG_SITE
2065 elif test "x$prefix" != xNONE; then
2066 ac_site_file1=$prefix/share/config.site
2067 ac_site_file2=$prefix/etc/config.site
2068 else
2069 ac_site_file1=$ac_default_prefix/share/config.site
2070 ac_site_file2=$ac_default_prefix/etc/config.site
2072 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2074 test "x$ac_site_file" = xNONE && continue
2075 if test -r "$ac_site_file"; then
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2077 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2078 sed 's/^/| /' "$ac_site_file" >&5
2079 . "$ac_site_file"
2081 done
2083 if test -r "$cache_file"; then
2084 # Some versions of bash will fail to source /dev/null (special
2085 # files actually), so we avoid doing that.
2086 if test -f "$cache_file"; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2088 $as_echo "$as_me: loading cache $cache_file" >&6;}
2089 case $cache_file in
2090 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2091 *) . "./$cache_file";;
2092 esac
2094 else
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2096 $as_echo "$as_me: creating cache $cache_file" >&6;}
2097 >$cache_file
2100 # Check that the precious variables saved in the cache have kept the same
2101 # value.
2102 ac_cache_corrupted=false
2103 for ac_var in $ac_precious_vars; do
2104 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2105 eval ac_new_set=\$ac_env_${ac_var}_set
2106 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2107 eval ac_new_val=\$ac_env_${ac_var}_value
2108 case $ac_old_set,$ac_new_set in
2109 set,)
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2111 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2112 ac_cache_corrupted=: ;;
2113 ,set)
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2115 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2116 ac_cache_corrupted=: ;;
2117 ,);;
2119 if test "x$ac_old_val" != "x$ac_new_val"; then
2120 # differences in whitespace do not lead to failure.
2121 ac_old_val_w=`echo x $ac_old_val`
2122 ac_new_val_w=`echo x $ac_new_val`
2123 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2125 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2126 ac_cache_corrupted=:
2127 else
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2129 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2130 eval $ac_var=\$ac_old_val
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2133 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2135 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2136 fi;;
2137 esac
2138 # Pass precious variables to config.status.
2139 if test "$ac_new_set" = set; then
2140 case $ac_new_val in
2141 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2142 *) ac_arg=$ac_var=$ac_new_val ;;
2143 esac
2144 case " $ac_configure_args " in
2145 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2146 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2147 esac
2149 done
2150 if $ac_cache_corrupted; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2154 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2155 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2157 ## -------------------- ##
2158 ## Main body of script. ##
2159 ## -------------------- ##
2161 ac_ext=c
2162 ac_cpp='$CPP $CPPFLAGS'
2163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175 progname=$0
2176 # if PWD already has a value, it is probably wrong.
2177 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2179 # Export original configure arguments for use by sub-configures.
2180 # Quote arguments with shell meta charatcers.
2181 TOPLEVEL_CONFIGURE_ARGUMENTS=
2182 set -- "$progname" "$@"
2183 for ac_arg
2185 case "$ac_arg" in
2186 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2187 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2188 # if the argument is of the form -foo=baz, quote the baz part only
2189 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2190 *) ;;
2191 esac
2192 # Add the quoted argument to the list.
2193 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2194 done
2195 if test "$silent" = yes; then
2196 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2198 # Remove the initial space we just introduced and, as these will be
2199 # expanded by make, quote '$'.
2200 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2203 # Find the build, host, and target systems.
2204 ac_aux_dir=
2205 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2206 for ac_t in install-sh install.sh shtool; do
2207 if test -f "$ac_dir/$ac_t"; then
2208 ac_aux_dir=$ac_dir
2209 ac_install_sh="$ac_aux_dir/$ac_t -c"
2210 break 2
2212 done
2213 done
2214 if test -z "$ac_aux_dir"; then
2215 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2218 # These three variables are undocumented and unsupported,
2219 # and are intended to be withdrawn in a future Autoconf release.
2220 # They can cause serious problems if a builder's source tree is in a directory
2221 # whose full name contains unusual characters.
2222 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2223 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2224 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2227 # Make sure we can run config.sub.
2228 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2229 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2232 $as_echo_n "checking build system type... " >&6; }
2233 if test "${ac_cv_build+set}" = set; then :
2234 $as_echo_n "(cached) " >&6
2235 else
2236 ac_build_alias=$build_alias
2237 test "x$ac_build_alias" = x &&
2238 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2239 test "x$ac_build_alias" = x &&
2240 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2241 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2242 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2246 $as_echo "$ac_cv_build" >&6; }
2247 case $ac_cv_build in
2248 *-*-*) ;;
2249 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2250 esac
2251 build=$ac_cv_build
2252 ac_save_IFS=$IFS; IFS='-'
2253 set x $ac_cv_build
2254 shift
2255 build_cpu=$1
2256 build_vendor=$2
2257 shift; shift
2258 # Remember, the first character of IFS is used to create $*,
2259 # except with old shells:
2260 build_os=$*
2261 IFS=$ac_save_IFS
2262 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2265 case ${build_alias} in
2266 "") build_noncanonical=${build} ;;
2267 *) build_noncanonical=${build_alias} ;;
2268 esac
2272 case ${host_alias} in
2273 "") host_noncanonical=${build_noncanonical} ;;
2274 *) host_noncanonical=${host_alias} ;;
2275 esac
2279 case ${target_alias} in
2280 "") target_noncanonical=${host_noncanonical} ;;
2281 *) target_noncanonical=${target_alias} ;;
2282 esac
2287 test "$host_noncanonical" = "$target_noncanonical" &&
2288 test "$program_prefix$program_suffix$program_transform_name" = \
2289 NONENONEs,x,x, &&
2290 program_transform_name=s,y,y,
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2293 $as_echo_n "checking host system type... " >&6; }
2294 if test "${ac_cv_host+set}" = set; then :
2295 $as_echo_n "(cached) " >&6
2296 else
2297 if test "x$host_alias" = x; then
2298 ac_cv_host=$ac_cv_build
2299 else
2300 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2301 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2306 $as_echo "$ac_cv_host" >&6; }
2307 case $ac_cv_host in
2308 *-*-*) ;;
2309 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2310 esac
2311 host=$ac_cv_host
2312 ac_save_IFS=$IFS; IFS='-'
2313 set x $ac_cv_host
2314 shift
2315 host_cpu=$1
2316 host_vendor=$2
2317 shift; shift
2318 # Remember, the first character of IFS is used to create $*,
2319 # except with old shells:
2320 host_os=$*
2321 IFS=$ac_save_IFS
2322 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2326 $as_echo_n "checking target system type... " >&6; }
2327 if test "${ac_cv_target+set}" = set; then :
2328 $as_echo_n "(cached) " >&6
2329 else
2330 if test "x$target_alias" = x; then
2331 ac_cv_target=$ac_cv_host
2332 else
2333 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2334 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2339 $as_echo "$ac_cv_target" >&6; }
2340 case $ac_cv_target in
2341 *-*-*) ;;
2342 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2343 esac
2344 target=$ac_cv_target
2345 ac_save_IFS=$IFS; IFS='-'
2346 set x $ac_cv_target
2347 shift
2348 target_cpu=$1
2349 target_vendor=$2
2350 shift; shift
2351 # Remember, the first character of IFS is used to create $*,
2352 # except with old shells:
2353 target_os=$*
2354 IFS=$ac_save_IFS
2355 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2358 # The aliases save the names the user supplied, while $host etc.
2359 # will get canonicalized.
2360 test -n "$target_alias" &&
2361 test "$program_prefix$program_suffix$program_transform_name" = \
2362 NONENONEs,x,x, &&
2363 program_prefix=${target_alias}-
2365 test "$program_prefix" != NONE &&
2366 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2367 # Use a double $ so make ignores it.
2368 test "$program_suffix" != NONE &&
2369 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2370 # Double any \ or $.
2371 # By default was `s,x,x', remove it if useless.
2372 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2373 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2377 # Get 'install' or 'install-sh' and its variants.
2378 # Find a good install program. We prefer a C program (faster),
2379 # so one script is as good as another. But avoid the broken or
2380 # incompatible versions:
2381 # SysV /etc/install, /usr/sbin/install
2382 # SunOS /usr/etc/install
2383 # IRIX /sbin/install
2384 # AIX /bin/install
2385 # AmigaOS /C/install, which installs bootblocks on floppy discs
2386 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2387 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2388 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2389 # OS/2's system install, which has a completely different semantic
2390 # ./install, which can be erroneously created by make from ./install.sh.
2391 # Reject install programs that cannot install multiple files.
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2393 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2394 if test -z "$INSTALL"; then
2395 if test "${ac_cv_path_install+set}" = set; then :
2396 $as_echo_n "(cached) " >&6
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2401 IFS=$as_save_IFS
2402 test -z "$as_dir" && as_dir=.
2403 # Account for people who put trailing slashes in PATH elements.
2404 case $as_dir/ in #((
2405 ./ | .// | /[cC]/* | \
2406 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2407 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2408 /usr/ucb/* ) ;;
2410 # OSF1 and SCO ODT 3.0 have their own names for install.
2411 # Don't use installbsd from OSF since it installs stuff as root
2412 # by default.
2413 for ac_prog in ginstall scoinst install; do
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2416 if test $ac_prog = install &&
2417 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418 # AIX install. It has an incompatible calling convention.
2420 elif test $ac_prog = install &&
2421 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422 # program-specific install script used by HP pwplus--don't use.
2424 else
2425 rm -rf conftest.one conftest.two conftest.dir
2426 echo one > conftest.one
2427 echo two > conftest.two
2428 mkdir conftest.dir
2429 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2430 test -s conftest.one && test -s conftest.two &&
2431 test -s conftest.dir/conftest.one &&
2432 test -s conftest.dir/conftest.two
2433 then
2434 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2435 break 3
2439 done
2440 done
2442 esac
2444 done
2445 IFS=$as_save_IFS
2447 rm -rf conftest.one conftest.two conftest.dir
2450 if test "${ac_cv_path_install+set}" = set; then
2451 INSTALL=$ac_cv_path_install
2452 else
2453 # As a last resort, use the slow shell script. Don't cache a
2454 # value for INSTALL within a source directory, because that will
2455 # break other packages using the cache if that directory is
2456 # removed, or if the value is a relative name.
2457 INSTALL=$ac_install_sh
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2461 $as_echo "$INSTALL" >&6; }
2463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2464 # It thinks the first close brace ends the variable substitution.
2465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2469 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2472 $as_echo_n "checking whether ln works... " >&6; }
2473 if test "${acx_cv_prog_LN+set}" = set; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 rm -f conftestdata_t
2477 echo >conftestdata_f
2478 if ln conftestdata_f conftestdata_t 2>/dev/null
2479 then
2480 acx_cv_prog_LN=ln
2481 else
2482 acx_cv_prog_LN=no
2484 rm -f conftestdata_f conftestdata_t
2487 if test $acx_cv_prog_LN = no; then
2488 LN="cp"
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2490 $as_echo "no, using $LN" >&6; }
2491 else
2492 LN="$acx_cv_prog_LN"
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2494 $as_echo "yes" >&6; }
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2498 $as_echo_n "checking whether ln -s works... " >&6; }
2499 LN_S=$as_ln_s
2500 if test "$LN_S" = "ln -s"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2502 $as_echo "yes" >&6; }
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2505 $as_echo "no, using $LN_S" >&6; }
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2509 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2510 if test "${ac_cv_path_SED+set}" = set; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2514 for ac_i in 1 2 3 4 5 6 7; do
2515 ac_script="$ac_script$as_nl$ac_script"
2516 done
2517 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2518 { ac_script=; unset ac_script;}
2519 if test -z "$SED"; then
2520 ac_path_SED_found=false
2521 # Loop through the user's path and test for each of PROGNAME-LIST
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_prog in sed gsed; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2530 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2531 # Check for GNU ac_path_SED and select it if it is found.
2532 # Check for GNU $ac_path_SED
2533 case `"$ac_path_SED" --version 2>&1` in
2534 *GNU*)
2535 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2537 ac_count=0
2538 $as_echo_n 0123456789 >"conftest.in"
2539 while :
2541 cat "conftest.in" "conftest.in" >"conftest.tmp"
2542 mv "conftest.tmp" "conftest.in"
2543 cp "conftest.in" "conftest.nl"
2544 $as_echo '' >> "conftest.nl"
2545 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2547 as_fn_arith $ac_count + 1 && ac_count=$as_val
2548 if test $ac_count -gt ${ac_path_SED_max-0}; then
2549 # Best one so far, save it but keep looking for a better one
2550 ac_cv_path_SED="$ac_path_SED"
2551 ac_path_SED_max=$ac_count
2553 # 10*(2^10) chars as input seems more than enough
2554 test $ac_count -gt 10 && break
2555 done
2556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2557 esac
2559 $ac_path_SED_found && break 3
2560 done
2561 done
2562 done
2563 IFS=$as_save_IFS
2564 if test -z "$ac_cv_path_SED"; then
2565 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2567 else
2568 ac_cv_path_SED=$SED
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2573 $as_echo "$ac_cv_path_SED" >&6; }
2574 SED="$ac_cv_path_SED"
2575 rm -f conftest.sed
2577 for ac_prog in gawk mawk nawk awk
2579 # Extract the first word of "$ac_prog", so it can be a program name with args.
2580 set dummy $ac_prog; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if test "${ac_cv_prog_AWK+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 if test -n "$AWK"; then
2587 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_AWK="$ac_prog"
2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2600 done
2601 done
2602 IFS=$as_save_IFS
2606 AWK=$ac_cv_prog_AWK
2607 if test -n "$AWK"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2609 $as_echo "$AWK" >&6; }
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2616 test -n "$AWK" && break
2617 done
2620 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2622 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2623 # a relative path.
2624 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2625 INSTALL="${srcpwd}/install-sh -c"
2628 # Set srcdir to "." if that's what it is.
2629 # This is important for multilib support.
2630 pwd=`${PWDCMD-pwd}`
2631 if test "${pwd}" = "${srcpwd}" ; then
2632 srcdir=.
2635 topsrcdir=$srcpwd
2637 extra_host_args=
2639 ### To add a new directory to the tree, first choose whether it is a target
2640 ### or a host dependent tool. Then put it into the appropriate list
2641 ### (library or tools, host or target), doing a dependency sort.
2643 # Subdirs will be configured in the order listed in build_configdirs,
2644 # configdirs, or target_configdirs; see the serialization section below.
2646 # Dependency sorting is only needed when *configuration* must be done in
2647 # a particular order. In all cases a dependency should be specified in
2648 # the Makefile, whether or not it's implicitly specified here.
2650 # Double entries in build_configdirs, configdirs, or target_configdirs may
2651 # cause circular dependencies and break everything horribly.
2653 # these library is used by various programs built for the build
2654 # environment
2656 build_libs="build-libiberty"
2658 # these tools are built for the build environment
2659 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2661 # these libraries are used by various programs built for the host environment
2663 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2665 # these tools are built for the host environment
2666 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2667 # know that we are building the simulator.
2668 # binutils, gas and ld appear in that order because it makes sense to run
2669 # "make check" in that particular order.
2670 # If --enable-gold is used, "gold" may replace "ld".
2671 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2673 # libgcj represents the runtime libraries only used by gcj.
2674 libgcj="target-libffi \
2675 target-zlib \
2676 target-libjava"
2678 # these libraries are built for the target environment, and are built after
2679 # the host libraries and the host tools (which may be a cross compiler)
2681 target_libraries="target-libgcc \
2682 target-libiberty \
2683 target-libgloss \
2684 target-newlib \
2685 target-libgomp \
2686 target-libstdc++-v3 \
2687 target-libmudflap \
2688 target-libssp \
2689 target-libquadmath \
2690 target-libgfortran \
2691 target-boehm-gc \
2692 ${libgcj} \
2693 target-libobjc \
2694 target-libupc \
2695 target-libada \
2696 target-libgo"
2698 # these tools are built using the target libraries, and are intended to
2699 # run only in the target environment
2701 # note: any program that *uses* libraries that are in the "target_libraries"
2702 # list belongs in this list.
2704 target_tools="target-rda"
2706 ################################################################################
2708 ## All tools belong in one of the four categories, and are assigned above
2709 ## We assign ${configdirs} this way to remove all embedded newlines. This
2710 ## is important because configure will choke if they ever get through.
2711 ## ${configdirs} is directories we build using the host tools.
2712 ## ${target_configdirs} is directories we build using the target tools.
2713 configdirs=`echo ${host_libs} ${host_tools}`
2714 target_configdirs=`echo ${target_libraries} ${target_tools}`
2715 build_configdirs=`echo ${build_libs} ${build_tools}`
2719 ################################################################################
2721 srcname="gnu development package"
2723 # This gets set non-empty for some net releases of packages.
2724 appdirs=""
2726 # Define is_cross_compiler to save on calls to 'test'.
2727 is_cross_compiler=
2728 if test x"${host}" = x"${target}" ; then
2729 is_cross_compiler=no
2730 else
2731 is_cross_compiler=yes
2734 # Find the build and target subdir names.
2736 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2737 # have matching libraries, they should use host libraries: Makefile.tpl
2738 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2739 # However, they still use the build modules, because the corresponding
2740 # host modules (e.g. bison) are only built for the host when bootstrap
2741 # finishes. So:
2742 # - build_subdir is where we find build modules, and never changes.
2743 # - build_libsubdir is where we find build libraries, and can be overridden.
2745 # Prefix 'build-' so this never conflicts with target_subdir.
2746 build_subdir="build-${build_noncanonical}"
2748 # Check whether --with-build-libsubdir was given.
2749 if test "${with_build_libsubdir+set}" = set; then :
2750 withval=$with_build_libsubdir; build_libsubdir="$withval"
2751 else
2752 build_libsubdir="$build_subdir"
2755 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2756 if ( test $srcdir = . && test -d gcc ) \
2757 || test -d $srcdir/../host-${host_noncanonical}; then
2758 host_subdir="host-${host_noncanonical}"
2759 else
2760 host_subdir=.
2762 # No prefix.
2763 target_subdir=${target_noncanonical}
2765 # Be sure to cover against remnants of an in-tree build.
2766 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2767 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2768 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2771 # Skipdirs are removed silently.
2772 skipdirs=
2773 # Noconfigdirs are removed loudly.
2774 noconfigdirs=""
2776 use_gnu_ld=
2777 # Make sure we don't let GNU ld be added if we didn't want it.
2778 if test x$with_gnu_ld = xno ; then
2779 use_gnu_ld=no
2780 noconfigdirs="$noconfigdirs ld gold"
2783 use_gnu_as=
2784 # Make sure we don't let GNU as be added if we didn't want it.
2785 if test x$with_gnu_as = xno ; then
2786 use_gnu_as=no
2787 noconfigdirs="$noconfigdirs gas"
2790 use_included_zlib=
2791 # Make sure we don't let ZLIB be added if we didn't want it.
2792 if test x$with_system_zlib = xyes ; then
2793 use_included_zlib=no
2794 noconfigdirs="$noconfigdirs zlib"
2797 # some tools are so dependent upon X11 that if we're not building with X,
2798 # it's not even worth trying to configure, much less build, that tool.
2800 case ${with_x} in
2801 yes | "") ;; # the default value for this tree is that X11 is available
2803 skipdirs="${skipdirs} tk itcl libgui"
2804 # We won't be able to build gdbtk without X.
2805 enable_gdbtk=no
2807 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2808 esac
2810 # Some are only suitable for cross toolchains.
2811 # Remove these if host=target.
2812 cross_only="target-libgloss target-newlib target-opcodes"
2814 case $is_cross_compiler in
2815 no) skipdirs="${skipdirs} ${cross_only}" ;;
2816 esac
2818 # If both --with-headers and --with-libs are specified, default to
2819 # --without-newlib.
2820 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2821 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2822 if test x"${with_newlib}" = x ; then
2823 with_newlib=no
2827 # Recognize --with-newlib/--without-newlib.
2828 case ${with_newlib} in
2829 no) skipdirs="${skipdirs} target-newlib" ;;
2830 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2831 esac
2833 # Handle --enable-gold, --enable-ld.
2834 # --disable-gold [--enable-ld]
2835 # Build only ld. Default option.
2836 # --enable-gold [--enable-ld]
2837 # Build both gold and ld. Install gold as "ld.gold", install ld
2838 # as "ld.bfd" and "ld".
2839 # --enable-gold=default [--enable-ld]
2840 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2841 # install ld as "ld.bfd".
2842 # --enable-gold[=default] --disable-ld
2843 # Build only gold, which is then installed as both "ld.gold" and "ld".
2844 # --enable-gold --enable-ld=default
2845 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2846 # and ld.bfd).
2847 # In other words, ld is default
2848 # --enable-gold=default --enable-ld=default
2849 # Error.
2851 default_ld=
2852 # Check whether --enable-gold was given.
2853 if test "${enable_gold+set}" = set; then :
2854 enableval=$enable_gold; ENABLE_GOLD=$enableval
2855 else
2856 ENABLE_GOLD=no
2859 case "${ENABLE_GOLD}" in
2860 yes|default)
2861 # Check for ELF target.
2862 is_elf=no
2863 case "${target}" in
2864 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2865 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2866 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2867 | *-*-solaris2* | *-*-nto*)
2868 case "${target}" in
2869 *-*-linux*aout* | *-*-linux*oldld*)
2872 is_elf=yes
2874 esac
2875 esac
2877 if test "$is_elf" = "yes"; then
2878 # Check for target supported by gold.
2879 case "${target}" in
2880 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2881 configdirs="$configdirs gold"
2882 if test x${ENABLE_GOLD} = xdefault; then
2883 default_ld=gold
2885 ENABLE_GOLD=yes
2887 esac
2893 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2895 esac
2897 # Check whether --enable-ld was given.
2898 if test "${enable_ld+set}" = set; then :
2899 enableval=$enable_ld; ENABLE_LD=$enableval
2900 else
2901 ENABLE_LD=yes
2905 case "${ENABLE_LD}" in
2906 default)
2907 if test x${default_ld} != x; then
2908 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2911 yes)
2914 if test x${ENABLE_GOLD} != xyes; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2916 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2918 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2921 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2923 esac
2925 # Configure extra directories which are host specific
2927 case "${host}" in
2928 *-cygwin*)
2929 configdirs="$configdirs libtermcap" ;;
2930 esac
2932 # A target can indicate whether a language isn't supported for some reason.
2933 # Only spaces may be used in this macro; not newlines or tabs.
2934 unsupported_languages=
2936 # Remove more programs from consideration, based on the host or
2937 # target this usually means that a port of the program doesn't
2938 # exist yet.
2940 case "${host}" in
2941 i[3456789]86-*-msdosdjgpp*)
2942 noconfigdirs="$noconfigdirs tcl tk itcl"
2944 esac
2947 # Check whether --enable-libquadmath was given.
2948 if test "${enable_libquadmath+set}" = set; then :
2949 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2950 else
2951 ENABLE_LIBQUADMATH=yes
2954 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2955 noconfigdirs="$noconfigdirs target-libquadmath"
2959 # Check whether --enable-libquadmath-support was given.
2960 if test "${enable_libquadmath_support+set}" = set; then :
2961 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2962 else
2963 ENABLE_LIBQUADMATH_SUPPORT=yes
2966 enable_libquadmath_support=
2967 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2968 enable_libquadmath_support=no
2972 # Check whether --enable-libada was given.
2973 if test "${enable_libada+set}" = set; then :
2974 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2975 else
2976 ENABLE_LIBADA=yes
2979 if test "${ENABLE_LIBADA}" != "yes" ; then
2980 noconfigdirs="$noconfigdirs gnattools"
2983 # Check whether --enable-libssp was given.
2984 if test "${enable_libssp+set}" = set; then :
2985 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2986 else
2987 ENABLE_LIBSSP=yes
2991 # Save it here so that, even in case of --enable-libgcj, if the Java
2992 # front-end isn't enabled, we still get libgcj disabled.
2993 libgcj_saved=$libgcj
2994 case $enable_libgcj in
2995 yes)
2996 # If we reset it here, it won't get added to noconfigdirs in the
2997 # target-specific build rules, so it will be forcibly enabled
2998 # (unless the Java language itself isn't enabled).
2999 libgcj=
3002 # Make sure we get it printed in the list of not supported target libs.
3003 # Don't disable libffi, though, other languages use it.
3004 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3005 # Clear libgcj_saved so that even if java is enabled libffi won't be
3006 # built.
3007 libgcj_saved=
3009 esac
3012 # Disable libmudflap on some systems.
3013 if test x$enable_libmudflap = x ; then
3014 case "${target}" in
3015 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3016 # Enable libmudflap by default in GNU and friends.
3018 *-*-freebsd*)
3019 # Enable libmudflap by default in FreeBSD.
3022 # Disable it by default everywhere else.
3023 noconfigdirs="$noconfigdirs target-libmudflap"
3025 esac
3028 posix_based_os="yes"
3029 case "${target}" in
3030 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3032 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3034 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3036 *-*-darwin* | *-*-aix*)
3039 posix_based_os="no"
3041 esac
3043 # Enable libgomp by default on POSIX hosted systems.
3044 if test x$enable_libgomp = x -a $posix_based_os = "no" ; then
3045 # Disable libgomp on non POSIX hosted systems.
3046 noconfigdirs="$noconfigdirs target-libgomp"
3049 # Enable libupc by default on POSIX hosted systems.
3050 if test x$enable_libupc = x -a $posix_based_os = "no" ; then
3051 # Disable libupc on non POSIX hosted systems.
3052 noconfigdirs="$noconfigdirs target-libupc"
3055 # Disable libssp for some systems.
3056 case "${target}" in
3057 avr-*-*)
3058 # No hosted I/O support.
3059 noconfigdirs="$noconfigdirs target-libssp"
3061 powerpc-*-aix* | rs6000-*-aix*)
3062 noconfigdirs="$noconfigdirs target-libssp"
3064 esac
3066 # Disable target libiberty for some systems.
3067 case "${target}" in
3068 *-*-kaos*)
3069 # Remove unsupported stuff on all kaOS configurations.
3070 skipdirs="target-libiberty"
3072 *-*-netbsd*)
3073 # Skip some stuff on all NetBSD configurations.
3074 noconfigdirs="$noconfigdirs target-libiberty"
3076 *-*-netware*)
3077 noconfigdirs="$noconfigdirs target-libiberty"
3079 *-*-rtems*)
3080 skipdirs="${skipdirs} target-libiberty"
3082 *-*-tpf*)
3083 noconfigdirs="$noconfigdirs target-libiberty"
3085 *-*-vxworks*)
3086 noconfigdirs="$noconfigdirs target-libiberty"
3088 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3089 noconfigdirs="$noconfigdirs target-libiberty"
3091 arm*-*-symbianelf*)
3092 noconfigdirs="$noconfigdirs target-libiberty"
3094 avr-*-*)
3095 noconfigdirs="$noconfigdirs target-libiberty"
3097 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3098 noconfigdirs="$noconfigdirs target-libiberty"
3100 picochip-*-*)
3101 noconfigdirs="$noconfigdirs target-libiberty"
3103 mips*-sde-elf*)
3104 skipdirs="$skipdirs target-libiberty"
3106 ip2k-*-*)
3107 noconfigdirs="$noconfigdirs target-libiberty"
3109 esac
3111 # Disable libstdc++-v3 for some systems.
3112 case "${target}" in
3113 *-*-vxworks*)
3114 # VxWorks uses the Dinkumware C++ library.
3115 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3117 arm*-wince-pe*)
3118 # the C++ libraries don't build on top of CE's C libraries
3119 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3121 avr-*-*)
3122 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3124 esac
3126 # Disable Fortran for some systems.
3127 case "${target}" in
3128 mmix-*-*)
3129 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3130 unsupported_languages="$unsupported_languages fortran"
3132 esac
3134 # Disable Java if libffi is not supported.
3135 case "${target}" in
3136 alpha*-*-*)
3138 arm*-*-*)
3140 cris-*-*)
3142 frv-*-*)
3144 hppa*-*-linux*)
3146 hppa*-*-hpux*)
3148 i?86-*-*)
3150 ia64*-*-*)
3152 m32r*-*-*)
3154 m68k-*-*)
3156 mips-sgi-irix6.* | mips*-*-rtems*)
3158 mips*-*-linux*)
3160 powerpc*-*-linux*)
3162 powerpc-*-darwin*)
3164 powerpc-*-aix* | rs6000-*-aix*)
3166 powerpc-*-freebsd*)
3168 powerpc64-*-freebsd*)
3170 powerpc*-*-rtems*)
3172 s390-*-* | s390x-*-*)
3174 sh-*-* | sh[34]*-*-*)
3176 sh64-*-* | sh5*-*-*)
3178 sparc*-*-*)
3180 x86_64-*-*)
3182 *-*-*)
3183 unsupported_languages="$unsupported_languages java"
3185 esac
3187 # Disable Java, libgcj or related libraries for some systems.
3188 case "${target}" in
3189 powerpc-*-darwin*)
3191 i[3456789]86-*-darwin*)
3193 x86_64-*-darwin[912]*)
3195 *-*-darwin*)
3196 noconfigdirs="$noconfigdirs ${libgcj}"
3198 *-*-netware*)
3199 noconfigdirs="$noconfigdirs ${libgcj}"
3201 *-*-rtems*)
3202 noconfigdirs="$noconfigdirs ${libgcj}"
3204 *-*-tpf*)
3205 noconfigdirs="$noconfigdirs ${libgcj}"
3207 *-*-uclinux*)
3208 noconfigdirs="$noconfigdirs ${libgcj}"
3210 *-*-vxworks*)
3211 noconfigdirs="$noconfigdirs ${libgcj}"
3213 alpha*-*-*vms*)
3214 noconfigdirs="$noconfigdirs ${libgcj}"
3216 arm-wince-pe)
3217 noconfigdirs="$noconfigdirs ${libgcj}"
3219 arm*-*-symbianelf*)
3220 noconfigdirs="$noconfigdirs ${libgcj}"
3222 bfin-*-*)
3223 noconfigdirs="$noconfigdirs target-boehm-gc"
3225 cris-*-* | crisv32-*-*)
3226 unsupported_languages="$unsupported_languages java"
3227 case "${target}" in
3228 *-*-linux*)
3230 *) # See PR46792 regarding target-libffi.
3231 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3232 esac
3234 hppa*64*-*-linux*)
3235 # In this case, it's because the hppa64-linux target is for
3236 # the kernel only at this point and has no libc, and thus no
3237 # headers, crt*.o, etc., all of which are needed by these.
3238 unsupported_languages="$unsupported_languages java"
3240 hppa*64*-*-hpux*)
3241 noconfigdirs="$noconfigdirs ${libgcj}"
3243 hppa*-hp-hpux11*)
3245 hppa*-*-hpux*)
3246 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3247 # build on HP-UX 10.20.
3248 noconfigdirs="$noconfigdirs ${libgcj}"
3250 ia64*-*-*vms*)
3251 noconfigdirs="$noconfigdirs ${libgcj}"
3253 i[3456789]86-w64-mingw*)
3254 noconfigdirs="$noconfigdirs ${libgcj}"
3256 i[3456789]86-*-mingw*)
3257 noconfigdirs="$noconfigdirs ${libgcj}"
3259 x86_64-*-mingw*)
3260 noconfigdirs="$noconfigdirs ${libgcj}"
3262 mmix-*-*)
3263 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3265 powerpc-*-aix*)
3266 # copied from rs6000-*-* entry
3267 noconfigdirs="$noconfigdirs ${libgcj}"
3269 rs6000-*-aix*)
3270 noconfigdirs="$noconfigdirs ${libgcj}"
3272 mips*-*-irix6*)
3273 # Linking libjava exceeds command-line length limits on at least
3274 # IRIX 6.2, but not on IRIX 6.5.
3275 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3276 # <oldham@codesourcery.com>
3277 noconfigdirs="$noconfigdirs ${libgcj}"
3279 *-*-lynxos*)
3280 noconfigdirs="$noconfigdirs ${libgcj}"
3282 esac
3284 # Default libgloss CPU subdirectory.
3285 libgloss_dir="$target_cpu"
3287 case "${target}" in
3288 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3289 libgloss_dir=wince
3291 arm*-*-*)
3292 libgloss_dir=arm
3294 cris-*-* | crisv32-*-*)
3295 libgloss_dir=cris
3297 hppa*-*-*)
3298 libgloss_dir=pa
3300 i[3456789]86-*-*)
3301 libgloss_dir=i386
3303 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3304 libgloss_dir=m68hc11
3306 m68*-*-* | fido-*-*)
3307 libgloss_dir=m68k
3309 mips*-*-*)
3310 libgloss_dir=mips
3312 powerpc*-*-*)
3313 libgloss_dir=rs6000
3315 sparc*-*-*)
3316 libgloss_dir=sparc
3318 esac
3320 # Disable newlib and libgloss for various target OSes.
3321 case "${target}" in
3322 alpha*-dec-osf*)
3323 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3325 i[3456789]86-*-linux*)
3326 # This section makes it possible to build newlib natively on linux.
3327 # If we are using a cross compiler then don't configure newlib.
3328 if test x${is_cross_compiler} != xno ; then
3329 noconfigdirs="$noconfigdirs target-newlib"
3331 noconfigdirs="$noconfigdirs target-libgloss"
3332 # If we are not using a cross compiler, do configure newlib.
3333 # Note however, that newlib will only be configured in this situation
3334 # if the --with-newlib option has been given, because otherwise
3335 # 'target-newlib' will appear in skipdirs.
3337 i[3456789]86-*-rdos*)
3338 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3340 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3341 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3343 sparc-*-sunos4*)
3344 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3346 *-*-aix*)
3347 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3349 *-*-beos*)
3350 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3352 *-*-chorusos)
3353 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3355 *-*-dragonfly*)
3356 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3358 *-*-freebsd*)
3359 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3361 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3362 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3364 *-*-lynxos*)
3365 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3367 *-*-mingw*)
3368 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3370 *-*-netbsd*)
3371 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3373 *-*-netware*)
3374 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3376 *-*-tpf*)
3377 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3379 *-*-uclinux*)
3380 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3382 *-*-vxworks*)
3383 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3385 esac
3387 case "${target}" in
3388 *-*-chorusos)
3390 powerpc-*-darwin*)
3391 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3392 noconfigdirs="$noconfigdirs sim target-rda"
3394 i[3456789]86-*-darwin*)
3395 noconfigdirs="$noconfigdirs ld gprof"
3396 noconfigdirs="$noconfigdirs sim target-rda"
3398 x86_64-*-darwin[912]*)
3399 noconfigdirs="$noconfigdirs ld gas gprof"
3400 noconfigdirs="$noconfigdirs sim target-rda"
3402 *-*-darwin*)
3403 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3404 noconfigdirs="$noconfigdirs sim target-rda"
3406 *-*-dragonfly*)
3408 *-*-freebsd*)
3409 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3410 && test -f /usr/local/include/gmp.h; then
3411 with_gmp=/usr/local
3414 *-*-kaos*)
3415 # Remove unsupported stuff on all kaOS configurations.
3416 noconfigdirs="$noconfigdirs target-libgloss"
3418 *-*-netbsd*)
3420 *-*-netware*)
3422 *-*-rtems*)
3423 noconfigdirs="$noconfigdirs target-libgloss"
3425 # The tpf target doesn't support gdb yet.
3426 *-*-tpf*)
3427 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3429 *-*-uclinux*)
3430 noconfigdirs="$noconfigdirs target-rda"
3432 *-*-vxworks*)
3434 alpha*-dec-osf*)
3435 # ld works, but does not support shared libraries.
3436 # gas doesn't generate exception information.
3437 noconfigdirs="$noconfigdirs gas ld"
3439 alpha*-*-*vms*)
3440 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3442 alpha*-*-*)
3443 # newlib is not 64 bit ready
3444 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3446 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3447 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3449 arc-*-*)
3450 noconfigdirs="$noconfigdirs target-libgloss"
3452 arm-*-pe*)
3453 noconfigdirs="$noconfigdirs target-libgloss"
3455 arm-*-riscix*)
3456 noconfigdirs="$noconfigdirs ld target-libgloss"
3458 c4x-*-* | tic4x-*-*)
3459 noconfigdirs="$noconfigdirs target-libgloss"
3461 tic54x-*-*)
3462 noconfigdirs="$noconfigdirs target-libgloss gdb"
3464 cr16-*-*)
3465 noconfigdirs="$noconfigdirs gdb"
3467 d10v-*-*)
3468 noconfigdirs="$noconfigdirs target-libgloss"
3470 d30v-*-*)
3471 noconfigdirs="$noconfigdirs gdb"
3473 fr30-*-elf*)
3474 noconfigdirs="$noconfigdirs gdb"
3476 moxie-*-*)
3477 noconfigdirs="$noconfigdirs gprof"
3479 h8300*-*-*)
3480 noconfigdirs="$noconfigdirs target-libgloss"
3482 h8500-*-*)
3483 noconfigdirs="$noconfigdirs target-libgloss"
3485 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3487 hppa*64*-*-linux*)
3489 hppa*-*-linux*)
3491 hppa*-*-*elf* | \
3492 hppa*-*-lites* | \
3493 hppa*-*-openbsd* | \
3494 hppa*64*-*-*)
3496 hppa*-hp-hpux11*)
3497 noconfigdirs="$noconfigdirs ld"
3499 hppa*-*-pro*)
3501 hppa*-*-*)
3502 noconfigdirs="$noconfigdirs ld"
3504 i960-*-*)
3505 noconfigdirs="$noconfigdirs gdb"
3507 ia64*-*-elf*)
3508 # No gdb support yet.
3509 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3511 ia64*-**-hpux*)
3512 # No ld support yet.
3513 noconfigdirs="$noconfigdirs libgui itcl ld"
3515 ia64*-*-*vms*)
3516 # No gdb or ld support yet.
3517 noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
3519 i[3456789]86-w64-mingw*)
3521 i[3456789]86-*-mingw*)
3522 target_configdirs="$target_configdirs target-winsup"
3524 *-*-cygwin*)
3525 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3526 noconfigdirs="$noconfigdirs target-libgloss"
3527 # always build newlib if winsup directory is present.
3528 if test -d "$srcdir/winsup/cygwin"; then
3529 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3530 elif test -d "$srcdir/newlib"; then
3531 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3534 i[3456789]86-*-pe)
3535 noconfigdirs="$noconfigdirs target-libgloss"
3537 i[3456789]86-*-sco3.2v5*)
3538 # The linker does not yet know about weak symbols in COFF,
3539 # and is not configured to handle mixed ELF and COFF.
3540 noconfigdirs="$noconfigdirs ld target-libgloss"
3542 i[3456789]86-*-sco*)
3543 noconfigdirs="$noconfigdirs gprof target-libgloss"
3545 i[3456789]86-*-solaris2*)
3546 noconfigdirs="$noconfigdirs target-libgloss"
3548 i[3456789]86-*-sysv4*)
3549 noconfigdirs="$noconfigdirs target-libgloss"
3551 i[3456789]86-*-beos*)
3552 noconfigdirs="$noconfigdirs gdb"
3554 i[3456789]86-*-rdos*)
3555 noconfigdirs="$noconfigdirs gdb"
3557 mmix-*-*)
3558 noconfigdirs="$noconfigdirs gdb"
3560 mt-*-*)
3561 noconfigdirs="$noconfigdirs sim"
3563 powerpc-*-aix*)
3564 # copied from rs6000-*-* entry
3565 noconfigdirs="$noconfigdirs gprof"
3567 powerpc*-*-winnt* | powerpc*-*-pe*)
3568 target_configdirs="$target_configdirs target-winsup"
3569 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3570 # always build newlib.
3571 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3573 # This is temporary until we can link against shared libraries
3574 powerpcle-*-solaris*)
3575 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3577 powerpc-*-beos*)
3578 noconfigdirs="$noconfigdirs gdb"
3580 rs6000-*-lynxos*)
3581 noconfigdirs="$noconfigdirs gprof"
3583 rs6000-*-aix*)
3584 noconfigdirs="$noconfigdirs gprof"
3586 rs6000-*-*)
3587 noconfigdirs="$noconfigdirs gprof"
3589 m68k-apollo-*)
3590 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3592 microblaze*)
3593 noconfigdirs="$noconfigdirs gprof"
3595 mips*-sde-elf*)
3596 if test x$with_newlib = xyes; then
3597 noconfigdirs="$noconfigdirs gprof"
3600 mips*-*-irix5*)
3601 noconfigdirs="$noconfigdirs gprof target-libgloss"
3603 mips*-*-irix6*)
3604 noconfigdirs="$noconfigdirs gprof target-libgloss"
3606 mips*-*-bsd*)
3607 noconfigdirs="$noconfigdirs gprof target-libgloss"
3609 mips*-*-linux*)
3611 mips*-*-*)
3612 noconfigdirs="$noconfigdirs gprof"
3614 sh-*-* | sh64-*-*)
3615 case "${target}" in
3616 sh*-*-elf)
3619 noconfigdirs="$noconfigdirs target-libgloss" ;;
3620 esac
3622 sparc-*-sunos4*)
3623 if test x${is_cross_compiler} = xno ; then
3624 use_gnu_ld=no
3627 tic6x-*-*)
3628 noconfigdirs="$noconfigdirs gdb sim"
3630 v810-*-*)
3631 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3633 vax-*-*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 esac
3638 # If we aren't building newlib, then don't build libgloss, since libgloss
3639 # depends upon some newlib header files.
3640 case "${noconfigdirs}" in
3641 *target-libgloss*) ;;
3642 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3643 esac
3645 # Work in distributions that contain no compiler tools, like Autoconf.
3646 host_makefile_frag=/dev/null
3647 if test -d ${srcdir}/config ; then
3648 case "${host}" in
3649 i[3456789]86-*-msdosdjgpp*)
3650 host_makefile_frag="config/mh-djgpp"
3652 *-cygwin*)
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3655 $as_echo_n "checking to see if cat works as expected... " >&6; }
3656 echo a >cygwin-cat-check
3657 if test `cat cygwin-cat-check` = a ; then
3658 rm cygwin-cat-check
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660 $as_echo "yes" >&6; }
3661 else
3662 rm cygwin-cat-check
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 as_fn_error "The cat command does not ignore carriage return characters.
3666 Please either mount the build directory in binary mode or run the following
3667 commands before running any configure script:
3668 set -o igncr
3669 export SHELLOPTS
3670 " "$LINENO" 5
3673 host_makefile_frag="config/mh-cygwin"
3675 *-mingw*)
3676 host_makefile_frag="config/mh-mingw"
3678 *-interix*)
3679 host_makefile_frag="config/mh-interix"
3681 hppa*-hp-hpux10*)
3682 host_makefile_frag="config/mh-pa-hpux10"
3684 hppa*-hp-hpux*)
3685 host_makefile_frag="config/mh-pa"
3687 hppa*-*)
3688 host_makefile_frag="config/mh-pa"
3690 *-*-darwin*)
3691 host_makefile_frag="config/mh-darwin"
3693 powerpc-*-aix*)
3694 host_makefile_frag="config/mh-ppc-aix"
3696 rs6000-*-aix*)
3697 host_makefile_frag="config/mh-ppc-aix"
3699 esac
3702 if test "${build}" != "${host}" ; then
3703 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3704 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3705 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3706 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3707 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3708 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3709 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3710 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3711 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3712 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3713 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3714 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3715 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3716 else
3717 AR_FOR_BUILD="\$(AR)"
3718 AS_FOR_BUILD="\$(AS)"
3719 CC_FOR_BUILD="\$(CC)"
3720 CXX_FOR_BUILD="\$(CXX)"
3721 GCJ_FOR_BUILD="\$(GCJ)"
3722 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3723 GOC_FOR_BUILD="\$(GOC)"
3724 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3725 LD_FOR_BUILD="\$(LD)"
3726 NM_FOR_BUILD="\$(NM)"
3727 RANLIB_FOR_BUILD="\$(RANLIB)"
3728 WINDRES_FOR_BUILD="\$(WINDRES)"
3729 WINDMC_FOR_BUILD="\$(WINDMC)"
3732 ac_ext=c
3733 ac_cpp='$CPP $CPPFLAGS'
3734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737 if test -n "$ac_tool_prefix"; then
3738 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3739 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if test "${ac_cv_prog_CC+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 if test -n "$CC"; then
3746 ac_cv_prog_CC="$CC" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
3759 done
3760 done
3761 IFS=$as_save_IFS
3765 CC=$ac_cv_prog_CC
3766 if test -n "$CC"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3768 $as_echo "$CC" >&6; }
3769 else
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3776 if test -z "$ac_cv_prog_CC"; then
3777 ac_ct_CC=$CC
3778 # Extract the first word of "gcc", so it can be a program name with args.
3779 set dummy gcc; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 if test -n "$ac_ct_CC"; then
3786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795 ac_cv_prog_ac_ct_CC="gcc"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3799 done
3800 done
3801 IFS=$as_save_IFS
3805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3806 if test -n "$ac_ct_CC"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3808 $as_echo "$ac_ct_CC" >&6; }
3809 else
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3814 if test "x$ac_ct_CC" = x; then
3815 CC=""
3816 else
3817 case $cross_compiling:$ac_tool_warned in
3818 yes:)
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3821 ac_tool_warned=yes ;;
3822 esac
3823 CC=$ac_ct_CC
3825 else
3826 CC="$ac_cv_prog_CC"
3829 if test -z "$CC"; then
3830 if test -n "$ac_tool_prefix"; then
3831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3832 set dummy ${ac_tool_prefix}cc; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if test "${ac_cv_prog_CC+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 if test -n "$CC"; then
3839 ac_cv_prog_CC="$CC" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848 ac_cv_prog_CC="${ac_tool_prefix}cc"
3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3852 done
3853 done
3854 IFS=$as_save_IFS
3858 CC=$ac_cv_prog_CC
3859 if test -n "$CC"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3861 $as_echo "$CC" >&6; }
3862 else
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3870 if test -z "$CC"; then
3871 # Extract the first word of "cc", so it can be a program name with args.
3872 set dummy cc; ac_word=$2
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if test "${ac_cv_prog_CC+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 if test -n "$CC"; then
3879 ac_cv_prog_CC="$CC" # Let the user override the test.
3880 else
3881 ac_prog_rejected=no
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3890 ac_prog_rejected=yes
3891 continue
3893 ac_cv_prog_CC="cc"
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3897 done
3898 done
3899 IFS=$as_save_IFS
3901 if test $ac_prog_rejected = yes; then
3902 # We found a bogon in the path, so make sure we never use it.
3903 set dummy $ac_cv_prog_CC
3904 shift
3905 if test $# != 0; then
3906 # We chose a different compiler from the bogus one.
3907 # However, it has the same basename, so the bogon will be chosen
3908 # first if we set CC to just the basename; use the full file name.
3909 shift
3910 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3915 CC=$ac_cv_prog_CC
3916 if test -n "$CC"; then
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3918 $as_echo "$CC" >&6; }
3919 else
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3926 if test -z "$CC"; then
3927 if test -n "$ac_tool_prefix"; then
3928 for ac_prog in cl.exe
3930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933 $as_echo_n "checking for $ac_word... " >&6; }
3934 if test "${ac_cv_prog_CC+set}" = set; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 if test -n "$CC"; then
3938 ac_cv_prog_CC="$CC" # Let the user override the test.
3939 else
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3947 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3951 done
3952 done
3953 IFS=$as_save_IFS
3957 CC=$ac_cv_prog_CC
3958 if test -n "$CC"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3960 $as_echo "$CC" >&6; }
3961 else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3967 test -n "$CC" && break
3968 done
3970 if test -z "$CC"; then
3971 ac_ct_CC=$CC
3972 for ac_prog in cl.exe
3974 # Extract the first word of "$ac_prog", so it can be a program name with args.
3975 set dummy $ac_prog; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -n "$ac_ct_CC"; then
3982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_prog_ac_ct_CC="$ac_prog"
3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3995 done
3996 done
3997 IFS=$as_save_IFS
4001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4002 if test -n "$ac_ct_CC"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4004 $as_echo "$ac_ct_CC" >&6; }
4005 else
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4011 test -n "$ac_ct_CC" && break
4012 done
4014 if test "x$ac_ct_CC" = x; then
4015 CC=""
4016 else
4017 case $cross_compiling:$ac_tool_warned in
4018 yes:)
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4021 ac_tool_warned=yes ;;
4022 esac
4023 CC=$ac_ct_CC
4030 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "no acceptable C compiler found in \$PATH
4033 See \`config.log' for more details." "$LINENO" 5; }
4035 # Provide some information about the compiler.
4036 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4037 set X $ac_compile
4038 ac_compiler=$2
4039 for ac_option in --version -v -V -qversion; do
4040 { { ac_try="$ac_compiler $ac_option >&5"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4048 ac_status=$?
4049 if test -s conftest.err; then
4050 sed '10a\
4051 ... rest of stderr output deleted ...
4052 10q' conftest.err >conftest.er1
4053 cat conftest.er1 >&5
4054 rm -f conftest.er1 conftest.err
4056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4057 test $ac_status = 0; }
4058 done
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4064 main ()
4068 return 0;
4070 _ACEOF
4071 ac_clean_files_save=$ac_clean_files
4072 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4073 # Try to create an executable without -o first, disregard a.out.
4074 # It will help us diagnose broken compilers, and finding out an intuition
4075 # of exeext.
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4077 $as_echo_n "checking for C compiler default output file name... " >&6; }
4078 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4080 # The possible output files:
4081 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4083 ac_rmfiles=
4084 for ac_file in $ac_files
4086 case $ac_file in
4087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4088 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4089 esac
4090 done
4091 rm -f $ac_rmfiles
4093 if { { ac_try="$ac_link_default"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100 (eval "$ac_link_default") 2>&5
4101 ac_status=$?
4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }; then :
4104 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4105 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4106 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4107 # so that the user can short-circuit this test for compilers unknown to
4108 # Autoconf.
4109 for ac_file in $ac_files ''
4111 test -f "$ac_file" || continue
4112 case $ac_file in
4113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4115 [ab].out )
4116 # We found the default executable, but exeext='' is most
4117 # certainly right.
4118 break;;
4119 *.* )
4120 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4121 then :; else
4122 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4124 # We set ac_cv_exeext here because the later test for it is not
4125 # safe: cross compilers may not add the suffix if given an `-o'
4126 # argument, so we may need to know it at that point already.
4127 # Even if this section looks crufty: it has the advantage of
4128 # actually working.
4129 break;;
4131 break;;
4132 esac
4133 done
4134 test "$ac_cv_exeext" = no && ac_cv_exeext=
4136 else
4137 ac_file=''
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4140 $as_echo "$ac_file" >&6; }
4141 if test -z "$ac_file"; then :
4142 $as_echo "$as_me: failed program was:" >&5
4143 sed 's/^/| /' conftest.$ac_ext >&5
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 { as_fn_set_status 77
4148 as_fn_error "C compiler cannot create executables
4149 See \`config.log' for more details." "$LINENO" 5; }; }
4151 ac_exeext=$ac_cv_exeext
4153 # Check that the compiler produces executables we can run. If not, either
4154 # the compiler is broken, or we cross compile.
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4156 $as_echo_n "checking whether the C compiler works... " >&6; }
4157 # If not cross compiling, check that we can run a simple program.
4158 if test "$cross_compiling" != yes; then
4159 if { ac_try='./$ac_file'
4160 { { case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163 esac
4164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4165 $as_echo "$ac_try_echo"; } >&5
4166 (eval "$ac_try") 2>&5
4167 ac_status=$?
4168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4169 test $ac_status = 0; }; }; then
4170 cross_compiling=no
4171 else
4172 if test "$cross_compiling" = maybe; then
4173 cross_compiling=yes
4174 else
4175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4177 as_fn_error "cannot run C compiled programs.
4178 If you meant to cross compile, use \`--host'.
4179 See \`config.log' for more details." "$LINENO" 5; }
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4184 $as_echo "yes" >&6; }
4186 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4187 ac_clean_files=$ac_clean_files_save
4188 # Check that the compiler produces executables we can run. If not, either
4189 # the compiler is broken, or we cross compile.
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4191 $as_echo_n "checking whether we are cross compiling... " >&6; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4193 $as_echo "$cross_compiling" >&6; }
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4196 $as_echo_n "checking for suffix of executables... " >&6; }
4197 if { { ac_try="$ac_link"
4198 case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_link") 2>&5
4205 ac_status=$?
4206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207 test $ac_status = 0; }; then :
4208 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4209 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4210 # work properly (i.e., refer to `conftest.exe'), while it won't with
4211 # `rm'.
4212 for ac_file in conftest.exe conftest conftest.*; do
4213 test -f "$ac_file" || continue
4214 case $ac_file in
4215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4216 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4217 break;;
4218 * ) break;;
4219 esac
4220 done
4221 else
4222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4224 as_fn_error "cannot compute suffix of executables: cannot compile and link
4225 See \`config.log' for more details." "$LINENO" 5; }
4227 rm -f conftest$ac_cv_exeext
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4229 $as_echo "$ac_cv_exeext" >&6; }
4231 rm -f conftest.$ac_ext
4232 EXEEXT=$ac_cv_exeext
4233 ac_exeext=$EXEEXT
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4235 $as_echo_n "checking for suffix of object files... " >&6; }
4236 if test "${ac_cv_objext+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4243 main ()
4247 return 0;
4249 _ACEOF
4250 rm -f conftest.o conftest.obj
4251 if { { ac_try="$ac_compile"
4252 case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 $as_echo "$ac_try_echo"; } >&5
4258 (eval "$ac_compile") 2>&5
4259 ac_status=$?
4260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; }; then :
4262 for ac_file in conftest.o conftest.obj conftest.*; do
4263 test -f "$ac_file" || continue;
4264 case $ac_file in
4265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4266 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4267 break;;
4268 esac
4269 done
4270 else
4271 $as_echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4276 as_fn_error "cannot compute suffix of object files: cannot compile
4277 See \`config.log' for more details." "$LINENO" 5; }
4279 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4282 $as_echo "$ac_cv_objext" >&6; }
4283 OBJEXT=$ac_cv_objext
4284 ac_objext=$OBJEXT
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4286 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4287 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4288 $as_echo_n "(cached) " >&6
4289 else
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4294 main ()
4296 #ifndef __GNUC__
4297 choke me
4298 #endif
4301 return 0;
4303 _ACEOF
4304 if ac_fn_c_try_compile "$LINENO"; then :
4305 ac_compiler_gnu=yes
4306 else
4307 ac_compiler_gnu=no
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4314 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4315 if test $ac_compiler_gnu = yes; then
4316 GCC=yes
4317 else
4318 GCC=
4320 ac_test_CFLAGS=${CFLAGS+set}
4321 ac_save_CFLAGS=$CFLAGS
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4323 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4324 if test "${ac_cv_prog_cc_g+set}" = set; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 ac_save_c_werror_flag=$ac_c_werror_flag
4328 ac_c_werror_flag=yes
4329 ac_cv_prog_cc_g=no
4330 CFLAGS="-g"
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4335 main ()
4339 return 0;
4341 _ACEOF
4342 if ac_fn_c_try_compile "$LINENO"; then :
4343 ac_cv_prog_cc_g=yes
4344 else
4345 CFLAGS=""
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4350 main ()
4354 return 0;
4356 _ACEOF
4357 if ac_fn_c_try_compile "$LINENO"; then :
4359 else
4360 ac_c_werror_flag=$ac_save_c_werror_flag
4361 CFLAGS="-g"
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4366 main ()
4370 return 0;
4372 _ACEOF
4373 if ac_fn_c_try_compile "$LINENO"; then :
4374 ac_cv_prog_cc_g=yes
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 ac_c_werror_flag=$ac_save_c_werror_flag
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4384 $as_echo "$ac_cv_prog_cc_g" >&6; }
4385 if test "$ac_test_CFLAGS" = set; then
4386 CFLAGS=$ac_save_CFLAGS
4387 elif test $ac_cv_prog_cc_g = yes; then
4388 if test "$GCC" = yes; then
4389 CFLAGS="-g -O2"
4390 else
4391 CFLAGS="-g"
4393 else
4394 if test "$GCC" = yes; then
4395 CFLAGS="-O2"
4396 else
4397 CFLAGS=
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4401 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4402 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 ac_cv_prog_cc_c89=no
4406 ac_save_CC=$CC
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4409 #include <stdarg.h>
4410 #include <stdio.h>
4411 #include <sys/types.h>
4412 #include <sys/stat.h>
4413 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4414 struct buf { int x; };
4415 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4416 static char *e (p, i)
4417 char **p;
4418 int i;
4420 return p[i];
4422 static char *f (char * (*g) (char **, int), char **p, ...)
4424 char *s;
4425 va_list v;
4426 va_start (v,p);
4427 s = g (p, va_arg (v,int));
4428 va_end (v);
4429 return s;
4432 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4433 function prototypes and stuff, but not '\xHH' hex character constants.
4434 These don't provoke an error unfortunately, instead are silently treated
4435 as 'x'. The following induces an error, until -std is added to get
4436 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4437 array size at least. It's necessary to write '\x00'==0 to get something
4438 that's true only with -std. */
4439 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4441 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4442 inside strings and character constants. */
4443 #define FOO(x) 'x'
4444 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4446 int test (int i, double x);
4447 struct s1 {int (*f) (int a);};
4448 struct s2 {int (*f) (double a);};
4449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4450 int argc;
4451 char **argv;
4453 main ()
4455 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4457 return 0;
4459 _ACEOF
4460 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4461 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4463 CC="$ac_save_CC $ac_arg"
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465 ac_cv_prog_cc_c89=$ac_arg
4467 rm -f core conftest.err conftest.$ac_objext
4468 test "x$ac_cv_prog_cc_c89" != "xno" && break
4469 done
4470 rm -f conftest.$ac_ext
4471 CC=$ac_save_CC
4474 # AC_CACHE_VAL
4475 case "x$ac_cv_prog_cc_c89" in
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4478 $as_echo "none needed" >&6; } ;;
4479 xno)
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4481 $as_echo "unsupported" >&6; } ;;
4483 CC="$CC $ac_cv_prog_cc_c89"
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4485 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4486 esac
4487 if test "x$ac_cv_prog_cc_c89" != xno; then :
4491 ac_ext=c
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497 ac_ext=cpp
4498 ac_cpp='$CXXCPP $CPPFLAGS'
4499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4502 if test -z "$CXX"; then
4503 if test -n "$CCC"; then
4504 CXX=$CCC
4505 else
4506 if test -n "$ac_tool_prefix"; then
4507 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if test "${ac_cv_prog_CXX+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$CXX"; then
4517 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4536 CXX=$ac_cv_prog_CXX
4537 if test -n "$CXX"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4539 $as_echo "$CXX" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4546 test -n "$CXX" && break
4547 done
4549 if test -z "$CXX"; then
4550 ac_ct_CXX=$CXX
4551 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4553 # Extract the first word of "$ac_prog", so it can be a program name with args.
4554 set dummy $ac_prog; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$ac_ct_CXX"; then
4561 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_ac_ct_CXX="$ac_prog"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4574 done
4575 done
4576 IFS=$as_save_IFS
4580 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4581 if test -n "$ac_ct_CXX"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4583 $as_echo "$ac_ct_CXX" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4590 test -n "$ac_ct_CXX" && break
4591 done
4593 if test "x$ac_ct_CXX" = x; then
4594 CXX="g++"
4595 else
4596 case $cross_compiling:$ac_tool_warned in
4597 yes:)
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4600 ac_tool_warned=yes ;;
4601 esac
4602 CXX=$ac_ct_CXX
4608 # Provide some information about the compiler.
4609 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4610 set X $ac_compile
4611 ac_compiler=$2
4612 for ac_option in --version -v -V -qversion; do
4613 { { ac_try="$ac_compiler $ac_option >&5"
4614 case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617 esac
4618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4619 $as_echo "$ac_try_echo"; } >&5
4620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4621 ac_status=$?
4622 if test -s conftest.err; then
4623 sed '10a\
4624 ... rest of stderr output deleted ...
4625 10q' conftest.err >conftest.er1
4626 cat conftest.er1 >&5
4627 rm -f conftest.er1 conftest.err
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }
4631 done
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4634 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4635 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4642 main ()
4644 #ifndef __GNUC__
4645 choke me
4646 #endif
4649 return 0;
4651 _ACEOF
4652 if ac_fn_cxx_try_compile "$LINENO"; then :
4653 ac_compiler_gnu=yes
4654 else
4655 ac_compiler_gnu=no
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4662 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4663 if test $ac_compiler_gnu = yes; then
4664 GXX=yes
4665 else
4666 GXX=
4668 ac_test_CXXFLAGS=${CXXFLAGS+set}
4669 ac_save_CXXFLAGS=$CXXFLAGS
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4671 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4672 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4676 ac_cxx_werror_flag=yes
4677 ac_cv_prog_cxx_g=no
4678 CXXFLAGS="-g"
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4683 main ()
4687 return 0;
4689 _ACEOF
4690 if ac_fn_cxx_try_compile "$LINENO"; then :
4691 ac_cv_prog_cxx_g=yes
4692 else
4693 CXXFLAGS=""
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4698 main ()
4702 return 0;
4704 _ACEOF
4705 if ac_fn_cxx_try_compile "$LINENO"; then :
4707 else
4708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4709 CXXFLAGS="-g"
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4714 main ()
4718 return 0;
4720 _ACEOF
4721 if ac_fn_cxx_try_compile "$LINENO"; then :
4722 ac_cv_prog_cxx_g=yes
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4732 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4733 if test "$ac_test_CXXFLAGS" = set; then
4734 CXXFLAGS=$ac_save_CXXFLAGS
4735 elif test $ac_cv_prog_cxx_g = yes; then
4736 if test "$GXX" = yes; then
4737 CXXFLAGS="-g -O2"
4738 else
4739 CXXFLAGS="-g"
4741 else
4742 if test "$GXX" = yes; then
4743 CXXFLAGS="-O2"
4744 else
4745 CXXFLAGS=
4748 ac_ext=c
4749 ac_cpp='$CPP $CPPFLAGS'
4750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755 # We must set the default linker to the linker used by gcc for the correct
4756 # operation of libtool. If LD is not defined and we are using gcc, try to
4757 # set the LD default to the ld used by gcc.
4758 if test -z "$LD"; then
4759 if test "$GCC" = yes; then
4760 case $build in
4761 *-*-mingw*)
4762 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4764 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4765 esac
4766 case $gcc_prog_ld in
4767 # Accept absolute paths.
4768 [\\/]* | [A-Za-z]:[\\/]*)
4769 LD="$gcc_prog_ld" ;;
4770 esac
4777 if test -n "$ac_tool_prefix"; then
4778 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4779 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 if test -n "$GNATBIND"; then
4786 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4799 done
4800 done
4801 IFS=$as_save_IFS
4805 GNATBIND=$ac_cv_prog_GNATBIND
4806 if test -n "$GNATBIND"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4808 $as_echo "$GNATBIND" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4816 if test -z "$ac_cv_prog_GNATBIND"; then
4817 ac_ct_GNATBIND=$GNATBIND
4818 # Extract the first word of "gnatbind", so it can be a program name with args.
4819 set dummy gnatbind; ac_word=$2
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821 $as_echo_n "checking for $ac_word... " >&6; }
4822 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 if test -n "$ac_ct_GNATBIND"; then
4826 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4839 done
4840 done
4841 IFS=$as_save_IFS
4845 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4846 if test -n "$ac_ct_GNATBIND"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4848 $as_echo "$ac_ct_GNATBIND" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4854 if test "x$ac_ct_GNATBIND" = x; then
4855 GNATBIND="no"
4856 else
4857 case $cross_compiling:$ac_tool_warned in
4858 yes:)
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4861 ac_tool_warned=yes ;;
4862 esac
4863 GNATBIND=$ac_ct_GNATBIND
4865 else
4866 GNATBIND="$ac_cv_prog_GNATBIND"
4869 if test -n "$ac_tool_prefix"; then
4870 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4871 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -n "$GNATMAKE"; then
4878 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4891 done
4892 done
4893 IFS=$as_save_IFS
4897 GNATMAKE=$ac_cv_prog_GNATMAKE
4898 if test -n "$GNATMAKE"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4900 $as_echo "$GNATMAKE" >&6; }
4901 else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4908 if test -z "$ac_cv_prog_GNATMAKE"; then
4909 ac_ct_GNATMAKE=$GNATMAKE
4910 # Extract the first word of "gnatmake", so it can be a program name with args.
4911 set dummy gnatmake; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$ac_ct_GNATMAKE"; then
4918 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4931 done
4932 done
4933 IFS=$as_save_IFS
4937 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4938 if test -n "$ac_ct_GNATMAKE"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4940 $as_echo "$ac_ct_GNATMAKE" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4946 if test "x$ac_ct_GNATMAKE" = x; then
4947 GNATMAKE="no"
4948 else
4949 case $cross_compiling:$ac_tool_warned in
4950 yes:)
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953 ac_tool_warned=yes ;;
4954 esac
4955 GNATMAKE=$ac_ct_GNATMAKE
4957 else
4958 GNATMAKE="$ac_cv_prog_GNATMAKE"
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4962 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4963 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 cat >conftest.adb <<EOF
4967 procedure conftest is begin null; end conftest;
4969 acx_cv_cc_gcc_supports_ada=no
4970 # There is a bug in old released versions of GCC which causes the
4971 # driver to exit successfully when the appropriate language module
4972 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4973 # Therefore we must check for the error message as well as an
4974 # unsuccessful exit.
4975 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4976 # given a .adb file, but produce no object file. So we must check
4977 # if an object file was really produced to guard against this.
4978 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4979 if test x"$errors" = x && test -f conftest.$ac_objext; then
4980 acx_cv_cc_gcc_supports_ada=yes
4982 rm -f conftest.*
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4985 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4987 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4988 have_gnat=yes
4989 else
4990 have_gnat=no
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4994 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4995 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 echo abfoo >t1
4999 echo cdfoo >t2
5000 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5001 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5002 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5004 else
5005 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5008 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5009 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5011 else
5012 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5015 rm t1 t2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5019 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5020 do_compare="$gcc_cv_prog_cmp_skip"
5024 # See if we are building gcc with C++.
5025 # Check whether --enable-build-with-cxx was given.
5026 if test "${enable_build_with_cxx+set}" = set; then :
5027 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5028 else
5029 ENABLE_BUILD_WITH_CXX=no
5033 # Used for setting $lt_cv_objdir
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5035 $as_echo_n "checking for objdir... " >&6; }
5036 if test "${lt_cv_objdir+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 rm -f .libs 2>/dev/null
5040 mkdir .libs 2>/dev/null
5041 if test -d .libs; then
5042 lt_cv_objdir=.libs
5043 else
5044 # MS-DOS does not allow filenames that begin with a dot.
5045 lt_cv_objdir=_libs
5047 rmdir .libs 2>/dev/null
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5050 $as_echo "$lt_cv_objdir" >&6; }
5051 objdir=$lt_cv_objdir
5057 cat >>confdefs.h <<_ACEOF
5058 #define LT_OBJDIR "$lt_cv_objdir/"
5059 _ACEOF
5063 # Check for GMP, MPFR and MPC
5064 gmplibs="-lmpc -lmpfr -lgmp"
5065 gmpinc=
5066 have_gmp=no
5068 # Specify a location for mpc
5069 # check for this first so it ends up on the link line before mpfr.
5071 # Check whether --with-mpc was given.
5072 if test "${with_mpc+set}" = set; then :
5073 withval=$with_mpc;
5077 # Check whether --with-mpc-include was given.
5078 if test "${with_mpc_include+set}" = set; then :
5079 withval=$with_mpc_include;
5083 # Check whether --with-mpc-lib was given.
5084 if test "${with_mpc_lib+set}" = set; then :
5085 withval=$with_mpc_lib;
5089 if test "x$with_mpc" != x; then
5090 gmplibs="-L$with_mpc/lib $gmplibs"
5091 gmpinc="-I$with_mpc/include $gmpinc"
5093 if test "x$with_mpc_include" != x; then
5094 gmpinc="-I$with_mpc_include $gmpinc"
5096 if test "x$with_mpc_lib" != x; then
5097 gmplibs="-L$with_mpc_lib $gmplibs"
5099 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5100 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5101 gmpinc='-I$$s/mpc/src '"$gmpinc"
5102 # Do not test the mpc version. Assume that it is sufficient, since
5103 # it is in the source tree, and the library has not been built yet
5104 # but it would be included on the link line in the version check below
5105 # hence making the test fail.
5106 have_gmp=yes
5109 # Specify a location for mpfr
5110 # check for this first so it ends up on the link line before gmp.
5112 # Check whether --with-mpfr-dir was given.
5113 if test "${with_mpfr_dir+set}" = set; then :
5114 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5115 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5120 # Check whether --with-mpfr was given.
5121 if test "${with_mpfr+set}" = set; then :
5122 withval=$with_mpfr;
5126 # Check whether --with-mpfr-include was given.
5127 if test "${with_mpfr_include+set}" = set; then :
5128 withval=$with_mpfr_include;
5132 # Check whether --with-mpfr-lib was given.
5133 if test "${with_mpfr_lib+set}" = set; then :
5134 withval=$with_mpfr_lib;
5138 if test "x$with_mpfr" != x; then
5139 gmplibs="-L$with_mpfr/lib $gmplibs"
5140 gmpinc="-I$with_mpfr/include $gmpinc"
5142 if test "x$with_mpfr_include" != x; then
5143 gmpinc="-I$with_mpfr_include $gmpinc"
5145 if test "x$with_mpfr_lib" != x; then
5146 gmplibs="-L$with_mpfr_lib $gmplibs"
5148 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5149 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5150 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5151 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5152 # Do not test the mpfr version. Assume that it is sufficient, since
5153 # it is in the source tree, and the library has not been built yet
5154 # but it would be included on the link line in the version check below
5155 # hence making the test fail.
5156 have_gmp=yes
5159 # Specify a location for gmp
5161 # Check whether --with-gmp-dir was given.
5162 if test "${with_gmp_dir+set}" = set; then :
5163 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5164 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5169 # Check whether --with-gmp was given.
5170 if test "${with_gmp+set}" = set; then :
5171 withval=$with_gmp;
5175 # Check whether --with-gmp-include was given.
5176 if test "${with_gmp_include+set}" = set; then :
5177 withval=$with_gmp_include;
5181 # Check whether --with-gmp-lib was given.
5182 if test "${with_gmp_lib+set}" = set; then :
5183 withval=$with_gmp_lib;
5188 if test "x$with_gmp" != x; then
5189 gmplibs="-L$with_gmp/lib $gmplibs"
5190 gmpinc="-I$with_gmp/include $gmpinc"
5192 if test "x$with_gmp_include" != x; then
5193 gmpinc="-I$with_gmp_include $gmpinc"
5195 if test "x$with_gmp_lib" != x; then
5196 gmplibs="-L$with_gmp_lib $gmplibs"
5198 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5199 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5200 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5201 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5202 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5203 # Do not test the gmp version. Assume that it is sufficient, since
5204 # it is in the source tree, and the library has not been built yet
5205 # but it would be included on the link line in the version check below
5206 # hence making the test fail.
5207 have_gmp=yes
5210 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5211 have_gmp=yes
5212 saved_CFLAGS="$CFLAGS"
5213 CFLAGS="$CFLAGS $gmpinc"
5214 # Check for the recommended and required versions of GMP.
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5216 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220 #include "gmp.h"
5222 main ()
5225 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5226 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5227 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5228 choke me
5229 #endif
5232 return 0;
5234 _ACEOF
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5238 #include <gmp.h>
5240 main ()
5243 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5244 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5245 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5246 choke me
5247 #endif
5250 return 0;
5252 _ACEOF
5253 if ac_fn_c_try_compile "$LINENO"; then :
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5255 $as_echo "yes" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5258 $as_echo "buggy but acceptable" >&6; }
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }; have_gmp=no
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 # If we have GMP, check the MPFR version.
5268 if test x"$have_gmp" = xyes; then
5269 # Check for the recommended and required versions of MPFR.
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5271 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <gmp.h>
5275 #include <mpfr.h>
5277 main ()
5280 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5281 choke me
5282 #endif
5285 return 0;
5287 _ACEOF
5288 if ac_fn_c_try_compile "$LINENO"; then :
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 #include <gmp.h>
5292 #include <mpfr.h>
5294 main ()
5297 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5298 choke me
5299 #endif
5302 return 0;
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5307 $as_echo "yes" >&6; }
5308 else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5310 $as_echo "buggy but acceptable" >&6; }
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }; have_gmp=no
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 # Check for the MPC header version.
5321 if test x"$have_gmp" = xyes ; then
5322 # Check for the recommended and required versions of MPC.
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5324 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 #include <mpc.h>
5329 main ()
5332 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5333 choke me
5334 #endif
5337 return 0;
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 #include <mpc.h>
5345 main ()
5348 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5349 choke me
5350 #endif
5353 return 0;
5355 _ACEOF
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5358 $as_echo "yes" >&6; }
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5361 $as_echo "buggy but acceptable" >&6; }
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }; have_gmp=no
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 # Now check the MPFR library.
5372 if test x"$have_gmp" = xyes; then
5373 saved_LIBS="$LIBS"
5374 LIBS="$LIBS $gmplibs"
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5376 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5379 #include <mpc.h>
5381 main ()
5384 mpfr_t n;
5385 mpfr_t x;
5386 mpc_t c;
5387 int t;
5388 mpfr_init (n);
5389 mpfr_init (x);
5390 mpfr_atan2 (n, n, x, GMP_RNDN);
5391 mpfr_erfc (n, x, GMP_RNDN);
5392 mpfr_subnormalize (x, t, GMP_RNDN);
5393 mpfr_clear(n);
5394 mpfr_clear(x);
5395 mpc_init2 (c, 53);
5396 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5397 mpc_cosh (c, c, MPC_RNDNN);
5398 mpc_pow (c, c, c, MPC_RNDNN);
5399 mpc_acosh (c, c, MPC_RNDNN);
5400 mpc_clear (c);
5403 return 0;
5405 _ACEOF
5406 if ac_fn_c_try_link "$LINENO"; then :
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5408 $as_echo "yes" >&6; }
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }; have_gmp=no
5413 rm -f core conftest.err conftest.$ac_objext \
5414 conftest$ac_exeext conftest.$ac_ext
5415 LIBS="$saved_LIBS"
5418 CFLAGS="$saved_CFLAGS"
5420 # The library versions listed in the error message below should match
5421 # the HARD-minimums enforced above.
5422 if test x$have_gmp != xyes; then
5423 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5424 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5425 their locations. Source code for these libraries can be found at
5426 their respective hosting sites as well as at
5427 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5428 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5429 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5430 make sure that you have installed both the libraries and the header
5431 files. They may be located in separate packages." "$LINENO" 5
5435 # Flags needed for both GMP, MPFR and/or MPC.
5442 # Allow host libstdc++ to be specified for static linking with PPL.
5444 # Check whether --with-host-libstdcxx was given.
5445 if test "${with_host_libstdcxx+set}" = set; then :
5446 withval=$with_host_libstdcxx;
5450 case $with_host_libstdcxx in
5451 no|yes)
5452 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5454 esac
5456 # Linker flags to use for stage1 or when not boostrapping.
5458 # Check whether --with-stage1-ldflags was given.
5459 if test "${with_stage1_ldflags+set}" = set; then :
5460 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5461 stage1_ldflags=
5462 else
5463 stage1_ldflags=$withval
5465 else
5466 stage1_ldflags=
5471 # Libraries to use for stage1 or when not bootstrapping.
5473 # Check whether --with-stage1-libs was given.
5474 if test "${with_stage1_libs+set}" = set; then :
5475 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5476 stage1_libs=
5477 else
5478 stage1_libs=$withval
5480 else
5481 stage1_libs=$with_host_libstdcxx
5486 # Libraries to use for stage2 and later builds. This defaults to the
5487 # argument passed to --with-host-libstdcxx.
5489 # Check whether --with-boot-libs was given.
5490 if test "${with_boot_libs+set}" = set; then :
5491 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5492 poststage1_libs=
5493 else
5494 poststage1_libs=$withval
5496 else
5497 poststage1_libs=$with_host_libstdcxx
5502 # Linker flags to use for stage2 and later builds.
5504 # Check whether --with-boot-ldflags was given.
5505 if test "${with_boot_ldflags+set}" = set; then :
5506 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5507 poststage1_ldflags=
5508 else
5509 poststage1_ldflags=$withval
5511 else
5512 poststage1_ldflags=
5513 # In stages 2 and 3, default to linking libstdc++ and libgcc
5514 # statically. But if the user explicitly specified the libraries to
5515 # use, trust that they are doing what they want.
5516 if test "$poststage1_libs" = ""; then
5517 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5523 # Check for PPL
5524 ppllibs=
5525 pplinc=
5526 pwllib=
5529 # Check whether --with-ppl was given.
5530 if test "${with_ppl+set}" = set; then :
5531 withval=$with_ppl;
5535 # Check whether --with-ppl-include was given.
5536 if test "${with_ppl_include+set}" = set; then :
5537 withval=$with_ppl_include;
5541 # Check whether --with-ppl-lib was given.
5542 if test "${with_ppl_lib+set}" = set; then :
5543 withval=$with_ppl_lib;
5547 # Check whether --enable-ppl-version-check was given.
5548 if test "${enable_ppl_version_check+set}" = set; then :
5549 enableval=$enable_ppl_version_check;
5553 case $with_ppl in
5554 yes | no | "")
5557 ppllibs="-L$with_ppl/lib"
5558 pplinc="-I$with_ppl/include $pplinc"
5559 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5560 with_ppl=yes
5561 else
5562 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5565 esac
5567 if test x"$with_ppl_include" != x; then
5568 pplinc="-I$with_ppl_include $pplinc"
5569 with_ppl=yes
5572 if test "x$with_ppl_lib" != x; then
5573 ppllibs="-L$with_ppl_lib"
5574 with_ppl=yes
5577 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5578 if test x"$enable_watchdog" = xyes; then
5579 pwllib="-lpwl"
5581 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5582 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5583 enable_ppl_version_check=no
5584 with_ppl=yes
5587 if test "x$with_ppl" != xno; then
5588 if test "x$pwllib" = x; then
5589 saved_LIBS="$LIBS"
5590 LIBS="$LIBS $ppllibs -lstdc++ -lm"
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5592 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5593 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 ac_check_lib_save_LIBS=$LIBS
5597 LIBS="-lpwl $LIBS"
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5601 /* Override any GCC internal prototype to avoid an error.
5602 Use char because int might match the return type of a GCC
5603 builtin and then its argument prototype would still apply. */
5604 #ifdef __cplusplus
5605 extern "C"
5606 #endif
5607 char PWL_handle_timeout ();
5609 main ()
5611 return PWL_handle_timeout ();
5613 return 0;
5615 _ACEOF
5616 if ac_fn_c_try_link "$LINENO"; then :
5617 ac_cv_lib_pwl_PWL_handle_timeout=yes
5618 else
5619 ac_cv_lib_pwl_PWL_handle_timeout=no
5621 rm -f core conftest.err conftest.$ac_objext \
5622 conftest$ac_exeext conftest.$ac_ext
5623 LIBS=$ac_check_lib_save_LIBS
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5626 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5627 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5628 pwllib="-lpwl"
5631 LIBS="$saved_LIBS"
5634 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5636 if test "$enable_ppl_version_check" != no; then
5637 saved_CFLAGS="$CFLAGS"
5638 CFLAGS="$CFLAGS $pplinc $gmpinc"
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5640 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 #include "ppl_c.h"
5645 main ()
5648 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5649 choke me
5650 #endif
5653 return 0;
5655 _ACEOF
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5658 $as_echo "yes" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 CFLAGS="$saved_CFLAGS"
5668 # Flags needed for PPL
5673 # Check for CLOOG
5677 # Check whether --with-cloog was given.
5678 if test "${with_cloog+set}" = set; then :
5679 withval=$with_cloog;
5683 # Check whether --with-cloog-include was given.
5684 if test "${with_cloog_include+set}" = set; then :
5685 withval=$with_cloog_include;
5689 # Check whether --with-cloog-lib was given.
5690 if test "${with_cloog_lib+set}" = set; then :
5691 withval=$with_cloog_lib;
5695 # Check whether --enable-cloog-backend was given.
5696 if test "${enable_cloog_backend+set}" = set; then :
5697 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5698 cloog_backend=isl
5699 elif test "x${enableval}" = "xppl"; then
5700 cloog_backend=ppl
5701 else
5702 cloog_backend=ppl-legacy
5704 else
5705 cloog_backend=ppl-legacy
5708 # Check whether --enable-cloog-version-check was given.
5709 if test "${enable_cloog_version_check+set}" = set; then :
5710 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5711 else
5712 ENABLE_CLOOG_CHECK=yes
5716 # Initialize clooglibs and clooginc.
5717 case $with_cloog in
5719 clooglibs=
5720 clooginc=
5722 "" | yes)
5725 clooglibs="-L$with_cloog/lib"
5726 clooginc="-I$with_cloog/include"
5728 esac
5729 if test "x${with_cloog_include}" != x ; then
5730 clooginc="-I$with_cloog_include"
5732 if test "x${with_cloog_lib}" != x; then
5733 clooglibs="-L$with_cloog_lib"
5740 if test "x$with_ppl" = "xno"; then
5744 if test "x${with_cloog}" = xno; then
5745 graphite_requested=no
5746 elif test "x${with_cloog}" != x \
5747 || test "x${with_cloog_include}" != x \
5748 || test "x${with_cloog_lib}" != x ; then
5749 graphite_requested=yes
5750 else
5751 graphite_requested=no
5755 if test "${graphite_requested}" = yes; then
5756 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5758 with_cloog=no
5760 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5761 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5762 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5763 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5765 if test "x$with_cloog" != "xno"; then
5769 _cloog_saved_CFLAGS=$CFLAGS
5770 _cloog_saved_CPPFLAGS=$CPPFLAGS
5771 _cloog_saved_LDFLAGS=$LDFLAGS
5772 _cloog_saved_LIBS=$LIBS
5774 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5776 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5777 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5778 LDFLAGS="${LDFLAGS} ${clooglibs}"
5780 case $cloog_backend in
5781 "ppl-legacy")
5782 CFLAGS="${CFLAGS} ${pplinc}"
5783 LDFLAGS="${LDFLAGS} ${ppllibs}"
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5785 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5786 if test "${gcc_cv_cloog_type+set}" = set; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 LIBS="-lcloog ${_cloog_saved_LIBS}"
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #include "cloog/cloog.h"
5794 main ()
5796 #ifndef CLOOG_PPL_BACKEND
5797 choke me
5798 #endif
5800 return 0;
5802 _ACEOF
5803 if ac_fn_c_try_link "$LINENO"; then :
5804 gcc_cv_cloog_type="PPL Legacy"
5805 else
5806 gcc_cv_cloog_type=no
5808 rm -f core conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5812 $as_echo "$gcc_cv_cloog_type" >&6; }
5814 "isl")
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5816 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5817 if test "${gcc_cv_cloog_type+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5823 #include "cloog/cloog.h"
5825 main ()
5827 cloog_version ()
5829 return 0;
5831 _ACEOF
5832 if ac_fn_c_try_link "$LINENO"; then :
5833 gcc_cv_cloog_type="ISL"
5834 else
5835 gcc_cv_cloog_type=no
5837 rm -f core conftest.err conftest.$ac_objext \
5838 conftest$ac_exeext conftest.$ac_ext
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5841 $as_echo "$gcc_cv_cloog_type" >&6; }
5843 "ppl")
5844 CFLAGS="${CFLAGS} ${pplinc}"
5845 LDFLAGS="${LDFLAGS} ${ppllibs}"
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5847 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5848 if test "${gcc_cv_cloog_type+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854 #include "cloog/cloog.h"
5855 #include "cloog/ppl/cloog.h"
5857 main ()
5859 cloog_version ()
5861 return 0;
5863 _ACEOF
5864 if ac_fn_c_try_link "$LINENO"; then :
5865 gcc_cv_cloog_type="PPL"
5866 else
5867 gcc_cv_cloog_type=no
5869 rm -f core conftest.err conftest.$ac_objext \
5870 conftest$ac_exeext conftest.$ac_ext
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5873 $as_echo "$gcc_cv_cloog_type" >&6; }
5876 gcc_cv_cloog_type=""
5877 esac
5879 case $gcc_cv_cloog_type in
5880 "PPL Legacy")
5881 clooginc="${clooginc}"
5882 clooglibs="${clooglibs} -lcloog"
5883 cloog_org=no
5885 "ISL")
5886 clooginc="${clooginc} ${_cloogorginc}"
5887 clooglibs="${clooglibs} -lcloog-isl -lisl"
5888 cloog_org=yes
5890 "PPL")
5891 clooginc="${clooginc} ${_cloogorginc}"
5892 clooglibs="${clooglibs} -lcloog-ppl"
5893 cloog_org=yes
5896 clooglibs=
5897 clooginc=
5898 cloog_org=
5900 esac
5902 LIBS=$_cloog_saved_LIBS
5903 CFLAGS=$_cloog_saved_CFLAGS
5904 CPPFLAGS=$_cloog_saved_CPPFLAGS
5905 LDFLAGS=$_cloog_saved_LDFLAGS
5911 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5912 _cloog_saved_CFLAGS=$CFLAGS
5913 _cloog_saved_LDFLAGS=$LDFLAGS
5915 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5916 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5918 if test "${cloog_org}" = yes ; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5920 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
5921 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 #include "cloog/cloog.h"
5928 main ()
5930 #if CLOOG_VERSION_MAJOR != 0 \
5931 || CLOOG_VERSION_MINOR != 16 \
5932 || CLOOG_VERSION_REVISION < 1
5933 choke me
5934 #endif
5936 return 0;
5938 _ACEOF
5939 if ac_fn_c_try_compile "$LINENO"; then :
5940 gcc_cv_cloog_ct_0_14_0=yes
5941 else
5942 gcc_cv_cloog_ct_0_14_0=no
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5947 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5948 elif test "${cloog_org}" = no ; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5950 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5951 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 #include "cloog/cloog.h"
5958 main ()
5960 #if CLOOG_VERSION_MAJOR != 0 \
5961 || CLOOG_VERSION_MINOR != 15 \
5962 || CLOOG_VERSION_REVISION < 5
5963 choke me
5964 #endif
5966 return 0;
5968 _ACEOF
5969 if ac_fn_c_try_compile "$LINENO"; then :
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972 #include "cloog/cloog.h"
5974 main ()
5976 #if CLOOG_VERSION_MAJOR != 0 \
5977 || CLOOG_VERSION_MINOR != 15 \
5978 || CLOOG_VERSION_REVISION < 9
5979 choke me
5980 #endif
5982 return 0;
5984 _ACEOF
5985 if ac_fn_c_try_compile "$LINENO"; then :
5986 gcc_cv_cloog_ct_0_15_5=yes
5987 else
5988 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 else
5992 gcc_cv_cloog_ct_0_15_5=no
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5997 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6000 CFLAGS=$_cloog_saved_CFLAGS
6001 LDFLAGS=$_cloog_saved_LDFLAGS
6010 if test "x${with_cloog}" = xno; then
6011 graphite_requested=no
6012 elif test "x${with_cloog}" != x \
6013 || test "x${with_cloog_include}" != x \
6014 || test "x${with_cloog_lib}" != x ; then
6015 graphite_requested=yes
6016 else
6017 graphite_requested=no
6022 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6023 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6024 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6025 clooglibs=
6026 clooginc=
6029 if test "${graphite_requested}" = yes \
6030 && test "x${clooglibs}" = x \
6031 && test "x${clooginc}" = x ; then
6033 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6039 # Check for LTO support.
6040 # Check whether --enable-lto was given.
6041 if test "${enable_lto+set}" = set; then :
6042 enableval=$enable_lto; enable_lto=$enableval
6043 else
6044 enable_lto=yes; default_enable_lto=yes
6051 target_elf=no
6052 case $target in
6053 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6054 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6055 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6056 target_elf=no
6059 target_elf=yes
6061 esac
6063 if test $target_elf = yes; then :
6064 # ELF platforms build the lto-plugin always.
6065 build_lto_plugin=yes
6067 else
6068 if test x"$default_enable_lto" = x"yes" ; then
6069 case $target in
6070 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6071 # On other non-ELF platforms, LTO has yet to be validated.
6072 *) enable_lto=no ;;
6073 esac
6074 else
6075 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6076 # It would also be nice to check the binutils support, but we don't
6077 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6078 # warn during gcc/ subconfigure; unless you're bootstrapping with
6079 # -flto it won't be needed until after installation anyway.
6080 case $target in
6081 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6082 *) if test x"$enable_lto" = x"yes"; then
6083 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6086 esac
6088 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6089 # Build it unless LTO was explicitly disabled.
6090 case $target in
6091 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6092 *) ;;
6093 esac
6099 # By default, C is the only stage 1 language.
6100 stage1_languages=,c,
6102 # Target libraries that we bootstrap.
6103 bootstrap_target_libs=,target-libgcc,
6105 # Figure out what language subdirectories are present.
6106 # Look if the user specified --enable-languages="..."; if not, use
6107 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6108 # go away some day.
6109 # NB: embedded tabs in this IF block -- do not untabify
6110 if test -d ${srcdir}/gcc; then
6111 if test x"${enable_languages+set}" != xset; then
6112 if test x"${LANGUAGES+set}" = xset; then
6113 enable_languages="${LANGUAGES}"
6114 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6115 else
6116 enable_languages=all
6118 else
6119 if test x"${enable_languages}" = x ||
6120 test x"${enable_languages}" = xyes;
6121 then
6122 echo configure.in: --enable-languages needs at least one language argument 1>&2
6123 exit 1
6126 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6128 # 'f95' is the old name for the 'fortran' language. We issue a warning
6129 # and make the substitution.
6130 case ,${enable_languages}, in
6131 *,f95,*)
6132 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6133 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6135 esac
6137 # First scan to see if an enabled language requires some other language.
6138 # We assume that a given config-lang.in will list all the language
6139 # front ends it requires, even if some are required indirectly.
6140 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6141 case ${lang_frag} in
6142 ..) ;;
6143 # The odd quoting in the next line works around
6144 # an apparent bug in bash 1.12 on linux.
6145 ${srcdir}/gcc/[*]/config-lang.in) ;;
6147 # From the config-lang.in, get $language, $lang_requires, and
6148 # $lang_requires_boot_languages.
6149 language=
6150 lang_requires=
6151 lang_requires_boot_languages=
6152 . ${lang_frag}
6153 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6154 case ,${enable_languages}, in
6155 *,$other,*) ;;
6156 *,all,*) ;;
6157 *,$language,*)
6158 echo " \`$other' language required by \`$language'; enabling" 1>&2
6159 enable_languages="${enable_languages},${other}"
6161 esac
6162 done
6163 for other in ${lang_requires_boot_languages} ; do
6164 if test "$other" != "c"; then
6165 case ,${enable_stage1_languages}, in
6166 *,$other,*) ;;
6167 *,all,*) ;;
6169 case ,${enable_languages}, in
6170 *,$language,*)
6171 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6172 enable_stage1_languages="$enable_stage1_languages,${other}"
6174 esac
6176 esac
6178 done
6180 esac
6181 done
6183 new_enable_languages=,c,
6185 # If LTO is enabled, add the LTO front end.
6186 extra_host_libiberty_configure_flags=
6187 if test "$enable_lto" = "yes" ; then
6188 case ,${enable_languages}, in
6189 *,lto,*) ;;
6190 *) enable_languages="${enable_languages},lto" ;;
6191 esac
6192 if test "${build_lto_plugin}" = "yes" ; then
6193 configdirs="$configdirs lto-plugin"
6194 extra_host_libiberty_configure_flags=--enable-shared
6199 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6200 potential_languages=,c,
6202 enabled_target_libs=
6203 disabled_target_libs=
6205 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6206 case ${lang_frag} in
6207 ..) ;;
6208 # The odd quoting in the next line works around
6209 # an apparent bug in bash 1.12 on linux.
6210 ${srcdir}/gcc/[*]/config-lang.in) ;;
6212 # From the config-lang.in, get $language, $target_libs,
6213 # $lang_dirs, $boot_language, and $build_by_default
6214 language=
6215 target_libs=
6216 lang_dirs=
6217 subdir_requires=
6218 boot_language=no
6219 build_by_default=yes
6220 . ${lang_frag}
6221 if test x${language} = x; then
6222 echo "${lang_frag} doesn't set \$language." 1>&2
6223 exit 1
6226 if test "$language" = "c++" \
6227 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6228 boot_language=yes
6231 case ,${enable_languages}, in
6232 *,${language},*)
6233 # Language was explicitly selected; include it.
6234 add_this_lang=yes
6236 *,all,*)
6237 # 'all' was selected, select it if it is a default language
6238 add_this_lang=${build_by_default}
6241 add_this_lang=no
6243 esac
6245 # Disable languages that need other directories if these aren't available.
6246 for i in $subdir_requires; do
6247 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6248 case ,${enable_languages}, in
6249 *,${language},*)
6250 # Specifically requested language; tell them.
6251 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6254 # Silently disable.
6255 add_this_lang=unsupported
6257 esac
6258 done
6260 # Disable Ada if no preexisting GNAT is available.
6261 case ,${enable_languages},:${language}:${have_gnat} in
6262 *,${language},*:ada:no)
6263 # Specifically requested language; tell them.
6264 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6266 *:ada:no)
6267 # Silently disable.
6268 add_this_lang=unsupported
6270 esac
6272 # Disable a language that is unsupported by the target.
6273 case " $unsupported_languages " in
6274 *" $language "*)
6275 add_this_lang=unsupported
6277 esac
6279 case $add_this_lang in
6280 unsupported)
6281 # Remove language-dependent dirs.
6282 disabled_target_libs="$disabled_target_libs $target_libs"
6283 noconfigdirs="$noconfigdirs $lang_dirs"
6286 # Remove language-dependent dirs; still show language as supported.
6287 disabled_target_libs="$disabled_target_libs $target_libs"
6288 noconfigdirs="$noconfigdirs $lang_dirs"
6289 potential_languages="${potential_languages}${language},"
6291 yes)
6292 new_enable_languages="${new_enable_languages}${language},"
6293 potential_languages="${potential_languages}${language},"
6294 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6295 enabled_target_libs="$enabled_target_libs $target_libs"
6296 case "${boot_language}:,$enable_stage1_languages," in
6297 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6298 # Add to (comma-separated) list of stage 1 languages.
6299 case ",$stage1_languages," in
6300 *,$language,* | ,yes, | ,all,) ;;
6301 *) stage1_languages="${stage1_languages}${language}," ;;
6302 esac
6303 # We need to bootstrap any supporting libraries.
6304 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6306 esac
6308 esac
6310 esac
6311 done
6313 # Add target libraries which are only needed for disabled languages
6314 # to noconfigdirs.
6315 if test -n "$disabled_target_libs"; then
6316 for dir in $disabled_target_libs; do
6317 case " $enabled_target_libs " in
6318 *" ${dir} "*) ;;
6319 *) noconfigdirs="$noconfigdirs $dir" ;;
6320 esac
6321 done
6324 # Check whether --enable-stage1-languages was given.
6325 if test "${enable_stage1_languages+set}" = set; then :
6326 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6327 ,no,|,,)
6328 # Set it to something that will have no effect in the loop below
6329 enable_stage1_languages=c ;;
6330 ,yes,)
6331 enable_stage1_languages=`echo $new_enable_languages | \
6332 sed -e "s/^,//" -e "s/,$//" ` ;;
6333 *,all,*)
6334 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6335 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6336 esac
6338 # Add "good" languages from enable_stage1_languages to stage1_languages,
6339 # while "bad" languages go in missing_languages. Leave no duplicates.
6340 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6341 case $potential_languages in
6342 *,$i,*)
6343 case $stage1_languages in
6344 *,$i,*) ;;
6345 *) stage1_languages="$stage1_languages$i," ;;
6346 esac ;;
6348 case $missing_languages in
6349 *,$i,*) ;;
6350 *) missing_languages="$missing_languages$i," ;;
6351 esac ;;
6352 esac
6353 done
6357 # Remove leading/trailing commas that were added for simplicity
6358 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6359 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6360 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6361 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6363 if test "x$missing_languages" != x; then
6364 as_fn_error "
6365 The following requested languages could not be built: ${missing_languages}
6366 Supported languages are: ${potential_languages}" "$LINENO" 5
6368 if test "x$new_enable_languages" != "x$enable_languages"; then
6369 echo The following languages will be built: ${new_enable_languages}
6370 enable_languages="$new_enable_languages"
6374 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6377 # Handle --disable-<component> generically.
6378 for dir in $configdirs $build_configdirs $target_configdirs ; do
6379 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6380 varname=`echo $dirname | sed -e s/+/_/g`
6381 if eval test x\${enable_${varname}} "=" xno ; then
6382 noconfigdirs="$noconfigdirs $dir"
6384 done
6386 # Check for Boehm's garbage collector
6387 # Check whether --enable-objc-gc was given.
6388 if test "${enable_objc_gc+set}" = set; then :
6389 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6390 *,objc,*:*:yes:*target-boehm-gc*)
6391 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6393 esac
6397 # Make sure we only build Boehm's garbage collector if required.
6398 case ,${enable_languages},:${enable_objc_gc} in
6399 *,objc,*:yes)
6400 # Keep target-boehm-gc if requested for Objective-C.
6403 # Otherwise remove target-boehm-gc depending on target-libjava.
6404 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6405 noconfigdirs="$noconfigdirs target-boehm-gc"
6408 esac
6411 # Check whether --with-upc-pts was given.
6412 if test "${with_upc_pts+set}" = set; then :
6413 withval=$with_upc_pts;
6414 case ,${enable_languages}, in
6415 *,upc,)
6416 case "$withval" in
6417 struct|packed)
6418 true
6421 as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
6423 esac
6426 as_fn_error "--with-upc-pts supplied, but UPC language not enabled" "$LINENO" 5
6428 esac
6433 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6434 # $build_configdirs and $target_configdirs.
6435 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6437 notsupp=""
6438 for dir in . $skipdirs $noconfigdirs ; do
6439 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6440 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6441 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6442 if test -r $srcdir/$dirname/configure ; then
6443 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6444 true
6445 else
6446 notsupp="$notsupp $dir"
6450 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6451 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6452 if test -r $srcdir/$dirname/configure ; then
6453 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6454 true
6455 else
6456 notsupp="$notsupp $dir"
6460 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6461 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6462 if test -r $srcdir/$dirname/configure ; then
6463 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6464 true
6465 else
6466 notsupp="$notsupp $dir"
6470 done
6472 # Sometimes the tools are distributed with libiberty but with no other
6473 # libraries. In that case, we don't want to build target-libiberty.
6474 # Don't let libgcc imply libiberty either.
6475 if test -n "${target_configdirs}" ; then
6476 libgcc=
6477 others=
6478 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6479 if test "$i" = "libgcc"; then
6480 libgcc=target-libgcc
6481 elif test "$i" != "libiberty" ; then
6482 if test -r $srcdir/$i/configure ; then
6483 others=yes;
6484 break;
6487 done
6488 if test -z "${others}" ; then
6489 target_configdirs=$libgcc
6493 # Quietly strip out all directories which aren't configurable in this tree.
6494 # This relies on all configurable subdirectories being autoconfiscated, which
6495 # is now the case.
6496 build_configdirs_all="$build_configdirs"
6497 build_configdirs=
6498 for i in ${build_configdirs_all} ; do
6499 j=`echo $i | sed -e s/build-//g`
6500 if test -f ${srcdir}/$j/configure ; then
6501 build_configdirs="${build_configdirs} $i"
6503 done
6505 configdirs_all="$configdirs"
6506 configdirs=
6507 for i in ${configdirs_all} ; do
6508 if test -f ${srcdir}/$i/configure ; then
6509 configdirs="${configdirs} $i"
6511 done
6513 target_configdirs_all="$target_configdirs"
6514 target_configdirs=
6515 for i in ${target_configdirs_all} ; do
6516 j=`echo $i | sed -e s/target-//g`
6517 if test -f ${srcdir}/$j/configure ; then
6518 target_configdirs="${target_configdirs} $i"
6520 done
6522 # Produce a warning message for the subdirs we can't configure.
6523 # This isn't especially interesting in the Cygnus tree, but in the individual
6524 # FSF releases, it's important to let people know when their machine isn't
6525 # supported by the one or two programs in a package.
6527 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6528 # If $appdirs is non-empty, at least one of those directories must still
6529 # be configured, or we error out. (E.g., if the gas release supports a
6530 # specified target in some subdirs but not the gas subdir, we shouldn't
6531 # pretend that all is well.)
6532 if test -n "$appdirs" ; then
6533 for dir in $appdirs ; do
6534 if test -r $dir/Makefile.in ; then
6535 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6536 appdirs=""
6537 break
6539 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6540 appdirs=""
6541 break
6544 done
6545 if test -n "$appdirs" ; then
6546 echo "*** This configuration is not supported by this package." 1>&2
6547 exit 1
6550 # Okay, some application will build, or we don't care to check. Still
6551 # notify of subdirs not getting built.
6552 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6553 echo " ${notsupp}" 1>&2
6554 echo " (Any other directories should still work fine.)" 1>&2
6557 case "$host" in
6558 *msdosdjgpp*)
6559 enable_gdbtk=no ;;
6560 esac
6562 # To find our prefix, in gcc_cv_tool_prefix.
6564 # The user is always right.
6565 if test "${PATH_SEPARATOR+set}" != set; then
6566 echo "#! /bin/sh" >conf$$.sh
6567 echo "exit 0" >>conf$$.sh
6568 chmod +x conf$$.sh
6569 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6570 PATH_SEPARATOR=';'
6571 else
6572 PATH_SEPARATOR=:
6574 rm -f conf$$.sh
6579 if test "x$exec_prefix" = xNONE; then
6580 if test "x$prefix" = xNONE; then
6581 gcc_cv_tool_prefix=$ac_default_prefix
6582 else
6583 gcc_cv_tool_prefix=$prefix
6585 else
6586 gcc_cv_tool_prefix=$exec_prefix
6589 # If there is no compiler in the tree, use the PATH only. In any
6590 # case, if there is no compiler in the tree nobody should use
6591 # AS_FOR_TARGET and LD_FOR_TARGET.
6592 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6593 gcc_version=`cat $srcdir/gcc/BASE-VER`
6594 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6595 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6596 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6597 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6598 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6599 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6600 else
6601 gcc_cv_tool_dirs=
6604 if test x$build = x$target && test -n "$md_exec_prefix"; then
6605 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6610 copy_dirs=
6613 # Check whether --with-build-sysroot was given.
6614 if test "${with_build_sysroot+set}" = set; then :
6615 withval=$with_build_sysroot; if test x"$withval" != x ; then
6616 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6618 else
6619 SYSROOT_CFLAGS_FOR_TARGET=
6625 # Check whether --with-debug-prefix-map was given.
6626 if test "${with_debug_prefix_map+set}" = set; then :
6627 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6628 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6629 for debug_map in $withval; do
6630 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6631 done
6633 else
6634 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6639 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6640 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6641 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6642 # We want to ensure that TARGET libraries (which we know are built with
6643 # gcc) are built with "-O2 -g", so include those options when setting
6644 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6645 if test "x$CFLAGS_FOR_TARGET" = x; then
6646 CFLAGS_FOR_TARGET=$CFLAGS
6647 case " $CFLAGS " in
6648 *" -O2 "*) ;;
6649 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6650 esac
6651 case " $CFLAGS " in
6652 *" -g "* | *" -g3 "*) ;;
6653 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6654 esac
6658 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6659 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6660 case " $CXXFLAGS " in
6661 *" -O2 "*) ;;
6662 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6663 esac
6664 case " $CXXFLAGS " in
6665 *" -g "* | *" -g3 "*) ;;
6666 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6667 esac
6673 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6674 # the named directory are copied to $(tooldir)/sys-include.
6675 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6676 if test x${is_cross_compiler} = xno ; then
6677 echo 1>&2 '***' --with-headers is only supported when cross compiling
6678 exit 1
6680 if test x"${with_headers}" != xyes ; then
6681 x=${gcc_cv_tool_prefix}
6682 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6686 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6687 # the name directories are copied to $(tooldir)/lib. Multiple directories
6688 # are permitted.
6689 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6690 if test x${is_cross_compiler} = xno ; then
6691 echo 1>&2 '***' --with-libs is only supported when cross compiling
6692 exit 1
6694 if test x"${with_libs}" != xyes ; then
6695 # Copy the libraries in reverse order, so that files in the first named
6696 # library override files in subsequent libraries.
6697 x=${gcc_cv_tool_prefix}
6698 for l in ${with_libs}; do
6699 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6700 done
6704 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6706 # This is done by determining whether or not the appropriate directory
6707 # is available, and by checking whether or not specific configurations
6708 # have requested that this magic not happen.
6710 # The command line options always override the explicit settings in
6711 # configure.in, and the settings in configure.in override this magic.
6713 # If the default for a toolchain is to use GNU as and ld, and you don't
6714 # want to do that, then you should use the --without-gnu-as and
6715 # --without-gnu-ld options for the configure script. Similarly, if
6716 # the default is to use the included zlib and you don't want to do that,
6717 # you should use the --with-system-zlib option for the configure script.
6719 if test x${use_gnu_as} = x &&
6720 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6721 with_gnu_as=yes
6722 extra_host_args="$extra_host_args --with-gnu-as"
6725 if test x${use_gnu_ld} = x &&
6726 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6727 with_gnu_ld=yes
6728 extra_host_args="$extra_host_args --with-gnu-ld"
6731 if test x${use_included_zlib} = x &&
6732 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6734 else
6735 with_system_zlib=yes
6736 extra_host_args="$extra_host_args --with-system-zlib"
6739 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6740 # can detect this case.
6742 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6743 with_newlib=yes
6744 extra_host_args="$extra_host_args --with-newlib"
6747 # Handle ${copy_dirs}
6748 set fnord ${copy_dirs}
6749 shift
6750 while test $# != 0 ; do
6751 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6753 else
6754 echo Copying $1 to $2
6756 # Use the install script to create the directory and all required
6757 # parent directories.
6758 if test -d $2 ; then
6760 else
6761 echo >config.temp
6762 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6765 # Copy the directory, assuming we have tar.
6766 # FIXME: Should we use B in the second tar? Not all systems support it.
6767 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6769 # It is the responsibility of the user to correctly adjust all
6770 # symlinks. If somebody can figure out how to handle them correctly
6771 # here, feel free to add the code.
6773 echo $1 > $2/COPIED
6775 shift; shift
6776 done
6778 # Determine a target-dependent exec_prefix that the installed
6779 # gcc will search in. Keep this list sorted by triplet, with
6780 # the *-*-osname triplets last.
6781 md_exec_prefix=
6782 case "${target}" in
6783 i[34567]86-pc-msdosdjgpp*)
6784 md_exec_prefix=/dev/env/DJDIR/bin
6786 *-*-hpux* | \
6787 *-*-nto-qnx* | \
6788 *-*-solaris2*)
6789 md_exec_prefix=/usr/ccs/bin
6791 esac
6793 extra_arflags_for_target=
6794 extra_nmflags_for_target=
6795 extra_ranlibflags_for_target=
6796 target_makefile_frag=/dev/null
6797 case "${target}" in
6798 spu-*-*)
6799 target_makefile_frag="config/mt-spu"
6801 mips*-sde-elf*)
6802 target_makefile_frag="config/mt-sde"
6804 mipsisa*-*-elfoabi*)
6805 target_makefile_frag="config/mt-mips-elfoabi"
6807 mips*-*-*linux* | mips*-*-gnu*)
6808 target_makefile_frag="config/mt-mips-gnu"
6810 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6811 target_makefile_frag="config/mt-gnu"
6813 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6814 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6815 # commands to handle both 32-bit and 64-bit objects. These flags are
6816 # harmless if we're using GNU nm or ar.
6817 extra_arflags_for_target=" -X32_64"
6818 extra_nmflags_for_target=" -B -X32_64"
6820 *-*-darwin[3-9]*)
6821 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6822 extra_ranlibflags_for_target=" -c"
6824 esac
6826 alphaieee_frag=/dev/null
6827 case $target in
6828 alpha*-*-*)
6829 # This just makes sure to use the -mieee option to build target libs.
6830 # This should probably be set individually by each library.
6831 alphaieee_frag="config/mt-alphaieee"
6833 esac
6835 # If --enable-target-optspace always use -Os instead of -O2 to build
6836 # the target libraries, similarly if it is not specified, use -Os
6837 # on selected platforms.
6838 ospace_frag=/dev/null
6839 case "${enable_target_optspace}:${target}" in
6840 yes:*)
6841 ospace_frag="config/mt-ospace"
6843 :d30v-*)
6844 ospace_frag="config/mt-d30v"
6846 :m32r-* | :d10v-* | :fr30-*)
6847 ospace_frag="config/mt-ospace"
6849 no:* | :*)
6852 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6854 esac
6856 # Default to using --with-stabs for certain targets.
6857 if test x${with_stabs} = x ; then
6858 case "${target}" in
6859 mips*-*-irix[56]*)
6861 mips*-*-* | alpha*-*-osf*)
6862 with_stabs=yes;
6863 extra_host_args="${extra_host_args} --with-stabs"
6865 esac
6868 # Some systems (e.g., one of the i386-aix systems the gas testers are
6869 # using) don't handle "\$" correctly, so don't use it here.
6870 tooldir='${exec_prefix}'/${target_noncanonical}
6871 build_tooldir=${tooldir}
6873 # Create a .gdbinit file which runs the one in srcdir
6874 # and tells GDB to look there for source files.
6876 if test -r ${srcdir}/.gdbinit ; then
6877 case ${srcdir} in
6878 .) ;;
6879 *) cat > ./.gdbinit <<EOF
6880 # ${NO_EDIT}
6881 dir ${srcdir}
6882 dir .
6883 source ${srcdir}/.gdbinit
6886 esac
6889 # Make sure that the compiler is able to generate an executable. If it
6890 # can't, we are probably in trouble. We don't care whether we can run the
6891 # executable--we might be using a cross compiler--we only care whether it
6892 # can be created. At this point the main configure script has set CC.
6893 we_are_ok=no
6894 echo "int main () { return 0; }" > conftest.c
6895 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6896 if test $? = 0 ; then
6897 if test -s conftest || test -s conftest.exe ; then
6898 we_are_ok=yes
6901 case $we_are_ok in
6903 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6904 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6905 rm -f conftest*
6906 exit 1
6908 esac
6909 rm -f conftest*
6911 # Decide which environment variable is used to find dynamic libraries.
6912 case "${host}" in
6913 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6914 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6915 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6916 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6917 esac
6919 # On systems where the dynamic library environment variable is PATH,
6920 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6921 # built executables to PATH.
6922 if test "$RPATH_ENVVAR" = PATH; then
6923 GCC_SHLIB_SUBDIR=/shlib
6924 else
6925 GCC_SHLIB_SUBDIR=
6928 # Record target_configdirs and the configure arguments for target and
6929 # build configuration in Makefile.
6930 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6931 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6933 # If we are building libgomp, bootstrap it.
6934 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6935 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6938 # Determine whether gdb needs tk/tcl or not.
6939 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6940 # and in that case we want gdb to be built without tk. Ugh!
6941 # In fact I believe gdb is the *only* package directly dependent on tk,
6942 # so we should be able to put the 'maybe's in unconditionally and
6943 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6944 # 100% sure that that's safe though.
6946 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6947 case "$enable_gdbtk" in
6949 GDB_TK="" ;;
6950 yes)
6951 GDB_TK="${gdb_tk}" ;;
6953 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6954 # distro. Eventually someone will fix this and move Insight, nee
6955 # gdbtk to a separate directory.
6956 if test -d ${srcdir}/gdb/gdbtk ; then
6957 GDB_TK="${gdb_tk}"
6958 else
6959 GDB_TK=""
6962 esac
6963 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6964 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6966 # Strip out unwanted targets.
6968 # While at that, we remove Makefiles if we were started for recursive
6969 # configuration, so that the top-level Makefile reconfigures them,
6970 # like we used to do when configure itself was recursive.
6972 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6973 # but now we're fixing up the Makefile ourselves with the additional
6974 # commands passed to AC_CONFIG_FILES. Use separate variables
6975 # extrasub-{build,host,target} not because there is any reason to split
6976 # the substitutions up that way, but only to remain below the limit of
6977 # 99 commands in a script, for HP-UX sed.
6978 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6980 # Check whether --enable-bootstrap was given.
6981 if test "${enable_bootstrap+set}" = set; then :
6982 enableval=$enable_bootstrap;
6983 else
6984 enable_bootstrap=default
6988 # Issue errors and warnings for invalid/strange bootstrap combinations.
6989 case "$configdirs" in
6990 *gcc*) have_compiler=yes ;;
6991 *) have_compiler=no ;;
6992 esac
6994 case "$have_compiler:$host:$target:$enable_bootstrap" in
6995 *:*:*:no) ;;
6997 # Default behavior. Enable bootstrap if we have a compiler
6998 # and we are in a native configuration.
6999 yes:$build:$build:default)
7000 enable_bootstrap=yes ;;
7002 *:*:*:default)
7003 enable_bootstrap=no ;;
7005 # We have a compiler and we are in a native configuration, bootstrap is ok
7006 yes:$build:$build:yes)
7009 # Other configurations, but we have a compiler. Assume the user knows
7010 # what he's doing.
7011 yes:*:*:yes)
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7013 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7016 # No compiler: if they passed --enable-bootstrap explicitly, fail
7017 no:*:*:yes)
7018 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7020 # Fail if wrong command line
7022 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7024 esac
7026 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7027 *,c++,*:yes:yes) ;;
7028 *:yes:yes)
7029 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7031 esac
7033 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7034 yes:yes:*\ gold\ *:*,c++,*) ;;
7035 yes:yes:*\ gold\ *:*)
7036 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7038 esac
7040 # Adjust the toplevel makefile according to whether bootstrap was selected.
7041 case $enable_bootstrap in
7042 yes)
7043 bootstrap_suffix=bootstrap
7044 BUILD_CONFIG=bootstrap-debug
7047 bootstrap_suffix=no-bootstrap
7048 BUILD_CONFIG=
7050 esac
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7053 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7056 # Check whether --with-build-config was given.
7057 if test "${with_build_config+set}" = set; then :
7058 withval=$with_build_config; case $with_build_config in
7059 yes) with_build_config= ;;
7060 no) with_build_config= BUILD_CONFIG= ;;
7061 esac
7065 if test "x${with_build_config}" != x; then
7066 BUILD_CONFIG=$with_build_config
7067 else
7068 case $BUILD_CONFIG in
7069 bootstrap-debug)
7070 if echo "int f (void) { return 0; }" > conftest.c &&
7071 ${CC} -c conftest.c &&
7072 mv conftest.o conftest.o.g0 &&
7073 ${CC} -c -g conftest.c &&
7074 mv conftest.o conftest.o.g &&
7075 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7077 else
7078 BUILD_CONFIG=
7080 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7082 esac
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7085 $as_echo "$BUILD_CONFIG" >&6; }
7088 extrasub_build=
7089 for module in ${build_configdirs} ; do
7090 if test -z "${no_recursion}" \
7091 && test -f ${build_subdir}/${module}/Makefile; then
7092 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7093 rm -f ${build_subdir}/${module}/Makefile
7095 extrasub_build="$extrasub_build
7096 /^@if build-$module\$/d
7097 /^@endif build-$module\$/d
7098 /^@if build-$module-$bootstrap_suffix\$/d
7099 /^@endif build-$module-$bootstrap_suffix\$/d"
7100 done
7101 extrasub_host=
7102 for module in ${configdirs} ; do
7103 if test -z "${no_recursion}"; then
7104 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7105 if test -f ${file}; then
7106 echo 1>&2 "*** removing ${file} to force reconfigure"
7107 rm -f ${file}
7109 done
7111 extrasub_host="$extrasub_host
7112 /^@if $module\$/d
7113 /^@endif $module\$/d
7114 /^@if $module-$bootstrap_suffix\$/d
7115 /^@endif $module-$bootstrap_suffix\$/d"
7116 done
7117 extrasub_target=
7118 for module in ${target_configdirs} ; do
7119 if test -z "${no_recursion}" \
7120 && test -f ${target_subdir}/${module}/Makefile; then
7121 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7122 rm -f ${target_subdir}/${module}/Makefile
7125 # We only bootstrap target libraries listed in bootstrap_target_libs.
7126 case $bootstrap_target_libs in
7127 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7128 *) target_bootstrap_suffix=no-bootstrap ;;
7129 esac
7131 extrasub_target="$extrasub_target
7132 /^@if target-$module\$/d
7133 /^@endif target-$module\$/d
7134 /^@if target-$module-$target_bootstrap_suffix\$/d
7135 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7136 done
7138 # Do the final fixup along with target modules.
7139 extrasub_target="$extrasub_target
7140 /^@if /,/^@endif /d"
7142 # Create the serialization dependencies. This uses a temporary file.
7144 # Check whether --enable-serial-configure was given.
7145 if test "${enable_serial_configure+set}" = set; then :
7146 enableval=$enable_serial_configure;
7150 case ${enable_serial_configure} in
7151 yes)
7152 enable_serial_build_configure=yes
7153 enable_serial_host_configure=yes
7154 enable_serial_target_configure=yes
7156 esac
7158 # These force 'configure's to be done one at a time, to avoid problems
7159 # with contention over a shared config.cache.
7160 rm -f serdep.tmp
7161 echo '# serdep.tmp' > serdep.tmp
7162 olditem=
7163 test "x${enable_serial_build_configure}" = xyes &&
7164 for item in ${build_configdirs} ; do
7165 case ${olditem} in
7166 "") ;;
7167 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7168 esac
7169 olditem=${item}
7170 done
7171 olditem=
7172 test "x${enable_serial_host_configure}" = xyes &&
7173 for item in ${configdirs} ; do
7174 case ${olditem} in
7175 "") ;;
7176 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7177 esac
7178 olditem=${item}
7179 done
7180 olditem=
7181 test "x${enable_serial_target_configure}" = xyes &&
7182 for item in ${target_configdirs} ; do
7183 case ${olditem} in
7184 "") ;;
7185 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7186 esac
7187 olditem=${item}
7188 done
7189 serialization_dependencies=serdep.tmp
7192 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7193 # target, nonopt, and variable assignments. These are the ones we
7194 # might not want to pass down to subconfigures. The exception being
7195 # --cache-file=/dev/null, which is used to turn off the use of cache
7196 # files altogether, and which should be passed on to subconfigures.
7197 # Also strip program-prefix, program-suffix, and program-transform-name,
7198 # so that we can pass down a consistent program-transform-name.
7199 baseargs=
7200 tbaseargs=
7201 keep_next=no
7202 skip_next=no
7203 eval "set -- $ac_configure_args"
7204 for ac_arg
7206 if test X"$skip_next" = X"yes"; then
7207 skip_next=no
7208 continue
7210 if test X"$keep_next" = X"yes"; then
7211 case $ac_arg in
7212 *\'*)
7213 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7214 esac
7215 baseargs="$baseargs '$ac_arg'"
7216 tbaseargs="$tbaseargs '$ac_arg'"
7217 keep_next=no
7218 continue
7221 # Handle separated arguments. Based on the logic generated by
7222 # autoconf 2.59.
7223 case $ac_arg in
7224 *=* | --config-cache | -C | -disable-* | --disable-* \
7225 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7226 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7227 | -with-* | --with-* | -without-* | --without-* | --x)
7228 separate_arg=no
7231 separate_arg=yes
7234 separate_arg=no
7236 esac
7238 skip_targ=no
7239 case $ac_arg in
7241 --with-* | --without-*)
7242 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7244 case $libopt in
7245 *[-_]include)
7246 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7248 *[-_]lib)
7249 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7252 lib=$libopt
7254 esac
7257 case $lib in
7258 mpc | mpfr | gmp | ppl | cloog)
7259 # If we're processing --with-$lib, --with-$lib-include or
7260 # --with-$lib-lib, for one of the libs above, and target is
7261 # different from host, don't pass the current argument to any
7262 # target library's configure.
7263 if test x$is_cross_compiler = xyes; then
7264 skip_targ=yes
7267 esac
7269 esac
7271 case "$ac_arg" in
7272 --cache-file=/dev/null | \
7273 -cache-file=/dev/null )
7274 # Handled here to avoid the test to skip args below.
7275 baseargs="$baseargs '$ac_arg'"
7276 tbaseargs="$tbaseargs '$ac_arg'"
7277 # Assert: $separate_arg should always be no.
7278 keep_next=$separate_arg
7280 --no*)
7281 continue
7283 --c* | \
7284 --sr* | \
7285 --ho* | \
7286 --bu* | \
7287 --t* | \
7288 --program-* | \
7289 -cache_file* | \
7290 -srcdir* | \
7291 -host* | \
7292 -build* | \
7293 -target* | \
7294 -program-prefix* | \
7295 -program-suffix* | \
7296 -program-transform-name* )
7297 skip_next=$separate_arg
7298 continue
7301 # An option. Add it.
7302 case $ac_arg in
7303 *\'*)
7304 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7305 esac
7306 baseargs="$baseargs '$ac_arg'"
7307 if test X"$skip_targ" = Xno; then
7308 tbaseargs="$tbaseargs '$ac_arg'"
7310 keep_next=$separate_arg
7313 # Either a variable assignment, or a nonopt (triplet). Don't
7314 # pass it down; let the Makefile handle this.
7315 continue
7317 esac
7318 done
7319 # Remove the initial space we just introduced and, as these will be
7320 # expanded by make, quote '$'.
7321 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7323 # Add in --program-transform-name, after --program-prefix and
7324 # --program-suffix have been applied to it. Autoconf has already
7325 # doubled dollar signs and backslashes in program_transform_name; we want
7326 # the backslashes un-doubled, and then the entire thing wrapped in single
7327 # quotes, because this will be expanded first by make and then by the shell.
7328 # Also, because we want to override the logic in subdir configure scripts to
7329 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7330 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7331 ${program_transform_name}
7332 EOF_SED
7333 gcc_transform_name=`cat conftestsed.out`
7334 rm -f conftestsed.out
7335 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7336 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7337 if test "$silent" = yes; then
7338 baseargs="$baseargs --silent"
7339 tbaseargs="$tbaseargs --silent"
7341 baseargs="$baseargs --disable-option-checking"
7342 tbaseargs="$tbaseargs --disable-option-checking"
7344 # Record and document user additions to sub configure arguments.
7349 # For the build-side libraries, we just need to pretend we're native,
7350 # and not use the same cache file. Multilibs are neither needed nor
7351 # desired.
7352 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7354 # For host modules, accept cache file option, or specification as blank.
7355 case "${cache_file}" in
7356 "") # empty
7357 cache_file_option="" ;;
7358 /* | [A-Za-z]:[\\/]* ) # absolute path
7359 cache_file_option="--cache-file=${cache_file}" ;;
7360 *) # relative path
7361 cache_file_option="--cache-file=../${cache_file}" ;;
7362 esac
7364 # Host dirs don't like to share a cache file either, horribly enough.
7365 # This seems to be due to autoconf 2.5x stupidity.
7366 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7368 target_configargs="$target_configargs ${tbaseargs}"
7370 # Passing a --with-cross-host argument lets the target libraries know
7371 # whether they are being built with a cross-compiler or being built
7372 # native. However, it would be better to use other mechanisms to make the
7373 # sorts of decisions they want to make on this basis. Please consider
7374 # this option to be deprecated. FIXME.
7375 if test x${is_cross_compiler} = xyes ; then
7376 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7379 # Default to --enable-multilib.
7380 if test x${enable_multilib} = x ; then
7381 target_configargs="--enable-multilib ${target_configargs}"
7384 # Pass --with-newlib if appropriate. Note that target_configdirs has
7385 # changed from the earlier setting of with_newlib.
7386 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7387 target_configargs="--with-newlib ${target_configargs}"
7390 # Different target subdirs use different values of certain variables
7391 # (notably CXX). Worse, multilibs use *lots* of different values.
7392 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7393 # it doesn't automatically accept command-line overrides of them.
7394 # This means it's not safe for target subdirs to share a cache file,
7395 # which is disgusting, but there you have it. Hopefully this can be
7396 # fixed in future. It's still worthwhile to use a cache file for each
7397 # directory. I think.
7399 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7400 # We need to pass --target, as newer autoconf's requires consistency
7401 # for target_alias and gcc doesn't manage it consistently.
7402 target_configargs="--cache-file=./config.cache ${target_configargs}"
7404 FLAGS_FOR_TARGET=
7405 case " $target_configdirs " in
7406 *" newlib "*)
7407 case " $target_configargs " in
7408 *" --with-newlib "*)
7409 case "$target" in
7410 *-cygwin*)
7411 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7413 esac
7415 # If we're not building GCC, don't discard standard headers.
7416 if test -d ${srcdir}/gcc; then
7417 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7419 if test "${build}" != "${host}"; then
7420 # On Canadian crosses, CC_FOR_TARGET will have already been set
7421 # by `configure', so we won't have an opportunity to add -Bgcc/
7422 # to it. This is right: we don't want to search that directory
7423 # for binaries, but we want the header files in there, so add
7424 # them explicitly.
7425 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7427 # Someone might think of using the pre-installed headers on
7428 # Canadian crosses, in case the installed compiler is not fully
7429 # compatible with the compiler being built. In this case, it
7430 # would be better to flag an error than risking having
7431 # incompatible object files being constructed. We can't
7432 # guarantee that an error will be flagged, but let's hope the
7433 # compiler will do it, when presented with incompatible header
7434 # files.
7438 case "${target}-${is_cross_compiler}" in
7439 i[3456789]86-*-linux*-no)
7440 # Here host == target, so we don't need to build gcc,
7441 # so we don't want to discard standard headers.
7442 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7445 # If we're building newlib, use its generic headers last, but search
7446 # for any libc-related directories first (so make it the last -B
7447 # switch).
7448 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7450 # If we're building libgloss, find the startup file, simulator library
7451 # and linker script.
7452 case " $target_configdirs " in
7453 *" libgloss "*)
7454 # Look for startup file, simulator library and maybe linker script.
7455 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7456 # Look for libnosys.a in case the target needs it.
7457 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7458 # Most targets have the linker script in the source directory.
7459 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7461 esac
7463 esac
7465 esac
7467 esac
7469 case "$target" in
7470 x86_64-*mingw* | *-w64-mingw*)
7471 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7472 # however, use a symlink named 'mingw' in ${prefix} .
7473 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7475 *-mingw*)
7476 # MinGW can't be handled as Cygwin above since it does not use newlib.
7477 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'
7479 esac
7481 # Allow the user to override the flags for
7482 # our build compiler if desired.
7483 if test x"${build}" = x"${host}" ; then
7484 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7485 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7486 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7489 # On Canadian crosses, we'll be searching the right directories for
7490 # the previously-installed cross compiler, so don't bother to add
7491 # flags for directories within the install tree of the compiler
7492 # being built; programs in there won't even run.
7493 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7494 # Search for pre-installed headers if nothing else fits.
7495 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7498 if test "x${use_gnu_ld}" = x &&
7499 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7500 # Arrange for us to find uninstalled linker scripts.
7501 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7504 # Search for other target-specific linker scripts and such.
7505 case "${target}" in
7506 mep*)
7507 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7509 esac
7511 # UPC linker script check
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7513 $as_echo_n "checking for UPC link script support... " >&6; }
7514 # Check whether --enable-upc-link-script was given.
7515 if test "${enable_upc_link_script+set}" = set; then :
7516 enableval=$enable_upc_link_script;
7517 case $enableval in
7518 yes | no) ;;
7520 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7522 esac
7524 else
7526 if test x${use_gnu_ld} != xno ; then
7527 case "$target" in
7528 # disable linker script for Apple Mac OS X
7529 *-*-darwin*)
7530 enable_upc_link_script=no
7533 enable_upc_link_script=yes
7535 esac
7536 else
7537 enable_upc_link_script=no
7539 if test "$enable_upc_link_script" = yes; then
7540 target_configargs="${target_configargs} --enable-upc-link-script"
7541 host_configargs="${host_configargs} --enable-upc-link-script"
7546 if test "$enable_upc_link_script" = yes; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7548 $as_echo "yes" >&6; };
7549 else
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; };
7555 # Makefile fragments.
7556 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7558 eval fragval=\$$frag
7559 if test $fragval != /dev/null; then
7560 eval $frag=${srcdir}/$fragval
7562 done
7568 # Miscellanea: directories, flags, etc.
7577 # Build module lists & subconfigure args.
7581 # Host module lists & subconfigure args.
7586 # Target module lists & subconfigure args.
7590 # Build tools.
7608 # Generate default definitions for YACC, M4, LEX and other programs that run
7609 # on the build machine. These are used if the Makefile can't locate these
7610 # programs in objdir.
7611 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7613 for ac_prog in 'bison -y' byacc yacc
7615 # Extract the first word of "$ac_prog", so it can be a program name with args.
7616 set dummy $ac_prog; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if test "${ac_cv_prog_YACC+set}" = set; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 if test -n "$YACC"; then
7623 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7624 else
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7632 ac_cv_prog_YACC="$ac_prog"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7636 done
7637 done
7638 IFS=$as_save_IFS
7642 YACC=$ac_cv_prog_YACC
7643 if test -n "$YACC"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7645 $as_echo "$YACC" >&6; }
7646 else
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7652 test -n "$YACC" && break
7653 done
7654 test -n "$YACC" || YACC="$MISSING bison -y"
7656 case " $build_configdirs " in
7657 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7658 esac
7660 for ac_prog in bison
7662 # Extract the first word of "$ac_prog", so it can be a program name with args.
7663 set dummy $ac_prog; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if test "${ac_cv_prog_BISON+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 if test -n "$BISON"; then
7670 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_prog_BISON="$ac_prog"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7683 done
7684 done
7685 IFS=$as_save_IFS
7689 BISON=$ac_cv_prog_BISON
7690 if test -n "$BISON"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7692 $as_echo "$BISON" >&6; }
7693 else
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7699 test -n "$BISON" && break
7700 done
7701 test -n "$BISON" || BISON="$MISSING bison"
7703 case " $build_configdirs " in
7704 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7705 esac
7707 for ac_prog in gm4 gnum4 m4
7709 # Extract the first word of "$ac_prog", so it can be a program name with args.
7710 set dummy $ac_prog; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_prog_M4+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 if test -n "$M4"; then
7717 ac_cv_prog_M4="$M4" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_prog_M4="$ac_prog"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7730 done
7731 done
7732 IFS=$as_save_IFS
7736 M4=$ac_cv_prog_M4
7737 if test -n "$M4"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7739 $as_echo "$M4" >&6; }
7740 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7746 test -n "$M4" && break
7747 done
7748 test -n "$M4" || M4="$MISSING m4"
7750 case " $build_configdirs " in
7751 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7752 esac
7754 for ac_prog in flex lex
7756 # Extract the first word of "$ac_prog", so it can be a program name with args.
7757 set dummy $ac_prog; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if test "${ac_cv_prog_LEX+set}" = set; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 if test -n "$LEX"; then
7764 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7773 ac_cv_prog_LEX="$ac_prog"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7777 done
7778 done
7779 IFS=$as_save_IFS
7783 LEX=$ac_cv_prog_LEX
7784 if test -n "$LEX"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7786 $as_echo "$LEX" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7793 test -n "$LEX" && break
7794 done
7795 test -n "$LEX" || LEX="$MISSING flex"
7797 case " $build_configdirs " in
7798 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7799 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7800 esac
7802 for ac_prog in flex
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_prog_FLEX+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 if test -n "$FLEX"; then
7812 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_prog_FLEX="$ac_prog"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7825 done
7826 done
7827 IFS=$as_save_IFS
7831 FLEX=$ac_cv_prog_FLEX
7832 if test -n "$FLEX"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7834 $as_echo "$FLEX" >&6; }
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7841 test -n "$FLEX" && break
7842 done
7843 test -n "$FLEX" || FLEX="$MISSING flex"
7845 case " $build_configdirs " in
7846 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7847 esac
7849 for ac_prog in makeinfo
7851 # Extract the first word of "$ac_prog", so it can be a program name with args.
7852 set dummy $ac_prog; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 if test -n "$MAKEINFO"; then
7859 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_prog_MAKEINFO="$ac_prog"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7872 done
7873 done
7874 IFS=$as_save_IFS
7878 MAKEINFO=$ac_cv_prog_MAKEINFO
7879 if test -n "$MAKEINFO"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7881 $as_echo "$MAKEINFO" >&6; }
7882 else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7888 test -n "$MAKEINFO" && break
7889 done
7890 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7892 case " $build_configdirs " in
7893 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7896 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7897 # higher, else we use the "missing" dummy.
7898 if ${MAKEINFO} --version \
7899 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7901 else
7902 MAKEINFO="$MISSING makeinfo"
7906 esac
7908 # FIXME: expect and dejagnu may become build tools?
7910 for ac_prog in expect
7912 # Extract the first word of "$ac_prog", so it can be a program name with args.
7913 set dummy $ac_prog; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$EXPECT"; then
7920 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_prog_EXPECT="$ac_prog"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7933 done
7934 done
7935 IFS=$as_save_IFS
7939 EXPECT=$ac_cv_prog_EXPECT
7940 if test -n "$EXPECT"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7942 $as_echo "$EXPECT" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7949 test -n "$EXPECT" && break
7950 done
7951 test -n "$EXPECT" || EXPECT="expect"
7953 case " $configdirs " in
7954 *" expect "*)
7955 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7957 esac
7959 for ac_prog in runtest
7961 # Extract the first word of "$ac_prog", so it can be a program name with args.
7962 set dummy $ac_prog; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -n "$RUNTEST"; then
7969 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_prog_RUNTEST="$ac_prog"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7982 done
7983 done
7984 IFS=$as_save_IFS
7988 RUNTEST=$ac_cv_prog_RUNTEST
7989 if test -n "$RUNTEST"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7991 $as_echo "$RUNTEST" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7998 test -n "$RUNTEST" && break
7999 done
8000 test -n "$RUNTEST" || RUNTEST="runtest"
8002 case " $configdirs " in
8003 *" dejagnu "*)
8004 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8006 esac
8009 # Host tools.
8010 ncn_tool_prefix=
8011 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8012 ncn_target_tool_prefix=
8013 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8017 if test -n "$AR"; then
8018 ac_cv_prog_AR=$AR
8019 elif test -n "$ac_cv_prog_AR"; then
8020 AR=$ac_cv_prog_AR
8023 if test -n "$ac_cv_prog_AR"; then
8024 for ncn_progname in ar; do
8025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8026 set dummy ${ncn_progname}; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if test "${ac_cv_prog_AR+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$AR"; then
8033 ac_cv_prog_AR="$AR" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8042 ac_cv_prog_AR="${ncn_progname}"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8046 done
8047 done
8048 IFS=$as_save_IFS
8052 AR=$ac_cv_prog_AR
8053 if test -n "$AR"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8055 $as_echo "$AR" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8062 done
8065 for ncn_progname in ar; do
8066 if test -n "$ncn_tool_prefix"; then
8067 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8068 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 $as_echo_n "checking for $ac_word... " >&6; }
8071 if test "${ac_cv_prog_AR+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 if test -n "$AR"; then
8075 ac_cv_prog_AR="$AR" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8084 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8088 done
8089 done
8090 IFS=$as_save_IFS
8094 AR=$ac_cv_prog_AR
8095 if test -n "$AR"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8097 $as_echo "$AR" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8105 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8107 set dummy ${ncn_progname}; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if test "${ac_cv_prog_AR+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 if test -n "$AR"; then
8114 ac_cv_prog_AR="$AR" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123 ac_cv_prog_AR="${ncn_progname}"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 break 2
8127 done
8128 done
8129 IFS=$as_save_IFS
8133 AR=$ac_cv_prog_AR
8134 if test -n "$AR"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8136 $as_echo "$AR" >&6; }
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8144 test -n "$ac_cv_prog_AR" && break
8145 done
8147 if test -z "$ac_cv_prog_AR" ; then
8148 set dummy ar
8149 if test $build = $host ; then
8150 AR="$2"
8151 else
8152 AR="${ncn_tool_prefix}$2"
8158 if test -n "$AS"; then
8159 ac_cv_prog_AS=$AS
8160 elif test -n "$ac_cv_prog_AS"; then
8161 AS=$ac_cv_prog_AS
8164 if test -n "$ac_cv_prog_AS"; then
8165 for ncn_progname in as; do
8166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8167 set dummy ${ncn_progname}; ac_word=$2
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if test "${ac_cv_prog_AS+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 if test -n "$AS"; then
8174 ac_cv_prog_AS="$AS" # Let the user override the test.
8175 else
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8179 IFS=$as_save_IFS
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8183 ac_cv_prog_AS="${ncn_progname}"
8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8185 break 2
8187 done
8188 done
8189 IFS=$as_save_IFS
8193 AS=$ac_cv_prog_AS
8194 if test -n "$AS"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8196 $as_echo "$AS" >&6; }
8197 else
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8203 done
8206 for ncn_progname in as; do
8207 if test -n "$ncn_tool_prefix"; then
8208 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8209 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211 $as_echo_n "checking for $ac_word... " >&6; }
8212 if test "${ac_cv_prog_AS+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 if test -n "$AS"; then
8216 ac_cv_prog_AS="$AS" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8225 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 break 2
8229 done
8230 done
8231 IFS=$as_save_IFS
8235 AS=$ac_cv_prog_AS
8236 if test -n "$AS"; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8238 $as_echo "$AS" >&6; }
8239 else
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }
8246 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8248 set dummy ${ncn_progname}; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_AS+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$AS"; then
8255 ac_cv_prog_AS="$AS" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_AS="${ncn_progname}"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8268 done
8269 done
8270 IFS=$as_save_IFS
8274 AS=$ac_cv_prog_AS
8275 if test -n "$AS"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8277 $as_echo "$AS" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8285 test -n "$ac_cv_prog_AS" && break
8286 done
8288 if test -z "$ac_cv_prog_AS" ; then
8289 set dummy as
8290 if test $build = $host ; then
8291 AS="$2"
8292 else
8293 AS="${ncn_tool_prefix}$2"
8299 if test -n "$DLLTOOL"; then
8300 ac_cv_prog_DLLTOOL=$DLLTOOL
8301 elif test -n "$ac_cv_prog_DLLTOOL"; then
8302 DLLTOOL=$ac_cv_prog_DLLTOOL
8305 if test -n "$ac_cv_prog_DLLTOOL"; then
8306 for ncn_progname in dlltool; do
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308 set dummy ${ncn_progname}; ac_word=$2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 $as_echo_n "checking for $ac_word... " >&6; }
8311 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 if test -n "$DLLTOOL"; then
8315 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8324 ac_cv_prog_DLLTOOL="${ncn_progname}"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8328 done
8329 done
8330 IFS=$as_save_IFS
8334 DLLTOOL=$ac_cv_prog_DLLTOOL
8335 if test -n "$DLLTOOL"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8337 $as_echo "$DLLTOOL" >&6; }
8338 else
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8344 done
8347 for ncn_progname in dlltool; do
8348 if test -n "$ncn_tool_prefix"; then
8349 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8350 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 if test -n "$DLLTOOL"; then
8357 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8366 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8370 done
8371 done
8372 IFS=$as_save_IFS
8376 DLLTOOL=$ac_cv_prog_DLLTOOL
8377 if test -n "$DLLTOOL"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8379 $as_echo "$DLLTOOL" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8387 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8389 set dummy ${ncn_progname}; ac_word=$2
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 if test -n "$DLLTOOL"; then
8396 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8397 else
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 for as_dir in $PATH
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_prog_DLLTOOL="${ncn_progname}"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8409 done
8410 done
8411 IFS=$as_save_IFS
8415 DLLTOOL=$ac_cv_prog_DLLTOOL
8416 if test -n "$DLLTOOL"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8418 $as_echo "$DLLTOOL" >&6; }
8419 else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8426 test -n "$ac_cv_prog_DLLTOOL" && break
8427 done
8429 if test -z "$ac_cv_prog_DLLTOOL" ; then
8430 set dummy dlltool
8431 if test $build = $host ; then
8432 DLLTOOL="$2"
8433 else
8434 DLLTOOL="${ncn_tool_prefix}$2"
8440 if test -n "$LD"; then
8441 ac_cv_prog_LD=$LD
8442 elif test -n "$ac_cv_prog_LD"; then
8443 LD=$ac_cv_prog_LD
8446 if test -n "$ac_cv_prog_LD"; then
8447 for ncn_progname in ld; do
8448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8449 set dummy ${ncn_progname}; ac_word=$2
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451 $as_echo_n "checking for $ac_word... " >&6; }
8452 if test "${ac_cv_prog_LD+set}" = set; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 if test -n "$LD"; then
8456 ac_cv_prog_LD="$LD" # Let the user override the test.
8457 else
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8465 ac_cv_prog_LD="${ncn_progname}"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8469 done
8470 done
8471 IFS=$as_save_IFS
8475 LD=$ac_cv_prog_LD
8476 if test -n "$LD"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8478 $as_echo "$LD" >&6; }
8479 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8485 done
8488 for ncn_progname in ld; do
8489 if test -n "$ncn_tool_prefix"; then
8490 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8491 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if test "${ac_cv_prog_LD+set}" = set; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 if test -n "$LD"; then
8498 ac_cv_prog_LD="$LD" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8507 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8511 done
8512 done
8513 IFS=$as_save_IFS
8517 LD=$ac_cv_prog_LD
8518 if test -n "$LD"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8520 $as_echo "$LD" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8528 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8530 set dummy ${ncn_progname}; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if test "${ac_cv_prog_LD+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 if test -n "$LD"; then
8537 ac_cv_prog_LD="$LD" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8546 ac_cv_prog_LD="${ncn_progname}"
8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8550 done
8551 done
8552 IFS=$as_save_IFS
8556 LD=$ac_cv_prog_LD
8557 if test -n "$LD"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8559 $as_echo "$LD" >&6; }
8560 else
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8567 test -n "$ac_cv_prog_LD" && break
8568 done
8570 if test -z "$ac_cv_prog_LD" ; then
8571 set dummy ld
8572 if test $build = $host ; then
8573 LD="$2"
8574 else
8575 LD="${ncn_tool_prefix}$2"
8581 if test -n "$LIPO"; then
8582 ac_cv_prog_LIPO=$LIPO
8583 elif test -n "$ac_cv_prog_LIPO"; then
8584 LIPO=$ac_cv_prog_LIPO
8587 if test -n "$ac_cv_prog_LIPO"; then
8588 for ncn_progname in lipo; do
8589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8590 set dummy ${ncn_progname}; ac_word=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if test "${ac_cv_prog_LIPO+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 if test -n "$LIPO"; then
8597 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8598 else
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 for as_dir in $PATH
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8606 ac_cv_prog_LIPO="${ncn_progname}"
8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 break 2
8610 done
8611 done
8612 IFS=$as_save_IFS
8616 LIPO=$ac_cv_prog_LIPO
8617 if test -n "$LIPO"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8619 $as_echo "$LIPO" >&6; }
8620 else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8626 done
8629 for ncn_progname in lipo; do
8630 if test -n "$ncn_tool_prefix"; then
8631 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8632 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634 $as_echo_n "checking for $ac_word... " >&6; }
8635 if test "${ac_cv_prog_LIPO+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 if test -n "$LIPO"; then
8639 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8640 else
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8648 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 break 2
8652 done
8653 done
8654 IFS=$as_save_IFS
8658 LIPO=$ac_cv_prog_LIPO
8659 if test -n "$LIPO"; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8661 $as_echo "$LIPO" >&6; }
8662 else
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 $as_echo "no" >&6; }
8669 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8671 set dummy ${ncn_progname}; ac_word=$2
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 $as_echo_n "checking for $ac_word... " >&6; }
8674 if test "${ac_cv_prog_LIPO+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 if test -n "$LIPO"; then
8678 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8679 else
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 for as_dir in $PATH
8683 IFS=$as_save_IFS
8684 test -z "$as_dir" && as_dir=.
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8687 ac_cv_prog_LIPO="${ncn_progname}"
8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8689 break 2
8691 done
8692 done
8693 IFS=$as_save_IFS
8697 LIPO=$ac_cv_prog_LIPO
8698 if test -n "$LIPO"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8700 $as_echo "$LIPO" >&6; }
8701 else
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8708 test -n "$ac_cv_prog_LIPO" && break
8709 done
8711 if test -z "$ac_cv_prog_LIPO" ; then
8712 set dummy lipo
8713 if test $build = $host ; then
8714 LIPO="$2"
8715 else
8716 LIPO="${ncn_tool_prefix}$2"
8722 if test -n "$NM"; then
8723 ac_cv_prog_NM=$NM
8724 elif test -n "$ac_cv_prog_NM"; then
8725 NM=$ac_cv_prog_NM
8728 if test -n "$ac_cv_prog_NM"; then
8729 for ncn_progname in nm; do
8730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8731 set dummy ${ncn_progname}; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if test "${ac_cv_prog_NM+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 if test -n "$NM"; then
8738 ac_cv_prog_NM="$NM" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8747 ac_cv_prog_NM="${ncn_progname}"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 break 2
8751 done
8752 done
8753 IFS=$as_save_IFS
8757 NM=$ac_cv_prog_NM
8758 if test -n "$NM"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8760 $as_echo "$NM" >&6; }
8761 else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8767 done
8770 for ncn_progname in nm; do
8771 if test -n "$ncn_tool_prefix"; then
8772 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8773 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if test "${ac_cv_prog_NM+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 if test -n "$NM"; then
8780 ac_cv_prog_NM="$NM" # Let the user override the test.
8781 else
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in $PATH
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8789 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8793 done
8794 done
8795 IFS=$as_save_IFS
8799 NM=$ac_cv_prog_NM
8800 if test -n "$NM"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8802 $as_echo "$NM" >&6; }
8803 else
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8810 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8812 set dummy ${ncn_progname}; ac_word=$2
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 $as_echo_n "checking for $ac_word... " >&6; }
8815 if test "${ac_cv_prog_NM+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 if test -n "$NM"; then
8819 ac_cv_prog_NM="$NM" # Let the user override the test.
8820 else
8821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 for as_dir in $PATH
8824 IFS=$as_save_IFS
8825 test -z "$as_dir" && as_dir=.
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8828 ac_cv_prog_NM="${ncn_progname}"
8829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8830 break 2
8832 done
8833 done
8834 IFS=$as_save_IFS
8838 NM=$ac_cv_prog_NM
8839 if test -n "$NM"; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8841 $as_echo "$NM" >&6; }
8842 else
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844 $as_echo "no" >&6; }
8849 test -n "$ac_cv_prog_NM" && break
8850 done
8852 if test -z "$ac_cv_prog_NM" ; then
8853 set dummy nm
8854 if test $build = $host ; then
8855 NM="$2"
8856 else
8857 NM="${ncn_tool_prefix}$2"
8863 if test -n "$RANLIB"; then
8864 ac_cv_prog_RANLIB=$RANLIB
8865 elif test -n "$ac_cv_prog_RANLIB"; then
8866 RANLIB=$ac_cv_prog_RANLIB
8869 if test -n "$ac_cv_prog_RANLIB"; then
8870 for ncn_progname in ranlib; do
8871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8872 set dummy ${ncn_progname}; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 if test -n "$RANLIB"; then
8879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8880 else
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_prog_RANLIB="${ncn_progname}"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8892 done
8893 done
8894 IFS=$as_save_IFS
8898 RANLIB=$ac_cv_prog_RANLIB
8899 if test -n "$RANLIB"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8901 $as_echo "$RANLIB" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8908 done
8911 for ncn_progname in ranlib; do
8912 if test -n "$ncn_tool_prefix"; then
8913 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8914 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916 $as_echo_n "checking for $ac_word... " >&6; }
8917 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 if test -n "$RANLIB"; then
8921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8922 else
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8930 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8932 break 2
8934 done
8935 done
8936 IFS=$as_save_IFS
8940 RANLIB=$ac_cv_prog_RANLIB
8941 if test -n "$RANLIB"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8943 $as_echo "$RANLIB" >&6; }
8944 else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8951 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8953 set dummy ${ncn_progname}; ac_word=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 if test -n "$RANLIB"; then
8960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8961 else
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 for as_dir in $PATH
8965 IFS=$as_save_IFS
8966 test -z "$as_dir" && as_dir=.
8967 for ac_exec_ext in '' $ac_executable_extensions; do
8968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8969 ac_cv_prog_RANLIB="${ncn_progname}"
8970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8971 break 2
8973 done
8974 done
8975 IFS=$as_save_IFS
8979 RANLIB=$ac_cv_prog_RANLIB
8980 if test -n "$RANLIB"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8982 $as_echo "$RANLIB" >&6; }
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8990 test -n "$ac_cv_prog_RANLIB" && break
8991 done
8993 if test -z "$ac_cv_prog_RANLIB" ; then
8994 RANLIB="true"
8999 if test -n "$STRIP"; then
9000 ac_cv_prog_STRIP=$STRIP
9001 elif test -n "$ac_cv_prog_STRIP"; then
9002 STRIP=$ac_cv_prog_STRIP
9005 if test -n "$ac_cv_prog_STRIP"; then
9006 for ncn_progname in strip; do
9007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9008 set dummy ${ncn_progname}; ac_word=$2
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010 $as_echo_n "checking for $ac_word... " >&6; }
9011 if test "${ac_cv_prog_STRIP+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 if test -n "$STRIP"; then
9015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9016 else
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9020 IFS=$as_save_IFS
9021 test -z "$as_dir" && as_dir=.
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024 ac_cv_prog_STRIP="${ncn_progname}"
9025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 break 2
9028 done
9029 done
9030 IFS=$as_save_IFS
9034 STRIP=$ac_cv_prog_STRIP
9035 if test -n "$STRIP"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9037 $as_echo "$STRIP" >&6; }
9038 else
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9044 done
9047 for ncn_progname in strip; do
9048 if test -n "$ncn_tool_prefix"; then
9049 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9050 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052 $as_echo_n "checking for $ac_word... " >&6; }
9053 if test "${ac_cv_prog_STRIP+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 if test -n "$STRIP"; then
9057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9058 else
9059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060 for as_dir in $PATH
9062 IFS=$as_save_IFS
9063 test -z "$as_dir" && as_dir=.
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9066 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9068 break 2
9070 done
9071 done
9072 IFS=$as_save_IFS
9076 STRIP=$ac_cv_prog_STRIP
9077 if test -n "$STRIP"; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9079 $as_echo "$STRIP" >&6; }
9080 else
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 $as_echo "no" >&6; }
9087 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9089 set dummy ${ncn_progname}; ac_word=$2
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091 $as_echo_n "checking for $ac_word... " >&6; }
9092 if test "${ac_cv_prog_STRIP+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9094 else
9095 if test -n "$STRIP"; then
9096 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9097 else
9098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099 for as_dir in $PATH
9101 IFS=$as_save_IFS
9102 test -z "$as_dir" && as_dir=.
9103 for ac_exec_ext in '' $ac_executable_extensions; do
9104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9105 ac_cv_prog_STRIP="${ncn_progname}"
9106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107 break 2
9109 done
9110 done
9111 IFS=$as_save_IFS
9115 STRIP=$ac_cv_prog_STRIP
9116 if test -n "$STRIP"; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9118 $as_echo "$STRIP" >&6; }
9119 else
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121 $as_echo "no" >&6; }
9126 test -n "$ac_cv_prog_STRIP" && break
9127 done
9129 if test -z "$ac_cv_prog_STRIP" ; then
9130 STRIP="true"
9135 if test -n "$WINDRES"; then
9136 ac_cv_prog_WINDRES=$WINDRES
9137 elif test -n "$ac_cv_prog_WINDRES"; then
9138 WINDRES=$ac_cv_prog_WINDRES
9141 if test -n "$ac_cv_prog_WINDRES"; then
9142 for ncn_progname in windres; do
9143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9144 set dummy ${ncn_progname}; ac_word=$2
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9146 $as_echo_n "checking for $ac_word... " >&6; }
9147 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 if test -n "$WINDRES"; then
9151 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9152 else
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in $PATH
9156 IFS=$as_save_IFS
9157 test -z "$as_dir" && as_dir=.
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9160 ac_cv_prog_WINDRES="${ncn_progname}"
9161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9162 break 2
9164 done
9165 done
9166 IFS=$as_save_IFS
9170 WINDRES=$ac_cv_prog_WINDRES
9171 if test -n "$WINDRES"; then
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9173 $as_echo "$WINDRES" >&6; }
9174 else
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176 $as_echo "no" >&6; }
9180 done
9183 for ncn_progname in windres; do
9184 if test -n "$ncn_tool_prefix"; then
9185 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9186 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 $as_echo_n "checking for $ac_word... " >&6; }
9189 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9190 $as_echo_n "(cached) " >&6
9191 else
9192 if test -n "$WINDRES"; then
9193 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9194 else
9195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196 for as_dir in $PATH
9198 IFS=$as_save_IFS
9199 test -z "$as_dir" && as_dir=.
9200 for ac_exec_ext in '' $ac_executable_extensions; do
9201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9202 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9204 break 2
9206 done
9207 done
9208 IFS=$as_save_IFS
9212 WINDRES=$ac_cv_prog_WINDRES
9213 if test -n "$WINDRES"; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9215 $as_echo "$WINDRES" >&6; }
9216 else
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218 $as_echo "no" >&6; }
9223 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9225 set dummy ${ncn_progname}; ac_word=$2
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227 $as_echo_n "checking for $ac_word... " >&6; }
9228 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 if test -n "$WINDRES"; then
9232 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9233 else
9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9241 ac_cv_prog_WINDRES="${ncn_progname}"
9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 break 2
9245 done
9246 done
9247 IFS=$as_save_IFS
9251 WINDRES=$ac_cv_prog_WINDRES
9252 if test -n "$WINDRES"; then
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9254 $as_echo "$WINDRES" >&6; }
9255 else
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257 $as_echo "no" >&6; }
9262 test -n "$ac_cv_prog_WINDRES" && break
9263 done
9265 if test -z "$ac_cv_prog_WINDRES" ; then
9266 set dummy windres
9267 if test $build = $host ; then
9268 WINDRES="$2"
9269 else
9270 WINDRES="${ncn_tool_prefix}$2"
9276 if test -n "$WINDMC"; then
9277 ac_cv_prog_WINDMC=$WINDMC
9278 elif test -n "$ac_cv_prog_WINDMC"; then
9279 WINDMC=$ac_cv_prog_WINDMC
9282 if test -n "$ac_cv_prog_WINDMC"; then
9283 for ncn_progname in windmc; do
9284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9285 set dummy ${ncn_progname}; ac_word=$2
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287 $as_echo_n "checking for $ac_word... " >&6; }
9288 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9289 $as_echo_n "(cached) " >&6
9290 else
9291 if test -n "$WINDMC"; then
9292 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9293 else
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 for as_dir in $PATH
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9301 ac_cv_prog_WINDMC="${ncn_progname}"
9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 break 2
9305 done
9306 done
9307 IFS=$as_save_IFS
9311 WINDMC=$ac_cv_prog_WINDMC
9312 if test -n "$WINDMC"; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9314 $as_echo "$WINDMC" >&6; }
9315 else
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9321 done
9324 for ncn_progname in windmc; do
9325 if test -n "$ncn_tool_prefix"; then
9326 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9327 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329 $as_echo_n "checking for $ac_word... " >&6; }
9330 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 if test -n "$WINDMC"; then
9334 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9335 else
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9343 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 break 2
9347 done
9348 done
9349 IFS=$as_save_IFS
9353 WINDMC=$ac_cv_prog_WINDMC
9354 if test -n "$WINDMC"; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9356 $as_echo "$WINDMC" >&6; }
9357 else
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359 $as_echo "no" >&6; }
9364 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9366 set dummy ${ncn_progname}; ac_word=$2
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9368 $as_echo_n "checking for $ac_word... " >&6; }
9369 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 if test -n "$WINDMC"; then
9373 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9374 else
9375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9376 for as_dir in $PATH
9378 IFS=$as_save_IFS
9379 test -z "$as_dir" && as_dir=.
9380 for ac_exec_ext in '' $ac_executable_extensions; do
9381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9382 ac_cv_prog_WINDMC="${ncn_progname}"
9383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9384 break 2
9386 done
9387 done
9388 IFS=$as_save_IFS
9392 WINDMC=$ac_cv_prog_WINDMC
9393 if test -n "$WINDMC"; then
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9395 $as_echo "$WINDMC" >&6; }
9396 else
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9398 $as_echo "no" >&6; }
9403 test -n "$ac_cv_prog_WINDMC" && break
9404 done
9406 if test -z "$ac_cv_prog_WINDMC" ; then
9407 set dummy windmc
9408 if test $build = $host ; then
9409 WINDMC="$2"
9410 else
9411 WINDMC="${ncn_tool_prefix}$2"
9417 if test -n "$OBJCOPY"; then
9418 ac_cv_prog_OBJCOPY=$OBJCOPY
9419 elif test -n "$ac_cv_prog_OBJCOPY"; then
9420 OBJCOPY=$ac_cv_prog_OBJCOPY
9423 if test -n "$ac_cv_prog_OBJCOPY"; then
9424 for ncn_progname in objcopy; do
9425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9426 set dummy ${ncn_progname}; ac_word=$2
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428 $as_echo_n "checking for $ac_word... " >&6; }
9429 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 if test -n "$OBJCOPY"; then
9433 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9434 else
9435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436 for as_dir in $PATH
9438 IFS=$as_save_IFS
9439 test -z "$as_dir" && as_dir=.
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9442 ac_cv_prog_OBJCOPY="${ncn_progname}"
9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9444 break 2
9446 done
9447 done
9448 IFS=$as_save_IFS
9452 OBJCOPY=$ac_cv_prog_OBJCOPY
9453 if test -n "$OBJCOPY"; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9455 $as_echo "$OBJCOPY" >&6; }
9456 else
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 $as_echo "no" >&6; }
9462 done
9465 for ncn_progname in objcopy; do
9466 if test -n "$ncn_tool_prefix"; then
9467 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9468 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470 $as_echo_n "checking for $ac_word... " >&6; }
9471 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 if test -n "$OBJCOPY"; then
9475 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9476 else
9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 for as_dir in $PATH
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9484 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 break 2
9488 done
9489 done
9490 IFS=$as_save_IFS
9494 OBJCOPY=$ac_cv_prog_OBJCOPY
9495 if test -n "$OBJCOPY"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9497 $as_echo "$OBJCOPY" >&6; }
9498 else
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9505 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9507 set dummy ${ncn_progname}; ac_word=$2
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 if test -n "$OBJCOPY"; then
9514 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9515 else
9516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $PATH
9519 IFS=$as_save_IFS
9520 test -z "$as_dir" && as_dir=.
9521 for ac_exec_ext in '' $ac_executable_extensions; do
9522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9523 ac_cv_prog_OBJCOPY="${ncn_progname}"
9524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9525 break 2
9527 done
9528 done
9529 IFS=$as_save_IFS
9533 OBJCOPY=$ac_cv_prog_OBJCOPY
9534 if test -n "$OBJCOPY"; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9536 $as_echo "$OBJCOPY" >&6; }
9537 else
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9539 $as_echo "no" >&6; }
9544 test -n "$ac_cv_prog_OBJCOPY" && break
9545 done
9547 if test -z "$ac_cv_prog_OBJCOPY" ; then
9548 set dummy objcopy
9549 if test $build = $host ; then
9550 OBJCOPY="$2"
9551 else
9552 OBJCOPY="${ncn_tool_prefix}$2"
9558 if test -n "$OBJDUMP"; then
9559 ac_cv_prog_OBJDUMP=$OBJDUMP
9560 elif test -n "$ac_cv_prog_OBJDUMP"; then
9561 OBJDUMP=$ac_cv_prog_OBJDUMP
9564 if test -n "$ac_cv_prog_OBJDUMP"; then
9565 for ncn_progname in objdump; do
9566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9567 set dummy ${ncn_progname}; ac_word=$2
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 $as_echo_n "checking for $ac_word... " >&6; }
9570 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 if test -n "$OBJDUMP"; then
9574 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9575 else
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 for as_dir in $PATH
9579 IFS=$as_save_IFS
9580 test -z "$as_dir" && as_dir=.
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9583 ac_cv_prog_OBJDUMP="${ncn_progname}"
9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9585 break 2
9587 done
9588 done
9589 IFS=$as_save_IFS
9593 OBJDUMP=$ac_cv_prog_OBJDUMP
9594 if test -n "$OBJDUMP"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9596 $as_echo "$OBJDUMP" >&6; }
9597 else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9603 done
9606 for ncn_progname in objdump; do
9607 if test -n "$ncn_tool_prefix"; then
9608 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9609 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611 $as_echo_n "checking for $ac_word... " >&6; }
9612 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 if test -n "$OBJDUMP"; then
9616 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9617 else
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 for as_dir in $PATH
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9627 break 2
9629 done
9630 done
9631 IFS=$as_save_IFS
9635 OBJDUMP=$ac_cv_prog_OBJDUMP
9636 if test -n "$OBJDUMP"; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9638 $as_echo "$OBJDUMP" >&6; }
9639 else
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641 $as_echo "no" >&6; }
9646 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9648 set dummy ${ncn_progname}; ac_word=$2
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650 $as_echo_n "checking for $ac_word... " >&6; }
9651 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 if test -n "$OBJDUMP"; then
9655 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9656 else
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in $PATH
9660 IFS=$as_save_IFS
9661 test -z "$as_dir" && as_dir=.
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9664 ac_cv_prog_OBJDUMP="${ncn_progname}"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 break 2
9668 done
9669 done
9670 IFS=$as_save_IFS
9674 OBJDUMP=$ac_cv_prog_OBJDUMP
9675 if test -n "$OBJDUMP"; then
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9677 $as_echo "$OBJDUMP" >&6; }
9678 else
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; }
9685 test -n "$ac_cv_prog_OBJDUMP" && break
9686 done
9688 if test -z "$ac_cv_prog_OBJDUMP" ; then
9689 set dummy objdump
9690 if test $build = $host ; then
9691 OBJDUMP="$2"
9692 else
9693 OBJDUMP="${ncn_tool_prefix}$2"
9702 # Target tools.
9704 # Check whether --with-build-time-tools was given.
9705 if test "${with_build_time_tools+set}" = set; then :
9706 withval=$with_build_time_tools; case x"$withval" in
9707 x/*) ;;
9709 with_build_time_tools=
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9711 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9713 esac
9714 else
9715 with_build_time_tools=
9721 if test -n "$CC_FOR_TARGET"; then
9722 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9723 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9724 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9727 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9728 for ncn_progname in cc gcc; do
9729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9730 set dummy ${ncn_progname}; ac_word=$2
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732 $as_echo_n "checking for $ac_word... " >&6; }
9733 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9734 $as_echo_n "(cached) " >&6
9735 else
9736 if test -n "$CC_FOR_TARGET"; then
9737 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9738 else
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740 for as_dir in $PATH
9742 IFS=$as_save_IFS
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9746 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9748 break 2
9750 done
9751 done
9752 IFS=$as_save_IFS
9756 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9757 if test -n "$CC_FOR_TARGET"; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9759 $as_echo "$CC_FOR_TARGET" >&6; }
9760 else
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 $as_echo "no" >&6; }
9766 done
9769 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9770 for ncn_progname in cc gcc; do
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9772 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9773 if test -x $with_build_time_tools/${ncn_progname}; then
9774 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9776 $as_echo "yes" >&6; }
9777 break
9778 else
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780 $as_echo "no" >&6; }
9782 done
9785 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9786 for ncn_progname in cc gcc; do
9787 if test -n "$ncn_target_tool_prefix"; then
9788 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9789 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 $as_echo_n "checking for $ac_word... " >&6; }
9792 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 if test -n "$CC_FOR_TARGET"; then
9796 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9797 else
9798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799 for as_dir in $PATH
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9805 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 break 2
9809 done
9810 done
9811 IFS=$as_save_IFS
9815 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9816 if test -n "$CC_FOR_TARGET"; then
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9818 $as_echo "$CC_FOR_TARGET" >&6; }
9819 else
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821 $as_echo "no" >&6; }
9826 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9828 set dummy ${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_CC_FOR_TARGET+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 if test -n "$CC_FOR_TARGET"; then
9835 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # 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_CC_FOR_TARGET="${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 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9855 if test -n "$CC_FOR_TARGET"; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9857 $as_echo "$CC_FOR_TARGET" >&6; }
9858 else
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 $as_echo "no" >&6; }
9865 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9866 done
9869 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9870 set dummy cc gcc
9871 if test $build = $target ; then
9872 CC_FOR_TARGET="$2"
9873 else
9874 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9876 else
9877 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9882 if test -n "$CXX_FOR_TARGET"; then
9883 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9884 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9885 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9888 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9889 for ncn_progname in c++ g++ cxx gxx; do
9890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9891 set dummy ${ncn_progname}; ac_word=$2
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 $as_echo_n "checking for $ac_word... " >&6; }
9894 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 if test -n "$CXX_FOR_TARGET"; then
9898 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9899 else
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 for as_dir in $PATH
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9907 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 break 2
9911 done
9912 done
9913 IFS=$as_save_IFS
9917 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9918 if test -n "$CXX_FOR_TARGET"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9920 $as_echo "$CXX_FOR_TARGET" >&6; }
9921 else
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9927 done
9930 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9931 for ncn_progname in c++ g++ cxx gxx; do
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9933 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9934 if test -x $with_build_time_tools/${ncn_progname}; then
9935 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9937 $as_echo "yes" >&6; }
9938 break
9939 else
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941 $as_echo "no" >&6; }
9943 done
9946 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9947 for ncn_progname in c++ g++ cxx gxx; do
9948 if test -n "$ncn_target_tool_prefix"; then
9949 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9950 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9952 $as_echo_n "checking for $ac_word... " >&6; }
9953 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 if test -n "$CXX_FOR_TARGET"; then
9957 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9958 else
9959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960 for as_dir in $PATH
9962 IFS=$as_save_IFS
9963 test -z "$as_dir" && as_dir=.
9964 for ac_exec_ext in '' $ac_executable_extensions; do
9965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9966 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9968 break 2
9970 done
9971 done
9972 IFS=$as_save_IFS
9976 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9977 if test -n "$CXX_FOR_TARGET"; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9979 $as_echo "$CXX_FOR_TARGET" >&6; }
9980 else
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982 $as_echo "no" >&6; }
9987 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9989 set dummy ${ncn_progname}; ac_word=$2
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991 $as_echo_n "checking for $ac_word... " >&6; }
9992 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9993 $as_echo_n "(cached) " >&6
9994 else
9995 if test -n "$CXX_FOR_TARGET"; then
9996 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9997 else
9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999 for as_dir in $PATH
10001 IFS=$as_save_IFS
10002 test -z "$as_dir" && as_dir=.
10003 for ac_exec_ext in '' $ac_executable_extensions; do
10004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10005 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10007 break 2
10009 done
10010 done
10011 IFS=$as_save_IFS
10015 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10016 if test -n "$CXX_FOR_TARGET"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10018 $as_echo "$CXX_FOR_TARGET" >&6; }
10019 else
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10026 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10027 done
10030 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10031 set dummy c++ g++ cxx gxx
10032 if test $build = $target ; then
10033 CXX_FOR_TARGET="$2"
10034 else
10035 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10037 else
10038 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10043 if test -n "$GCC_FOR_TARGET"; then
10044 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10045 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10046 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10049 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10050 for ncn_progname in gcc; do
10051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10052 set dummy ${ncn_progname}; ac_word=$2
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10054 $as_echo_n "checking for $ac_word... " >&6; }
10055 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10056 $as_echo_n "(cached) " >&6
10057 else
10058 if test -n "$GCC_FOR_TARGET"; then
10059 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10060 else
10061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062 for as_dir in $PATH
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10068 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 break 2
10072 done
10073 done
10074 IFS=$as_save_IFS
10078 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10079 if test -n "$GCC_FOR_TARGET"; then
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10081 $as_echo "$GCC_FOR_TARGET" >&6; }
10082 else
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10084 $as_echo "no" >&6; }
10088 done
10091 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10092 for ncn_progname in gcc; do
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10094 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10095 if test -x $with_build_time_tools/${ncn_progname}; then
10096 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10098 $as_echo "yes" >&6; }
10099 break
10100 else
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10102 $as_echo "no" >&6; }
10104 done
10107 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10108 for ncn_progname in gcc; do
10109 if test -n "$ncn_target_tool_prefix"; then
10110 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10111 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10113 $as_echo_n "checking for $ac_word... " >&6; }
10114 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10115 $as_echo_n "(cached) " >&6
10116 else
10117 if test -n "$GCC_FOR_TARGET"; then
10118 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10119 else
10120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121 for as_dir in $PATH
10123 IFS=$as_save_IFS
10124 test -z "$as_dir" && as_dir=.
10125 for ac_exec_ext in '' $ac_executable_extensions; do
10126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10127 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10129 break 2
10131 done
10132 done
10133 IFS=$as_save_IFS
10137 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10138 if test -n "$GCC_FOR_TARGET"; then
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10140 $as_echo "$GCC_FOR_TARGET" >&6; }
10141 else
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143 $as_echo "no" >&6; }
10148 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10150 set dummy ${ncn_progname}; ac_word=$2
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152 $as_echo_n "checking for $ac_word... " >&6; }
10153 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 if test -n "$GCC_FOR_TARGET"; then
10157 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10158 else
10159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160 for as_dir in $PATH
10162 IFS=$as_save_IFS
10163 test -z "$as_dir" && as_dir=.
10164 for ac_exec_ext in '' $ac_executable_extensions; do
10165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10166 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10168 break 2
10170 done
10171 done
10172 IFS=$as_save_IFS
10176 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10177 if test -n "$GCC_FOR_TARGET"; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10179 $as_echo "$GCC_FOR_TARGET" >&6; }
10180 else
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182 $as_echo "no" >&6; }
10187 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10188 done
10191 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10192 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10193 else
10194 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10199 if test -n "$GCJ_FOR_TARGET"; then
10200 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10201 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10202 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10205 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10206 for ncn_progname in gcj; do
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_GCJ_FOR_TARGET+set}" = set; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 if test -n "$GCJ_FOR_TARGET"; then
10215 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_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_GCJ_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 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10235 if test -n "$GCJ_FOR_TARGET"; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10237 $as_echo "$GCJ_FOR_TARGET" >&6; }
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10244 done
10247 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10248 for ncn_progname in gcj; do
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10250 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10251 if test -x $with_build_time_tools/${ncn_progname}; then
10252 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10254 $as_echo "yes" >&6; }
10255 break
10256 else
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10260 done
10263 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10264 for ncn_progname in gcj; do
10265 if test -n "$ncn_target_tool_prefix"; then
10266 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10267 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 if test -n "$GCJ_FOR_TARGET"; then
10274 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10275 else
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10283 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 break 2
10287 done
10288 done
10289 IFS=$as_save_IFS
10293 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10294 if test -n "$GCJ_FOR_TARGET"; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10296 $as_echo "$GCJ_FOR_TARGET" >&6; }
10297 else
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10304 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10306 set dummy ${ncn_progname}; ac_word=$2
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308 $as_echo_n "checking for $ac_word... " >&6; }
10309 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 if test -n "$GCJ_FOR_TARGET"; then
10313 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10314 else
10315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316 for as_dir in $PATH
10318 IFS=$as_save_IFS
10319 test -z "$as_dir" && as_dir=.
10320 for ac_exec_ext in '' $ac_executable_extensions; do
10321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10322 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10324 break 2
10326 done
10327 done
10328 IFS=$as_save_IFS
10332 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10333 if test -n "$GCJ_FOR_TARGET"; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10335 $as_echo "$GCJ_FOR_TARGET" >&6; }
10336 else
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338 $as_echo "no" >&6; }
10343 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10344 done
10347 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10348 set dummy gcj
10349 if test $build = $target ; then
10350 GCJ_FOR_TARGET="$2"
10351 else
10352 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10354 else
10355 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10360 if test -n "$GFORTRAN_FOR_TARGET"; then
10361 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10362 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10363 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10366 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10367 for ncn_progname in gfortran; do
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_GFORTRAN_FOR_TARGET+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 if test -n "$GFORTRAN_FOR_TARGET"; then
10376 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_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_GFORTRAN_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 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10396 if test -n "$GFORTRAN_FOR_TARGET"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10398 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10399 else
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401 $as_echo "no" >&6; }
10405 done
10408 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10409 for ncn_progname in gfortran; do
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10411 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10412 if test -x $with_build_time_tools/${ncn_progname}; then
10413 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10415 $as_echo "yes" >&6; }
10416 break
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10421 done
10424 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10425 for ncn_progname in gfortran; do
10426 if test -n "$ncn_target_tool_prefix"; then
10427 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10428 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 if test -n "$GFORTRAN_FOR_TARGET"; then
10435 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10436 else
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10444 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446 break 2
10448 done
10449 done
10450 IFS=$as_save_IFS
10454 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10455 if test -n "$GFORTRAN_FOR_TARGET"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10457 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10458 else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10465 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10467 set dummy ${ncn_progname}; ac_word=$2
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469 $as_echo_n "checking for $ac_word... " >&6; }
10470 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 if test -n "$GFORTRAN_FOR_TARGET"; then
10474 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10475 else
10476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477 for as_dir in $PATH
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
10481 for ac_exec_ext in '' $ac_executable_extensions; do
10482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10483 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 break 2
10487 done
10488 done
10489 IFS=$as_save_IFS
10493 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10494 if test -n "$GFORTRAN_FOR_TARGET"; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10496 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10497 else
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499 $as_echo "no" >&6; }
10504 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10505 done
10508 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10509 set dummy gfortran
10510 if test $build = $target ; then
10511 GFORTRAN_FOR_TARGET="$2"
10512 else
10513 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10515 else
10516 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10521 if test -n "$GOC_FOR_TARGET"; then
10522 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10523 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10524 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10527 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10528 for ncn_progname in gccgo; do
10529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10530 set dummy ${ncn_progname}; ac_word=$2
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532 $as_echo_n "checking for $ac_word... " >&6; }
10533 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 if test -n "$GOC_FOR_TARGET"; then
10537 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10538 else
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10546 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 break 2
10550 done
10551 done
10552 IFS=$as_save_IFS
10556 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10557 if test -n "$GOC_FOR_TARGET"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10559 $as_echo "$GOC_FOR_TARGET" >&6; }
10560 else
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10566 done
10569 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10570 for ncn_progname in gccgo; do
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10572 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10573 if test -x $with_build_time_tools/${ncn_progname}; then
10574 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10576 $as_echo "yes" >&6; }
10577 break
10578 else
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; }
10582 done
10585 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10586 for ncn_progname in gccgo; do
10587 if test -n "$ncn_target_tool_prefix"; then
10588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10589 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10591 $as_echo_n "checking for $ac_word... " >&6; }
10592 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 if test -n "$GOC_FOR_TARGET"; then
10596 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10597 else
10598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599 for as_dir in $PATH
10601 IFS=$as_save_IFS
10602 test -z "$as_dir" && as_dir=.
10603 for ac_exec_ext in '' $ac_executable_extensions; do
10604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10605 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10607 break 2
10609 done
10610 done
10611 IFS=$as_save_IFS
10615 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10616 if test -n "$GOC_FOR_TARGET"; then
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10618 $as_echo "$GOC_FOR_TARGET" >&6; }
10619 else
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621 $as_echo "no" >&6; }
10626 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10628 set dummy ${ncn_progname}; ac_word=$2
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10630 $as_echo_n "checking for $ac_word... " >&6; }
10631 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10632 $as_echo_n "(cached) " >&6
10633 else
10634 if test -n "$GOC_FOR_TARGET"; then
10635 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10636 else
10637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10640 IFS=$as_save_IFS
10641 test -z "$as_dir" && as_dir=.
10642 for ac_exec_ext in '' $ac_executable_extensions; do
10643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10644 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10646 break 2
10648 done
10649 done
10650 IFS=$as_save_IFS
10654 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10655 if test -n "$GOC_FOR_TARGET"; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10657 $as_echo "$GOC_FOR_TARGET" >&6; }
10658 else
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; }
10665 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10666 done
10669 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10670 set dummy gccgo
10671 if test $build = $target ; then
10672 GOC_FOR_TARGET="$2"
10673 else
10674 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10676 else
10677 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10682 cat > conftest.c << \EOF
10683 #ifdef __GNUC__
10684 gcc_yay;
10685 #endif
10687 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10688 have_gcc_for_target=yes
10689 else
10690 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10691 have_gcc_for_target=no
10693 rm conftest.c
10698 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10699 if test -n "$with_build_time_tools"; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10701 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10702 if test -x $with_build_time_tools/ar; then
10703 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10704 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10706 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10707 else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709 $as_echo "no" >&6; }
10711 elif test $build != $host && test $have_gcc_for_target = yes; then
10712 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10713 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10714 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10717 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10718 # Extract the first word of "ar", so it can be a program name with args.
10719 set dummy ar; ac_word=$2
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10721 $as_echo_n "checking for $ac_word... " >&6; }
10722 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10723 $as_echo_n "(cached) " >&6
10724 else
10725 case $AR_FOR_TARGET in
10726 [\\/]* | ?:[\\/]*)
10727 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731 for as_dir in $gcc_cv_tool_dirs
10733 IFS=$as_save_IFS
10734 test -z "$as_dir" && as_dir=.
10735 for ac_exec_ext in '' $ac_executable_extensions; do
10736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10737 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10739 break 2
10741 done
10742 done
10743 IFS=$as_save_IFS
10746 esac
10748 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10749 if test -n "$AR_FOR_TARGET"; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10751 $as_echo "$AR_FOR_TARGET" >&6; }
10752 else
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754 $as_echo "no" >&6; }
10759 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10762 if test -n "$AR_FOR_TARGET"; then
10763 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10764 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10765 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10768 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10769 for ncn_progname in ar; do
10770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10771 set dummy ${ncn_progname}; ac_word=$2
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10773 $as_echo_n "checking for $ac_word... " >&6; }
10774 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10775 $as_echo_n "(cached) " >&6
10776 else
10777 if test -n "$AR_FOR_TARGET"; then
10778 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10779 else
10780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781 for as_dir in $PATH
10783 IFS=$as_save_IFS
10784 test -z "$as_dir" && as_dir=.
10785 for ac_exec_ext in '' $ac_executable_extensions; do
10786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10787 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10789 break 2
10791 done
10792 done
10793 IFS=$as_save_IFS
10797 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10798 if test -n "$AR_FOR_TARGET"; then
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10800 $as_echo "$AR_FOR_TARGET" >&6; }
10801 else
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803 $as_echo "no" >&6; }
10807 done
10810 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10811 for ncn_progname in ar; do
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10813 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10814 if test -x $with_build_time_tools/${ncn_progname}; then
10815 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10817 $as_echo "yes" >&6; }
10818 break
10819 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10823 done
10826 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10827 for ncn_progname in ar; do
10828 if test -n "$ncn_target_tool_prefix"; then
10829 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10830 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10832 $as_echo_n "checking for $ac_word... " >&6; }
10833 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10834 $as_echo_n "(cached) " >&6
10835 else
10836 if test -n "$AR_FOR_TARGET"; then
10837 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10838 else
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $PATH
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10846 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10850 done
10851 done
10852 IFS=$as_save_IFS
10856 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10857 if test -n "$AR_FOR_TARGET"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10859 $as_echo "$AR_FOR_TARGET" >&6; }
10860 else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10867 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10869 set dummy ${ncn_progname}; ac_word=$2
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871 $as_echo_n "checking for $ac_word... " >&6; }
10872 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10873 $as_echo_n "(cached) " >&6
10874 else
10875 if test -n "$AR_FOR_TARGET"; then
10876 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10877 else
10878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879 for as_dir in $PATH
10881 IFS=$as_save_IFS
10882 test -z "$as_dir" && as_dir=.
10883 for ac_exec_ext in '' $ac_executable_extensions; do
10884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10885 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 break 2
10889 done
10890 done
10891 IFS=$as_save_IFS
10895 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10896 if test -n "$AR_FOR_TARGET"; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10898 $as_echo "$AR_FOR_TARGET" >&6; }
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10906 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10907 done
10910 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10911 set dummy ar
10912 if test $build = $target ; then
10913 AR_FOR_TARGET="$2"
10914 else
10915 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10917 else
10918 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10921 else
10922 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10928 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10929 if test -n "$with_build_time_tools"; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10931 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10932 if test -x $with_build_time_tools/as; then
10933 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10934 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10936 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939 $as_echo "no" >&6; }
10941 elif test $build != $host && test $have_gcc_for_target = yes; then
10942 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10943 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10944 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10947 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10948 # Extract the first word of "as", so it can be a program name with args.
10949 set dummy as; ac_word=$2
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10951 $as_echo_n "checking for $ac_word... " >&6; }
10952 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 case $AS_FOR_TARGET in
10956 [\\/]* | ?:[\\/]*)
10957 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10961 for as_dir in $gcc_cv_tool_dirs
10963 IFS=$as_save_IFS
10964 test -z "$as_dir" && as_dir=.
10965 for ac_exec_ext in '' $ac_executable_extensions; do
10966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10967 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 break 2
10971 done
10972 done
10973 IFS=$as_save_IFS
10976 esac
10978 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10979 if test -n "$AS_FOR_TARGET"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10981 $as_echo "$AS_FOR_TARGET" >&6; }
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 $as_echo "no" >&6; }
10989 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10992 if test -n "$AS_FOR_TARGET"; then
10993 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10994 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10995 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10998 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10999 for ncn_progname in as; do
11000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11001 set dummy ${ncn_progname}; ac_word=$2
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003 $as_echo_n "checking for $ac_word... " >&6; }
11004 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007 if test -n "$AS_FOR_TARGET"; then
11008 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11009 else
11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011 for as_dir in $PATH
11013 IFS=$as_save_IFS
11014 test -z "$as_dir" && as_dir=.
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11017 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11019 break 2
11021 done
11022 done
11023 IFS=$as_save_IFS
11027 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11028 if test -n "$AS_FOR_TARGET"; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11030 $as_echo "$AS_FOR_TARGET" >&6; }
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11037 done
11040 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11041 for ncn_progname in as; do
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11043 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11044 if test -x $with_build_time_tools/${ncn_progname}; then
11045 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11047 $as_echo "yes" >&6; }
11048 break
11049 else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11053 done
11056 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11057 for ncn_progname in as; do
11058 if test -n "$ncn_target_tool_prefix"; then
11059 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11060 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062 $as_echo_n "checking for $ac_word... " >&6; }
11063 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 if test -n "$AS_FOR_TARGET"; then
11067 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11068 else
11069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070 for as_dir in $PATH
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
11074 for ac_exec_ext in '' $ac_executable_extensions; do
11075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11076 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11078 break 2
11080 done
11081 done
11082 IFS=$as_save_IFS
11086 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11087 if test -n "$AS_FOR_TARGET"; then
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11089 $as_echo "$AS_FOR_TARGET" >&6; }
11090 else
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 $as_echo "no" >&6; }
11097 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11099 set dummy ${ncn_progname}; ac_word=$2
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11101 $as_echo_n "checking for $ac_word... " >&6; }
11102 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 if test -n "$AS_FOR_TARGET"; then
11106 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11107 else
11108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 for as_dir in $PATH
11111 IFS=$as_save_IFS
11112 test -z "$as_dir" && as_dir=.
11113 for ac_exec_ext in '' $ac_executable_extensions; do
11114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11115 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11117 break 2
11119 done
11120 done
11121 IFS=$as_save_IFS
11125 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11126 if test -n "$AS_FOR_TARGET"; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11128 $as_echo "$AS_FOR_TARGET" >&6; }
11129 else
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; }
11136 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11137 done
11140 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11141 set dummy as
11142 if test $build = $target ; then
11143 AS_FOR_TARGET="$2"
11144 else
11145 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11147 else
11148 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11151 else
11152 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11158 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11159 if test -n "$with_build_time_tools"; then
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11161 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11162 if test -x $with_build_time_tools/dlltool; then
11163 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11164 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11166 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11171 elif test $build != $host && test $have_gcc_for_target = yes; then
11172 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11173 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11174 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11177 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11178 # Extract the first word of "dlltool", so it can be a program name with args.
11179 set dummy dlltool; ac_word=$2
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11181 $as_echo_n "checking for $ac_word... " >&6; }
11182 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 case $DLLTOOL_FOR_TARGET in
11186 [\\/]* | ?:[\\/]*)
11187 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $gcc_cv_tool_dirs
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11197 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 break 2
11201 done
11202 done
11203 IFS=$as_save_IFS
11206 esac
11208 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11209 if test -n "$DLLTOOL_FOR_TARGET"; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11211 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11212 else
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 $as_echo "no" >&6; }
11219 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11222 if test -n "$DLLTOOL_FOR_TARGET"; then
11223 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11224 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11225 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11228 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11229 for ncn_progname in dlltool; do
11230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11231 set dummy ${ncn_progname}; ac_word=$2
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11233 $as_echo_n "checking for $ac_word... " >&6; }
11234 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 if test -n "$DLLTOOL_FOR_TARGET"; then
11238 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11239 else
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in $PATH
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
11245 for ac_exec_ext in '' $ac_executable_extensions; do
11246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11247 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11249 break 2
11251 done
11252 done
11253 IFS=$as_save_IFS
11257 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11258 if test -n "$DLLTOOL_FOR_TARGET"; then
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11260 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
11267 done
11270 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11271 for ncn_progname in dlltool; do
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11273 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11274 if test -x $with_build_time_tools/${ncn_progname}; then
11275 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11277 $as_echo "yes" >&6; }
11278 break
11279 else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; }
11283 done
11286 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11287 for ncn_progname in dlltool; do
11288 if test -n "$ncn_target_tool_prefix"; then
11289 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11290 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292 $as_echo_n "checking for $ac_word... " >&6; }
11293 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 if test -n "$DLLTOOL_FOR_TARGET"; then
11297 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11298 else
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11306 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 break 2
11310 done
11311 done
11312 IFS=$as_save_IFS
11316 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11317 if test -n "$DLLTOOL_FOR_TARGET"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11319 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11327 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11329 set dummy ${ncn_progname}; ac_word=$2
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11331 $as_echo_n "checking for $ac_word... " >&6; }
11332 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
11334 else
11335 if test -n "$DLLTOOL_FOR_TARGET"; then
11336 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11337 else
11338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339 for as_dir in $PATH
11341 IFS=$as_save_IFS
11342 test -z "$as_dir" && as_dir=.
11343 for ac_exec_ext in '' $ac_executable_extensions; do
11344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11345 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11347 break 2
11349 done
11350 done
11351 IFS=$as_save_IFS
11355 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11356 if test -n "$DLLTOOL_FOR_TARGET"; then
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11358 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11359 else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11366 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11367 done
11370 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11371 set dummy dlltool
11372 if test $build = $target ; then
11373 DLLTOOL_FOR_TARGET="$2"
11374 else
11375 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11377 else
11378 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11381 else
11382 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11388 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11389 if test -n "$with_build_time_tools"; then
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11391 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11392 if test -x $with_build_time_tools/ld; then
11393 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11394 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11396 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11397 else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399 $as_echo "no" >&6; }
11401 elif test $build != $host && test $have_gcc_for_target = yes; then
11402 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11403 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11404 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11407 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11408 # Extract the first word of "ld", so it can be a program name with args.
11409 set dummy ld; ac_word=$2
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11411 $as_echo_n "checking for $ac_word... " >&6; }
11412 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 case $LD_FOR_TARGET in
11416 [\\/]* | ?:[\\/]*)
11417 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $gcc_cv_tool_dirs
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11427 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 break 2
11431 done
11432 done
11433 IFS=$as_save_IFS
11436 esac
11438 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11439 if test -n "$LD_FOR_TARGET"; then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11441 $as_echo "$LD_FOR_TARGET" >&6; }
11442 else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11449 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11452 if test -n "$LD_FOR_TARGET"; then
11453 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11454 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11455 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11458 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11459 for ncn_progname in ld; do
11460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11461 set dummy ${ncn_progname}; ac_word=$2
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463 $as_echo_n "checking for $ac_word... " >&6; }
11464 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11465 $as_echo_n "(cached) " >&6
11466 else
11467 if test -n "$LD_FOR_TARGET"; then
11468 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11469 else
11470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471 for as_dir in $PATH
11473 IFS=$as_save_IFS
11474 test -z "$as_dir" && as_dir=.
11475 for ac_exec_ext in '' $ac_executable_extensions; do
11476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11477 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11479 break 2
11481 done
11482 done
11483 IFS=$as_save_IFS
11487 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11488 if test -n "$LD_FOR_TARGET"; then
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11490 $as_echo "$LD_FOR_TARGET" >&6; }
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; }
11497 done
11500 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11501 for ncn_progname in ld; do
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11503 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11504 if test -x $with_build_time_tools/${ncn_progname}; then
11505 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11507 $as_echo "yes" >&6; }
11508 break
11509 else
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511 $as_echo "no" >&6; }
11513 done
11516 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11517 for ncn_progname in ld; do
11518 if test -n "$ncn_target_tool_prefix"; then
11519 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11520 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522 $as_echo_n "checking for $ac_word... " >&6; }
11523 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 if test -n "$LD_FOR_TARGET"; then
11527 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11528 else
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11540 done
11541 done
11542 IFS=$as_save_IFS
11546 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11547 if test -n "$LD_FOR_TARGET"; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11549 $as_echo "$LD_FOR_TARGET" >&6; }
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11557 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11559 set dummy ${ncn_progname}; ac_word=$2
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11561 $as_echo_n "checking for $ac_word... " >&6; }
11562 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11563 $as_echo_n "(cached) " >&6
11564 else
11565 if test -n "$LD_FOR_TARGET"; then
11566 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11567 else
11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11575 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577 break 2
11579 done
11580 done
11581 IFS=$as_save_IFS
11585 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11586 if test -n "$LD_FOR_TARGET"; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11588 $as_echo "$LD_FOR_TARGET" >&6; }
11589 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 $as_echo "no" >&6; }
11596 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11597 done
11600 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11601 set dummy ld
11602 if test $build = $target ; then
11603 LD_FOR_TARGET="$2"
11604 else
11605 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11607 else
11608 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11611 else
11612 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11618 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11619 if test -n "$with_build_time_tools"; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11621 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11622 if test -x $with_build_time_tools/lipo; then
11623 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11624 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11626 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11627 else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11631 elif test $build != $host && test $have_gcc_for_target = yes; then
11632 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11633 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11634 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11637 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11638 # Extract the first word of "lipo", so it can be a program name with args.
11639 set dummy lipo; ac_word=$2
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641 $as_echo_n "checking for $ac_word... " >&6; }
11642 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 case $LIPO_FOR_TARGET in
11646 [\\/]* | ?:[\\/]*)
11647 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $gcc_cv_tool_dirs
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11657 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 break 2
11661 done
11662 done
11663 IFS=$as_save_IFS
11666 esac
11668 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11669 if test -n "$LIPO_FOR_TARGET"; then
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11671 $as_echo "$LIPO_FOR_TARGET" >&6; }
11672 else
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674 $as_echo "no" >&6; }
11679 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11682 if test -n "$LIPO_FOR_TARGET"; then
11683 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11684 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11685 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11688 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11689 for ncn_progname in lipo; do
11690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11691 set dummy ${ncn_progname}; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 if test -n "$LIPO_FOR_TARGET"; then
11698 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11699 else
11700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701 for as_dir in $PATH
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
11705 for ac_exec_ext in '' $ac_executable_extensions; do
11706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11707 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11709 break 2
11711 done
11712 done
11713 IFS=$as_save_IFS
11717 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11718 if test -n "$LIPO_FOR_TARGET"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11720 $as_echo "$LIPO_FOR_TARGET" >&6; }
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11727 done
11730 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11731 for ncn_progname in lipo; do
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11733 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11734 if test -x $with_build_time_tools/${ncn_progname}; then
11735 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11737 $as_echo "yes" >&6; }
11738 break
11739 else
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11743 done
11746 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11747 for ncn_progname in lipo; do
11748 if test -n "$ncn_target_tool_prefix"; then
11749 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11750 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752 $as_echo_n "checking for $ac_word... " >&6; }
11753 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11754 $as_echo_n "(cached) " >&6
11755 else
11756 if test -n "$LIPO_FOR_TARGET"; then
11757 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11758 else
11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $PATH
11762 IFS=$as_save_IFS
11763 test -z "$as_dir" && as_dir=.
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11766 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 break 2
11770 done
11771 done
11772 IFS=$as_save_IFS
11776 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11777 if test -n "$LIPO_FOR_TARGET"; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11779 $as_echo "$LIPO_FOR_TARGET" >&6; }
11780 else
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782 $as_echo "no" >&6; }
11787 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11789 set dummy ${ncn_progname}; ac_word=$2
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11791 $as_echo_n "checking for $ac_word... " >&6; }
11792 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 if test -n "$LIPO_FOR_TARGET"; then
11796 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11797 else
11798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799 for as_dir in $PATH
11801 IFS=$as_save_IFS
11802 test -z "$as_dir" && as_dir=.
11803 for ac_exec_ext in '' $ac_executable_extensions; do
11804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11805 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11807 break 2
11809 done
11810 done
11811 IFS=$as_save_IFS
11815 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11816 if test -n "$LIPO_FOR_TARGET"; then
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11818 $as_echo "$LIPO_FOR_TARGET" >&6; }
11819 else
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821 $as_echo "no" >&6; }
11826 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11827 done
11830 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11831 set dummy lipo
11832 if test $build = $target ; then
11833 LIPO_FOR_TARGET="$2"
11834 else
11835 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11837 else
11838 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11841 else
11842 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11848 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11849 if test -n "$with_build_time_tools"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11851 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11852 if test -x $with_build_time_tools/nm; then
11853 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11854 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11856 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11857 else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11861 elif test $build != $host && test $have_gcc_for_target = yes; then
11862 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11863 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11864 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11867 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11868 # Extract the first word of "nm", so it can be a program name with args.
11869 set dummy nm; ac_word=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 case $NM_FOR_TARGET in
11876 [\\/]* | ?:[\\/]*)
11877 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $gcc_cv_tool_dirs
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11887 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889 break 2
11891 done
11892 done
11893 IFS=$as_save_IFS
11896 esac
11898 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11899 if test -n "$NM_FOR_TARGET"; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11901 $as_echo "$NM_FOR_TARGET" >&6; }
11902 else
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11909 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11912 if test -n "$NM_FOR_TARGET"; then
11913 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11914 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11915 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11918 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11919 for ncn_progname in nm; do
11920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11921 set dummy ${ncn_progname}; ac_word=$2
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923 $as_echo_n "checking for $ac_word... " >&6; }
11924 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 if test -n "$NM_FOR_TARGET"; then
11928 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11929 else
11930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11931 for as_dir in $PATH
11933 IFS=$as_save_IFS
11934 test -z "$as_dir" && as_dir=.
11935 for ac_exec_ext in '' $ac_executable_extensions; do
11936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11937 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11939 break 2
11941 done
11942 done
11943 IFS=$as_save_IFS
11947 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11948 if test -n "$NM_FOR_TARGET"; then
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11950 $as_echo "$NM_FOR_TARGET" >&6; }
11951 else
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953 $as_echo "no" >&6; }
11957 done
11960 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11961 for ncn_progname in nm; do
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11963 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11964 if test -x $with_build_time_tools/${ncn_progname}; then
11965 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967 $as_echo "yes" >&6; }
11968 break
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11973 done
11976 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11977 for ncn_progname in nm; do
11978 if test -n "$ncn_target_tool_prefix"; then
11979 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11980 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11982 $as_echo_n "checking for $ac_word... " >&6; }
11983 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11984 $as_echo_n "(cached) " >&6
11985 else
11986 if test -n "$NM_FOR_TARGET"; then
11987 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11988 else
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11996 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 break 2
12000 done
12001 done
12002 IFS=$as_save_IFS
12006 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12007 if test -n "$NM_FOR_TARGET"; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12009 $as_echo "$NM_FOR_TARGET" >&6; }
12010 else
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12017 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12019 set dummy ${ncn_progname}; ac_word=$2
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021 $as_echo_n "checking for $ac_word... " >&6; }
12022 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 if test -n "$NM_FOR_TARGET"; then
12026 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12027 else
12028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029 for as_dir in $PATH
12031 IFS=$as_save_IFS
12032 test -z "$as_dir" && as_dir=.
12033 for ac_exec_ext in '' $ac_executable_extensions; do
12034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12035 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12037 break 2
12039 done
12040 done
12041 IFS=$as_save_IFS
12045 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12046 if test -n "$NM_FOR_TARGET"; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12048 $as_echo "$NM_FOR_TARGET" >&6; }
12049 else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051 $as_echo "no" >&6; }
12056 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12057 done
12060 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12061 set dummy nm
12062 if test $build = $target ; then
12063 NM_FOR_TARGET="$2"
12064 else
12065 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12067 else
12068 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12071 else
12072 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12078 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12079 if test -n "$with_build_time_tools"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12081 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12082 if test -x $with_build_time_tools/objdump; then
12083 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12084 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12086 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12087 else
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 $as_echo "no" >&6; }
12091 elif test $build != $host && test $have_gcc_for_target = yes; then
12092 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12093 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12094 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12097 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12098 # Extract the first word of "objdump", so it can be a program name with args.
12099 set dummy objdump; ac_word=$2
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 case $OBJDUMP_FOR_TARGET in
12106 [\\/]* | ?:[\\/]*)
12107 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $gcc_cv_tool_dirs
12113 IFS=$as_save_IFS
12114 test -z "$as_dir" && as_dir=.
12115 for ac_exec_ext in '' $ac_executable_extensions; do
12116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12117 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 break 2
12121 done
12122 done
12123 IFS=$as_save_IFS
12126 esac
12128 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12129 if test -n "$OBJDUMP_FOR_TARGET"; then
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12131 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12132 else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12139 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12142 if test -n "$OBJDUMP_FOR_TARGET"; then
12143 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12144 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12145 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12148 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12149 for ncn_progname in objdump; do
12150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12151 set dummy ${ncn_progname}; ac_word=$2
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12153 $as_echo_n "checking for $ac_word... " >&6; }
12154 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 if test -n "$OBJDUMP_FOR_TARGET"; then
12158 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12159 else
12160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $PATH
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12167 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12169 break 2
12171 done
12172 done
12173 IFS=$as_save_IFS
12177 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12178 if test -n "$OBJDUMP_FOR_TARGET"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12180 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12181 else
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12187 done
12190 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12191 for ncn_progname in objdump; do
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12193 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12194 if test -x $with_build_time_tools/${ncn_progname}; then
12195 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12197 $as_echo "yes" >&6; }
12198 break
12199 else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12203 done
12206 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12207 for ncn_progname in objdump; do
12208 if test -n "$ncn_target_tool_prefix"; then
12209 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12210 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212 $as_echo_n "checking for $ac_word... " >&6; }
12213 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12214 $as_echo_n "(cached) " >&6
12215 else
12216 if test -n "$OBJDUMP_FOR_TARGET"; then
12217 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12218 else
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12226 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 break 2
12230 done
12231 done
12232 IFS=$as_save_IFS
12236 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12237 if test -n "$OBJDUMP_FOR_TARGET"; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12239 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12240 else
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; }
12247 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12249 set dummy ${ncn_progname}; ac_word=$2
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251 $as_echo_n "checking for $ac_word... " >&6; }
12252 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 if test -n "$OBJDUMP_FOR_TARGET"; then
12256 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12257 else
12258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259 for as_dir in $PATH
12261 IFS=$as_save_IFS
12262 test -z "$as_dir" && as_dir=.
12263 for ac_exec_ext in '' $ac_executable_extensions; do
12264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12265 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12267 break 2
12269 done
12270 done
12271 IFS=$as_save_IFS
12275 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12276 if test -n "$OBJDUMP_FOR_TARGET"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12278 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12279 else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12286 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12287 done
12290 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12291 set dummy objdump
12292 if test $build = $target ; then
12293 OBJDUMP_FOR_TARGET="$2"
12294 else
12295 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12297 else
12298 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12301 else
12302 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12308 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12309 if test -n "$with_build_time_tools"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12311 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12312 if test -x $with_build_time_tools/ranlib; then
12313 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12314 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12316 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12317 else
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319 $as_echo "no" >&6; }
12321 elif test $build != $host && test $have_gcc_for_target = yes; then
12322 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12323 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12324 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12327 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12328 # Extract the first word of "ranlib", so it can be a program name with args.
12329 set dummy ranlib; ac_word=$2
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12331 $as_echo_n "checking for $ac_word... " >&6; }
12332 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12333 $as_echo_n "(cached) " >&6
12334 else
12335 case $RANLIB_FOR_TARGET in
12336 [\\/]* | ?:[\\/]*)
12337 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $gcc_cv_tool_dirs
12343 IFS=$as_save_IFS
12344 test -z "$as_dir" && as_dir=.
12345 for ac_exec_ext in '' $ac_executable_extensions; do
12346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12347 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12349 break 2
12351 done
12352 done
12353 IFS=$as_save_IFS
12356 esac
12358 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12359 if test -n "$RANLIB_FOR_TARGET"; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12361 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12362 else
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; }
12369 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12372 if test -n "$RANLIB_FOR_TARGET"; then
12373 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12374 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12375 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12378 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12379 for ncn_progname in ranlib; do
12380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12381 set dummy ${ncn_progname}; ac_word=$2
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12383 $as_echo_n "checking for $ac_word... " >&6; }
12384 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12385 $as_echo_n "(cached) " >&6
12386 else
12387 if test -n "$RANLIB_FOR_TARGET"; then
12388 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12389 else
12390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12391 for as_dir in $PATH
12393 IFS=$as_save_IFS
12394 test -z "$as_dir" && as_dir=.
12395 for ac_exec_ext in '' $ac_executable_extensions; do
12396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12397 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12399 break 2
12401 done
12402 done
12403 IFS=$as_save_IFS
12407 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12408 if test -n "$RANLIB_FOR_TARGET"; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12410 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12411 else
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; }
12417 done
12420 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12421 for ncn_progname in ranlib; do
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12423 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12424 if test -x $with_build_time_tools/${ncn_progname}; then
12425 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12427 $as_echo "yes" >&6; }
12428 break
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12433 done
12436 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12437 for ncn_progname in ranlib; do
12438 if test -n "$ncn_target_tool_prefix"; then
12439 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12440 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442 $as_echo_n "checking for $ac_word... " >&6; }
12443 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12446 if test -n "$RANLIB_FOR_TARGET"; then
12447 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12448 else
12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 break 2
12460 done
12461 done
12462 IFS=$as_save_IFS
12466 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12467 if test -n "$RANLIB_FOR_TARGET"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12469 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12470 else
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12477 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12479 set dummy ${ncn_progname}; ac_word=$2
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12481 $as_echo_n "checking for $ac_word... " >&6; }
12482 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12483 $as_echo_n "(cached) " >&6
12484 else
12485 if test -n "$RANLIB_FOR_TARGET"; then
12486 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12487 else
12488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12489 for as_dir in $PATH
12491 IFS=$as_save_IFS
12492 test -z "$as_dir" && as_dir=.
12493 for ac_exec_ext in '' $ac_executable_extensions; do
12494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12495 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12497 break 2
12499 done
12500 done
12501 IFS=$as_save_IFS
12505 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12506 if test -n "$RANLIB_FOR_TARGET"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12508 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12509 else
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511 $as_echo "no" >&6; }
12516 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12517 done
12520 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12521 set dummy ranlib
12522 if test $build = $target ; then
12523 RANLIB_FOR_TARGET="$2"
12524 else
12525 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12527 else
12528 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12531 else
12532 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12538 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12539 if test -n "$with_build_time_tools"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12541 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12542 if test -x $with_build_time_tools/strip; then
12543 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12544 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12546 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12547 else
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12551 elif test $build != $host && test $have_gcc_for_target = yes; then
12552 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12553 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12554 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12557 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12558 # Extract the first word of "strip", so it can be a program name with args.
12559 set dummy strip; ac_word=$2
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561 $as_echo_n "checking for $ac_word... " >&6; }
12562 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 case $STRIP_FOR_TARGET in
12566 [\\/]* | ?:[\\/]*)
12567 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $gcc_cv_tool_dirs
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12577 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 break 2
12581 done
12582 done
12583 IFS=$as_save_IFS
12586 esac
12588 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12589 if test -n "$STRIP_FOR_TARGET"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12591 $as_echo "$STRIP_FOR_TARGET" >&6; }
12592 else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12599 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12602 if test -n "$STRIP_FOR_TARGET"; then
12603 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12604 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12605 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12608 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12609 for ncn_progname in strip; do
12610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12611 set dummy ${ncn_progname}; ac_word=$2
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613 $as_echo_n "checking for $ac_word... " >&6; }
12614 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 if test -n "$STRIP_FOR_TARGET"; then
12618 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12619 else
12620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12621 for as_dir in $PATH
12623 IFS=$as_save_IFS
12624 test -z "$as_dir" && as_dir=.
12625 for ac_exec_ext in '' $ac_executable_extensions; do
12626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12627 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12629 break 2
12631 done
12632 done
12633 IFS=$as_save_IFS
12637 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12638 if test -n "$STRIP_FOR_TARGET"; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12640 $as_echo "$STRIP_FOR_TARGET" >&6; }
12641 else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643 $as_echo "no" >&6; }
12647 done
12650 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12651 for ncn_progname in strip; do
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12653 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12654 if test -x $with_build_time_tools/${ncn_progname}; then
12655 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12657 $as_echo "yes" >&6; }
12658 break
12659 else
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661 $as_echo "no" >&6; }
12663 done
12666 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12667 for ncn_progname in strip; do
12668 if test -n "$ncn_target_tool_prefix"; then
12669 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12670 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12672 $as_echo_n "checking for $ac_word... " >&6; }
12673 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 if test -n "$STRIP_FOR_TARGET"; then
12677 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12678 else
12679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in $PATH
12682 IFS=$as_save_IFS
12683 test -z "$as_dir" && as_dir=.
12684 for ac_exec_ext in '' $ac_executable_extensions; do
12685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12686 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12688 break 2
12690 done
12691 done
12692 IFS=$as_save_IFS
12696 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12697 if test -n "$STRIP_FOR_TARGET"; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12699 $as_echo "$STRIP_FOR_TARGET" >&6; }
12700 else
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702 $as_echo "no" >&6; }
12707 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12709 set dummy ${ncn_progname}; ac_word=$2
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12711 $as_echo_n "checking for $ac_word... " >&6; }
12712 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12713 $as_echo_n "(cached) " >&6
12714 else
12715 if test -n "$STRIP_FOR_TARGET"; then
12716 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12717 else
12718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719 for as_dir in $PATH
12721 IFS=$as_save_IFS
12722 test -z "$as_dir" && as_dir=.
12723 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12725 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12727 break 2
12729 done
12730 done
12731 IFS=$as_save_IFS
12735 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12736 if test -n "$STRIP_FOR_TARGET"; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12738 $as_echo "$STRIP_FOR_TARGET" >&6; }
12739 else
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12746 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12747 done
12750 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12751 set dummy strip
12752 if test $build = $target ; then
12753 STRIP_FOR_TARGET="$2"
12754 else
12755 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12757 else
12758 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12761 else
12762 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12768 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12769 if test -n "$with_build_time_tools"; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12771 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12772 if test -x $with_build_time_tools/windres; then
12773 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12774 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12776 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12777 else
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12781 elif test $build != $host && test $have_gcc_for_target = yes; then
12782 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12783 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12784 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12787 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12788 # Extract the first word of "windres", so it can be a program name with args.
12789 set dummy windres; ac_word=$2
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12791 $as_echo_n "checking for $ac_word... " >&6; }
12792 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12793 $as_echo_n "(cached) " >&6
12794 else
12795 case $WINDRES_FOR_TARGET in
12796 [\\/]* | ?:[\\/]*)
12797 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801 for as_dir in $gcc_cv_tool_dirs
12803 IFS=$as_save_IFS
12804 test -z "$as_dir" && as_dir=.
12805 for ac_exec_ext in '' $ac_executable_extensions; do
12806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12807 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12809 break 2
12811 done
12812 done
12813 IFS=$as_save_IFS
12816 esac
12818 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12819 if test -n "$WINDRES_FOR_TARGET"; then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12821 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12822 else
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12829 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12832 if test -n "$WINDRES_FOR_TARGET"; then
12833 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12834 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12835 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12838 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12839 for ncn_progname in windres; do
12840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12841 set dummy ${ncn_progname}; ac_word=$2
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12843 $as_echo_n "checking for $ac_word... " >&6; }
12844 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 if test -n "$WINDRES_FOR_TARGET"; then
12848 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12849 else
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12857 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12861 done
12862 done
12863 IFS=$as_save_IFS
12867 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12868 if test -n "$WINDRES_FOR_TARGET"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12870 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12877 done
12880 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12881 for ncn_progname in windres; do
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12883 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12884 if test -x $with_build_time_tools/${ncn_progname}; then
12885 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12887 $as_echo "yes" >&6; }
12888 break
12889 else
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891 $as_echo "no" >&6; }
12893 done
12896 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12897 for ncn_progname in windres; do
12898 if test -n "$ncn_target_tool_prefix"; then
12899 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12900 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12902 $as_echo_n "checking for $ac_word... " >&6; }
12903 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 if test -n "$WINDRES_FOR_TARGET"; then
12907 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12908 else
12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 for as_dir in $PATH
12912 IFS=$as_save_IFS
12913 test -z "$as_dir" && as_dir=.
12914 for ac_exec_ext in '' $ac_executable_extensions; do
12915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12916 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12918 break 2
12920 done
12921 done
12922 IFS=$as_save_IFS
12926 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12927 if test -n "$WINDRES_FOR_TARGET"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12929 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12930 else
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12937 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12939 set dummy ${ncn_progname}; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941 $as_echo_n "checking for $ac_word... " >&6; }
12942 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12945 if test -n "$WINDRES_FOR_TARGET"; then
12946 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12947 else
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12955 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12959 done
12960 done
12961 IFS=$as_save_IFS
12965 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12966 if test -n "$WINDRES_FOR_TARGET"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12968 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12976 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12977 done
12980 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12981 set dummy windres
12982 if test $build = $target ; then
12983 WINDRES_FOR_TARGET="$2"
12984 else
12985 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12987 else
12988 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12991 else
12992 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12998 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12999 if test -n "$with_build_time_tools"; then
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13001 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13002 if test -x $with_build_time_tools/windmc; then
13003 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13004 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13006 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13007 else
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009 $as_echo "no" >&6; }
13011 elif test $build != $host && test $have_gcc_for_target = yes; then
13012 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13013 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13014 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13017 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13018 # Extract the first word of "windmc", so it can be a program name with args.
13019 set dummy windmc; ac_word=$2
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13021 $as_echo_n "checking for $ac_word... " >&6; }
13022 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13023 $as_echo_n "(cached) " >&6
13024 else
13025 case $WINDMC_FOR_TARGET in
13026 [\\/]* | ?:[\\/]*)
13027 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $gcc_cv_tool_dirs
13033 IFS=$as_save_IFS
13034 test -z "$as_dir" && as_dir=.
13035 for ac_exec_ext in '' $ac_executable_extensions; do
13036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13037 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13039 break 2
13041 done
13042 done
13043 IFS=$as_save_IFS
13046 esac
13048 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13049 if test -n "$WINDMC_FOR_TARGET"; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13051 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13052 else
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 $as_echo "no" >&6; }
13059 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13062 if test -n "$WINDMC_FOR_TARGET"; then
13063 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13064 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13065 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13068 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13069 for ncn_progname in windmc; do
13070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13071 set dummy ${ncn_progname}; ac_word=$2
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13073 $as_echo_n "checking for $ac_word... " >&6; }
13074 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13075 $as_echo_n "(cached) " >&6
13076 else
13077 if test -n "$WINDMC_FOR_TARGET"; then
13078 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13079 else
13080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13081 for as_dir in $PATH
13083 IFS=$as_save_IFS
13084 test -z "$as_dir" && as_dir=.
13085 for ac_exec_ext in '' $ac_executable_extensions; do
13086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13087 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13089 break 2
13091 done
13092 done
13093 IFS=$as_save_IFS
13097 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13098 if test -n "$WINDMC_FOR_TARGET"; then
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13100 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13101 else
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13103 $as_echo "no" >&6; }
13107 done
13110 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13111 for ncn_progname in windmc; do
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13113 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13114 if test -x $with_build_time_tools/${ncn_progname}; then
13115 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13117 $as_echo "yes" >&6; }
13118 break
13119 else
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13123 done
13126 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13127 for ncn_progname in windmc; do
13128 if test -n "$ncn_target_tool_prefix"; then
13129 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13130 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 if test -n "$WINDMC_FOR_TARGET"; then
13137 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13138 else
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13146 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148 break 2
13150 done
13151 done
13152 IFS=$as_save_IFS
13156 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13157 if test -n "$WINDMC_FOR_TARGET"; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13159 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13160 else
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13167 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13169 set dummy ${ncn_progname}; ac_word=$2
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171 $as_echo_n "checking for $ac_word... " >&6; }
13172 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175 if test -n "$WINDMC_FOR_TARGET"; then
13176 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13177 else
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13181 IFS=$as_save_IFS
13182 test -z "$as_dir" && as_dir=.
13183 for ac_exec_ext in '' $ac_executable_extensions; do
13184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13187 break 2
13189 done
13190 done
13191 IFS=$as_save_IFS
13195 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13196 if test -n "$WINDMC_FOR_TARGET"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13198 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13199 else
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13206 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13207 done
13210 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13211 set dummy windmc
13212 if test $build = $target ; then
13213 WINDMC_FOR_TARGET="$2"
13214 else
13215 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13217 else
13218 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13221 else
13222 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13226 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13229 $as_echo_n "checking where to find the target ar... " >&6; }
13230 if test "x${build}" != "x${host}" ; then
13231 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13232 # We already found the complete path
13233 ac_dir=`dirname $AR_FOR_TARGET`
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13235 $as_echo "pre-installed in $ac_dir" >&6; }
13236 else
13237 # Canadian cross, just use what we found
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13239 $as_echo "pre-installed" >&6; }
13241 else
13242 ok=yes
13243 case " ${configdirs} " in
13244 *" binutils "*) ;;
13245 *) ok=no ;;
13246 esac
13248 if test $ok = yes; then
13249 # An in-tree tool is available and we can use it
13250 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13252 $as_echo "just compiled" >&6; }
13253 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13254 # We already found the complete path
13255 ac_dir=`dirname $AR_FOR_TARGET`
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13257 $as_echo "pre-installed in $ac_dir" >&6; }
13258 elif test "x$target" = "x$host"; then
13259 # We can use an host tool
13260 AR_FOR_TARGET='$(AR)'
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13262 $as_echo "host tool" >&6; }
13263 else
13264 # We need a cross tool
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13266 $as_echo "pre-installed" >&6; }
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13271 $as_echo_n "checking where to find the target as... " >&6; }
13272 if test "x${build}" != "x${host}" ; then
13273 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13274 # We already found the complete path
13275 ac_dir=`dirname $AS_FOR_TARGET`
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13277 $as_echo "pre-installed in $ac_dir" >&6; }
13278 else
13279 # Canadian cross, just use what we found
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13281 $as_echo "pre-installed" >&6; }
13283 else
13284 ok=yes
13285 case " ${configdirs} " in
13286 *" gas "*) ;;
13287 *) ok=no ;;
13288 esac
13290 if test $ok = yes; then
13291 # An in-tree tool is available and we can use it
13292 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13294 $as_echo "just compiled" >&6; }
13295 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13296 # We already found the complete path
13297 ac_dir=`dirname $AS_FOR_TARGET`
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13299 $as_echo "pre-installed in $ac_dir" >&6; }
13300 elif test "x$target" = "x$host"; then
13301 # We can use an host tool
13302 AS_FOR_TARGET='$(AS)'
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13304 $as_echo "host tool" >&6; }
13305 else
13306 # We need a cross tool
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13308 $as_echo "pre-installed" >&6; }
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13313 $as_echo_n "checking where to find the target cc... " >&6; }
13314 if test "x${build}" != "x${host}" ; then
13315 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13316 # We already found the complete path
13317 ac_dir=`dirname $CC_FOR_TARGET`
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13319 $as_echo "pre-installed in $ac_dir" >&6; }
13320 else
13321 # Canadian cross, just use what we found
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13323 $as_echo "pre-installed" >&6; }
13325 else
13326 ok=yes
13327 case " ${configdirs} " in
13328 *" gcc "*) ;;
13329 *) ok=no ;;
13330 esac
13332 if test $ok = yes; then
13333 # An in-tree tool is available and we can use it
13334 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13336 $as_echo "just compiled" >&6; }
13337 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13338 # We already found the complete path
13339 ac_dir=`dirname $CC_FOR_TARGET`
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13341 $as_echo "pre-installed in $ac_dir" >&6; }
13342 elif test "x$target" = "x$host"; then
13343 # We can use an host tool
13344 CC_FOR_TARGET='$(CC)'
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13346 $as_echo "host tool" >&6; }
13347 else
13348 # We need a cross tool
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13350 $as_echo "pre-installed" >&6; }
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13355 $as_echo_n "checking where to find the target c++... " >&6; }
13356 if test "x${build}" != "x${host}" ; then
13357 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13358 # We already found the complete path
13359 ac_dir=`dirname $CXX_FOR_TARGET`
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13361 $as_echo "pre-installed in $ac_dir" >&6; }
13362 else
13363 # Canadian cross, just use what we found
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13365 $as_echo "pre-installed" >&6; }
13367 else
13368 ok=yes
13369 case " ${configdirs} " in
13370 *" gcc "*) ;;
13371 *) ok=no ;;
13372 esac
13373 case ,${enable_languages}, in
13374 *,c++,*) ;;
13375 *) ok=no ;;
13376 esac
13377 if test $ok = yes; then
13378 # An in-tree tool is available and we can use it
13379 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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'
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13381 $as_echo "just compiled" >&6; }
13382 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13383 # We already found the complete path
13384 ac_dir=`dirname $CXX_FOR_TARGET`
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13386 $as_echo "pre-installed in $ac_dir" >&6; }
13387 elif test "x$target" = "x$host"; then
13388 # We can use an host tool
13389 CXX_FOR_TARGET='$(CXX)'
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13391 $as_echo "host tool" >&6; }
13392 else
13393 # We need a cross tool
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13395 $as_echo "pre-installed" >&6; }
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13400 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13401 if test "x${build}" != "x${host}" ; then
13402 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13403 # We already found the complete path
13404 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13406 $as_echo "pre-installed in $ac_dir" >&6; }
13407 else
13408 # Canadian cross, just use what we found
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13410 $as_echo "pre-installed" >&6; }
13412 else
13413 ok=yes
13414 case " ${configdirs} " in
13415 *" gcc "*) ;;
13416 *) ok=no ;;
13417 esac
13418 case ,${enable_languages}, in
13419 *,c++,*) ;;
13420 *) ok=no ;;
13421 esac
13422 if test $ok = yes; then
13423 # An in-tree tool is available and we can use it
13424 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'
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13426 $as_echo "just compiled" >&6; }
13427 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13428 # We already found the complete path
13429 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13431 $as_echo "pre-installed in $ac_dir" >&6; }
13432 elif test "x$target" = "x$host"; then
13433 # We can use an host tool
13434 RAW_CXX_FOR_TARGET='$(CXX)'
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13436 $as_echo "host tool" >&6; }
13437 else
13438 # We need a cross tool
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13440 $as_echo "pre-installed" >&6; }
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13445 $as_echo_n "checking where to find the target dlltool... " >&6; }
13446 if test "x${build}" != "x${host}" ; then
13447 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13448 # We already found the complete path
13449 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13451 $as_echo "pre-installed in $ac_dir" >&6; }
13452 else
13453 # Canadian cross, just use what we found
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13455 $as_echo "pre-installed" >&6; }
13457 else
13458 ok=yes
13459 case " ${configdirs} " in
13460 *" binutils "*) ;;
13461 *) ok=no ;;
13462 esac
13464 if test $ok = yes; then
13465 # An in-tree tool is available and we can use it
13466 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13468 $as_echo "just compiled" >&6; }
13469 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13470 # We already found the complete path
13471 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13473 $as_echo "pre-installed in $ac_dir" >&6; }
13474 elif test "x$target" = "x$host"; then
13475 # We can use an host tool
13476 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13478 $as_echo "host tool" >&6; }
13479 else
13480 # We need a cross tool
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13482 $as_echo "pre-installed" >&6; }
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13487 $as_echo_n "checking where to find the target gcc... " >&6; }
13488 if test "x${build}" != "x${host}" ; then
13489 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13490 # We already found the complete path
13491 ac_dir=`dirname $GCC_FOR_TARGET`
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13493 $as_echo "pre-installed in $ac_dir" >&6; }
13494 else
13495 # Canadian cross, just use what we found
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13497 $as_echo "pre-installed" >&6; }
13499 else
13500 ok=yes
13501 case " ${configdirs} " in
13502 *" gcc "*) ;;
13503 *) ok=no ;;
13504 esac
13506 if test $ok = yes; then
13507 # An in-tree tool is available and we can use it
13508 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13510 $as_echo "just compiled" >&6; }
13511 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13512 # We already found the complete path
13513 ac_dir=`dirname $GCC_FOR_TARGET`
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13515 $as_echo "pre-installed in $ac_dir" >&6; }
13516 elif test "x$target" = "x$host"; then
13517 # We can use an host tool
13518 GCC_FOR_TARGET='$()'
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13520 $as_echo "host tool" >&6; }
13521 else
13522 # We need a cross tool
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13524 $as_echo "pre-installed" >&6; }
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13529 $as_echo_n "checking where to find the target gcj... " >&6; }
13530 if test "x${build}" != "x${host}" ; then
13531 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13532 # We already found the complete path
13533 ac_dir=`dirname $GCJ_FOR_TARGET`
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13535 $as_echo "pre-installed in $ac_dir" >&6; }
13536 else
13537 # Canadian cross, just use what we found
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13539 $as_echo "pre-installed" >&6; }
13541 else
13542 ok=yes
13543 case " ${configdirs} " in
13544 *" gcc "*) ;;
13545 *) ok=no ;;
13546 esac
13547 case ,${enable_languages}, in
13548 *,java,*) ;;
13549 *) ok=no ;;
13550 esac
13551 if test $ok = yes; then
13552 # An in-tree tool is available and we can use it
13553 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13555 $as_echo "just compiled" >&6; }
13556 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13557 # We already found the complete path
13558 ac_dir=`dirname $GCJ_FOR_TARGET`
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13560 $as_echo "pre-installed in $ac_dir" >&6; }
13561 elif test "x$target" = "x$host"; then
13562 # We can use an host tool
13563 GCJ_FOR_TARGET='$(GCJ)'
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13565 $as_echo "host tool" >&6; }
13566 else
13567 # We need a cross tool
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13569 $as_echo "pre-installed" >&6; }
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13574 $as_echo_n "checking where to find the target gfortran... " >&6; }
13575 if test "x${build}" != "x${host}" ; then
13576 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13577 # We already found the complete path
13578 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13580 $as_echo "pre-installed in $ac_dir" >&6; }
13581 else
13582 # Canadian cross, just use what we found
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13584 $as_echo "pre-installed" >&6; }
13586 else
13587 ok=yes
13588 case " ${configdirs} " in
13589 *" gcc "*) ;;
13590 *) ok=no ;;
13591 esac
13592 case ,${enable_languages}, in
13593 *,fortran,*) ;;
13594 *) ok=no ;;
13595 esac
13596 if test $ok = yes; then
13597 # An in-tree tool is available and we can use it
13598 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13600 $as_echo "just compiled" >&6; }
13601 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13602 # We already found the complete path
13603 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13605 $as_echo "pre-installed in $ac_dir" >&6; }
13606 elif test "x$target" = "x$host"; then
13607 # We can use an host tool
13608 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13610 $as_echo "host tool" >&6; }
13611 else
13612 # We need a cross tool
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13614 $as_echo "pre-installed" >&6; }
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13619 $as_echo_n "checking where to find the target gccgo... " >&6; }
13620 if test "x${build}" != "x${host}" ; then
13621 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13622 # We already found the complete path
13623 ac_dir=`dirname $GOC_FOR_TARGET`
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13625 $as_echo "pre-installed in $ac_dir" >&6; }
13626 else
13627 # Canadian cross, just use what we found
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13629 $as_echo "pre-installed" >&6; }
13631 else
13632 ok=yes
13633 case " ${configdirs} " in
13634 *" gcc "*) ;;
13635 *) ok=no ;;
13636 esac
13637 case ,${enable_languages}, in
13638 *,go,*) ;;
13639 *) ok=no ;;
13640 esac
13641 if test $ok = yes; then
13642 # An in-tree tool is available and we can use it
13643 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13645 $as_echo "just compiled" >&6; }
13646 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13647 # We already found the complete path
13648 ac_dir=`dirname $GOC_FOR_TARGET`
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13650 $as_echo "pre-installed in $ac_dir" >&6; }
13651 elif test "x$target" = "x$host"; then
13652 # We can use an host tool
13653 GOC_FOR_TARGET='$(GOC)'
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13655 $as_echo "host tool" >&6; }
13656 else
13657 # We need a cross tool
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13659 $as_echo "pre-installed" >&6; }
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13664 $as_echo_n "checking where to find the target ld... " >&6; }
13665 if test "x${build}" != "x${host}" ; then
13666 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13667 # We already found the complete path
13668 ac_dir=`dirname $LD_FOR_TARGET`
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13670 $as_echo "pre-installed in $ac_dir" >&6; }
13671 else
13672 # Canadian cross, just use what we found
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13674 $as_echo "pre-installed" >&6; }
13676 else
13677 ok=yes
13678 case " ${configdirs} " in
13679 *" ld "*) ;;
13680 *) ok=no ;;
13681 esac
13683 if test $ok = yes; then
13684 # An in-tree tool is available and we can use it
13685 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13687 $as_echo "just compiled" >&6; }
13688 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13689 # We already found the complete path
13690 ac_dir=`dirname $LD_FOR_TARGET`
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13692 $as_echo "pre-installed in $ac_dir" >&6; }
13693 elif test "x$target" = "x$host"; then
13694 # We can use an host tool
13695 LD_FOR_TARGET='$(LD)'
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13697 $as_echo "host tool" >&6; }
13698 else
13699 # We need a cross tool
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13701 $as_echo "pre-installed" >&6; }
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13706 $as_echo_n "checking where to find the target lipo... " >&6; }
13707 if test "x${build}" != "x${host}" ; then
13708 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13709 # We already found the complete path
13710 ac_dir=`dirname $LIPO_FOR_TARGET`
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13712 $as_echo "pre-installed in $ac_dir" >&6; }
13713 else
13714 # Canadian cross, just use what we found
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13716 $as_echo "pre-installed" >&6; }
13718 else
13719 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13720 # We already found the complete path
13721 ac_dir=`dirname $LIPO_FOR_TARGET`
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13723 $as_echo "pre-installed in $ac_dir" >&6; }
13724 elif test "x$target" = "x$host"; then
13725 # We can use an host tool
13726 LIPO_FOR_TARGET='$(LIPO)'
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13728 $as_echo "host tool" >&6; }
13729 else
13730 # We need a cross tool
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13732 $as_echo "pre-installed" >&6; }
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13737 $as_echo_n "checking where to find the target nm... " >&6; }
13738 if test "x${build}" != "x${host}" ; then
13739 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13740 # We already found the complete path
13741 ac_dir=`dirname $NM_FOR_TARGET`
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13743 $as_echo "pre-installed in $ac_dir" >&6; }
13744 else
13745 # Canadian cross, just use what we found
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13747 $as_echo "pre-installed" >&6; }
13749 else
13750 ok=yes
13751 case " ${configdirs} " in
13752 *" binutils "*) ;;
13753 *) ok=no ;;
13754 esac
13756 if test $ok = yes; then
13757 # An in-tree tool is available and we can use it
13758 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13760 $as_echo "just compiled" >&6; }
13761 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13762 # We already found the complete path
13763 ac_dir=`dirname $NM_FOR_TARGET`
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13765 $as_echo "pre-installed in $ac_dir" >&6; }
13766 elif test "x$target" = "x$host"; then
13767 # We can use an host tool
13768 NM_FOR_TARGET='$(NM)'
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13770 $as_echo "host tool" >&6; }
13771 else
13772 # We need a cross tool
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13774 $as_echo "pre-installed" >&6; }
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13779 $as_echo_n "checking where to find the target objdump... " >&6; }
13780 if test "x${build}" != "x${host}" ; then
13781 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13782 # We already found the complete path
13783 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13785 $as_echo "pre-installed in $ac_dir" >&6; }
13786 else
13787 # Canadian cross, just use what we found
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13789 $as_echo "pre-installed" >&6; }
13791 else
13792 ok=yes
13793 case " ${configdirs} " in
13794 *" binutils "*) ;;
13795 *) ok=no ;;
13796 esac
13798 if test $ok = yes; then
13799 # An in-tree tool is available and we can use it
13800 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13802 $as_echo "just compiled" >&6; }
13803 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13804 # We already found the complete path
13805 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13807 $as_echo "pre-installed in $ac_dir" >&6; }
13808 elif test "x$target" = "x$host"; then
13809 # We can use an host tool
13810 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13812 $as_echo "host tool" >&6; }
13813 else
13814 # We need a cross tool
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13816 $as_echo "pre-installed" >&6; }
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13821 $as_echo_n "checking where to find the target ranlib... " >&6; }
13822 if test "x${build}" != "x${host}" ; then
13823 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13824 # We already found the complete path
13825 ac_dir=`dirname $RANLIB_FOR_TARGET`
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13827 $as_echo "pre-installed in $ac_dir" >&6; }
13828 else
13829 # Canadian cross, just use what we found
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13831 $as_echo "pre-installed" >&6; }
13833 else
13834 ok=yes
13835 case " ${configdirs} " in
13836 *" binutils "*) ;;
13837 *) ok=no ;;
13838 esac
13840 if test $ok = yes; then
13841 # An in-tree tool is available and we can use it
13842 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13844 $as_echo "just compiled" >&6; }
13845 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13846 # We already found the complete path
13847 ac_dir=`dirname $RANLIB_FOR_TARGET`
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13849 $as_echo "pre-installed in $ac_dir" >&6; }
13850 elif test "x$target" = "x$host"; then
13851 # We can use an host tool
13852 RANLIB_FOR_TARGET='$(RANLIB)'
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13854 $as_echo "host tool" >&6; }
13855 else
13856 # We need a cross tool
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13858 $as_echo "pre-installed" >&6; }
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13863 $as_echo_n "checking where to find the target strip... " >&6; }
13864 if test "x${build}" != "x${host}" ; then
13865 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13866 # We already found the complete path
13867 ac_dir=`dirname $STRIP_FOR_TARGET`
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13869 $as_echo "pre-installed in $ac_dir" >&6; }
13870 else
13871 # Canadian cross, just use what we found
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13873 $as_echo "pre-installed" >&6; }
13875 else
13876 ok=yes
13877 case " ${configdirs} " in
13878 *" binutils "*) ;;
13879 *) ok=no ;;
13880 esac
13882 if test $ok = yes; then
13883 # An in-tree tool is available and we can use it
13884 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13886 $as_echo "just compiled" >&6; }
13887 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13888 # We already found the complete path
13889 ac_dir=`dirname $STRIP_FOR_TARGET`
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13891 $as_echo "pre-installed in $ac_dir" >&6; }
13892 elif test "x$target" = "x$host"; then
13893 # We can use an host tool
13894 STRIP_FOR_TARGET='$(STRIP)'
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13896 $as_echo "host tool" >&6; }
13897 else
13898 # We need a cross tool
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13900 $as_echo "pre-installed" >&6; }
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13905 $as_echo_n "checking where to find the target windres... " >&6; }
13906 if test "x${build}" != "x${host}" ; then
13907 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13908 # We already found the complete path
13909 ac_dir=`dirname $WINDRES_FOR_TARGET`
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13911 $as_echo "pre-installed in $ac_dir" >&6; }
13912 else
13913 # Canadian cross, just use what we found
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13915 $as_echo "pre-installed" >&6; }
13917 else
13918 ok=yes
13919 case " ${configdirs} " in
13920 *" binutils "*) ;;
13921 *) ok=no ;;
13922 esac
13924 if test $ok = yes; then
13925 # An in-tree tool is available and we can use it
13926 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13928 $as_echo "just compiled" >&6; }
13929 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13930 # We already found the complete path
13931 ac_dir=`dirname $WINDRES_FOR_TARGET`
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13933 $as_echo "pre-installed in $ac_dir" >&6; }
13934 elif test "x$target" = "x$host"; then
13935 # We can use an host tool
13936 WINDRES_FOR_TARGET='$(WINDRES)'
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13938 $as_echo "host tool" >&6; }
13939 else
13940 # We need a cross tool
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13942 $as_echo "pre-installed" >&6; }
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13947 $as_echo_n "checking where to find the target windmc... " >&6; }
13948 if test "x${build}" != "x${host}" ; then
13949 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13950 # We already found the complete path
13951 ac_dir=`dirname $WINDMC_FOR_TARGET`
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13953 $as_echo "pre-installed in $ac_dir" >&6; }
13954 else
13955 # Canadian cross, just use what we found
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13957 $as_echo "pre-installed" >&6; }
13959 else
13960 ok=yes
13961 case " ${configdirs} " in
13962 *" binutils "*) ;;
13963 *) ok=no ;;
13964 esac
13966 if test $ok = yes; then
13967 # An in-tree tool is available and we can use it
13968 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13970 $as_echo "just compiled" >&6; }
13971 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13972 # We already found the complete path
13973 ac_dir=`dirname $WINDMC_FOR_TARGET`
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13975 $as_echo "pre-installed in $ac_dir" >&6; }
13976 elif test "x$target" = "x$host"; then
13977 # We can use an host tool
13978 WINDMC_FOR_TARGET='$(WINDMC)'
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13980 $as_echo "host tool" >&6; }
13981 else
13982 # We need a cross tool
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13984 $as_echo "pre-installed" >&6; }
13992 # Certain tools may need extra flags.
13993 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13994 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13995 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13997 # When building target libraries, except in a Canadian cross, we use
13998 # the same toolchain as the compiler we just built.
13999 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14000 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14001 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14002 if test $host = $build; then
14003 case " $configdirs " in
14004 *" gcc "*)
14005 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14006 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14007 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14009 esac
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14017 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14018 # Check whether --enable-maintainer-mode was given.
14019 if test "${enable_maintainer_mode+set}" = set; then :
14020 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14021 else
14022 USE_MAINTAINER_MODE=no
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14026 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14029 if test "$USE_MAINTAINER_MODE" = yes; then
14030 MAINTAINER_MODE_TRUE=
14031 MAINTAINER_MODE_FALSE='#'
14032 else
14033 MAINTAINER_MODE_TRUE='#'
14034 MAINTAINER_MODE_FALSE=
14036 MAINT=$MAINTAINER_MODE_TRUE
14038 # ---------------------
14039 # GCC bootstrap support
14040 # ---------------------
14042 # Stage specific cflags for build.
14043 stage1_cflags="-g"
14044 case $build in
14045 vax-*-*)
14046 case ${GCC} in
14047 yes) stage1_cflags="-g -Wa,-J" ;;
14048 *) stage1_cflags="-g -J" ;;
14049 esac ;;
14050 esac
14052 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14053 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14054 saved_CFLAGS="$CFLAGS"
14056 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14057 CFLAGS="$CFLAGS -fkeep-inline-functions"
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14059 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14063 #if (__GNUC__ < 3) \
14064 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14065 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14066 #error http://gcc.gnu.org/PR29382
14067 #endif
14070 main ()
14074 return 0;
14076 _ACEOF
14077 if ac_fn_c_try_compile "$LINENO"; then :
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14079 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14080 else
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082 $as_echo "no" >&6; }
14084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14086 CFLAGS="$saved_CFLAGS"
14091 # Enable --enable-checking in stage1 of the compiler.
14092 # Check whether --enable-stage1-checking was given.
14093 if test "${enable_stage1_checking+set}" = set; then :
14094 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14095 else
14096 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14097 stage1_checking=--enable-checking=yes,types
14098 else
14099 stage1_checking=--enable-checking=$enable_checking,types
14105 # Enable -Werror in bootstrap stage2 and later.
14106 # Check whether --enable-werror was given.
14107 if test "${enable_werror+set}" = set; then :
14108 enableval=$enable_werror;
14109 else
14110 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14111 enable_werror=yes
14112 else
14113 enable_werror=no
14117 case ${enable_werror} in
14118 yes) stage2_werror_flag="--enable-werror-always" ;;
14119 *) stage2_werror_flag="" ;;
14120 esac
14123 # Specify what files to not compare during bootstrap.
14125 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14126 case "$target" in
14127 hppa*64*-*-hpux*) ;;
14128 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14129 esac
14130 case " $configdirs " in
14131 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14132 esac
14135 ac_config_files="$ac_config_files Makefile"
14137 cat >confcache <<\_ACEOF
14138 # This file is a shell script that caches the results of configure
14139 # tests run on this system so they can be shared between configure
14140 # scripts and configure runs, see configure's option --config-cache.
14141 # It is not useful on other systems. If it contains results you don't
14142 # want to keep, you may remove or edit it.
14144 # config.status only pays attention to the cache file if you give it
14145 # the --recheck option to rerun configure.
14147 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14148 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14149 # following values.
14151 _ACEOF
14153 # The following way of writing the cache mishandles newlines in values,
14154 # but we know of no workaround that is simple, portable, and efficient.
14155 # So, we kill variables containing newlines.
14156 # Ultrix sh set writes to stderr and can't be redirected directly,
14157 # and sets the high bit in the cache file unless we assign to the vars.
14159 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14160 eval ac_val=\$$ac_var
14161 case $ac_val in #(
14162 *${as_nl}*)
14163 case $ac_var in #(
14164 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14165 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14166 esac
14167 case $ac_var in #(
14168 _ | IFS | as_nl) ;; #(
14169 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14170 *) { eval $ac_var=; unset $ac_var;} ;;
14171 esac ;;
14172 esac
14173 done
14175 (set) 2>&1 |
14176 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14177 *${as_nl}ac_space=\ *)
14178 # `set' does not quote correctly, so add quotes: double-quote
14179 # substitution turns \\\\ into \\, and sed turns \\ into \.
14180 sed -n \
14181 "s/'/'\\\\''/g;
14182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14183 ;; #(
14185 # `set' quotes correctly as required by POSIX, so do not add quotes.
14186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14188 esac |
14189 sort
14191 sed '
14192 /^ac_cv_env_/b end
14193 t clear
14194 :clear
14195 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14196 t end
14197 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14198 :end' >>confcache
14199 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14200 if test -w "$cache_file"; then
14201 test "x$cache_file" != "x/dev/null" &&
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14203 $as_echo "$as_me: updating cache $cache_file" >&6;}
14204 cat confcache >$cache_file
14205 else
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14207 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14210 rm -f confcache
14212 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14213 # Let make expand exec_prefix.
14214 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14216 # Transform confdefs.h into DEFS.
14217 # Protect against shell expansion while executing Makefile rules.
14218 # Protect against Makefile macro expansion.
14220 # If the first sed substitution is executed (which looks for macros that
14221 # take arguments), then branch to the quote section. Otherwise,
14222 # look for a macro that doesn't take arguments.
14223 ac_script='
14224 :mline
14225 /\\$/{
14227 s,\\\n,,
14228 b mline
14230 t clear
14231 :clear
14232 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14233 t quote
14234 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14235 t quote
14236 b any
14237 :quote
14238 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14239 s/\[/\\&/g
14240 s/\]/\\&/g
14241 s/\$/$$/g
14243 :any
14246 s/^\n//
14247 s/\n/ /g
14251 DEFS=`sed -n "$ac_script" confdefs.h`
14254 ac_libobjs=
14255 ac_ltlibobjs=
14256 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14257 # 1. Remove the extension, and $U if already installed.
14258 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14259 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14260 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14261 # will be set to the directory where LIBOBJS objects are built.
14262 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14263 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14264 done
14265 LIBOBJS=$ac_libobjs
14267 LTLIBOBJS=$ac_ltlibobjs
14271 : ${CONFIG_STATUS=./config.status}
14272 ac_write_fail=0
14273 ac_clean_files_save=$ac_clean_files
14274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14276 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14277 as_write_fail=0
14278 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14279 #! $SHELL
14280 # Generated by $as_me.
14281 # Run this file to recreate the current configuration.
14282 # Compiler output produced by configure, useful for debugging
14283 # configure, is in config.log if it exists.
14285 debug=false
14286 ac_cs_recheck=false
14287 ac_cs_silent=false
14289 SHELL=\${CONFIG_SHELL-$SHELL}
14290 export SHELL
14291 _ASEOF
14292 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14293 ## -------------------- ##
14294 ## M4sh Initialization. ##
14295 ## -------------------- ##
14297 # Be more Bourne compatible
14298 DUALCASE=1; export DUALCASE # for MKS sh
14299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14300 emulate sh
14301 NULLCMD=:
14302 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14303 # is contrary to our usage. Disable this feature.
14304 alias -g '${1+"$@"}'='"$@"'
14305 setopt NO_GLOB_SUBST
14306 else
14307 case `(set -o) 2>/dev/null` in #(
14308 *posix*) :
14309 set -o posix ;; #(
14310 *) :
14312 esac
14316 as_nl='
14318 export as_nl
14319 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14320 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14321 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14323 # Prefer a ksh shell builtin over an external printf program on Solaris,
14324 # but without wasting forks for bash or zsh.
14325 if test -z "$BASH_VERSION$ZSH_VERSION" \
14326 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14327 as_echo='print -r --'
14328 as_echo_n='print -rn --'
14329 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14330 as_echo='printf %s\n'
14331 as_echo_n='printf %s'
14332 else
14333 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14334 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14335 as_echo_n='/usr/ucb/echo -n'
14336 else
14337 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14338 as_echo_n_body='eval
14339 arg=$1;
14340 case $arg in #(
14341 *"$as_nl"*)
14342 expr "X$arg" : "X\\(.*\\)$as_nl";
14343 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14344 esac;
14345 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14347 export as_echo_n_body
14348 as_echo_n='sh -c $as_echo_n_body as_echo'
14350 export as_echo_body
14351 as_echo='sh -c $as_echo_body as_echo'
14354 # The user is always right.
14355 if test "${PATH_SEPARATOR+set}" != set; then
14356 PATH_SEPARATOR=:
14357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14358 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14359 PATH_SEPARATOR=';'
14364 # IFS
14365 # We need space, tab and new line, in precisely that order. Quoting is
14366 # there to prevent editors from complaining about space-tab.
14367 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14368 # splitting by setting IFS to empty value.)
14369 IFS=" "" $as_nl"
14371 # Find who we are. Look in the path if we contain no directory separator.
14372 case $0 in #((
14373 *[\\/]* ) as_myself=$0 ;;
14374 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375 for as_dir in $PATH
14377 IFS=$as_save_IFS
14378 test -z "$as_dir" && as_dir=.
14379 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14380 done
14381 IFS=$as_save_IFS
14384 esac
14385 # We did not find ourselves, most probably we were run as `sh COMMAND'
14386 # in which case we are not to be found in the path.
14387 if test "x$as_myself" = x; then
14388 as_myself=$0
14390 if test ! -f "$as_myself"; then
14391 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14392 exit 1
14395 # Unset variables that we do not need and which cause bugs (e.g. in
14396 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14397 # suppresses any "Segmentation fault" message there. '((' could
14398 # trigger a bug in pdksh 5.2.14.
14399 for as_var in BASH_ENV ENV MAIL MAILPATH
14400 do eval test x\${$as_var+set} = xset \
14401 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14402 done
14403 PS1='$ '
14404 PS2='> '
14405 PS4='+ '
14407 # NLS nuisances.
14408 LC_ALL=C
14409 export LC_ALL
14410 LANGUAGE=C
14411 export LANGUAGE
14413 # CDPATH.
14414 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14417 # as_fn_error ERROR [LINENO LOG_FD]
14418 # ---------------------------------
14419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14421 # script with status $?, using 1 if that was 0.
14422 as_fn_error ()
14424 as_status=$?; test $as_status -eq 0 && as_status=1
14425 if test "$3"; then
14426 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14427 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14429 $as_echo "$as_me: error: $1" >&2
14430 as_fn_exit $as_status
14431 } # as_fn_error
14434 # as_fn_set_status STATUS
14435 # -----------------------
14436 # Set $? to STATUS, without forking.
14437 as_fn_set_status ()
14439 return $1
14440 } # as_fn_set_status
14442 # as_fn_exit STATUS
14443 # -----------------
14444 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14445 as_fn_exit ()
14447 set +e
14448 as_fn_set_status $1
14449 exit $1
14450 } # as_fn_exit
14452 # as_fn_unset VAR
14453 # ---------------
14454 # Portably unset VAR.
14455 as_fn_unset ()
14457 { eval $1=; unset $1;}
14459 as_unset=as_fn_unset
14460 # as_fn_append VAR VALUE
14461 # ----------------------
14462 # Append the text in VALUE to the end of the definition contained in VAR. Take
14463 # advantage of any shell optimizations that allow amortized linear growth over
14464 # repeated appends, instead of the typical quadratic growth present in naive
14465 # implementations.
14466 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14467 eval 'as_fn_append ()
14469 eval $1+=\$2
14471 else
14472 as_fn_append ()
14474 eval $1=\$$1\$2
14476 fi # as_fn_append
14478 # as_fn_arith ARG...
14479 # ------------------
14480 # Perform arithmetic evaluation on the ARGs, and store the result in the
14481 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14482 # must be portable across $(()) and expr.
14483 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14484 eval 'as_fn_arith ()
14486 as_val=$(( $* ))
14488 else
14489 as_fn_arith ()
14491 as_val=`expr "$@" || test $? -eq 1`
14493 fi # as_fn_arith
14496 if expr a : '\(a\)' >/dev/null 2>&1 &&
14497 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14498 as_expr=expr
14499 else
14500 as_expr=false
14503 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14504 as_basename=basename
14505 else
14506 as_basename=false
14509 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14510 as_dirname=dirname
14511 else
14512 as_dirname=false
14515 as_me=`$as_basename -- "$0" ||
14516 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14517 X"$0" : 'X\(//\)$' \| \
14518 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14519 $as_echo X/"$0" |
14520 sed '/^.*\/\([^/][^/]*\)\/*$/{
14521 s//\1/
14524 /^X\/\(\/\/\)$/{
14525 s//\1/
14528 /^X\/\(\/\).*/{
14529 s//\1/
14532 s/.*/./; q'`
14534 # Avoid depending upon Character Ranges.
14535 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14536 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14537 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14538 as_cr_digits='0123456789'
14539 as_cr_alnum=$as_cr_Letters$as_cr_digits
14541 ECHO_C= ECHO_N= ECHO_T=
14542 case `echo -n x` in #(((((
14543 -n*)
14544 case `echo 'xy\c'` in
14545 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14546 xy) ECHO_C='\c';;
14547 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14548 ECHO_T=' ';;
14549 esac;;
14551 ECHO_N='-n';;
14552 esac
14554 rm -f conf$$ conf$$.exe conf$$.file
14555 if test -d conf$$.dir; then
14556 rm -f conf$$.dir/conf$$.file
14557 else
14558 rm -f conf$$.dir
14559 mkdir conf$$.dir 2>/dev/null
14561 if (echo >conf$$.file) 2>/dev/null; then
14562 if ln -s conf$$.file conf$$ 2>/dev/null; then
14563 as_ln_s='ln -s'
14564 # ... but there are two gotchas:
14565 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14566 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14567 # In both cases, we have to default to `cp -p'.
14568 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14569 as_ln_s='cp -p'
14570 elif ln conf$$.file conf$$ 2>/dev/null; then
14571 as_ln_s=ln
14572 else
14573 as_ln_s='cp -p'
14575 else
14576 as_ln_s='cp -p'
14578 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14579 rmdir conf$$.dir 2>/dev/null
14582 # as_fn_mkdir_p
14583 # -------------
14584 # Create "$as_dir" as a directory, including parents if necessary.
14585 as_fn_mkdir_p ()
14588 case $as_dir in #(
14589 -*) as_dir=./$as_dir;;
14590 esac
14591 test -d "$as_dir" || eval $as_mkdir_p || {
14592 as_dirs=
14593 while :; do
14594 case $as_dir in #(
14595 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14596 *) as_qdir=$as_dir;;
14597 esac
14598 as_dirs="'$as_qdir' $as_dirs"
14599 as_dir=`$as_dirname -- "$as_dir" ||
14600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14601 X"$as_dir" : 'X\(//\)[^/]' \| \
14602 X"$as_dir" : 'X\(//\)$' \| \
14603 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14604 $as_echo X"$as_dir" |
14605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14606 s//\1/
14609 /^X\(\/\/\)[^/].*/{
14610 s//\1/
14613 /^X\(\/\/\)$/{
14614 s//\1/
14617 /^X\(\/\).*/{
14618 s//\1/
14621 s/.*/./; q'`
14622 test -d "$as_dir" && break
14623 done
14624 test -z "$as_dirs" || eval "mkdir $as_dirs"
14625 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14628 } # as_fn_mkdir_p
14629 if mkdir -p . 2>/dev/null; then
14630 as_mkdir_p='mkdir -p "$as_dir"'
14631 else
14632 test -d ./-p && rmdir ./-p
14633 as_mkdir_p=false
14636 if test -x / >/dev/null 2>&1; then
14637 as_test_x='test -x'
14638 else
14639 if ls -dL / >/dev/null 2>&1; then
14640 as_ls_L_option=L
14641 else
14642 as_ls_L_option=
14644 as_test_x='
14645 eval sh -c '\''
14646 if test -d "$1"; then
14647 test -d "$1/.";
14648 else
14649 case $1 in #(
14650 -*)set "./$1";;
14651 esac;
14652 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14653 ???[sx]*):;;*)false;;esac;fi
14654 '\'' sh
14657 as_executable_p=$as_test_x
14659 # Sed expression to map a string onto a valid CPP name.
14660 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14662 # Sed expression to map a string onto a valid variable name.
14663 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14666 exec 6>&1
14667 ## ----------------------------------- ##
14668 ## Main body of $CONFIG_STATUS script. ##
14669 ## ----------------------------------- ##
14670 _ASEOF
14671 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14674 # Save the log message, to keep $0 and so on meaningful, and to
14675 # report actual input values of CONFIG_FILES etc. instead of their
14676 # values after options handling.
14677 ac_log="
14678 This file was extended by $as_me, which was
14679 generated by GNU Autoconf 2.64. Invocation command line was
14681 CONFIG_FILES = $CONFIG_FILES
14682 CONFIG_HEADERS = $CONFIG_HEADERS
14683 CONFIG_LINKS = $CONFIG_LINKS
14684 CONFIG_COMMANDS = $CONFIG_COMMANDS
14685 $ $0 $@
14687 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14690 _ACEOF
14692 case $ac_config_files in *"
14693 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14694 esac
14698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14699 # Files that config.status was made for.
14700 config_files="$ac_config_files"
14702 _ACEOF
14704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14705 ac_cs_usage="\
14706 \`$as_me' instantiates files and other configuration actions
14707 from templates according to the current configuration. Unless the files
14708 and actions are specified as TAGs, all are instantiated by default.
14710 Usage: $0 [OPTION]... [TAG]...
14712 -h, --help print this help, then exit
14713 -V, --version print version number and configuration settings, then exit
14714 -q, --quiet, --silent
14715 do not print progress messages
14716 -d, --debug don't remove temporary files
14717 --recheck update $as_me by reconfiguring in the same conditions
14718 --file=FILE[:TEMPLATE]
14719 instantiate the configuration file FILE
14721 Configuration files:
14722 $config_files
14724 Report bugs to the package provider."
14726 _ACEOF
14727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14728 ac_cs_version="\\
14729 config.status
14730 configured by $0, generated by GNU Autoconf 2.64,
14731 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14733 Copyright (C) 2009 Free Software Foundation, Inc.
14734 This config.status script is free software; the Free Software Foundation
14735 gives unlimited permission to copy, distribute and modify it."
14737 ac_pwd='$ac_pwd'
14738 srcdir='$srcdir'
14739 INSTALL='$INSTALL'
14740 AWK='$AWK'
14741 test -n "\$AWK" || AWK=awk
14742 _ACEOF
14744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14745 # The default lists apply if the user does not specify any file.
14746 ac_need_defaults=:
14747 while test $# != 0
14749 case $1 in
14750 --*=*)
14751 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14752 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14753 ac_shift=:
14756 ac_option=$1
14757 ac_optarg=$2
14758 ac_shift=shift
14760 esac
14762 case $ac_option in
14763 # Handling of the options.
14764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14765 ac_cs_recheck=: ;;
14766 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14767 $as_echo "$ac_cs_version"; exit ;;
14768 --debug | --debu | --deb | --de | --d | -d )
14769 debug=: ;;
14770 --file | --fil | --fi | --f )
14771 $ac_shift
14772 case $ac_optarg in
14773 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14774 esac
14775 as_fn_append CONFIG_FILES " '$ac_optarg'"
14776 ac_need_defaults=false;;
14777 --he | --h | --help | --hel | -h )
14778 $as_echo "$ac_cs_usage"; exit ;;
14779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14780 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14781 ac_cs_silent=: ;;
14783 # This is an error.
14784 -*) as_fn_error "unrecognized option: \`$1'
14785 Try \`$0 --help' for more information." ;;
14787 *) as_fn_append ac_config_targets " $1"
14788 ac_need_defaults=false ;;
14790 esac
14791 shift
14792 done
14794 ac_configure_extra_args=
14796 if $ac_cs_silent; then
14797 exec 6>/dev/null
14798 ac_configure_extra_args="$ac_configure_extra_args --silent"
14801 _ACEOF
14802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14803 if \$ac_cs_recheck; then
14804 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14805 shift
14806 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14807 CONFIG_SHELL='$SHELL'
14808 export CONFIG_SHELL
14809 exec "\$@"
14812 _ACEOF
14813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14814 exec 5>>config.log
14816 echo
14817 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14818 ## Running $as_me. ##
14819 _ASBOX
14820 $as_echo "$ac_log"
14821 } >&5
14823 _ACEOF
14824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14826 # INIT-COMMANDS
14828 extrasub_build="$extrasub_build"
14829 extrasub_host="$extrasub_host"
14830 extrasub_target="$extrasub_target"
14832 _ACEOF
14834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14836 # Handling of arguments.
14837 for ac_config_target in $ac_config_targets
14839 case $ac_config_target in
14840 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14842 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14843 esac
14844 done
14847 # If the user did not use the arguments to specify the items to instantiate,
14848 # then the envvar interface is used. Set only those that are not.
14849 # We use the long form for the default assignment because of an extremely
14850 # bizarre bug on SunOS 4.1.3.
14851 if $ac_need_defaults; then
14852 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14855 # Have a temporary directory for convenience. Make it in the build tree
14856 # simply because there is no reason against having it here, and in addition,
14857 # creating and moving files from /tmp can sometimes cause problems.
14858 # Hook for its removal unless debugging.
14859 # Note that there is a small window in which the directory will not be cleaned:
14860 # after its creation but before its name has been assigned to `$tmp'.
14861 $debug ||
14863 tmp=
14864 trap 'exit_status=$?
14865 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14867 trap 'as_fn_exit 1' 1 2 13 15
14869 # Create a (secure) tmp directory for tmp files.
14872 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14873 test -n "$tmp" && test -d "$tmp"
14874 } ||
14876 tmp=./conf$$-$RANDOM
14877 (umask 077 && mkdir "$tmp")
14878 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14880 # Set up the scripts for CONFIG_FILES section.
14881 # No need to generate them if there are no CONFIG_FILES.
14882 # This happens for instance with `./config.status config.h'.
14883 if test -n "$CONFIG_FILES"; then
14885 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14886 ac_cs_awk_getline=:
14887 ac_cs_awk_pipe_init=
14888 ac_cs_awk_read_file='
14889 while ((getline aline < (F[key])) > 0)
14890 print(aline)
14891 close(F[key])'
14892 ac_cs_awk_pipe_fini=
14893 else
14894 ac_cs_awk_getline=false
14895 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14896 ac_cs_awk_read_file='
14897 print "|#_!!_#|"
14898 print "cat " F[key] " &&"
14899 '$ac_cs_awk_pipe_init
14900 # The final `:' finishes the AND list.
14901 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14903 ac_cr=`echo X | tr X '\015'`
14904 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14905 # But we know of no other shell where ac_cr would be empty at this
14906 # point, so we can use a bashism as a fallback.
14907 if test "x$ac_cr" = x; then
14908 eval ac_cr=\$\'\\r\'
14910 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14911 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14912 ac_cs_awk_cr='\r'
14913 else
14914 ac_cs_awk_cr=$ac_cr
14917 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14918 _ACEOF
14920 # Create commands to substitute file output variables.
14922 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14923 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14924 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14925 echo "_ACAWK" &&
14926 echo "_ACEOF"
14927 } >conf$$files.sh &&
14928 . ./conf$$files.sh ||
14929 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14930 rm -f conf$$files.sh
14933 echo "cat >conf$$subs.awk <<_ACEOF" &&
14934 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14935 echo "_ACEOF"
14936 } >conf$$subs.sh ||
14937 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14938 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14939 ac_delim='%!_!# '
14940 for ac_last_try in false false false false false :; do
14941 . ./conf$$subs.sh ||
14942 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14944 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14945 if test $ac_delim_n = $ac_delim_num; then
14946 break
14947 elif $ac_last_try; then
14948 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14949 else
14950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14952 done
14953 rm -f conf$$subs.sh
14955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14956 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14957 _ACEOF
14958 sed -n '
14960 s/^/S["/; s/!.*/"]=/
14963 s/^[^!]*!//
14964 :repl
14965 t repl
14966 s/'"$ac_delim"'$//
14967 t delim
14970 s/\(.\{148\}\).*/\1/
14971 t more1
14972 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14975 b repl
14976 :more1
14977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14980 s/.\{148\}//
14981 t nl
14982 :delim
14984 s/\(.\{148\}\).*/\1/
14985 t more2
14986 s/["\\]/\\&/g; s/^/"/; s/$/"/
14989 :more2
14990 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14993 s/.\{148\}//
14994 t delim
14995 ' <conf$$subs.awk | sed '
14996 /^[^""]/{
14998 s/\n//
15000 ' >>$CONFIG_STATUS || ac_write_fail=1
15001 rm -f conf$$subs.awk
15002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15003 _ACAWK
15004 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15005 for (key in S) S_is_set[key] = 1
15006 FS = "\a"
15007 \$ac_cs_awk_pipe_init
15010 line = $ 0
15011 nfields = split(line, field, "@")
15012 substed = 0
15013 len = length(field[1])
15014 for (i = 2; i < nfields; i++) {
15015 key = field[i]
15016 keylen = length(key)
15017 if (S_is_set[key]) {
15018 value = S[key]
15019 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15020 len += length(value) + length(field[++i])
15021 substed = 1
15022 } else
15023 len += 1 + keylen
15025 if (nfields == 3 && !substed) {
15026 key = field[2]
15027 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15028 \$ac_cs_awk_read_file
15029 next
15032 print line
15034 \$ac_cs_awk_pipe_fini
15035 _ACAWK
15036 _ACEOF
15037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15038 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15039 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15040 else
15042 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15043 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15044 _ACEOF
15046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15048 # trailing colons and then remove the whole line if VPATH becomes empty
15049 # (actually we leave an empty line to preserve line numbers).
15050 if test "x$srcdir" = x.; then
15051 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15052 s/:*\$(srcdir):*/:/
15053 s/:*\${srcdir}:*/:/
15054 s/:*@srcdir@:*/:/
15055 s/^\([^=]*=[ ]*\):*/\1/
15056 s/:*$//
15057 s/^[^=]*=[ ]*$//
15061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15062 fi # test -n "$CONFIG_FILES"
15065 eval set X " :F $CONFIG_FILES "
15066 shift
15067 for ac_tag
15069 case $ac_tag in
15070 :[FHLC]) ac_mode=$ac_tag; continue;;
15071 esac
15072 case $ac_mode$ac_tag in
15073 :[FHL]*:*);;
15074 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15075 :[FH]-) ac_tag=-:-;;
15076 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15077 esac
15078 ac_save_IFS=$IFS
15079 IFS=:
15080 set x $ac_tag
15081 IFS=$ac_save_IFS
15082 shift
15083 ac_file=$1
15084 shift
15086 case $ac_mode in
15087 :L) ac_source=$1;;
15088 :[FH])
15089 ac_file_inputs=
15090 for ac_f
15092 case $ac_f in
15093 -) ac_f="$tmp/stdin";;
15094 *) # Look for the file first in the build tree, then in the source tree
15095 # (if the path is not absolute). The absolute path cannot be DOS-style,
15096 # because $ac_f cannot contain `:'.
15097 test -f "$ac_f" ||
15098 case $ac_f in
15099 [\\/$]*) false;;
15100 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15101 esac ||
15102 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15103 esac
15104 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15105 as_fn_append ac_file_inputs " '$ac_f'"
15106 done
15108 # Let's still pretend it is `configure' which instantiates (i.e., don't
15109 # use $as_me), people would be surprised to read:
15110 # /* config.h. Generated by config.status. */
15111 configure_input='Generated from '`
15112 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15113 `' by configure.'
15114 if test x"$ac_file" != x-; then
15115 configure_input="$ac_file. $configure_input"
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15117 $as_echo "$as_me: creating $ac_file" >&6;}
15119 # Neutralize special characters interpreted by sed in replacement strings.
15120 case $configure_input in #(
15121 *\&* | *\|* | *\\* )
15122 ac_sed_conf_input=`$as_echo "$configure_input" |
15123 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15124 *) ac_sed_conf_input=$configure_input;;
15125 esac
15127 case $ac_tag in
15128 *:-:* | *:-) cat >"$tmp/stdin" \
15129 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15130 esac
15132 esac
15134 ac_dir=`$as_dirname -- "$ac_file" ||
15135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15136 X"$ac_file" : 'X\(//\)[^/]' \| \
15137 X"$ac_file" : 'X\(//\)$' \| \
15138 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15139 $as_echo X"$ac_file" |
15140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15141 s//\1/
15144 /^X\(\/\/\)[^/].*/{
15145 s//\1/
15148 /^X\(\/\/\)$/{
15149 s//\1/
15152 /^X\(\/\).*/{
15153 s//\1/
15156 s/.*/./; q'`
15157 as_dir="$ac_dir"; as_fn_mkdir_p
15158 ac_builddir=.
15160 case "$ac_dir" in
15161 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15163 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15164 # A ".." for each directory in $ac_dir_suffix.
15165 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15166 case $ac_top_builddir_sub in
15167 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15168 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15169 esac ;;
15170 esac
15171 ac_abs_top_builddir=$ac_pwd
15172 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15173 # for backward compatibility:
15174 ac_top_builddir=$ac_top_build_prefix
15176 case $srcdir in
15177 .) # We are building in place.
15178 ac_srcdir=.
15179 ac_top_srcdir=$ac_top_builddir_sub
15180 ac_abs_top_srcdir=$ac_pwd ;;
15181 [\\/]* | ?:[\\/]* ) # Absolute name.
15182 ac_srcdir=$srcdir$ac_dir_suffix;
15183 ac_top_srcdir=$srcdir
15184 ac_abs_top_srcdir=$srcdir ;;
15185 *) # Relative name.
15186 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15187 ac_top_srcdir=$ac_top_build_prefix$srcdir
15188 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15189 esac
15190 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15193 case $ac_mode in
15196 # CONFIG_FILE
15199 case $INSTALL in
15200 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15201 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15202 esac
15203 _ACEOF
15205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15206 # If the template does not know about datarootdir, expand it.
15207 # FIXME: This hack should be removed a few years after 2.60.
15208 ac_datarootdir_hack=; ac_datarootdir_seen=
15209 ac_sed_dataroot='
15210 /datarootdir/ {
15214 /@datadir@/p
15215 /@docdir@/p
15216 /@infodir@/p
15217 /@localedir@/p
15218 /@mandir@/p'
15219 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15220 *datarootdir*) ac_datarootdir_seen=yes;;
15221 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15223 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15224 _ACEOF
15225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15226 ac_datarootdir_hack='
15227 s&@datadir@&$datadir&g
15228 s&@docdir@&$docdir&g
15229 s&@infodir@&$infodir&g
15230 s&@localedir@&$localedir&g
15231 s&@mandir@&$mandir&g
15232 s&\\\${datarootdir}&$datarootdir&g' ;;
15233 esac
15234 _ACEOF
15236 # Neutralize VPATH when `$srcdir' = `.'.
15237 # Shell code in configure.ac might set extrasub.
15238 # FIXME: do we really want to maintain this feature?
15239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15240 ac_sed_extra="$ac_vpsub
15241 $extrasub
15242 _ACEOF
15243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15246 s|@configure_input@|$ac_sed_conf_input|;t t
15247 s&@top_builddir@&$ac_top_builddir_sub&;t t
15248 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15249 s&@srcdir@&$ac_srcdir&;t t
15250 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15251 s&@top_srcdir@&$ac_top_srcdir&;t t
15252 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15253 s&@builddir@&$ac_builddir&;t t
15254 s&@abs_builddir@&$ac_abs_builddir&;t t
15255 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15256 s&@INSTALL@&$ac_INSTALL&;t t
15257 $ac_datarootdir_hack
15259 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15260 if $ac_cs_awk_getline; then
15261 $AWK -f "$tmp/subs.awk"
15262 else
15263 $AWK -f "$tmp/subs.awk" | $SHELL
15264 fi >$tmp/out \
15265 || as_fn_error "could not create $ac_file" "$LINENO" 5
15267 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15268 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15269 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15271 which seems to be undefined. Please make sure it is defined." >&5
15272 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15273 which seems to be undefined. Please make sure it is defined." >&2;}
15275 rm -f "$tmp/stdin"
15276 case $ac_file in
15277 -) cat "$tmp/out" && rm -f "$tmp/out";;
15278 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15279 esac \
15280 || as_fn_error "could not create $ac_file" "$LINENO" 5
15285 esac
15288 case $ac_file$ac_mode in
15289 "Makefile":F) sed "$extrasub_build" Makefile |
15290 sed "$extrasub_host" |
15291 sed "$extrasub_target" > mf$$
15292 mv -f mf$$ Makefile ;;
15294 esac
15295 done # for ac_tag
15298 as_fn_exit 0
15299 _ACEOF
15300 ac_clean_files=$ac_clean_files_save
15302 test $ac_write_fail = 0 ||
15303 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15306 # configure is writing to config.log, and then calls config.status.
15307 # config.status does its own redirection, appending to config.log.
15308 # Unfortunately, on DOS this fails, as config.log is still kept open
15309 # by configure, so config.status won't be able to write to it; its
15310 # output is simply discarded. So we exec the FD to /dev/null,
15311 # effectively closing config.log, so it can be properly (re)opened and
15312 # appended to by config.status. When coming back to configure, we
15313 # need to make the FD available again.
15314 if test "$no_create" != yes; then
15315 ac_cs_success=:
15316 ac_config_status_args=
15317 test "$silent" = yes &&
15318 ac_config_status_args="$ac_config_status_args --quiet"
15319 exec 5>/dev/null
15320 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15321 exec 5>>config.log
15322 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15323 # would make configure fail if this is the last instruction.
15324 $ac_cs_success || as_fn_exit $?
15326 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15328 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}