fix of gt files config
[official-gcc.git] / configure
blob717f87c5ba8d91c2f9ecb8689e569875670455d4
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 POSTSTAGE1_CONFIGURE_FLAGS
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 clooginc
648 clooglibs
649 pplinc
650 ppllibs
651 poststage1_ldflags
652 poststage1_libs
653 stage1_libs
654 stage1_ldflags
655 extra_mpc_mpfr_configure_flags
656 extra_mpc_gmp_configure_flags
657 extra_mpfr_configure_flags
658 gmpinc
659 gmplibs
660 do_compare
661 GNATMAKE
662 GNATBIND
663 ac_ct_CXX
664 CXXFLAGS
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
673 EXTRA_CONFIGARGS_LIBJAVA
674 target_subdir
675 host_subdir
676 build_subdir
677 build_libsubdir
680 LN_S
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 target_os
686 target_vendor
687 target_cpu
688 target
689 host_os
690 host_vendor
691 host_cpu
692 host
693 target_noncanonical
694 host_noncanonical
695 build_noncanonical
696 build_os
697 build_vendor
698 build_cpu
699 build
700 TOPLEVEL_CONFIGURE_ARGUMENTS
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files='serialization_dependencies
740 host_makefile_frag
741 target_makefile_frag
742 alphaieee_frag
743 ospace_frag'
744 ac_user_opts='
745 enable_option_checking
746 with_build_libsubdir
747 enable_gold
748 enable_ld
749 enable_libquadmath
750 enable_libquadmath_support
751 enable_libada
752 enable_libssp
753 enable_static_libjava
754 enable_bootstrap
755 enable_build_with_cxx
756 enable_build_poststage1_with_cxx
757 with_mpc
758 with_mpc_include
759 with_mpc_lib
760 with_mpfr_dir
761 with_mpfr
762 with_mpfr_include
763 with_mpfr_lib
764 with_gmp_dir
765 with_gmp
766 with_gmp_include
767 with_gmp_lib
768 with_host_libstdcxx
769 with_stage1_ldflags
770 with_stage1_libs
771 with_boot_libs
772 with_boot_ldflags
773 with_ppl
774 with_ppl_include
775 with_ppl_lib
776 enable_ppl_version_check
777 with_cloog
778 with_cloog_include
779 with_cloog_lib
780 enable_cloog_backend
781 enable_cloog_version_check
782 enable_lto
783 enable_stage1_languages
784 enable_objc_gc
785 with_build_sysroot
786 with_debug_prefix_map
787 with_build_config
788 enable_serial_configure
789 with_build_time_tools
790 enable_maintainer_mode
791 enable_stage1_checking
792 enable_werror
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
803 CXXFLAGS
805 build_configargs
806 host_configargs
807 target_configargs
810 DLLTOOL
812 LIPO
814 RANLIB
815 STRIP
816 WINDRES
817 WINDMC
818 OBJCOPY
819 OBJDUMP
820 READELF
821 CC_FOR_TARGET
822 CXX_FOR_TARGET
823 GCC_FOR_TARGET
824 GCJ_FOR_TARGET
825 GFORTRAN_FOR_TARGET
826 GOC_FOR_TARGET
827 AR_FOR_TARGET
828 AS_FOR_TARGET
829 DLLTOOL_FOR_TARGET
830 LD_FOR_TARGET
831 LIPO_FOR_TARGET
832 NM_FOR_TARGET
833 OBJDUMP_FOR_TARGET
834 RANLIB_FOR_TARGET
835 READELF_FOR_TARGET
836 STRIP_FOR_TARGET
837 WINDRES_FOR_TARGET
838 WINDMC_FOR_TARGET'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
900 case $ac_option in
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *) ac_optarg=yes ;;
903 esac
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
909 ac_dashdash=yes ;;
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
928 --config-cache | -C)
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) as_fn_error "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information."
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1245 esac
1246 done
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error "missing argument to $ac_option"
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1294 If a cross compiler is detected then cross compile mode will be used." >&2
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303 test "$silent" = yes && exec 6>/dev/null
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error "pwd does not report name of working directory"
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1332 /^X\(\/\/\)$/{
1333 s//\1/
1336 /^X\(\/\).*/{
1337 s//\1/
1340 s/.*/./; q'`
1341 srcdir=$ac_confdir
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 srcdir=..
1345 else
1346 ac_srcdir_defaulted=no
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1355 pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 case $srcdir in
1367 *" "*)
1368 as_fn_error "path to source, $srcdir, contains spaces"
1370 esac
1371 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1381 # Report the --help message.
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 \`configure' configures this package to adapt to many kinds of systems.
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1394 Defaults for the options are specified in brackets.
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1418 For better control, use the options below.
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1442 cat <<\_ACEOF
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 --target=TARGET configure for building compilers for TARGET [HOST]
1453 _ACEOF
1456 if test -n "$ac_init_help"; then
1458 cat <<\_ACEOF
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1465 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1466 --disable-libquadmath do not build libquadmath directory
1467 --disable-libquadmath-support
1468 disable libquadmath support for Fortran
1469 --enable-libada build libada directory
1470 --enable-libssp build libssp directory
1471 --enable-static-libjava[=ARG]
1472 build static libjava [default=no]
1473 --enable-bootstrap enable bootstrapping [yes if native build]
1474 --enable-build-with-cxx build with C++ compiler instead of C compiler
1475 --enable-build-poststage1-with-cxx
1476 build stages 2 and 3 with C++, not C
1477 --disable-ppl-version-check
1478 disable check for PPL version
1479 --enable-cloog-backend[=BACKEND]
1480 set the CLooG BACKEND used to either isl, ppl or
1481 ppl-legacy (default)
1482 --disable-cloog-version-check
1483 disable check for CLooG version
1484 --enable-lto enable link time optimization support
1485 --enable-stage1-languages[=all]
1486 choose additional languages to build during stage1.
1487 Mostly useful for compiler development
1488 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1489 Objective-C runtime
1490 --enable-serial-[{host,target,build}-]configure
1491 force sequential configuration of sub-packages for
1492 the host, target or build machine, or all
1493 sub-packages
1494 --enable-maintainer-mode
1495 enable make rules and dependencies not useful (and
1496 sometimes confusing) to the casual installer
1497 --enable-stage1-checking[=all]
1498 choose additional checking for stage1 of the
1499 compiler
1500 --enable-werror enable -Werror in bootstrap stage2 and later
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-build-libsubdir=DIR Directory where to find libraries for build system
1506 --with-mpc=PATH specify prefix directory for installed MPC package.
1507 Equivalent to --with-mpc-include=PATH/include plus
1508 --with-mpc-lib=PATH/lib
1509 --with-mpc-include=PATH specify directory for installed MPC include files
1510 --with-mpc-lib=PATH specify directory for the installed MPC library
1511 --with-mpfr-dir=PATH this option has been REMOVED
1512 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1513 Equivalent to --with-mpfr-include=PATH/include plus
1514 --with-mpfr-lib=PATH/lib
1515 --with-mpfr-include=PATH
1516 specify directory for installed MPFR include files
1517 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1518 --with-gmp-dir=PATH this option has been REMOVED
1519 --with-gmp=PATH specify prefix directory for the installed GMP
1520 package. Equivalent to
1521 --with-gmp-include=PATH/include plus
1522 --with-gmp-lib=PATH/lib
1523 --with-gmp-include=PATH specify directory for installed GMP include files
1524 --with-gmp-lib=PATH specify directory for the installed GMP library
1525 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1526 linking with PPL
1527 --with-stage1-ldflags=FLAGS
1528 linker flags for stage1
1529 --with-stage1-libs=LIBS libraries for stage1
1530 --with-boot-libs=LIBS libraries for stage2 and later
1531 --with-boot-ldflags=FLAGS
1532 linker flags for stage2 and later
1533 --with-ppl=PATH specify prefix directory for the installed PPL
1534 package. Equivalent to
1535 --with-ppl-include=PATH/include plus
1536 --with-ppl-lib=PATH/lib
1537 --with-ppl-include=PATH specify directory for installed PPL include files
1538 --with-ppl-lib=PATH specify directory for the installed PPL library
1539 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1540 package. Equivalent to
1541 --with-cloog-include=PATH/include plus
1542 --with-cloog-lib=PATH/lib
1543 --with-cloog-include=PATH
1544 Specify directory for installed CLooG include files
1545 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1546 library
1547 --with-build-sysroot=SYSROOT
1548 use sysroot as the system root during the build
1549 --with-debug-prefix-map='A=B C=D ...'
1550 map A to B, C to D ... in debug information
1551 --with-build-config='NAME NAME2...'
1552 use config/NAME.mk build configuration
1553 --with-build-time-tools=PATH
1554 use given path to find target tools during the build
1556 Some influential environment variables:
1557 CC C compiler command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1560 nonstandard directory <lib dir>
1561 LIBS libraries to pass to the linker, e.g. -l<library>
1562 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563 you have headers in a nonstandard directory <include dir>
1564 CXX C++ compiler command
1565 CXXFLAGS C++ compiler flags
1566 build_configargs
1567 additional configure arguments for build directories
1568 host_configargs
1569 additional configure arguments for host directories
1570 target_configargs
1571 additional configure arguments for target directories
1572 AR AR for the host
1573 AS AS for the host
1574 DLLTOOL DLLTOOL for the host
1575 LD LD for the host
1576 LIPO LIPO for the host
1577 NM NM for the host
1578 RANLIB RANLIB for the host
1579 STRIP STRIP for the host
1580 WINDRES WINDRES for the host
1581 WINDMC WINDMC for the host
1582 OBJCOPY OBJCOPY for the host
1583 OBJDUMP OBJDUMP for the host
1584 READELF READELF for the host
1585 CC_FOR_TARGET
1586 CC for the target
1587 CXX_FOR_TARGET
1588 CXX for the target
1589 GCC_FOR_TARGET
1590 GCC for the target
1591 GCJ_FOR_TARGET
1592 GCJ for the target
1593 GFORTRAN_FOR_TARGET
1594 GFORTRAN for the target
1595 GOC_FOR_TARGET
1596 GOC for the target
1597 AR_FOR_TARGET
1598 AR for the target
1599 AS_FOR_TARGET
1600 AS for the target
1601 DLLTOOL_FOR_TARGET
1602 DLLTOOL for the target
1603 LD_FOR_TARGET
1604 LD for the target
1605 LIPO_FOR_TARGET
1606 LIPO for the target
1607 NM_FOR_TARGET
1608 NM for the target
1609 OBJDUMP_FOR_TARGET
1610 OBJDUMP for the target
1611 RANLIB_FOR_TARGET
1612 RANLIB for the target
1613 READELF_FOR_TARGET
1614 READELF for the target
1615 STRIP_FOR_TARGET
1616 STRIP for the target
1617 WINDRES_FOR_TARGET
1618 WINDRES for the target
1619 WINDMC_FOR_TARGET
1620 WINDMC for the target
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1625 Report bugs to the package provider.
1626 _ACEOF
1627 ac_status=$?
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1635 continue
1636 ac_builddir=.
1638 case "$ac_dir" in
1639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 esac ;;
1648 esac
1649 ac_abs_top_builddir=$ac_pwd
1650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651 # for backward compatibility:
1652 ac_top_builddir=$ac_top_build_prefix
1654 case $srcdir in
1655 .) # We are building in place.
1656 ac_srcdir=.
1657 ac_top_srcdir=$ac_top_builddir_sub
1658 ac_abs_top_srcdir=$ac_pwd ;;
1659 [\\/]* | ?:[\\/]* ) # Absolute name.
1660 ac_srcdir=$srcdir$ac_dir_suffix;
1661 ac_top_srcdir=$srcdir
1662 ac_abs_top_srcdir=$srcdir ;;
1663 *) # Relative name.
1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1667 esac
1668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670 cd "$ac_dir" || { ac_status=$?; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1678 else
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 fi || ac_status=$?
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1682 done
1685 test -n "$ac_init_help" && exit $ac_status
1686 if $ac_init_version; then
1687 cat <<\_ACEOF
1688 configure
1689 generated by GNU Autoconf 2.64
1691 Copyright (C) 2009 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1694 _ACEOF
1695 exit
1698 ## ------------------------ ##
1699 ## Autoconf initialization. ##
1700 ## ------------------------ ##
1702 # ac_fn_c_try_compile LINENO
1703 # --------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_compile ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1733 ac_retval=1
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736 return $ac_retval
1738 } # ac_fn_c_try_compile
1740 # ac_fn_cxx_try_compile LINENO
1741 # ----------------------------
1742 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_cxx_try_compile ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext
1747 if { { ac_try="$ac_compile"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_compile") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_cxx_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest.$ac_objext; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1771 ac_retval=1
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 return $ac_retval
1776 } # ac_fn_cxx_try_compile
1778 # ac_fn_c_try_link LINENO
1779 # -----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_link ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext conftest$ac_exeext
1785 if { { ac_try="$ac_link"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest$ac_exeext && {
1804 test "$cross_compiling" = yes ||
1805 $as_test_x conftest$ac_exeext
1806 }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1812 ac_retval=1
1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816 # interfere with the next link command; also delete a directory that is
1817 # left behind by Apple's compiler. We do this before executing the actions.
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 return $ac_retval
1822 } # ac_fn_c_try_link
1823 cat >config.log <<_ACEOF
1824 This file contains any messages produced by compilers while
1825 running configure, to aid debugging if configure makes a mistake.
1827 It was created by $as_me, which was
1828 generated by GNU Autoconf 2.64. Invocation command line was
1830 $ $0 $@
1832 _ACEOF
1833 exec 5>>config.log
1835 cat <<_ASUNAME
1836 ## --------- ##
1837 ## Platform. ##
1838 ## --------- ##
1840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1849 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1850 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1853 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1854 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1855 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1857 _ASUNAME
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 $as_echo "PATH: $as_dir"
1865 done
1866 IFS=$as_save_IFS
1868 } >&5
1870 cat >&5 <<_ACEOF
1873 ## ----------- ##
1874 ## Core tests. ##
1875 ## ----------- ##
1877 _ACEOF
1880 # Keep a trace of the command line.
1881 # Strip out --no-create and --no-recursion so they do not pile up.
1882 # Strip out --silent because we don't want to record it for future runs.
1883 # Also quote any args containing shell meta-characters.
1884 # Make two passes to allow for proper duplicate-argument suppression.
1885 ac_configure_args=
1886 ac_configure_args0=
1887 ac_configure_args1=
1888 ac_must_keep_next=false
1889 for ac_pass in 1 2
1891 for ac_arg
1893 case $ac_arg in
1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896 | -silent | --silent | --silen | --sile | --sil)
1897 continue ;;
1898 *\'*)
1899 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 esac
1901 case $ac_pass in
1902 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1904 as_fn_append ac_configure_args1 " '$ac_arg'"
1905 if test $ac_must_keep_next = true; then
1906 ac_must_keep_next=false # Got value, back to normal.
1907 else
1908 case $ac_arg in
1909 *=* | --config-cache | -C | -disable-* | --disable-* \
1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912 | -with-* | --with-* | -without-* | --without-* | --x)
1913 case "$ac_configure_args0 " in
1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1915 esac
1917 -* ) ac_must_keep_next=true ;;
1918 esac
1920 as_fn_append ac_configure_args " '$ac_arg'"
1922 esac
1923 done
1924 done
1925 { ac_configure_args0=; unset ac_configure_args0;}
1926 { ac_configure_args1=; unset ac_configure_args1;}
1928 # When interrupted or exit'd, cleanup temporary files, and complete
1929 # config.log. We remove comments because anyway the quotes in there
1930 # would cause problems or look ugly.
1931 # WARNING: Use '\'' to represent an apostrophe within the trap.
1932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933 trap 'exit_status=$?
1934 # Save into config.log some information that might help in debugging.
1936 echo
1938 cat <<\_ASBOX
1939 ## ---------------- ##
1940 ## Cache variables. ##
1941 ## ---------------- ##
1942 _ASBOX
1943 echo
1944 # The following way of writing the cache mishandles newlines in values,
1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947 eval ac_val=\$$ac_var
1948 case $ac_val in #(
1949 *${as_nl}*)
1950 case $ac_var in #(
1951 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953 esac
1954 case $ac_var in #(
1955 _ | IFS | as_nl) ;; #(
1956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957 *) { eval $ac_var=; unset $ac_var;} ;;
1958 esac ;;
1959 esac
1960 done
1961 (set) 2>&1 |
1962 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963 *${as_nl}ac_space=\ *)
1964 sed -n \
1965 "s/'\''/'\''\\\\'\'''\''/g;
1966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967 ;; #(
1969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1971 esac |
1972 sort
1974 echo
1976 cat <<\_ASBOX
1977 ## ----------------- ##
1978 ## Output variables. ##
1979 ## ----------------- ##
1980 _ASBOX
1981 echo
1982 for ac_var in $ac_subst_vars
1984 eval ac_val=\$$ac_var
1985 case $ac_val in
1986 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987 esac
1988 $as_echo "$ac_var='\''$ac_val'\''"
1989 done | sort
1990 echo
1992 if test -n "$ac_subst_files"; then
1993 cat <<\_ASBOX
1994 ## ------------------- ##
1995 ## File substitutions. ##
1996 ## ------------------- ##
1997 _ASBOX
1998 echo
1999 for ac_var in $ac_subst_files
2001 eval ac_val=\$$ac_var
2002 case $ac_val in
2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 esac
2005 $as_echo "$ac_var='\''$ac_val'\''"
2006 done | sort
2007 echo
2010 if test -s confdefs.h; then
2011 cat <<\_ASBOX
2012 ## ----------- ##
2013 ## confdefs.h. ##
2014 ## ----------- ##
2015 _ASBOX
2016 echo
2017 cat confdefs.h
2018 echo
2020 test "$ac_signal" != 0 &&
2021 $as_echo "$as_me: caught signal $ac_signal"
2022 $as_echo "$as_me: exit $exit_status"
2023 } >&5
2024 rm -f core *.core core.conftest.* &&
2025 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2026 exit $exit_status
2028 for ac_signal in 1 2 13 15; do
2029 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2030 done
2031 ac_signal=0
2033 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2034 rm -f -r conftest* confdefs.h
2036 $as_echo "/* confdefs.h */" > confdefs.h
2038 # Predefined preprocessor variables.
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_NAME "$PACKAGE_NAME"
2042 _ACEOF
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2046 _ACEOF
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2050 _ACEOF
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_STRING "$PACKAGE_STRING"
2054 _ACEOF
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2058 _ACEOF
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_URL "$PACKAGE_URL"
2062 _ACEOF
2065 # Let the site file select an alternate cache file if it wants to.
2066 # Prefer an explicitly selected file to automatically selected ones.
2067 ac_site_file1=NONE
2068 ac_site_file2=NONE
2069 if test -n "$CONFIG_SITE"; then
2070 ac_site_file1=$CONFIG_SITE
2071 elif test "x$prefix" != xNONE; then
2072 ac_site_file1=$prefix/share/config.site
2073 ac_site_file2=$prefix/etc/config.site
2074 else
2075 ac_site_file1=$ac_default_prefix/share/config.site
2076 ac_site_file2=$ac_default_prefix/etc/config.site
2078 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2080 test "x$ac_site_file" = xNONE && continue
2081 if test -r "$ac_site_file"; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2083 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2084 sed 's/^/| /' "$ac_site_file" >&5
2085 . "$ac_site_file"
2087 done
2089 if test -r "$cache_file"; then
2090 # Some versions of bash will fail to source /dev/null (special
2091 # files actually), so we avoid doing that.
2092 if test -f "$cache_file"; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2094 $as_echo "$as_me: loading cache $cache_file" >&6;}
2095 case $cache_file in
2096 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097 *) . "./$cache_file";;
2098 esac
2100 else
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2102 $as_echo "$as_me: creating cache $cache_file" >&6;}
2103 >$cache_file
2106 # Check that the precious variables saved in the cache have kept the same
2107 # value.
2108 ac_cache_corrupted=false
2109 for ac_var in $ac_precious_vars; do
2110 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2111 eval ac_new_set=\$ac_env_${ac_var}_set
2112 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2113 eval ac_new_val=\$ac_env_${ac_var}_value
2114 case $ac_old_set,$ac_new_set in
2115 set,)
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2117 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2118 ac_cache_corrupted=: ;;
2119 ,set)
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2121 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2122 ac_cache_corrupted=: ;;
2123 ,);;
2125 if test "x$ac_old_val" != "x$ac_new_val"; then
2126 # differences in whitespace do not lead to failure.
2127 ac_old_val_w=`echo x $ac_old_val`
2128 ac_new_val_w=`echo x $ac_new_val`
2129 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2131 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2132 ac_cache_corrupted=:
2133 else
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2135 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2136 eval $ac_var=\$ac_old_val
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2139 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2141 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2142 fi;;
2143 esac
2144 # Pass precious variables to config.status.
2145 if test "$ac_new_set" = set; then
2146 case $ac_new_val in
2147 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148 *) ac_arg=$ac_var=$ac_new_val ;;
2149 esac
2150 case " $ac_configure_args " in
2151 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2152 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2153 esac
2155 done
2156 if $ac_cache_corrupted; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2160 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2161 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2163 ## -------------------- ##
2164 ## Main body of script. ##
2165 ## -------------------- ##
2167 ac_ext=c
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2181 progname=$0
2182 # if PWD already has a value, it is probably wrong.
2183 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2185 # Export original configure arguments for use by sub-configures.
2186 # Quote arguments with shell meta charatcers.
2187 TOPLEVEL_CONFIGURE_ARGUMENTS=
2188 set -- "$progname" "$@"
2189 for ac_arg
2191 case "$ac_arg" in
2192 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2193 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2194 # if the argument is of the form -foo=baz, quote the baz part only
2195 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2196 *) ;;
2197 esac
2198 # Add the quoted argument to the list.
2199 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2200 done
2201 if test "$silent" = yes; then
2202 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2204 # Remove the initial space we just introduced and, as these will be
2205 # expanded by make, quote '$'.
2206 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2209 # Find the build, host, and target systems.
2210 ac_aux_dir=
2211 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212 for ac_t in install-sh install.sh shtool; do
2213 if test -f "$ac_dir/$ac_t"; then
2214 ac_aux_dir=$ac_dir
2215 ac_install_sh="$ac_aux_dir/$ac_t -c"
2216 break 2
2218 done
2219 done
2220 if test -z "$ac_aux_dir"; then
2221 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2224 # These three variables are undocumented and unsupported,
2225 # and are intended to be withdrawn in a future Autoconf release.
2226 # They can cause serious problems if a builder's source tree is in a directory
2227 # whose full name contains unusual characters.
2228 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2229 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2230 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2233 # Make sure we can run config.sub.
2234 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2235 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2238 $as_echo_n "checking build system type... " >&6; }
2239 if test "${ac_cv_build+set}" = set; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 ac_build_alias=$build_alias
2243 test "x$ac_build_alias" = x &&
2244 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2245 test "x$ac_build_alias" = x &&
2246 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2247 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2248 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2252 $as_echo "$ac_cv_build" >&6; }
2253 case $ac_cv_build in
2254 *-*-*) ;;
2255 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2256 esac
2257 build=$ac_cv_build
2258 ac_save_IFS=$IFS; IFS='-'
2259 set x $ac_cv_build
2260 shift
2261 build_cpu=$1
2262 build_vendor=$2
2263 shift; shift
2264 # Remember, the first character of IFS is used to create $*,
2265 # except with old shells:
2266 build_os=$*
2267 IFS=$ac_save_IFS
2268 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2271 case ${build_alias} in
2272 "") build_noncanonical=${build} ;;
2273 *) build_noncanonical=${build_alias} ;;
2274 esac
2278 case ${host_alias} in
2279 "") host_noncanonical=${build_noncanonical} ;;
2280 *) host_noncanonical=${host_alias} ;;
2281 esac
2285 case ${target_alias} in
2286 "") target_noncanonical=${host_noncanonical} ;;
2287 *) target_noncanonical=${target_alias} ;;
2288 esac
2293 test "$host_noncanonical" = "$target_noncanonical" &&
2294 test "$program_prefix$program_suffix$program_transform_name" = \
2295 NONENONEs,x,x, &&
2296 program_transform_name=s,y,y,
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2299 $as_echo_n "checking host system type... " >&6; }
2300 if test "${ac_cv_host+set}" = set; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 if test "x$host_alias" = x; then
2304 ac_cv_host=$ac_cv_build
2305 else
2306 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2307 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2312 $as_echo "$ac_cv_host" >&6; }
2313 case $ac_cv_host in
2314 *-*-*) ;;
2315 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2316 esac
2317 host=$ac_cv_host
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_host
2320 shift
2321 host_cpu=$1
2322 host_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 host_os=$*
2327 IFS=$ac_save_IFS
2328 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2332 $as_echo_n "checking target system type... " >&6; }
2333 if test "${ac_cv_target+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 if test "x$target_alias" = x; then
2337 ac_cv_target=$ac_cv_host
2338 else
2339 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2345 $as_echo "$ac_cv_target" >&6; }
2346 case $ac_cv_target in
2347 *-*-*) ;;
2348 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2349 esac
2350 target=$ac_cv_target
2351 ac_save_IFS=$IFS; IFS='-'
2352 set x $ac_cv_target
2353 shift
2354 target_cpu=$1
2355 target_vendor=$2
2356 shift; shift
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2359 target_os=$*
2360 IFS=$ac_save_IFS
2361 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2364 # The aliases save the names the user supplied, while $host etc.
2365 # will get canonicalized.
2366 test -n "$target_alias" &&
2367 test "$program_prefix$program_suffix$program_transform_name" = \
2368 NONENONEs,x,x, &&
2369 program_prefix=${target_alias}-
2371 test "$program_prefix" != NONE &&
2372 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2373 # Use a double $ so make ignores it.
2374 test "$program_suffix" != NONE &&
2375 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2376 # Double any \ or $.
2377 # By default was `s,x,x', remove it if useless.
2378 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2379 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2383 # Get 'install' or 'install-sh' and its variants.
2384 # Find a good install program. We prefer a C program (faster),
2385 # so one script is as good as another. But avoid the broken or
2386 # incompatible versions:
2387 # SysV /etc/install, /usr/sbin/install
2388 # SunOS /usr/etc/install
2389 # IRIX /sbin/install
2390 # AIX /bin/install
2391 # AmigaOS /C/install, which installs bootblocks on floppy discs
2392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2395 # OS/2's system install, which has a completely different semantic
2396 # ./install, which can be erroneously created by make from ./install.sh.
2397 # Reject install programs that cannot install multiple files.
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2400 if test -z "$INSTALL"; then
2401 if test "${ac_cv_path_install+set}" = set; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 # Account for people who put trailing slashes in PATH elements.
2410 case $as_dir/ in #((
2411 ./ | .// | /[cC]/* | \
2412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2414 /usr/ucb/* ) ;;
2416 # OSF1 and SCO ODT 3.0 have their own names for install.
2417 # Don't use installbsd from OSF since it installs stuff as root
2418 # by default.
2419 for ac_prog in ginstall scoinst install; do
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2422 if test $ac_prog = install &&
2423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424 # AIX install. It has an incompatible calling convention.
2426 elif test $ac_prog = install &&
2427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428 # program-specific install script used by HP pwplus--don't use.
2430 else
2431 rm -rf conftest.one conftest.two conftest.dir
2432 echo one > conftest.one
2433 echo two > conftest.two
2434 mkdir conftest.dir
2435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2436 test -s conftest.one && test -s conftest.two &&
2437 test -s conftest.dir/conftest.one &&
2438 test -s conftest.dir/conftest.two
2439 then
2440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2441 break 3
2445 done
2446 done
2448 esac
2450 done
2451 IFS=$as_save_IFS
2453 rm -rf conftest.one conftest.two conftest.dir
2456 if test "${ac_cv_path_install+set}" = set; then
2457 INSTALL=$ac_cv_path_install
2458 else
2459 # As a last resort, use the slow shell script. Don't cache a
2460 # value for INSTALL within a source directory, because that will
2461 # break other packages using the cache if that directory is
2462 # removed, or if the value is a relative name.
2463 INSTALL=$ac_install_sh
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2467 $as_echo "$INSTALL" >&6; }
2469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2470 # It thinks the first close brace ends the variable substitution.
2471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2478 $as_echo_n "checking whether ln works... " >&6; }
2479 if test "${acx_cv_prog_LN+set}" = set; then :
2480 $as_echo_n "(cached) " >&6
2481 else
2482 rm -f conftestdata_t
2483 echo >conftestdata_f
2484 if ln conftestdata_f conftestdata_t 2>/dev/null
2485 then
2486 acx_cv_prog_LN=ln
2487 else
2488 acx_cv_prog_LN=no
2490 rm -f conftestdata_f conftestdata_t
2493 if test $acx_cv_prog_LN = no; then
2494 LN="cp"
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2496 $as_echo "no, using $LN" >&6; }
2497 else
2498 LN="$acx_cv_prog_LN"
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2500 $as_echo "yes" >&6; }
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2504 $as_echo_n "checking whether ln -s works... " >&6; }
2505 LN_S=$as_ln_s
2506 if test "$LN_S" = "ln -s"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508 $as_echo "yes" >&6; }
2509 else
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2511 $as_echo "no, using $LN_S" >&6; }
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2515 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2516 if test "${ac_cv_path_SED+set}" = set; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2520 for ac_i in 1 2 3 4 5 6 7; do
2521 ac_script="$ac_script$as_nl$ac_script"
2522 done
2523 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2524 { ac_script=; unset ac_script;}
2525 if test -z "$SED"; then
2526 ac_path_SED_found=false
2527 # Loop through the user's path and test for each of PROGNAME-LIST
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_prog in sed gsed; do
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2536 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2537 # Check for GNU ac_path_SED and select it if it is found.
2538 # Check for GNU $ac_path_SED
2539 case `"$ac_path_SED" --version 2>&1` in
2540 *GNU*)
2541 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2543 ac_count=0
2544 $as_echo_n 0123456789 >"conftest.in"
2545 while :
2547 cat "conftest.in" "conftest.in" >"conftest.tmp"
2548 mv "conftest.tmp" "conftest.in"
2549 cp "conftest.in" "conftest.nl"
2550 $as_echo '' >> "conftest.nl"
2551 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2553 as_fn_arith $ac_count + 1 && ac_count=$as_val
2554 if test $ac_count -gt ${ac_path_SED_max-0}; then
2555 # Best one so far, save it but keep looking for a better one
2556 ac_cv_path_SED="$ac_path_SED"
2557 ac_path_SED_max=$ac_count
2559 # 10*(2^10) chars as input seems more than enough
2560 test $ac_count -gt 10 && break
2561 done
2562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2563 esac
2565 $ac_path_SED_found && break 3
2566 done
2567 done
2568 done
2569 IFS=$as_save_IFS
2570 if test -z "$ac_cv_path_SED"; then
2571 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2573 else
2574 ac_cv_path_SED=$SED
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2579 $as_echo "$ac_cv_path_SED" >&6; }
2580 SED="$ac_cv_path_SED"
2581 rm -f conftest.sed
2583 for ac_prog in gawk mawk nawk awk
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if test "${ac_cv_prog_AWK+set}" = set; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 if test -n "$AWK"; then
2593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_AWK="$ac_prog"
2603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2606 done
2607 done
2608 IFS=$as_save_IFS
2612 AWK=$ac_cv_prog_AWK
2613 if test -n "$AWK"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2615 $as_echo "$AWK" >&6; }
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2622 test -n "$AWK" && break
2623 done
2626 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2628 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2629 # a relative path.
2630 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2631 INSTALL="${srcpwd}/install-sh -c"
2634 # Set srcdir to "." if that's what it is.
2635 # This is important for multilib support.
2636 pwd=`${PWDCMD-pwd}`
2637 if test "${pwd}" = "${srcpwd}" ; then
2638 srcdir=.
2641 topsrcdir=$srcpwd
2643 extra_host_args=
2645 ### To add a new directory to the tree, first choose whether it is a target
2646 ### or a host dependent tool. Then put it into the appropriate list
2647 ### (library or tools, host or target), doing a dependency sort.
2649 # Subdirs will be configured in the order listed in build_configdirs,
2650 # configdirs, or target_configdirs; see the serialization section below.
2652 # Dependency sorting is only needed when *configuration* must be done in
2653 # a particular order. In all cases a dependency should be specified in
2654 # the Makefile, whether or not it's implicitly specified here.
2656 # Double entries in build_configdirs, configdirs, or target_configdirs may
2657 # cause circular dependencies and break everything horribly.
2659 # these library is used by various programs built for the build
2660 # environment
2662 build_libs="build-libiberty"
2664 # these tools are built for the build environment
2665 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2667 # these libraries are used by various programs built for the host environment
2669 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2671 # these tools are built for the host environment
2672 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2673 # know that we are building the simulator.
2674 # binutils, gas and ld appear in that order because it makes sense to run
2675 # "make check" in that particular order.
2676 # If --enable-gold is used, "gold" may replace "ld".
2677 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2679 # libgcj represents the runtime libraries only used by gcj.
2680 libgcj="target-libffi \
2681 target-zlib \
2682 target-libjava"
2684 # these libraries are built for the target environment, and are built after
2685 # the host libraries and the host tools (which may be a cross compiler)
2686 # Note that libiberty is not a target library.
2687 target_libraries="target-libgcc \
2688 target-libgloss \
2689 target-newlib \
2690 target-libgomp \
2691 target-libitm \
2692 target-libstdc++-v3 \
2693 target-libmudflap \
2694 target-libssp \
2695 target-libquadmath \
2696 target-libgfortran \
2697 target-boehm-gc \
2698 ${libgcj} \
2699 target-libobjc \
2700 target-libada \
2701 target-libgo \
2702 target-libgpython"
2704 # these tools are built using the target libraries, and are intended to
2705 # run only in the target environment
2707 # note: any program that *uses* libraries that are in the "target_libraries"
2708 # list belongs in this list.
2710 target_tools="target-rda"
2712 ################################################################################
2714 ## All tools belong in one of the four categories, and are assigned above
2715 ## We assign ${configdirs} this way to remove all embedded newlines. This
2716 ## is important because configure will choke if they ever get through.
2717 ## ${configdirs} is directories we build using the host tools.
2718 ## ${target_configdirs} is directories we build using the target tools.
2719 configdirs=`echo ${host_libs} ${host_tools}`
2720 target_configdirs=`echo ${target_libraries} ${target_tools}`
2721 build_configdirs=`echo ${build_libs} ${build_tools}`
2725 ################################################################################
2727 srcname="gnu development package"
2729 # This gets set non-empty for some net releases of packages.
2730 appdirs=""
2732 # Define is_cross_compiler to save on calls to 'test'.
2733 is_cross_compiler=
2734 if test x"${host}" = x"${target}" ; then
2735 is_cross_compiler=no
2736 else
2737 is_cross_compiler=yes
2740 # Find the build and target subdir names.
2742 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2743 # have matching libraries, they should use host libraries: Makefile.tpl
2744 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2745 # However, they still use the build modules, because the corresponding
2746 # host modules (e.g. bison) are only built for the host when bootstrap
2747 # finishes. So:
2748 # - build_subdir is where we find build modules, and never changes.
2749 # - build_libsubdir is where we find build libraries, and can be overridden.
2751 # Prefix 'build-' so this never conflicts with target_subdir.
2752 build_subdir="build-${build_noncanonical}"
2754 # Check whether --with-build-libsubdir was given.
2755 if test "${with_build_libsubdir+set}" = set; then :
2756 withval=$with_build_libsubdir; build_libsubdir="$withval"
2757 else
2758 build_libsubdir="$build_subdir"
2761 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2762 if ( test $srcdir = . && test -d gcc ) \
2763 || test -d $srcdir/../host-${host_noncanonical}; then
2764 host_subdir="host-${host_noncanonical}"
2765 else
2766 host_subdir=.
2768 # No prefix.
2769 target_subdir=${target_noncanonical}
2771 # Be sure to cover against remnants of an in-tree build.
2772 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2773 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2774 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2777 # Skipdirs are removed silently.
2778 skipdirs=
2779 # Noconfigdirs are removed loudly.
2780 noconfigdirs=""
2782 use_gnu_ld=
2783 # Make sure we don't let GNU ld be added if we didn't want it.
2784 if test x$with_gnu_ld = xno ; then
2785 use_gnu_ld=no
2786 noconfigdirs="$noconfigdirs ld gold"
2789 use_gnu_as=
2790 # Make sure we don't let GNU as be added if we didn't want it.
2791 if test x$with_gnu_as = xno ; then
2792 use_gnu_as=no
2793 noconfigdirs="$noconfigdirs gas"
2796 use_included_zlib=
2797 # Make sure we don't let ZLIB be added if we didn't want it.
2798 if test x$with_system_zlib = xyes ; then
2799 use_included_zlib=no
2800 noconfigdirs="$noconfigdirs zlib"
2803 # some tools are so dependent upon X11 that if we're not building with X,
2804 # it's not even worth trying to configure, much less build, that tool.
2806 case ${with_x} in
2807 yes | "") ;; # the default value for this tree is that X11 is available
2809 skipdirs="${skipdirs} tk itcl libgui"
2810 # We won't be able to build gdbtk without X.
2811 enable_gdbtk=no
2813 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2814 esac
2816 # Some are only suitable for cross toolchains.
2817 # Remove these if host=target.
2818 cross_only="target-libgloss target-newlib target-opcodes"
2820 case $is_cross_compiler in
2821 no) skipdirs="${skipdirs} ${cross_only}" ;;
2822 esac
2824 # If both --with-headers and --with-libs are specified, default to
2825 # --without-newlib.
2826 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2827 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2828 if test x"${with_newlib}" = x ; then
2829 with_newlib=no
2833 # Recognize --with-newlib/--without-newlib.
2834 case ${with_newlib} in
2835 no) skipdirs="${skipdirs} target-newlib" ;;
2836 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2837 esac
2839 # Handle --enable-gold, --enable-ld.
2840 # --disable-gold [--enable-ld]
2841 # Build only ld. Default option.
2842 # --enable-gold [--enable-ld]
2843 # Build both gold and ld. Install gold as "ld.gold", install ld
2844 # as "ld.bfd" and "ld".
2845 # --enable-gold=default [--enable-ld]
2846 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2847 # install ld as "ld.bfd".
2848 # --enable-gold[=default] --disable-ld
2849 # Build only gold, which is then installed as both "ld.gold" and "ld".
2850 # --enable-gold --enable-ld=default
2851 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2852 # and ld.bfd).
2853 # In other words, ld is default
2854 # --enable-gold=default --enable-ld=default
2855 # Error.
2857 default_ld=
2858 # Check whether --enable-gold was given.
2859 if test "${enable_gold+set}" = set; then :
2860 enableval=$enable_gold; ENABLE_GOLD=$enableval
2861 else
2862 ENABLE_GOLD=no
2865 case "${ENABLE_GOLD}" in
2866 yes|default)
2867 # Check for ELF target.
2868 is_elf=no
2869 case "${target}" in
2870 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2871 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2872 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2873 | *-*-solaris2* | *-*-nto*)
2874 case "${target}" in
2875 *-*-linux*aout* | *-*-linux*oldld*)
2878 is_elf=yes
2880 esac
2881 esac
2883 if test "$is_elf" = "yes"; then
2884 # Check for target supported by gold.
2885 case "${target}" in
2886 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2887 configdirs="$configdirs gold"
2888 if test x${ENABLE_GOLD} = xdefault; then
2889 default_ld=gold
2891 ENABLE_GOLD=yes
2893 esac
2899 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2901 esac
2903 # Check whether --enable-ld was given.
2904 if test "${enable_ld+set}" = set; then :
2905 enableval=$enable_ld; ENABLE_LD=$enableval
2906 else
2907 ENABLE_LD=yes
2911 case "${ENABLE_LD}" in
2912 default)
2913 if test x${default_ld} != x; then
2914 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2917 yes)
2920 if test x${ENABLE_GOLD} != xyes; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2922 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2924 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2927 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2929 esac
2931 # Configure extra directories which are host specific
2933 case "${host}" in
2934 *-cygwin*)
2935 configdirs="$configdirs libtermcap" ;;
2936 esac
2938 # A target can indicate whether a language isn't supported for some reason.
2939 # Only spaces may be used in this macro; not newlines or tabs.
2940 unsupported_languages=
2942 # Remove more programs from consideration, based on the host or
2943 # target this usually means that a port of the program doesn't
2944 # exist yet.
2946 case "${host}" in
2947 i[3456789]86-*-msdosdjgpp*)
2948 noconfigdirs="$noconfigdirs tcl tk itcl"
2950 esac
2953 # Check whether --enable-libquadmath was given.
2954 if test "${enable_libquadmath+set}" = set; then :
2955 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2956 else
2957 ENABLE_LIBQUADMATH=yes
2960 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2961 noconfigdirs="$noconfigdirs target-libquadmath"
2965 # Check whether --enable-libquadmath-support was given.
2966 if test "${enable_libquadmath_support+set}" = set; then :
2967 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2968 else
2969 ENABLE_LIBQUADMATH_SUPPORT=yes
2972 enable_libquadmath_support=
2973 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2974 enable_libquadmath_support=no
2978 # Check whether --enable-libada was given.
2979 if test "${enable_libada+set}" = set; then :
2980 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2981 else
2982 ENABLE_LIBADA=yes
2985 if test "${ENABLE_LIBADA}" != "yes" ; then
2986 noconfigdirs="$noconfigdirs gnattools"
2989 # Check whether --enable-libssp was given.
2990 if test "${enable_libssp+set}" = set; then :
2991 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2992 else
2993 ENABLE_LIBSSP=yes
2997 # Save it here so that, even in case of --enable-libgcj, if the Java
2998 # front-end isn't enabled, we still get libgcj disabled.
2999 libgcj_saved=$libgcj
3000 case $enable_libgcj in
3001 yes)
3002 # If we reset it here, it won't get added to noconfigdirs in the
3003 # target-specific build rules, so it will be forcibly enabled
3004 # (unless the Java language itself isn't enabled).
3005 libgcj=
3008 # Make sure we get it printed in the list of not supported target libs.
3009 # Don't disable libffi, though, other languages use it.
3010 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3011 # Clear libgcj_saved so that even if java is enabled libffi won't be
3012 # built.
3013 libgcj_saved=
3015 esac
3017 # Check whether --enable-static-libjava was given.
3018 if test "${enable_static_libjava+set}" = set; then :
3019 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3020 else
3021 ENABLE_STATIC_LIBJAVA=no
3024 enable_static_libjava=
3025 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3026 enable_static_libjava=yes
3029 if test x$enable_static_libjava != xyes ; then
3030 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3034 # Disable libmudflap on some systems.
3035 if test x$enable_libmudflap = x ; then
3036 case "${target}" in
3037 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3038 # Enable libmudflap by default in GNU and friends.
3040 *-*-freebsd*)
3041 # Enable libmudflap by default in FreeBSD.
3044 # Disable it by default everywhere else.
3045 noconfigdirs="$noconfigdirs target-libmudflap"
3047 esac
3050 # Disable libgomp on non POSIX hosted systems.
3051 if test x$enable_libgomp = x ; then
3052 # Enable libgomp by default on hosted POSIX systems.
3053 case "${target}" in
3054 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3056 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3058 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3060 *-*-darwin* | *-*-aix*)
3063 noconfigdirs="$noconfigdirs target-libgomp"
3065 esac
3068 # Disable libitm on unsupported systems.
3069 if test -d ${srcdir}/libitm; then
3070 if test x$enable_libitm = x; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3072 $as_echo_n "checking for libitm support... " >&6; }
3073 if (srcdir=${srcdir}/libitm; \
3074 . ${srcdir}/configure.tgt; \
3075 test -n "$UNSUPPORTED")
3076 then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 noconfigdirs="$noconfigdirs target-libitm"
3080 else
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082 $as_echo "yes" >&6; }
3087 # Disable libssp for some systems.
3088 case "${target}" in
3089 avr-*-*)
3090 # No hosted I/O support.
3091 noconfigdirs="$noconfigdirs target-libssp"
3093 powerpc-*-aix* | rs6000-*-aix*)
3094 noconfigdirs="$noconfigdirs target-libssp"
3096 rl78-*-*)
3097 # libssp uses a misaligned load to trigger a fault, but the RL78
3098 # doesn't fault for those - instead, it gives a build-time error
3099 # for explicit misaligned loads.
3100 noconfigdirs="$noconfigdirs target-libssp"
3102 esac
3104 # Disable libstdc++-v3 for some systems.
3105 case "${target}" in
3106 *-*-vxworks*)
3107 # VxWorks uses the Dinkumware C++ library.
3108 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3110 arm*-wince-pe*)
3111 # the C++ libraries don't build on top of CE's C libraries
3112 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3114 avr-*-*)
3115 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3117 esac
3119 # Disable Fortran for some systems.
3120 case "${target}" in
3121 mmix-*-*)
3122 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3123 unsupported_languages="$unsupported_languages fortran"
3125 esac
3127 # Disable Java if libffi is not supported.
3128 case "${target}" in
3129 alpha*-*-*)
3131 arm*-*-*)
3133 cris-*-*)
3135 frv-*-*)
3137 hppa*-*-linux*)
3139 hppa*-*-hpux*)
3141 i?86-*-*)
3143 ia64*-*-*)
3145 m32r*-*-*)
3147 m68k-*-*)
3149 mips-sgi-irix6.* | mips*-*-rtems*)
3151 mips*-*-linux*)
3153 powerpc*-*-linux*)
3155 powerpc-*-darwin*)
3157 powerpc-*-aix* | rs6000-*-aix*)
3159 powerpc-*-freebsd*)
3161 powerpc64-*-freebsd*)
3163 powerpc*-*-rtems*)
3165 s390-*-* | s390x-*-*)
3167 sh-*-* | sh[34]*-*-*)
3169 sh64-*-* | sh5*-*-*)
3171 sparc*-*-*)
3173 x86_64-*-*)
3175 *-*-*)
3176 unsupported_languages="$unsupported_languages java"
3178 esac
3180 # Disable Java, libgcj or related libraries for some systems.
3181 case "${target}" in
3182 powerpc-*-darwin*)
3184 i[3456789]86-*-darwin*)
3186 x86_64-*-darwin[912]*)
3188 *-*-darwin*)
3189 noconfigdirs="$noconfigdirs ${libgcj}"
3191 *-*-netware*)
3192 noconfigdirs="$noconfigdirs ${libgcj}"
3194 *-*-rtems*)
3195 noconfigdirs="$noconfigdirs ${libgcj}"
3197 *-*-tpf*)
3198 noconfigdirs="$noconfigdirs ${libgcj}"
3200 *-*-uclinux*)
3201 noconfigdirs="$noconfigdirs ${libgcj}"
3203 *-*-vxworks*)
3204 noconfigdirs="$noconfigdirs ${libgcj}"
3206 alpha*-*-*vms*)
3207 noconfigdirs="$noconfigdirs ${libgcj}"
3209 arm-wince-pe)
3210 noconfigdirs="$noconfigdirs ${libgcj}"
3212 arm*-*-symbianelf*)
3213 noconfigdirs="$noconfigdirs ${libgcj}"
3215 bfin-*-*)
3216 noconfigdirs="$noconfigdirs target-boehm-gc"
3218 cris-*-* | crisv32-*-*)
3219 unsupported_languages="$unsupported_languages java"
3220 case "${target}" in
3221 *-*-linux*)
3223 *) # See PR46792 regarding target-libffi.
3224 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3225 esac
3227 hppa*64*-*-linux*)
3228 # In this case, it's because the hppa64-linux target is for
3229 # the kernel only at this point and has no libc, and thus no
3230 # headers, crt*.o, etc., all of which are needed by these.
3231 unsupported_languages="$unsupported_languages java"
3233 hppa*64*-*-hpux*)
3234 noconfigdirs="$noconfigdirs ${libgcj}"
3236 hppa*-hp-hpux11*)
3238 hppa*-*-hpux*)
3239 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3240 # build on HP-UX 10.20.
3241 noconfigdirs="$noconfigdirs ${libgcj}"
3243 ia64*-*-*vms*)
3244 noconfigdirs="$noconfigdirs ${libgcj}"
3246 i[3456789]86-w64-mingw*)
3247 noconfigdirs="$noconfigdirs ${libgcj}"
3249 i[3456789]86-*-mingw*)
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3252 x86_64-*-mingw*)
3253 noconfigdirs="$noconfigdirs ${libgcj}"
3255 mmix-*-*)
3256 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3258 powerpc-*-aix*)
3259 # copied from rs6000-*-* entry
3260 noconfigdirs="$noconfigdirs ${libgcj}"
3262 rs6000-*-aix*)
3263 noconfigdirs="$noconfigdirs ${libgcj}"
3265 mips*-*-irix6*)
3266 # Linking libjava exceeds command-line length limits on at least
3267 # IRIX 6.2, but not on IRIX 6.5.
3268 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3269 # <oldham@codesourcery.com>
3270 noconfigdirs="$noconfigdirs ${libgcj}"
3272 *-*-lynxos*)
3273 noconfigdirs="$noconfigdirs ${libgcj}"
3275 esac
3277 # Default libgloss CPU subdirectory.
3278 libgloss_dir="$target_cpu"
3280 case "${target}" in
3281 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3282 libgloss_dir=wince
3284 arm*-*-*)
3285 libgloss_dir=arm
3287 cris-*-* | crisv32-*-*)
3288 libgloss_dir=cris
3290 hppa*-*-*)
3291 libgloss_dir=pa
3293 i[3456789]86-*-*)
3294 libgloss_dir=i386
3296 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3297 libgloss_dir=m68hc11
3299 m68*-*-* | fido-*-*)
3300 libgloss_dir=m68k
3302 mips*-*-*)
3303 libgloss_dir=mips
3305 powerpc*-*-*)
3306 libgloss_dir=rs6000
3308 sparc*-*-*)
3309 libgloss_dir=sparc
3311 esac
3313 # Disable newlib and libgloss for various target OSes.
3314 case "${target}" in
3315 alpha*-dec-osf*)
3316 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3318 i[3456789]86-*-linux*)
3319 # This section makes it possible to build newlib natively on linux.
3320 # If we are using a cross compiler then don't configure newlib.
3321 if test x${is_cross_compiler} != xno ; then
3322 noconfigdirs="$noconfigdirs target-newlib"
3324 noconfigdirs="$noconfigdirs target-libgloss"
3325 # If we are not using a cross compiler, do configure newlib.
3326 # Note however, that newlib will only be configured in this situation
3327 # if the --with-newlib option has been given, because otherwise
3328 # 'target-newlib' will appear in skipdirs.
3330 i[3456789]86-*-rdos*)
3331 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3333 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3334 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3336 sparc-*-sunos4*)
3337 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3339 *-*-aix*)
3340 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3342 *-*-beos*)
3343 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3345 *-*-chorusos)
3346 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3348 *-*-dragonfly*)
3349 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3351 *-*-freebsd*)
3352 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3354 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3355 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3357 *-*-lynxos*)
3358 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3360 *-*-mingw*)
3361 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3363 *-*-netbsd*)
3364 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3366 *-*-netware*)
3367 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3369 *-*-tpf*)
3370 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3372 *-*-uclinux*)
3373 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3375 *-*-vxworks*)
3376 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3378 esac
3380 case "${target}" in
3381 *-*-chorusos)
3383 powerpc-*-darwin*)
3384 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3385 noconfigdirs="$noconfigdirs sim target-rda"
3387 i[3456789]86-*-darwin*)
3388 noconfigdirs="$noconfigdirs ld gprof"
3389 noconfigdirs="$noconfigdirs sim target-rda"
3391 x86_64-*-darwin[912]*)
3392 noconfigdirs="$noconfigdirs ld gas gprof"
3393 noconfigdirs="$noconfigdirs sim target-rda"
3395 *-*-darwin*)
3396 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3397 noconfigdirs="$noconfigdirs sim target-rda"
3399 *-*-dragonfly*)
3401 *-*-freebsd*)
3402 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3403 && test -f /usr/local/include/gmp.h; then
3404 with_gmp=/usr/local
3407 *-*-kaos*)
3408 # Remove unsupported stuff on all kaOS configurations.
3409 noconfigdirs="$noconfigdirs target-libgloss"
3411 *-*-netbsd*)
3413 *-*-netware*)
3415 *-*-rtems*)
3416 noconfigdirs="$noconfigdirs target-libgloss"
3418 # The tpf target doesn't support gdb yet.
3419 *-*-tpf*)
3420 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3422 *-*-uclinux*)
3423 noconfigdirs="$noconfigdirs target-rda"
3425 *-*-vxworks*)
3427 alpha*-dec-osf*)
3428 # ld works, but does not support shared libraries.
3429 # gas doesn't generate exception information.
3430 noconfigdirs="$noconfigdirs gas ld"
3432 alpha*-*-*vms*)
3433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3435 alpha*-*-*)
3436 # newlib is not 64 bit ready
3437 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3439 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3440 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3442 arc-*-*)
3443 noconfigdirs="$noconfigdirs target-libgloss"
3445 arm-*-pe*)
3446 noconfigdirs="$noconfigdirs target-libgloss"
3448 arm-*-riscix*)
3449 noconfigdirs="$noconfigdirs ld target-libgloss"
3451 c4x-*-* | tic4x-*-*)
3452 noconfigdirs="$noconfigdirs target-libgloss"
3454 tic54x-*-*)
3455 noconfigdirs="$noconfigdirs target-libgloss gdb"
3457 d10v-*-*)
3458 noconfigdirs="$noconfigdirs target-libgloss"
3460 d30v-*-*)
3461 noconfigdirs="$noconfigdirs gdb"
3463 fr30-*-elf*)
3464 noconfigdirs="$noconfigdirs gdb"
3466 moxie-*-*)
3467 noconfigdirs="$noconfigdirs gprof"
3469 h8300*-*-*)
3470 noconfigdirs="$noconfigdirs target-libgloss"
3472 h8500-*-*)
3473 noconfigdirs="$noconfigdirs target-libgloss"
3475 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3477 hppa*64*-*-linux*)
3479 hppa*-*-linux*)
3481 hppa*-*-*elf* | \
3482 hppa*-*-lites* | \
3483 hppa*-*-openbsd* | \
3484 hppa*64*-*-*)
3486 hppa*-hp-hpux11*)
3487 noconfigdirs="$noconfigdirs ld"
3489 hppa*-*-pro*)
3491 hppa*-*-*)
3492 noconfigdirs="$noconfigdirs ld"
3494 i960-*-*)
3495 noconfigdirs="$noconfigdirs gdb"
3497 ia64*-*-elf*)
3498 # No gdb support yet.
3499 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3501 ia64*-**-hpux*)
3502 # No ld support yet.
3503 noconfigdirs="$noconfigdirs libgui itcl ld"
3505 ia64*-*-*vms*)
3506 # No ld support yet.
3507 noconfigdirs="$noconfigdirs libgui itcl ld"
3509 i[3456789]86-w64-mingw*)
3511 i[3456789]86-*-mingw*)
3512 target_configdirs="$target_configdirs target-winsup"
3514 *-*-cygwin*)
3515 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3516 noconfigdirs="$noconfigdirs target-libgloss"
3517 # always build newlib if winsup directory is present.
3518 if test -d "$srcdir/winsup/cygwin"; then
3519 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3520 elif test -d "$srcdir/newlib"; then
3521 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3524 i[3456789]86-*-pe)
3525 noconfigdirs="$noconfigdirs target-libgloss"
3527 i[3456789]86-*-sco3.2v5*)
3528 # The linker does not yet know about weak symbols in COFF,
3529 # and is not configured to handle mixed ELF and COFF.
3530 noconfigdirs="$noconfigdirs ld target-libgloss"
3532 i[3456789]86-*-sco*)
3533 noconfigdirs="$noconfigdirs gprof target-libgloss"
3535 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3536 noconfigdirs="$noconfigdirs target-libgloss"
3538 i[3456789]86-*-sysv4*)
3539 noconfigdirs="$noconfigdirs target-libgloss"
3541 i[3456789]86-*-beos*)
3542 noconfigdirs="$noconfigdirs gdb"
3544 i[3456789]86-*-rdos*)
3545 noconfigdirs="$noconfigdirs gdb"
3547 mmix-*-*)
3548 noconfigdirs="$noconfigdirs gdb"
3550 mt-*-*)
3551 noconfigdirs="$noconfigdirs sim"
3553 powerpc-*-aix*)
3554 # copied from rs6000-*-* entry
3555 noconfigdirs="$noconfigdirs gprof"
3557 powerpc*-*-winnt* | powerpc*-*-pe*)
3558 target_configdirs="$target_configdirs target-winsup"
3559 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3560 # always build newlib.
3561 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3563 # This is temporary until we can link against shared libraries
3564 powerpcle-*-solaris*)
3565 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3567 powerpc-*-beos*)
3568 noconfigdirs="$noconfigdirs gdb"
3570 rs6000-*-lynxos*)
3571 noconfigdirs="$noconfigdirs gprof"
3573 rs6000-*-aix*)
3574 noconfigdirs="$noconfigdirs gprof"
3576 rs6000-*-*)
3577 noconfigdirs="$noconfigdirs gprof"
3579 m68k-apollo-*)
3580 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3582 microblaze*)
3583 noconfigdirs="$noconfigdirs gprof"
3585 mips*-sde-elf*)
3586 if test x$with_newlib = xyes; then
3587 noconfigdirs="$noconfigdirs gprof"
3590 mips*-*-irix5*)
3591 noconfigdirs="$noconfigdirs gprof target-libgloss"
3593 mips*-*-irix6*)
3594 noconfigdirs="$noconfigdirs gprof target-libgloss"
3596 mips*-*-bsd*)
3597 noconfigdirs="$noconfigdirs gprof target-libgloss"
3599 mips*-*-linux*)
3601 mips*-*-*)
3602 noconfigdirs="$noconfigdirs gprof"
3604 sh-*-* | sh64-*-*)
3605 case "${target}" in
3606 sh*-*-elf)
3609 noconfigdirs="$noconfigdirs target-libgloss" ;;
3610 esac
3612 sparc-*-sunos4*)
3613 if test x${is_cross_compiler} = xno ; then
3614 use_gnu_ld=no
3617 tic6x-*-*)
3618 noconfigdirs="$noconfigdirs sim"
3620 tilepro-*-* | tilegx-*-*)
3621 noconfigdirs="$noconfigdirs sim"
3623 v810-*-*)
3624 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3626 vax-*-*)
3627 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 esac
3631 # If we aren't building newlib, then don't build libgloss, since libgloss
3632 # depends upon some newlib header files.
3633 case "${noconfigdirs}" in
3634 *target-libgloss*) ;;
3635 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3636 esac
3638 # Work in distributions that contain no compiler tools, like Autoconf.
3639 host_makefile_frag=/dev/null
3640 if test -d ${srcdir}/config ; then
3641 case "${host}" in
3642 i[3456789]86-*-msdosdjgpp*)
3643 host_makefile_frag="config/mh-djgpp"
3645 *-cygwin*)
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3648 $as_echo_n "checking to see if cat works as expected... " >&6; }
3649 echo a >cygwin-cat-check
3650 if test `cat cygwin-cat-check` = a ; then
3651 rm cygwin-cat-check
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653 $as_echo "yes" >&6; }
3654 else
3655 rm cygwin-cat-check
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 as_fn_error "The cat command does not ignore carriage return characters.
3659 Please either mount the build directory in binary mode or run the following
3660 commands before running any configure script:
3661 set -o igncr
3662 export SHELLOPTS
3663 " "$LINENO" 5
3666 host_makefile_frag="config/mh-cygwin"
3668 *-mingw*)
3669 host_makefile_frag="config/mh-mingw"
3671 hppa*-hp-hpux10*)
3672 host_makefile_frag="config/mh-pa-hpux10"
3674 hppa*-hp-hpux*)
3675 host_makefile_frag="config/mh-pa"
3677 hppa*-*)
3678 host_makefile_frag="config/mh-pa"
3680 *-*-darwin*)
3681 host_makefile_frag="config/mh-darwin"
3683 powerpc-*-aix*)
3684 host_makefile_frag="config/mh-ppc-aix"
3686 rs6000-*-aix*)
3687 host_makefile_frag="config/mh-ppc-aix"
3689 esac
3692 if test "${build}" != "${host}" ; then
3693 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3694 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3695 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3696 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3697 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3698 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3699 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3700 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3701 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3702 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3703 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3704 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3705 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3706 else
3707 AR_FOR_BUILD="\$(AR)"
3708 AS_FOR_BUILD="\$(AS)"
3709 CC_FOR_BUILD="\$(CC)"
3710 CXX_FOR_BUILD="\$(CXX)"
3711 GCJ_FOR_BUILD="\$(GCJ)"
3712 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3713 GOC_FOR_BUILD="\$(GOC)"
3714 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3715 LD_FOR_BUILD="\$(LD)"
3716 NM_FOR_BUILD="\$(NM)"
3717 RANLIB_FOR_BUILD="\$(RANLIB)"
3718 WINDRES_FOR_BUILD="\$(WINDRES)"
3719 WINDMC_FOR_BUILD="\$(WINDMC)"
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727 if test -n "$ac_tool_prefix"; then
3728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3729 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if test "${ac_cv_prog_CC+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 if test -n "$CC"; then
3736 ac_cv_prog_CC="$CC" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3749 done
3750 done
3751 IFS=$as_save_IFS
3755 CC=$ac_cv_prog_CC
3756 if test -n "$CC"; then
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758 $as_echo "$CC" >&6; }
3759 else
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3766 if test -z "$ac_cv_prog_CC"; then
3767 ac_ct_CC=$CC
3768 # Extract the first word of "gcc", so it can be a program name with args.
3769 set dummy gcc; ac_word=$2
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 $as_echo_n "checking for $ac_word... " >&6; }
3772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 if test -n "$ac_ct_CC"; then
3776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_prog_ac_ct_CC="gcc"
3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3789 done
3790 done
3791 IFS=$as_save_IFS
3795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3796 if test -n "$ac_ct_CC"; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3798 $as_echo "$ac_ct_CC" >&6; }
3799 else
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3804 if test "x$ac_ct_CC" = x; then
3805 CC=""
3806 else
3807 case $cross_compiling:$ac_tool_warned in
3808 yes:)
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3811 ac_tool_warned=yes ;;
3812 esac
3813 CC=$ac_ct_CC
3815 else
3816 CC="$ac_cv_prog_CC"
3819 if test -z "$CC"; then
3820 if test -n "$ac_tool_prefix"; then
3821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3822 set dummy ${ac_tool_prefix}cc; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if test "${ac_cv_prog_CC+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 if test -n "$CC"; then
3829 ac_cv_prog_CC="$CC" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3834 IFS=$as_save_IFS
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3838 ac_cv_prog_CC="${ac_tool_prefix}cc"
3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 break 2
3842 done
3843 done
3844 IFS=$as_save_IFS
3848 CC=$ac_cv_prog_CC
3849 if test -n "$CC"; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3851 $as_echo "$CC" >&6; }
3852 else
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3860 if test -z "$CC"; then
3861 # Extract the first word of "cc", so it can be a program name with args.
3862 set dummy cc; ac_word=$2
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864 $as_echo_n "checking for $ac_word... " >&6; }
3865 if test "${ac_cv_prog_CC+set}" = set; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 if test -n "$CC"; then
3869 ac_cv_prog_CC="$CC" # Let the user override the test.
3870 else
3871 ac_prog_rejected=no
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3880 ac_prog_rejected=yes
3881 continue
3883 ac_cv_prog_CC="cc"
3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 break 2
3887 done
3888 done
3889 IFS=$as_save_IFS
3891 if test $ac_prog_rejected = yes; then
3892 # We found a bogon in the path, so make sure we never use it.
3893 set dummy $ac_cv_prog_CC
3894 shift
3895 if test $# != 0; then
3896 # We chose a different compiler from the bogus one.
3897 # However, it has the same basename, so the bogon will be chosen
3898 # first if we set CC to just the basename; use the full file name.
3899 shift
3900 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3905 CC=$ac_cv_prog_CC
3906 if test -n "$CC"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3908 $as_echo "$CC" >&6; }
3909 else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3916 if test -z "$CC"; then
3917 if test -n "$ac_tool_prefix"; then
3918 for ac_prog in cl.exe
3920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_prog_CC+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC="$CC" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3941 done
3942 done
3943 IFS=$as_save_IFS
3947 CC=$ac_cv_prog_CC
3948 if test -n "$CC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 $as_echo "$CC" >&6; }
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3957 test -n "$CC" && break
3958 done
3960 if test -z "$CC"; then
3961 ac_ct_CC=$CC
3962 for ac_prog in cl.exe
3964 # Extract the first word of "$ac_prog", so it can be a program name with args.
3965 set dummy $ac_prog; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 if test -n "$ac_ct_CC"; then
3972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3981 ac_cv_prog_ac_ct_CC="$ac_prog"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3985 done
3986 done
3987 IFS=$as_save_IFS
3991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3992 if test -n "$ac_ct_CC"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3994 $as_echo "$ac_ct_CC" >&6; }
3995 else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
4001 test -n "$ac_ct_CC" && break
4002 done
4004 if test "x$ac_ct_CC" = x; then
4005 CC=""
4006 else
4007 case $cross_compiling:$ac_tool_warned in
4008 yes:)
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4011 ac_tool_warned=yes ;;
4012 esac
4013 CC=$ac_ct_CC
4020 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error "no acceptable C compiler found in \$PATH
4023 See \`config.log' for more details." "$LINENO" 5; }
4025 # Provide some information about the compiler.
4026 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4027 set X $ac_compile
4028 ac_compiler=$2
4029 for ac_option in --version -v -V -qversion; do
4030 { { ac_try="$ac_compiler $ac_option >&5"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4038 ac_status=$?
4039 if test -s conftest.err; then
4040 sed '10a\
4041 ... rest of stderr output deleted ...
4042 10q' conftest.err >conftest.er1
4043 cat conftest.er1 >&5
4044 rm -f conftest.er1 conftest.err
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }
4048 done
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4054 main ()
4058 return 0;
4060 _ACEOF
4061 ac_clean_files_save=$ac_clean_files
4062 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4063 # Try to create an executable without -o first, disregard a.out.
4064 # It will help us diagnose broken compilers, and finding out an intuition
4065 # of exeext.
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4067 $as_echo_n "checking for C compiler default output file name... " >&6; }
4068 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4070 # The possible output files:
4071 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4073 ac_rmfiles=
4074 for ac_file in $ac_files
4076 case $ac_file in
4077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4078 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4079 esac
4080 done
4081 rm -f $ac_rmfiles
4083 if { { ac_try="$ac_link_default"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 $as_echo "$ac_try_echo"; } >&5
4090 (eval "$ac_link_default") 2>&5
4091 ac_status=$?
4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093 test $ac_status = 0; }; then :
4094 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4095 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4096 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4097 # so that the user can short-circuit this test for compilers unknown to
4098 # Autoconf.
4099 for ac_file in $ac_files ''
4101 test -f "$ac_file" || continue
4102 case $ac_file in
4103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4105 [ab].out )
4106 # We found the default executable, but exeext='' is most
4107 # certainly right.
4108 break;;
4109 *.* )
4110 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4111 then :; else
4112 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4114 # We set ac_cv_exeext here because the later test for it is not
4115 # safe: cross compilers may not add the suffix if given an `-o'
4116 # argument, so we may need to know it at that point already.
4117 # Even if this section looks crufty: it has the advantage of
4118 # actually working.
4119 break;;
4121 break;;
4122 esac
4123 done
4124 test "$ac_cv_exeext" = no && ac_cv_exeext=
4126 else
4127 ac_file=''
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4130 $as_echo "$ac_file" >&6; }
4131 if test -z "$ac_file"; then :
4132 $as_echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 { as_fn_set_status 77
4138 as_fn_error "C compiler cannot create executables
4139 See \`config.log' for more details." "$LINENO" 5; }; }
4141 ac_exeext=$ac_cv_exeext
4143 # Check that the compiler produces executables we can run. If not, either
4144 # the compiler is broken, or we cross compile.
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4146 $as_echo_n "checking whether the C compiler works... " >&6; }
4147 # If not cross compiling, check that we can run a simple program.
4148 if test "$cross_compiling" != yes; then
4149 if { ac_try='./$ac_file'
4150 { { case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153 esac
4154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4155 $as_echo "$ac_try_echo"; } >&5
4156 (eval "$ac_try") 2>&5
4157 ac_status=$?
4158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4159 test $ac_status = 0; }; }; then
4160 cross_compiling=no
4161 else
4162 if test "$cross_compiling" = maybe; then
4163 cross_compiling=yes
4164 else
4165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4167 as_fn_error "cannot run C compiled programs.
4168 If you meant to cross compile, use \`--host'.
4169 See \`config.log' for more details." "$LINENO" 5; }
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4174 $as_echo "yes" >&6; }
4176 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4177 ac_clean_files=$ac_clean_files_save
4178 # Check that the compiler produces executables we can run. If not, either
4179 # the compiler is broken, or we cross compile.
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4181 $as_echo_n "checking whether we are cross compiling... " >&6; }
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4183 $as_echo "$cross_compiling" >&6; }
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4186 $as_echo_n "checking for suffix of executables... " >&6; }
4187 if { { ac_try="$ac_link"
4188 case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191 esac
4192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193 $as_echo "$ac_try_echo"; } >&5
4194 (eval "$ac_link") 2>&5
4195 ac_status=$?
4196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4197 test $ac_status = 0; }; then :
4198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4199 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4200 # work properly (i.e., refer to `conftest.exe'), while it won't with
4201 # `rm'.
4202 for ac_file in conftest.exe conftest conftest.*; do
4203 test -f "$ac_file" || continue
4204 case $ac_file in
4205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4207 break;;
4208 * ) break;;
4209 esac
4210 done
4211 else
4212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214 as_fn_error "cannot compute suffix of executables: cannot compile and link
4215 See \`config.log' for more details." "$LINENO" 5; }
4217 rm -f conftest$ac_cv_exeext
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4219 $as_echo "$ac_cv_exeext" >&6; }
4221 rm -f conftest.$ac_ext
4222 EXEEXT=$ac_cv_exeext
4223 ac_exeext=$EXEEXT
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4225 $as_echo_n "checking for suffix of object files... " >&6; }
4226 if test "${ac_cv_objext+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4233 main ()
4237 return 0;
4239 _ACEOF
4240 rm -f conftest.o conftest.obj
4241 if { { ac_try="$ac_compile"
4242 case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245 esac
4246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247 $as_echo "$ac_try_echo"; } >&5
4248 (eval "$ac_compile") 2>&5
4249 ac_status=$?
4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; }; then :
4252 for ac_file in conftest.o conftest.obj conftest.*; do
4253 test -f "$ac_file" || continue;
4254 case $ac_file in
4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4256 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4257 break;;
4258 esac
4259 done
4260 else
4261 $as_echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266 as_fn_error "cannot compute suffix of object files: cannot compile
4267 See \`config.log' for more details." "$LINENO" 5; }
4269 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4272 $as_echo "$ac_cv_objext" >&6; }
4273 OBJEXT=$ac_cv_objext
4274 ac_objext=$OBJEXT
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4276 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4277 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4284 main ()
4286 #ifndef __GNUC__
4287 choke me
4288 #endif
4291 return 0;
4293 _ACEOF
4294 if ac_fn_c_try_compile "$LINENO"; then :
4295 ac_compiler_gnu=yes
4296 else
4297 ac_compiler_gnu=no
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4304 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4305 if test $ac_compiler_gnu = yes; then
4306 GCC=yes
4307 else
4308 GCC=
4310 ac_test_CFLAGS=${CFLAGS+set}
4311 ac_save_CFLAGS=$CFLAGS
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4313 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4314 if test "${ac_cv_prog_cc_g+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 ac_save_c_werror_flag=$ac_c_werror_flag
4318 ac_c_werror_flag=yes
4319 ac_cv_prog_cc_g=no
4320 CFLAGS="-g"
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4325 main ()
4329 return 0;
4331 _ACEOF
4332 if ac_fn_c_try_compile "$LINENO"; then :
4333 ac_cv_prog_cc_g=yes
4334 else
4335 CFLAGS=""
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4340 main ()
4344 return 0;
4346 _ACEOF
4347 if ac_fn_c_try_compile "$LINENO"; then :
4349 else
4350 ac_c_werror_flag=$ac_save_c_werror_flag
4351 CFLAGS="-g"
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4356 main ()
4360 return 0;
4362 _ACEOF
4363 if ac_fn_c_try_compile "$LINENO"; then :
4364 ac_cv_prog_cc_g=yes
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 ac_c_werror_flag=$ac_save_c_werror_flag
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4374 $as_echo "$ac_cv_prog_cc_g" >&6; }
4375 if test "$ac_test_CFLAGS" = set; then
4376 CFLAGS=$ac_save_CFLAGS
4377 elif test $ac_cv_prog_cc_g = yes; then
4378 if test "$GCC" = yes; then
4379 CFLAGS="-g -O2"
4380 else
4381 CFLAGS="-g"
4383 else
4384 if test "$GCC" = yes; then
4385 CFLAGS="-O2"
4386 else
4387 CFLAGS=
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4391 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4392 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 ac_cv_prog_cc_c89=no
4396 ac_save_CC=$CC
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 #include <stdarg.h>
4400 #include <stdio.h>
4401 #include <sys/types.h>
4402 #include <sys/stat.h>
4403 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4404 struct buf { int x; };
4405 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4406 static char *e (p, i)
4407 char **p;
4408 int i;
4410 return p[i];
4412 static char *f (char * (*g) (char **, int), char **p, ...)
4414 char *s;
4415 va_list v;
4416 va_start (v,p);
4417 s = g (p, va_arg (v,int));
4418 va_end (v);
4419 return s;
4422 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4423 function prototypes and stuff, but not '\xHH' hex character constants.
4424 These don't provoke an error unfortunately, instead are silently treated
4425 as 'x'. The following induces an error, until -std is added to get
4426 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4427 array size at least. It's necessary to write '\x00'==0 to get something
4428 that's true only with -std. */
4429 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4431 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4432 inside strings and character constants. */
4433 #define FOO(x) 'x'
4434 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4436 int test (int i, double x);
4437 struct s1 {int (*f) (int a);};
4438 struct s2 {int (*f) (double a);};
4439 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4440 int argc;
4441 char **argv;
4443 main ()
4445 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4447 return 0;
4449 _ACEOF
4450 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4451 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4453 CC="$ac_save_CC $ac_arg"
4454 if ac_fn_c_try_compile "$LINENO"; then :
4455 ac_cv_prog_cc_c89=$ac_arg
4457 rm -f core conftest.err conftest.$ac_objext
4458 test "x$ac_cv_prog_cc_c89" != "xno" && break
4459 done
4460 rm -f conftest.$ac_ext
4461 CC=$ac_save_CC
4464 # AC_CACHE_VAL
4465 case "x$ac_cv_prog_cc_c89" in
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4468 $as_echo "none needed" >&6; } ;;
4469 xno)
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4471 $as_echo "unsupported" >&6; } ;;
4473 CC="$CC $ac_cv_prog_cc_c89"
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4475 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4476 esac
4477 if test "x$ac_cv_prog_cc_c89" != xno; then :
4481 ac_ext=c
4482 ac_cpp='$CPP $CPPFLAGS'
4483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487 ac_ext=cpp
4488 ac_cpp='$CXXCPP $CPPFLAGS'
4489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4492 if test -z "$CXX"; then
4493 if test -n "$CCC"; then
4494 CXX=$CCC
4495 else
4496 if test -n "$ac_tool_prefix"; then
4497 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if test "${ac_cv_prog_CXX+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if test -n "$CXX"; then
4507 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4520 done
4521 done
4522 IFS=$as_save_IFS
4526 CXX=$ac_cv_prog_CXX
4527 if test -n "$CXX"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4529 $as_echo "$CXX" >&6; }
4530 else
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4536 test -n "$CXX" && break
4537 done
4539 if test -z "$CXX"; then
4540 ac_ct_CXX=$CXX
4541 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4543 # Extract the first word of "$ac_prog", so it can be a program name with args.
4544 set dummy $ac_prog; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$ac_ct_CXX"; then
4551 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_ac_ct_CXX="$ac_prog"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4564 done
4565 done
4566 IFS=$as_save_IFS
4570 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4571 if test -n "$ac_ct_CXX"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4573 $as_echo "$ac_ct_CXX" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4580 test -n "$ac_ct_CXX" && break
4581 done
4583 if test "x$ac_ct_CXX" = x; then
4584 CXX="g++"
4585 else
4586 case $cross_compiling:$ac_tool_warned in
4587 yes:)
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590 ac_tool_warned=yes ;;
4591 esac
4592 CXX=$ac_ct_CXX
4598 # Provide some information about the compiler.
4599 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4600 set X $ac_compile
4601 ac_compiler=$2
4602 for ac_option in --version -v -V -qversion; do
4603 { { ac_try="$ac_compiler $ac_option >&5"
4604 case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607 esac
4608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4609 $as_echo "$ac_try_echo"; } >&5
4610 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4611 ac_status=$?
4612 if test -s conftest.err; then
4613 sed '10a\
4614 ... rest of stderr output deleted ...
4615 10q' conftest.err >conftest.er1
4616 cat conftest.er1 >&5
4617 rm -f conftest.er1 conftest.err
4619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4620 test $ac_status = 0; }
4621 done
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4624 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4625 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4632 main ()
4634 #ifndef __GNUC__
4635 choke me
4636 #endif
4639 return 0;
4641 _ACEOF
4642 if ac_fn_cxx_try_compile "$LINENO"; then :
4643 ac_compiler_gnu=yes
4644 else
4645 ac_compiler_gnu=no
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4652 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4653 if test $ac_compiler_gnu = yes; then
4654 GXX=yes
4655 else
4656 GXX=
4658 ac_test_CXXFLAGS=${CXXFLAGS+set}
4659 ac_save_CXXFLAGS=$CXXFLAGS
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4661 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4662 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4666 ac_cxx_werror_flag=yes
4667 ac_cv_prog_cxx_g=no
4668 CXXFLAGS="-g"
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4673 main ()
4677 return 0;
4679 _ACEOF
4680 if ac_fn_cxx_try_compile "$LINENO"; then :
4681 ac_cv_prog_cxx_g=yes
4682 else
4683 CXXFLAGS=""
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4688 main ()
4692 return 0;
4694 _ACEOF
4695 if ac_fn_cxx_try_compile "$LINENO"; then :
4697 else
4698 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4699 CXXFLAGS="-g"
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4704 main ()
4708 return 0;
4710 _ACEOF
4711 if ac_fn_cxx_try_compile "$LINENO"; then :
4712 ac_cv_prog_cxx_g=yes
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4722 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4723 if test "$ac_test_CXXFLAGS" = set; then
4724 CXXFLAGS=$ac_save_CXXFLAGS
4725 elif test $ac_cv_prog_cxx_g = yes; then
4726 if test "$GXX" = yes; then
4727 CXXFLAGS="-g -O2"
4728 else
4729 CXXFLAGS="-g"
4731 else
4732 if test "$GXX" = yes; then
4733 CXXFLAGS="-O2"
4734 else
4735 CXXFLAGS=
4738 ac_ext=c
4739 ac_cpp='$CPP $CPPFLAGS'
4740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745 # We must set the default linker to the linker used by gcc for the correct
4746 # operation of libtool. If LD is not defined and we are using gcc, try to
4747 # set the LD default to the ld used by gcc.
4748 if test -z "$LD"; then
4749 if test "$GCC" = yes; then
4750 case $build in
4751 *-*-mingw*)
4752 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4754 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4755 esac
4756 case $gcc_prog_ld in
4757 # Accept absolute paths.
4758 [\\/]* | [A-Za-z]:[\\/]*)
4759 LD="$gcc_prog_ld" ;;
4760 esac
4767 if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4769 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 if test -n "$GNATBIND"; then
4776 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4789 done
4790 done
4791 IFS=$as_save_IFS
4795 GNATBIND=$ac_cv_prog_GNATBIND
4796 if test -n "$GNATBIND"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4798 $as_echo "$GNATBIND" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4806 if test -z "$ac_cv_prog_GNATBIND"; then
4807 ac_ct_GNATBIND=$GNATBIND
4808 # Extract the first word of "gnatbind", so it can be a program name with args.
4809 set dummy gnatbind; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 if test -n "$ac_ct_GNATBIND"; then
4816 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4829 done
4830 done
4831 IFS=$as_save_IFS
4835 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4836 if test -n "$ac_ct_GNATBIND"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4838 $as_echo "$ac_ct_GNATBIND" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4844 if test "x$ac_ct_GNATBIND" = x; then
4845 GNATBIND="no"
4846 else
4847 case $cross_compiling:$ac_tool_warned in
4848 yes:)
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4851 ac_tool_warned=yes ;;
4852 esac
4853 GNATBIND=$ac_ct_GNATBIND
4855 else
4856 GNATBIND="$ac_cv_prog_GNATBIND"
4859 if test -n "$ac_tool_prefix"; then
4860 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4861 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -n "$GNATMAKE"; then
4868 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4881 done
4882 done
4883 IFS=$as_save_IFS
4887 GNATMAKE=$ac_cv_prog_GNATMAKE
4888 if test -n "$GNATMAKE"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4890 $as_echo "$GNATMAKE" >&6; }
4891 else
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4898 if test -z "$ac_cv_prog_GNATMAKE"; then
4899 ac_ct_GNATMAKE=$GNATMAKE
4900 # Extract the first word of "gnatmake", so it can be a program name with args.
4901 set dummy gnatmake; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if test -n "$ac_ct_GNATMAKE"; then
4908 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4921 done
4922 done
4923 IFS=$as_save_IFS
4927 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4928 if test -n "$ac_ct_GNATMAKE"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4930 $as_echo "$ac_ct_GNATMAKE" >&6; }
4931 else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4936 if test "x$ac_ct_GNATMAKE" = x; then
4937 GNATMAKE="no"
4938 else
4939 case $cross_compiling:$ac_tool_warned in
4940 yes:)
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943 ac_tool_warned=yes ;;
4944 esac
4945 GNATMAKE=$ac_ct_GNATMAKE
4947 else
4948 GNATMAKE="$ac_cv_prog_GNATMAKE"
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4952 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4953 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 cat >conftest.adb <<EOF
4957 procedure conftest is begin null; end conftest;
4959 acx_cv_cc_gcc_supports_ada=no
4960 # There is a bug in old released versions of GCC which causes the
4961 # driver to exit successfully when the appropriate language module
4962 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4963 # Therefore we must check for the error message as well as an
4964 # unsuccessful exit.
4965 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4966 # given a .adb file, but produce no object file. So we must check
4967 # if an object file was really produced to guard against this.
4968 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4969 if test x"$errors" = x && test -f conftest.$ac_objext; then
4970 acx_cv_cc_gcc_supports_ada=yes
4972 rm -f conftest.*
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4975 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4977 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4978 have_gnat=yes
4979 else
4980 have_gnat=no
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4984 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4985 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 echo abfoo >t1
4989 echo cdfoo >t2
4990 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4991 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4992 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4994 else
4995 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4998 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4999 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5001 else
5002 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5005 rm t1 t2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5009 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5010 do_compare="$gcc_cv_prog_cmp_skip"
5014 # Check whether --enable-bootstrap was given.
5015 if test "${enable_bootstrap+set}" = set; then :
5016 enableval=$enable_bootstrap;
5017 else
5018 enable_bootstrap=default
5022 # Issue errors and warnings for invalid/strange bootstrap combinations.
5023 if test -r $srcdir/gcc/configure; then
5024 have_compiler=yes
5025 else
5026 have_compiler=no
5029 case "$have_compiler:$host:$target:$enable_bootstrap" in
5030 *:*:*:no) ;;
5032 # Default behavior. Enable bootstrap if we have a compiler
5033 # and we are in a native configuration.
5034 yes:$build:$build:default)
5035 enable_bootstrap=yes ;;
5037 *:*:*:default)
5038 enable_bootstrap=no ;;
5040 # We have a compiler and we are in a native configuration, bootstrap is ok
5041 yes:$build:$build:yes)
5044 # Other configurations, but we have a compiler. Assume the user knows
5045 # what he's doing.
5046 yes:*:*:yes)
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5048 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5051 # No compiler: if they passed --enable-bootstrap explicitly, fail
5052 no:*:*:yes)
5053 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5055 # Fail if wrong command line
5057 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5059 esac
5061 # See if we are building gcc with C++.
5062 # Check whether --enable-build-with-cxx was given.
5063 if test "${enable_build_with_cxx+set}" = set; then :
5064 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5065 else
5066 ENABLE_BUILD_WITH_CXX=no
5070 # Build stage1 with C and build stages 2 and 3 with C++.
5071 # Check whether --enable-build-poststage1-with-cxx was given.
5072 if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5073 enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5074 else
5075 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5079 # Used for setting $lt_cv_objdir
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5081 $as_echo_n "checking for objdir... " >&6; }
5082 if test "${lt_cv_objdir+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 rm -f .libs 2>/dev/null
5086 mkdir .libs 2>/dev/null
5087 if test -d .libs; then
5088 lt_cv_objdir=.libs
5089 else
5090 # MS-DOS does not allow filenames that begin with a dot.
5091 lt_cv_objdir=_libs
5093 rmdir .libs 2>/dev/null
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5096 $as_echo "$lt_cv_objdir" >&6; }
5097 objdir=$lt_cv_objdir
5103 cat >>confdefs.h <<_ACEOF
5104 #define LT_OBJDIR "$lt_cv_objdir/"
5105 _ACEOF
5109 # Check for GMP, MPFR and MPC
5110 gmplibs="-lmpc -lmpfr -lgmp"
5111 gmpinc=
5112 have_gmp=no
5114 # Specify a location for mpc
5115 # check for this first so it ends up on the link line before mpfr.
5117 # Check whether --with-mpc was given.
5118 if test "${with_mpc+set}" = set; then :
5119 withval=$with_mpc;
5123 # Check whether --with-mpc-include was given.
5124 if test "${with_mpc_include+set}" = set; then :
5125 withval=$with_mpc_include;
5129 # Check whether --with-mpc-lib was given.
5130 if test "${with_mpc_lib+set}" = set; then :
5131 withval=$with_mpc_lib;
5135 if test "x$with_mpc" != x; then
5136 gmplibs="-L$with_mpc/lib $gmplibs"
5137 gmpinc="-I$with_mpc/include $gmpinc"
5139 if test "x$with_mpc_include" != x; then
5140 gmpinc="-I$with_mpc_include $gmpinc"
5142 if test "x$with_mpc_lib" != x; then
5143 gmplibs="-L$with_mpc_lib $gmplibs"
5145 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5146 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5147 gmpinc='-I$$s/mpc/src '"$gmpinc"
5148 # Do not test the mpc version. Assume that it is sufficient, since
5149 # it is in the source tree, and the library has not been built yet
5150 # but it would be included on the link line in the version check below
5151 # hence making the test fail.
5152 have_gmp=yes
5155 # Specify a location for mpfr
5156 # check for this first so it ends up on the link line before gmp.
5158 # Check whether --with-mpfr-dir was given.
5159 if test "${with_mpfr_dir+set}" = set; then :
5160 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5161 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5166 # Check whether --with-mpfr was given.
5167 if test "${with_mpfr+set}" = set; then :
5168 withval=$with_mpfr;
5172 # Check whether --with-mpfr-include was given.
5173 if test "${with_mpfr_include+set}" = set; then :
5174 withval=$with_mpfr_include;
5178 # Check whether --with-mpfr-lib was given.
5179 if test "${with_mpfr_lib+set}" = set; then :
5180 withval=$with_mpfr_lib;
5184 if test "x$with_mpfr" != x; then
5185 gmplibs="-L$with_mpfr/lib $gmplibs"
5186 gmpinc="-I$with_mpfr/include $gmpinc"
5188 if test "x$with_mpfr_include" != x; then
5189 gmpinc="-I$with_mpfr_include $gmpinc"
5191 if test "x$with_mpfr_lib" != x; then
5192 gmplibs="-L$with_mpfr_lib $gmplibs"
5194 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5195 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5196 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5197 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5198 # Do not test the mpfr version. Assume that it is sufficient, since
5199 # it is in the source tree, and the library has not been built yet
5200 # but it would be included on the link line in the version check below
5201 # hence making the test fail.
5202 have_gmp=yes
5205 # Specify a location for gmp
5207 # Check whether --with-gmp-dir was given.
5208 if test "${with_gmp_dir+set}" = set; then :
5209 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5210 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5215 # Check whether --with-gmp was given.
5216 if test "${with_gmp+set}" = set; then :
5217 withval=$with_gmp;
5221 # Check whether --with-gmp-include was given.
5222 if test "${with_gmp_include+set}" = set; then :
5223 withval=$with_gmp_include;
5227 # Check whether --with-gmp-lib was given.
5228 if test "${with_gmp_lib+set}" = set; then :
5229 withval=$with_gmp_lib;
5234 if test "x$with_gmp" != x; then
5235 gmplibs="-L$with_gmp/lib $gmplibs"
5236 gmpinc="-I$with_gmp/include $gmpinc"
5238 if test "x$with_gmp_include" != x; then
5239 gmpinc="-I$with_gmp_include $gmpinc"
5241 if test "x$with_gmp_lib" != x; then
5242 gmplibs="-L$with_gmp_lib $gmplibs"
5244 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5245 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5246 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5247 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5248 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5249 # Do not test the gmp version. Assume that it is sufficient, since
5250 # it is in the source tree, and the library has not been built yet
5251 # but it would be included on the link line in the version check below
5252 # hence making the test fail.
5253 have_gmp=yes
5256 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5257 have_gmp=yes
5258 saved_CFLAGS="$CFLAGS"
5259 CFLAGS="$CFLAGS $gmpinc"
5260 # Check for the recommended and required versions of GMP.
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5262 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 #include "gmp.h"
5268 main ()
5271 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5272 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5273 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5274 choke me
5275 #endif
5278 return 0;
5280 _ACEOF
5281 if ac_fn_c_try_compile "$LINENO"; then :
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #include <gmp.h>
5286 main ()
5289 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5290 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5291 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5292 choke me
5293 #endif
5296 return 0;
5298 _ACEOF
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5301 $as_echo "yes" >&6; }
5302 else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5304 $as_echo "buggy but acceptable" >&6; }
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 else
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }; have_gmp=no
5311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 # If we have GMP, check the MPFR version.
5314 if test x"$have_gmp" = xyes; then
5315 # Check for the recommended and required versions of MPFR.
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5317 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320 #include <gmp.h>
5321 #include <mpfr.h>
5323 main ()
5326 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5327 choke me
5328 #endif
5331 return 0;
5333 _ACEOF
5334 if ac_fn_c_try_compile "$LINENO"; then :
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 #include <gmp.h>
5338 #include <mpfr.h>
5340 main ()
5343 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5344 choke me
5345 #endif
5348 return 0;
5350 _ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353 $as_echo "yes" >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5356 $as_echo "buggy but acceptable" >&6; }
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }; have_gmp=no
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366 # Check for the MPC header version.
5367 if test x"$have_gmp" = xyes ; then
5368 # Check for the recommended and required versions of MPC.
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5370 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 #include <mpc.h>
5375 main ()
5378 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5379 choke me
5380 #endif
5383 return 0;
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 #include <mpc.h>
5391 main ()
5394 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5395 choke me
5396 #endif
5399 return 0;
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5404 $as_echo "yes" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5407 $as_echo "buggy but acceptable" >&6; }
5409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }; have_gmp=no
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 # Now check the MPFR library.
5418 if test x"$have_gmp" = xyes; then
5419 saved_LIBS="$LIBS"
5420 LIBS="$LIBS $gmplibs"
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5422 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #include <mpc.h>
5427 main ()
5430 mpfr_t n;
5431 mpfr_t x;
5432 mpc_t c;
5433 int t;
5434 mpfr_init (n);
5435 mpfr_init (x);
5436 mpfr_atan2 (n, n, x, GMP_RNDN);
5437 mpfr_erfc (n, x, GMP_RNDN);
5438 mpfr_subnormalize (x, t, GMP_RNDN);
5439 mpfr_clear(n);
5440 mpfr_clear(x);
5441 mpc_init2 (c, 53);
5442 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5443 mpc_cosh (c, c, MPC_RNDNN);
5444 mpc_pow (c, c, c, MPC_RNDNN);
5445 mpc_acosh (c, c, MPC_RNDNN);
5446 mpc_clear (c);
5449 return 0;
5451 _ACEOF
5452 if ac_fn_c_try_link "$LINENO"; then :
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5454 $as_echo "yes" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }; have_gmp=no
5459 rm -f core conftest.err conftest.$ac_objext \
5460 conftest$ac_exeext conftest.$ac_ext
5461 LIBS="$saved_LIBS"
5464 CFLAGS="$saved_CFLAGS"
5466 # The library versions listed in the error message below should match
5467 # the HARD-minimums enforced above.
5468 if test x$have_gmp != xyes; then
5469 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5470 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5471 their locations. Source code for these libraries can be found at
5472 their respective hosting sites as well as at
5473 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5474 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5475 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5476 make sure that you have installed both the libraries and the header
5477 files. They may be located in separate packages." "$LINENO" 5
5481 # Flags needed for both GMP, MPFR and/or MPC.
5488 # Allow host libstdc++ to be specified for static linking with PPL.
5490 # Check whether --with-host-libstdcxx was given.
5491 if test "${with_host_libstdcxx+set}" = set; then :
5492 withval=$with_host_libstdcxx;
5496 case $with_host_libstdcxx in
5497 no|yes)
5498 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5500 esac
5502 # Linker flags to use for stage1 or when not boostrapping.
5504 # Check whether --with-stage1-ldflags was given.
5505 if test "${with_stage1_ldflags+set}" = set; then :
5506 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5507 stage1_ldflags=
5508 else
5509 stage1_ldflags=$withval
5511 else
5512 stage1_ldflags=
5517 # Libraries to use for stage1 or when not bootstrapping.
5519 # Check whether --with-stage1-libs was given.
5520 if test "${with_stage1_libs+set}" = set; then :
5521 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5522 stage1_libs=
5523 else
5524 stage1_libs=$withval
5526 else
5527 stage1_libs=$with_host_libstdcxx
5532 # Libraries to use for stage2 and later builds. This defaults to the
5533 # argument passed to --with-host-libstdcxx.
5535 # Check whether --with-boot-libs was given.
5536 if test "${with_boot_libs+set}" = set; then :
5537 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5538 poststage1_libs=
5539 else
5540 poststage1_libs=$withval
5542 else
5543 poststage1_libs=$with_host_libstdcxx
5548 # Linker flags to use for stage2 and later builds.
5550 # Check whether --with-boot-ldflags was given.
5551 if test "${with_boot_ldflags+set}" = set; then :
5552 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5553 poststage1_ldflags=
5554 else
5555 poststage1_ldflags=$withval
5557 else
5558 poststage1_ldflags=
5559 # In stages 2 and 3, default to linking libstdc++ and libgcc
5560 # statically. But if the user explicitly specified the libraries to
5561 # use, trust that they are doing what they want.
5562 if test "$poststage1_libs" = ""; then
5563 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5569 # Check for PPL
5570 ppllibs=
5571 pplinc=
5572 pwllib=
5575 # Check whether --with-ppl was given.
5576 if test "${with_ppl+set}" = set; then :
5577 withval=$with_ppl;
5581 # Check whether --with-ppl-include was given.
5582 if test "${with_ppl_include+set}" = set; then :
5583 withval=$with_ppl_include;
5587 # Check whether --with-ppl-lib was given.
5588 if test "${with_ppl_lib+set}" = set; then :
5589 withval=$with_ppl_lib;
5593 # Check whether --enable-ppl-version-check was given.
5594 if test "${enable_ppl_version_check+set}" = set; then :
5595 enableval=$enable_ppl_version_check;
5599 case $with_ppl in
5600 yes | no | "")
5603 ppllibs="-L$with_ppl/lib"
5604 pplinc="-I$with_ppl/include $pplinc"
5605 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5606 with_ppl=yes
5607 else
5608 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5611 esac
5613 if test x"$with_ppl_include" != x; then
5614 pplinc="-I$with_ppl_include $pplinc"
5615 with_ppl=yes
5618 if test "x$with_ppl_lib" != x; then
5619 ppllibs="-L$with_ppl_lib"
5620 with_ppl=yes
5623 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5624 if test x"$enable_watchdog" = xyes; then
5625 pwllib="-lpwl"
5627 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5628 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5629 enable_ppl_version_check=no
5630 with_ppl=yes
5633 if test "x$with_ppl" != xno; then
5634 if test "x$pwllib" = x; then
5635 saved_LIBS="$LIBS"
5636 LIBS="$LIBS $ppllibs -lstdc++ -lm"
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5638 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5639 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 ac_check_lib_save_LIBS=$LIBS
5643 LIBS="-lpwl $LIBS"
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5647 /* Override any GCC internal prototype to avoid an error.
5648 Use char because int might match the return type of a GCC
5649 builtin and then its argument prototype would still apply. */
5650 #ifdef __cplusplus
5651 extern "C"
5652 #endif
5653 char PWL_handle_timeout ();
5655 main ()
5657 return PWL_handle_timeout ();
5659 return 0;
5661 _ACEOF
5662 if ac_fn_c_try_link "$LINENO"; then :
5663 ac_cv_lib_pwl_PWL_handle_timeout=yes
5664 else
5665 ac_cv_lib_pwl_PWL_handle_timeout=no
5667 rm -f core conftest.err conftest.$ac_objext \
5668 conftest$ac_exeext conftest.$ac_ext
5669 LIBS=$ac_check_lib_save_LIBS
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5672 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5673 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5674 pwllib="-lpwl"
5677 LIBS="$saved_LIBS"
5680 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5682 if test "$enable_ppl_version_check" != no; then
5683 saved_CFLAGS="$CFLAGS"
5684 CFLAGS="$CFLAGS $pplinc $gmpinc"
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5686 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include "ppl_c.h"
5691 main ()
5694 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5695 choke me
5696 #endif
5699 return 0;
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5704 $as_echo "yes" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 CFLAGS="$saved_CFLAGS"
5714 # Flags needed for PPL
5719 # Check for CLOOG
5723 # Check whether --with-cloog was given.
5724 if test "${with_cloog+set}" = set; then :
5725 withval=$with_cloog;
5729 # Check whether --with-cloog-include was given.
5730 if test "${with_cloog_include+set}" = set; then :
5731 withval=$with_cloog_include;
5735 # Check whether --with-cloog-lib was given.
5736 if test "${with_cloog_lib+set}" = set; then :
5737 withval=$with_cloog_lib;
5741 # Check whether --enable-cloog-backend was given.
5742 if test "${enable_cloog_backend+set}" = set; then :
5743 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5744 cloog_backend=isl
5745 elif test "x${enableval}" = "xppl"; then
5746 cloog_backend=ppl
5747 else
5748 cloog_backend=ppl-legacy
5750 else
5751 cloog_backend=ppl-legacy
5754 # Check whether --enable-cloog-version-check was given.
5755 if test "${enable_cloog_version_check+set}" = set; then :
5756 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5757 else
5758 ENABLE_CLOOG_CHECK=yes
5762 # Initialize clooglibs and clooginc.
5763 case $with_cloog in
5765 clooglibs=
5766 clooginc=
5768 "" | yes)
5771 clooglibs="-L$with_cloog/lib"
5772 clooginc="-I$with_cloog/include"
5774 esac
5775 if test "x${with_cloog_include}" != x ; then
5776 clooginc="-I$with_cloog_include"
5778 if test "x${with_cloog_lib}" != x; then
5779 clooglibs="-L$with_cloog_lib"
5786 if test "x$with_ppl" = "xno"; then
5790 if test "x${with_cloog}" = xno; then
5791 graphite_requested=no
5792 elif test "x${with_cloog}" != x \
5793 || test "x${with_cloog_include}" != x \
5794 || test "x${with_cloog_lib}" != x ; then
5795 graphite_requested=yes
5796 else
5797 graphite_requested=no
5801 if test "${graphite_requested}" = yes; then
5802 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5804 with_cloog=no
5806 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5807 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5808 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5809 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5811 if test "x$with_cloog" != "xno"; then
5815 _cloog_saved_CFLAGS=$CFLAGS
5816 _cloog_saved_CPPFLAGS=$CPPFLAGS
5817 _cloog_saved_LDFLAGS=$LDFLAGS
5818 _cloog_saved_LIBS=$LIBS
5820 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5822 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5823 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5824 LDFLAGS="${LDFLAGS} ${clooglibs}"
5826 case $cloog_backend in
5827 "ppl-legacy")
5828 CFLAGS="${CFLAGS} ${pplinc}"
5829 LDFLAGS="${LDFLAGS} ${ppllibs}"
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5831 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5832 if test "${gcc_cv_cloog_type+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 LIBS="-lcloog ${_cloog_saved_LIBS}"
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 #include "cloog/cloog.h"
5840 main ()
5842 #ifndef CLOOG_PPL_BACKEND
5843 choke me
5844 #endif
5846 return 0;
5848 _ACEOF
5849 if ac_fn_c_try_link "$LINENO"; then :
5850 gcc_cv_cloog_type="PPL Legacy"
5851 else
5852 gcc_cv_cloog_type=no
5854 rm -f core conftest.err conftest.$ac_objext \
5855 conftest$ac_exeext conftest.$ac_ext
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5858 $as_echo "$gcc_cv_cloog_type" >&6; }
5860 "isl")
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5862 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5863 if test "${gcc_cv_cloog_type+set}" = set; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 #include "cloog/cloog.h"
5871 main ()
5873 cloog_version ()
5875 return 0;
5877 _ACEOF
5878 if ac_fn_c_try_link "$LINENO"; then :
5879 gcc_cv_cloog_type="ISL"
5880 else
5881 gcc_cv_cloog_type=no
5883 rm -f core conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5887 $as_echo "$gcc_cv_cloog_type" >&6; }
5889 "ppl")
5890 CFLAGS="${CFLAGS} ${pplinc}"
5891 LDFLAGS="${LDFLAGS} ${ppllibs}"
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5893 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5894 if test "${gcc_cv_cloog_type+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900 #include "cloog/cloog.h"
5901 #include "cloog/ppl/cloog.h"
5903 main ()
5905 cloog_version ()
5907 return 0;
5909 _ACEOF
5910 if ac_fn_c_try_link "$LINENO"; then :
5911 gcc_cv_cloog_type="PPL"
5912 else
5913 gcc_cv_cloog_type=no
5915 rm -f core conftest.err conftest.$ac_objext \
5916 conftest$ac_exeext conftest.$ac_ext
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5919 $as_echo "$gcc_cv_cloog_type" >&6; }
5922 gcc_cv_cloog_type=""
5923 esac
5925 case $gcc_cv_cloog_type in
5926 "PPL Legacy")
5927 clooginc="${clooginc}"
5928 clooglibs="${clooglibs} -lcloog"
5929 cloog_org=no
5931 "ISL")
5932 clooginc="${clooginc} ${_cloogorginc}"
5933 clooglibs="${clooglibs} -lcloog-isl -lisl"
5934 cloog_org=yes
5936 "PPL")
5937 clooginc="${clooginc} ${_cloogorginc}"
5938 clooglibs="${clooglibs} -lcloog-ppl"
5939 cloog_org=yes
5942 clooglibs=
5943 clooginc=
5944 cloog_org=
5946 esac
5948 LIBS=$_cloog_saved_LIBS
5949 CFLAGS=$_cloog_saved_CFLAGS
5950 CPPFLAGS=$_cloog_saved_CPPFLAGS
5951 LDFLAGS=$_cloog_saved_LDFLAGS
5957 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5958 _cloog_saved_CFLAGS=$CFLAGS
5959 _cloog_saved_LDFLAGS=$LDFLAGS
5961 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5962 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5964 if test "${cloog_org}" = yes ; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5966 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
5967 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5969 else
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 != 16 \
5978 || CLOOG_VERSION_REVISION < 1
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_14_0=yes
5987 else
5988 gcc_cv_cloog_ct_0_14_0=no
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5993 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5994 elif test "${cloog_org}" = no ; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5996 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5997 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6002 #include "cloog/cloog.h"
6004 main ()
6006 #if CLOOG_VERSION_MAJOR != 0 \
6007 || CLOOG_VERSION_MINOR != 15 \
6008 || CLOOG_VERSION_REVISION < 5
6009 choke me
6010 #endif
6012 return 0;
6014 _ACEOF
6015 if ac_fn_c_try_compile "$LINENO"; then :
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6018 #include "cloog/cloog.h"
6020 main ()
6022 #if CLOOG_VERSION_MAJOR != 0 \
6023 || CLOOG_VERSION_MINOR != 15 \
6024 || CLOOG_VERSION_REVISION < 9
6025 choke me
6026 #endif
6028 return 0;
6030 _ACEOF
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032 gcc_cv_cloog_ct_0_15_5=yes
6033 else
6034 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 else
6038 gcc_cv_cloog_ct_0_15_5=no
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6043 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6046 CFLAGS=$_cloog_saved_CFLAGS
6047 LDFLAGS=$_cloog_saved_LDFLAGS
6056 if test "x${with_cloog}" = xno; then
6057 graphite_requested=no
6058 elif test "x${with_cloog}" != x \
6059 || test "x${with_cloog_include}" != x \
6060 || test "x${with_cloog_lib}" != x ; then
6061 graphite_requested=yes
6062 else
6063 graphite_requested=no
6068 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6069 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6070 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6071 clooglibs=
6072 clooginc=
6075 if test "${graphite_requested}" = yes \
6076 && test "x${clooglibs}" = x \
6077 && test "x${clooginc}" = x ; then
6079 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6085 # Check for LTO support.
6086 # Check whether --enable-lto was given.
6087 if test "${enable_lto+set}" = set; then :
6088 enableval=$enable_lto; enable_lto=$enableval
6089 else
6090 enable_lto=yes; default_enable_lto=yes
6097 target_elf=no
6098 case $target in
6099 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6100 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6101 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6102 target_elf=no
6105 target_elf=yes
6107 esac
6109 if test $target_elf = yes; then :
6110 # ELF platforms build the lto-plugin always.
6111 build_lto_plugin=yes
6113 else
6114 if test x"$default_enable_lto" = x"yes" ; then
6115 case $target in
6116 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6117 # On other non-ELF platforms, LTO has yet to be validated.
6118 *) enable_lto=no ;;
6119 esac
6120 else
6121 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6122 # It would also be nice to check the binutils support, but we don't
6123 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6124 # warn during gcc/ subconfigure; unless you're bootstrapping with
6125 # -flto it won't be needed until after installation anyway.
6126 case $target in
6127 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6128 *) if test x"$enable_lto" = x"yes"; then
6129 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6132 esac
6134 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6135 # Build it unless LTO was explicitly disabled.
6136 case $target in
6137 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6138 *) ;;
6139 esac
6145 # By default, C is the only stage 1 language.
6146 stage1_languages=,c,
6148 # Target libraries that we bootstrap.
6149 bootstrap_target_libs=,target-libgcc,
6151 # Figure out what language subdirectories are present.
6152 # Look if the user specified --enable-languages="..."; if not, use
6153 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6154 # go away some day.
6155 # NB: embedded tabs in this IF block -- do not untabify
6156 if test -d ${srcdir}/gcc; then
6157 if test x"${enable_languages+set}" != xset; then
6158 if test x"${LANGUAGES+set}" = xset; then
6159 enable_languages="${LANGUAGES}"
6160 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6161 else
6162 enable_languages=all
6164 else
6165 if test x"${enable_languages}" = x ||
6166 test x"${enable_languages}" = xyes;
6167 then
6168 echo configure.in: --enable-languages needs at least one language argument 1>&2
6169 exit 1
6172 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6174 # 'f95' is the old name for the 'fortran' language. We issue a warning
6175 # and make the substitution.
6176 case ,${enable_languages}, in
6177 *,f95,*)
6178 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6179 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6181 esac
6183 # If bootstrapping, then using --enable-build-with-cxx or
6184 # --enable-build-poststage1-with-cxx requires enabling C++.
6185 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6186 *,c++,*:*:*) ;;
6187 *:*,yes,*:yes)
6188 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6189 enable_languages="${enable_languages},c++"
6190 else
6191 as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6194 esac
6196 # First scan to see if an enabled language requires some other language.
6197 # We assume that a given config-lang.in will list all the language
6198 # front ends it requires, even if some are required indirectly.
6199 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6200 case ${lang_frag} in
6201 ..) ;;
6202 # The odd quoting in the next line works around
6203 # an apparent bug in bash 1.12 on linux.
6204 ${srcdir}/gcc/[*]/config-lang.in) ;;
6206 # From the config-lang.in, get $language, $lang_requires, and
6207 # $lang_requires_boot_languages.
6208 language=
6209 lang_requires=
6210 lang_requires_boot_languages=
6211 . ${lang_frag}
6212 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6213 case ,${enable_languages}, in
6214 *,$other,*) ;;
6215 *,all,*) ;;
6216 *,$language,*)
6217 echo " \`$other' language required by \`$language'; enabling" 1>&2
6218 enable_languages="${enable_languages},${other}"
6220 esac
6221 done
6222 for other in ${lang_requires_boot_languages} ; do
6223 if test "$other" != "c"; then
6224 case ,${enable_stage1_languages}, in
6225 *,$other,*) ;;
6226 *,all,*) ;;
6228 case ,${enable_languages}, in
6229 *,$language,*)
6230 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6231 enable_stage1_languages="$enable_stage1_languages,${other}"
6233 esac
6235 esac
6237 done
6239 esac
6240 done
6242 new_enable_languages=,c,
6244 # If LTO is enabled, add the LTO front end.
6245 extra_host_libiberty_configure_flags=
6246 if test "$enable_lto" = "yes" ; then
6247 case ,${enable_languages}, in
6248 *,lto,*) ;;
6249 *) enable_languages="${enable_languages},lto" ;;
6250 esac
6251 if test "${build_lto_plugin}" = "yes" ; then
6252 configdirs="$configdirs lto-plugin"
6253 extra_host_libiberty_configure_flags=--enable-shared
6258 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6259 potential_languages=,c,
6261 enabled_target_libs=
6262 disabled_target_libs=
6264 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6265 case ${lang_frag} in
6266 ..) ;;
6267 # The odd quoting in the next line works around
6268 # an apparent bug in bash 1.12 on linux.
6269 ${srcdir}/gcc/[*]/config-lang.in) ;;
6271 # From the config-lang.in, get $language, $target_libs,
6272 # $lang_dirs, $boot_language, and $build_by_default
6273 language=
6274 target_libs=
6275 lang_dirs=
6276 subdir_requires=
6277 boot_language=no
6278 build_by_default=yes
6279 . ${lang_frag}
6280 if test x${language} = x; then
6281 echo "${lang_frag} doesn't set \$language." 1>&2
6282 exit 1
6285 if test "$language" = "c++"; then
6286 if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6287 || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6288 boot_language=yes
6292 case ,${enable_languages}, in
6293 *,${language},*)
6294 # Language was explicitly selected; include it.
6295 add_this_lang=yes
6297 *,all,*)
6298 # 'all' was selected, select it if it is a default language
6299 add_this_lang=${build_by_default}
6302 add_this_lang=no
6304 esac
6306 # Disable languages that need other directories if these aren't available.
6307 for i in $subdir_requires; do
6308 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6309 case ,${enable_languages}, in
6310 *,${language},*)
6311 # Specifically requested language; tell them.
6312 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6315 # Silently disable.
6316 add_this_lang=unsupported
6318 esac
6319 done
6321 # Disable Ada if no preexisting GNAT is available.
6322 case ,${enable_languages},:${language}:${have_gnat} in
6323 *,${language},*:ada:no)
6324 # Specifically requested language; tell them.
6325 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6327 *:ada:no)
6328 # Silently disable.
6329 add_this_lang=unsupported
6331 esac
6333 # Disable a language that is unsupported by the target.
6334 case " $unsupported_languages " in
6335 *" $language "*)
6336 add_this_lang=unsupported
6338 esac
6340 case $add_this_lang in
6341 unsupported)
6342 # Remove language-dependent dirs.
6343 disabled_target_libs="$disabled_target_libs $target_libs"
6344 noconfigdirs="$noconfigdirs $lang_dirs"
6347 # Remove language-dependent dirs; still show language as supported.
6348 disabled_target_libs="$disabled_target_libs $target_libs"
6349 noconfigdirs="$noconfigdirs $lang_dirs"
6350 potential_languages="${potential_languages}${language},"
6352 yes)
6353 new_enable_languages="${new_enable_languages}${language},"
6354 potential_languages="${potential_languages}${language},"
6355 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6356 enabled_target_libs="$enabled_target_libs $target_libs"
6357 case "${boot_language}:,$enable_stage1_languages," in
6358 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6359 # Add to (comma-separated) list of stage 1 languages.
6360 case ",$stage1_languages," in
6361 *,$language,* | ,yes, | ,all,) ;;
6362 *) stage1_languages="${stage1_languages}${language}," ;;
6363 esac
6364 # We need to bootstrap any supporting libraries.
6365 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6367 esac
6369 esac
6371 esac
6372 done
6374 # Add target libraries which are only needed for disabled languages
6375 # to noconfigdirs.
6376 if test -n "$disabled_target_libs"; then
6377 for dir in $disabled_target_libs; do
6378 case " $enabled_target_libs " in
6379 *" ${dir} "*) ;;
6380 *) noconfigdirs="$noconfigdirs $dir" ;;
6381 esac
6382 done
6385 # Check whether --enable-stage1-languages was given.
6386 if test "${enable_stage1_languages+set}" = set; then :
6387 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6388 ,no,|,,)
6389 # Set it to something that will have no effect in the loop below
6390 enable_stage1_languages=c ;;
6391 ,yes,)
6392 enable_stage1_languages=`echo $new_enable_languages | \
6393 sed -e "s/^,//" -e "s/,$//" ` ;;
6394 *,all,*)
6395 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6396 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6397 esac
6399 # Add "good" languages from enable_stage1_languages to stage1_languages,
6400 # while "bad" languages go in missing_languages. Leave no duplicates.
6401 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6402 case $potential_languages in
6403 *,$i,*)
6404 case $stage1_languages in
6405 *,$i,*) ;;
6406 *) stage1_languages="$stage1_languages$i," ;;
6407 esac ;;
6409 case $missing_languages in
6410 *,$i,*) ;;
6411 *) missing_languages="$missing_languages$i," ;;
6412 esac ;;
6413 esac
6414 done
6418 # Remove leading/trailing commas that were added for simplicity
6419 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6420 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6421 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6422 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6424 if test "x$missing_languages" != x; then
6425 as_fn_error "
6426 The following requested languages could not be built: ${missing_languages}
6427 Supported languages are: ${potential_languages}" "$LINENO" 5
6429 if test "x$new_enable_languages" != "x$enable_languages"; then
6430 echo The following languages will be built: ${new_enable_languages}
6431 enable_languages="$new_enable_languages"
6435 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6438 # Handle --disable-<component> generically.
6439 for dir in $configdirs $build_configdirs $target_configdirs ; do
6440 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6441 varname=`echo $dirname | sed -e s/+/_/g`
6442 if eval test x\${enable_${varname}} "=" xno ; then
6443 noconfigdirs="$noconfigdirs $dir"
6445 done
6447 # Check for Boehm's garbage collector
6448 # Check whether --enable-objc-gc was given.
6449 if test "${enable_objc_gc+set}" = set; then :
6450 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6451 *,objc,*:*:yes:*target-boehm-gc*)
6452 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6454 esac
6458 # Make sure we only build Boehm's garbage collector if required.
6459 case ,${enable_languages},:${enable_objc_gc} in
6460 *,objc,*:yes)
6461 # Keep target-boehm-gc if requested for Objective-C.
6464 # Otherwise remove target-boehm-gc depending on target-libjava.
6465 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6466 noconfigdirs="$noconfigdirs target-boehm-gc"
6469 esac
6471 # Disable libitm if we're not building C++
6472 case ,${enable_languages}, in
6473 *,c++,*) ;;
6475 noconfigdirs="$noconfigdirs target-libitm"
6477 esac
6479 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6480 # $build_configdirs and $target_configdirs.
6481 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6483 notsupp=""
6484 for dir in . $skipdirs $noconfigdirs ; do
6485 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6486 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6487 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6488 if test -r $srcdir/$dirname/configure ; then
6489 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6490 true
6491 else
6492 notsupp="$notsupp $dir"
6496 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6497 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6498 if test -r $srcdir/$dirname/configure ; then
6499 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6500 true
6501 else
6502 notsupp="$notsupp $dir"
6506 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6507 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6508 if test -r $srcdir/$dirname/configure ; then
6509 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6510 true
6511 else
6512 notsupp="$notsupp $dir"
6516 done
6518 # Quietly strip out all directories which aren't configurable in this tree.
6519 # This relies on all configurable subdirectories being autoconfiscated, which
6520 # is now the case.
6521 build_configdirs_all="$build_configdirs"
6522 build_configdirs=
6523 for i in ${build_configdirs_all} ; do
6524 j=`echo $i | sed -e s/build-//g`
6525 if test -f ${srcdir}/$j/configure ; then
6526 build_configdirs="${build_configdirs} $i"
6528 done
6530 configdirs_all="$configdirs"
6531 configdirs=
6532 for i in ${configdirs_all} ; do
6533 if test -f ${srcdir}/$i/configure ; then
6534 configdirs="${configdirs} $i"
6536 done
6538 target_configdirs_all="$target_configdirs"
6539 target_configdirs=
6540 for i in ${target_configdirs_all} ; do
6541 j=`echo $i | sed -e s/target-//g`
6542 if test -f ${srcdir}/$j/configure ; then
6543 target_configdirs="${target_configdirs} $i"
6545 done
6547 # Produce a warning message for the subdirs we can't configure.
6548 # This isn't especially interesting in the Cygnus tree, but in the individual
6549 # FSF releases, it's important to let people know when their machine isn't
6550 # supported by the one or two programs in a package.
6552 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6553 # If $appdirs is non-empty, at least one of those directories must still
6554 # be configured, or we error out. (E.g., if the gas release supports a
6555 # specified target in some subdirs but not the gas subdir, we shouldn't
6556 # pretend that all is well.)
6557 if test -n "$appdirs" ; then
6558 for dir in $appdirs ; do
6559 if test -r $dir/Makefile.in ; then
6560 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6561 appdirs=""
6562 break
6564 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6565 appdirs=""
6566 break
6569 done
6570 if test -n "$appdirs" ; then
6571 echo "*** This configuration is not supported by this package." 1>&2
6572 exit 1
6575 # Okay, some application will build, or we don't care to check. Still
6576 # notify of subdirs not getting built.
6577 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6578 echo " ${notsupp}" 1>&2
6579 echo " (Any other directories should still work fine.)" 1>&2
6582 case "$host" in
6583 *msdosdjgpp*)
6584 enable_gdbtk=no ;;
6585 esac
6587 # To find our prefix, in gcc_cv_tool_prefix.
6589 # The user is always right.
6590 if test "${PATH_SEPARATOR+set}" != set; then
6591 echo "#! /bin/sh" >conf$$.sh
6592 echo "exit 0" >>conf$$.sh
6593 chmod +x conf$$.sh
6594 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6595 PATH_SEPARATOR=';'
6596 else
6597 PATH_SEPARATOR=:
6599 rm -f conf$$.sh
6604 if test "x$exec_prefix" = xNONE; then
6605 if test "x$prefix" = xNONE; then
6606 gcc_cv_tool_prefix=$ac_default_prefix
6607 else
6608 gcc_cv_tool_prefix=$prefix
6610 else
6611 gcc_cv_tool_prefix=$exec_prefix
6614 # If there is no compiler in the tree, use the PATH only. In any
6615 # case, if there is no compiler in the tree nobody should use
6616 # AS_FOR_TARGET and LD_FOR_TARGET.
6617 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6618 gcc_version=`cat $srcdir/gcc/BASE-VER`
6619 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6620 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6621 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6622 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6623 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6624 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6625 else
6626 gcc_cv_tool_dirs=
6629 if test x$build = x$target && test -n "$md_exec_prefix"; then
6630 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6635 copy_dirs=
6638 # Check whether --with-build-sysroot was given.
6639 if test "${with_build_sysroot+set}" = set; then :
6640 withval=$with_build_sysroot; if test x"$withval" != x ; then
6641 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6643 else
6644 SYSROOT_CFLAGS_FOR_TARGET=
6650 # Check whether --with-debug-prefix-map was given.
6651 if test "${with_debug_prefix_map+set}" = set; then :
6652 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6653 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6654 for debug_map in $withval; do
6655 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6656 done
6658 else
6659 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6664 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6665 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6666 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6667 # We want to ensure that TARGET libraries (which we know are built with
6668 # gcc) are built with "-O2 -g", so include those options when setting
6669 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6670 if test "x$CFLAGS_FOR_TARGET" = x; then
6671 CFLAGS_FOR_TARGET=$CFLAGS
6672 case " $CFLAGS " in
6673 *" -O2 "*) ;;
6674 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6675 esac
6676 case " $CFLAGS " in
6677 *" -g "* | *" -g3 "*) ;;
6678 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6679 esac
6683 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6684 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6685 case " $CXXFLAGS " in
6686 *" -O2 "*) ;;
6687 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6688 esac
6689 case " $CXXFLAGS " in
6690 *" -g "* | *" -g3 "*) ;;
6691 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6692 esac
6698 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6699 # the named directory are copied to $(tooldir)/sys-include.
6700 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6701 if test x${is_cross_compiler} = xno ; then
6702 echo 1>&2 '***' --with-headers is only supported when cross compiling
6703 exit 1
6705 if test x"${with_headers}" != xyes ; then
6706 x=${gcc_cv_tool_prefix}
6707 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6711 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6712 # the name directories are copied to $(tooldir)/lib. Multiple directories
6713 # are permitted.
6714 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6715 if test x${is_cross_compiler} = xno ; then
6716 echo 1>&2 '***' --with-libs is only supported when cross compiling
6717 exit 1
6719 if test x"${with_libs}" != xyes ; then
6720 # Copy the libraries in reverse order, so that files in the first named
6721 # library override files in subsequent libraries.
6722 x=${gcc_cv_tool_prefix}
6723 for l in ${with_libs}; do
6724 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6725 done
6729 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6731 # This is done by determining whether or not the appropriate directory
6732 # is available, and by checking whether or not specific configurations
6733 # have requested that this magic not happen.
6735 # The command line options always override the explicit settings in
6736 # configure.in, and the settings in configure.in override this magic.
6738 # If the default for a toolchain is to use GNU as and ld, and you don't
6739 # want to do that, then you should use the --without-gnu-as and
6740 # --without-gnu-ld options for the configure script. Similarly, if
6741 # the default is to use the included zlib and you don't want to do that,
6742 # you should use the --with-system-zlib option for the configure script.
6744 if test x${use_gnu_as} = x &&
6745 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6746 with_gnu_as=yes
6747 extra_host_args="$extra_host_args --with-gnu-as"
6750 if test x${use_gnu_ld} = x &&
6751 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6752 with_gnu_ld=yes
6753 extra_host_args="$extra_host_args --with-gnu-ld"
6756 if test x${use_included_zlib} = x &&
6757 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6759 else
6760 with_system_zlib=yes
6761 extra_host_args="$extra_host_args --with-system-zlib"
6764 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6765 # can detect this case.
6767 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6768 with_newlib=yes
6769 extra_host_args="$extra_host_args --with-newlib"
6772 # Handle ${copy_dirs}
6773 set fnord ${copy_dirs}
6774 shift
6775 while test $# != 0 ; do
6776 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6778 else
6779 echo Copying $1 to $2
6781 # Use the install script to create the directory and all required
6782 # parent directories.
6783 if test -d $2 ; then
6785 else
6786 echo >config.temp
6787 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6790 # Copy the directory, assuming we have tar.
6791 # FIXME: Should we use B in the second tar? Not all systems support it.
6792 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6794 # It is the responsibility of the user to correctly adjust all
6795 # symlinks. If somebody can figure out how to handle them correctly
6796 # here, feel free to add the code.
6798 echo $1 > $2/COPIED
6800 shift; shift
6801 done
6803 # Determine a target-dependent exec_prefix that the installed
6804 # gcc will search in. Keep this list sorted by triplet, with
6805 # the *-*-osname triplets last.
6806 md_exec_prefix=
6807 case "${target}" in
6808 i[34567]86-pc-msdosdjgpp*)
6809 md_exec_prefix=/dev/env/DJDIR/bin
6811 *-*-hpux* | \
6812 *-*-nto-qnx* | \
6813 *-*-solaris2*)
6814 md_exec_prefix=/usr/ccs/bin
6816 esac
6818 extra_arflags_for_target=
6819 extra_nmflags_for_target=
6820 extra_ranlibflags_for_target=
6821 target_makefile_frag=/dev/null
6822 case "${target}" in
6823 spu-*-*)
6824 target_makefile_frag="config/mt-spu"
6826 mips*-sde-elf*)
6827 target_makefile_frag="config/mt-sde"
6829 mipsisa*-*-elfoabi*)
6830 target_makefile_frag="config/mt-mips-elfoabi"
6832 mips*-*-*linux* | mips*-*-gnu*)
6833 target_makefile_frag="config/mt-mips-gnu"
6835 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6836 target_makefile_frag="config/mt-gnu"
6838 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6839 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6840 # commands to handle both 32-bit and 64-bit objects. These flags are
6841 # harmless if we're using GNU nm or ar.
6842 extra_arflags_for_target=" -X32_64"
6843 extra_nmflags_for_target=" -B -X32_64"
6845 esac
6847 alphaieee_frag=/dev/null
6848 case $target in
6849 alpha*-*-*)
6850 # This just makes sure to use the -mieee option to build target libs.
6851 # This should probably be set individually by each library.
6852 alphaieee_frag="config/mt-alphaieee"
6854 esac
6856 # If --enable-target-optspace always use -Os instead of -O2 to build
6857 # the target libraries, similarly if it is not specified, use -Os
6858 # on selected platforms.
6859 ospace_frag=/dev/null
6860 case "${enable_target_optspace}:${target}" in
6861 yes:*)
6862 ospace_frag="config/mt-ospace"
6864 :d30v-*)
6865 ospace_frag="config/mt-d30v"
6867 :m32r-* | :d10v-* | :fr30-*)
6868 ospace_frag="config/mt-ospace"
6870 no:* | :*)
6873 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6875 esac
6877 # Default to using --with-stabs for certain targets.
6878 if test x${with_stabs} = x ; then
6879 case "${target}" in
6880 mips*-*-irix[56]*)
6882 mips*-*-* | alpha*-*-osf*)
6883 with_stabs=yes;
6884 extra_host_args="${extra_host_args} --with-stabs"
6886 esac
6889 # Some systems (e.g., one of the i386-aix systems the gas testers are
6890 # using) don't handle "\$" correctly, so don't use it here.
6891 tooldir='${exec_prefix}'/${target_noncanonical}
6892 build_tooldir=${tooldir}
6894 # Create a .gdbinit file which runs the one in srcdir
6895 # and tells GDB to look there for source files.
6897 if test -r ${srcdir}/.gdbinit ; then
6898 case ${srcdir} in
6899 .) ;;
6900 *) cat > ./.gdbinit <<EOF
6901 # ${NO_EDIT}
6902 dir ${srcdir}
6903 dir .
6904 source ${srcdir}/.gdbinit
6907 esac
6910 # Make sure that the compiler is able to generate an executable. If it
6911 # can't, we are probably in trouble. We don't care whether we can run the
6912 # executable--we might be using a cross compiler--we only care whether it
6913 # can be created. At this point the main configure script has set CC.
6914 we_are_ok=no
6915 echo "int main () { return 0; }" > conftest.c
6916 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6917 if test $? = 0 ; then
6918 if test -s conftest || test -s conftest.exe ; then
6919 we_are_ok=yes
6922 case $we_are_ok in
6924 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6925 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6926 rm -f conftest*
6927 exit 1
6929 esac
6930 rm -f conftest*
6932 # Decide which environment variable is used to find dynamic libraries.
6933 case "${host}" in
6934 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6935 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6936 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6937 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6938 esac
6940 # On systems where the dynamic library environment variable is PATH,
6941 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6942 # built executables to PATH.
6943 if test "$RPATH_ENVVAR" = PATH; then
6944 GCC_SHLIB_SUBDIR=/shlib
6945 else
6946 GCC_SHLIB_SUBDIR=
6949 # Record target_configdirs and the configure arguments for target and
6950 # build configuration in Makefile.
6951 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6952 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6954 # If we are building libgomp, bootstrap it.
6955 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6956 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6959 # Determine whether gdb needs tk/tcl or not.
6960 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6961 # and in that case we want gdb to be built without tk. Ugh!
6962 # In fact I believe gdb is the *only* package directly dependent on tk,
6963 # so we should be able to put the 'maybe's in unconditionally and
6964 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6965 # 100% sure that that's safe though.
6967 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6968 case "$enable_gdbtk" in
6970 GDB_TK="" ;;
6971 yes)
6972 GDB_TK="${gdb_tk}" ;;
6974 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6975 # distro. Eventually someone will fix this and move Insight, nee
6976 # gdbtk to a separate directory.
6977 if test -d ${srcdir}/gdb/gdbtk ; then
6978 GDB_TK="${gdb_tk}"
6979 else
6980 GDB_TK=""
6983 esac
6984 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6985 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6987 # Strip out unwanted targets.
6989 # While at that, we remove Makefiles if we were started for recursive
6990 # configuration, so that the top-level Makefile reconfigures them,
6991 # like we used to do when configure itself was recursive.
6993 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6994 # but now we're fixing up the Makefile ourselves with the additional
6995 # commands passed to AC_CONFIG_FILES. Use separate variables
6996 # extrasub-{build,host,target} not because there is any reason to split
6997 # the substitutions up that way, but only to remain below the limit of
6998 # 99 commands in a script, for HP-UX sed.
6999 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7001 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7002 yes:yes:*\ gold\ *:*,c++,*) ;;
7003 yes:yes:*\ gold\ *:*)
7004 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7006 esac
7008 # Adjust the toplevel makefile according to whether bootstrap was selected.
7009 case $enable_bootstrap in
7010 yes)
7011 bootstrap_suffix=bootstrap
7012 BUILD_CONFIG=bootstrap-debug
7015 bootstrap_suffix=no-bootstrap
7016 BUILD_CONFIG=
7018 esac
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7021 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7024 # Check whether --with-build-config was given.
7025 if test "${with_build_config+set}" = set; then :
7026 withval=$with_build_config; case $with_build_config in
7027 yes) with_build_config= ;;
7028 no) with_build_config= BUILD_CONFIG= ;;
7029 esac
7033 if test "x${with_build_config}" != x; then
7034 BUILD_CONFIG=$with_build_config
7035 else
7036 case $BUILD_CONFIG in
7037 bootstrap-debug)
7038 if echo "int f (void) { return 0; }" > conftest.c &&
7039 ${CC} -c conftest.c &&
7040 mv conftest.o conftest.o.g0 &&
7041 ${CC} -c -g conftest.c &&
7042 mv conftest.o conftest.o.g &&
7043 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7045 else
7046 BUILD_CONFIG=
7048 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7050 esac
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7053 $as_echo "$BUILD_CONFIG" >&6; }
7056 extrasub_build=
7057 for module in ${build_configdirs} ; do
7058 if test -z "${no_recursion}" \
7059 && test -f ${build_subdir}/${module}/Makefile; then
7060 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7061 rm -f ${build_subdir}/${module}/Makefile
7063 extrasub_build="$extrasub_build
7064 /^@if build-$module\$/d
7065 /^@endif build-$module\$/d
7066 /^@if build-$module-$bootstrap_suffix\$/d
7067 /^@endif build-$module-$bootstrap_suffix\$/d"
7068 done
7069 extrasub_host=
7070 for module in ${configdirs} ; do
7071 if test -z "${no_recursion}"; then
7072 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7073 if test -f ${file}; then
7074 echo 1>&2 "*** removing ${file} to force reconfigure"
7075 rm -f ${file}
7077 done
7079 extrasub_host="$extrasub_host
7080 /^@if $module\$/d
7081 /^@endif $module\$/d
7082 /^@if $module-$bootstrap_suffix\$/d
7083 /^@endif $module-$bootstrap_suffix\$/d"
7084 done
7085 extrasub_target=
7086 for module in ${target_configdirs} ; do
7087 if test -z "${no_recursion}" \
7088 && test -f ${target_subdir}/${module}/Makefile; then
7089 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7090 rm -f ${target_subdir}/${module}/Makefile
7093 # We only bootstrap target libraries listed in bootstrap_target_libs.
7094 case $bootstrap_target_libs in
7095 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7096 *) target_bootstrap_suffix=no-bootstrap ;;
7097 esac
7099 extrasub_target="$extrasub_target
7100 /^@if target-$module\$/d
7101 /^@endif target-$module\$/d
7102 /^@if target-$module-$target_bootstrap_suffix\$/d
7103 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7104 done
7106 # Do the final fixup along with target modules.
7107 extrasub_target="$extrasub_target
7108 /^@if /,/^@endif /d"
7110 # Create the serialization dependencies. This uses a temporary file.
7112 # Check whether --enable-serial-configure was given.
7113 if test "${enable_serial_configure+set}" = set; then :
7114 enableval=$enable_serial_configure;
7118 case ${enable_serial_configure} in
7119 yes)
7120 enable_serial_build_configure=yes
7121 enable_serial_host_configure=yes
7122 enable_serial_target_configure=yes
7124 esac
7126 # These force 'configure's to be done one at a time, to avoid problems
7127 # with contention over a shared config.cache.
7128 rm -f serdep.tmp
7129 echo '# serdep.tmp' > serdep.tmp
7130 olditem=
7131 test "x${enable_serial_build_configure}" = xyes &&
7132 for item in ${build_configdirs} ; do
7133 case ${olditem} in
7134 "") ;;
7135 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7136 esac
7137 olditem=${item}
7138 done
7139 olditem=
7140 test "x${enable_serial_host_configure}" = xyes &&
7141 for item in ${configdirs} ; do
7142 case ${olditem} in
7143 "") ;;
7144 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7145 esac
7146 olditem=${item}
7147 done
7148 olditem=
7149 test "x${enable_serial_target_configure}" = xyes &&
7150 for item in ${target_configdirs} ; do
7151 case ${olditem} in
7152 "") ;;
7153 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7154 esac
7155 olditem=${item}
7156 done
7157 serialization_dependencies=serdep.tmp
7160 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7161 # target, nonopt, and variable assignments. These are the ones we
7162 # might not want to pass down to subconfigures. The exception being
7163 # --cache-file=/dev/null, which is used to turn off the use of cache
7164 # files altogether, and which should be passed on to subconfigures.
7165 # Also strip program-prefix, program-suffix, and program-transform-name,
7166 # so that we can pass down a consistent program-transform-name.
7167 baseargs=
7168 tbaseargs=
7169 keep_next=no
7170 skip_next=no
7171 eval "set -- $ac_configure_args"
7172 for ac_arg
7174 if test X"$skip_next" = X"yes"; then
7175 skip_next=no
7176 continue
7178 if test X"$keep_next" = X"yes"; then
7179 case $ac_arg in
7180 *\'*)
7181 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7182 esac
7183 baseargs="$baseargs '$ac_arg'"
7184 tbaseargs="$tbaseargs '$ac_arg'"
7185 keep_next=no
7186 continue
7189 # Handle separated arguments. Based on the logic generated by
7190 # autoconf 2.59.
7191 case $ac_arg in
7192 *=* | --config-cache | -C | -disable-* | --disable-* \
7193 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7194 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7195 | -with-* | --with-* | -without-* | --without-* | --x)
7196 separate_arg=no
7199 separate_arg=yes
7202 separate_arg=no
7204 esac
7206 skip_targ=no
7207 case $ac_arg in
7209 --with-* | --without-*)
7210 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7212 case $libopt in
7213 *[-_]include)
7214 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7216 *[-_]lib)
7217 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7220 lib=$libopt
7222 esac
7225 case $lib in
7226 mpc | mpfr | gmp | ppl | cloog)
7227 # If we're processing --with-$lib, --with-$lib-include or
7228 # --with-$lib-lib, for one of the libs above, and target is
7229 # different from host, don't pass the current argument to any
7230 # target library's configure.
7231 if test x$is_cross_compiler = xyes; then
7232 skip_targ=yes
7235 esac
7237 esac
7239 case "$ac_arg" in
7240 --cache-file=/dev/null | \
7241 -cache-file=/dev/null )
7242 # Handled here to avoid the test to skip args below.
7243 baseargs="$baseargs '$ac_arg'"
7244 tbaseargs="$tbaseargs '$ac_arg'"
7245 # Assert: $separate_arg should always be no.
7246 keep_next=$separate_arg
7248 --no*)
7249 continue
7251 --c* | \
7252 --sr* | \
7253 --ho* | \
7254 --bu* | \
7255 --t* | \
7256 --program-* | \
7257 -cache_file* | \
7258 -srcdir* | \
7259 -host* | \
7260 -build* | \
7261 -target* | \
7262 -program-prefix* | \
7263 -program-suffix* | \
7264 -program-transform-name* )
7265 skip_next=$separate_arg
7266 continue
7269 # An option. Add it.
7270 case $ac_arg in
7271 *\'*)
7272 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7273 esac
7274 baseargs="$baseargs '$ac_arg'"
7275 if test X"$skip_targ" = Xno; then
7276 tbaseargs="$tbaseargs '$ac_arg'"
7278 keep_next=$separate_arg
7281 # Either a variable assignment, or a nonopt (triplet). Don't
7282 # pass it down; let the Makefile handle this.
7283 continue
7285 esac
7286 done
7287 # Remove the initial space we just introduced and, as these will be
7288 # expanded by make, quote '$'.
7289 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7291 # Add in --program-transform-name, after --program-prefix and
7292 # --program-suffix have been applied to it. Autoconf has already
7293 # doubled dollar signs and backslashes in program_transform_name; we want
7294 # the backslashes un-doubled, and then the entire thing wrapped in single
7295 # quotes, because this will be expanded first by make and then by the shell.
7296 # Also, because we want to override the logic in subdir configure scripts to
7297 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7298 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7299 ${program_transform_name}
7300 EOF_SED
7301 gcc_transform_name=`cat conftestsed.out`
7302 rm -f conftestsed.out
7303 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7304 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7305 if test "$silent" = yes; then
7306 baseargs="$baseargs --silent"
7307 tbaseargs="$tbaseargs --silent"
7309 baseargs="$baseargs --disable-option-checking"
7310 tbaseargs="$tbaseargs --disable-option-checking"
7312 # Record and document user additions to sub configure arguments.
7317 # For the build-side libraries, we just need to pretend we're native,
7318 # and not use the same cache file. Multilibs are neither needed nor
7319 # desired.
7320 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7322 # For host modules, accept cache file option, or specification as blank.
7323 case "${cache_file}" in
7324 "") # empty
7325 cache_file_option="" ;;
7326 /* | [A-Za-z]:[\\/]* ) # absolute path
7327 cache_file_option="--cache-file=${cache_file}" ;;
7328 *) # relative path
7329 cache_file_option="--cache-file=../${cache_file}" ;;
7330 esac
7332 # Host dirs don't like to share a cache file either, horribly enough.
7333 # This seems to be due to autoconf 2.5x stupidity.
7334 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7336 target_configargs="$target_configargs ${tbaseargs}"
7338 # Passing a --with-cross-host argument lets the target libraries know
7339 # whether they are being built with a cross-compiler or being built
7340 # native. However, it would be better to use other mechanisms to make the
7341 # sorts of decisions they want to make on this basis. Please consider
7342 # this option to be deprecated. FIXME.
7343 if test x${is_cross_compiler} = xyes ; then
7344 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7347 # Default to --enable-multilib.
7348 if test x${enable_multilib} = x ; then
7349 target_configargs="--enable-multilib ${target_configargs}"
7352 # Pass --with-newlib if appropriate. Note that target_configdirs has
7353 # changed from the earlier setting of with_newlib.
7354 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7355 target_configargs="--with-newlib ${target_configargs}"
7358 # Different target subdirs use different values of certain variables
7359 # (notably CXX). Worse, multilibs use *lots* of different values.
7360 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7361 # it doesn't automatically accept command-line overrides of them.
7362 # This means it's not safe for target subdirs to share a cache file,
7363 # which is disgusting, but there you have it. Hopefully this can be
7364 # fixed in future. It's still worthwhile to use a cache file for each
7365 # directory. I think.
7367 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7368 # We need to pass --target, as newer autoconf's requires consistency
7369 # for target_alias and gcc doesn't manage it consistently.
7370 target_configargs="--cache-file=./config.cache ${target_configargs}"
7372 FLAGS_FOR_TARGET=
7373 case " $target_configdirs " in
7374 *" newlib "*)
7375 case " $target_configargs " in
7376 *" --with-newlib "*)
7377 case "$target" in
7378 *-cygwin*)
7379 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'
7381 esac
7383 # If we're not building GCC, don't discard standard headers.
7384 if test -d ${srcdir}/gcc; then
7385 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7387 if test "${build}" != "${host}"; then
7388 # On Canadian crosses, CC_FOR_TARGET will have already been set
7389 # by `configure', so we won't have an opportunity to add -Bgcc/
7390 # to it. This is right: we don't want to search that directory
7391 # for binaries, but we want the header files in there, so add
7392 # them explicitly.
7393 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7395 # Someone might think of using the pre-installed headers on
7396 # Canadian crosses, in case the installed compiler is not fully
7397 # compatible with the compiler being built. In this case, it
7398 # would be better to flag an error than risking having
7399 # incompatible object files being constructed. We can't
7400 # guarantee that an error will be flagged, but let's hope the
7401 # compiler will do it, when presented with incompatible header
7402 # files.
7406 case "${target}-${is_cross_compiler}" in
7407 i[3456789]86-*-linux*-no)
7408 # Here host == target, so we don't need to build gcc,
7409 # so we don't want to discard standard headers.
7410 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7413 # If we're building newlib, use its generic headers last, but search
7414 # for any libc-related directories first (so make it the last -B
7415 # switch).
7416 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7418 # If we're building libgloss, find the startup file, simulator library
7419 # and linker script.
7420 case " $target_configdirs " in
7421 *" libgloss "*)
7422 # Look for startup file, simulator library and maybe linker script.
7423 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7424 # Look for libnosys.a in case the target needs it.
7425 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7426 # Most targets have the linker script in the source directory.
7427 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7429 esac
7431 esac
7433 esac
7435 esac
7437 case "$target" in
7438 x86_64-*mingw* | *-w64-mingw*)
7439 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7440 # however, use a symlink named 'mingw' in ${prefix} .
7441 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7443 *-mingw*)
7444 # MinGW can't be handled as Cygwin above since it does not use newlib.
7445 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'
7447 esac
7449 # Allow the user to override the flags for
7450 # our build compiler if desired.
7451 if test x"${build}" = x"${host}" ; then
7452 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7453 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7454 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7457 # On Canadian crosses, we'll be searching the right directories for
7458 # the previously-installed cross compiler, so don't bother to add
7459 # flags for directories within the install tree of the compiler
7460 # being built; programs in there won't even run.
7461 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7462 # Search for pre-installed headers if nothing else fits.
7463 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7466 if test "x${use_gnu_ld}" = x &&
7467 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7468 # Arrange for us to find uninstalled linker scripts.
7469 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7472 # Search for other target-specific linker scripts and such.
7473 case "${target}" in
7474 mep*)
7475 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7477 esac
7479 # Makefile fragments.
7480 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7482 eval fragval=\$$frag
7483 if test $fragval != /dev/null; then
7484 eval $frag=${srcdir}/$fragval
7486 done
7492 # Miscellanea: directories, flags, etc.
7501 # Build module lists & subconfigure args.
7505 # Host module lists & subconfigure args.
7510 # Target module lists & subconfigure args.
7514 # Build tools.
7532 # Generate default definitions for YACC, M4, LEX and other programs that run
7533 # on the build machine. These are used if the Makefile can't locate these
7534 # programs in objdir.
7535 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7537 for ac_prog in 'bison -y' byacc yacc
7539 # Extract the first word of "$ac_prog", so it can be a program name with args.
7540 set dummy $ac_prog; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if test "${ac_cv_prog_YACC+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 if test -n "$YACC"; then
7547 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_prog_YACC="$ac_prog"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7560 done
7561 done
7562 IFS=$as_save_IFS
7566 YACC=$ac_cv_prog_YACC
7567 if test -n "$YACC"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7569 $as_echo "$YACC" >&6; }
7570 else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7576 test -n "$YACC" && break
7577 done
7578 test -n "$YACC" || YACC="$MISSING bison -y"
7580 case " $build_configdirs " in
7581 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7582 esac
7584 for ac_prog in bison
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy $ac_prog; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if test "${ac_cv_prog_BISON+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 if test -n "$BISON"; then
7594 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_BISON="$ac_prog"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7607 done
7608 done
7609 IFS=$as_save_IFS
7613 BISON=$ac_cv_prog_BISON
7614 if test -n "$BISON"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7616 $as_echo "$BISON" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7623 test -n "$BISON" && break
7624 done
7625 test -n "$BISON" || BISON="$MISSING bison"
7627 case " $build_configdirs " in
7628 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7629 esac
7631 for ac_prog in gm4 gnum4 m4
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if test "${ac_cv_prog_M4+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 if test -n "$M4"; then
7641 ac_cv_prog_M4="$M4" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_M4="$ac_prog"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7654 done
7655 done
7656 IFS=$as_save_IFS
7660 M4=$ac_cv_prog_M4
7661 if test -n "$M4"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7663 $as_echo "$M4" >&6; }
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7670 test -n "$M4" && break
7671 done
7672 test -n "$M4" || M4="$MISSING m4"
7674 case " $build_configdirs " in
7675 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7676 esac
7678 for ac_prog in flex lex
7680 # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if test "${ac_cv_prog_LEX+set}" = set; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 if test -n "$LEX"; then
7688 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_prog_LEX="$ac_prog"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7701 done
7702 done
7703 IFS=$as_save_IFS
7707 LEX=$ac_cv_prog_LEX
7708 if test -n "$LEX"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7710 $as_echo "$LEX" >&6; }
7711 else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7717 test -n "$LEX" && break
7718 done
7719 test -n "$LEX" || LEX="$MISSING flex"
7721 case " $build_configdirs " in
7722 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7723 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7724 esac
7726 for ac_prog in flex
7728 # Extract the first word of "$ac_prog", so it can be a program name with args.
7729 set dummy $ac_prog; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if test "${ac_cv_prog_FLEX+set}" = set; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 if test -n "$FLEX"; then
7736 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 ac_cv_prog_FLEX="$ac_prog"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7749 done
7750 done
7751 IFS=$as_save_IFS
7755 FLEX=$ac_cv_prog_FLEX
7756 if test -n "$FLEX"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7758 $as_echo "$FLEX" >&6; }
7759 else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7765 test -n "$FLEX" && break
7766 done
7767 test -n "$FLEX" || FLEX="$MISSING flex"
7769 case " $build_configdirs " in
7770 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7771 esac
7773 for ac_prog in makeinfo
7775 # Extract the first word of "$ac_prog", so it can be a program name with args.
7776 set dummy $ac_prog; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 if test -n "$MAKEINFO"; then
7783 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7784 else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7792 ac_cv_prog_MAKEINFO="$ac_prog"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7796 done
7797 done
7798 IFS=$as_save_IFS
7802 MAKEINFO=$ac_cv_prog_MAKEINFO
7803 if test -n "$MAKEINFO"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7805 $as_echo "$MAKEINFO" >&6; }
7806 else
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7812 test -n "$MAKEINFO" && break
7813 done
7814 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7816 case " $build_configdirs " in
7817 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7820 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7821 # higher, else we use the "missing" dummy.
7822 if ${MAKEINFO} --version \
7823 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7825 else
7826 MAKEINFO="$MISSING makeinfo"
7830 esac
7832 # FIXME: expect and dejagnu may become build tools?
7834 for ac_prog in expect
7836 # Extract the first word of "$ac_prog", so it can be a program name with args.
7837 set dummy $ac_prog; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 if test -n "$EXPECT"; then
7844 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_prog_EXPECT="$ac_prog"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7857 done
7858 done
7859 IFS=$as_save_IFS
7863 EXPECT=$ac_cv_prog_EXPECT
7864 if test -n "$EXPECT"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7866 $as_echo "$EXPECT" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7873 test -n "$EXPECT" && break
7874 done
7875 test -n "$EXPECT" || EXPECT="expect"
7877 case " $configdirs " in
7878 *" expect "*)
7879 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7881 esac
7883 for ac_prog in runtest
7885 # Extract the first word of "$ac_prog", so it can be a program name with args.
7886 set dummy $ac_prog; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 if test -n "$RUNTEST"; then
7893 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7894 else
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_prog_RUNTEST="$ac_prog"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7906 done
7907 done
7908 IFS=$as_save_IFS
7912 RUNTEST=$ac_cv_prog_RUNTEST
7913 if test -n "$RUNTEST"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7915 $as_echo "$RUNTEST" >&6; }
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7922 test -n "$RUNTEST" && break
7923 done
7924 test -n "$RUNTEST" || RUNTEST="runtest"
7926 case " $configdirs " in
7927 *" dejagnu "*)
7928 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7930 esac
7933 # Host tools.
7934 ncn_tool_prefix=
7935 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7936 ncn_target_tool_prefix=
7937 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7941 if test -n "$AR"; then
7942 ac_cv_prog_AR=$AR
7943 elif test -n "$ac_cv_prog_AR"; then
7944 AR=$ac_cv_prog_AR
7947 if test -n "$ac_cv_prog_AR"; then
7948 for ncn_progname in ar; do
7949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7950 set dummy ${ncn_progname}; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if test "${ac_cv_prog_AR+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test -n "$AR"; then
7957 ac_cv_prog_AR="$AR" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7966 ac_cv_prog_AR="${ncn_progname}"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7970 done
7971 done
7972 IFS=$as_save_IFS
7976 AR=$ac_cv_prog_AR
7977 if test -n "$AR"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7979 $as_echo "$AR" >&6; }
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7986 done
7989 for ncn_progname in ar; do
7990 if test -n "$ncn_tool_prefix"; then
7991 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7992 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if test "${ac_cv_prog_AR+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 if test -n "$AR"; then
7999 ac_cv_prog_AR="$AR" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8012 done
8013 done
8014 IFS=$as_save_IFS
8018 AR=$ac_cv_prog_AR
8019 if test -n "$AR"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8021 $as_echo "$AR" >&6; }
8022 else
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8029 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8031 set dummy ${ncn_progname}; ac_word=$2
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033 $as_echo_n "checking for $ac_word... " >&6; }
8034 if test "${ac_cv_prog_AR+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 if test -n "$AR"; then
8038 ac_cv_prog_AR="$AR" # Let the user override the test.
8039 else
8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 for as_dir in $PATH
8043 IFS=$as_save_IFS
8044 test -z "$as_dir" && as_dir=.
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8047 ac_cv_prog_AR="${ncn_progname}"
8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8049 break 2
8051 done
8052 done
8053 IFS=$as_save_IFS
8057 AR=$ac_cv_prog_AR
8058 if test -n "$AR"; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8060 $as_echo "$AR" >&6; }
8061 else
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8068 test -n "$ac_cv_prog_AR" && break
8069 done
8071 if test -z "$ac_cv_prog_AR" ; then
8072 set dummy ar
8073 if test $build = $host ; then
8074 AR="$2"
8075 else
8076 AR="${ncn_tool_prefix}$2"
8082 if test -n "$AS"; then
8083 ac_cv_prog_AS=$AS
8084 elif test -n "$ac_cv_prog_AS"; then
8085 AS=$ac_cv_prog_AS
8088 if test -n "$ac_cv_prog_AS"; then
8089 for ncn_progname in as; do
8090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8091 set dummy ${ncn_progname}; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if test "${ac_cv_prog_AS+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 if test -n "$AS"; then
8098 ac_cv_prog_AS="$AS" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_prog_AS="${ncn_progname}"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8111 done
8112 done
8113 IFS=$as_save_IFS
8117 AS=$ac_cv_prog_AS
8118 if test -n "$AS"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8120 $as_echo "$AS" >&6; }
8121 else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8127 done
8130 for ncn_progname in as; do
8131 if test -n "$ncn_tool_prefix"; then
8132 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8133 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 $as_echo_n "checking for $ac_word... " >&6; }
8136 if test "${ac_cv_prog_AS+set}" = set; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 if test -n "$AS"; then
8140 ac_cv_prog_AS="$AS" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8149 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 break 2
8153 done
8154 done
8155 IFS=$as_save_IFS
8159 AS=$ac_cv_prog_AS
8160 if test -n "$AS"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8162 $as_echo "$AS" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8170 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8172 set dummy ${ncn_progname}; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if test "${ac_cv_prog_AS+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 if test -n "$AS"; then
8179 ac_cv_prog_AS="$AS" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_AS="${ncn_progname}"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8192 done
8193 done
8194 IFS=$as_save_IFS
8198 AS=$ac_cv_prog_AS
8199 if test -n "$AS"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8201 $as_echo "$AS" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8209 test -n "$ac_cv_prog_AS" && break
8210 done
8212 if test -z "$ac_cv_prog_AS" ; then
8213 set dummy as
8214 if test $build = $host ; then
8215 AS="$2"
8216 else
8217 AS="${ncn_tool_prefix}$2"
8223 if test -n "$DLLTOOL"; then
8224 ac_cv_prog_DLLTOOL=$DLLTOOL
8225 elif test -n "$ac_cv_prog_DLLTOOL"; then
8226 DLLTOOL=$ac_cv_prog_DLLTOOL
8229 if test -n "$ac_cv_prog_DLLTOOL"; then
8230 for ncn_progname in dlltool; do
8231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8232 set dummy ${ncn_progname}; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 if test -n "$DLLTOOL"; then
8239 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8240 else
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8248 ac_cv_prog_DLLTOOL="${ncn_progname}"
8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 break 2
8252 done
8253 done
8254 IFS=$as_save_IFS
8258 DLLTOOL=$ac_cv_prog_DLLTOOL
8259 if test -n "$DLLTOOL"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8261 $as_echo "$DLLTOOL" >&6; }
8262 else
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8268 done
8271 for ncn_progname in dlltool; do
8272 if test -n "$ncn_tool_prefix"; then
8273 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8274 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 if test -n "$DLLTOOL"; then
8281 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8282 else
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 for as_dir in $PATH
8286 IFS=$as_save_IFS
8287 test -z "$as_dir" && as_dir=.
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8290 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 break 2
8294 done
8295 done
8296 IFS=$as_save_IFS
8300 DLLTOOL=$ac_cv_prog_DLLTOOL
8301 if test -n "$DLLTOOL"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8303 $as_echo "$DLLTOOL" >&6; }
8304 else
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8311 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8313 set dummy ${ncn_progname}; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 if test -n "$DLLTOOL"; then
8320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8321 else
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_prog_DLLTOOL="${ncn_progname}"
8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8333 done
8334 done
8335 IFS=$as_save_IFS
8339 DLLTOOL=$ac_cv_prog_DLLTOOL
8340 if test -n "$DLLTOOL"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8342 $as_echo "$DLLTOOL" >&6; }
8343 else
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8350 test -n "$ac_cv_prog_DLLTOOL" && break
8351 done
8353 if test -z "$ac_cv_prog_DLLTOOL" ; then
8354 set dummy dlltool
8355 if test $build = $host ; then
8356 DLLTOOL="$2"
8357 else
8358 DLLTOOL="${ncn_tool_prefix}$2"
8364 if test -n "$LD"; then
8365 ac_cv_prog_LD=$LD
8366 elif test -n "$ac_cv_prog_LD"; then
8367 LD=$ac_cv_prog_LD
8370 if test -n "$ac_cv_prog_LD"; then
8371 for ncn_progname in ld; do
8372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8373 set dummy ${ncn_progname}; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if test "${ac_cv_prog_LD+set}" = set; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8379 if test -n "$LD"; then
8380 ac_cv_prog_LD="$LD" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8389 ac_cv_prog_LD="${ncn_progname}"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8393 done
8394 done
8395 IFS=$as_save_IFS
8399 LD=$ac_cv_prog_LD
8400 if test -n "$LD"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8402 $as_echo "$LD" >&6; }
8403 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8409 done
8412 for ncn_progname in ld; do
8413 if test -n "$ncn_tool_prefix"; then
8414 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8415 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if test "${ac_cv_prog_LD+set}" = set; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 if test -n "$LD"; then
8422 ac_cv_prog_LD="$LD" # Let the user override the test.
8423 else
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425 for as_dir in $PATH
8427 IFS=$as_save_IFS
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8431 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 break 2
8435 done
8436 done
8437 IFS=$as_save_IFS
8441 LD=$ac_cv_prog_LD
8442 if test -n "$LD"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8444 $as_echo "$LD" >&6; }
8445 else
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8452 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8454 set dummy ${ncn_progname}; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if test "${ac_cv_prog_LD+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 if test -n "$LD"; then
8461 ac_cv_prog_LD="$LD" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470 ac_cv_prog_LD="${ncn_progname}"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 break 2
8474 done
8475 done
8476 IFS=$as_save_IFS
8480 LD=$ac_cv_prog_LD
8481 if test -n "$LD"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8483 $as_echo "$LD" >&6; }
8484 else
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8491 test -n "$ac_cv_prog_LD" && break
8492 done
8494 if test -z "$ac_cv_prog_LD" ; then
8495 set dummy ld
8496 if test $build = $host ; then
8497 LD="$2"
8498 else
8499 LD="${ncn_tool_prefix}$2"
8505 if test -n "$LIPO"; then
8506 ac_cv_prog_LIPO=$LIPO
8507 elif test -n "$ac_cv_prog_LIPO"; then
8508 LIPO=$ac_cv_prog_LIPO
8511 if test -n "$ac_cv_prog_LIPO"; then
8512 for ncn_progname in lipo; do
8513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8514 set dummy ${ncn_progname}; ac_word=$2
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 $as_echo_n "checking for $ac_word... " >&6; }
8517 if test "${ac_cv_prog_LIPO+set}" = set; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 if test -n "$LIPO"; then
8521 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8522 else
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8530 ac_cv_prog_LIPO="${ncn_progname}"
8531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 break 2
8534 done
8535 done
8536 IFS=$as_save_IFS
8540 LIPO=$ac_cv_prog_LIPO
8541 if test -n "$LIPO"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8543 $as_echo "$LIPO" >&6; }
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8550 done
8553 for ncn_progname in lipo; do
8554 if test -n "$ncn_tool_prefix"; then
8555 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8556 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if test "${ac_cv_prog_LIPO+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 if test -n "$LIPO"; then
8563 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8564 else
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $PATH
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8572 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 break 2
8576 done
8577 done
8578 IFS=$as_save_IFS
8582 LIPO=$ac_cv_prog_LIPO
8583 if test -n "$LIPO"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8585 $as_echo "$LIPO" >&6; }
8586 else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8593 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8595 set dummy ${ncn_progname}; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if test "${ac_cv_prog_LIPO+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 if test -n "$LIPO"; then
8602 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8603 else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_prog_LIPO="${ncn_progname}"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8615 done
8616 done
8617 IFS=$as_save_IFS
8621 LIPO=$ac_cv_prog_LIPO
8622 if test -n "$LIPO"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8624 $as_echo "$LIPO" >&6; }
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8632 test -n "$ac_cv_prog_LIPO" && break
8633 done
8635 if test -z "$ac_cv_prog_LIPO" ; then
8636 set dummy lipo
8637 if test $build = $host ; then
8638 LIPO="$2"
8639 else
8640 LIPO="${ncn_tool_prefix}$2"
8646 if test -n "$NM"; then
8647 ac_cv_prog_NM=$NM
8648 elif test -n "$ac_cv_prog_NM"; then
8649 NM=$ac_cv_prog_NM
8652 if test -n "$ac_cv_prog_NM"; then
8653 for ncn_progname in nm; do
8654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8655 set dummy ${ncn_progname}; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if test "${ac_cv_prog_NM+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
8660 else
8661 if test -n "$NM"; then
8662 ac_cv_prog_NM="$NM" # Let the user override the test.
8663 else
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8671 ac_cv_prog_NM="${ncn_progname}"
8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8675 done
8676 done
8677 IFS=$as_save_IFS
8681 NM=$ac_cv_prog_NM
8682 if test -n "$NM"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8684 $as_echo "$NM" >&6; }
8685 else
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8691 done
8694 for ncn_progname in nm; do
8695 if test -n "$ncn_tool_prefix"; then
8696 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8697 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699 $as_echo_n "checking for $ac_word... " >&6; }
8700 if test "${ac_cv_prog_NM+set}" = set; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 if test -n "$NM"; then
8704 ac_cv_prog_NM="$NM" # Let the user override the test.
8705 else
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 for as_dir in $PATH
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8713 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 break 2
8717 done
8718 done
8719 IFS=$as_save_IFS
8723 NM=$ac_cv_prog_NM
8724 if test -n "$NM"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8726 $as_echo "$NM" >&6; }
8727 else
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8734 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8736 set dummy ${ncn_progname}; ac_word=$2
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 if test "${ac_cv_prog_NM+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 if test -n "$NM"; then
8743 ac_cv_prog_NM="$NM" # Let the user override the test.
8744 else
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8752 ac_cv_prog_NM="${ncn_progname}"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8756 done
8757 done
8758 IFS=$as_save_IFS
8762 NM=$ac_cv_prog_NM
8763 if test -n "$NM"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8765 $as_echo "$NM" >&6; }
8766 else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8773 test -n "$ac_cv_prog_NM" && break
8774 done
8776 if test -z "$ac_cv_prog_NM" ; then
8777 set dummy nm
8778 if test $build = $host ; then
8779 NM="$2"
8780 else
8781 NM="${ncn_tool_prefix}$2"
8787 if test -n "$RANLIB"; then
8788 ac_cv_prog_RANLIB=$RANLIB
8789 elif test -n "$ac_cv_prog_RANLIB"; then
8790 RANLIB=$ac_cv_prog_RANLIB
8793 if test -n "$ac_cv_prog_RANLIB"; then
8794 for ncn_progname in ranlib; do
8795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8796 set dummy ${ncn_progname}; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 if test -n "$RANLIB"; then
8803 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8804 else
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8808 IFS=$as_save_IFS
8809 test -z "$as_dir" && as_dir=.
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8812 ac_cv_prog_RANLIB="${ncn_progname}"
8813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 break 2
8816 done
8817 done
8818 IFS=$as_save_IFS
8822 RANLIB=$ac_cv_prog_RANLIB
8823 if test -n "$RANLIB"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8825 $as_echo "$RANLIB" >&6; }
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8832 done
8835 for ncn_progname in ranlib; do
8836 if test -n "$ncn_tool_prefix"; then
8837 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8838 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8840 $as_echo_n "checking for $ac_word... " >&6; }
8841 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 if test -n "$RANLIB"; then
8845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8846 else
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8850 IFS=$as_save_IFS
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8854 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 break 2
8858 done
8859 done
8860 IFS=$as_save_IFS
8864 RANLIB=$ac_cv_prog_RANLIB
8865 if test -n "$RANLIB"; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8867 $as_echo "$RANLIB" >&6; }
8868 else
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8875 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8877 set dummy ${ncn_progname}; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 if test -n "$RANLIB"; then
8884 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8885 else
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in $PATH
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_prog_RANLIB="${ncn_progname}"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8897 done
8898 done
8899 IFS=$as_save_IFS
8903 RANLIB=$ac_cv_prog_RANLIB
8904 if test -n "$RANLIB"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8906 $as_echo "$RANLIB" >&6; }
8907 else
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909 $as_echo "no" >&6; }
8914 test -n "$ac_cv_prog_RANLIB" && break
8915 done
8917 if test -z "$ac_cv_prog_RANLIB" ; then
8918 RANLIB="true"
8923 if test -n "$STRIP"; then
8924 ac_cv_prog_STRIP=$STRIP
8925 elif test -n "$ac_cv_prog_STRIP"; then
8926 STRIP=$ac_cv_prog_STRIP
8929 if test -n "$ac_cv_prog_STRIP"; then
8930 for ncn_progname in strip; do
8931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8932 set dummy ${ncn_progname}; ac_word=$2
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 $as_echo_n "checking for $ac_word... " >&6; }
8935 if test "${ac_cv_prog_STRIP+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 if test -n "$STRIP"; then
8939 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8940 else
8941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942 for as_dir in $PATH
8944 IFS=$as_save_IFS
8945 test -z "$as_dir" && as_dir=.
8946 for ac_exec_ext in '' $ac_executable_extensions; do
8947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8948 ac_cv_prog_STRIP="${ncn_progname}"
8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8950 break 2
8952 done
8953 done
8954 IFS=$as_save_IFS
8958 STRIP=$ac_cv_prog_STRIP
8959 if test -n "$STRIP"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8961 $as_echo "$STRIP" >&6; }
8962 else
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8968 done
8971 for ncn_progname in strip; do
8972 if test -n "$ncn_tool_prefix"; then
8973 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8974 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if test "${ac_cv_prog_STRIP+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 if test -n "$STRIP"; then
8981 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8982 else
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in $PATH
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8990 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8994 done
8995 done
8996 IFS=$as_save_IFS
9000 STRIP=$ac_cv_prog_STRIP
9001 if test -n "$STRIP"; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9003 $as_echo "$STRIP" >&6; }
9004 else
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 $as_echo "no" >&6; }
9011 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9013 set dummy ${ncn_progname}; ac_word=$2
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015 $as_echo_n "checking for $ac_word... " >&6; }
9016 if test "${ac_cv_prog_STRIP+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 if test -n "$STRIP"; then
9020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9021 else
9022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 for as_dir in $PATH
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9029 ac_cv_prog_STRIP="${ncn_progname}"
9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 break 2
9033 done
9034 done
9035 IFS=$as_save_IFS
9039 STRIP=$ac_cv_prog_STRIP
9040 if test -n "$STRIP"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9042 $as_echo "$STRIP" >&6; }
9043 else
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9050 test -n "$ac_cv_prog_STRIP" && break
9051 done
9053 if test -z "$ac_cv_prog_STRIP" ; then
9054 STRIP="true"
9059 if test -n "$WINDRES"; then
9060 ac_cv_prog_WINDRES=$WINDRES
9061 elif test -n "$ac_cv_prog_WINDRES"; then
9062 WINDRES=$ac_cv_prog_WINDRES
9065 if test -n "$ac_cv_prog_WINDRES"; then
9066 for ncn_progname in windres; do
9067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9068 set dummy ${ncn_progname}; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 if test -n "$WINDRES"; then
9075 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084 ac_cv_prog_WINDRES="${ncn_progname}"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 break 2
9088 done
9089 done
9090 IFS=$as_save_IFS
9094 WINDRES=$ac_cv_prog_WINDRES
9095 if test -n "$WINDRES"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9097 $as_echo "$WINDRES" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9104 done
9107 for ncn_progname in windres; do
9108 if test -n "$ncn_tool_prefix"; then
9109 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9110 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 if test -n "$WINDRES"; then
9117 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9118 else
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9126 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9130 done
9131 done
9132 IFS=$as_save_IFS
9136 WINDRES=$ac_cv_prog_WINDRES
9137 if test -n "$WINDRES"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9139 $as_echo "$WINDRES" >&6; }
9140 else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9147 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9149 set dummy ${ncn_progname}; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 if test -n "$WINDRES"; then
9156 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9157 else
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in $PATH
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_prog_WINDRES="${ncn_progname}"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 break 2
9169 done
9170 done
9171 IFS=$as_save_IFS
9175 WINDRES=$ac_cv_prog_WINDRES
9176 if test -n "$WINDRES"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9178 $as_echo "$WINDRES" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9186 test -n "$ac_cv_prog_WINDRES" && break
9187 done
9189 if test -z "$ac_cv_prog_WINDRES" ; then
9190 set dummy windres
9191 if test $build = $host ; then
9192 WINDRES="$2"
9193 else
9194 WINDRES="${ncn_tool_prefix}$2"
9200 if test -n "$WINDMC"; then
9201 ac_cv_prog_WINDMC=$WINDMC
9202 elif test -n "$ac_cv_prog_WINDMC"; then
9203 WINDMC=$ac_cv_prog_WINDMC
9206 if test -n "$ac_cv_prog_WINDMC"; then
9207 for ncn_progname in windmc; do
9208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9209 set dummy ${ncn_progname}; ac_word=$2
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9211 $as_echo_n "checking for $ac_word... " >&6; }
9212 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9213 $as_echo_n "(cached) " >&6
9214 else
9215 if test -n "$WINDMC"; then
9216 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9217 else
9218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219 for as_dir in $PATH
9221 IFS=$as_save_IFS
9222 test -z "$as_dir" && as_dir=.
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9225 ac_cv_prog_WINDMC="${ncn_progname}"
9226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9227 break 2
9229 done
9230 done
9231 IFS=$as_save_IFS
9235 WINDMC=$ac_cv_prog_WINDMC
9236 if test -n "$WINDMC"; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9238 $as_echo "$WINDMC" >&6; }
9239 else
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9245 done
9248 for ncn_progname in windmc; do
9249 if test -n "$ncn_tool_prefix"; then
9250 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9251 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9253 $as_echo_n "checking for $ac_word... " >&6; }
9254 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9255 $as_echo_n "(cached) " >&6
9256 else
9257 if test -n "$WINDMC"; then
9258 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9259 else
9260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 for as_dir in $PATH
9263 IFS=$as_save_IFS
9264 test -z "$as_dir" && as_dir=.
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9267 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269 break 2
9271 done
9272 done
9273 IFS=$as_save_IFS
9277 WINDMC=$ac_cv_prog_WINDMC
9278 if test -n "$WINDMC"; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9280 $as_echo "$WINDMC" >&6; }
9281 else
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 $as_echo "no" >&6; }
9288 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9290 set dummy ${ncn_progname}; ac_word=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 if test -n "$WINDMC"; then
9297 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9298 else
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 for as_dir in $PATH
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9306 ac_cv_prog_WINDMC="${ncn_progname}"
9307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 break 2
9310 done
9311 done
9312 IFS=$as_save_IFS
9316 WINDMC=$ac_cv_prog_WINDMC
9317 if test -n "$WINDMC"; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9319 $as_echo "$WINDMC" >&6; }
9320 else
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322 $as_echo "no" >&6; }
9327 test -n "$ac_cv_prog_WINDMC" && break
9328 done
9330 if test -z "$ac_cv_prog_WINDMC" ; then
9331 set dummy windmc
9332 if test $build = $host ; then
9333 WINDMC="$2"
9334 else
9335 WINDMC="${ncn_tool_prefix}$2"
9341 if test -n "$OBJCOPY"; then
9342 ac_cv_prog_OBJCOPY=$OBJCOPY
9343 elif test -n "$ac_cv_prog_OBJCOPY"; then
9344 OBJCOPY=$ac_cv_prog_OBJCOPY
9347 if test -n "$ac_cv_prog_OBJCOPY"; then
9348 for ncn_progname in objcopy; do
9349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9350 set dummy ${ncn_progname}; ac_word=$2
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9352 $as_echo_n "checking for $ac_word... " >&6; }
9353 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 if test -n "$OBJCOPY"; then
9357 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9358 else
9359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9360 for as_dir in $PATH
9362 IFS=$as_save_IFS
9363 test -z "$as_dir" && as_dir=.
9364 for ac_exec_ext in '' $ac_executable_extensions; do
9365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9366 ac_cv_prog_OBJCOPY="${ncn_progname}"
9367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9368 break 2
9370 done
9371 done
9372 IFS=$as_save_IFS
9376 OBJCOPY=$ac_cv_prog_OBJCOPY
9377 if test -n "$OBJCOPY"; then
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9379 $as_echo "$OBJCOPY" >&6; }
9380 else
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9382 $as_echo "no" >&6; }
9386 done
9389 for ncn_progname in objcopy; do
9390 if test -n "$ncn_tool_prefix"; then
9391 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9392 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9394 $as_echo_n "checking for $ac_word... " >&6; }
9395 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9396 $as_echo_n "(cached) " >&6
9397 else
9398 if test -n "$OBJCOPY"; then
9399 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9400 else
9401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402 for as_dir in $PATH
9404 IFS=$as_save_IFS
9405 test -z "$as_dir" && as_dir=.
9406 for ac_exec_ext in '' $ac_executable_extensions; do
9407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9408 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 break 2
9412 done
9413 done
9414 IFS=$as_save_IFS
9418 OBJCOPY=$ac_cv_prog_OBJCOPY
9419 if test -n "$OBJCOPY"; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9421 $as_echo "$OBJCOPY" >&6; }
9422 else
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9424 $as_echo "no" >&6; }
9429 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9431 set dummy ${ncn_progname}; ac_word=$2
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9435 $as_echo_n "(cached) " >&6
9436 else
9437 if test -n "$OBJCOPY"; then
9438 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9439 else
9440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441 for as_dir in $PATH
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9447 ac_cv_prog_OBJCOPY="${ncn_progname}"
9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9449 break 2
9451 done
9452 done
9453 IFS=$as_save_IFS
9457 OBJCOPY=$ac_cv_prog_OBJCOPY
9458 if test -n "$OBJCOPY"; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9460 $as_echo "$OBJCOPY" >&6; }
9461 else
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463 $as_echo "no" >&6; }
9468 test -n "$ac_cv_prog_OBJCOPY" && break
9469 done
9471 if test -z "$ac_cv_prog_OBJCOPY" ; then
9472 set dummy objcopy
9473 if test $build = $host ; then
9474 OBJCOPY="$2"
9475 else
9476 OBJCOPY="${ncn_tool_prefix}$2"
9482 if test -n "$OBJDUMP"; then
9483 ac_cv_prog_OBJDUMP=$OBJDUMP
9484 elif test -n "$ac_cv_prog_OBJDUMP"; then
9485 OBJDUMP=$ac_cv_prog_OBJDUMP
9488 if test -n "$ac_cv_prog_OBJDUMP"; then
9489 for ncn_progname in objdump; do
9490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9491 set dummy ${ncn_progname}; ac_word=$2
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 if test -n "$OBJDUMP"; then
9498 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9499 else
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9503 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9507 ac_cv_prog_OBJDUMP="${ncn_progname}"
9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9509 break 2
9511 done
9512 done
9513 IFS=$as_save_IFS
9517 OBJDUMP=$ac_cv_prog_OBJDUMP
9518 if test -n "$OBJDUMP"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9520 $as_echo "$OBJDUMP" >&6; }
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9527 done
9530 for ncn_progname in objdump; do
9531 if test -n "$ncn_tool_prefix"; then
9532 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9533 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9535 $as_echo_n "checking for $ac_word... " >&6; }
9536 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 if test -n "$OBJDUMP"; then
9540 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9541 else
9542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543 for as_dir in $PATH
9545 IFS=$as_save_IFS
9546 test -z "$as_dir" && as_dir=.
9547 for ac_exec_ext in '' $ac_executable_extensions; do
9548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9549 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9551 break 2
9553 done
9554 done
9555 IFS=$as_save_IFS
9559 OBJDUMP=$ac_cv_prog_OBJDUMP
9560 if test -n "$OBJDUMP"; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9562 $as_echo "$OBJDUMP" >&6; }
9563 else
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565 $as_echo "no" >&6; }
9570 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9572 set dummy ${ncn_progname}; ac_word=$2
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 if test -n "$OBJDUMP"; then
9579 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9580 else
9581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582 for as_dir in $PATH
9584 IFS=$as_save_IFS
9585 test -z "$as_dir" && as_dir=.
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9588 ac_cv_prog_OBJDUMP="${ncn_progname}"
9589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 break 2
9592 done
9593 done
9594 IFS=$as_save_IFS
9598 OBJDUMP=$ac_cv_prog_OBJDUMP
9599 if test -n "$OBJDUMP"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9601 $as_echo "$OBJDUMP" >&6; }
9602 else
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9609 test -n "$ac_cv_prog_OBJDUMP" && break
9610 done
9612 if test -z "$ac_cv_prog_OBJDUMP" ; then
9613 set dummy objdump
9614 if test $build = $host ; then
9615 OBJDUMP="$2"
9616 else
9617 OBJDUMP="${ncn_tool_prefix}$2"
9623 if test -n "$READELF"; then
9624 ac_cv_prog_READELF=$READELF
9625 elif test -n "$ac_cv_prog_READELF"; then
9626 READELF=$ac_cv_prog_READELF
9629 if test -n "$ac_cv_prog_READELF"; then
9630 for ncn_progname in readelf; do
9631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9632 set dummy ${ncn_progname}; ac_word=$2
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if test "${ac_cv_prog_READELF+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 if test -n "$READELF"; then
9639 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9640 else
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642 for as_dir in $PATH
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9648 ac_cv_prog_READELF="${ncn_progname}"
9649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 break 2
9652 done
9653 done
9654 IFS=$as_save_IFS
9658 READELF=$ac_cv_prog_READELF
9659 if test -n "$READELF"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9661 $as_echo "$READELF" >&6; }
9662 else
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9668 done
9671 for ncn_progname in readelf; do
9672 if test -n "$ncn_tool_prefix"; then
9673 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9674 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9676 $as_echo_n "checking for $ac_word... " >&6; }
9677 if test "${ac_cv_prog_READELF+set}" = set; then :
9678 $as_echo_n "(cached) " >&6
9679 else
9680 if test -n "$READELF"; then
9681 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9682 else
9683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684 for as_dir in $PATH
9686 IFS=$as_save_IFS
9687 test -z "$as_dir" && as_dir=.
9688 for ac_exec_ext in '' $ac_executable_extensions; do
9689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9690 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9692 break 2
9694 done
9695 done
9696 IFS=$as_save_IFS
9700 READELF=$ac_cv_prog_READELF
9701 if test -n "$READELF"; then
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9703 $as_echo "$READELF" >&6; }
9704 else
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9706 $as_echo "no" >&6; }
9711 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9713 set dummy ${ncn_progname}; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if test "${ac_cv_prog_READELF+set}" = set; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 if test -n "$READELF"; then
9720 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9721 else
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9729 ac_cv_prog_READELF="${ncn_progname}"
9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 break 2
9733 done
9734 done
9735 IFS=$as_save_IFS
9739 READELF=$ac_cv_prog_READELF
9740 if test -n "$READELF"; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9742 $as_echo "$READELF" >&6; }
9743 else
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9750 test -n "$ac_cv_prog_READELF" && break
9751 done
9753 if test -z "$ac_cv_prog_READELF" ; then
9754 set dummy readelf
9755 if test $build = $host ; then
9756 READELF="$2"
9757 else
9758 READELF="${ncn_tool_prefix}$2"
9767 # Target tools.
9769 # Check whether --with-build-time-tools was given.
9770 if test "${with_build_time_tools+set}" = set; then :
9771 withval=$with_build_time_tools; case x"$withval" in
9772 x/*) ;;
9774 with_build_time_tools=
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9776 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9778 esac
9779 else
9780 with_build_time_tools=
9786 if test -n "$CC_FOR_TARGET"; then
9787 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9788 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9789 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9792 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9793 for ncn_progname in cc gcc; do
9794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9795 set dummy ${ncn_progname}; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 if test -n "$CC_FOR_TARGET"; then
9802 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9811 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9815 done
9816 done
9817 IFS=$as_save_IFS
9821 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9822 if test -n "$CC_FOR_TARGET"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9824 $as_echo "$CC_FOR_TARGET" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9831 done
9834 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9835 for ncn_progname in cc gcc; do
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9837 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9838 if test -x $with_build_time_tools/${ncn_progname}; then
9839 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9841 $as_echo "yes" >&6; }
9842 break
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9847 done
9850 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9851 for ncn_progname in cc gcc; do
9852 if test -n "$ncn_target_tool_prefix"; then
9853 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9854 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856 $as_echo_n "checking for $ac_word... " >&6; }
9857 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 if test -n "$CC_FOR_TARGET"; then
9861 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9862 else
9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864 for as_dir in $PATH
9866 IFS=$as_save_IFS
9867 test -z "$as_dir" && as_dir=.
9868 for ac_exec_ext in '' $ac_executable_extensions; do
9869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9870 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 break 2
9874 done
9875 done
9876 IFS=$as_save_IFS
9880 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9881 if test -n "$CC_FOR_TARGET"; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9883 $as_echo "$CC_FOR_TARGET" >&6; }
9884 else
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9891 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9893 set dummy ${ncn_progname}; ac_word=$2
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9895 $as_echo_n "checking for $ac_word... " >&6; }
9896 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 if test -n "$CC_FOR_TARGET"; then
9900 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9901 else
9902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9905 IFS=$as_save_IFS
9906 test -z "$as_dir" && as_dir=.
9907 for ac_exec_ext in '' $ac_executable_extensions; do
9908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9909 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9911 break 2
9913 done
9914 done
9915 IFS=$as_save_IFS
9919 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9920 if test -n "$CC_FOR_TARGET"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9922 $as_echo "$CC_FOR_TARGET" >&6; }
9923 else
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9930 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9931 done
9934 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9935 set dummy cc gcc
9936 if test $build = $target ; then
9937 CC_FOR_TARGET="$2"
9938 else
9939 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9941 else
9942 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9947 if test -n "$CXX_FOR_TARGET"; then
9948 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9949 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9950 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9953 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9954 for ncn_progname in c++ g++ cxx gxx; do
9955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9956 set dummy ${ncn_progname}; ac_word=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 if test -n "$CXX_FOR_TARGET"; then
9963 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9964 else
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in $PATH
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9976 done
9977 done
9978 IFS=$as_save_IFS
9982 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9983 if test -n "$CXX_FOR_TARGET"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9985 $as_echo "$CXX_FOR_TARGET" >&6; }
9986 else
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9992 done
9995 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9996 for ncn_progname in c++ g++ cxx gxx; do
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9998 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9999 if test -x $with_build_time_tools/${ncn_progname}; then
10000 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10002 $as_echo "yes" >&6; }
10003 break
10004 else
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006 $as_echo "no" >&6; }
10008 done
10011 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10012 for ncn_progname in c++ g++ cxx gxx; do
10013 if test -n "$ncn_target_tool_prefix"; then
10014 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10015 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017 $as_echo_n "checking for $ac_word... " >&6; }
10018 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
10020 else
10021 if test -n "$CXX_FOR_TARGET"; then
10022 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10023 else
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10031 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 break 2
10035 done
10036 done
10037 IFS=$as_save_IFS
10041 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10042 if test -n "$CXX_FOR_TARGET"; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10044 $as_echo "$CXX_FOR_TARGET" >&6; }
10045 else
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047 $as_echo "no" >&6; }
10052 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10054 set dummy ${ncn_progname}; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 if test -n "$CXX_FOR_TARGET"; then
10061 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10070 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10074 done
10075 done
10076 IFS=$as_save_IFS
10080 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10081 if test -n "$CXX_FOR_TARGET"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10083 $as_echo "$CXX_FOR_TARGET" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10091 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10092 done
10095 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10096 set dummy c++ g++ cxx gxx
10097 if test $build = $target ; then
10098 CXX_FOR_TARGET="$2"
10099 else
10100 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10102 else
10103 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10108 if test -n "$GCC_FOR_TARGET"; then
10109 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10110 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10111 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10114 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10115 for ncn_progname in gcc; do
10116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10117 set dummy ${ncn_progname}; ac_word=$2
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10119 $as_echo_n "checking for $ac_word... " >&6; }
10120 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 if test -n "$GCC_FOR_TARGET"; then
10124 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10125 else
10126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127 for as_dir in $PATH
10129 IFS=$as_save_IFS
10130 test -z "$as_dir" && as_dir=.
10131 for ac_exec_ext in '' $ac_executable_extensions; do
10132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10133 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10135 break 2
10137 done
10138 done
10139 IFS=$as_save_IFS
10143 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10144 if test -n "$GCC_FOR_TARGET"; then
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10146 $as_echo "$GCC_FOR_TARGET" >&6; }
10147 else
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149 $as_echo "no" >&6; }
10153 done
10156 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10157 for ncn_progname in gcc; do
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10159 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10160 if test -x $with_build_time_tools/${ncn_progname}; then
10161 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10163 $as_echo "yes" >&6; }
10164 break
10165 else
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10169 done
10172 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10173 for ncn_progname in gcc; do
10174 if test -n "$ncn_target_tool_prefix"; then
10175 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10176 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 if test -n "$GCC_FOR_TARGET"; then
10183 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10184 else
10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186 for as_dir in $PATH
10188 IFS=$as_save_IFS
10189 test -z "$as_dir" && as_dir=.
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10192 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10194 break 2
10196 done
10197 done
10198 IFS=$as_save_IFS
10202 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10203 if test -n "$GCC_FOR_TARGET"; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10205 $as_echo "$GCC_FOR_TARGET" >&6; }
10206 else
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 $as_echo "no" >&6; }
10213 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10215 set dummy ${ncn_progname}; ac_word=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 if test -n "$GCC_FOR_TARGET"; then
10222 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10223 else
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10231 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10235 done
10236 done
10237 IFS=$as_save_IFS
10241 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10242 if test -n "$GCC_FOR_TARGET"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10244 $as_echo "$GCC_FOR_TARGET" >&6; }
10245 else
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10252 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10253 done
10256 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10257 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10258 else
10259 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10264 if test -n "$GCJ_FOR_TARGET"; then
10265 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10266 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10267 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10270 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10271 for ncn_progname in gcj; do
10272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10273 set dummy ${ncn_progname}; ac_word=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 if test -n "$GCJ_FOR_TARGET"; then
10280 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10281 else
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10289 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 break 2
10293 done
10294 done
10295 IFS=$as_save_IFS
10299 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10300 if test -n "$GCJ_FOR_TARGET"; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10302 $as_echo "$GCJ_FOR_TARGET" >&6; }
10303 else
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305 $as_echo "no" >&6; }
10309 done
10312 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10313 for ncn_progname in gcj; do
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10315 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10316 if test -x $with_build_time_tools/${ncn_progname}; then
10317 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10319 $as_echo "yes" >&6; }
10320 break
10321 else
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323 $as_echo "no" >&6; }
10325 done
10328 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10329 for ncn_progname in gcj; do
10330 if test -n "$ncn_target_tool_prefix"; then
10331 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10332 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334 $as_echo_n "checking for $ac_word... " >&6; }
10335 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 if test -n "$GCJ_FOR_TARGET"; then
10339 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10340 else
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10348 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10352 done
10353 done
10354 IFS=$as_save_IFS
10358 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10359 if test -n "$GCJ_FOR_TARGET"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10361 $as_echo "$GCJ_FOR_TARGET" >&6; }
10362 else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10369 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10371 set dummy ${ncn_progname}; ac_word=$2
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373 $as_echo_n "checking for $ac_word... " >&6; }
10374 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 if test -n "$GCJ_FOR_TARGET"; then
10378 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10379 else
10380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in $PATH
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10391 done
10392 done
10393 IFS=$as_save_IFS
10397 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10398 if test -n "$GCJ_FOR_TARGET"; then
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10400 $as_echo "$GCJ_FOR_TARGET" >&6; }
10401 else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403 $as_echo "no" >&6; }
10408 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10409 done
10412 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10413 set dummy gcj
10414 if test $build = $target ; then
10415 GCJ_FOR_TARGET="$2"
10416 else
10417 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10419 else
10420 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10425 if test -n "$GFORTRAN_FOR_TARGET"; then
10426 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10427 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10428 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10431 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10432 for ncn_progname in gfortran; do
10433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10434 set dummy ${ncn_progname}; ac_word=$2
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10436 $as_echo_n "checking for $ac_word... " >&6; }
10437 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 if test -n "$GFORTRAN_FOR_TARGET"; then
10441 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10442 else
10443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10446 IFS=$as_save_IFS
10447 test -z "$as_dir" && as_dir=.
10448 for ac_exec_ext in '' $ac_executable_extensions; do
10449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10450 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 break 2
10454 done
10455 done
10456 IFS=$as_save_IFS
10460 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10461 if test -n "$GFORTRAN_FOR_TARGET"; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10463 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10464 else
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 $as_echo "no" >&6; }
10470 done
10473 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10474 for ncn_progname in gfortran; do
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10476 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10477 if test -x $with_build_time_tools/${ncn_progname}; then
10478 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10480 $as_echo "yes" >&6; }
10481 break
10482 else
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10486 done
10489 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10490 for ncn_progname in gfortran; do
10491 if test -n "$ncn_target_tool_prefix"; then
10492 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10493 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495 $as_echo_n "checking for $ac_word... " >&6; }
10496 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 if test -n "$GFORTRAN_FOR_TARGET"; then
10500 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10501 else
10502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503 for as_dir in $PATH
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10509 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10513 done
10514 done
10515 IFS=$as_save_IFS
10519 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10520 if test -n "$GFORTRAN_FOR_TARGET"; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10522 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10523 else
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10530 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10532 set dummy ${ncn_progname}; ac_word=$2
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534 $as_echo_n "checking for $ac_word... " >&6; }
10535 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 if test -n "$GFORTRAN_FOR_TARGET"; then
10539 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10540 else
10541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542 for as_dir in $PATH
10544 IFS=$as_save_IFS
10545 test -z "$as_dir" && as_dir=.
10546 for ac_exec_ext in '' $ac_executable_extensions; do
10547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10548 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10550 break 2
10552 done
10553 done
10554 IFS=$as_save_IFS
10558 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10559 if test -n "$GFORTRAN_FOR_TARGET"; then
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10561 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10562 else
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 $as_echo "no" >&6; }
10569 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10570 done
10573 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10574 set dummy gfortran
10575 if test $build = $target ; then
10576 GFORTRAN_FOR_TARGET="$2"
10577 else
10578 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10580 else
10581 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10586 if test -n "$GOC_FOR_TARGET"; then
10587 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10588 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10589 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10592 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10593 for ncn_progname in gccgo; do
10594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10595 set dummy ${ncn_progname}; ac_word=$2
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597 $as_echo_n "checking for $ac_word... " >&6; }
10598 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 if test -n "$GOC_FOR_TARGET"; then
10602 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10603 else
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in $PATH
10607 IFS=$as_save_IFS
10608 test -z "$as_dir" && as_dir=.
10609 for ac_exec_ext in '' $ac_executable_extensions; do
10610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10611 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10613 break 2
10615 done
10616 done
10617 IFS=$as_save_IFS
10621 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10622 if test -n "$GOC_FOR_TARGET"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10624 $as_echo "$GOC_FOR_TARGET" >&6; }
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10631 done
10634 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10635 for ncn_progname in gccgo; do
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10637 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10638 if test -x $with_build_time_tools/${ncn_progname}; then
10639 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10641 $as_echo "yes" >&6; }
10642 break
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10647 done
10650 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10651 for ncn_progname in gccgo; do
10652 if test -n "$ncn_target_tool_prefix"; then
10653 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10654 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 if test -n "$GOC_FOR_TARGET"; then
10661 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10662 else
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10670 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 break 2
10674 done
10675 done
10676 IFS=$as_save_IFS
10680 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10681 if test -n "$GOC_FOR_TARGET"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10683 $as_echo "$GOC_FOR_TARGET" >&6; }
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10691 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10693 set dummy ${ncn_progname}; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 if test -n "$GOC_FOR_TARGET"; then
10700 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10701 else
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10711 break 2
10713 done
10714 done
10715 IFS=$as_save_IFS
10719 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10720 if test -n "$GOC_FOR_TARGET"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10722 $as_echo "$GOC_FOR_TARGET" >&6; }
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10730 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10731 done
10734 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10735 set dummy gccgo
10736 if test $build = $target ; then
10737 GOC_FOR_TARGET="$2"
10738 else
10739 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10741 else
10742 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10747 cat > conftest.c << \EOF
10748 #ifdef __GNUC__
10749 gcc_yay;
10750 #endif
10752 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10753 have_gcc_for_target=yes
10754 else
10755 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10756 have_gcc_for_target=no
10758 rm conftest.c
10763 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10764 if test -n "$with_build_time_tools"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10766 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10767 if test -x $with_build_time_tools/ar; then
10768 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10769 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10771 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10772 else
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774 $as_echo "no" >&6; }
10776 elif test $build != $host && test $have_gcc_for_target = yes; then
10777 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10778 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10779 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10782 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10783 # Extract the first word of "ar", so it can be a program name with args.
10784 set dummy ar; ac_word=$2
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 $as_echo_n "checking for $ac_word... " >&6; }
10787 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 case $AR_FOR_TARGET in
10791 [\\/]* | ?:[\\/]*)
10792 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $gcc_cv_tool_dirs
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10802 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10806 done
10807 done
10808 IFS=$as_save_IFS
10811 esac
10813 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10814 if test -n "$AR_FOR_TARGET"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10816 $as_echo "$AR_FOR_TARGET" >&6; }
10817 else
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10824 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10827 if test -n "$AR_FOR_TARGET"; then
10828 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10829 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10830 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10833 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10834 for ncn_progname in ar; do
10835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10836 set dummy ${ncn_progname}; ac_word=$2
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10838 $as_echo_n "checking for $ac_word... " >&6; }
10839 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 if test -n "$AR_FOR_TARGET"; then
10843 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10844 else
10845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846 for as_dir in $PATH
10848 IFS=$as_save_IFS
10849 test -z "$as_dir" && as_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10852 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 break 2
10856 done
10857 done
10858 IFS=$as_save_IFS
10862 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10863 if test -n "$AR_FOR_TARGET"; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10865 $as_echo "$AR_FOR_TARGET" >&6; }
10866 else
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10868 $as_echo "no" >&6; }
10872 done
10875 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10876 for ncn_progname in ar; do
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10878 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10879 if test -x $with_build_time_tools/${ncn_progname}; then
10880 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10882 $as_echo "yes" >&6; }
10883 break
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; }
10888 done
10891 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10892 for ncn_progname in ar; do
10893 if test -n "$ncn_target_tool_prefix"; then
10894 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10895 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10897 $as_echo_n "checking for $ac_word... " >&6; }
10898 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 if test -n "$AR_FOR_TARGET"; then
10902 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10903 else
10904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10905 for as_dir in $PATH
10907 IFS=$as_save_IFS
10908 test -z "$as_dir" && as_dir=.
10909 for ac_exec_ext in '' $ac_executable_extensions; do
10910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10911 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10913 break 2
10915 done
10916 done
10917 IFS=$as_save_IFS
10921 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10922 if test -n "$AR_FOR_TARGET"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10924 $as_echo "$AR_FOR_TARGET" >&6; }
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10932 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10934 set dummy ${ncn_progname}; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 if test -n "$AR_FOR_TARGET"; then
10941 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10942 else
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10950 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10954 done
10955 done
10956 IFS=$as_save_IFS
10960 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10961 if test -n "$AR_FOR_TARGET"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10963 $as_echo "$AR_FOR_TARGET" >&6; }
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10971 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10972 done
10975 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10976 set dummy ar
10977 if test $build = $target ; then
10978 AR_FOR_TARGET="$2"
10979 else
10980 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10982 else
10983 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10986 else
10987 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10993 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10994 if test -n "$with_build_time_tools"; then
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10996 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10997 if test -x $with_build_time_tools/as; then
10998 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10999 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11001 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11006 elif test $build != $host && test $have_gcc_for_target = yes; then
11007 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11008 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11009 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11012 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11013 # Extract the first word of "as", so it can be a program name with args.
11014 set dummy as; ac_word=$2
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11016 $as_echo_n "checking for $ac_word... " >&6; }
11017 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11020 case $AS_FOR_TARGET in
11021 [\\/]* | ?:[\\/]*)
11022 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026 for as_dir in $gcc_cv_tool_dirs
11028 IFS=$as_save_IFS
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
11031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11032 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 break 2
11036 done
11037 done
11038 IFS=$as_save_IFS
11041 esac
11043 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11044 if test -n "$AS_FOR_TARGET"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11046 $as_echo "$AS_FOR_TARGET" >&6; }
11047 else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11054 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11057 if test -n "$AS_FOR_TARGET"; then
11058 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11059 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11060 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11063 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11064 for ncn_progname in as; do
11065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11066 set dummy ${ncn_progname}; ac_word=$2
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068 $as_echo_n "checking for $ac_word... " >&6; }
11069 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 if test -n "$AS_FOR_TARGET"; then
11073 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11074 else
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11086 done
11087 done
11088 IFS=$as_save_IFS
11092 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11093 if test -n "$AS_FOR_TARGET"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11095 $as_echo "$AS_FOR_TARGET" >&6; }
11096 else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 $as_echo "no" >&6; }
11102 done
11105 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11106 for ncn_progname in as; do
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11108 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11109 if test -x $with_build_time_tools/${ncn_progname}; then
11110 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11112 $as_echo "yes" >&6; }
11113 break
11114 else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11118 done
11121 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11122 for ncn_progname in as; do
11123 if test -n "$ncn_target_tool_prefix"; then
11124 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11125 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11127 $as_echo_n "checking for $ac_word... " >&6; }
11128 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 if test -n "$AS_FOR_TARGET"; then
11132 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11133 else
11134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $PATH
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11141 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11143 break 2
11145 done
11146 done
11147 IFS=$as_save_IFS
11151 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11152 if test -n "$AS_FOR_TARGET"; then
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11154 $as_echo "$AS_FOR_TARGET" >&6; }
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11162 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11164 set dummy ${ncn_progname}; ac_word=$2
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166 $as_echo_n "checking for $ac_word... " >&6; }
11167 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11168 $as_echo_n "(cached) " >&6
11169 else
11170 if test -n "$AS_FOR_TARGET"; then
11171 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11172 else
11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $PATH
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11180 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11184 done
11185 done
11186 IFS=$as_save_IFS
11190 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11191 if test -n "$AS_FOR_TARGET"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11193 $as_echo "$AS_FOR_TARGET" >&6; }
11194 else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; }
11201 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11202 done
11205 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11206 set dummy as
11207 if test $build = $target ; then
11208 AS_FOR_TARGET="$2"
11209 else
11210 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11212 else
11213 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11216 else
11217 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11223 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11224 if test -n "$with_build_time_tools"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11226 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11227 if test -x $with_build_time_tools/dlltool; then
11228 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11229 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11231 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11236 elif test $build != $host && test $have_gcc_for_target = yes; then
11237 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11238 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11239 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11242 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11243 # Extract the first word of "dlltool", so it can be a program name with args.
11244 set dummy dlltool; ac_word=$2
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11246 $as_echo_n "checking for $ac_word... " >&6; }
11247 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11248 $as_echo_n "(cached) " >&6
11249 else
11250 case $DLLTOOL_FOR_TARGET in
11251 [\\/]* | ?:[\\/]*)
11252 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $gcc_cv_tool_dirs
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11262 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11266 done
11267 done
11268 IFS=$as_save_IFS
11271 esac
11273 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11274 if test -n "$DLLTOOL_FOR_TARGET"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11276 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11284 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11287 if test -n "$DLLTOOL_FOR_TARGET"; then
11288 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11289 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11290 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11293 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11294 for ncn_progname in dlltool; do
11295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11296 set dummy ${ncn_progname}; ac_word=$2
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11298 $as_echo_n "checking for $ac_word... " >&6; }
11299 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 if test -n "$DLLTOOL_FOR_TARGET"; then
11303 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11304 else
11305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH
11308 IFS=$as_save_IFS
11309 test -z "$as_dir" && as_dir=.
11310 for ac_exec_ext in '' $ac_executable_extensions; do
11311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11312 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11314 break 2
11316 done
11317 done
11318 IFS=$as_save_IFS
11322 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11323 if test -n "$DLLTOOL_FOR_TARGET"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11325 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11326 else
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11332 done
11335 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11336 for ncn_progname in dlltool; do
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11338 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11339 if test -x $with_build_time_tools/${ncn_progname}; then
11340 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11342 $as_echo "yes" >&6; }
11343 break
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11348 done
11351 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11352 for ncn_progname in dlltool; do
11353 if test -n "$ncn_target_tool_prefix"; then
11354 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11355 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11357 $as_echo_n "checking for $ac_word... " >&6; }
11358 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11359 $as_echo_n "(cached) " >&6
11360 else
11361 if test -n "$DLLTOOL_FOR_TARGET"; then
11362 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11363 else
11364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365 for as_dir in $PATH
11367 IFS=$as_save_IFS
11368 test -z "$as_dir" && as_dir=.
11369 for ac_exec_ext in '' $ac_executable_extensions; do
11370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11371 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 break 2
11375 done
11376 done
11377 IFS=$as_save_IFS
11381 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11382 if test -n "$DLLTOOL_FOR_TARGET"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11384 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11385 else
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11392 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11394 set dummy ${ncn_progname}; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 if test -n "$DLLTOOL_FOR_TARGET"; then
11401 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11402 else
11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404 for as_dir in $PATH
11406 IFS=$as_save_IFS
11407 test -z "$as_dir" && as_dir=.
11408 for ac_exec_ext in '' $ac_executable_extensions; do
11409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11410 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11412 break 2
11414 done
11415 done
11416 IFS=$as_save_IFS
11420 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11421 if test -n "$DLLTOOL_FOR_TARGET"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11423 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11431 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11432 done
11435 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11436 set dummy dlltool
11437 if test $build = $target ; then
11438 DLLTOOL_FOR_TARGET="$2"
11439 else
11440 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11442 else
11443 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11446 else
11447 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11453 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11454 if test -n "$with_build_time_tools"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11456 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11457 if test -x $with_build_time_tools/ld; then
11458 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11459 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11461 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11462 else
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464 $as_echo "no" >&6; }
11466 elif test $build != $host && test $have_gcc_for_target = yes; then
11467 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11468 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11469 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11472 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11473 # Extract the first word of "ld", so it can be a program name with args.
11474 set dummy ld; ac_word=$2
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476 $as_echo_n "checking for $ac_word... " >&6; }
11477 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 case $LD_FOR_TARGET in
11481 [\\/]* | ?:[\\/]*)
11482 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $gcc_cv_tool_dirs
11488 IFS=$as_save_IFS
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
11491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11492 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 break 2
11496 done
11497 done
11498 IFS=$as_save_IFS
11501 esac
11503 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11504 if test -n "$LD_FOR_TARGET"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11506 $as_echo "$LD_FOR_TARGET" >&6; }
11507 else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11514 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11517 if test -n "$LD_FOR_TARGET"; then
11518 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11519 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11520 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11523 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11524 for ncn_progname in ld; do
11525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11526 set dummy ${ncn_progname}; ac_word=$2
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11528 $as_echo_n "checking for $ac_word... " >&6; }
11529 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 if test -n "$LD_FOR_TARGET"; then
11533 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11534 else
11535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536 for as_dir in $PATH
11538 IFS=$as_save_IFS
11539 test -z "$as_dir" && as_dir=.
11540 for ac_exec_ext in '' $ac_executable_extensions; do
11541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11542 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 break 2
11546 done
11547 done
11548 IFS=$as_save_IFS
11552 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11553 if test -n "$LD_FOR_TARGET"; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11555 $as_echo "$LD_FOR_TARGET" >&6; }
11556 else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 $as_echo "no" >&6; }
11562 done
11565 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11566 for ncn_progname in ld; do
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11568 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11569 if test -x $with_build_time_tools/${ncn_progname}; then
11570 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11572 $as_echo "yes" >&6; }
11573 break
11574 else
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576 $as_echo "no" >&6; }
11578 done
11581 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11582 for ncn_progname in ld; do
11583 if test -n "$ncn_target_tool_prefix"; then
11584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587 $as_echo_n "checking for $ac_word... " >&6; }
11588 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11589 $as_echo_n "(cached) " >&6
11590 else
11591 if test -n "$LD_FOR_TARGET"; then
11592 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11593 else
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11597 IFS=$as_save_IFS
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11601 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603 break 2
11605 done
11606 done
11607 IFS=$as_save_IFS
11611 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11612 if test -n "$LD_FOR_TARGET"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11614 $as_echo "$LD_FOR_TARGET" >&6; }
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11622 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11624 set dummy ${ncn_progname}; ac_word=$2
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626 $as_echo_n "checking for $ac_word... " >&6; }
11627 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
11629 else
11630 if test -n "$LD_FOR_TARGET"; then
11631 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11632 else
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $PATH
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11640 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 break 2
11644 done
11645 done
11646 IFS=$as_save_IFS
11650 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11651 if test -n "$LD_FOR_TARGET"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11653 $as_echo "$LD_FOR_TARGET" >&6; }
11654 else
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11661 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11662 done
11665 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11666 set dummy ld
11667 if test $build = $target ; then
11668 LD_FOR_TARGET="$2"
11669 else
11670 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11672 else
11673 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11676 else
11677 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11683 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11684 if test -n "$with_build_time_tools"; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11686 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11687 if test -x $with_build_time_tools/lipo; then
11688 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11689 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11691 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11692 else
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11696 elif test $build != $host && test $have_gcc_for_target = yes; then
11697 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11698 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11699 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11702 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11703 # Extract the first word of "lipo", so it can be a program name with args.
11704 set dummy lipo; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 case $LIPO_FOR_TARGET in
11711 [\\/]* | ?:[\\/]*)
11712 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $gcc_cv_tool_dirs
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11722 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11726 done
11727 done
11728 IFS=$as_save_IFS
11731 esac
11733 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11734 if test -n "$LIPO_FOR_TARGET"; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11736 $as_echo "$LIPO_FOR_TARGET" >&6; }
11737 else
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11744 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11747 if test -n "$LIPO_FOR_TARGET"; then
11748 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11749 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11750 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11753 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11754 for ncn_progname in lipo; do
11755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11756 set dummy ${ncn_progname}; ac_word=$2
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758 $as_echo_n "checking for $ac_word... " >&6; }
11759 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 if test -n "$LIPO_FOR_TARGET"; then
11763 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11764 else
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766 for as_dir in $PATH
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11772 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 break 2
11776 done
11777 done
11778 IFS=$as_save_IFS
11782 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11783 if test -n "$LIPO_FOR_TARGET"; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11785 $as_echo "$LIPO_FOR_TARGET" >&6; }
11786 else
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788 $as_echo "no" >&6; }
11792 done
11795 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11796 for ncn_progname in lipo; do
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11798 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11799 if test -x $with_build_time_tools/${ncn_progname}; then
11800 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11802 $as_echo "yes" >&6; }
11803 break
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11808 done
11811 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11812 for ncn_progname in lipo; do
11813 if test -n "$ncn_target_tool_prefix"; then
11814 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11815 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 if test -n "$LIPO_FOR_TARGET"; then
11822 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11823 else
11824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825 for as_dir in $PATH
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
11829 for ac_exec_ext in '' $ac_executable_extensions; do
11830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11831 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833 break 2
11835 done
11836 done
11837 IFS=$as_save_IFS
11841 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11842 if test -n "$LIPO_FOR_TARGET"; then
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11844 $as_echo "$LIPO_FOR_TARGET" >&6; }
11845 else
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11852 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11854 set dummy ${ncn_progname}; ac_word=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 if test -n "$LIPO_FOR_TARGET"; then
11861 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11862 else
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11870 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872 break 2
11874 done
11875 done
11876 IFS=$as_save_IFS
11880 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11881 if test -n "$LIPO_FOR_TARGET"; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11883 $as_echo "$LIPO_FOR_TARGET" >&6; }
11884 else
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11891 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11892 done
11895 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11896 set dummy lipo
11897 if test $build = $target ; then
11898 LIPO_FOR_TARGET="$2"
11899 else
11900 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11902 else
11903 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11906 else
11907 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11913 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11914 if test -n "$with_build_time_tools"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11916 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11917 if test -x $with_build_time_tools/nm; then
11918 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11919 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11921 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11926 elif test $build != $host && test $have_gcc_for_target = yes; then
11927 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11928 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11929 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11932 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11933 # Extract the first word of "nm", so it can be a program name with args.
11934 set dummy nm; ac_word=$2
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11936 $as_echo_n "checking for $ac_word... " >&6; }
11937 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11938 $as_echo_n "(cached) " >&6
11939 else
11940 case $NM_FOR_TARGET in
11941 [\\/]* | ?:[\\/]*)
11942 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $gcc_cv_tool_dirs
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11952 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 break 2
11956 done
11957 done
11958 IFS=$as_save_IFS
11961 esac
11963 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11964 if test -n "$NM_FOR_TARGET"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11966 $as_echo "$NM_FOR_TARGET" >&6; }
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11974 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11977 if test -n "$NM_FOR_TARGET"; then
11978 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11979 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11980 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11983 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11984 for ncn_progname in nm; do
11985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11986 set dummy ${ncn_progname}; ac_word=$2
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988 $as_echo_n "checking for $ac_word... " >&6; }
11989 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 if test -n "$NM_FOR_TARGET"; then
11993 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11994 else
11995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996 for as_dir in $PATH
11998 IFS=$as_save_IFS
11999 test -z "$as_dir" && as_dir=.
12000 for ac_exec_ext in '' $ac_executable_extensions; do
12001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12002 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 break 2
12006 done
12007 done
12008 IFS=$as_save_IFS
12012 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12013 if test -n "$NM_FOR_TARGET"; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12015 $as_echo "$NM_FOR_TARGET" >&6; }
12016 else
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12018 $as_echo "no" >&6; }
12022 done
12025 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12026 for ncn_progname in nm; do
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12028 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12029 if test -x $with_build_time_tools/${ncn_progname}; then
12030 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12032 $as_echo "yes" >&6; }
12033 break
12034 else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12038 done
12041 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12042 for ncn_progname in nm; do
12043 if test -n "$ncn_target_tool_prefix"; then
12044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12047 $as_echo_n "checking for $ac_word... " >&6; }
12048 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 if test -n "$NM_FOR_TARGET"; then
12052 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12053 else
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12061 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12065 done
12066 done
12067 IFS=$as_save_IFS
12071 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12072 if test -n "$NM_FOR_TARGET"; then
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12074 $as_echo "$NM_FOR_TARGET" >&6; }
12075 else
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077 $as_echo "no" >&6; }
12082 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12084 set dummy ${ncn_progname}; ac_word=$2
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086 $as_echo_n "checking for $ac_word... " >&6; }
12087 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 if test -n "$NM_FOR_TARGET"; then
12091 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12092 else
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12096 IFS=$as_save_IFS
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102 break 2
12104 done
12105 done
12106 IFS=$as_save_IFS
12110 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12111 if test -n "$NM_FOR_TARGET"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12113 $as_echo "$NM_FOR_TARGET" >&6; }
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12121 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12122 done
12125 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12126 set dummy nm
12127 if test $build = $target ; then
12128 NM_FOR_TARGET="$2"
12129 else
12130 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12132 else
12133 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12136 else
12137 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12143 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12144 if test -n "$with_build_time_tools"; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12146 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12147 if test -x $with_build_time_tools/objdump; then
12148 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12149 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12151 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12156 elif test $build != $host && test $have_gcc_for_target = yes; then
12157 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12158 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12159 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12162 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12163 # Extract the first word of "objdump", so it can be a program name with args.
12164 set dummy objdump; ac_word=$2
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12166 $as_echo_n "checking for $ac_word... " >&6; }
12167 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 case $OBJDUMP_FOR_TARGET in
12171 [\\/]* | ?:[\\/]*)
12172 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $gcc_cv_tool_dirs
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12182 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 break 2
12186 done
12187 done
12188 IFS=$as_save_IFS
12191 esac
12193 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12194 if test -n "$OBJDUMP_FOR_TARGET"; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12196 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12197 else
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199 $as_echo "no" >&6; }
12204 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12207 if test -n "$OBJDUMP_FOR_TARGET"; then
12208 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12209 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12210 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12213 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12214 for ncn_progname in objdump; do
12215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12216 set dummy ${ncn_progname}; ac_word=$2
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12218 $as_echo_n "checking for $ac_word... " >&6; }
12219 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 if test -n "$OBJDUMP_FOR_TARGET"; then
12223 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12224 else
12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226 for as_dir in $PATH
12228 IFS=$as_save_IFS
12229 test -z "$as_dir" && as_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12232 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234 break 2
12236 done
12237 done
12238 IFS=$as_save_IFS
12242 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12243 if test -n "$OBJDUMP_FOR_TARGET"; then
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12245 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12246 else
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12252 done
12255 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12256 for ncn_progname in objdump; do
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12258 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12259 if test -x $with_build_time_tools/${ncn_progname}; then
12260 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12262 $as_echo "yes" >&6; }
12263 break
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12268 done
12271 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12272 for ncn_progname in objdump; do
12273 if test -n "$ncn_target_tool_prefix"; then
12274 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12275 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277 $as_echo_n "checking for $ac_word... " >&6; }
12278 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 if test -n "$OBJDUMP_FOR_TARGET"; then
12282 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12283 else
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12287 IFS=$as_save_IFS
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12291 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 break 2
12295 done
12296 done
12297 IFS=$as_save_IFS
12301 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12302 if test -n "$OBJDUMP_FOR_TARGET"; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12304 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12305 else
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12312 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12314 set dummy ${ncn_progname}; ac_word=$2
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316 $as_echo_n "checking for $ac_word... " >&6; }
12317 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 if test -n "$OBJDUMP_FOR_TARGET"; then
12321 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12322 else
12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $PATH
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12330 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 break 2
12334 done
12335 done
12336 IFS=$as_save_IFS
12340 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12341 if test -n "$OBJDUMP_FOR_TARGET"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12343 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12351 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12352 done
12355 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12356 set dummy objdump
12357 if test $build = $target ; then
12358 OBJDUMP_FOR_TARGET="$2"
12359 else
12360 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12362 else
12363 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12366 else
12367 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12373 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12374 if test -n "$with_build_time_tools"; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12376 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12377 if test -x $with_build_time_tools/ranlib; then
12378 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12379 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12381 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12382 else
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12386 elif test $build != $host && test $have_gcc_for_target = yes; then
12387 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12388 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12389 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12392 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12393 # Extract the first word of "ranlib", so it can be a program name with args.
12394 set dummy ranlib; ac_word=$2
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396 $as_echo_n "checking for $ac_word... " >&6; }
12397 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 case $RANLIB_FOR_TARGET in
12401 [\\/]* | ?:[\\/]*)
12402 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $gcc_cv_tool_dirs
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
12410 for ac_exec_ext in '' $ac_executable_extensions; do
12411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12412 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12414 break 2
12416 done
12417 done
12418 IFS=$as_save_IFS
12421 esac
12423 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12424 if test -n "$RANLIB_FOR_TARGET"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12426 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12427 else
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12434 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12437 if test -n "$RANLIB_FOR_TARGET"; then
12438 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12439 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12440 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12443 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12444 for ncn_progname in ranlib; do
12445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12446 set dummy ${ncn_progname}; ac_word=$2
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448 $as_echo_n "checking for $ac_word... " >&6; }
12449 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 if test -n "$RANLIB_FOR_TARGET"; then
12453 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12454 else
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12458 IFS=$as_save_IFS
12459 test -z "$as_dir" && as_dir=.
12460 for ac_exec_ext in '' $ac_executable_extensions; do
12461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12462 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12464 break 2
12466 done
12467 done
12468 IFS=$as_save_IFS
12472 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12473 if test -n "$RANLIB_FOR_TARGET"; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12475 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12476 else
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12482 done
12485 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12486 for ncn_progname in ranlib; do
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12488 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12489 if test -x $with_build_time_tools/${ncn_progname}; then
12490 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12492 $as_echo "yes" >&6; }
12493 break
12494 else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12498 done
12501 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12502 for ncn_progname in ranlib; do
12503 if test -n "$ncn_target_tool_prefix"; then
12504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12505 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12507 $as_echo_n "checking for $ac_word... " >&6; }
12508 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 if test -n "$RANLIB_FOR_TARGET"; then
12512 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12513 else
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12521 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 break 2
12525 done
12526 done
12527 IFS=$as_save_IFS
12531 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12532 if test -n "$RANLIB_FOR_TARGET"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12534 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 $as_echo "no" >&6; }
12542 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12544 set dummy ${ncn_progname}; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 if test -n "$RANLIB_FOR_TARGET"; then
12551 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12552 else
12553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554 for as_dir in $PATH
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12560 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 break 2
12564 done
12565 done
12566 IFS=$as_save_IFS
12570 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12571 if test -n "$RANLIB_FOR_TARGET"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12573 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12574 else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12581 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12582 done
12585 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12586 set dummy ranlib
12587 if test $build = $target ; then
12588 RANLIB_FOR_TARGET="$2"
12589 else
12590 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12592 else
12593 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12596 else
12597 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12603 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12604 if test -n "$with_build_time_tools"; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12606 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12607 if test -x $with_build_time_tools/readelf; then
12608 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12609 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12611 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12612 else
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12616 elif test $build != $host && test $have_gcc_for_target = yes; then
12617 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12618 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12619 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12622 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12623 # Extract the first word of "readelf", so it can be a program name with args.
12624 set dummy readelf; ac_word=$2
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12626 $as_echo_n "checking for $ac_word... " >&6; }
12627 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12629 else
12630 case $READELF_FOR_TARGET in
12631 [\\/]* | ?:[\\/]*)
12632 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $gcc_cv_tool_dirs
12638 IFS=$as_save_IFS
12639 test -z "$as_dir" && as_dir=.
12640 for ac_exec_ext in '' $ac_executable_extensions; do
12641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12642 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644 break 2
12646 done
12647 done
12648 IFS=$as_save_IFS
12651 esac
12653 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12654 if test -n "$READELF_FOR_TARGET"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12656 $as_echo "$READELF_FOR_TARGET" >&6; }
12657 else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12664 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12667 if test -n "$READELF_FOR_TARGET"; then
12668 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12669 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12670 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12673 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12674 for ncn_progname in readelf; do
12675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12676 set dummy ${ncn_progname}; ac_word=$2
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12678 $as_echo_n "checking for $ac_word... " >&6; }
12679 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 if test -n "$READELF_FOR_TARGET"; then
12683 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12684 else
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12692 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12696 done
12697 done
12698 IFS=$as_save_IFS
12702 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12703 if test -n "$READELF_FOR_TARGET"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12705 $as_echo "$READELF_FOR_TARGET" >&6; }
12706 else
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708 $as_echo "no" >&6; }
12712 done
12715 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12716 for ncn_progname in readelf; do
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12718 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12719 if test -x $with_build_time_tools/${ncn_progname}; then
12720 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12722 $as_echo "yes" >&6; }
12723 break
12724 else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12728 done
12731 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12732 for ncn_progname in readelf; do
12733 if test -n "$ncn_target_tool_prefix"; then
12734 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12735 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737 $as_echo_n "checking for $ac_word... " >&6; }
12738 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 if test -n "$READELF_FOR_TARGET"; then
12742 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12743 else
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH
12747 IFS=$as_save_IFS
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
12750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12751 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753 break 2
12755 done
12756 done
12757 IFS=$as_save_IFS
12761 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12762 if test -n "$READELF_FOR_TARGET"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12764 $as_echo "$READELF_FOR_TARGET" >&6; }
12765 else
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12772 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12774 set dummy ${ncn_progname}; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 if test -n "$READELF_FOR_TARGET"; then
12781 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12782 else
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12790 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 break 2
12794 done
12795 done
12796 IFS=$as_save_IFS
12800 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12801 if test -n "$READELF_FOR_TARGET"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12803 $as_echo "$READELF_FOR_TARGET" >&6; }
12804 else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12811 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12812 done
12815 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12816 set dummy readelf
12817 if test $build = $target ; then
12818 READELF_FOR_TARGET="$2"
12819 else
12820 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12822 else
12823 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12826 else
12827 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12833 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12834 if test -n "$with_build_time_tools"; then
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12836 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12837 if test -x $with_build_time_tools/strip; then
12838 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12839 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12841 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12842 else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12846 elif test $build != $host && test $have_gcc_for_target = yes; then
12847 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12848 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12849 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12852 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12853 # Extract the first word of "strip", so it can be a program name with args.
12854 set dummy strip; ac_word=$2
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12856 $as_echo_n "checking for $ac_word... " >&6; }
12857 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 case $STRIP_FOR_TARGET in
12861 [\\/]* | ?:[\\/]*)
12862 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $gcc_cv_tool_dirs
12868 IFS=$as_save_IFS
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
12871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12872 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874 break 2
12876 done
12877 done
12878 IFS=$as_save_IFS
12881 esac
12883 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12884 if test -n "$STRIP_FOR_TARGET"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12886 $as_echo "$STRIP_FOR_TARGET" >&6; }
12887 else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 $as_echo "no" >&6; }
12894 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12897 if test -n "$STRIP_FOR_TARGET"; then
12898 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12899 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12900 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12903 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12904 for ncn_progname in strip; do
12905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12906 set dummy ${ncn_progname}; ac_word=$2
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908 $as_echo_n "checking for $ac_word... " >&6; }
12909 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 if test -n "$STRIP_FOR_TARGET"; then
12913 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12914 else
12915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916 for as_dir in $PATH
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
12921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12922 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12926 done
12927 done
12928 IFS=$as_save_IFS
12932 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12933 if test -n "$STRIP_FOR_TARGET"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12935 $as_echo "$STRIP_FOR_TARGET" >&6; }
12936 else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938 $as_echo "no" >&6; }
12942 done
12945 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12946 for ncn_progname in strip; do
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12948 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12949 if test -x $with_build_time_tools/${ncn_progname}; then
12950 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12952 $as_echo "yes" >&6; }
12953 break
12954 else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12958 done
12961 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12962 for ncn_progname in strip; do
12963 if test -n "$ncn_target_tool_prefix"; then
12964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12965 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967 $as_echo_n "checking for $ac_word... " >&6; }
12968 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 if test -n "$STRIP_FOR_TARGET"; then
12972 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12973 else
12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $PATH
12977 IFS=$as_save_IFS
12978 test -z "$as_dir" && as_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12981 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12983 break 2
12985 done
12986 done
12987 IFS=$as_save_IFS
12991 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12992 if test -n "$STRIP_FOR_TARGET"; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12994 $as_echo "$STRIP_FOR_TARGET" >&6; }
12995 else
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997 $as_echo "no" >&6; }
13002 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13004 set dummy ${ncn_progname}; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 if test -n "$STRIP_FOR_TARGET"; then
13011 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13012 else
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH
13016 IFS=$as_save_IFS
13017 test -z "$as_dir" && as_dir=.
13018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13020 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13022 break 2
13024 done
13025 done
13026 IFS=$as_save_IFS
13030 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13031 if test -n "$STRIP_FOR_TARGET"; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13033 $as_echo "$STRIP_FOR_TARGET" >&6; }
13034 else
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13041 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13042 done
13045 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13046 set dummy strip
13047 if test $build = $target ; then
13048 STRIP_FOR_TARGET="$2"
13049 else
13050 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13052 else
13053 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13056 else
13057 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13063 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13064 if test -n "$with_build_time_tools"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13066 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13067 if test -x $with_build_time_tools/windres; then
13068 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13069 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13071 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13072 else
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13076 elif test $build != $host && test $have_gcc_for_target = yes; then
13077 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13078 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13079 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13082 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13083 # Extract the first word of "windres", so it can be a program name with args.
13084 set dummy windres; ac_word=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13086 $as_echo_n "checking for $ac_word... " >&6; }
13087 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13088 $as_echo_n "(cached) " >&6
13089 else
13090 case $WINDRES_FOR_TARGET in
13091 [\\/]* | ?:[\\/]*)
13092 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $gcc_cv_tool_dirs
13098 IFS=$as_save_IFS
13099 test -z "$as_dir" && as_dir=.
13100 for ac_exec_ext in '' $ac_executable_extensions; do
13101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13102 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 break 2
13106 done
13107 done
13108 IFS=$as_save_IFS
13111 esac
13113 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13114 if test -n "$WINDRES_FOR_TARGET"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13116 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13117 else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119 $as_echo "no" >&6; }
13124 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13127 if test -n "$WINDRES_FOR_TARGET"; then
13128 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13129 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13130 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13133 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13134 for ncn_progname in windres; do
13135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13136 set dummy ${ncn_progname}; ac_word=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 $as_echo_n "checking for $ac_word... " >&6; }
13139 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 if test -n "$WINDRES_FOR_TARGET"; then
13143 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13144 else
13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146 for as_dir in $PATH
13148 IFS=$as_save_IFS
13149 test -z "$as_dir" && as_dir=.
13150 for ac_exec_ext in '' $ac_executable_extensions; do
13151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13152 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13154 break 2
13156 done
13157 done
13158 IFS=$as_save_IFS
13162 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13163 if test -n "$WINDRES_FOR_TARGET"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13165 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13166 else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13172 done
13175 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13176 for ncn_progname in windres; do
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13178 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13179 if test -x $with_build_time_tools/${ncn_progname}; then
13180 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13182 $as_echo "yes" >&6; }
13183 break
13184 else
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13188 done
13191 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13192 for ncn_progname in windres; do
13193 if test -n "$ncn_target_tool_prefix"; then
13194 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13195 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197 $as_echo_n "checking for $ac_word... " >&6; }
13198 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 if test -n "$WINDRES_FOR_TARGET"; then
13202 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13203 else
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13215 done
13216 done
13217 IFS=$as_save_IFS
13221 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13222 if test -n "$WINDRES_FOR_TARGET"; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13224 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13225 else
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13232 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13234 set dummy ${ncn_progname}; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 if test -n "$WINDRES_FOR_TARGET"; then
13241 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13242 else
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13254 done
13255 done
13256 IFS=$as_save_IFS
13260 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13261 if test -n "$WINDRES_FOR_TARGET"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13263 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13264 else
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13271 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13272 done
13275 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13276 set dummy windres
13277 if test $build = $target ; then
13278 WINDRES_FOR_TARGET="$2"
13279 else
13280 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13282 else
13283 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13286 else
13287 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13293 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13294 if test -n "$with_build_time_tools"; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13296 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13297 if test -x $with_build_time_tools/windmc; then
13298 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13299 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13301 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13306 elif test $build != $host && test $have_gcc_for_target = yes; then
13307 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13308 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13309 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13312 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13313 # Extract the first word of "windmc", so it can be a program name with args.
13314 set dummy windmc; ac_word=$2
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316 $as_echo_n "checking for $ac_word... " >&6; }
13317 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13318 $as_echo_n "(cached) " >&6
13319 else
13320 case $WINDMC_FOR_TARGET in
13321 [\\/]* | ?:[\\/]*)
13322 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326 for as_dir in $gcc_cv_tool_dirs
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
13331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13332 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13336 done
13337 done
13338 IFS=$as_save_IFS
13341 esac
13343 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13344 if test -n "$WINDMC_FOR_TARGET"; then
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13346 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13347 else
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349 $as_echo "no" >&6; }
13354 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13357 if test -n "$WINDMC_FOR_TARGET"; then
13358 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13359 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13360 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13363 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13364 for ncn_progname in windmc; do
13365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13366 set dummy ${ncn_progname}; ac_word=$2
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368 $as_echo_n "checking for $ac_word... " >&6; }
13369 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 if test -n "$WINDMC_FOR_TARGET"; then
13373 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13374 else
13375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 for as_dir in $PATH
13378 IFS=$as_save_IFS
13379 test -z "$as_dir" && as_dir=.
13380 for ac_exec_ext in '' $ac_executable_extensions; do
13381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13382 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384 break 2
13386 done
13387 done
13388 IFS=$as_save_IFS
13392 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13393 if test -n "$WINDMC_FOR_TARGET"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13395 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13396 else
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13402 done
13405 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13406 for ncn_progname in windmc; do
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13408 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13409 if test -x $with_build_time_tools/${ncn_progname}; then
13410 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13412 $as_echo "yes" >&6; }
13413 break
13414 else
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13418 done
13421 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13422 for ncn_progname in windmc; do
13423 if test -n "$ncn_target_tool_prefix"; then
13424 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13425 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427 $as_echo_n "checking for $ac_word... " >&6; }
13428 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 if test -n "$WINDMC_FOR_TARGET"; then
13432 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13433 else
13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435 for as_dir in $PATH
13437 IFS=$as_save_IFS
13438 test -z "$as_dir" && as_dir=.
13439 for ac_exec_ext in '' $ac_executable_extensions; do
13440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13441 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13443 break 2
13445 done
13446 done
13447 IFS=$as_save_IFS
13451 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13452 if test -n "$WINDMC_FOR_TARGET"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13454 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13455 else
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13462 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13464 set dummy ${ncn_progname}; ac_word=$2
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466 $as_echo_n "checking for $ac_word... " >&6; }
13467 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13468 $as_echo_n "(cached) " >&6
13469 else
13470 if test -n "$WINDMC_FOR_TARGET"; then
13471 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13472 else
13473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474 for as_dir in $PATH
13476 IFS=$as_save_IFS
13477 test -z "$as_dir" && as_dir=.
13478 for ac_exec_ext in '' $ac_executable_extensions; do
13479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13480 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13482 break 2
13484 done
13485 done
13486 IFS=$as_save_IFS
13490 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13491 if test -n "$WINDMC_FOR_TARGET"; then
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13493 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13494 else
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 $as_echo "no" >&6; }
13501 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13502 done
13505 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13506 set dummy windmc
13507 if test $build = $target ; then
13508 WINDMC_FOR_TARGET="$2"
13509 else
13510 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13512 else
13513 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13516 else
13517 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13521 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13524 $as_echo_n "checking where to find the target ar... " >&6; }
13525 if test "x${build}" != "x${host}" ; then
13526 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13527 # We already found the complete path
13528 ac_dir=`dirname $AR_FOR_TARGET`
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13530 $as_echo "pre-installed in $ac_dir" >&6; }
13531 else
13532 # Canadian cross, just use what we found
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13534 $as_echo "pre-installed" >&6; }
13536 else
13537 ok=yes
13538 case " ${configdirs} " in
13539 *" binutils "*) ;;
13540 *) ok=no ;;
13541 esac
13543 if test $ok = yes; then
13544 # An in-tree tool is available and we can use it
13545 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13547 $as_echo "just compiled" >&6; }
13548 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13549 # We already found the complete path
13550 ac_dir=`dirname $AR_FOR_TARGET`
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13552 $as_echo "pre-installed in $ac_dir" >&6; }
13553 elif test "x$target" = "x$host"; then
13554 # We can use an host tool
13555 AR_FOR_TARGET='$(AR)'
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13557 $as_echo "host tool" >&6; }
13558 else
13559 # We need a cross tool
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13561 $as_echo "pre-installed" >&6; }
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13566 $as_echo_n "checking where to find the target as... " >&6; }
13567 if test "x${build}" != "x${host}" ; then
13568 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13569 # We already found the complete path
13570 ac_dir=`dirname $AS_FOR_TARGET`
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13572 $as_echo "pre-installed in $ac_dir" >&6; }
13573 else
13574 # Canadian cross, just use what we found
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13576 $as_echo "pre-installed" >&6; }
13578 else
13579 ok=yes
13580 case " ${configdirs} " in
13581 *" gas "*) ;;
13582 *) ok=no ;;
13583 esac
13585 if test $ok = yes; then
13586 # An in-tree tool is available and we can use it
13587 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13589 $as_echo "just compiled" >&6; }
13590 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13591 # We already found the complete path
13592 ac_dir=`dirname $AS_FOR_TARGET`
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13594 $as_echo "pre-installed in $ac_dir" >&6; }
13595 elif test "x$target" = "x$host"; then
13596 # We can use an host tool
13597 AS_FOR_TARGET='$(AS)'
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13599 $as_echo "host tool" >&6; }
13600 else
13601 # We need a cross tool
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13603 $as_echo "pre-installed" >&6; }
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13608 $as_echo_n "checking where to find the target cc... " >&6; }
13609 if test "x${build}" != "x${host}" ; then
13610 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13611 # We already found the complete path
13612 ac_dir=`dirname $CC_FOR_TARGET`
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13614 $as_echo "pre-installed in $ac_dir" >&6; }
13615 else
13616 # Canadian cross, just use what we found
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13618 $as_echo "pre-installed" >&6; }
13620 else
13621 ok=yes
13622 case " ${configdirs} " in
13623 *" gcc "*) ;;
13624 *) ok=no ;;
13625 esac
13627 if test $ok = yes; then
13628 # An in-tree tool is available and we can use it
13629 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13631 $as_echo "just compiled" >&6; }
13632 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13633 # We already found the complete path
13634 ac_dir=`dirname $CC_FOR_TARGET`
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13636 $as_echo "pre-installed in $ac_dir" >&6; }
13637 elif test "x$target" = "x$host"; then
13638 # We can use an host tool
13639 CC_FOR_TARGET='$(CC)'
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13641 $as_echo "host tool" >&6; }
13642 else
13643 # We need a cross tool
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13645 $as_echo "pre-installed" >&6; }
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13650 $as_echo_n "checking where to find the target c++... " >&6; }
13651 if test "x${build}" != "x${host}" ; then
13652 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13653 # We already found the complete path
13654 ac_dir=`dirname $CXX_FOR_TARGET`
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13656 $as_echo "pre-installed in $ac_dir" >&6; }
13657 else
13658 # Canadian cross, just use what we found
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13660 $as_echo "pre-installed" >&6; }
13662 else
13663 ok=yes
13664 case " ${configdirs} " in
13665 *" gcc "*) ;;
13666 *) ok=no ;;
13667 esac
13668 case ,${enable_languages}, in
13669 *,c++,*) ;;
13670 *) ok=no ;;
13671 esac
13672 if test $ok = yes; then
13673 # An in-tree tool is available and we can use it
13674 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'
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13676 $as_echo "just compiled" >&6; }
13677 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13678 # We already found the complete path
13679 ac_dir=`dirname $CXX_FOR_TARGET`
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13681 $as_echo "pre-installed in $ac_dir" >&6; }
13682 elif test "x$target" = "x$host"; then
13683 # We can use an host tool
13684 CXX_FOR_TARGET='$(CXX)'
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13686 $as_echo "host tool" >&6; }
13687 else
13688 # We need a cross tool
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13690 $as_echo "pre-installed" >&6; }
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13695 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13696 if test "x${build}" != "x${host}" ; then
13697 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13698 # We already found the complete path
13699 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13701 $as_echo "pre-installed in $ac_dir" >&6; }
13702 else
13703 # Canadian cross, just use what we found
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13705 $as_echo "pre-installed" >&6; }
13707 else
13708 ok=yes
13709 case " ${configdirs} " in
13710 *" gcc "*) ;;
13711 *) ok=no ;;
13712 esac
13713 case ,${enable_languages}, in
13714 *,c++,*) ;;
13715 *) ok=no ;;
13716 esac
13717 if test $ok = yes; then
13718 # An in-tree tool is available and we can use it
13719 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'
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13721 $as_echo "just compiled" >&6; }
13722 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13723 # We already found the complete path
13724 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13726 $as_echo "pre-installed in $ac_dir" >&6; }
13727 elif test "x$target" = "x$host"; then
13728 # We can use an host tool
13729 RAW_CXX_FOR_TARGET='$(CXX)'
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13731 $as_echo "host tool" >&6; }
13732 else
13733 # We need a cross tool
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13735 $as_echo "pre-installed" >&6; }
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13740 $as_echo_n "checking where to find the target dlltool... " >&6; }
13741 if test "x${build}" != "x${host}" ; then
13742 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13743 # We already found the complete path
13744 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13746 $as_echo "pre-installed in $ac_dir" >&6; }
13747 else
13748 # Canadian cross, just use what we found
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13750 $as_echo "pre-installed" >&6; }
13752 else
13753 ok=yes
13754 case " ${configdirs} " in
13755 *" binutils "*) ;;
13756 *) ok=no ;;
13757 esac
13759 if test $ok = yes; then
13760 # An in-tree tool is available and we can use it
13761 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13763 $as_echo "just compiled" >&6; }
13764 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13765 # We already found the complete path
13766 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13768 $as_echo "pre-installed in $ac_dir" >&6; }
13769 elif test "x$target" = "x$host"; then
13770 # We can use an host tool
13771 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13773 $as_echo "host tool" >&6; }
13774 else
13775 # We need a cross tool
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13777 $as_echo "pre-installed" >&6; }
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13782 $as_echo_n "checking where to find the target gcc... " >&6; }
13783 if test "x${build}" != "x${host}" ; then
13784 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13785 # We already found the complete path
13786 ac_dir=`dirname $GCC_FOR_TARGET`
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13788 $as_echo "pre-installed in $ac_dir" >&6; }
13789 else
13790 # Canadian cross, just use what we found
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13792 $as_echo "pre-installed" >&6; }
13794 else
13795 ok=yes
13796 case " ${configdirs} " in
13797 *" gcc "*) ;;
13798 *) ok=no ;;
13799 esac
13801 if test $ok = yes; then
13802 # An in-tree tool is available and we can use it
13803 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13805 $as_echo "just compiled" >&6; }
13806 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13807 # We already found the complete path
13808 ac_dir=`dirname $GCC_FOR_TARGET`
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13810 $as_echo "pre-installed in $ac_dir" >&6; }
13811 elif test "x$target" = "x$host"; then
13812 # We can use an host tool
13813 GCC_FOR_TARGET='$()'
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13815 $as_echo "host tool" >&6; }
13816 else
13817 # We need a cross tool
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13819 $as_echo "pre-installed" >&6; }
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13824 $as_echo_n "checking where to find the target gcj... " >&6; }
13825 if test "x${build}" != "x${host}" ; then
13826 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13827 # We already found the complete path
13828 ac_dir=`dirname $GCJ_FOR_TARGET`
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13830 $as_echo "pre-installed in $ac_dir" >&6; }
13831 else
13832 # Canadian cross, just use what we found
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13834 $as_echo "pre-installed" >&6; }
13836 else
13837 ok=yes
13838 case " ${configdirs} " in
13839 *" gcc "*) ;;
13840 *) ok=no ;;
13841 esac
13842 case ,${enable_languages}, in
13843 *,java,*) ;;
13844 *) ok=no ;;
13845 esac
13846 if test $ok = yes; then
13847 # An in-tree tool is available and we can use it
13848 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13850 $as_echo "just compiled" >&6; }
13851 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13852 # We already found the complete path
13853 ac_dir=`dirname $GCJ_FOR_TARGET`
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13855 $as_echo "pre-installed in $ac_dir" >&6; }
13856 elif test "x$target" = "x$host"; then
13857 # We can use an host tool
13858 GCJ_FOR_TARGET='$(GCJ)'
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13860 $as_echo "host tool" >&6; }
13861 else
13862 # We need a cross tool
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864 $as_echo "pre-installed" >&6; }
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13869 $as_echo_n "checking where to find the target gfortran... " >&6; }
13870 if test "x${build}" != "x${host}" ; then
13871 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13872 # We already found the complete path
13873 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13875 $as_echo "pre-installed in $ac_dir" >&6; }
13876 else
13877 # Canadian cross, just use what we found
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13879 $as_echo "pre-installed" >&6; }
13881 else
13882 ok=yes
13883 case " ${configdirs} " in
13884 *" gcc "*) ;;
13885 *) ok=no ;;
13886 esac
13887 case ,${enable_languages}, in
13888 *,fortran,*) ;;
13889 *) ok=no ;;
13890 esac
13891 if test $ok = yes; then
13892 # An in-tree tool is available and we can use it
13893 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13895 $as_echo "just compiled" >&6; }
13896 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13897 # We already found the complete path
13898 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13900 $as_echo "pre-installed in $ac_dir" >&6; }
13901 elif test "x$target" = "x$host"; then
13902 # We can use an host tool
13903 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13905 $as_echo "host tool" >&6; }
13906 else
13907 # We need a cross tool
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13909 $as_echo "pre-installed" >&6; }
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13914 $as_echo_n "checking where to find the target gccgo... " >&6; }
13915 if test "x${build}" != "x${host}" ; then
13916 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13917 # We already found the complete path
13918 ac_dir=`dirname $GOC_FOR_TARGET`
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13920 $as_echo "pre-installed in $ac_dir" >&6; }
13921 else
13922 # Canadian cross, just use what we found
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13924 $as_echo "pre-installed" >&6; }
13926 else
13927 ok=yes
13928 case " ${configdirs} " in
13929 *" gcc "*) ;;
13930 *) ok=no ;;
13931 esac
13932 case ,${enable_languages}, in
13933 *,go,*) ;;
13934 *) ok=no ;;
13935 esac
13936 if test $ok = yes; then
13937 # An in-tree tool is available and we can use it
13938 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13940 $as_echo "just compiled" >&6; }
13941 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13942 # We already found the complete path
13943 ac_dir=`dirname $GOC_FOR_TARGET`
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13945 $as_echo "pre-installed in $ac_dir" >&6; }
13946 elif test "x$target" = "x$host"; then
13947 # We can use an host tool
13948 GOC_FOR_TARGET='$(GOC)'
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13950 $as_echo "host tool" >&6; }
13951 else
13952 # We need a cross tool
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13954 $as_echo "pre-installed" >&6; }
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13959 $as_echo_n "checking where to find the target ld... " >&6; }
13960 if test "x${build}" != "x${host}" ; then
13961 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13962 # We already found the complete path
13963 ac_dir=`dirname $LD_FOR_TARGET`
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13965 $as_echo "pre-installed in $ac_dir" >&6; }
13966 else
13967 # Canadian cross, just use what we found
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13969 $as_echo "pre-installed" >&6; }
13971 else
13972 ok=yes
13973 case " ${configdirs} " in
13974 *" ld "*) ;;
13975 *) ok=no ;;
13976 esac
13978 if test $ok = yes; then
13979 # An in-tree tool is available and we can use it
13980 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13982 $as_echo "just compiled" >&6; }
13983 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
13985 ac_dir=`dirname $LD_FOR_TARGET`
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987 $as_echo "pre-installed in $ac_dir" >&6; }
13988 elif test "x$target" = "x$host"; then
13989 # We can use an host tool
13990 LD_FOR_TARGET='$(LD)'
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13992 $as_echo "host tool" >&6; }
13993 else
13994 # We need a cross tool
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13996 $as_echo "pre-installed" >&6; }
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14001 $as_echo_n "checking where to find the target lipo... " >&6; }
14002 if test "x${build}" != "x${host}" ; then
14003 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
14005 ac_dir=`dirname $LIPO_FOR_TARGET`
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007 $as_echo "pre-installed in $ac_dir" >&6; }
14008 else
14009 # Canadian cross, just use what we found
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14011 $as_echo "pre-installed" >&6; }
14013 else
14014 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14015 # We already found the complete path
14016 ac_dir=`dirname $LIPO_FOR_TARGET`
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14018 $as_echo "pre-installed in $ac_dir" >&6; }
14019 elif test "x$target" = "x$host"; then
14020 # We can use an host tool
14021 LIPO_FOR_TARGET='$(LIPO)'
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14023 $as_echo "host tool" >&6; }
14024 else
14025 # We need a cross tool
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14027 $as_echo "pre-installed" >&6; }
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14032 $as_echo_n "checking where to find the target nm... " >&6; }
14033 if test "x${build}" != "x${host}" ; then
14034 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14035 # We already found the complete path
14036 ac_dir=`dirname $NM_FOR_TARGET`
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14038 $as_echo "pre-installed in $ac_dir" >&6; }
14039 else
14040 # Canadian cross, just use what we found
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14042 $as_echo "pre-installed" >&6; }
14044 else
14045 ok=yes
14046 case " ${configdirs} " in
14047 *" binutils "*) ;;
14048 *) ok=no ;;
14049 esac
14051 if test $ok = yes; then
14052 # An in-tree tool is available and we can use it
14053 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14055 $as_echo "just compiled" >&6; }
14056 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14057 # We already found the complete path
14058 ac_dir=`dirname $NM_FOR_TARGET`
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14060 $as_echo "pre-installed in $ac_dir" >&6; }
14061 elif test "x$target" = "x$host"; then
14062 # We can use an host tool
14063 NM_FOR_TARGET='$(NM)'
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14065 $as_echo "host tool" >&6; }
14066 else
14067 # We need a cross tool
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14069 $as_echo "pre-installed" >&6; }
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14074 $as_echo_n "checking where to find the target objdump... " >&6; }
14075 if test "x${build}" != "x${host}" ; then
14076 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14077 # We already found the complete path
14078 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14080 $as_echo "pre-installed in $ac_dir" >&6; }
14081 else
14082 # Canadian cross, just use what we found
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14084 $as_echo "pre-installed" >&6; }
14086 else
14087 ok=yes
14088 case " ${configdirs} " in
14089 *" binutils "*) ;;
14090 *) ok=no ;;
14091 esac
14093 if test $ok = yes; then
14094 # An in-tree tool is available and we can use it
14095 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14097 $as_echo "just compiled" >&6; }
14098 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14099 # We already found the complete path
14100 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14102 $as_echo "pre-installed in $ac_dir" >&6; }
14103 elif test "x$target" = "x$host"; then
14104 # We can use an host tool
14105 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14107 $as_echo "host tool" >&6; }
14108 else
14109 # We need a cross tool
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14111 $as_echo "pre-installed" >&6; }
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14116 $as_echo_n "checking where to find the target ranlib... " >&6; }
14117 if test "x${build}" != "x${host}" ; then
14118 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14119 # We already found the complete path
14120 ac_dir=`dirname $RANLIB_FOR_TARGET`
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14122 $as_echo "pre-installed in $ac_dir" >&6; }
14123 else
14124 # Canadian cross, just use what we found
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14126 $as_echo "pre-installed" >&6; }
14128 else
14129 ok=yes
14130 case " ${configdirs} " in
14131 *" binutils "*) ;;
14132 *) ok=no ;;
14133 esac
14135 if test $ok = yes; then
14136 # An in-tree tool is available and we can use it
14137 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14139 $as_echo "just compiled" >&6; }
14140 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14141 # We already found the complete path
14142 ac_dir=`dirname $RANLIB_FOR_TARGET`
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14144 $as_echo "pre-installed in $ac_dir" >&6; }
14145 elif test "x$target" = "x$host"; then
14146 # We can use an host tool
14147 RANLIB_FOR_TARGET='$(RANLIB)'
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14149 $as_echo "host tool" >&6; }
14150 else
14151 # We need a cross tool
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14153 $as_echo "pre-installed" >&6; }
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14158 $as_echo_n "checking where to find the target readelf... " >&6; }
14159 if test "x${build}" != "x${host}" ; then
14160 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14161 # We already found the complete path
14162 ac_dir=`dirname $READELF_FOR_TARGET`
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14164 $as_echo "pre-installed in $ac_dir" >&6; }
14165 else
14166 # Canadian cross, just use what we found
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14168 $as_echo "pre-installed" >&6; }
14170 else
14171 ok=yes
14172 case " ${configdirs} " in
14173 *" binutils "*) ;;
14174 *) ok=no ;;
14175 esac
14177 if test $ok = yes; then
14178 # An in-tree tool is available and we can use it
14179 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14181 $as_echo "just compiled" >&6; }
14182 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14183 # We already found the complete path
14184 ac_dir=`dirname $READELF_FOR_TARGET`
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14186 $as_echo "pre-installed in $ac_dir" >&6; }
14187 elif test "x$target" = "x$host"; then
14188 # We can use an host tool
14189 READELF_FOR_TARGET='$(READELF)'
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14191 $as_echo "host tool" >&6; }
14192 else
14193 # We need a cross tool
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14195 $as_echo "pre-installed" >&6; }
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14200 $as_echo_n "checking where to find the target strip... " >&6; }
14201 if test "x${build}" != "x${host}" ; then
14202 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14203 # We already found the complete path
14204 ac_dir=`dirname $STRIP_FOR_TARGET`
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14206 $as_echo "pre-installed in $ac_dir" >&6; }
14207 else
14208 # Canadian cross, just use what we found
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14210 $as_echo "pre-installed" >&6; }
14212 else
14213 ok=yes
14214 case " ${configdirs} " in
14215 *" binutils "*) ;;
14216 *) ok=no ;;
14217 esac
14219 if test $ok = yes; then
14220 # An in-tree tool is available and we can use it
14221 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14223 $as_echo "just compiled" >&6; }
14224 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14225 # We already found the complete path
14226 ac_dir=`dirname $STRIP_FOR_TARGET`
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14228 $as_echo "pre-installed in $ac_dir" >&6; }
14229 elif test "x$target" = "x$host"; then
14230 # We can use an host tool
14231 STRIP_FOR_TARGET='$(STRIP)'
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14233 $as_echo "host tool" >&6; }
14234 else
14235 # We need a cross tool
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14237 $as_echo "pre-installed" >&6; }
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14242 $as_echo_n "checking where to find the target windres... " >&6; }
14243 if test "x${build}" != "x${host}" ; then
14244 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14245 # We already found the complete path
14246 ac_dir=`dirname $WINDRES_FOR_TARGET`
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14248 $as_echo "pre-installed in $ac_dir" >&6; }
14249 else
14250 # Canadian cross, just use what we found
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14252 $as_echo "pre-installed" >&6; }
14254 else
14255 ok=yes
14256 case " ${configdirs} " in
14257 *" binutils "*) ;;
14258 *) ok=no ;;
14259 esac
14261 if test $ok = yes; then
14262 # An in-tree tool is available and we can use it
14263 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14265 $as_echo "just compiled" >&6; }
14266 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14267 # We already found the complete path
14268 ac_dir=`dirname $WINDRES_FOR_TARGET`
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14270 $as_echo "pre-installed in $ac_dir" >&6; }
14271 elif test "x$target" = "x$host"; then
14272 # We can use an host tool
14273 WINDRES_FOR_TARGET='$(WINDRES)'
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14275 $as_echo "host tool" >&6; }
14276 else
14277 # We need a cross tool
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14279 $as_echo "pre-installed" >&6; }
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14284 $as_echo_n "checking where to find the target windmc... " >&6; }
14285 if test "x${build}" != "x${host}" ; then
14286 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14287 # We already found the complete path
14288 ac_dir=`dirname $WINDMC_FOR_TARGET`
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14290 $as_echo "pre-installed in $ac_dir" >&6; }
14291 else
14292 # Canadian cross, just use what we found
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14294 $as_echo "pre-installed" >&6; }
14296 else
14297 ok=yes
14298 case " ${configdirs} " in
14299 *" binutils "*) ;;
14300 *) ok=no ;;
14301 esac
14303 if test $ok = yes; then
14304 # An in-tree tool is available and we can use it
14305 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14307 $as_echo "just compiled" >&6; }
14308 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14309 # We already found the complete path
14310 ac_dir=`dirname $WINDMC_FOR_TARGET`
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14312 $as_echo "pre-installed in $ac_dir" >&6; }
14313 elif test "x$target" = "x$host"; then
14314 # We can use an host tool
14315 WINDMC_FOR_TARGET='$(WINDMC)'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14317 $as_echo "host tool" >&6; }
14318 else
14319 # We need a cross tool
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14321 $as_echo "pre-installed" >&6; }
14329 # Certain tools may need extra flags.
14330 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14331 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14332 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14334 # When building target libraries, except in a Canadian cross, we use
14335 # the same toolchain as the compiler we just built.
14336 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14337 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14338 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14339 if test $host = $build; then
14340 case " $configdirs " in
14341 *" gcc "*)
14342 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14343 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14344 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14346 esac
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14354 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14355 # Check whether --enable-maintainer-mode was given.
14356 if test "${enable_maintainer_mode+set}" = set; then :
14357 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14358 else
14359 USE_MAINTAINER_MODE=no
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14363 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14366 if test "$USE_MAINTAINER_MODE" = yes; then
14367 MAINTAINER_MODE_TRUE=
14368 MAINTAINER_MODE_FALSE='#'
14369 else
14370 MAINTAINER_MODE_TRUE='#'
14371 MAINTAINER_MODE_FALSE=
14373 MAINT=$MAINTAINER_MODE_TRUE
14375 # ---------------------
14376 # GCC bootstrap support
14377 # ---------------------
14379 # Stage specific cflags for build.
14380 stage1_cflags="-g"
14381 case $build in
14382 vax-*-*)
14383 case ${GCC} in
14384 yes) stage1_cflags="-g -Wa,-J" ;;
14385 *) stage1_cflags="-g -J" ;;
14386 esac ;;
14387 esac
14389 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14390 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14391 saved_CFLAGS="$CFLAGS"
14393 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14394 CFLAGS="$CFLAGS -fkeep-inline-functions"
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14396 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14400 #if (__GNUC__ < 3) \
14401 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14402 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14403 #error http://gcc.gnu.org/PR29382
14404 #endif
14407 main ()
14411 return 0;
14413 _ACEOF
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14416 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14417 else
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 CFLAGS="$saved_CFLAGS"
14428 # Enable --enable-checking in stage1 of the compiler.
14429 # Check whether --enable-stage1-checking was given.
14430 if test "${enable_stage1_checking+set}" = set; then :
14431 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14432 else
14433 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14434 stage1_checking=--enable-checking=yes,types
14435 else
14436 stage1_checking=--enable-checking=$enable_checking,types
14442 # Enable -Werror in bootstrap stage2 and later.
14443 # Check whether --enable-werror was given.
14444 if test "${enable_werror+set}" = set; then :
14445 enableval=$enable_werror;
14446 else
14447 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14448 enable_werror=yes
14449 else
14450 enable_werror=no
14454 case ${enable_werror} in
14455 yes) stage2_werror_flag="--enable-werror-always" ;;
14456 *) stage2_werror_flag="" ;;
14457 esac
14460 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14461 # --enable-build-with-cxx after stage1.
14462 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14463 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14464 else
14465 POSTSTAGE1_CONFIGURE_FLAGS=
14469 # Specify what files to not compare during bootstrap.
14471 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14472 case "$target" in
14473 hppa*64*-*-hpux*) ;;
14474 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14475 esac
14476 case " $configdirs " in
14477 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14478 esac
14481 ac_config_files="$ac_config_files Makefile"
14483 cat >confcache <<\_ACEOF
14484 # This file is a shell script that caches the results of configure
14485 # tests run on this system so they can be shared between configure
14486 # scripts and configure runs, see configure's option --config-cache.
14487 # It is not useful on other systems. If it contains results you don't
14488 # want to keep, you may remove or edit it.
14490 # config.status only pays attention to the cache file if you give it
14491 # the --recheck option to rerun configure.
14493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14495 # following values.
14497 _ACEOF
14499 # The following way of writing the cache mishandles newlines in values,
14500 # but we know of no workaround that is simple, portable, and efficient.
14501 # So, we kill variables containing newlines.
14502 # Ultrix sh set writes to stderr and can't be redirected directly,
14503 # and sets the high bit in the cache file unless we assign to the vars.
14505 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14506 eval ac_val=\$$ac_var
14507 case $ac_val in #(
14508 *${as_nl}*)
14509 case $ac_var in #(
14510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14511 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14512 esac
14513 case $ac_var in #(
14514 _ | IFS | as_nl) ;; #(
14515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14516 *) { eval $ac_var=; unset $ac_var;} ;;
14517 esac ;;
14518 esac
14519 done
14521 (set) 2>&1 |
14522 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14523 *${as_nl}ac_space=\ *)
14524 # `set' does not quote correctly, so add quotes: double-quote
14525 # substitution turns \\\\ into \\, and sed turns \\ into \.
14526 sed -n \
14527 "s/'/'\\\\''/g;
14528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14529 ;; #(
14531 # `set' quotes correctly as required by POSIX, so do not add quotes.
14532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14534 esac |
14535 sort
14537 sed '
14538 /^ac_cv_env_/b end
14539 t clear
14540 :clear
14541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14542 t end
14543 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14544 :end' >>confcache
14545 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14546 if test -w "$cache_file"; then
14547 test "x$cache_file" != "x/dev/null" &&
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14549 $as_echo "$as_me: updating cache $cache_file" >&6;}
14550 cat confcache >$cache_file
14551 else
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14553 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14556 rm -f confcache
14558 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14559 # Let make expand exec_prefix.
14560 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14562 # Transform confdefs.h into DEFS.
14563 # Protect against shell expansion while executing Makefile rules.
14564 # Protect against Makefile macro expansion.
14566 # If the first sed substitution is executed (which looks for macros that
14567 # take arguments), then branch to the quote section. Otherwise,
14568 # look for a macro that doesn't take arguments.
14569 ac_script='
14570 :mline
14571 /\\$/{
14573 s,\\\n,,
14574 b mline
14576 t clear
14577 :clear
14578 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14579 t quote
14580 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14581 t quote
14582 b any
14583 :quote
14584 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14585 s/\[/\\&/g
14586 s/\]/\\&/g
14587 s/\$/$$/g
14589 :any
14592 s/^\n//
14593 s/\n/ /g
14597 DEFS=`sed -n "$ac_script" confdefs.h`
14600 ac_libobjs=
14601 ac_ltlibobjs=
14602 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14603 # 1. Remove the extension, and $U if already installed.
14604 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14605 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14606 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14607 # will be set to the directory where LIBOBJS objects are built.
14608 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14609 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14610 done
14611 LIBOBJS=$ac_libobjs
14613 LTLIBOBJS=$ac_ltlibobjs
14617 : ${CONFIG_STATUS=./config.status}
14618 ac_write_fail=0
14619 ac_clean_files_save=$ac_clean_files
14620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14622 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14623 as_write_fail=0
14624 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14625 #! $SHELL
14626 # Generated by $as_me.
14627 # Run this file to recreate the current configuration.
14628 # Compiler output produced by configure, useful for debugging
14629 # configure, is in config.log if it exists.
14631 debug=false
14632 ac_cs_recheck=false
14633 ac_cs_silent=false
14635 SHELL=\${CONFIG_SHELL-$SHELL}
14636 export SHELL
14637 _ASEOF
14638 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14639 ## -------------------- ##
14640 ## M4sh Initialization. ##
14641 ## -------------------- ##
14643 # Be more Bourne compatible
14644 DUALCASE=1; export DUALCASE # for MKS sh
14645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14646 emulate sh
14647 NULLCMD=:
14648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14649 # is contrary to our usage. Disable this feature.
14650 alias -g '${1+"$@"}'='"$@"'
14651 setopt NO_GLOB_SUBST
14652 else
14653 case `(set -o) 2>/dev/null` in #(
14654 *posix*) :
14655 set -o posix ;; #(
14656 *) :
14658 esac
14662 as_nl='
14664 export as_nl
14665 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14666 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14669 # Prefer a ksh shell builtin over an external printf program on Solaris,
14670 # but without wasting forks for bash or zsh.
14671 if test -z "$BASH_VERSION$ZSH_VERSION" \
14672 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14673 as_echo='print -r --'
14674 as_echo_n='print -rn --'
14675 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14676 as_echo='printf %s\n'
14677 as_echo_n='printf %s'
14678 else
14679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14681 as_echo_n='/usr/ucb/echo -n'
14682 else
14683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14684 as_echo_n_body='eval
14685 arg=$1;
14686 case $arg in #(
14687 *"$as_nl"*)
14688 expr "X$arg" : "X\\(.*\\)$as_nl";
14689 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14690 esac;
14691 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14693 export as_echo_n_body
14694 as_echo_n='sh -c $as_echo_n_body as_echo'
14696 export as_echo_body
14697 as_echo='sh -c $as_echo_body as_echo'
14700 # The user is always right.
14701 if test "${PATH_SEPARATOR+set}" != set; then
14702 PATH_SEPARATOR=:
14703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14705 PATH_SEPARATOR=';'
14710 # IFS
14711 # We need space, tab and new line, in precisely that order. Quoting is
14712 # there to prevent editors from complaining about space-tab.
14713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14714 # splitting by setting IFS to empty value.)
14715 IFS=" "" $as_nl"
14717 # Find who we are. Look in the path if we contain no directory separator.
14718 case $0 in #((
14719 *[\\/]* ) as_myself=$0 ;;
14720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14721 for as_dir in $PATH
14723 IFS=$as_save_IFS
14724 test -z "$as_dir" && as_dir=.
14725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14726 done
14727 IFS=$as_save_IFS
14730 esac
14731 # We did not find ourselves, most probably we were run as `sh COMMAND'
14732 # in which case we are not to be found in the path.
14733 if test "x$as_myself" = x; then
14734 as_myself=$0
14736 if test ! -f "$as_myself"; then
14737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14738 exit 1
14741 # Unset variables that we do not need and which cause bugs (e.g. in
14742 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14743 # suppresses any "Segmentation fault" message there. '((' could
14744 # trigger a bug in pdksh 5.2.14.
14745 for as_var in BASH_ENV ENV MAIL MAILPATH
14746 do eval test x\${$as_var+set} = xset \
14747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14748 done
14749 PS1='$ '
14750 PS2='> '
14751 PS4='+ '
14753 # NLS nuisances.
14754 LC_ALL=C
14755 export LC_ALL
14756 LANGUAGE=C
14757 export LANGUAGE
14759 # CDPATH.
14760 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14763 # as_fn_error ERROR [LINENO LOG_FD]
14764 # ---------------------------------
14765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14767 # script with status $?, using 1 if that was 0.
14768 as_fn_error ()
14770 as_status=$?; test $as_status -eq 0 && as_status=1
14771 if test "$3"; then
14772 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14775 $as_echo "$as_me: error: $1" >&2
14776 as_fn_exit $as_status
14777 } # as_fn_error
14780 # as_fn_set_status STATUS
14781 # -----------------------
14782 # Set $? to STATUS, without forking.
14783 as_fn_set_status ()
14785 return $1
14786 } # as_fn_set_status
14788 # as_fn_exit STATUS
14789 # -----------------
14790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14791 as_fn_exit ()
14793 set +e
14794 as_fn_set_status $1
14795 exit $1
14796 } # as_fn_exit
14798 # as_fn_unset VAR
14799 # ---------------
14800 # Portably unset VAR.
14801 as_fn_unset ()
14803 { eval $1=; unset $1;}
14805 as_unset=as_fn_unset
14806 # as_fn_append VAR VALUE
14807 # ----------------------
14808 # Append the text in VALUE to the end of the definition contained in VAR. Take
14809 # advantage of any shell optimizations that allow amortized linear growth over
14810 # repeated appends, instead of the typical quadratic growth present in naive
14811 # implementations.
14812 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14813 eval 'as_fn_append ()
14815 eval $1+=\$2
14817 else
14818 as_fn_append ()
14820 eval $1=\$$1\$2
14822 fi # as_fn_append
14824 # as_fn_arith ARG...
14825 # ------------------
14826 # Perform arithmetic evaluation on the ARGs, and store the result in the
14827 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14828 # must be portable across $(()) and expr.
14829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14830 eval 'as_fn_arith ()
14832 as_val=$(( $* ))
14834 else
14835 as_fn_arith ()
14837 as_val=`expr "$@" || test $? -eq 1`
14839 fi # as_fn_arith
14842 if expr a : '\(a\)' >/dev/null 2>&1 &&
14843 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14844 as_expr=expr
14845 else
14846 as_expr=false
14849 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14850 as_basename=basename
14851 else
14852 as_basename=false
14855 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14856 as_dirname=dirname
14857 else
14858 as_dirname=false
14861 as_me=`$as_basename -- "$0" ||
14862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14863 X"$0" : 'X\(//\)$' \| \
14864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14865 $as_echo X/"$0" |
14866 sed '/^.*\/\([^/][^/]*\)\/*$/{
14867 s//\1/
14870 /^X\/\(\/\/\)$/{
14871 s//\1/
14874 /^X\/\(\/\).*/{
14875 s//\1/
14878 s/.*/./; q'`
14880 # Avoid depending upon Character Ranges.
14881 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14882 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14883 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14884 as_cr_digits='0123456789'
14885 as_cr_alnum=$as_cr_Letters$as_cr_digits
14887 ECHO_C= ECHO_N= ECHO_T=
14888 case `echo -n x` in #(((((
14889 -n*)
14890 case `echo 'xy\c'` in
14891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14892 xy) ECHO_C='\c';;
14893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14894 ECHO_T=' ';;
14895 esac;;
14897 ECHO_N='-n';;
14898 esac
14900 rm -f conf$$ conf$$.exe conf$$.file
14901 if test -d conf$$.dir; then
14902 rm -f conf$$.dir/conf$$.file
14903 else
14904 rm -f conf$$.dir
14905 mkdir conf$$.dir 2>/dev/null
14907 if (echo >conf$$.file) 2>/dev/null; then
14908 if ln -s conf$$.file conf$$ 2>/dev/null; then
14909 as_ln_s='ln -s'
14910 # ... but there are two gotchas:
14911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14913 # In both cases, we have to default to `cp -p'.
14914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14915 as_ln_s='cp -p'
14916 elif ln conf$$.file conf$$ 2>/dev/null; then
14917 as_ln_s=ln
14918 else
14919 as_ln_s='cp -p'
14921 else
14922 as_ln_s='cp -p'
14924 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14925 rmdir conf$$.dir 2>/dev/null
14928 # as_fn_mkdir_p
14929 # -------------
14930 # Create "$as_dir" as a directory, including parents if necessary.
14931 as_fn_mkdir_p ()
14934 case $as_dir in #(
14935 -*) as_dir=./$as_dir;;
14936 esac
14937 test -d "$as_dir" || eval $as_mkdir_p || {
14938 as_dirs=
14939 while :; do
14940 case $as_dir in #(
14941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14942 *) as_qdir=$as_dir;;
14943 esac
14944 as_dirs="'$as_qdir' $as_dirs"
14945 as_dir=`$as_dirname -- "$as_dir" ||
14946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14947 X"$as_dir" : 'X\(//\)[^/]' \| \
14948 X"$as_dir" : 'X\(//\)$' \| \
14949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14950 $as_echo X"$as_dir" |
14951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14952 s//\1/
14955 /^X\(\/\/\)[^/].*/{
14956 s//\1/
14959 /^X\(\/\/\)$/{
14960 s//\1/
14963 /^X\(\/\).*/{
14964 s//\1/
14967 s/.*/./; q'`
14968 test -d "$as_dir" && break
14969 done
14970 test -z "$as_dirs" || eval "mkdir $as_dirs"
14971 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14974 } # as_fn_mkdir_p
14975 if mkdir -p . 2>/dev/null; then
14976 as_mkdir_p='mkdir -p "$as_dir"'
14977 else
14978 test -d ./-p && rmdir ./-p
14979 as_mkdir_p=false
14982 if test -x / >/dev/null 2>&1; then
14983 as_test_x='test -x'
14984 else
14985 if ls -dL / >/dev/null 2>&1; then
14986 as_ls_L_option=L
14987 else
14988 as_ls_L_option=
14990 as_test_x='
14991 eval sh -c '\''
14992 if test -d "$1"; then
14993 test -d "$1/.";
14994 else
14995 case $1 in #(
14996 -*)set "./$1";;
14997 esac;
14998 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14999 ???[sx]*):;;*)false;;esac;fi
15000 '\'' sh
15003 as_executable_p=$as_test_x
15005 # Sed expression to map a string onto a valid CPP name.
15006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15008 # Sed expression to map a string onto a valid variable name.
15009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15012 exec 6>&1
15013 ## ----------------------------------- ##
15014 ## Main body of $CONFIG_STATUS script. ##
15015 ## ----------------------------------- ##
15016 _ASEOF
15017 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15020 # Save the log message, to keep $0 and so on meaningful, and to
15021 # report actual input values of CONFIG_FILES etc. instead of their
15022 # values after options handling.
15023 ac_log="
15024 This file was extended by $as_me, which was
15025 generated by GNU Autoconf 2.64. Invocation command line was
15027 CONFIG_FILES = $CONFIG_FILES
15028 CONFIG_HEADERS = $CONFIG_HEADERS
15029 CONFIG_LINKS = $CONFIG_LINKS
15030 CONFIG_COMMANDS = $CONFIG_COMMANDS
15031 $ $0 $@
15033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15036 _ACEOF
15038 case $ac_config_files in *"
15039 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15040 esac
15044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15045 # Files that config.status was made for.
15046 config_files="$ac_config_files"
15048 _ACEOF
15050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15051 ac_cs_usage="\
15052 \`$as_me' instantiates files and other configuration actions
15053 from templates according to the current configuration. Unless the files
15054 and actions are specified as TAGs, all are instantiated by default.
15056 Usage: $0 [OPTION]... [TAG]...
15058 -h, --help print this help, then exit
15059 -V, --version print version number and configuration settings, then exit
15060 -q, --quiet, --silent
15061 do not print progress messages
15062 -d, --debug don't remove temporary files
15063 --recheck update $as_me by reconfiguring in the same conditions
15064 --file=FILE[:TEMPLATE]
15065 instantiate the configuration file FILE
15067 Configuration files:
15068 $config_files
15070 Report bugs to the package provider."
15072 _ACEOF
15073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15074 ac_cs_version="\\
15075 config.status
15076 configured by $0, generated by GNU Autoconf 2.64,
15077 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15079 Copyright (C) 2009 Free Software Foundation, Inc.
15080 This config.status script is free software; the Free Software Foundation
15081 gives unlimited permission to copy, distribute and modify it."
15083 ac_pwd='$ac_pwd'
15084 srcdir='$srcdir'
15085 INSTALL='$INSTALL'
15086 AWK='$AWK'
15087 test -n "\$AWK" || AWK=awk
15088 _ACEOF
15090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15091 # The default lists apply if the user does not specify any file.
15092 ac_need_defaults=:
15093 while test $# != 0
15095 case $1 in
15096 --*=*)
15097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15098 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15099 ac_shift=:
15102 ac_option=$1
15103 ac_optarg=$2
15104 ac_shift=shift
15106 esac
15108 case $ac_option in
15109 # Handling of the options.
15110 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15111 ac_cs_recheck=: ;;
15112 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15113 $as_echo "$ac_cs_version"; exit ;;
15114 --debug | --debu | --deb | --de | --d | -d )
15115 debug=: ;;
15116 --file | --fil | --fi | --f )
15117 $ac_shift
15118 case $ac_optarg in
15119 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15120 esac
15121 as_fn_append CONFIG_FILES " '$ac_optarg'"
15122 ac_need_defaults=false;;
15123 --he | --h | --help | --hel | -h )
15124 $as_echo "$ac_cs_usage"; exit ;;
15125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15127 ac_cs_silent=: ;;
15129 # This is an error.
15130 -*) as_fn_error "unrecognized option: \`$1'
15131 Try \`$0 --help' for more information." ;;
15133 *) as_fn_append ac_config_targets " $1"
15134 ac_need_defaults=false ;;
15136 esac
15137 shift
15138 done
15140 ac_configure_extra_args=
15142 if $ac_cs_silent; then
15143 exec 6>/dev/null
15144 ac_configure_extra_args="$ac_configure_extra_args --silent"
15147 _ACEOF
15148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15149 if \$ac_cs_recheck; then
15150 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15151 shift
15152 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15153 CONFIG_SHELL='$SHELL'
15154 export CONFIG_SHELL
15155 exec "\$@"
15158 _ACEOF
15159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15160 exec 5>>config.log
15162 echo
15163 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15164 ## Running $as_me. ##
15165 _ASBOX
15166 $as_echo "$ac_log"
15167 } >&5
15169 _ACEOF
15170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15172 # INIT-COMMANDS
15174 extrasub_build="$extrasub_build"
15175 extrasub_host="$extrasub_host"
15176 extrasub_target="$extrasub_target"
15178 _ACEOF
15180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15182 # Handling of arguments.
15183 for ac_config_target in $ac_config_targets
15185 case $ac_config_target in
15186 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15188 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15189 esac
15190 done
15193 # If the user did not use the arguments to specify the items to instantiate,
15194 # then the envvar interface is used. Set only those that are not.
15195 # We use the long form for the default assignment because of an extremely
15196 # bizarre bug on SunOS 4.1.3.
15197 if $ac_need_defaults; then
15198 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15201 # Have a temporary directory for convenience. Make it in the build tree
15202 # simply because there is no reason against having it here, and in addition,
15203 # creating and moving files from /tmp can sometimes cause problems.
15204 # Hook for its removal unless debugging.
15205 # Note that there is a small window in which the directory will not be cleaned:
15206 # after its creation but before its name has been assigned to `$tmp'.
15207 $debug ||
15209 tmp=
15210 trap 'exit_status=$?
15211 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15213 trap 'as_fn_exit 1' 1 2 13 15
15215 # Create a (secure) tmp directory for tmp files.
15218 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15219 test -n "$tmp" && test -d "$tmp"
15220 } ||
15222 tmp=./conf$$-$RANDOM
15223 (umask 077 && mkdir "$tmp")
15224 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15226 # Set up the scripts for CONFIG_FILES section.
15227 # No need to generate them if there are no CONFIG_FILES.
15228 # This happens for instance with `./config.status config.h'.
15229 if test -n "$CONFIG_FILES"; then
15231 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15232 ac_cs_awk_getline=:
15233 ac_cs_awk_pipe_init=
15234 ac_cs_awk_read_file='
15235 while ((getline aline < (F[key])) > 0)
15236 print(aline)
15237 close(F[key])'
15238 ac_cs_awk_pipe_fini=
15239 else
15240 ac_cs_awk_getline=false
15241 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15242 ac_cs_awk_read_file='
15243 print "|#_!!_#|"
15244 print "cat " F[key] " &&"
15245 '$ac_cs_awk_pipe_init
15246 # The final `:' finishes the AND list.
15247 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15249 ac_cr=`echo X | tr X '\015'`
15250 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15251 # But we know of no other shell where ac_cr would be empty at this
15252 # point, so we can use a bashism as a fallback.
15253 if test "x$ac_cr" = x; then
15254 eval ac_cr=\$\'\\r\'
15256 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15257 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15258 ac_cs_awk_cr='\r'
15259 else
15260 ac_cs_awk_cr=$ac_cr
15263 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15264 _ACEOF
15266 # Create commands to substitute file output variables.
15268 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15269 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15270 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15271 echo "_ACAWK" &&
15272 echo "_ACEOF"
15273 } >conf$$files.sh &&
15274 . ./conf$$files.sh ||
15275 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15276 rm -f conf$$files.sh
15279 echo "cat >conf$$subs.awk <<_ACEOF" &&
15280 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15281 echo "_ACEOF"
15282 } >conf$$subs.sh ||
15283 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15284 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15285 ac_delim='%!_!# '
15286 for ac_last_try in false false false false false :; do
15287 . ./conf$$subs.sh ||
15288 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15290 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15291 if test $ac_delim_n = $ac_delim_num; then
15292 break
15293 elif $ac_last_try; then
15294 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15295 else
15296 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15298 done
15299 rm -f conf$$subs.sh
15301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15302 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15303 _ACEOF
15304 sed -n '
15306 s/^/S["/; s/!.*/"]=/
15309 s/^[^!]*!//
15310 :repl
15311 t repl
15312 s/'"$ac_delim"'$//
15313 t delim
15316 s/\(.\{148\}\).*/\1/
15317 t more1
15318 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15321 b repl
15322 :more1
15323 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15326 s/.\{148\}//
15327 t nl
15328 :delim
15330 s/\(.\{148\}\).*/\1/
15331 t more2
15332 s/["\\]/\\&/g; s/^/"/; s/$/"/
15335 :more2
15336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15339 s/.\{148\}//
15340 t delim
15341 ' <conf$$subs.awk | sed '
15342 /^[^""]/{
15344 s/\n//
15346 ' >>$CONFIG_STATUS || ac_write_fail=1
15347 rm -f conf$$subs.awk
15348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15349 _ACAWK
15350 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15351 for (key in S) S_is_set[key] = 1
15352 FS = "\a"
15353 \$ac_cs_awk_pipe_init
15356 line = $ 0
15357 nfields = split(line, field, "@")
15358 substed = 0
15359 len = length(field[1])
15360 for (i = 2; i < nfields; i++) {
15361 key = field[i]
15362 keylen = length(key)
15363 if (S_is_set[key]) {
15364 value = S[key]
15365 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15366 len += length(value) + length(field[++i])
15367 substed = 1
15368 } else
15369 len += 1 + keylen
15371 if (nfields == 3 && !substed) {
15372 key = field[2]
15373 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15374 \$ac_cs_awk_read_file
15375 next
15378 print line
15380 \$ac_cs_awk_pipe_fini
15381 _ACAWK
15382 _ACEOF
15383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15384 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15386 else
15388 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15389 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15390 _ACEOF
15392 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15393 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15394 # trailing colons and then remove the whole line if VPATH becomes empty
15395 # (actually we leave an empty line to preserve line numbers).
15396 if test "x$srcdir" = x.; then
15397 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15398 s/:*\$(srcdir):*/:/
15399 s/:*\${srcdir}:*/:/
15400 s/:*@srcdir@:*/:/
15401 s/^\([^=]*=[ ]*\):*/\1/
15402 s/:*$//
15403 s/^[^=]*=[ ]*$//
15407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15408 fi # test -n "$CONFIG_FILES"
15411 eval set X " :F $CONFIG_FILES "
15412 shift
15413 for ac_tag
15415 case $ac_tag in
15416 :[FHLC]) ac_mode=$ac_tag; continue;;
15417 esac
15418 case $ac_mode$ac_tag in
15419 :[FHL]*:*);;
15420 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15421 :[FH]-) ac_tag=-:-;;
15422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15423 esac
15424 ac_save_IFS=$IFS
15425 IFS=:
15426 set x $ac_tag
15427 IFS=$ac_save_IFS
15428 shift
15429 ac_file=$1
15430 shift
15432 case $ac_mode in
15433 :L) ac_source=$1;;
15434 :[FH])
15435 ac_file_inputs=
15436 for ac_f
15438 case $ac_f in
15439 -) ac_f="$tmp/stdin";;
15440 *) # Look for the file first in the build tree, then in the source tree
15441 # (if the path is not absolute). The absolute path cannot be DOS-style,
15442 # because $ac_f cannot contain `:'.
15443 test -f "$ac_f" ||
15444 case $ac_f in
15445 [\\/$]*) false;;
15446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15447 esac ||
15448 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15449 esac
15450 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15451 as_fn_append ac_file_inputs " '$ac_f'"
15452 done
15454 # Let's still pretend it is `configure' which instantiates (i.e., don't
15455 # use $as_me), people would be surprised to read:
15456 # /* config.h. Generated by config.status. */
15457 configure_input='Generated from '`
15458 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15459 `' by configure.'
15460 if test x"$ac_file" != x-; then
15461 configure_input="$ac_file. $configure_input"
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15463 $as_echo "$as_me: creating $ac_file" >&6;}
15465 # Neutralize special characters interpreted by sed in replacement strings.
15466 case $configure_input in #(
15467 *\&* | *\|* | *\\* )
15468 ac_sed_conf_input=`$as_echo "$configure_input" |
15469 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15470 *) ac_sed_conf_input=$configure_input;;
15471 esac
15473 case $ac_tag in
15474 *:-:* | *:-) cat >"$tmp/stdin" \
15475 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15476 esac
15478 esac
15480 ac_dir=`$as_dirname -- "$ac_file" ||
15481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15482 X"$ac_file" : 'X\(//\)[^/]' \| \
15483 X"$ac_file" : 'X\(//\)$' \| \
15484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15485 $as_echo X"$ac_file" |
15486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15487 s//\1/
15490 /^X\(\/\/\)[^/].*/{
15491 s//\1/
15494 /^X\(\/\/\)$/{
15495 s//\1/
15498 /^X\(\/\).*/{
15499 s//\1/
15502 s/.*/./; q'`
15503 as_dir="$ac_dir"; as_fn_mkdir_p
15504 ac_builddir=.
15506 case "$ac_dir" in
15507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15510 # A ".." for each directory in $ac_dir_suffix.
15511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15512 case $ac_top_builddir_sub in
15513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15515 esac ;;
15516 esac
15517 ac_abs_top_builddir=$ac_pwd
15518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15519 # for backward compatibility:
15520 ac_top_builddir=$ac_top_build_prefix
15522 case $srcdir in
15523 .) # We are building in place.
15524 ac_srcdir=.
15525 ac_top_srcdir=$ac_top_builddir_sub
15526 ac_abs_top_srcdir=$ac_pwd ;;
15527 [\\/]* | ?:[\\/]* ) # Absolute name.
15528 ac_srcdir=$srcdir$ac_dir_suffix;
15529 ac_top_srcdir=$srcdir
15530 ac_abs_top_srcdir=$srcdir ;;
15531 *) # Relative name.
15532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15533 ac_top_srcdir=$ac_top_build_prefix$srcdir
15534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15535 esac
15536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15539 case $ac_mode in
15542 # CONFIG_FILE
15545 case $INSTALL in
15546 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15547 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15548 esac
15549 _ACEOF
15551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15552 # If the template does not know about datarootdir, expand it.
15553 # FIXME: This hack should be removed a few years after 2.60.
15554 ac_datarootdir_hack=; ac_datarootdir_seen=
15555 ac_sed_dataroot='
15556 /datarootdir/ {
15560 /@datadir@/p
15561 /@docdir@/p
15562 /@infodir@/p
15563 /@localedir@/p
15564 /@mandir@/p'
15565 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15566 *datarootdir*) ac_datarootdir_seen=yes;;
15567 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15569 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15570 _ACEOF
15571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15572 ac_datarootdir_hack='
15573 s&@datadir@&$datadir&g
15574 s&@docdir@&$docdir&g
15575 s&@infodir@&$infodir&g
15576 s&@localedir@&$localedir&g
15577 s&@mandir@&$mandir&g
15578 s&\\\${datarootdir}&$datarootdir&g' ;;
15579 esac
15580 _ACEOF
15582 # Neutralize VPATH when `$srcdir' = `.'.
15583 # Shell code in configure.ac might set extrasub.
15584 # FIXME: do we really want to maintain this feature?
15585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15586 ac_sed_extra="$ac_vpsub
15587 $extrasub
15588 _ACEOF
15589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15592 s|@configure_input@|$ac_sed_conf_input|;t t
15593 s&@top_builddir@&$ac_top_builddir_sub&;t t
15594 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15595 s&@srcdir@&$ac_srcdir&;t t
15596 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15597 s&@top_srcdir@&$ac_top_srcdir&;t t
15598 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15599 s&@builddir@&$ac_builddir&;t t
15600 s&@abs_builddir@&$ac_abs_builddir&;t t
15601 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15602 s&@INSTALL@&$ac_INSTALL&;t t
15603 $ac_datarootdir_hack
15605 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15606 if $ac_cs_awk_getline; then
15607 $AWK -f "$tmp/subs.awk"
15608 else
15609 $AWK -f "$tmp/subs.awk" | $SHELL
15610 fi >$tmp/out \
15611 || as_fn_error "could not create $ac_file" "$LINENO" 5
15613 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15614 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15617 which seems to be undefined. Please make sure it is defined." >&5
15618 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15619 which seems to be undefined. Please make sure it is defined." >&2;}
15621 rm -f "$tmp/stdin"
15622 case $ac_file in
15623 -) cat "$tmp/out" && rm -f "$tmp/out";;
15624 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15625 esac \
15626 || as_fn_error "could not create $ac_file" "$LINENO" 5
15631 esac
15634 case $ac_file$ac_mode in
15635 "Makefile":F) sed "$extrasub_build" Makefile |
15636 sed "$extrasub_host" |
15637 sed "$extrasub_target" > mf$$
15638 mv -f mf$$ Makefile ;;
15640 esac
15641 done # for ac_tag
15644 as_fn_exit 0
15645 _ACEOF
15646 ac_clean_files=$ac_clean_files_save
15648 test $ac_write_fail = 0 ||
15649 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15652 # configure is writing to config.log, and then calls config.status.
15653 # config.status does its own redirection, appending to config.log.
15654 # Unfortunately, on DOS this fails, as config.log is still kept open
15655 # by configure, so config.status won't be able to write to it; its
15656 # output is simply discarded. So we exec the FD to /dev/null,
15657 # effectively closing config.log, so it can be properly (re)opened and
15658 # appended to by config.status. When coming back to configure, we
15659 # need to make the FD available again.
15660 if test "$no_create" != yes; then
15661 ac_cs_success=:
15662 ac_config_status_args=
15663 test "$silent" = yes &&
15664 ac_config_status_args="$ac_config_status_args --quiet"
15665 exec 5>/dev/null
15666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15667 exec 5>>config.log
15668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15669 # would make configure fail if this is the last instruction.
15670 $ac_cs_success || as_fn_exit $?
15672 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15674 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}