* cpplib.pot: Regenerate.
[official-gcc.git] / configure
blob9ace64e6b7a934f5c0ff02fb471dafc0e993d6d6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 READELF_FOR_TARGET
574 RANLIB_FOR_TARGET
575 OBJDUMP_FOR_TARGET
576 NM_FOR_TARGET
577 LIPO_FOR_TARGET
578 LD_FOR_TARGET
579 DLLTOOL_FOR_TARGET
580 AS_FOR_TARGET
581 AR_FOR_TARGET
582 GOC_FOR_TARGET
583 GFORTRAN_FOR_TARGET
584 GCJ_FOR_TARGET
585 GCC_FOR_TARGET
586 CXX_FOR_TARGET
587 CC_FOR_TARGET
588 READELF
589 OBJDUMP
590 OBJCOPY
591 WINDMC
592 WINDRES
593 STRIP
594 RANLIB
596 LIPO
598 DLLTOOL
601 RUNTEST
602 EXPECT
603 MAKEINFO
604 FLEX
607 BISON
608 YACC
609 WINDRES_FOR_BUILD
610 WINDMC_FOR_BUILD
611 RANLIB_FOR_BUILD
612 NM_FOR_BUILD
613 LD_FOR_BUILD
614 LDFLAGS_FOR_BUILD
615 GOC_FOR_BUILD
616 GFORTRAN_FOR_BUILD
617 GCJ_FOR_BUILD
618 DLLTOOL_FOR_BUILD
619 CXX_FOR_BUILD
620 CXXFLAGS_FOR_BUILD
621 CFLAGS_FOR_BUILD
622 CC_FOR_BUILD
623 AS_FOR_BUILD
624 AR_FOR_BUILD
625 target_configdirs
626 configdirs
627 build_configdirs
628 INSTALL_GDB_TK
629 GDB_TK
630 CONFIGURE_GDB_TK
631 build_tooldir
632 tooldir
633 GCC_SHLIB_SUBDIR
634 RPATH_ENVVAR
635 target_configargs
636 host_configargs
637 build_configargs
638 BUILD_CONFIG
639 LDFLAGS_FOR_TARGET
640 CXXFLAGS_FOR_TARGET
641 CFLAGS_FOR_TARGET
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
644 stage1_languages
645 extra_host_libiberty_configure_flags
646 clooginc
647 clooglibs
648 islinc
649 poststage1_ldflags
650 poststage1_libs
651 stage1_libs
652 stage1_ldflags
653 extra_isl_gmp_configure_flags
654 extra_mpc_mpfr_configure_flags
655 extra_mpc_gmp_configure_flags
656 extra_mpfr_configure_flags
657 gmpinc
658 gmplibs
659 do_compare
660 GNATMAKE
661 GNATBIND
662 ac_ct_CXX
663 CXXFLAGS
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
672 EXTRA_CONFIGARGS_LIBJAVA
673 target_subdir
674 host_subdir
675 build_subdir
676 build_libsubdir
679 LN_S
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 target_os
685 target_vendor
686 target_cpu
687 target
688 host_os
689 host_vendor
690 host_cpu
691 host
692 target_noncanonical
693 host_noncanonical
694 build_noncanonical
695 build_os
696 build_vendor
697 build_cpu
698 build
699 TOPLEVEL_CONFIGURE_ARGUMENTS
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_URL
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files='serialization_dependencies
739 host_makefile_frag
740 target_makefile_frag
741 alphaieee_frag
742 ospace_frag'
743 ac_user_opts='
744 enable_option_checking
745 with_build_libsubdir
746 enable_gold
747 enable_ld
748 enable_libquadmath
749 enable_libquadmath_support
750 enable_libada
751 enable_libssp
752 enable_static_libjava
753 enable_bootstrap
754 with_mpc
755 with_mpc_include
756 with_mpc_lib
757 with_mpfr_dir
758 with_mpfr
759 with_mpfr_include
760 with_mpfr_lib
761 with_gmp_dir
762 with_gmp
763 with_gmp_include
764 with_gmp_lib
765 with_host_libstdcxx
766 with_stage1_ldflags
767 with_stage1_libs
768 with_boot_libs
769 with_boot_ldflags
770 with_cloog
771 with_isl
772 with_isl_include
773 with_isl_lib
774 enable_isl_version_check
775 with_cloog_include
776 with_cloog_lib
777 enable_cloog_version_check
778 enable_lto
779 enable_stage1_languages
780 enable_objc_gc
781 with_build_sysroot
782 with_debug_prefix_map
783 with_build_config
784 enable_serial_configure
785 with_build_time_tools
786 enable_maintainer_mode
787 enable_stage1_checking
788 enable_werror
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
799 CXXFLAGS
801 build_configargs
802 host_configargs
803 target_configargs
806 DLLTOOL
808 LIPO
810 RANLIB
811 STRIP
812 WINDRES
813 WINDMC
814 OBJCOPY
815 OBJDUMP
816 READELF
817 CC_FOR_TARGET
818 CXX_FOR_TARGET
819 GCC_FOR_TARGET
820 GCJ_FOR_TARGET
821 GFORTRAN_FOR_TARGET
822 GOC_FOR_TARGET
823 AR_FOR_TARGET
824 AS_FOR_TARGET
825 DLLTOOL_FOR_TARGET
826 LD_FOR_TARGET
827 LIPO_FOR_TARGET
828 NM_FOR_TARGET
829 OBJDUMP_FOR_TARGET
830 RANLIB_FOR_TARGET
831 READELF_FOR_TARGET
832 STRIP_FOR_TARGET
833 WINDRES_FOR_TARGET
834 WINDMC_FOR_TARGET'
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
885 ac_prev=
886 ac_dashdash=
887 for ac_option
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
896 case $ac_option in
897 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *) ac_optarg=yes ;;
899 esac
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
905 ac_dashdash=yes ;;
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
924 --config-cache | -C)
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) as_fn_error "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information."
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1241 esac
1242 done
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error "missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299 test "$silent" = yes && exec 6>/dev/null
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error "pwd does not report name of working directory"
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1328 /^X\(\/\/\)$/{
1329 s//\1/
1332 /^X\(\/\).*/{
1333 s//\1/
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1341 else
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 case $srcdir in
1363 *" "*)
1364 as_fn_error "path to source, $srcdir, contains spaces"
1366 esac
1367 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1438 cat <<\_ACEOF
1440 Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445 System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 --target=TARGET configure for building compilers for TARGET [HOST]
1449 _ACEOF
1452 if test -n "$ac_init_help"; then
1454 cat <<\_ACEOF
1456 Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1461 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1462 --disable-libquadmath do not build libquadmath directory
1463 --disable-libquadmath-support
1464 disable libquadmath support for Fortran
1465 --enable-libada build libada directory
1466 --enable-libssp build libssp directory
1467 --enable-static-libjava[=ARG]
1468 build static libjava [default=no]
1469 --enable-bootstrap enable bootstrapping [yes if native build]
1470 --disable-isl-version-check
1471 disable check for ISL version
1472 --disable-cloog-version-check
1473 disable check for CLooG version
1474 --enable-lto enable link time optimization support
1475 --enable-stage1-languages[=all]
1476 choose additional languages to build during stage1.
1477 Mostly useful for compiler development
1478 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1479 Objective-C runtime
1480 --enable-serial-[{host,target,build}-]configure
1481 force sequential configuration of sub-packages for
1482 the host, target or build machine, or all
1483 sub-packages
1484 --enable-maintainer-mode
1485 enable make rules and dependencies not useful (and
1486 sometimes confusing) to the casual installer
1487 --enable-stage1-checking[=all]
1488 choose additional checking for stage1 of the
1489 compiler
1490 --enable-werror enable -Werror in bootstrap stage2 and later
1492 Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-build-libsubdir=DIR Directory where to find libraries for build system
1496 --with-mpc=PATH specify prefix directory for installed MPC package.
1497 Equivalent to --with-mpc-include=PATH/include plus
1498 --with-mpc-lib=PATH/lib
1499 --with-mpc-include=PATH specify directory for installed MPC include files
1500 --with-mpc-lib=PATH specify directory for the installed MPC library
1501 --with-mpfr-dir=PATH this option has been REMOVED
1502 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1503 Equivalent to --with-mpfr-include=PATH/include plus
1504 --with-mpfr-lib=PATH/lib
1505 --with-mpfr-include=PATH
1506 specify directory for installed MPFR include files
1507 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1508 --with-gmp-dir=PATH this option has been REMOVED
1509 --with-gmp=PATH specify prefix directory for the installed GMP
1510 package. Equivalent to
1511 --with-gmp-include=PATH/include plus
1512 --with-gmp-lib=PATH/lib
1513 --with-gmp-include=PATH specify directory for installed GMP include files
1514 --with-gmp-lib=PATH specify directory for the installed GMP library
1515 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1516 linking with PPL
1517 --with-stage1-ldflags=FLAGS
1518 linker flags for stage1
1519 --with-stage1-libs=LIBS libraries for stage1
1520 --with-boot-libs=LIBS libraries for stage2 and later
1521 --with-boot-ldflags=FLAGS
1522 linker flags for stage2 and later
1523 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1524 package. Equivalent to
1525 --with-cloog-include=PATH/include plus
1526 --with-cloog-lib=PATH/lib
1527 --with-isl=PATH Specify prefix directory for the installed ISL
1528 package. Equivalent to
1529 --with-isl-include=PATH/include plus
1530 --with-isl-lib=PATH/lib
1531 --with-isl-include=PATH Specify directory for installed ISL include files
1532 --with-isl-lib=PATH Specify the directory for the installed ISL library
1533 --with-cloog-include=PATH
1534 Specify directory for installed CLooG include files
1535 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1536 library
1537 --with-build-sysroot=SYSROOT
1538 use sysroot as the system root during the build
1539 --with-debug-prefix-map='A=B C=D ...'
1540 map A to B, C to D ... in debug information
1541 --with-build-config='NAME NAME2...'
1542 use config/NAME.mk build configuration
1543 --with-build-time-tools=PATH
1544 use given path to find target tools during the build
1546 Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
1554 CXX C++ compiler command
1555 CXXFLAGS C++ compiler flags
1556 build_configargs
1557 additional configure arguments for build directories
1558 host_configargs
1559 additional configure arguments for host directories
1560 target_configargs
1561 additional configure arguments for target directories
1562 AR AR for the host
1563 AS AS for the host
1564 DLLTOOL DLLTOOL for the host
1565 LD LD for the host
1566 LIPO LIPO for the host
1567 NM NM for the host
1568 RANLIB RANLIB for the host
1569 STRIP STRIP for the host
1570 WINDRES WINDRES for the host
1571 WINDMC WINDMC for the host
1572 OBJCOPY OBJCOPY for the host
1573 OBJDUMP OBJDUMP for the host
1574 READELF READELF for the host
1575 CC_FOR_TARGET
1576 CC for the target
1577 CXX_FOR_TARGET
1578 CXX for the target
1579 GCC_FOR_TARGET
1580 GCC for the target
1581 GCJ_FOR_TARGET
1582 GCJ for the target
1583 GFORTRAN_FOR_TARGET
1584 GFORTRAN for the target
1585 GOC_FOR_TARGET
1586 GOC for the target
1587 AR_FOR_TARGET
1588 AR for the target
1589 AS_FOR_TARGET
1590 AS for the target
1591 DLLTOOL_FOR_TARGET
1592 DLLTOOL for the target
1593 LD_FOR_TARGET
1594 LD for the target
1595 LIPO_FOR_TARGET
1596 LIPO for the target
1597 NM_FOR_TARGET
1598 NM for the target
1599 OBJDUMP_FOR_TARGET
1600 OBJDUMP for the target
1601 RANLIB_FOR_TARGET
1602 RANLIB for the target
1603 READELF_FOR_TARGET
1604 READELF for the target
1605 STRIP_FOR_TARGET
1606 STRIP for the target
1607 WINDRES_FOR_TARGET
1608 WINDRES for the target
1609 WINDMC_FOR_TARGET
1610 WINDMC for the target
1612 Use these variables to override the choices made by `configure' or to help
1613 it to find libraries and programs with nonstandard names/locations.
1615 Report bugs to the package provider.
1616 _ACEOF
1617 ac_status=$?
1620 if test "$ac_init_help" = "recursive"; then
1621 # If there are subdirs, report their specific --help.
1622 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1623 test -d "$ac_dir" ||
1624 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 continue
1626 ac_builddir=.
1628 case "$ac_dir" in
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 esac ;;
1638 esac
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1644 case $srcdir in
1645 .) # We are building in place.
1646 ac_srcdir=.
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
1650 ac_srcdir=$srcdir$ac_dir_suffix;
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1653 *) # Relative name.
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 esac
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure" --help=recursive
1668 else
1669 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 fi || ac_status=$?
1671 cd "$ac_pwd" || { ac_status=$?; break; }
1672 done
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1677 cat <<\_ACEOF
1678 configure
1679 generated by GNU Autoconf 2.64
1681 Copyright (C) 2009 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1684 _ACEOF
1685 exit
1688 ## ------------------------ ##
1689 ## Autoconf initialization. ##
1690 ## ------------------------ ##
1692 # ac_fn_c_try_compile LINENO
1693 # --------------------------
1694 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_compile ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext
1699 if { { ac_try="$ac_compile"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_compile") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest.$ac_objext; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=1
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 return $ac_retval
1728 } # ac_fn_c_try_compile
1730 # ac_fn_cxx_try_compile LINENO
1731 # ----------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_cxx_try_compile ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_cxx_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=1
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1766 } # ac_fn_cxx_try_compile
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_link ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 $as_test_x conftest$ac_exeext
1796 }; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 ac_retval=1
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 return $ac_retval
1812 } # ac_fn_c_try_link
1814 # ac_fn_c_try_run LINENO
1815 # ----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817 # that executables *can* be run.
1818 ac_fn_c_try_run ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>&5
1829 ac_status=$?
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832 { { case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_try") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; }; }; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: program exited with status $ac_status" >&5
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 ac_retval=$ac_status
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 return $ac_retval
1854 } # ac_fn_c_try_run
1855 cat >config.log <<_ACEOF
1856 This file contains any messages produced by compilers while
1857 running configure, to aid debugging if configure makes a mistake.
1859 It was created by $as_me, which was
1860 generated by GNU Autoconf 2.64. Invocation command line was
1862 $ $0 $@
1864 _ACEOF
1865 exec 5>>config.log
1867 cat <<_ASUNAME
1868 ## --------- ##
1869 ## Platform. ##
1870 ## --------- ##
1872 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1873 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1874 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1875 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1876 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1878 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1879 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1881 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1882 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1883 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1884 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1885 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1886 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1887 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1889 _ASUNAME
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 $as_echo "PATH: $as_dir"
1897 done
1898 IFS=$as_save_IFS
1900 } >&5
1902 cat >&5 <<_ACEOF
1905 ## ----------- ##
1906 ## Core tests. ##
1907 ## ----------- ##
1909 _ACEOF
1912 # Keep a trace of the command line.
1913 # Strip out --no-create and --no-recursion so they do not pile up.
1914 # Strip out --silent because we don't want to record it for future runs.
1915 # Also quote any args containing shell meta-characters.
1916 # Make two passes to allow for proper duplicate-argument suppression.
1917 ac_configure_args=
1918 ac_configure_args0=
1919 ac_configure_args1=
1920 ac_must_keep_next=false
1921 for ac_pass in 1 2
1923 for ac_arg
1925 case $ac_arg in
1926 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1928 | -silent | --silent | --silen | --sile | --sil)
1929 continue ;;
1930 *\'*)
1931 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1932 esac
1933 case $ac_pass in
1934 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1936 as_fn_append ac_configure_args1 " '$ac_arg'"
1937 if test $ac_must_keep_next = true; then
1938 ac_must_keep_next=false # Got value, back to normal.
1939 else
1940 case $ac_arg in
1941 *=* | --config-cache | -C | -disable-* | --disable-* \
1942 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1943 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1944 | -with-* | --with-* | -without-* | --without-* | --x)
1945 case "$ac_configure_args0 " in
1946 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1947 esac
1949 -* ) ac_must_keep_next=true ;;
1950 esac
1952 as_fn_append ac_configure_args " '$ac_arg'"
1954 esac
1955 done
1956 done
1957 { ac_configure_args0=; unset ac_configure_args0;}
1958 { ac_configure_args1=; unset ac_configure_args1;}
1960 # When interrupted or exit'd, cleanup temporary files, and complete
1961 # config.log. We remove comments because anyway the quotes in there
1962 # would cause problems or look ugly.
1963 # WARNING: Use '\'' to represent an apostrophe within the trap.
1964 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1965 trap 'exit_status=$?
1966 # Save into config.log some information that might help in debugging.
1968 echo
1970 cat <<\_ASBOX
1971 ## ---------------- ##
1972 ## Cache variables. ##
1973 ## ---------------- ##
1974 _ASBOX
1975 echo
1976 # The following way of writing the cache mishandles newlines in values,
1978 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1979 eval ac_val=\$$ac_var
1980 case $ac_val in #(
1981 *${as_nl}*)
1982 case $ac_var in #(
1983 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1984 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1985 esac
1986 case $ac_var in #(
1987 _ | IFS | as_nl) ;; #(
1988 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1989 *) { eval $ac_var=; unset $ac_var;} ;;
1990 esac ;;
1991 esac
1992 done
1993 (set) 2>&1 |
1994 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1995 *${as_nl}ac_space=\ *)
1996 sed -n \
1997 "s/'\''/'\''\\\\'\'''\''/g;
1998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1999 ;; #(
2001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2003 esac |
2004 sort
2006 echo
2008 cat <<\_ASBOX
2009 ## ----------------- ##
2010 ## Output variables. ##
2011 ## ----------------- ##
2012 _ASBOX
2013 echo
2014 for ac_var in $ac_subst_vars
2016 eval ac_val=\$$ac_var
2017 case $ac_val in
2018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 esac
2020 $as_echo "$ac_var='\''$ac_val'\''"
2021 done | sort
2022 echo
2024 if test -n "$ac_subst_files"; then
2025 cat <<\_ASBOX
2026 ## ------------------- ##
2027 ## File substitutions. ##
2028 ## ------------------- ##
2029 _ASBOX
2030 echo
2031 for ac_var in $ac_subst_files
2033 eval ac_val=\$$ac_var
2034 case $ac_val in
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 esac
2037 $as_echo "$ac_var='\''$ac_val'\''"
2038 done | sort
2039 echo
2042 if test -s confdefs.h; then
2043 cat <<\_ASBOX
2044 ## ----------- ##
2045 ## confdefs.h. ##
2046 ## ----------- ##
2047 _ASBOX
2048 echo
2049 cat confdefs.h
2050 echo
2052 test "$ac_signal" != 0 &&
2053 $as_echo "$as_me: caught signal $ac_signal"
2054 $as_echo "$as_me: exit $exit_status"
2055 } >&5
2056 rm -f core *.core core.conftest.* &&
2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2058 exit $exit_status
2060 for ac_signal in 1 2 13 15; do
2061 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2062 done
2063 ac_signal=0
2065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2066 rm -f -r conftest* confdefs.h
2068 $as_echo "/* confdefs.h */" > confdefs.h
2070 # Predefined preprocessor variables.
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_NAME "$PACKAGE_NAME"
2074 _ACEOF
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2078 _ACEOF
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2082 _ACEOF
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_STRING "$PACKAGE_STRING"
2086 _ACEOF
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2090 _ACEOF
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_URL "$PACKAGE_URL"
2094 _ACEOF
2097 # Let the site file select an alternate cache file if it wants to.
2098 # Prefer an explicitly selected file to automatically selected ones.
2099 ac_site_file1=NONE
2100 ac_site_file2=NONE
2101 if test -n "$CONFIG_SITE"; then
2102 ac_site_file1=$CONFIG_SITE
2103 elif test "x$prefix" != xNONE; then
2104 ac_site_file1=$prefix/share/config.site
2105 ac_site_file2=$prefix/etc/config.site
2106 else
2107 ac_site_file1=$ac_default_prefix/share/config.site
2108 ac_site_file2=$ac_default_prefix/etc/config.site
2110 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2112 test "x$ac_site_file" = xNONE && continue
2113 if test -r "$ac_site_file"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2116 sed 's/^/| /' "$ac_site_file" >&5
2117 . "$ac_site_file"
2119 done
2121 if test -r "$cache_file"; then
2122 # Some versions of bash will fail to source /dev/null (special
2123 # files actually), so we avoid doing that.
2124 if test -f "$cache_file"; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2126 $as_echo "$as_me: loading cache $cache_file" >&6;}
2127 case $cache_file in
2128 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2129 *) . "./$cache_file";;
2130 esac
2132 else
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2134 $as_echo "$as_me: creating cache $cache_file" >&6;}
2135 >$cache_file
2138 # Check that the precious variables saved in the cache have kept the same
2139 # value.
2140 ac_cache_corrupted=false
2141 for ac_var in $ac_precious_vars; do
2142 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2143 eval ac_new_set=\$ac_env_${ac_var}_set
2144 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2145 eval ac_new_val=\$ac_env_${ac_var}_value
2146 case $ac_old_set,$ac_new_set in
2147 set,)
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2149 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2150 ac_cache_corrupted=: ;;
2151 ,set)
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2153 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2154 ac_cache_corrupted=: ;;
2155 ,);;
2157 if test "x$ac_old_val" != "x$ac_new_val"; then
2158 # differences in whitespace do not lead to failure.
2159 ac_old_val_w=`echo x $ac_old_val`
2160 ac_new_val_w=`echo x $ac_new_val`
2161 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2163 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2164 ac_cache_corrupted=:
2165 else
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2167 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2168 eval $ac_var=\$ac_old_val
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2171 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2173 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2174 fi;;
2175 esac
2176 # Pass precious variables to config.status.
2177 if test "$ac_new_set" = set; then
2178 case $ac_new_val in
2179 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2180 *) ac_arg=$ac_var=$ac_new_val ;;
2181 esac
2182 case " $ac_configure_args " in
2183 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2184 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2185 esac
2187 done
2188 if $ac_cache_corrupted; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2192 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2193 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2195 ## -------------------- ##
2196 ## Main body of script. ##
2197 ## -------------------- ##
2199 ac_ext=c
2200 ac_cpp='$CPP $CPPFLAGS'
2201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213 progname=$0
2214 # if PWD already has a value, it is probably wrong.
2215 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2217 # Export original configure arguments for use by sub-configures.
2218 # Quote arguments with shell meta charatcers.
2219 TOPLEVEL_CONFIGURE_ARGUMENTS=
2220 set -- "$progname" "$@"
2221 for ac_arg
2223 case "$ac_arg" in
2224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2226 # if the argument is of the form -foo=baz, quote the baz part only
2227 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2228 *) ;;
2229 esac
2230 # Add the quoted argument to the list.
2231 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2232 done
2233 if test "$silent" = yes; then
2234 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2236 # Remove the initial space we just introduced and, as these will be
2237 # expanded by make, quote '$'.
2238 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2241 # Find the build, host, and target systems.
2242 ac_aux_dir=
2243 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2244 for ac_t in install-sh install.sh shtool; do
2245 if test -f "$ac_dir/$ac_t"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/$ac_t -c"
2248 break 2
2250 done
2251 done
2252 if test -z "$ac_aux_dir"; then
2253 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2256 # These three variables are undocumented and unsupported,
2257 # and are intended to be withdrawn in a future Autoconf release.
2258 # They can cause serious problems if a builder's source tree is in a directory
2259 # whose full name contains unusual characters.
2260 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2261 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2262 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2265 # Make sure we can run config.sub.
2266 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2267 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2270 $as_echo_n "checking build system type... " >&6; }
2271 if test "${ac_cv_build+set}" = set; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 ac_build_alias=$build_alias
2275 test "x$ac_build_alias" = x &&
2276 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2277 test "x$ac_build_alias" = x &&
2278 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2279 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2280 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2284 $as_echo "$ac_cv_build" >&6; }
2285 case $ac_cv_build in
2286 *-*-*) ;;
2287 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2288 esac
2289 build=$ac_cv_build
2290 ac_save_IFS=$IFS; IFS='-'
2291 set x $ac_cv_build
2292 shift
2293 build_cpu=$1
2294 build_vendor=$2
2295 shift; shift
2296 # Remember, the first character of IFS is used to create $*,
2297 # except with old shells:
2298 build_os=$*
2299 IFS=$ac_save_IFS
2300 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2303 case ${build_alias} in
2304 "") build_noncanonical=${build} ;;
2305 *) build_noncanonical=${build_alias} ;;
2306 esac
2310 case ${host_alias} in
2311 "") host_noncanonical=${build_noncanonical} ;;
2312 *) host_noncanonical=${host_alias} ;;
2313 esac
2317 case ${target_alias} in
2318 "") target_noncanonical=${host_noncanonical} ;;
2319 *) target_noncanonical=${target_alias} ;;
2320 esac
2325 test "$host_noncanonical" = "$target_noncanonical" &&
2326 test "$program_prefix$program_suffix$program_transform_name" = \
2327 NONENONEs,x,x, &&
2328 program_transform_name=s,y,y,
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2331 $as_echo_n "checking host system type... " >&6; }
2332 if test "${ac_cv_host+set}" = set; then :
2333 $as_echo_n "(cached) " >&6
2334 else
2335 if test "x$host_alias" = x; then
2336 ac_cv_host=$ac_cv_build
2337 else
2338 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2339 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2344 $as_echo "$ac_cv_host" >&6; }
2345 case $ac_cv_host in
2346 *-*-*) ;;
2347 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2348 esac
2349 host=$ac_cv_host
2350 ac_save_IFS=$IFS; IFS='-'
2351 set x $ac_cv_host
2352 shift
2353 host_cpu=$1
2354 host_vendor=$2
2355 shift; shift
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2358 host_os=$*
2359 IFS=$ac_save_IFS
2360 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2364 $as_echo_n "checking target system type... " >&6; }
2365 if test "${ac_cv_target+set}" = set; then :
2366 $as_echo_n "(cached) " >&6
2367 else
2368 if test "x$target_alias" = x; then
2369 ac_cv_target=$ac_cv_host
2370 else
2371 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2372 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2377 $as_echo "$ac_cv_target" >&6; }
2378 case $ac_cv_target in
2379 *-*-*) ;;
2380 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2381 esac
2382 target=$ac_cv_target
2383 ac_save_IFS=$IFS; IFS='-'
2384 set x $ac_cv_target
2385 shift
2386 target_cpu=$1
2387 target_vendor=$2
2388 shift; shift
2389 # Remember, the first character of IFS is used to create $*,
2390 # except with old shells:
2391 target_os=$*
2392 IFS=$ac_save_IFS
2393 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2396 # The aliases save the names the user supplied, while $host etc.
2397 # will get canonicalized.
2398 test -n "$target_alias" &&
2399 test "$program_prefix$program_suffix$program_transform_name" = \
2400 NONENONEs,x,x, &&
2401 program_prefix=${target_alias}-
2403 test "$program_prefix" != NONE &&
2404 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2405 # Use a double $ so make ignores it.
2406 test "$program_suffix" != NONE &&
2407 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2408 # Double any \ or $.
2409 # By default was `s,x,x', remove it if useless.
2410 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2411 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2415 # Get 'install' or 'install-sh' and its variants.
2416 # Find a good install program. We prefer a C program (faster),
2417 # so one script is as good as another. But avoid the broken or
2418 # incompatible versions:
2419 # SysV /etc/install, /usr/sbin/install
2420 # SunOS /usr/etc/install
2421 # IRIX /sbin/install
2422 # AIX /bin/install
2423 # AmigaOS /C/install, which installs bootblocks on floppy discs
2424 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2425 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2426 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2427 # OS/2's system install, which has a completely different semantic
2428 # ./install, which can be erroneously created by make from ./install.sh.
2429 # Reject install programs that cannot install multiple files.
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2431 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2432 if test -z "$INSTALL"; then
2433 if test "${ac_cv_path_install+set}" = set; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 # Account for people who put trailing slashes in PATH elements.
2442 case $as_dir/ in #((
2443 ./ | .// | /[cC]/* | \
2444 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2445 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2446 /usr/ucb/* ) ;;
2448 # OSF1 and SCO ODT 3.0 have their own names for install.
2449 # Don't use installbsd from OSF since it installs stuff as root
2450 # by default.
2451 for ac_prog in ginstall scoinst install; do
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2454 if test $ac_prog = install &&
2455 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456 # AIX install. It has an incompatible calling convention.
2458 elif test $ac_prog = install &&
2459 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2460 # program-specific install script used by HP pwplus--don't use.
2462 else
2463 rm -rf conftest.one conftest.two conftest.dir
2464 echo one > conftest.one
2465 echo two > conftest.two
2466 mkdir conftest.dir
2467 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2468 test -s conftest.one && test -s conftest.two &&
2469 test -s conftest.dir/conftest.one &&
2470 test -s conftest.dir/conftest.two
2471 then
2472 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2473 break 3
2477 done
2478 done
2480 esac
2482 done
2483 IFS=$as_save_IFS
2485 rm -rf conftest.one conftest.two conftest.dir
2488 if test "${ac_cv_path_install+set}" = set; then
2489 INSTALL=$ac_cv_path_install
2490 else
2491 # As a last resort, use the slow shell script. Don't cache a
2492 # value for INSTALL within a source directory, because that will
2493 # break other packages using the cache if that directory is
2494 # removed, or if the value is a relative name.
2495 INSTALL=$ac_install_sh
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2499 $as_echo "$INSTALL" >&6; }
2501 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2502 # It thinks the first close brace ends the variable substitution.
2503 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2507 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2510 $as_echo_n "checking whether ln works... " >&6; }
2511 if test "${acx_cv_prog_LN+set}" = set; then :
2512 $as_echo_n "(cached) " >&6
2513 else
2514 rm -f conftestdata_t
2515 echo >conftestdata_f
2516 if ln conftestdata_f conftestdata_t 2>/dev/null
2517 then
2518 acx_cv_prog_LN=ln
2519 else
2520 acx_cv_prog_LN=no
2522 rm -f conftestdata_f conftestdata_t
2525 if test $acx_cv_prog_LN = no; then
2526 LN="cp"
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2528 $as_echo "no, using $LN" >&6; }
2529 else
2530 LN="$acx_cv_prog_LN"
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2532 $as_echo "yes" >&6; }
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2536 $as_echo_n "checking whether ln -s works... " >&6; }
2537 LN_S=$as_ln_s
2538 if test "$LN_S" = "ln -s"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2540 $as_echo "yes" >&6; }
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2543 $as_echo "no, using $LN_S" >&6; }
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2547 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2548 if test "${ac_cv_path_SED+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2552 for ac_i in 1 2 3 4 5 6 7; do
2553 ac_script="$ac_script$as_nl$ac_script"
2554 done
2555 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2556 { ac_script=; unset ac_script;}
2557 if test -z "$SED"; then
2558 ac_path_SED_found=false
2559 # Loop through the user's path and test for each of PROGNAME-LIST
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_prog in sed gsed; do
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2568 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2569 # Check for GNU ac_path_SED and select it if it is found.
2570 # Check for GNU $ac_path_SED
2571 case `"$ac_path_SED" --version 2>&1` in
2572 *GNU*)
2573 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2575 ac_count=0
2576 $as_echo_n 0123456789 >"conftest.in"
2577 while :
2579 cat "conftest.in" "conftest.in" >"conftest.tmp"
2580 mv "conftest.tmp" "conftest.in"
2581 cp "conftest.in" "conftest.nl"
2582 $as_echo '' >> "conftest.nl"
2583 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2585 as_fn_arith $ac_count + 1 && ac_count=$as_val
2586 if test $ac_count -gt ${ac_path_SED_max-0}; then
2587 # Best one so far, save it but keep looking for a better one
2588 ac_cv_path_SED="$ac_path_SED"
2589 ac_path_SED_max=$ac_count
2591 # 10*(2^10) chars as input seems more than enough
2592 test $ac_count -gt 10 && break
2593 done
2594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2595 esac
2597 $ac_path_SED_found && break 3
2598 done
2599 done
2600 done
2601 IFS=$as_save_IFS
2602 if test -z "$ac_cv_path_SED"; then
2603 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2605 else
2606 ac_cv_path_SED=$SED
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2611 $as_echo "$ac_cv_path_SED" >&6; }
2612 SED="$ac_cv_path_SED"
2613 rm -f conftest.sed
2615 for ac_prog in gawk mawk nawk awk
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if test "${ac_cv_prog_AWK+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 if test -n "$AWK"; then
2625 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_AWK="$ac_prog"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2638 done
2639 done
2640 IFS=$as_save_IFS
2644 AWK=$ac_cv_prog_AWK
2645 if test -n "$AWK"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2647 $as_echo "$AWK" >&6; }
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2654 test -n "$AWK" && break
2655 done
2658 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2660 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2661 # a relative path.
2662 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2663 INSTALL="${srcpwd}/install-sh -c"
2666 # Set srcdir to "." if that's what it is.
2667 # This is important for multilib support.
2668 pwd=`${PWDCMD-pwd}`
2669 if test "${pwd}" = "${srcpwd}" ; then
2670 srcdir=.
2673 topsrcdir=$srcpwd
2675 extra_host_args=
2677 ### To add a new directory to the tree, first choose whether it is a target
2678 ### or a host dependent tool. Then put it into the appropriate list
2679 ### (library or tools, host or target), doing a dependency sort.
2681 # Subdirs will be configured in the order listed in build_configdirs,
2682 # configdirs, or target_configdirs; see the serialization section below.
2684 # Dependency sorting is only needed when *configuration* must be done in
2685 # a particular order. In all cases a dependency should be specified in
2686 # the Makefile, whether or not it's implicitly specified here.
2688 # Double entries in build_configdirs, configdirs, or target_configdirs may
2689 # cause circular dependencies and break everything horribly.
2691 # these library is used by various programs built for the build
2692 # environment
2694 build_libs="build-libiberty"
2696 # these tools are built for the build environment
2697 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2699 # these libraries are used by various programs built for the host environment
2701 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2703 # these tools are built for the host environment
2704 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2705 # know that we are building the simulator.
2706 # binutils, gas and ld appear in that order because it makes sense to run
2707 # "make check" in that particular order.
2708 # If --enable-gold is used, "gold" may replace "ld".
2709 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2711 # libgcj represents the runtime libraries only used by gcj.
2712 libgcj="target-libffi \
2713 target-zlib \
2714 target-libjava"
2716 # these libraries are built for the target environment, and are built after
2717 # the host libraries and the host tools (which may be a cross compiler)
2718 # Note that libiberty is not a target library.
2719 target_libraries="target-libgcc \
2720 target-libbacktrace \
2721 target-libgloss \
2722 target-newlib \
2723 target-libgomp \
2724 target-libatomic \
2725 target-libitm \
2726 target-libstdc++-v3 \
2727 target-libmudflap \
2728 target-libssp \
2729 target-libquadmath \
2730 target-libgfortran \
2731 target-boehm-gc \
2732 ${libgcj} \
2733 target-libobjc \
2734 target-libada \
2735 target-libgo"
2737 # these tools are built using the target libraries, and are intended to
2738 # run only in the target environment
2740 # note: any program that *uses* libraries that are in the "target_libraries"
2741 # list belongs in this list.
2743 target_tools="target-rda"
2745 ################################################################################
2747 ## All tools belong in one of the four categories, and are assigned above
2748 ## We assign ${configdirs} this way to remove all embedded newlines. This
2749 ## is important because configure will choke if they ever get through.
2750 ## ${configdirs} is directories we build using the host tools.
2751 ## ${target_configdirs} is directories we build using the target tools.
2752 configdirs=`echo ${host_libs} ${host_tools}`
2753 target_configdirs=`echo ${target_libraries} ${target_tools}`
2754 build_configdirs=`echo ${build_libs} ${build_tools}`
2758 ################################################################################
2760 srcname="gnu development package"
2762 # This gets set non-empty for some net releases of packages.
2763 appdirs=""
2765 # Define is_cross_compiler to save on calls to 'test'.
2766 is_cross_compiler=
2767 if test x"${host}" = x"${target}" ; then
2768 is_cross_compiler=no
2769 else
2770 is_cross_compiler=yes
2773 # Find the build and target subdir names.
2775 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2776 # have matching libraries, they should use host libraries: Makefile.tpl
2777 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2778 # However, they still use the build modules, because the corresponding
2779 # host modules (e.g. bison) are only built for the host when bootstrap
2780 # finishes. So:
2781 # - build_subdir is where we find build modules, and never changes.
2782 # - build_libsubdir is where we find build libraries, and can be overridden.
2784 # Prefix 'build-' so this never conflicts with target_subdir.
2785 build_subdir="build-${build_noncanonical}"
2787 # Check whether --with-build-libsubdir was given.
2788 if test "${with_build_libsubdir+set}" = set; then :
2789 withval=$with_build_libsubdir; build_libsubdir="$withval"
2790 else
2791 build_libsubdir="$build_subdir"
2794 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2795 if ( test $srcdir = . && test -d gcc ) \
2796 || test -d $srcdir/../host-${host_noncanonical}; then
2797 host_subdir="host-${host_noncanonical}"
2798 else
2799 host_subdir=.
2801 # No prefix.
2802 target_subdir=${target_noncanonical}
2804 # Be sure to cover against remnants of an in-tree build.
2805 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2806 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2807 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2810 # Skipdirs are removed silently.
2811 skipdirs=
2812 # Noconfigdirs are removed loudly.
2813 noconfigdirs=""
2815 use_gnu_ld=
2816 # Make sure we don't let GNU ld be added if we didn't want it.
2817 if test x$with_gnu_ld = xno ; then
2818 use_gnu_ld=no
2819 noconfigdirs="$noconfigdirs ld gold"
2822 use_gnu_as=
2823 # Make sure we don't let GNU as be added if we didn't want it.
2824 if test x$with_gnu_as = xno ; then
2825 use_gnu_as=no
2826 noconfigdirs="$noconfigdirs gas"
2829 use_included_zlib=
2830 # Make sure we don't let ZLIB be added if we didn't want it.
2831 if test x$with_system_zlib = xyes ; then
2832 use_included_zlib=no
2833 noconfigdirs="$noconfigdirs zlib"
2836 # some tools are so dependent upon X11 that if we're not building with X,
2837 # it's not even worth trying to configure, much less build, that tool.
2839 case ${with_x} in
2840 yes | "") ;; # the default value for this tree is that X11 is available
2842 skipdirs="${skipdirs} tk itcl libgui"
2843 # We won't be able to build gdbtk without X.
2844 enable_gdbtk=no
2846 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2847 esac
2849 # Some are only suitable for cross toolchains.
2850 # Remove these if host=target.
2851 cross_only="target-libgloss target-newlib target-opcodes"
2853 case $is_cross_compiler in
2854 no) skipdirs="${skipdirs} ${cross_only}" ;;
2855 esac
2857 # If both --with-headers and --with-libs are specified, default to
2858 # --without-newlib.
2859 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2860 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2861 if test x"${with_newlib}" = x ; then
2862 with_newlib=no
2866 # Recognize --with-newlib/--without-newlib.
2867 case ${with_newlib} in
2868 no) skipdirs="${skipdirs} target-newlib" ;;
2869 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2870 esac
2872 # Handle --enable-gold, --enable-ld.
2873 # --disable-gold [--enable-ld]
2874 # Build only ld. Default option.
2875 # --enable-gold [--enable-ld]
2876 # Build both gold and ld. Install gold as "ld.gold", install ld
2877 # as "ld.bfd" and "ld".
2878 # --enable-gold=default [--enable-ld]
2879 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2880 # install ld as "ld.bfd".
2881 # --enable-gold[=default] --disable-ld
2882 # Build only gold, which is then installed as both "ld.gold" and "ld".
2883 # --enable-gold --enable-ld=default
2884 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2885 # and ld.bfd).
2886 # In other words, ld is default
2887 # --enable-gold=default --enable-ld=default
2888 # Error.
2890 default_ld=
2891 # Check whether --enable-gold was given.
2892 if test "${enable_gold+set}" = set; then :
2893 enableval=$enable_gold; ENABLE_GOLD=$enableval
2894 else
2895 ENABLE_GOLD=no
2898 case "${ENABLE_GOLD}" in
2899 yes|default)
2900 # Check for ELF target.
2901 is_elf=no
2902 case "${target}" in
2903 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2904 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2905 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2906 | *-*-solaris2* | *-*-nto*)
2907 case "${target}" in
2908 *-*-linux*aout* | *-*-linux*oldld*)
2911 is_elf=yes
2913 esac
2914 esac
2916 if test "$is_elf" = "yes"; then
2917 # Check for target supported by gold.
2918 case "${target}" in
2919 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2920 configdirs="$configdirs gold"
2921 if test x${ENABLE_GOLD} = xdefault; then
2922 default_ld=gold
2924 ENABLE_GOLD=yes
2926 esac
2932 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2934 esac
2936 # Check whether --enable-ld was given.
2937 if test "${enable_ld+set}" = set; then :
2938 enableval=$enable_ld; ENABLE_LD=$enableval
2939 else
2940 ENABLE_LD=yes
2944 case "${ENABLE_LD}" in
2945 default)
2946 if test x${default_ld} != x; then
2947 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2950 yes)
2953 if test x${ENABLE_GOLD} != xyes; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2955 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2957 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2960 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2962 esac
2964 # Configure extra directories which are host specific
2966 case "${host}" in
2967 *-cygwin*)
2968 configdirs="$configdirs libtermcap" ;;
2969 esac
2971 # A target can indicate whether a language isn't supported for some reason.
2972 # Only spaces may be used in this macro; not newlines or tabs.
2973 unsupported_languages=
2975 # Remove more programs from consideration, based on the host or
2976 # target this usually means that a port of the program doesn't
2977 # exist yet.
2979 case "${host}" in
2980 i[3456789]86-*-msdosdjgpp*)
2981 noconfigdirs="$noconfigdirs tcl tk itcl"
2983 esac
2986 # Check whether --enable-libquadmath was given.
2987 if test "${enable_libquadmath+set}" = set; then :
2988 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2989 else
2990 ENABLE_LIBQUADMATH=yes
2993 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2994 noconfigdirs="$noconfigdirs target-libquadmath"
2998 # Check whether --enable-libquadmath-support was given.
2999 if test "${enable_libquadmath_support+set}" = set; then :
3000 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3001 else
3002 ENABLE_LIBQUADMATH_SUPPORT=yes
3005 enable_libquadmath_support=
3006 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3007 enable_libquadmath_support=no
3011 # Check whether --enable-libada was given.
3012 if test "${enable_libada+set}" = set; then :
3013 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3014 else
3015 ENABLE_LIBADA=yes
3018 if test "${ENABLE_LIBADA}" != "yes" ; then
3019 noconfigdirs="$noconfigdirs gnattools"
3022 # Check whether --enable-libssp was given.
3023 if test "${enable_libssp+set}" = set; then :
3024 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3025 else
3026 ENABLE_LIBSSP=yes
3030 # Save it here so that, even in case of --enable-libgcj, if the Java
3031 # front-end isn't enabled, we still get libgcj disabled.
3032 libgcj_saved=$libgcj
3033 case $enable_libgcj in
3034 yes)
3035 # If we reset it here, it won't get added to noconfigdirs in the
3036 # target-specific build rules, so it will be forcibly enabled
3037 # (unless the Java language itself isn't enabled).
3038 libgcj=
3041 # Make sure we get it printed in the list of not supported target libs.
3042 # Don't disable libffi, though, other languages use it.
3043 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3044 # Clear libgcj_saved so that even if java is enabled libffi won't be
3045 # built.
3046 libgcj_saved=
3048 esac
3050 # Check whether --enable-static-libjava was given.
3051 if test "${enable_static_libjava+set}" = set; then :
3052 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3053 else
3054 ENABLE_STATIC_LIBJAVA=no
3057 enable_static_libjava=
3058 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3059 enable_static_libjava=yes
3062 if test x$enable_static_libjava != xyes ; then
3063 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3067 # Disable libmudflap on some systems.
3068 if test x$enable_libmudflap = x ; then
3069 case "${target}" in
3070 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3071 # Enable libmudflap by default in GNU and friends.
3073 *-*-freebsd*)
3074 # Enable libmudflap by default in FreeBSD.
3077 # Disable it by default everywhere else.
3078 noconfigdirs="$noconfigdirs target-libmudflap"
3080 esac
3083 # Disable libgomp on non POSIX hosted systems.
3084 if test x$enable_libgomp = x ; then
3085 # Enable libgomp by default on hosted POSIX systems.
3086 case "${target}" in
3087 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3089 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3091 *-*-solaris2* | *-*-hpux11*)
3093 *-*-darwin* | *-*-aix*)
3096 noconfigdirs="$noconfigdirs target-libgomp"
3098 esac
3101 # Disable libatomic on unsupported systems.
3102 if test -d ${srcdir}/libatomic; then
3103 if test x$enable_libatomic = x; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3105 $as_echo_n "checking for libatomic support... " >&6; }
3106 if (srcdir=${srcdir}/libatomic; \
3107 . ${srcdir}/configure.tgt; \
3108 test -n "$UNSUPPORTED")
3109 then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 noconfigdirs="$noconfigdirs target-libatomic"
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115 $as_echo "yes" >&6; }
3120 # Disable libitm on unsupported systems.
3121 if test -d ${srcdir}/libitm; then
3122 if test x$enable_libitm = x; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3124 $as_echo_n "checking for libitm support... " >&6; }
3125 if (srcdir=${srcdir}/libitm; \
3126 . ${srcdir}/configure.tgt; \
3127 test -n "$UNSUPPORTED")
3128 then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 noconfigdirs="$noconfigdirs target-libitm"
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3139 # Disable libssp for some systems.
3140 case "${target}" in
3141 avr-*-*)
3142 # No hosted I/O support.
3143 noconfigdirs="$noconfigdirs target-libssp"
3145 powerpc-*-aix* | rs6000-*-aix*)
3146 noconfigdirs="$noconfigdirs target-libssp"
3148 rl78-*-*)
3149 # libssp uses a misaligned load to trigger a fault, but the RL78
3150 # doesn't fault for those - instead, it gives a build-time error
3151 # for explicit misaligned loads.
3152 noconfigdirs="$noconfigdirs target-libssp"
3154 esac
3156 # Disable libquadmath for some systems.
3157 case "${target}" in
3158 avr-*-*)
3159 noconfigdirs="$noconfigdirs target-libquadmath"
3161 esac
3163 # Disable libstdc++-v3 for some systems.
3164 case "${target}" in
3165 *-*-vxworks*)
3166 # VxWorks uses the Dinkumware C++ library.
3167 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3169 arm*-wince-pe*)
3170 # the C++ libraries don't build on top of CE's C libraries
3171 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3173 avr-*-*)
3174 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3176 esac
3178 # Disable Fortran for some systems.
3179 case "${target}" in
3180 mmix-*-*)
3181 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3182 unsupported_languages="$unsupported_languages fortran"
3184 esac
3186 # Disable Java if libffi is not supported.
3187 case "${target}" in
3188 alpha*-*-*)
3190 arm*-*-*)
3192 cris-*-*)
3194 frv-*-*)
3196 hppa*-*-linux*)
3198 hppa*-*-hpux*)
3200 i?86-*-*)
3202 ia64*-*-*)
3204 m32r*-*-*)
3206 m68k-*-*)
3208 mips*-*-rtems*)
3210 mips*-*-linux*)
3212 powerpc*-*-linux*)
3214 powerpc-*-darwin*)
3216 powerpc-*-aix* | rs6000-*-aix*)
3218 powerpc-*-freebsd*)
3220 powerpc64-*-freebsd*)
3222 powerpc*-*-rtems*)
3224 s390-*-* | s390x-*-*)
3226 sh-*-* | sh[34]*-*-*)
3228 sh64-*-* | sh5*-*-*)
3230 sparc*-*-*)
3232 x86_64-*-*)
3234 *-*-*)
3235 unsupported_languages="$unsupported_languages java"
3237 esac
3239 # Disable Java, libgcj or related libraries for some systems.
3240 case "${target}" in
3241 powerpc-*-darwin*)
3243 i[3456789]86-*-darwin*)
3245 x86_64-*-darwin[912]*)
3247 *-*-darwin*)
3248 noconfigdirs="$noconfigdirs ${libgcj}"
3250 *-*-netware*)
3251 noconfigdirs="$noconfigdirs ${libgcj}"
3253 *-*-rtems*)
3254 noconfigdirs="$noconfigdirs ${libgcj}"
3256 *-*-tpf*)
3257 noconfigdirs="$noconfigdirs ${libgcj}"
3259 *-*-uclinux*)
3260 noconfigdirs="$noconfigdirs ${libgcj}"
3262 *-*-vxworks*)
3263 noconfigdirs="$noconfigdirs ${libgcj}"
3265 alpha*-*-*vms*)
3266 noconfigdirs="$noconfigdirs ${libgcj}"
3268 arm-wince-pe)
3269 noconfigdirs="$noconfigdirs ${libgcj}"
3271 arm*-*-symbianelf*)
3272 noconfigdirs="$noconfigdirs ${libgcj}"
3274 bfin-*-*)
3275 noconfigdirs="$noconfigdirs target-boehm-gc"
3277 cris-*-* | crisv32-*-*)
3278 unsupported_languages="$unsupported_languages java"
3279 case "${target}" in
3280 *-*-linux*)
3282 *) # See PR46792 regarding target-libffi.
3283 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3284 esac
3286 hppa*64*-*-linux*)
3287 # In this case, it's because the hppa64-linux target is for
3288 # the kernel only at this point and has no libc, and thus no
3289 # headers, crt*.o, etc., all of which are needed by these.
3290 unsupported_languages="$unsupported_languages java"
3292 hppa*64*-*-hpux*)
3293 noconfigdirs="$noconfigdirs ${libgcj}"
3295 hppa*-hp-hpux11*)
3297 hppa*-*-hpux*)
3298 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3299 # build on HP-UX 10.20.
3300 noconfigdirs="$noconfigdirs ${libgcj}"
3302 ia64*-*-*vms*)
3303 noconfigdirs="$noconfigdirs ${libgcj}"
3305 i[3456789]86-w64-mingw*)
3306 noconfigdirs="$noconfigdirs ${libgcj}"
3308 i[3456789]86-*-mingw*)
3309 noconfigdirs="$noconfigdirs ${libgcj}"
3311 x86_64-*-mingw*)
3312 noconfigdirs="$noconfigdirs ${libgcj}"
3314 mmix-*-*)
3315 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3317 powerpc-*-aix*)
3318 # copied from rs6000-*-* entry
3319 noconfigdirs="$noconfigdirs ${libgcj}"
3321 rs6000-*-aix*)
3322 noconfigdirs="$noconfigdirs ${libgcj}"
3324 *-*-lynxos*)
3325 noconfigdirs="$noconfigdirs ${libgcj}"
3327 esac
3329 # Default libgloss CPU subdirectory.
3330 libgloss_dir="$target_cpu"
3332 case "${target}" in
3333 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3334 libgloss_dir=wince
3336 arm*-*-*)
3337 libgloss_dir=arm
3339 cris-*-* | crisv32-*-*)
3340 libgloss_dir=cris
3342 hppa*-*-*)
3343 libgloss_dir=pa
3345 i[3456789]86-*-*)
3346 libgloss_dir=i386
3348 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3349 libgloss_dir=m68hc11
3351 m68*-*-* | fido-*-*)
3352 libgloss_dir=m68k
3354 mips*-*-*)
3355 libgloss_dir=mips
3357 powerpc*-*-*)
3358 libgloss_dir=rs6000
3360 sparc*-*-*)
3361 libgloss_dir=sparc
3363 esac
3365 # Disable newlib and libgloss for various target OSes.
3366 case "${target}" in
3367 alpha*-dec-osf*)
3368 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3370 i[3456789]86-*-linux*)
3371 # This section makes it possible to build newlib natively on linux.
3372 # If we are using a cross compiler then don't configure newlib.
3373 if test x${is_cross_compiler} != xno ; then
3374 noconfigdirs="$noconfigdirs target-newlib"
3376 noconfigdirs="$noconfigdirs target-libgloss"
3377 # If we are not using a cross compiler, do configure newlib.
3378 # Note however, that newlib will only be configured in this situation
3379 # if the --with-newlib option has been given, because otherwise
3380 # 'target-newlib' will appear in skipdirs.
3382 i[3456789]86-*-rdos*)
3383 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3385 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3386 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3388 sparc-*-sunos4*)
3389 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3391 *-*-aix*)
3392 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3394 *-*-beos*)
3395 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3397 *-*-chorusos)
3398 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3400 *-*-dragonfly*)
3401 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3403 *-*-freebsd*)
3404 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3406 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3407 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3409 *-*-lynxos*)
3410 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3412 *-*-mingw*)
3413 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3415 *-*-netbsd*)
3416 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3418 *-*-netware*)
3419 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3421 *-*-tpf*)
3422 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3424 *-*-uclinux*)
3425 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3427 *-*-vxworks*)
3428 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3430 esac
3432 case "${target}" in
3433 *-*-chorusos)
3435 powerpc-*-darwin*)
3436 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3437 noconfigdirs="$noconfigdirs sim target-rda"
3439 i[3456789]86-*-darwin*)
3440 noconfigdirs="$noconfigdirs ld gprof"
3441 noconfigdirs="$noconfigdirs sim target-rda"
3443 x86_64-*-darwin[912]*)
3444 noconfigdirs="$noconfigdirs ld gas gprof"
3445 noconfigdirs="$noconfigdirs sim target-rda"
3447 *-*-darwin*)
3448 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3449 noconfigdirs="$noconfigdirs sim target-rda"
3451 *-*-dragonfly*)
3453 *-*-freebsd*)
3454 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3455 && test -f /usr/local/include/gmp.h; then
3456 with_gmp=/usr/local
3459 *-*-kaos*)
3460 # Remove unsupported stuff on all kaOS configurations.
3461 noconfigdirs="$noconfigdirs target-libgloss"
3463 *-*-netbsd*)
3465 *-*-netware*)
3467 *-*-rtems*)
3468 noconfigdirs="$noconfigdirs target-libgloss"
3470 # The tpf target doesn't support gdb yet.
3471 *-*-tpf*)
3472 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3474 *-*-uclinux*)
3475 noconfigdirs="$noconfigdirs target-rda"
3477 *-*-vxworks*)
3479 alpha*-dec-osf*)
3480 # ld works, but does not support shared libraries.
3481 # gas doesn't generate exception information.
3482 noconfigdirs="$noconfigdirs gas ld"
3484 alpha*-*-*vms*)
3485 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3487 alpha*-*-*)
3488 # newlib is not 64 bit ready
3489 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3491 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3492 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3494 arc-*-*)
3495 noconfigdirs="$noconfigdirs target-libgloss"
3497 arm-*-pe*)
3498 noconfigdirs="$noconfigdirs target-libgloss"
3500 arm-*-riscix*)
3501 noconfigdirs="$noconfigdirs ld target-libgloss"
3503 avr-*-rtems*)
3505 avr-*-*)
3506 if test x${with_avrlibc} != xno; then
3507 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3510 c4x-*-* | tic4x-*-*)
3511 noconfigdirs="$noconfigdirs target-libgloss"
3513 tic54x-*-*)
3514 noconfigdirs="$noconfigdirs target-libgloss gdb"
3516 d10v-*-*)
3517 noconfigdirs="$noconfigdirs target-libgloss"
3519 d30v-*-*)
3520 noconfigdirs="$noconfigdirs gdb"
3522 fr30-*-elf*)
3523 noconfigdirs="$noconfigdirs gdb"
3525 moxie-*-*)
3526 noconfigdirs="$noconfigdirs gprof"
3528 h8300*-*-*)
3529 noconfigdirs="$noconfigdirs target-libgloss"
3531 h8500-*-*)
3532 noconfigdirs="$noconfigdirs target-libgloss"
3534 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3536 hppa*64*-*-linux*)
3538 hppa*-*-linux*)
3540 hppa*-*-*elf* | \
3541 hppa*-*-lites* | \
3542 hppa*-*-openbsd* | \
3543 hppa*64*-*-*)
3545 hppa*-hp-hpux11*)
3546 noconfigdirs="$noconfigdirs ld"
3548 hppa*-*-pro*)
3550 hppa*-*-*)
3551 noconfigdirs="$noconfigdirs ld"
3553 i960-*-*)
3554 noconfigdirs="$noconfigdirs gdb"
3556 ia64*-*-elf*)
3557 # No gdb support yet.
3558 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3560 ia64*-**-hpux*)
3561 # No ld support yet.
3562 noconfigdirs="$noconfigdirs libgui itcl ld"
3564 ia64*-*-*vms*)
3565 # No ld support yet.
3566 noconfigdirs="$noconfigdirs libgui itcl ld"
3568 i[3456789]86-w64-mingw*)
3570 i[3456789]86-*-mingw*)
3571 target_configdirs="$target_configdirs target-winsup"
3573 *-*-cygwin*)
3574 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3575 noconfigdirs="$noconfigdirs target-libgloss"
3576 # always build newlib if winsup directory is present.
3577 if test -d "$srcdir/winsup/cygwin"; then
3578 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3579 elif test -d "$srcdir/newlib"; then
3580 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3583 i[3456789]86-*-pe)
3584 noconfigdirs="$noconfigdirs target-libgloss"
3586 i[3456789]86-*-sco3.2v5*)
3587 # The linker does not yet know about weak symbols in COFF,
3588 # and is not configured to handle mixed ELF and COFF.
3589 noconfigdirs="$noconfigdirs ld target-libgloss"
3591 i[3456789]86-*-sco*)
3592 noconfigdirs="$noconfigdirs gprof target-libgloss"
3594 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3595 noconfigdirs="$noconfigdirs target-libgloss"
3597 i[3456789]86-*-sysv4*)
3598 noconfigdirs="$noconfigdirs target-libgloss"
3600 i[3456789]86-*-beos*)
3601 noconfigdirs="$noconfigdirs gdb"
3603 i[3456789]86-*-rdos*)
3604 noconfigdirs="$noconfigdirs gdb"
3606 mmix-*-*)
3607 noconfigdirs="$noconfigdirs gdb"
3609 mt-*-*)
3610 noconfigdirs="$noconfigdirs sim"
3612 powerpc-*-aix*)
3613 # copied from rs6000-*-* entry
3614 noconfigdirs="$noconfigdirs gprof"
3616 powerpc*-*-winnt* | powerpc*-*-pe*)
3617 target_configdirs="$target_configdirs target-winsup"
3618 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3619 # always build newlib.
3620 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3622 # This is temporary until we can link against shared libraries
3623 powerpcle-*-solaris*)
3624 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3626 powerpc-*-beos*)
3627 noconfigdirs="$noconfigdirs gdb"
3629 rs6000-*-lynxos*)
3630 noconfigdirs="$noconfigdirs gprof"
3632 rs6000-*-aix*)
3633 noconfigdirs="$noconfigdirs gprof"
3635 rs6000-*-*)
3636 noconfigdirs="$noconfigdirs gprof"
3638 m68k-apollo-*)
3639 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3641 microblaze*)
3642 noconfigdirs="$noconfigdirs gprof"
3644 mips*-sde-elf*)
3645 if test x$with_newlib = xyes; then
3646 noconfigdirs="$noconfigdirs gprof"
3649 mips*-*-irix5*)
3650 noconfigdirs="$noconfigdirs gprof target-libgloss"
3652 mips*-*-irix6*)
3653 noconfigdirs="$noconfigdirs gprof target-libgloss"
3655 mips*-*-bsd*)
3656 noconfigdirs="$noconfigdirs gprof target-libgloss"
3658 mips*-*-linux*)
3660 mips*-*-*)
3661 noconfigdirs="$noconfigdirs gprof"
3663 sh-*-* | sh64-*-*)
3664 case "${target}" in
3665 sh*-*-elf)
3668 noconfigdirs="$noconfigdirs target-libgloss" ;;
3669 esac
3671 sparc-*-sunos4*)
3672 if test x${is_cross_compiler} = xno ; then
3673 use_gnu_ld=no
3676 tic6x-*-*)
3677 noconfigdirs="$noconfigdirs sim"
3679 tilepro-*-* | tilegx-*-*)
3680 noconfigdirs="$noconfigdirs sim"
3682 v810-*-*)
3683 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3685 vax-*-*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688 esac
3690 # If we aren't building newlib, then don't build libgloss, since libgloss
3691 # depends upon some newlib header files.
3692 case "${noconfigdirs}" in
3693 *target-libgloss*) ;;
3694 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3695 esac
3697 # Work in distributions that contain no compiler tools, like Autoconf.
3698 host_makefile_frag=/dev/null
3699 if test -d ${srcdir}/config ; then
3700 case "${host}" in
3701 i[3456789]86-*-msdosdjgpp*)
3702 host_makefile_frag="config/mh-djgpp"
3704 *-cygwin*)
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3707 $as_echo_n "checking to see if cat works as expected... " >&6; }
3708 echo a >cygwin-cat-check
3709 if test `cat cygwin-cat-check` = a ; then
3710 rm cygwin-cat-check
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712 $as_echo "yes" >&6; }
3713 else
3714 rm cygwin-cat-check
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3717 as_fn_error "The cat command does not ignore carriage return characters.
3718 Please either mount the build directory in binary mode or run the following
3719 commands before running any configure script:
3720 set -o igncr
3721 export SHELLOPTS
3722 " "$LINENO" 5
3725 host_makefile_frag="config/mh-cygwin"
3727 *-mingw*)
3728 host_makefile_frag="config/mh-mingw"
3730 hppa*-hp-hpux10*)
3731 host_makefile_frag="config/mh-pa-hpux10"
3733 hppa*-hp-hpux*)
3734 host_makefile_frag="config/mh-pa"
3736 hppa*-*)
3737 host_makefile_frag="config/mh-pa"
3739 *-*-darwin*)
3740 host_makefile_frag="config/mh-darwin"
3742 powerpc-*-aix*)
3743 host_makefile_frag="config/mh-ppc-aix"
3745 rs6000-*-aix*)
3746 host_makefile_frag="config/mh-ppc-aix"
3748 esac
3751 if test "${build}" != "${host}" ; then
3752 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3753 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3754 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3755 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3756 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3757 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3758 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3759 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3760 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3761 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3762 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3763 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3764 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3765 else
3766 AR_FOR_BUILD="\$(AR)"
3767 AS_FOR_BUILD="\$(AS)"
3768 CC_FOR_BUILD="\$(CC)"
3769 CXX_FOR_BUILD="\$(CXX)"
3770 GCJ_FOR_BUILD="\$(GCJ)"
3771 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3772 GOC_FOR_BUILD="\$(GOC)"
3773 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3774 LD_FOR_BUILD="\$(LD)"
3775 NM_FOR_BUILD="\$(NM)"
3776 RANLIB_FOR_BUILD="\$(RANLIB)"
3777 WINDRES_FOR_BUILD="\$(WINDRES)"
3778 WINDMC_FOR_BUILD="\$(WINDMC)"
3781 ac_ext=c
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786 if test -n "$ac_tool_prefix"; then
3787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3788 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$CC"; then
3795 ac_cv_prog_CC="$CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3810 IFS=$as_save_IFS
3814 CC=$ac_cv_prog_CC
3815 if test -n "$CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3817 $as_echo "$CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3825 if test -z "$ac_cv_prog_CC"; then
3826 ac_ct_CC=$CC
3827 # Extract the first word of "gcc", so it can be a program name with args.
3828 set dummy gcc; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 if test -n "$ac_ct_CC"; then
3835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3844 ac_cv_prog_ac_ct_CC="gcc"
3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 break 2
3848 done
3849 done
3850 IFS=$as_save_IFS
3854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3855 if test -n "$ac_ct_CC"; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3857 $as_echo "$ac_ct_CC" >&6; }
3858 else
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3863 if test "x$ac_ct_CC" = x; then
3864 CC=""
3865 else
3866 case $cross_compiling:$ac_tool_warned in
3867 yes:)
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3870 ac_tool_warned=yes ;;
3871 esac
3872 CC=$ac_ct_CC
3874 else
3875 CC="$ac_cv_prog_CC"
3878 if test -z "$CC"; then
3879 if test -n "$ac_tool_prefix"; then
3880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3881 set dummy ${ac_tool_prefix}cc; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 if test -n "$CC"; then
3888 ac_cv_prog_CC="$CC" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897 ac_cv_prog_CC="${ac_tool_prefix}cc"
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3901 done
3902 done
3903 IFS=$as_save_IFS
3907 CC=$ac_cv_prog_CC
3908 if test -n "$CC"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3910 $as_echo "$CC" >&6; }
3911 else
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3919 if test -z "$CC"; then
3920 # Extract the first word of "cc", so it can be a program name with args.
3921 set dummy cc; 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 ac_prog_rejected=no
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3939 ac_prog_rejected=yes
3940 continue
3942 ac_cv_prog_CC="cc"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3946 done
3947 done
3948 IFS=$as_save_IFS
3950 if test $ac_prog_rejected = yes; then
3951 # We found a bogon in the path, so make sure we never use it.
3952 set dummy $ac_cv_prog_CC
3953 shift
3954 if test $# != 0; then
3955 # We chose a different compiler from the bogus one.
3956 # However, it has the same basename, so the bogon will be chosen
3957 # first if we set CC to just the basename; use the full file name.
3958 shift
3959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3964 CC=$ac_cv_prog_CC
3965 if test -n "$CC"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3967 $as_echo "$CC" >&6; }
3968 else
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3975 if test -z "$CC"; then
3976 if test -n "$ac_tool_prefix"; then
3977 for ac_prog in cl.exe
3979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if test "${ac_cv_prog_CC+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 if test -n "$CC"; then
3987 ac_cv_prog_CC="$CC" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
4000 done
4001 done
4002 IFS=$as_save_IFS
4006 CC=$ac_cv_prog_CC
4007 if test -n "$CC"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4009 $as_echo "$CC" >&6; }
4010 else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4016 test -n "$CC" && break
4017 done
4019 if test -z "$CC"; then
4020 ac_ct_CC=$CC
4021 for ac_prog in cl.exe
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 if test -n "$ac_ct_CC"; then
4031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4040 ac_cv_prog_ac_ct_CC="$ac_prog"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4044 done
4045 done
4046 IFS=$as_save_IFS
4050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4051 if test -n "$ac_ct_CC"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4053 $as_echo "$ac_ct_CC" >&6; }
4054 else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4060 test -n "$ac_ct_CC" && break
4061 done
4063 if test "x$ac_ct_CC" = x; then
4064 CC=""
4065 else
4066 case $cross_compiling:$ac_tool_warned in
4067 yes:)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4070 ac_tool_warned=yes ;;
4071 esac
4072 CC=$ac_ct_CC
4079 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081 as_fn_error "no acceptable C compiler found in \$PATH
4082 See \`config.log' for more details." "$LINENO" 5; }
4084 # Provide some information about the compiler.
4085 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4086 set X $ac_compile
4087 ac_compiler=$2
4088 for ac_option in --version -v -V -qversion; do
4089 { { ac_try="$ac_compiler $ac_option >&5"
4090 case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093 esac
4094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095 $as_echo "$ac_try_echo"; } >&5
4096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4097 ac_status=$?
4098 if test -s conftest.err; then
4099 sed '10a\
4100 ... rest of stderr output deleted ...
4101 10q' conftest.err >conftest.er1
4102 cat conftest.er1 >&5
4103 rm -f conftest.er1 conftest.err
4105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4106 test $ac_status = 0; }
4107 done
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4113 main ()
4117 return 0;
4119 _ACEOF
4120 ac_clean_files_save=$ac_clean_files
4121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4122 # Try to create an executable without -o first, disregard a.out.
4123 # It will help us diagnose broken compilers, and finding out an intuition
4124 # of exeext.
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4126 $as_echo_n "checking for C compiler default output file name... " >&6; }
4127 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4129 # The possible output files:
4130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4132 ac_rmfiles=
4133 for ac_file in $ac_files
4135 case $ac_file in
4136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4138 esac
4139 done
4140 rm -f $ac_rmfiles
4142 if { { ac_try="$ac_link_default"
4143 case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 $as_echo "$ac_try_echo"; } >&5
4149 (eval "$ac_link_default") 2>&5
4150 ac_status=$?
4151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152 test $ac_status = 0; }; then :
4153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4156 # so that the user can short-circuit this test for compilers unknown to
4157 # Autoconf.
4158 for ac_file in $ac_files ''
4160 test -f "$ac_file" || continue
4161 case $ac_file in
4162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4164 [ab].out )
4165 # We found the default executable, but exeext='' is most
4166 # certainly right.
4167 break;;
4168 *.* )
4169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4170 then :; else
4171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4173 # We set ac_cv_exeext here because the later test for it is not
4174 # safe: cross compilers may not add the suffix if given an `-o'
4175 # argument, so we may need to know it at that point already.
4176 # Even if this section looks crufty: it has the advantage of
4177 # actually working.
4178 break;;
4180 break;;
4181 esac
4182 done
4183 test "$ac_cv_exeext" = no && ac_cv_exeext=
4185 else
4186 ac_file=''
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4189 $as_echo "$ac_file" >&6; }
4190 if test -z "$ac_file"; then :
4191 $as_echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4196 { as_fn_set_status 77
4197 as_fn_error "C compiler cannot create executables
4198 See \`config.log' for more details." "$LINENO" 5; }; }
4200 ac_exeext=$ac_cv_exeext
4202 # Check that the compiler produces executables we can run. If not, either
4203 # the compiler is broken, or we cross compile.
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4205 $as_echo_n "checking whether the C compiler works... " >&6; }
4206 # If not cross compiling, check that we can run a simple program.
4207 if test "$cross_compiling" != yes; then
4208 if { ac_try='./$ac_file'
4209 { { case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 $as_echo "$ac_try_echo"; } >&5
4215 (eval "$ac_try") 2>&5
4216 ac_status=$?
4217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218 test $ac_status = 0; }; }; then
4219 cross_compiling=no
4220 else
4221 if test "$cross_compiling" = maybe; then
4222 cross_compiling=yes
4223 else
4224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error "cannot run C compiled programs.
4227 If you meant to cross compile, use \`--host'.
4228 See \`config.log' for more details." "$LINENO" 5; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4233 $as_echo "yes" >&6; }
4235 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4236 ac_clean_files=$ac_clean_files_save
4237 # Check that the compiler produces executables we can run. If not, either
4238 # the compiler is broken, or we cross compile.
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4240 $as_echo_n "checking whether we are cross compiling... " >&6; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4242 $as_echo "$cross_compiling" >&6; }
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4245 $as_echo_n "checking for suffix of executables... " >&6; }
4246 if { { ac_try="$ac_link"
4247 case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250 esac
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_link") 2>&5
4254 ac_status=$?
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }; then :
4257 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4258 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4259 # work properly (i.e., refer to `conftest.exe'), while it won't with
4260 # `rm'.
4261 for ac_file in conftest.exe conftest conftest.*; do
4262 test -f "$ac_file" || continue
4263 case $ac_file in
4264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4266 break;;
4267 * ) break;;
4268 esac
4269 done
4270 else
4271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273 as_fn_error "cannot compute suffix of executables: cannot compile and link
4274 See \`config.log' for more details." "$LINENO" 5; }
4276 rm -f conftest$ac_cv_exeext
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4278 $as_echo "$ac_cv_exeext" >&6; }
4280 rm -f conftest.$ac_ext
4281 EXEEXT=$ac_cv_exeext
4282 ac_exeext=$EXEEXT
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4284 $as_echo_n "checking for suffix of object files... " >&6; }
4285 if test "${ac_cv_objext+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4292 main ()
4296 return 0;
4298 _ACEOF
4299 rm -f conftest.o conftest.obj
4300 if { { ac_try="$ac_compile"
4301 case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compile") 2>&5
4308 ac_status=$?
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }; then :
4311 for ac_file in conftest.o conftest.obj conftest.*; do
4312 test -f "$ac_file" || continue;
4313 case $ac_file in
4314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4315 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4316 break;;
4317 esac
4318 done
4319 else
4320 $as_echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error "cannot compute suffix of object files: cannot compile
4326 See \`config.log' for more details." "$LINENO" 5; }
4328 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4331 $as_echo "$ac_cv_objext" >&6; }
4332 OBJEXT=$ac_cv_objext
4333 ac_objext=$OBJEXT
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4335 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4336 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4343 main ()
4345 #ifndef __GNUC__
4346 choke me
4347 #endif
4350 return 0;
4352 _ACEOF
4353 if ac_fn_c_try_compile "$LINENO"; then :
4354 ac_compiler_gnu=yes
4355 else
4356 ac_compiler_gnu=no
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4363 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4364 if test $ac_compiler_gnu = yes; then
4365 GCC=yes
4366 else
4367 GCC=
4369 ac_test_CFLAGS=${CFLAGS+set}
4370 ac_save_CFLAGS=$CFLAGS
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4372 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4373 if test "${ac_cv_prog_cc_g+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 ac_save_c_werror_flag=$ac_c_werror_flag
4377 ac_c_werror_flag=yes
4378 ac_cv_prog_cc_g=no
4379 CFLAGS="-g"
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4384 main ()
4388 return 0;
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392 ac_cv_prog_cc_g=yes
4393 else
4394 CFLAGS=""
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4399 main ()
4403 return 0;
4405 _ACEOF
4406 if ac_fn_c_try_compile "$LINENO"; then :
4408 else
4409 ac_c_werror_flag=$ac_save_c_werror_flag
4410 CFLAGS="-g"
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4415 main ()
4419 return 0;
4421 _ACEOF
4422 if ac_fn_c_try_compile "$LINENO"; then :
4423 ac_cv_prog_cc_g=yes
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 ac_c_werror_flag=$ac_save_c_werror_flag
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4433 $as_echo "$ac_cv_prog_cc_g" >&6; }
4434 if test "$ac_test_CFLAGS" = set; then
4435 CFLAGS=$ac_save_CFLAGS
4436 elif test $ac_cv_prog_cc_g = yes; then
4437 if test "$GCC" = yes; then
4438 CFLAGS="-g -O2"
4439 else
4440 CFLAGS="-g"
4442 else
4443 if test "$GCC" = yes; then
4444 CFLAGS="-O2"
4445 else
4446 CFLAGS=
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4450 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4451 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 ac_cv_prog_cc_c89=no
4455 ac_save_CC=$CC
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458 #include <stdarg.h>
4459 #include <stdio.h>
4460 #include <sys/types.h>
4461 #include <sys/stat.h>
4462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4463 struct buf { int x; };
4464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4465 static char *e (p, i)
4466 char **p;
4467 int i;
4469 return p[i];
4471 static char *f (char * (*g) (char **, int), char **p, ...)
4473 char *s;
4474 va_list v;
4475 va_start (v,p);
4476 s = g (p, va_arg (v,int));
4477 va_end (v);
4478 return s;
4481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4482 function prototypes and stuff, but not '\xHH' hex character constants.
4483 These don't provoke an error unfortunately, instead are silently treated
4484 as 'x'. The following induces an error, until -std is added to get
4485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4486 array size at least. It's necessary to write '\x00'==0 to get something
4487 that's true only with -std. */
4488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4491 inside strings and character constants. */
4492 #define FOO(x) 'x'
4493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4495 int test (int i, double x);
4496 struct s1 {int (*f) (int a);};
4497 struct s2 {int (*f) (double a);};
4498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4499 int argc;
4500 char **argv;
4502 main ()
4504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4506 return 0;
4508 _ACEOF
4509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4512 CC="$ac_save_CC $ac_arg"
4513 if ac_fn_c_try_compile "$LINENO"; then :
4514 ac_cv_prog_cc_c89=$ac_arg
4516 rm -f core conftest.err conftest.$ac_objext
4517 test "x$ac_cv_prog_cc_c89" != "xno" && break
4518 done
4519 rm -f conftest.$ac_ext
4520 CC=$ac_save_CC
4523 # AC_CACHE_VAL
4524 case "x$ac_cv_prog_cc_c89" in
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4527 $as_echo "none needed" >&6; } ;;
4528 xno)
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4530 $as_echo "unsupported" >&6; } ;;
4532 CC="$CC $ac_cv_prog_cc_c89"
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4534 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4535 esac
4536 if test "x$ac_cv_prog_cc_c89" != xno; then :
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546 ac_ext=cpp
4547 ac_cpp='$CXXCPP $CPPFLAGS'
4548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4551 if test -z "$CXX"; then
4552 if test -n "$CCC"; then
4553 CXX=$CCC
4554 else
4555 if test -n "$ac_tool_prefix"; then
4556 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if test "${ac_cv_prog_CXX+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 if test -n "$CXX"; then
4566 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4579 done
4580 done
4581 IFS=$as_save_IFS
4585 CXX=$ac_cv_prog_CXX
4586 if test -n "$CXX"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4588 $as_echo "$CXX" >&6; }
4589 else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4595 test -n "$CXX" && break
4596 done
4598 if test -z "$CXX"; then
4599 ac_ct_CXX=$CXX
4600 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4602 # Extract the first word of "$ac_prog", so it can be a program name with args.
4603 set dummy $ac_prog; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$ac_ct_CXX"; then
4610 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_ac_ct_CXX="$ac_prog"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4623 done
4624 done
4625 IFS=$as_save_IFS
4629 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4630 if test -n "$ac_ct_CXX"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4632 $as_echo "$ac_ct_CXX" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4639 test -n "$ac_ct_CXX" && break
4640 done
4642 if test "x$ac_ct_CXX" = x; then
4643 CXX="g++"
4644 else
4645 case $cross_compiling:$ac_tool_warned in
4646 yes:)
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4649 ac_tool_warned=yes ;;
4650 esac
4651 CXX=$ac_ct_CXX
4657 # Provide some information about the compiler.
4658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4659 set X $ac_compile
4660 ac_compiler=$2
4661 for ac_option in --version -v -V -qversion; do
4662 { { ac_try="$ac_compiler $ac_option >&5"
4663 case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666 esac
4667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4668 $as_echo "$ac_try_echo"; } >&5
4669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4670 ac_status=$?
4671 if test -s conftest.err; then
4672 sed '10a\
4673 ... rest of stderr output deleted ...
4674 10q' conftest.err >conftest.er1
4675 cat conftest.er1 >&5
4676 rm -f conftest.er1 conftest.err
4678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4679 test $ac_status = 0; }
4680 done
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4683 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4691 main ()
4693 #ifndef __GNUC__
4694 choke me
4695 #endif
4698 return 0;
4700 _ACEOF
4701 if ac_fn_cxx_try_compile "$LINENO"; then :
4702 ac_compiler_gnu=yes
4703 else
4704 ac_compiler_gnu=no
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4711 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4712 if test $ac_compiler_gnu = yes; then
4713 GXX=yes
4714 else
4715 GXX=
4717 ac_test_CXXFLAGS=${CXXFLAGS+set}
4718 ac_save_CXXFLAGS=$CXXFLAGS
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4720 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4721 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4725 ac_cxx_werror_flag=yes
4726 ac_cv_prog_cxx_g=no
4727 CXXFLAGS="-g"
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4732 main ()
4736 return 0;
4738 _ACEOF
4739 if ac_fn_cxx_try_compile "$LINENO"; then :
4740 ac_cv_prog_cxx_g=yes
4741 else
4742 CXXFLAGS=""
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4747 main ()
4751 return 0;
4753 _ACEOF
4754 if ac_fn_cxx_try_compile "$LINENO"; then :
4756 else
4757 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4758 CXXFLAGS="-g"
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4763 main ()
4767 return 0;
4769 _ACEOF
4770 if ac_fn_cxx_try_compile "$LINENO"; then :
4771 ac_cv_prog_cxx_g=yes
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4781 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4782 if test "$ac_test_CXXFLAGS" = set; then
4783 CXXFLAGS=$ac_save_CXXFLAGS
4784 elif test $ac_cv_prog_cxx_g = yes; then
4785 if test "$GXX" = yes; then
4786 CXXFLAGS="-g -O2"
4787 else
4788 CXXFLAGS="-g"
4790 else
4791 if test "$GXX" = yes; then
4792 CXXFLAGS="-O2"
4793 else
4794 CXXFLAGS=
4797 ac_ext=c
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804 # We must set the default linker to the linker used by gcc for the correct
4805 # operation of libtool. If LD is not defined and we are using gcc, try to
4806 # set the LD default to the ld used by gcc.
4807 if test -z "$LD"; then
4808 if test "$GCC" = yes; then
4809 case $build in
4810 *-*-mingw*)
4811 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4813 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4814 esac
4815 case $gcc_prog_ld in
4816 # Accept absolute paths.
4817 [\\/]* | [A-Za-z]:[\\/]*)
4818 LD="$gcc_prog_ld" ;;
4819 esac
4826 if test -n "$ac_tool_prefix"; then
4827 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4828 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if test -n "$GNATBIND"; then
4835 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4848 done
4849 done
4850 IFS=$as_save_IFS
4854 GNATBIND=$ac_cv_prog_GNATBIND
4855 if test -n "$GNATBIND"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4857 $as_echo "$GNATBIND" >&6; }
4858 else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4865 if test -z "$ac_cv_prog_GNATBIND"; then
4866 ac_ct_GNATBIND=$GNATBIND
4867 # Extract the first word of "gnatbind", so it can be a program name with args.
4868 set dummy gnatbind; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if test -n "$ac_ct_GNATBIND"; then
4875 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4888 done
4889 done
4890 IFS=$as_save_IFS
4894 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4895 if test -n "$ac_ct_GNATBIND"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4897 $as_echo "$ac_ct_GNATBIND" >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4903 if test "x$ac_ct_GNATBIND" = x; then
4904 GNATBIND="no"
4905 else
4906 case $cross_compiling:$ac_tool_warned in
4907 yes:)
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4910 ac_tool_warned=yes ;;
4911 esac
4912 GNATBIND=$ac_ct_GNATBIND
4914 else
4915 GNATBIND="$ac_cv_prog_GNATBIND"
4918 if test -n "$ac_tool_prefix"; then
4919 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4920 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$GNATMAKE"; then
4927 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4940 done
4941 done
4942 IFS=$as_save_IFS
4946 GNATMAKE=$ac_cv_prog_GNATMAKE
4947 if test -n "$GNATMAKE"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4949 $as_echo "$GNATMAKE" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4957 if test -z "$ac_cv_prog_GNATMAKE"; then
4958 ac_ct_GNATMAKE=$GNATMAKE
4959 # Extract the first word of "gnatmake", so it can be a program name with args.
4960 set dummy gnatmake; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -n "$ac_ct_GNATMAKE"; then
4967 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4982 IFS=$as_save_IFS
4986 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4987 if test -n "$ac_ct_GNATMAKE"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4989 $as_echo "$ac_ct_GNATMAKE" >&6; }
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4995 if test "x$ac_ct_GNATMAKE" = x; then
4996 GNATMAKE="no"
4997 else
4998 case $cross_compiling:$ac_tool_warned in
4999 yes:)
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5002 ac_tool_warned=yes ;;
5003 esac
5004 GNATMAKE=$ac_ct_GNATMAKE
5006 else
5007 GNATMAKE="$ac_cv_prog_GNATMAKE"
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5011 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5012 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 cat >conftest.adb <<EOF
5016 procedure conftest is begin null; end conftest;
5018 acx_cv_cc_gcc_supports_ada=no
5019 # There is a bug in old released versions of GCC which causes the
5020 # driver to exit successfully when the appropriate language module
5021 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5022 # Therefore we must check for the error message as well as an
5023 # unsuccessful exit.
5024 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5025 # given a .adb file, but produce no object file. So we must check
5026 # if an object file was really produced to guard against this.
5027 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5028 if test x"$errors" = x && test -f conftest.$ac_objext; then
5029 acx_cv_cc_gcc_supports_ada=yes
5031 rm -f conftest.*
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5034 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5036 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5037 have_gnat=yes
5038 else
5039 have_gnat=no
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5043 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5044 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 echo abfoo >t1
5048 echo cdfoo >t2
5049 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5050 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5051 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5053 else
5054 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5057 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5058 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5060 else
5061 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5064 rm t1 t2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5068 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5069 do_compare="$gcc_cv_prog_cmp_skip"
5073 # Check whether --enable-bootstrap was given.
5074 if test "${enable_bootstrap+set}" = set; then :
5075 enableval=$enable_bootstrap;
5076 else
5077 enable_bootstrap=default
5081 # Issue errors and warnings for invalid/strange bootstrap combinations.
5082 if test -r $srcdir/gcc/configure; then
5083 have_compiler=yes
5084 else
5085 have_compiler=no
5088 case "$have_compiler:$host:$target:$enable_bootstrap" in
5089 *:*:*:no) ;;
5091 # Default behavior. Enable bootstrap if we have a compiler
5092 # and we are in a native configuration.
5093 yes:$build:$build:default)
5094 enable_bootstrap=yes ;;
5096 *:*:*:default)
5097 enable_bootstrap=no ;;
5099 # We have a compiler and we are in a native configuration, bootstrap is ok
5100 yes:$build:$build:yes)
5103 # Other configurations, but we have a compiler. Assume the user knows
5104 # what he's doing.
5105 yes:*:*:yes)
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5107 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5110 # No compiler: if they passed --enable-bootstrap explicitly, fail
5111 no:*:*:yes)
5112 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5114 # Fail if wrong command line
5116 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5118 esac
5120 # Used for setting $lt_cv_objdir
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5122 $as_echo_n "checking for objdir... " >&6; }
5123 if test "${lt_cv_objdir+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 rm -f .libs 2>/dev/null
5127 mkdir .libs 2>/dev/null
5128 if test -d .libs; then
5129 lt_cv_objdir=.libs
5130 else
5131 # MS-DOS does not allow filenames that begin with a dot.
5132 lt_cv_objdir=_libs
5134 rmdir .libs 2>/dev/null
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5137 $as_echo "$lt_cv_objdir" >&6; }
5138 objdir=$lt_cv_objdir
5144 cat >>confdefs.h <<_ACEOF
5145 #define LT_OBJDIR "$lt_cv_objdir/"
5146 _ACEOF
5150 # Check for GMP, MPFR and MPC
5151 gmplibs="-lmpc -lmpfr -lgmp"
5152 gmpinc=
5153 have_gmp=no
5155 # Specify a location for mpc
5156 # check for this first so it ends up on the link line before mpfr.
5158 # Check whether --with-mpc was given.
5159 if test "${with_mpc+set}" = set; then :
5160 withval=$with_mpc;
5164 # Check whether --with-mpc-include was given.
5165 if test "${with_mpc_include+set}" = set; then :
5166 withval=$with_mpc_include;
5170 # Check whether --with-mpc-lib was given.
5171 if test "${with_mpc_lib+set}" = set; then :
5172 withval=$with_mpc_lib;
5176 if test "x$with_mpc" != x; then
5177 gmplibs="-L$with_mpc/lib $gmplibs"
5178 gmpinc="-I$with_mpc/include $gmpinc"
5180 if test "x$with_mpc_include" != x; then
5181 gmpinc="-I$with_mpc_include $gmpinc"
5183 if test "x$with_mpc_lib" != x; then
5184 gmplibs="-L$with_mpc_lib $gmplibs"
5186 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5187 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5188 gmpinc='-I$$s/mpc/src '"$gmpinc"
5189 # Do not test the mpc version. Assume that it is sufficient, since
5190 # it is in the source tree, and the library has not been built yet
5191 # but it would be included on the link line in the version check below
5192 # hence making the test fail.
5193 have_gmp=yes
5196 # Specify a location for mpfr
5197 # check for this first so it ends up on the link line before gmp.
5199 # Check whether --with-mpfr-dir was given.
5200 if test "${with_mpfr_dir+set}" = set; then :
5201 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5202 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5207 # Check whether --with-mpfr was given.
5208 if test "${with_mpfr+set}" = set; then :
5209 withval=$with_mpfr;
5213 # Check whether --with-mpfr-include was given.
5214 if test "${with_mpfr_include+set}" = set; then :
5215 withval=$with_mpfr_include;
5219 # Check whether --with-mpfr-lib was given.
5220 if test "${with_mpfr_lib+set}" = set; then :
5221 withval=$with_mpfr_lib;
5225 if test "x$with_mpfr" != x; then
5226 gmplibs="-L$with_mpfr/lib $gmplibs"
5227 gmpinc="-I$with_mpfr/include $gmpinc"
5229 if test "x$with_mpfr_include" != x; then
5230 gmpinc="-I$with_mpfr_include $gmpinc"
5232 if test "x$with_mpfr_lib" != x; then
5233 gmplibs="-L$with_mpfr_lib $gmplibs"
5235 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5236 # MPFR v3.1.0 moved the sources into a src sub-directory.
5237 if test -d ${srcdir}/mpfr/src; then
5238 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5239 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5240 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5241 else
5242 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5243 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5244 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5246 # Do not test the mpfr version. Assume that it is sufficient, since
5247 # it is in the source tree, and the library has not been built yet
5248 # but it would be included on the link line in the version check below
5249 # hence making the test fail.
5250 have_gmp=yes
5253 # Specify a location for gmp
5255 # Check whether --with-gmp-dir was given.
5256 if test "${with_gmp_dir+set}" = set; then :
5257 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5258 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5263 # Check whether --with-gmp was given.
5264 if test "${with_gmp+set}" = set; then :
5265 withval=$with_gmp;
5269 # Check whether --with-gmp-include was given.
5270 if test "${with_gmp_include+set}" = set; then :
5271 withval=$with_gmp_include;
5275 # Check whether --with-gmp-lib was given.
5276 if test "${with_gmp_lib+set}" = set; then :
5277 withval=$with_gmp_lib;
5282 if test "x$with_gmp" != x; then
5283 gmplibs="-L$with_gmp/lib $gmplibs"
5284 gmpinc="-I$with_gmp/include $gmpinc"
5286 if test "x$with_gmp_include" != x; then
5287 gmpinc="-I$with_gmp_include $gmpinc"
5289 if test "x$with_gmp_lib" != x; then
5290 gmplibs="-L$with_gmp_lib $gmplibs"
5292 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5293 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5294 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5295 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5296 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5297 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5298 # Do not test the gmp version. Assume that it is sufficient, since
5299 # it is in the source tree, and the library has not been built yet
5300 # but it would be included on the link line in the version check below
5301 # hence making the test fail.
5302 have_gmp=yes
5305 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5306 have_gmp=yes
5307 saved_CFLAGS="$CFLAGS"
5308 CFLAGS="$CFLAGS $gmpinc"
5309 # Check for the recommended and required versions of GMP.
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5311 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 #include "gmp.h"
5317 main ()
5320 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5321 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5322 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5323 choke me
5324 #endif
5327 return 0;
5329 _ACEOF
5330 if ac_fn_c_try_compile "$LINENO"; then :
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 #include <gmp.h>
5335 main ()
5338 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5339 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5340 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5341 choke me
5342 #endif
5345 return 0;
5347 _ACEOF
5348 if ac_fn_c_try_compile "$LINENO"; then :
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5350 $as_echo "yes" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5353 $as_echo "buggy but acceptable" >&6; }
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }; have_gmp=no
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 # If we have GMP, check the MPFR version.
5363 if test x"$have_gmp" = xyes; then
5364 # Check for the recommended and required versions of MPFR.
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5366 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #include <gmp.h>
5370 #include <mpfr.h>
5372 main ()
5375 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5376 choke me
5377 #endif
5380 return 0;
5382 _ACEOF
5383 if ac_fn_c_try_compile "$LINENO"; then :
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 #include <gmp.h>
5387 #include <mpfr.h>
5389 main ()
5392 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5393 choke me
5394 #endif
5397 return 0;
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402 $as_echo "yes" >&6; }
5403 else
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5405 $as_echo "buggy but acceptable" >&6; }
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 else
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }; have_gmp=no
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 # Check for the MPC header version.
5416 if test x"$have_gmp" = xyes ; then
5417 # Check for the recommended and required versions of MPC.
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5419 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <mpc.h>
5424 main ()
5427 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5428 choke me
5429 #endif
5432 return 0;
5434 _ACEOF
5435 if ac_fn_c_try_compile "$LINENO"; then :
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 #include <mpc.h>
5440 main ()
5443 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5444 choke me
5445 #endif
5448 return 0;
5450 _ACEOF
5451 if ac_fn_c_try_compile "$LINENO"; then :
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5453 $as_echo "yes" >&6; }
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5456 $as_echo "buggy but acceptable" >&6; }
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }; have_gmp=no
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 # Now check the MPFR library.
5467 if test x"$have_gmp" = xyes; then
5468 saved_LIBS="$LIBS"
5469 LIBS="$LIBS $gmplibs"
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5471 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 #include <mpc.h>
5476 main ()
5479 mpfr_t n;
5480 mpfr_t x;
5481 mpc_t c;
5482 int t;
5483 mpfr_init (n);
5484 mpfr_init (x);
5485 mpfr_atan2 (n, n, x, GMP_RNDN);
5486 mpfr_erfc (n, x, GMP_RNDN);
5487 mpfr_subnormalize (x, t, GMP_RNDN);
5488 mpfr_clear(n);
5489 mpfr_clear(x);
5490 mpc_init2 (c, 53);
5491 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5492 mpc_cosh (c, c, MPC_RNDNN);
5493 mpc_pow (c, c, c, MPC_RNDNN);
5494 mpc_acosh (c, c, MPC_RNDNN);
5495 mpc_clear (c);
5498 return 0;
5500 _ACEOF
5501 if ac_fn_c_try_link "$LINENO"; then :
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5503 $as_echo "yes" >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }; have_gmp=no
5508 rm -f core conftest.err conftest.$ac_objext \
5509 conftest$ac_exeext conftest.$ac_ext
5510 LIBS="$saved_LIBS"
5513 CFLAGS="$saved_CFLAGS"
5515 # The library versions listed in the error message below should match
5516 # the HARD-minimums enforced above.
5517 if test x$have_gmp != xyes; then
5518 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5519 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5520 their locations. Source code for these libraries can be found at
5521 their respective hosting sites as well as at
5522 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5523 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5524 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5525 make sure that you have installed both the libraries and the header
5526 files. They may be located in separate packages." "$LINENO" 5
5530 # Flags needed for both GMP, MPFR and/or MPC.
5538 # Allow host libstdc++ to be specified for static linking with PPL.
5540 # Check whether --with-host-libstdcxx was given.
5541 if test "${with_host_libstdcxx+set}" = set; then :
5542 withval=$with_host_libstdcxx;
5546 case $with_host_libstdcxx in
5547 no|yes)
5548 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5550 esac
5552 # Linker flags to use for stage1 or when not boostrapping.
5554 # Check whether --with-stage1-ldflags was given.
5555 if test "${with_stage1_ldflags+set}" = set; then :
5556 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5557 stage1_ldflags=
5558 else
5559 stage1_ldflags=$withval
5561 else
5562 stage1_ldflags=
5567 # Libraries to use for stage1 or when not bootstrapping.
5569 # Check whether --with-stage1-libs was given.
5570 if test "${with_stage1_libs+set}" = set; then :
5571 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5572 stage1_libs=
5573 else
5574 stage1_libs=$withval
5576 else
5577 stage1_libs=$with_host_libstdcxx
5582 # Libraries to use for stage2 and later builds. This defaults to the
5583 # argument passed to --with-host-libstdcxx.
5585 # Check whether --with-boot-libs was given.
5586 if test "${with_boot_libs+set}" = set; then :
5587 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5588 poststage1_libs=
5589 else
5590 poststage1_libs=$withval
5592 else
5593 poststage1_libs=$with_host_libstdcxx
5598 # Linker flags to use for stage2 and later builds.
5600 # Check whether --with-boot-ldflags was given.
5601 if test "${with_boot_ldflags+set}" = set; then :
5602 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5603 poststage1_ldflags=
5604 else
5605 poststage1_ldflags=$withval
5607 else
5608 poststage1_ldflags=
5609 # In stages 2 and 3, default to linking libstdc++ and libgcc
5610 # statically. But if the user explicitly specified the libraries to
5611 # use, trust that they are doing what they want.
5612 if test "$poststage1_libs" = ""; then
5613 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5619 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5620 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5621 # config/isl.m4
5624 # Check whether --with-cloog was given.
5625 if test "${with_cloog+set}" = set; then :
5626 withval=$with_cloog;
5630 # Check whether --with-isl was given.
5631 if test "${with_isl+set}" = set; then :
5632 withval=$with_isl;
5636 # Treat either --without-cloog or --without-isl as a request to disable
5637 # GRAPHITE support and skip all following checks.
5638 if test "x$with_isl" != "xno" &&
5639 test "x$with_cloog" != "xno"; then
5640 # Check for ISL
5643 # Check whether --with-isl-include was given.
5644 if test "${with_isl_include+set}" = set; then :
5645 withval=$with_isl_include;
5649 # Check whether --with-isl-lib was given.
5650 if test "${with_isl_lib+set}" = set; then :
5651 withval=$with_isl_lib;
5655 # Check whether --enable-isl-version-check was given.
5656 if test "${enable_isl_version_check+set}" = set; then :
5657 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5658 else
5659 ENABLE_ISL_CHECK=yes
5663 # Initialize isllibs and islinc.
5664 case $with_isl in
5666 isllibs=
5667 islinc=
5669 "" | yes)
5672 isllibs="-L$with_isl/lib"
5673 islinc="-I$with_isl/include"
5675 esac
5676 if test "x${with_isl_include}" != x ; then
5677 islinc="-I$with_isl_include"
5679 if test "x${with_isl_lib}" != x; then
5680 isllibs="-L$with_isl_lib"
5682 if test "x${islinc}" = x && test "x${isllibs}" = x \
5683 && test -d ${srcdir}/isl; then
5684 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5685 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5686 ENABLE_ISL_CHECK=no
5691 if test "${ENABLE_ISL_CHECK}" = yes ; then
5692 _isl_saved_CFLAGS=$CFLAGS
5693 _isl_saved_LDFLAGS=$LDFLAGS
5694 _isl_saved_LIBS=$LIBS
5696 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5697 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5698 LIBS="${_isl_saved_LIBS} -lisl"
5699 echo $CFLAGS
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5702 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5703 if test "${gcc_cv_isl+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 if test "$cross_compiling" = yes; then :
5707 gcc_cv_isl=yes
5708 else
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 #include <isl/version.h>
5712 #include <string.h>
5714 main ()
5716 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5717 return 1;
5720 return 0;
5722 _ACEOF
5723 if ac_fn_c_try_run "$LINENO"; then :
5724 gcc_cv_isl=yes
5725 else
5726 gcc_cv_isl=no
5728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5729 conftest.$ac_objext conftest.beam conftest.$ac_ext
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5734 $as_echo "$gcc_cv_isl" >&6; }
5736 CFLAGS=$_isl_saved_CFLAGS
5737 LDFLAGS=$_isl_saved_LDFLAGS
5738 LIBS=$_isl_saved_LIBS
5746 if test "x${with_isl}" = xno; then
5747 graphite_requested=no
5748 elif test "x${with_isl}" != x \
5749 || test "x${with_isl_include}" != x \
5750 || test "x${with_isl_lib}" != x ; then
5751 graphite_requested=yes
5752 else
5753 graphite_requested=no
5758 if test "${gcc_cv_isl}" = no ; then
5759 isllibs=
5760 islinc=
5763 if test "${graphite_requested}" = yes \
5764 && test "x${isllibs}" = x \
5765 && test "x${islinc}" = x ; then
5767 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5772 if test "x$gcc_cv_isl" != "xno"; then
5773 # Check for CLOOG
5776 # Check whether --with-cloog-include was given.
5777 if test "${with_cloog_include+set}" = set; then :
5778 withval=$with_cloog_include;
5782 # Check whether --with-cloog-lib was given.
5783 if test "${with_cloog_lib+set}" = set; then :
5784 withval=$with_cloog_lib;
5788 # Check whether --enable-cloog-version-check was given.
5789 if test "${enable_cloog_version_check+set}" = set; then :
5790 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5791 else
5792 ENABLE_CLOOG_CHECK=yes
5796 # Initialize clooglibs and clooginc.
5797 case $with_cloog in
5799 clooglibs=
5800 clooginc=
5802 "" | yes)
5805 clooglibs="-L$with_cloog/lib"
5806 clooginc="-I$with_cloog/include"
5808 esac
5809 if test "x${with_cloog_include}" != x ; then
5810 clooginc="-I$with_cloog_include"
5812 if test "x${with_cloog_lib}" != x; then
5813 clooglibs="-L$with_cloog_lib"
5815 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5816 && test -d ${srcdir}/cloog; then
5817 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5818 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
5821 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5822 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
5828 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5829 _cloog_saved_CFLAGS=$CFLAGS
5830 _cloog_saved_LDFLAGS=$LDFLAGS
5832 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5833 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5836 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5837 if test "${gcc_cv_cloog+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include "cloog/version.h"
5844 main ()
5846 #if CLOOG_VERSION_MAJOR != 0 \
5847 || CLOOG_VERSION_MINOR != 17 \
5848 || CLOOG_VERSION_REVISION < 0
5849 choke me
5850 #endif
5852 return 0;
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 gcc_cv_cloog=yes
5857 else
5858 gcc_cv_cloog=no
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5863 $as_echo "$gcc_cv_cloog" >&6; }
5865 CFLAGS=$_cloog_saved_CFLAGS
5866 LDFLAGS=$_cloog_saved_LDFLAGS
5875 if test "x${with_cloog}" = xno; then
5876 graphite_requested=no
5877 elif test "x${with_cloog}" != x \
5878 || test "x${with_cloog_include}" != x \
5879 || test "x${with_cloog_lib}" != x ; then
5880 graphite_requested=yes
5881 else
5882 graphite_requested=no
5887 if test "${gcc_cv_cloog}" = no ; then
5888 clooglibs=
5889 clooginc=
5892 if test "${graphite_requested}" = yes \
5893 && test "x${clooglibs}" = x \
5894 && test "x${clooginc}" = x ; then
5896 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5903 # If either the ISL or the CLooG check failed, disable builds of in-tree
5904 # variants of both
5905 if test "x$with_isl" = xno ||
5906 test "x$with_cloog" = xno ||
5907 test "x$gcc_cv_cloog" = xno ||
5908 test "x$gcc_cv_isl" = xno; then
5909 noconfigdirs="$noconfigdirs cloog isl"
5910 islinc=
5911 clooginc=
5912 clooglibs=
5920 # Check for LTO support.
5921 # Check whether --enable-lto was given.
5922 if test "${enable_lto+set}" = set; then :
5923 enableval=$enable_lto; enable_lto=$enableval
5924 else
5925 enable_lto=yes; default_enable_lto=yes
5932 target_elf=no
5933 case $target in
5934 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5935 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5936 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5937 target_elf=no
5940 target_elf=yes
5942 esac
5944 if test $target_elf = yes; then :
5945 # ELF platforms build the lto-plugin always.
5946 build_lto_plugin=yes
5948 else
5949 if test x"$default_enable_lto" = x"yes" ; then
5950 case $target in
5951 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
5952 # On other non-ELF platforms, LTO has yet to be validated.
5953 *) enable_lto=no ;;
5954 esac
5955 else
5956 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5957 # It would also be nice to check the binutils support, but we don't
5958 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5959 # warn during gcc/ subconfigure; unless you're bootstrapping with
5960 # -flto it won't be needed until after installation anyway.
5961 case $target in
5962 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5963 *) if test x"$enable_lto" = x"yes"; then
5964 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5967 esac
5969 # Among non-ELF, only Windows platforms support the lto-plugin so far.
5970 # Build it unless LTO was explicitly disabled.
5971 case $target in
5972 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5973 *) ;;
5974 esac
5980 # By default, C and C++ are the only stage 1 languages.
5981 stage1_languages=,c,
5983 # Target libraries that we bootstrap.
5984 bootstrap_target_libs=,target-libgcc,
5986 # Figure out what language subdirectories are present.
5987 # Look if the user specified --enable-languages="..."; if not, use
5988 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5989 # go away some day.
5990 # NB: embedded tabs in this IF block -- do not untabify
5991 if test -d ${srcdir}/gcc; then
5992 if test x"${enable_languages+set}" != xset; then
5993 if test x"${LANGUAGES+set}" = xset; then
5994 enable_languages="${LANGUAGES}"
5995 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5996 else
5997 enable_languages=all
5999 else
6000 if test x"${enable_languages}" = x ||
6001 test x"${enable_languages}" = xyes;
6002 then
6003 echo configure.in: --enable-languages needs at least one language argument 1>&2
6004 exit 1
6007 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6009 # 'f95' is the old name for the 'fortran' language. We issue a warning
6010 # and make the substitution.
6011 case ,${enable_languages}, in
6012 *,f95,*)
6013 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6014 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6016 esac
6018 # If bootstrapping, C++ must be enabled.
6019 case ",$enable_languages,:$enable_bootstrap" in
6020 *,c++,*:*) ;;
6021 *:yes)
6022 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6023 enable_languages="${enable_languages},c++"
6024 else
6025 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6028 esac
6030 # First scan to see if an enabled language requires some other language.
6031 # We assume that a given config-lang.in will list all the language
6032 # front ends it requires, even if some are required indirectly.
6033 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6034 case ${lang_frag} in
6035 ..) ;;
6036 # The odd quoting in the next line works around
6037 # an apparent bug in bash 1.12 on linux.
6038 ${srcdir}/gcc/[*]/config-lang.in) ;;
6040 # From the config-lang.in, get $language, $lang_requires, and
6041 # $lang_requires_boot_languages.
6042 language=
6043 lang_requires=
6044 lang_requires_boot_languages=
6045 . ${lang_frag}
6046 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6047 case ,${enable_languages}, in
6048 *,$other,*) ;;
6049 *,all,*) ;;
6050 *,$language,*)
6051 echo " \`$other' language required by \`$language'; enabling" 1>&2
6052 enable_languages="${enable_languages},${other}"
6054 esac
6055 done
6056 for other in ${lang_requires_boot_languages} ; do
6057 if test "$other" != "c"; then
6058 case ,${enable_stage1_languages}, in
6059 *,$other,*) ;;
6060 *,all,*) ;;
6062 case ,${enable_languages}, in
6063 *,$language,*)
6064 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6065 enable_stage1_languages="$enable_stage1_languages,${other}"
6067 esac
6069 esac
6071 done
6073 esac
6074 done
6076 new_enable_languages=,c,
6078 # If LTO is enabled, add the LTO front end.
6079 extra_host_libiberty_configure_flags=
6080 if test "$enable_lto" = "yes" ; then
6081 case ,${enable_languages}, in
6082 *,lto,*) ;;
6083 *) enable_languages="${enable_languages},lto" ;;
6084 esac
6085 if test "${build_lto_plugin}" = "yes" ; then
6086 configdirs="$configdirs lto-plugin"
6087 extra_host_libiberty_configure_flags=--enable-shared
6092 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6093 potential_languages=,c,
6095 enabled_target_libs=
6096 disabled_target_libs=
6098 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6099 case ${lang_frag} in
6100 ..) ;;
6101 # The odd quoting in the next line works around
6102 # an apparent bug in bash 1.12 on linux.
6103 ${srcdir}/gcc/[*]/config-lang.in) ;;
6105 # From the config-lang.in, get $language, $target_libs,
6106 # $lang_dirs, $boot_language, and $build_by_default
6107 language=
6108 target_libs=
6109 lang_dirs=
6110 subdir_requires=
6111 boot_language=no
6112 build_by_default=yes
6113 . ${lang_frag}
6114 if test x${language} = x; then
6115 echo "${lang_frag} doesn't set \$language." 1>&2
6116 exit 1
6119 if test "$language" = "c++"; then
6120 boot_language=yes
6123 add_this_lang=no
6124 case ,${enable_languages}, in
6125 *,${language},*)
6126 # Language was explicitly selected; include it
6127 # unless it is C, which is enabled by default.
6128 if test "$language" != "c"; then
6129 add_this_lang=yes
6132 *,all,*)
6133 # 'all' was selected, select it if it is a default language
6134 if test "$language" != "c"; then
6135 add_this_lang=${build_by_default}
6138 esac
6140 # Disable languages that need other directories if these aren't available.
6141 for i in $subdir_requires; do
6142 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6143 case ,${enable_languages}, in
6144 *,${language},*)
6145 # Specifically requested language; tell them.
6146 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6149 # Silently disable.
6150 add_this_lang=unsupported
6152 esac
6153 done
6155 # Disable Ada if no preexisting GNAT is available.
6156 case ,${enable_languages},:${language}:${have_gnat} in
6157 *,${language},*:ada:no)
6158 # Specifically requested language; tell them.
6159 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6161 *:ada:no)
6162 # Silently disable.
6163 add_this_lang=unsupported
6165 esac
6167 # Disable a language that is unsupported by the target.
6168 case " $unsupported_languages " in
6169 *" $language "*)
6170 add_this_lang=unsupported
6172 esac
6174 case $add_this_lang in
6175 unsupported)
6176 # Remove language-dependent dirs.
6177 disabled_target_libs="$disabled_target_libs $target_libs"
6178 noconfigdirs="$noconfigdirs $lang_dirs"
6181 # Remove language-dependent dirs; still show language as supported.
6182 disabled_target_libs="$disabled_target_libs $target_libs"
6183 noconfigdirs="$noconfigdirs $lang_dirs"
6184 potential_languages="${potential_languages}${language},"
6186 yes)
6187 new_enable_languages="${new_enable_languages}${language},"
6188 potential_languages="${potential_languages}${language},"
6189 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6190 enabled_target_libs="$enabled_target_libs $target_libs"
6191 case "${boot_language}:,$enable_stage1_languages," in
6192 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6193 # Add to (comma-separated) list of stage 1 languages.
6194 case ",$stage1_languages," in
6195 *,$language,* | ,yes, | ,all,) ;;
6196 *) stage1_languages="${stage1_languages}${language}," ;;
6197 esac
6198 # We need to bootstrap any supporting libraries.
6199 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6201 esac
6203 esac
6205 esac
6206 done
6208 # Add target libraries which are only needed for disabled languages
6209 # to noconfigdirs.
6210 if test -n "$disabled_target_libs"; then
6211 for dir in $disabled_target_libs; do
6212 case " $enabled_target_libs " in
6213 *" ${dir} "*) ;;
6214 *) noconfigdirs="$noconfigdirs $dir" ;;
6215 esac
6216 done
6219 # Check whether --enable-stage1-languages was given.
6220 if test "${enable_stage1_languages+set}" = set; then :
6221 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6222 ,no,|,,)
6223 # Set it to something that will have no effect in the loop below
6224 enable_stage1_languages=c ;;
6225 ,yes,)
6226 enable_stage1_languages=`echo $new_enable_languages | \
6227 sed -e "s/^,//" -e "s/,$//" ` ;;
6228 *,all,*)
6229 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6230 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6231 esac
6233 # Add "good" languages from enable_stage1_languages to stage1_languages,
6234 # while "bad" languages go in missing_languages. Leave no duplicates.
6235 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6236 case $potential_languages in
6237 *,$i,*)
6238 case $stage1_languages in
6239 *,$i,*) ;;
6240 *) stage1_languages="$stage1_languages$i," ;;
6241 esac ;;
6243 case $missing_languages in
6244 *,$i,*) ;;
6245 *) missing_languages="$missing_languages$i," ;;
6246 esac ;;
6247 esac
6248 done
6252 # Remove leading/trailing commas that were added for simplicity
6253 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6254 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6255 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6256 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6258 if test "x$missing_languages" != x; then
6259 as_fn_error "
6260 The following requested languages could not be built: ${missing_languages}
6261 Supported languages are: ${potential_languages}" "$LINENO" 5
6263 if test "x$new_enable_languages" != "x$enable_languages"; then
6264 echo The following languages will be built: ${new_enable_languages}
6265 enable_languages="$new_enable_languages"
6269 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6272 # Handle --disable-<component> generically.
6273 for dir in $configdirs $build_configdirs $target_configdirs ; do
6274 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6275 varname=`echo $dirname | sed -e s/+/_/g`
6276 if eval test x\${enable_${varname}} "=" xno ; then
6277 noconfigdirs="$noconfigdirs $dir"
6279 done
6281 # Check for Boehm's garbage collector
6282 # Check whether --enable-objc-gc was given.
6283 if test "${enable_objc_gc+set}" = set; then :
6284 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6285 *,objc,*:*:yes:*target-boehm-gc*)
6286 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6288 esac
6292 # Make sure we only build Boehm's garbage collector if required.
6293 case ,${enable_languages},:${enable_objc_gc} in
6294 *,objc,*:yes)
6295 # Keep target-boehm-gc if requested for Objective-C.
6298 # Otherwise remove target-boehm-gc depending on target-libjava.
6299 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6300 noconfigdirs="$noconfigdirs target-boehm-gc"
6303 esac
6305 # Disable libitm if we're not building C++
6306 case ,${enable_languages}, in
6307 *,c++,*) ;;
6309 noconfigdirs="$noconfigdirs target-libitm"
6311 esac
6313 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6314 # $build_configdirs and $target_configdirs.
6315 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6317 notsupp=""
6318 for dir in . $skipdirs $noconfigdirs ; do
6319 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6320 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6321 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6322 if test -r $srcdir/$dirname/configure ; then
6323 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6324 true
6325 else
6326 notsupp="$notsupp $dir"
6330 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6331 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6332 if test -r $srcdir/$dirname/configure ; then
6333 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6334 true
6335 else
6336 notsupp="$notsupp $dir"
6340 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6341 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6342 if test -r $srcdir/$dirname/configure ; then
6343 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6344 true
6345 else
6346 notsupp="$notsupp $dir"
6350 done
6352 # Quietly strip out all directories which aren't configurable in this tree.
6353 # This relies on all configurable subdirectories being autoconfiscated, which
6354 # is now the case.
6355 build_configdirs_all="$build_configdirs"
6356 build_configdirs=
6357 for i in ${build_configdirs_all} ; do
6358 j=`echo $i | sed -e s/build-//g`
6359 if test -f ${srcdir}/$j/configure ; then
6360 build_configdirs="${build_configdirs} $i"
6362 done
6364 configdirs_all="$configdirs"
6365 configdirs=
6366 for i in ${configdirs_all} ; do
6367 if test -f ${srcdir}/$i/configure ; then
6368 configdirs="${configdirs} $i"
6370 done
6372 target_configdirs_all="$target_configdirs"
6373 target_configdirs=
6374 for i in ${target_configdirs_all} ; do
6375 j=`echo $i | sed -e s/target-//g`
6376 if test -f ${srcdir}/$j/configure ; then
6377 target_configdirs="${target_configdirs} $i"
6379 done
6381 # Produce a warning message for the subdirs we can't configure.
6382 # This isn't especially interesting in the Cygnus tree, but in the individual
6383 # FSF releases, it's important to let people know when their machine isn't
6384 # supported by the one or two programs in a package.
6386 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6387 # If $appdirs is non-empty, at least one of those directories must still
6388 # be configured, or we error out. (E.g., if the gas release supports a
6389 # specified target in some subdirs but not the gas subdir, we shouldn't
6390 # pretend that all is well.)
6391 if test -n "$appdirs" ; then
6392 for dir in $appdirs ; do
6393 if test -r $dir/Makefile.in ; then
6394 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6395 appdirs=""
6396 break
6398 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6399 appdirs=""
6400 break
6403 done
6404 if test -n "$appdirs" ; then
6405 echo "*** This configuration is not supported by this package." 1>&2
6406 exit 1
6409 # Okay, some application will build, or we don't care to check. Still
6410 # notify of subdirs not getting built.
6411 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6412 echo " ${notsupp}" 1>&2
6413 echo " (Any other directories should still work fine.)" 1>&2
6416 case "$host" in
6417 *msdosdjgpp*)
6418 enable_gdbtk=no ;;
6419 esac
6421 # To find our prefix, in gcc_cv_tool_prefix.
6423 # The user is always right.
6424 if test "${PATH_SEPARATOR+set}" != set; then
6425 echo "#! /bin/sh" >conf$$.sh
6426 echo "exit 0" >>conf$$.sh
6427 chmod +x conf$$.sh
6428 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6429 PATH_SEPARATOR=';'
6430 else
6431 PATH_SEPARATOR=:
6433 rm -f conf$$.sh
6438 if test "x$exec_prefix" = xNONE; then
6439 if test "x$prefix" = xNONE; then
6440 gcc_cv_tool_prefix=$ac_default_prefix
6441 else
6442 gcc_cv_tool_prefix=$prefix
6444 else
6445 gcc_cv_tool_prefix=$exec_prefix
6448 # If there is no compiler in the tree, use the PATH only. In any
6449 # case, if there is no compiler in the tree nobody should use
6450 # AS_FOR_TARGET and LD_FOR_TARGET.
6451 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6452 gcc_version=`cat $srcdir/gcc/BASE-VER`
6453 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6454 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6455 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6456 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6457 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6458 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6459 else
6460 gcc_cv_tool_dirs=
6463 if test x$build = x$target && test -n "$md_exec_prefix"; then
6464 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6469 copy_dirs=
6472 # Check whether --with-build-sysroot was given.
6473 if test "${with_build_sysroot+set}" = set; then :
6474 withval=$with_build_sysroot; if test x"$withval" != x ; then
6475 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6477 else
6478 SYSROOT_CFLAGS_FOR_TARGET=
6484 # Check whether --with-debug-prefix-map was given.
6485 if test "${with_debug_prefix_map+set}" = set; then :
6486 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6487 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6488 for debug_map in $withval; do
6489 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6490 done
6492 else
6493 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6498 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6499 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6500 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6501 # We want to ensure that TARGET libraries (which we know are built with
6502 # gcc) are built with "-O2 -g", so include those options when setting
6503 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6504 if test "x$CFLAGS_FOR_TARGET" = x; then
6505 CFLAGS_FOR_TARGET=$CFLAGS
6506 case " $CFLAGS " in
6507 *" -O2 "*) ;;
6508 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6509 esac
6510 case " $CFLAGS " in
6511 *" -g "* | *" -g3 "*) ;;
6512 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6513 esac
6517 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6518 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6519 case " $CXXFLAGS " in
6520 *" -O2 "*) ;;
6521 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6522 esac
6523 case " $CXXFLAGS " in
6524 *" -g "* | *" -g3 "*) ;;
6525 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6526 esac
6532 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6533 # the named directory are copied to $(tooldir)/sys-include.
6534 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6535 if test x${is_cross_compiler} = xno ; then
6536 echo 1>&2 '***' --with-headers is only supported when cross compiling
6537 exit 1
6539 if test x"${with_headers}" != xyes ; then
6540 x=${gcc_cv_tool_prefix}
6541 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6545 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6546 # the name directories are copied to $(tooldir)/lib. Multiple directories
6547 # are permitted.
6548 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6549 if test x${is_cross_compiler} = xno ; then
6550 echo 1>&2 '***' --with-libs is only supported when cross compiling
6551 exit 1
6553 if test x"${with_libs}" != xyes ; then
6554 # Copy the libraries in reverse order, so that files in the first named
6555 # library override files in subsequent libraries.
6556 x=${gcc_cv_tool_prefix}
6557 for l in ${with_libs}; do
6558 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6559 done
6563 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6565 # This is done by determining whether or not the appropriate directory
6566 # is available, and by checking whether or not specific configurations
6567 # have requested that this magic not happen.
6569 # The command line options always override the explicit settings in
6570 # configure.in, and the settings in configure.in override this magic.
6572 # If the default for a toolchain is to use GNU as and ld, and you don't
6573 # want to do that, then you should use the --without-gnu-as and
6574 # --without-gnu-ld options for the configure script. Similarly, if
6575 # the default is to use the included zlib and you don't want to do that,
6576 # you should use the --with-system-zlib option for the configure script.
6578 if test x${use_gnu_as} = x &&
6579 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6580 with_gnu_as=yes
6581 extra_host_args="$extra_host_args --with-gnu-as"
6584 if test x${use_gnu_ld} = x &&
6585 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6586 with_gnu_ld=yes
6587 extra_host_args="$extra_host_args --with-gnu-ld"
6590 if test x${use_included_zlib} = x &&
6591 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6593 else
6594 with_system_zlib=yes
6595 extra_host_args="$extra_host_args --with-system-zlib"
6598 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6599 # can detect this case.
6601 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6602 with_newlib=yes
6603 extra_host_args="$extra_host_args --with-newlib"
6606 # Handle ${copy_dirs}
6607 set fnord ${copy_dirs}
6608 shift
6609 while test $# != 0 ; do
6610 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6612 else
6613 echo Copying $1 to $2
6615 # Use the install script to create the directory and all required
6616 # parent directories.
6617 if test -d $2 ; then
6619 else
6620 echo >config.temp
6621 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6624 # Copy the directory, assuming we have tar.
6625 # FIXME: Should we use B in the second tar? Not all systems support it.
6626 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6628 # It is the responsibility of the user to correctly adjust all
6629 # symlinks. If somebody can figure out how to handle them correctly
6630 # here, feel free to add the code.
6632 echo $1 > $2/COPIED
6634 shift; shift
6635 done
6637 # Determine a target-dependent exec_prefix that the installed
6638 # gcc will search in. Keep this list sorted by triplet, with
6639 # the *-*-osname triplets last.
6640 md_exec_prefix=
6641 case "${target}" in
6642 i[34567]86-pc-msdosdjgpp*)
6643 md_exec_prefix=/dev/env/DJDIR/bin
6645 *-*-hpux* | \
6646 *-*-nto-qnx* | \
6647 *-*-solaris2*)
6648 md_exec_prefix=/usr/ccs/bin
6650 esac
6652 extra_arflags_for_target=
6653 extra_nmflags_for_target=
6654 extra_ranlibflags_for_target=
6655 target_makefile_frag=/dev/null
6656 case "${target}" in
6657 spu-*-*)
6658 target_makefile_frag="config/mt-spu"
6660 mips*-sde-elf*)
6661 target_makefile_frag="config/mt-sde"
6663 mipsisa*-*-elfoabi*)
6664 target_makefile_frag="config/mt-mips-elfoabi"
6666 mips*-*-*linux* | mips*-*-gnu*)
6667 target_makefile_frag="config/mt-mips-gnu"
6669 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6670 target_makefile_frag="config/mt-gnu"
6672 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6673 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6674 # commands to handle both 32-bit and 64-bit objects. These flags are
6675 # harmless if we're using GNU nm or ar.
6676 extra_arflags_for_target=" -X32_64"
6677 extra_nmflags_for_target=" -B -X32_64"
6679 esac
6681 alphaieee_frag=/dev/null
6682 case $target in
6683 alpha*-*-*)
6684 # This just makes sure to use the -mieee option to build target libs.
6685 # This should probably be set individually by each library.
6686 alphaieee_frag="config/mt-alphaieee"
6688 esac
6690 # If --enable-target-optspace always use -Os instead of -O2 to build
6691 # the target libraries, similarly if it is not specified, use -Os
6692 # on selected platforms.
6693 ospace_frag=/dev/null
6694 case "${enable_target_optspace}:${target}" in
6695 yes:*)
6696 ospace_frag="config/mt-ospace"
6698 :d30v-*)
6699 ospace_frag="config/mt-d30v"
6701 :m32r-* | :d10v-* | :fr30-*)
6702 ospace_frag="config/mt-ospace"
6704 no:* | :*)
6707 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6709 esac
6711 # Some systems (e.g., one of the i386-aix systems the gas testers are
6712 # using) don't handle "\$" correctly, so don't use it here.
6713 tooldir='${exec_prefix}'/${target_noncanonical}
6714 build_tooldir=${tooldir}
6716 # Create a .gdbinit file which runs the one in srcdir
6717 # and tells GDB to look there for source files.
6719 if test -r ${srcdir}/.gdbinit ; then
6720 case ${srcdir} in
6721 .) ;;
6722 *) cat > ./.gdbinit <<EOF
6723 # ${NO_EDIT}
6724 dir ${srcdir}
6725 dir .
6726 source ${srcdir}/.gdbinit
6729 esac
6732 # Make sure that the compiler is able to generate an executable. If it
6733 # can't, we are probably in trouble. We don't care whether we can run the
6734 # executable--we might be using a cross compiler--we only care whether it
6735 # can be created. At this point the main configure script has set CC.
6736 we_are_ok=no
6737 echo "int main () { return 0; }" > conftest.c
6738 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6739 if test $? = 0 ; then
6740 if test -s conftest || test -s conftest.exe ; then
6741 we_are_ok=yes
6744 case $we_are_ok in
6746 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6747 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6748 rm -f conftest*
6749 exit 1
6751 esac
6752 rm -f conftest*
6754 # Decide which environment variable is used to find dynamic libraries.
6755 case "${host}" in
6756 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6757 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6758 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6759 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6760 esac
6762 # On systems where the dynamic library environment variable is PATH,
6763 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6764 # built executables to PATH.
6765 if test "$RPATH_ENVVAR" = PATH; then
6766 GCC_SHLIB_SUBDIR=/shlib
6767 else
6768 GCC_SHLIB_SUBDIR=
6771 # Record target_configdirs and the configure arguments for target and
6772 # build configuration in Makefile.
6773 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6774 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6776 # If we are building libgomp, bootstrap it.
6777 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6778 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6781 # Determine whether gdb needs tk/tcl or not.
6782 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6783 # and in that case we want gdb to be built without tk. Ugh!
6784 # In fact I believe gdb is the *only* package directly dependent on tk,
6785 # so we should be able to put the 'maybe's in unconditionally and
6786 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6787 # 100% sure that that's safe though.
6789 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6790 case "$enable_gdbtk" in
6792 GDB_TK="" ;;
6793 yes)
6794 GDB_TK="${gdb_tk}" ;;
6796 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6797 # distro. Eventually someone will fix this and move Insight, nee
6798 # gdbtk to a separate directory.
6799 if test -d ${srcdir}/gdb/gdbtk ; then
6800 GDB_TK="${gdb_tk}"
6801 else
6802 GDB_TK=""
6805 esac
6806 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6807 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6809 # Strip out unwanted targets.
6811 # While at that, we remove Makefiles if we were started for recursive
6812 # configuration, so that the top-level Makefile reconfigures them,
6813 # like we used to do when configure itself was recursive.
6815 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6816 # but now we're fixing up the Makefile ourselves with the additional
6817 # commands passed to AC_CONFIG_FILES. Use separate variables
6818 # extrasub-{build,host,target} not because there is any reason to split
6819 # the substitutions up that way, but only to remain below the limit of
6820 # 99 commands in a script, for HP-UX sed.
6821 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6823 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6824 yes:yes:*\ gold\ *:*,c++,*) ;;
6825 yes:yes:*\ gold\ *:*)
6826 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6828 esac
6830 # Adjust the toplevel makefile according to whether bootstrap was selected.
6831 case $enable_bootstrap in
6832 yes)
6833 bootstrap_suffix=bootstrap
6834 BUILD_CONFIG=bootstrap-debug
6837 bootstrap_suffix=no-bootstrap
6838 BUILD_CONFIG=
6840 esac
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6843 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6846 # Check whether --with-build-config was given.
6847 if test "${with_build_config+set}" = set; then :
6848 withval=$with_build_config; case $with_build_config in
6849 yes) with_build_config= ;;
6850 no) with_build_config= BUILD_CONFIG= ;;
6851 esac
6855 if test "x${with_build_config}" != x; then
6856 BUILD_CONFIG=$with_build_config
6857 else
6858 case $BUILD_CONFIG in
6859 bootstrap-debug)
6860 if echo "int f (void) { return 0; }" > conftest.c &&
6861 ${CC} -c conftest.c &&
6862 mv conftest.o conftest.o.g0 &&
6863 ${CC} -c -g conftest.c &&
6864 mv conftest.o conftest.o.g &&
6865 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6867 else
6868 BUILD_CONFIG=
6870 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6872 esac
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6875 $as_echo "$BUILD_CONFIG" >&6; }
6878 extrasub_build=
6879 for module in ${build_configdirs} ; do
6880 if test -z "${no_recursion}" \
6881 && test -f ${build_subdir}/${module}/Makefile; then
6882 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6883 rm -f ${build_subdir}/${module}/Makefile
6885 extrasub_build="$extrasub_build
6886 /^@if build-$module\$/d
6887 /^@endif build-$module\$/d
6888 /^@if build-$module-$bootstrap_suffix\$/d
6889 /^@endif build-$module-$bootstrap_suffix\$/d"
6890 done
6891 extrasub_host=
6892 for module in ${configdirs} ; do
6893 if test -z "${no_recursion}"; then
6894 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6895 if test -f ${file}; then
6896 echo 1>&2 "*** removing ${file} to force reconfigure"
6897 rm -f ${file}
6899 done
6901 extrasub_host="$extrasub_host
6902 /^@if $module\$/d
6903 /^@endif $module\$/d
6904 /^@if $module-$bootstrap_suffix\$/d
6905 /^@endif $module-$bootstrap_suffix\$/d"
6906 done
6907 extrasub_target=
6908 for module in ${target_configdirs} ; do
6909 if test -z "${no_recursion}" \
6910 && test -f ${target_subdir}/${module}/Makefile; then
6911 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6912 rm -f ${target_subdir}/${module}/Makefile
6915 # We only bootstrap target libraries listed in bootstrap_target_libs.
6916 case $bootstrap_target_libs in
6917 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6918 *) target_bootstrap_suffix=no-bootstrap ;;
6919 esac
6921 extrasub_target="$extrasub_target
6922 /^@if target-$module\$/d
6923 /^@endif target-$module\$/d
6924 /^@if target-$module-$target_bootstrap_suffix\$/d
6925 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6926 done
6928 # Do the final fixup along with target modules.
6929 extrasub_target="$extrasub_target
6930 /^@if /,/^@endif /d"
6932 # Create the serialization dependencies. This uses a temporary file.
6934 # Check whether --enable-serial-configure was given.
6935 if test "${enable_serial_configure+set}" = set; then :
6936 enableval=$enable_serial_configure;
6940 case ${enable_serial_configure} in
6941 yes)
6942 enable_serial_build_configure=yes
6943 enable_serial_host_configure=yes
6944 enable_serial_target_configure=yes
6946 esac
6948 # These force 'configure's to be done one at a time, to avoid problems
6949 # with contention over a shared config.cache.
6950 rm -f serdep.tmp
6951 echo '# serdep.tmp' > serdep.tmp
6952 olditem=
6953 test "x${enable_serial_build_configure}" = xyes &&
6954 for item in ${build_configdirs} ; do
6955 case ${olditem} in
6956 "") ;;
6957 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6958 esac
6959 olditem=${item}
6960 done
6961 olditem=
6962 test "x${enable_serial_host_configure}" = xyes &&
6963 for item in ${configdirs} ; do
6964 case ${olditem} in
6965 "") ;;
6966 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6967 esac
6968 olditem=${item}
6969 done
6970 olditem=
6971 test "x${enable_serial_target_configure}" = xyes &&
6972 for item in ${target_configdirs} ; do
6973 case ${olditem} in
6974 "") ;;
6975 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6976 esac
6977 olditem=${item}
6978 done
6979 serialization_dependencies=serdep.tmp
6982 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6983 # target, nonopt, and variable assignments. These are the ones we
6984 # might not want to pass down to subconfigures. The exception being
6985 # --cache-file=/dev/null, which is used to turn off the use of cache
6986 # files altogether, and which should be passed on to subconfigures.
6987 # Also strip program-prefix, program-suffix, and program-transform-name,
6988 # so that we can pass down a consistent program-transform-name.
6989 baseargs=
6990 tbaseargs=
6991 keep_next=no
6992 skip_next=no
6993 eval "set -- $ac_configure_args"
6994 for ac_arg
6996 if test X"$skip_next" = X"yes"; then
6997 skip_next=no
6998 continue
7000 if test X"$keep_next" = X"yes"; then
7001 case $ac_arg in
7002 *\'*)
7003 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7004 esac
7005 baseargs="$baseargs '$ac_arg'"
7006 tbaseargs="$tbaseargs '$ac_arg'"
7007 keep_next=no
7008 continue
7011 # Handle separated arguments. Based on the logic generated by
7012 # autoconf 2.59.
7013 case $ac_arg in
7014 *=* | --config-cache | -C | -disable-* | --disable-* \
7015 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7016 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7017 | -with-* | --with-* | -without-* | --without-* | --x)
7018 separate_arg=no
7021 separate_arg=yes
7024 separate_arg=no
7026 esac
7028 skip_targ=no
7029 case $ac_arg in
7031 --with-* | --without-*)
7032 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7034 case $libopt in
7035 *[-_]include)
7036 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7038 *[-_]lib)
7039 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7042 lib=$libopt
7044 esac
7047 case $lib in
7048 mpc | mpfr | gmp | cloog)
7049 # If we're processing --with-$lib, --with-$lib-include or
7050 # --with-$lib-lib, for one of the libs above, and target is
7051 # different from host, don't pass the current argument to any
7052 # target library's configure.
7053 if test x$is_cross_compiler = xyes; then
7054 skip_targ=yes
7057 esac
7059 esac
7061 case "$ac_arg" in
7062 --cache-file=/dev/null | \
7063 -cache-file=/dev/null )
7064 # Handled here to avoid the test to skip args below.
7065 baseargs="$baseargs '$ac_arg'"
7066 tbaseargs="$tbaseargs '$ac_arg'"
7067 # Assert: $separate_arg should always be no.
7068 keep_next=$separate_arg
7070 --no*)
7071 continue
7073 --c* | \
7074 --sr* | \
7075 --ho* | \
7076 --bu* | \
7077 --t* | \
7078 --program-* | \
7079 -cache_file* | \
7080 -srcdir* | \
7081 -host* | \
7082 -build* | \
7083 -target* | \
7084 -program-prefix* | \
7085 -program-suffix* | \
7086 -program-transform-name* )
7087 skip_next=$separate_arg
7088 continue
7091 # An option. Add it.
7092 case $ac_arg in
7093 *\'*)
7094 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7095 esac
7096 baseargs="$baseargs '$ac_arg'"
7097 if test X"$skip_targ" = Xno; then
7098 tbaseargs="$tbaseargs '$ac_arg'"
7100 keep_next=$separate_arg
7103 # Either a variable assignment, or a nonopt (triplet). Don't
7104 # pass it down; let the Makefile handle this.
7105 continue
7107 esac
7108 done
7109 # Remove the initial space we just introduced and, as these will be
7110 # expanded by make, quote '$'.
7111 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7113 # Add in --program-transform-name, after --program-prefix and
7114 # --program-suffix have been applied to it. Autoconf has already
7115 # doubled dollar signs and backslashes in program_transform_name; we want
7116 # the backslashes un-doubled, and then the entire thing wrapped in single
7117 # quotes, because this will be expanded first by make and then by the shell.
7118 # Also, because we want to override the logic in subdir configure scripts to
7119 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7120 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7121 ${program_transform_name}
7122 EOF_SED
7123 gcc_transform_name=`cat conftestsed.out`
7124 rm -f conftestsed.out
7125 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7126 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7127 if test "$silent" = yes; then
7128 baseargs="$baseargs --silent"
7129 tbaseargs="$tbaseargs --silent"
7131 baseargs="$baseargs --disable-option-checking"
7132 tbaseargs="$tbaseargs --disable-option-checking"
7134 # Record and document user additions to sub configure arguments.
7139 # For the build-side libraries, we just need to pretend we're native,
7140 # and not use the same cache file. Multilibs are neither needed nor
7141 # desired.
7142 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7144 # For host modules, accept cache file option, or specification as blank.
7145 case "${cache_file}" in
7146 "") # empty
7147 cache_file_option="" ;;
7148 /* | [A-Za-z]:[\\/]* ) # absolute path
7149 cache_file_option="--cache-file=${cache_file}" ;;
7150 *) # relative path
7151 cache_file_option="--cache-file=../${cache_file}" ;;
7152 esac
7154 # Host dirs don't like to share a cache file either, horribly enough.
7155 # This seems to be due to autoconf 2.5x stupidity.
7156 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7158 target_configargs="$target_configargs ${tbaseargs}"
7160 # Passing a --with-cross-host argument lets the target libraries know
7161 # whether they are being built with a cross-compiler or being built
7162 # native. However, it would be better to use other mechanisms to make the
7163 # sorts of decisions they want to make on this basis. Please consider
7164 # this option to be deprecated. FIXME.
7165 if test x${is_cross_compiler} = xyes ; then
7166 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7169 # Default to --enable-multilib.
7170 if test x${enable_multilib} = x ; then
7171 target_configargs="--enable-multilib ${target_configargs}"
7174 # Pass --with-newlib if appropriate. Note that target_configdirs has
7175 # changed from the earlier setting of with_newlib.
7176 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7177 target_configargs="--with-newlib ${target_configargs}"
7180 # Different target subdirs use different values of certain variables
7181 # (notably CXX). Worse, multilibs use *lots* of different values.
7182 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7183 # it doesn't automatically accept command-line overrides of them.
7184 # This means it's not safe for target subdirs to share a cache file,
7185 # which is disgusting, but there you have it. Hopefully this can be
7186 # fixed in future. It's still worthwhile to use a cache file for each
7187 # directory. I think.
7189 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7190 # We need to pass --target, as newer autoconf's requires consistency
7191 # for target_alias and gcc doesn't manage it consistently.
7192 target_configargs="--cache-file=./config.cache ${target_configargs}"
7194 FLAGS_FOR_TARGET=
7195 case " $target_configdirs " in
7196 *" newlib "*)
7197 case " $target_configargs " in
7198 *" --with-newlib "*)
7199 case "$target" in
7200 *-cygwin*)
7201 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'
7203 esac
7205 # If we're not building GCC, don't discard standard headers.
7206 if test -d ${srcdir}/gcc; then
7207 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7209 if test "${build}" != "${host}"; then
7210 # On Canadian crosses, CC_FOR_TARGET will have already been set
7211 # by `configure', so we won't have an opportunity to add -Bgcc/
7212 # to it. This is right: we don't want to search that directory
7213 # for binaries, but we want the header files in there, so add
7214 # them explicitly.
7215 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7217 # Someone might think of using the pre-installed headers on
7218 # Canadian crosses, in case the installed compiler is not fully
7219 # compatible with the compiler being built. In this case, it
7220 # would be better to flag an error than risking having
7221 # incompatible object files being constructed. We can't
7222 # guarantee that an error will be flagged, but let's hope the
7223 # compiler will do it, when presented with incompatible header
7224 # files.
7228 case "${target}-${is_cross_compiler}" in
7229 i[3456789]86-*-linux*-no)
7230 # Here host == target, so we don't need to build gcc,
7231 # so we don't want to discard standard headers.
7232 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7235 # If we're building newlib, use its generic headers last, but search
7236 # for any libc-related directories first (so make it the last -B
7237 # switch).
7238 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7240 # If we're building libgloss, find the startup file, simulator library
7241 # and linker script.
7242 case " $target_configdirs " in
7243 *" libgloss "*)
7244 # Look for startup file, simulator library and maybe linker script.
7245 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7246 # Look for libnosys.a in case the target needs it.
7247 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7248 # Most targets have the linker script in the source directory.
7249 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7251 esac
7253 esac
7255 esac
7257 esac
7259 case "$target" in
7260 x86_64-*mingw* | *-w64-mingw*)
7261 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7262 # however, use a symlink named 'mingw' in ${prefix} .
7263 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7265 *-mingw*)
7266 # MinGW can't be handled as Cygwin above since it does not use newlib.
7267 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'
7269 esac
7271 # Allow the user to override the flags for
7272 # our build compiler if desired.
7273 if test x"${build}" = x"${host}" ; then
7274 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7275 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7276 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7279 # On Canadian crosses, we'll be searching the right directories for
7280 # the previously-installed cross compiler, so don't bother to add
7281 # flags for directories within the install tree of the compiler
7282 # being built; programs in there won't even run.
7283 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7284 # Search for pre-installed headers if nothing else fits.
7285 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7288 if test "x${use_gnu_ld}" = x &&
7289 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7290 # Arrange for us to find uninstalled linker scripts.
7291 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7294 # Search for other target-specific linker scripts and such.
7295 case "${target}" in
7296 mep*)
7297 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7299 esac
7301 # Makefile fragments.
7302 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7304 eval fragval=\$$frag
7305 if test $fragval != /dev/null; then
7306 eval $frag=${srcdir}/$fragval
7308 done
7314 # Miscellanea: directories, flags, etc.
7323 # Build module lists & subconfigure args.
7327 # Host module lists & subconfigure args.
7332 # Target module lists & subconfigure args.
7336 # Build tools.
7354 # Generate default definitions for YACC, M4, LEX and other programs that run
7355 # on the build machine. These are used if the Makefile can't locate these
7356 # programs in objdir.
7357 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7359 for ac_prog in 'bison -y' byacc yacc
7361 # Extract the first word of "$ac_prog", so it can be a program name with args.
7362 set dummy $ac_prog; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_YACC+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 if test -n "$YACC"; then
7369 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_prog_YACC="$ac_prog"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7382 done
7383 done
7384 IFS=$as_save_IFS
7388 YACC=$ac_cv_prog_YACC
7389 if test -n "$YACC"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7391 $as_echo "$YACC" >&6; }
7392 else
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7398 test -n "$YACC" && break
7399 done
7400 test -n "$YACC" || YACC="$MISSING bison -y"
7402 case " $build_configdirs " in
7403 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7404 esac
7406 for ac_prog in bison
7408 # Extract the first word of "$ac_prog", so it can be a program name with args.
7409 set dummy $ac_prog; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if test "${ac_cv_prog_BISON+set}" = set; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415 if test -n "$BISON"; then
7416 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_prog_BISON="$ac_prog"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7429 done
7430 done
7431 IFS=$as_save_IFS
7435 BISON=$ac_cv_prog_BISON
7436 if test -n "$BISON"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7438 $as_echo "$BISON" >&6; }
7439 else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7445 test -n "$BISON" && break
7446 done
7447 test -n "$BISON" || BISON="$MISSING bison"
7449 case " $build_configdirs " in
7450 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7451 esac
7453 for ac_prog in gm4 gnum4 m4
7455 # Extract the first word of "$ac_prog", so it can be a program name with args.
7456 set dummy $ac_prog; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if test "${ac_cv_prog_M4+set}" = set; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$M4"; then
7463 ac_cv_prog_M4="$M4" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_M4="$ac_prog"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7476 done
7477 done
7478 IFS=$as_save_IFS
7482 M4=$ac_cv_prog_M4
7483 if test -n "$M4"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7485 $as_echo "$M4" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7492 test -n "$M4" && break
7493 done
7494 test -n "$M4" || M4="$MISSING m4"
7496 case " $build_configdirs " in
7497 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7498 esac
7500 for ac_prog in flex lex
7502 # Extract the first word of "$ac_prog", so it can be a program name with args.
7503 set dummy $ac_prog; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if test "${ac_cv_prog_LEX+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 if test -n "$LEX"; then
7510 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7511 else
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_prog_LEX="$ac_prog"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7523 done
7524 done
7525 IFS=$as_save_IFS
7529 LEX=$ac_cv_prog_LEX
7530 if test -n "$LEX"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7532 $as_echo "$LEX" >&6; }
7533 else
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7539 test -n "$LEX" && break
7540 done
7541 test -n "$LEX" || LEX="$MISSING flex"
7543 case " $build_configdirs " in
7544 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7545 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7546 esac
7548 for ac_prog in flex
7550 # Extract the first word of "$ac_prog", so it can be a program name with args.
7551 set dummy $ac_prog; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_prog_FLEX+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 if test -n "$FLEX"; then
7558 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_prog_FLEX="$ac_prog"
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7571 done
7572 done
7573 IFS=$as_save_IFS
7577 FLEX=$ac_cv_prog_FLEX
7578 if test -n "$FLEX"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7580 $as_echo "$FLEX" >&6; }
7581 else
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7587 test -n "$FLEX" && break
7588 done
7589 test -n "$FLEX" || FLEX="$MISSING flex"
7591 case " $build_configdirs " in
7592 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7593 esac
7595 for ac_prog in makeinfo
7597 # Extract the first word of "$ac_prog", so it can be a program name with args.
7598 set dummy $ac_prog; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 if test -n "$MAKEINFO"; then
7605 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614 ac_cv_prog_MAKEINFO="$ac_prog"
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 break 2
7618 done
7619 done
7620 IFS=$as_save_IFS
7624 MAKEINFO=$ac_cv_prog_MAKEINFO
7625 if test -n "$MAKEINFO"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7627 $as_echo "$MAKEINFO" >&6; }
7628 else
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7634 test -n "$MAKEINFO" && break
7635 done
7636 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7638 case " $build_configdirs " in
7639 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7642 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7643 # higher, else we use the "missing" dummy.
7644 if ${MAKEINFO} --version \
7645 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7647 else
7648 MAKEINFO="$MISSING makeinfo"
7652 esac
7654 # FIXME: expect and dejagnu may become build tools?
7656 for ac_prog in expect
7658 # Extract the first word of "$ac_prog", so it can be a program name with args.
7659 set dummy $ac_prog; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 if test -n "$EXPECT"; then
7666 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_EXPECT="$ac_prog"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7679 done
7680 done
7681 IFS=$as_save_IFS
7685 EXPECT=$ac_cv_prog_EXPECT
7686 if test -n "$EXPECT"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7688 $as_echo "$EXPECT" >&6; }
7689 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7695 test -n "$EXPECT" && break
7696 done
7697 test -n "$EXPECT" || EXPECT="expect"
7699 case " $configdirs " in
7700 *" expect "*)
7701 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7703 esac
7705 for ac_prog in runtest
7707 # Extract the first word of "$ac_prog", so it can be a program name with args.
7708 set dummy $ac_prog; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 if test -n "$RUNTEST"; then
7715 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7724 ac_cv_prog_RUNTEST="$ac_prog"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7728 done
7729 done
7730 IFS=$as_save_IFS
7734 RUNTEST=$ac_cv_prog_RUNTEST
7735 if test -n "$RUNTEST"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7737 $as_echo "$RUNTEST" >&6; }
7738 else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7744 test -n "$RUNTEST" && break
7745 done
7746 test -n "$RUNTEST" || RUNTEST="runtest"
7748 case " $configdirs " in
7749 *" dejagnu "*)
7750 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7752 esac
7755 # Host tools.
7756 ncn_tool_prefix=
7757 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7758 ncn_target_tool_prefix=
7759 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7763 if test -n "$AR"; then
7764 ac_cv_prog_AR=$AR
7765 elif test -n "$ac_cv_prog_AR"; then
7766 AR=$ac_cv_prog_AR
7769 if test -n "$ac_cv_prog_AR"; then
7770 for ncn_progname in ar; do
7771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7772 set dummy ${ncn_progname}; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if test "${ac_cv_prog_AR+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 if test -n "$AR"; then
7779 ac_cv_prog_AR="$AR" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7788 ac_cv_prog_AR="${ncn_progname}"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7792 done
7793 done
7794 IFS=$as_save_IFS
7798 AR=$ac_cv_prog_AR
7799 if test -n "$AR"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7801 $as_echo "$AR" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7808 done
7811 for ncn_progname in ar; do
7812 if test -n "$ncn_tool_prefix"; then
7813 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7814 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if test "${ac_cv_prog_AR+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 if test -n "$AR"; then
7821 ac_cv_prog_AR="$AR" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7830 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7834 done
7835 done
7836 IFS=$as_save_IFS
7840 AR=$ac_cv_prog_AR
7841 if test -n "$AR"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7843 $as_echo "$AR" >&6; }
7844 else
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7851 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7853 set dummy ${ncn_progname}; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_prog_AR+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 if test -n "$AR"; then
7860 ac_cv_prog_AR="$AR" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869 ac_cv_prog_AR="${ncn_progname}"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7873 done
7874 done
7875 IFS=$as_save_IFS
7879 AR=$ac_cv_prog_AR
7880 if test -n "$AR"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7882 $as_echo "$AR" >&6; }
7883 else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7890 test -n "$ac_cv_prog_AR" && break
7891 done
7893 if test -z "$ac_cv_prog_AR" ; then
7894 set dummy ar
7895 if test $build = $host ; then
7896 AR="$2"
7897 else
7898 AR="${ncn_tool_prefix}$2"
7904 if test -n "$AS"; then
7905 ac_cv_prog_AS=$AS
7906 elif test -n "$ac_cv_prog_AS"; then
7907 AS=$ac_cv_prog_AS
7910 if test -n "$ac_cv_prog_AS"; then
7911 for ncn_progname in as; do
7912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7913 set dummy ${ncn_progname}; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if test "${ac_cv_prog_AS+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$AS"; then
7920 ac_cv_prog_AS="$AS" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_prog_AS="${ncn_progname}"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7933 done
7934 done
7935 IFS=$as_save_IFS
7939 AS=$ac_cv_prog_AS
7940 if test -n "$AS"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7942 $as_echo "$AS" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7949 done
7952 for ncn_progname in as; do
7953 if test -n "$ncn_tool_prefix"; then
7954 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7955 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_AS+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 if test -n "$AS"; then
7962 ac_cv_prog_AS="$AS" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7975 done
7976 done
7977 IFS=$as_save_IFS
7981 AS=$ac_cv_prog_AS
7982 if test -n "$AS"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7984 $as_echo "$AS" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7992 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7994 set dummy ${ncn_progname}; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if test "${ac_cv_prog_AS+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 if test -n "$AS"; then
8001 ac_cv_prog_AS="$AS" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8006 IFS=$as_save_IFS
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8010 ac_cv_prog_AS="${ncn_progname}"
8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 break 2
8014 done
8015 done
8016 IFS=$as_save_IFS
8020 AS=$ac_cv_prog_AS
8021 if test -n "$AS"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8023 $as_echo "$AS" >&6; }
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8031 test -n "$ac_cv_prog_AS" && break
8032 done
8034 if test -z "$ac_cv_prog_AS" ; then
8035 set dummy as
8036 if test $build = $host ; then
8037 AS="$2"
8038 else
8039 AS="${ncn_tool_prefix}$2"
8045 if test -n "$DLLTOOL"; then
8046 ac_cv_prog_DLLTOOL=$DLLTOOL
8047 elif test -n "$ac_cv_prog_DLLTOOL"; then
8048 DLLTOOL=$ac_cv_prog_DLLTOOL
8051 if test -n "$ac_cv_prog_DLLTOOL"; then
8052 for ncn_progname in dlltool; do
8053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8054 set dummy ${ncn_progname}; ac_word=$2
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056 $as_echo_n "checking for $ac_word... " >&6; }
8057 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 if test -n "$DLLTOOL"; then
8061 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8062 else
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8070 ac_cv_prog_DLLTOOL="${ncn_progname}"
8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 break 2
8074 done
8075 done
8076 IFS=$as_save_IFS
8080 DLLTOOL=$ac_cv_prog_DLLTOOL
8081 if test -n "$DLLTOOL"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8083 $as_echo "$DLLTOOL" >&6; }
8084 else
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8090 done
8093 for ncn_progname in dlltool; do
8094 if test -n "$ncn_tool_prefix"; then
8095 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8096 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8098 $as_echo_n "checking for $ac_word... " >&6; }
8099 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 if test -n "$DLLTOOL"; then
8103 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8104 else
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH
8108 IFS=$as_save_IFS
8109 test -z "$as_dir" && as_dir=.
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8112 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 break 2
8116 done
8117 done
8118 IFS=$as_save_IFS
8122 DLLTOOL=$ac_cv_prog_DLLTOOL
8123 if test -n "$DLLTOOL"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8125 $as_echo "$DLLTOOL" >&6; }
8126 else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8133 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8135 set dummy ${ncn_progname}; ac_word=$2
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 $as_echo_n "checking for $ac_word... " >&6; }
8138 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 if test -n "$DLLTOOL"; then
8142 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8143 else
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8147 IFS=$as_save_IFS
8148 test -z "$as_dir" && as_dir=.
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8151 ac_cv_prog_DLLTOOL="${ncn_progname}"
8152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8153 break 2
8155 done
8156 done
8157 IFS=$as_save_IFS
8161 DLLTOOL=$ac_cv_prog_DLLTOOL
8162 if test -n "$DLLTOOL"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8164 $as_echo "$DLLTOOL" >&6; }
8165 else
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }
8172 test -n "$ac_cv_prog_DLLTOOL" && break
8173 done
8175 if test -z "$ac_cv_prog_DLLTOOL" ; then
8176 set dummy dlltool
8177 if test $build = $host ; then
8178 DLLTOOL="$2"
8179 else
8180 DLLTOOL="${ncn_tool_prefix}$2"
8186 if test -n "$LD"; then
8187 ac_cv_prog_LD=$LD
8188 elif test -n "$ac_cv_prog_LD"; then
8189 LD=$ac_cv_prog_LD
8192 if test -n "$ac_cv_prog_LD"; then
8193 for ncn_progname in ld; do
8194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8195 set dummy ${ncn_progname}; ac_word=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if test "${ac_cv_prog_LD+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 if test -n "$LD"; then
8202 ac_cv_prog_LD="$LD" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8211 ac_cv_prog_LD="${ncn_progname}"
8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8215 done
8216 done
8217 IFS=$as_save_IFS
8221 LD=$ac_cv_prog_LD
8222 if test -n "$LD"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8224 $as_echo "$LD" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8231 done
8234 for ncn_progname in ld; do
8235 if test -n "$ncn_tool_prefix"; then
8236 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8237 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if test "${ac_cv_prog_LD+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 if test -n "$LD"; then
8244 ac_cv_prog_LD="$LD" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8253 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8257 done
8258 done
8259 IFS=$as_save_IFS
8263 LD=$ac_cv_prog_LD
8264 if test -n "$LD"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8266 $as_echo "$LD" >&6; }
8267 else
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8274 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8276 set dummy ${ncn_progname}; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if test "${ac_cv_prog_LD+set}" = set; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 if test -n "$LD"; then
8283 ac_cv_prog_LD="$LD" # Let the user override the test.
8284 else
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8292 ac_cv_prog_LD="${ncn_progname}"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 break 2
8296 done
8297 done
8298 IFS=$as_save_IFS
8302 LD=$ac_cv_prog_LD
8303 if test -n "$LD"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8305 $as_echo "$LD" >&6; }
8306 else
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8313 test -n "$ac_cv_prog_LD" && break
8314 done
8316 if test -z "$ac_cv_prog_LD" ; then
8317 set dummy ld
8318 if test $build = $host ; then
8319 LD="$2"
8320 else
8321 LD="${ncn_tool_prefix}$2"
8327 if test -n "$LIPO"; then
8328 ac_cv_prog_LIPO=$LIPO
8329 elif test -n "$ac_cv_prog_LIPO"; then
8330 LIPO=$ac_cv_prog_LIPO
8333 if test -n "$ac_cv_prog_LIPO"; then
8334 for ncn_progname in lipo; do
8335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8336 set dummy ${ncn_progname}; ac_word=$2
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 $as_echo_n "checking for $ac_word... " >&6; }
8339 if test "${ac_cv_prog_LIPO+set}" = set; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 if test -n "$LIPO"; then
8343 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8344 else
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8352 ac_cv_prog_LIPO="${ncn_progname}"
8353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 break 2
8356 done
8357 done
8358 IFS=$as_save_IFS
8362 LIPO=$ac_cv_prog_LIPO
8363 if test -n "$LIPO"; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8365 $as_echo "$LIPO" >&6; }
8366 else
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8372 done
8375 for ncn_progname in lipo; do
8376 if test -n "$ncn_tool_prefix"; then
8377 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8378 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if test "${ac_cv_prog_LIPO+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$LIPO"; then
8385 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8398 done
8399 done
8400 IFS=$as_save_IFS
8404 LIPO=$ac_cv_prog_LIPO
8405 if test -n "$LIPO"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8407 $as_echo "$LIPO" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8415 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8417 set dummy ${ncn_progname}; ac_word=$2
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419 $as_echo_n "checking for $ac_word... " >&6; }
8420 if test "${ac_cv_prog_LIPO+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 if test -n "$LIPO"; then
8424 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8425 else
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8433 ac_cv_prog_LIPO="${ncn_progname}"
8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 break 2
8437 done
8438 done
8439 IFS=$as_save_IFS
8443 LIPO=$ac_cv_prog_LIPO
8444 if test -n "$LIPO"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8446 $as_echo "$LIPO" >&6; }
8447 else
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8454 test -n "$ac_cv_prog_LIPO" && break
8455 done
8457 if test -z "$ac_cv_prog_LIPO" ; then
8458 set dummy lipo
8459 if test $build = $host ; then
8460 LIPO="$2"
8461 else
8462 LIPO="${ncn_tool_prefix}$2"
8468 if test -n "$NM"; then
8469 ac_cv_prog_NM=$NM
8470 elif test -n "$ac_cv_prog_NM"; then
8471 NM=$ac_cv_prog_NM
8474 if test -n "$ac_cv_prog_NM"; then
8475 for ncn_progname in nm; do
8476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8477 set dummy ${ncn_progname}; ac_word=$2
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 $as_echo_n "checking for $ac_word... " >&6; }
8480 if test "${ac_cv_prog_NM+set}" = set; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 if test -n "$NM"; then
8484 ac_cv_prog_NM="$NM" # Let the user override the test.
8485 else
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH
8489 IFS=$as_save_IFS
8490 test -z "$as_dir" && as_dir=.
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8493 ac_cv_prog_NM="${ncn_progname}"
8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495 break 2
8497 done
8498 done
8499 IFS=$as_save_IFS
8503 NM=$ac_cv_prog_NM
8504 if test -n "$NM"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8506 $as_echo "$NM" >&6; }
8507 else
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8513 done
8516 for ncn_progname in nm; do
8517 if test -n "$ncn_tool_prefix"; then
8518 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8519 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521 $as_echo_n "checking for $ac_word... " >&6; }
8522 if test "${ac_cv_prog_NM+set}" = set; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 if test -n "$NM"; then
8526 ac_cv_prog_NM="$NM" # Let the user override the test.
8527 else
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8531 IFS=$as_save_IFS
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8535 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 break 2
8539 done
8540 done
8541 IFS=$as_save_IFS
8545 NM=$ac_cv_prog_NM
8546 if test -n "$NM"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8548 $as_echo "$NM" >&6; }
8549 else
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8556 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8558 set dummy ${ncn_progname}; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if test "${ac_cv_prog_NM+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 if test -n "$NM"; then
8565 ac_cv_prog_NM="$NM" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574 ac_cv_prog_NM="${ncn_progname}"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8578 done
8579 done
8580 IFS=$as_save_IFS
8584 NM=$ac_cv_prog_NM
8585 if test -n "$NM"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8587 $as_echo "$NM" >&6; }
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8595 test -n "$ac_cv_prog_NM" && break
8596 done
8598 if test -z "$ac_cv_prog_NM" ; then
8599 set dummy nm
8600 if test $build = $host ; then
8601 NM="$2"
8602 else
8603 NM="${ncn_tool_prefix}$2"
8609 if test -n "$RANLIB"; then
8610 ac_cv_prog_RANLIB=$RANLIB
8611 elif test -n "$ac_cv_prog_RANLIB"; then
8612 RANLIB=$ac_cv_prog_RANLIB
8615 if test -n "$ac_cv_prog_RANLIB"; then
8616 for ncn_progname in ranlib; do
8617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8618 set dummy ${ncn_progname}; ac_word=$2
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 $as_echo_n "checking for $ac_word... " >&6; }
8621 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 if test -n "$RANLIB"; then
8625 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8626 else
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8634 ac_cv_prog_RANLIB="${ncn_progname}"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8638 done
8639 done
8640 IFS=$as_save_IFS
8644 RANLIB=$ac_cv_prog_RANLIB
8645 if test -n "$RANLIB"; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8647 $as_echo "$RANLIB" >&6; }
8648 else
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8654 done
8657 for ncn_progname in ranlib; do
8658 if test -n "$ncn_tool_prefix"; then
8659 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8660 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 $as_echo_n "checking for $ac_word... " >&6; }
8663 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 if test -n "$RANLIB"; then
8667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8668 else
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670 for as_dir in $PATH
8672 IFS=$as_save_IFS
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8676 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8678 break 2
8680 done
8681 done
8682 IFS=$as_save_IFS
8686 RANLIB=$ac_cv_prog_RANLIB
8687 if test -n "$RANLIB"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8689 $as_echo "$RANLIB" >&6; }
8690 else
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8697 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8699 set dummy ${ncn_progname}; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 if test -n "$RANLIB"; then
8706 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8707 else
8708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709 for as_dir in $PATH
8711 IFS=$as_save_IFS
8712 test -z "$as_dir" && as_dir=.
8713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8715 ac_cv_prog_RANLIB="${ncn_progname}"
8716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8717 break 2
8719 done
8720 done
8721 IFS=$as_save_IFS
8725 RANLIB=$ac_cv_prog_RANLIB
8726 if test -n "$RANLIB"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8728 $as_echo "$RANLIB" >&6; }
8729 else
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8736 test -n "$ac_cv_prog_RANLIB" && break
8737 done
8739 if test -z "$ac_cv_prog_RANLIB" ; then
8740 RANLIB="true"
8745 if test -n "$STRIP"; then
8746 ac_cv_prog_STRIP=$STRIP
8747 elif test -n "$ac_cv_prog_STRIP"; then
8748 STRIP=$ac_cv_prog_STRIP
8751 if test -n "$ac_cv_prog_STRIP"; then
8752 for ncn_progname in strip; do
8753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8754 set dummy ${ncn_progname}; ac_word=$2
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8756 $as_echo_n "checking for $ac_word... " >&6; }
8757 if test "${ac_cv_prog_STRIP+set}" = set; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 if test -n "$STRIP"; then
8761 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8762 else
8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764 for as_dir in $PATH
8766 IFS=$as_save_IFS
8767 test -z "$as_dir" && as_dir=.
8768 for ac_exec_ext in '' $ac_executable_extensions; do
8769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8770 ac_cv_prog_STRIP="${ncn_progname}"
8771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8772 break 2
8774 done
8775 done
8776 IFS=$as_save_IFS
8780 STRIP=$ac_cv_prog_STRIP
8781 if test -n "$STRIP"; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8783 $as_echo "$STRIP" >&6; }
8784 else
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786 $as_echo "no" >&6; }
8790 done
8793 for ncn_progname in strip; do
8794 if test -n "$ncn_tool_prefix"; then
8795 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8796 set dummy ${ncn_tool_prefix}${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_STRIP+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 if test -n "$STRIP"; then
8803 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ncn_tool_prefix}${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 STRIP=$ac_cv_prog_STRIP
8823 if test -n "$STRIP"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8825 $as_echo "$STRIP" >&6; }
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8833 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8835 set dummy ${ncn_progname}; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if test "${ac_cv_prog_STRIP+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 if test -n "$STRIP"; then
8842 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851 ac_cv_prog_STRIP="${ncn_progname}"
8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 break 2
8855 done
8856 done
8857 IFS=$as_save_IFS
8861 STRIP=$ac_cv_prog_STRIP
8862 if test -n "$STRIP"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8864 $as_echo "$STRIP" >&6; }
8865 else
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8872 test -n "$ac_cv_prog_STRIP" && break
8873 done
8875 if test -z "$ac_cv_prog_STRIP" ; then
8876 STRIP="true"
8881 if test -n "$WINDRES"; then
8882 ac_cv_prog_WINDRES=$WINDRES
8883 elif test -n "$ac_cv_prog_WINDRES"; then
8884 WINDRES=$ac_cv_prog_WINDRES
8887 if test -n "$ac_cv_prog_WINDRES"; then
8888 for ncn_progname in windres; do
8889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8890 set dummy ${ncn_progname}; ac_word=$2
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892 $as_echo_n "checking for $ac_word... " >&6; }
8893 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 if test -n "$WINDRES"; then
8897 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8898 else
8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 for as_dir in $PATH
8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
8905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8906 ac_cv_prog_WINDRES="${ncn_progname}"
8907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 break 2
8910 done
8911 done
8912 IFS=$as_save_IFS
8916 WINDRES=$ac_cv_prog_WINDRES
8917 if test -n "$WINDRES"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8919 $as_echo "$WINDRES" >&6; }
8920 else
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922 $as_echo "no" >&6; }
8926 done
8929 for ncn_progname in windres; do
8930 if test -n "$ncn_tool_prefix"; then
8931 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8932 set dummy ${ncn_tool_prefix}${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_WINDRES+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 if test -n "$WINDRES"; then
8939 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${ncn_tool_prefix}${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 WINDRES=$ac_cv_prog_WINDRES
8959 if test -n "$WINDRES"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8961 $as_echo "$WINDRES" >&6; }
8962 else
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8969 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8971 set dummy ${ncn_progname}; ac_word=$2
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973 $as_echo_n "checking for $ac_word... " >&6; }
8974 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 if test -n "$WINDRES"; then
8978 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8979 else
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $PATH
8983 IFS=$as_save_IFS
8984 test -z "$as_dir" && as_dir=.
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8987 ac_cv_prog_WINDRES="${ncn_progname}"
8988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989 break 2
8991 done
8992 done
8993 IFS=$as_save_IFS
8997 WINDRES=$ac_cv_prog_WINDRES
8998 if test -n "$WINDRES"; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9000 $as_echo "$WINDRES" >&6; }
9001 else
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9008 test -n "$ac_cv_prog_WINDRES" && break
9009 done
9011 if test -z "$ac_cv_prog_WINDRES" ; then
9012 set dummy windres
9013 if test $build = $host ; then
9014 WINDRES="$2"
9015 else
9016 WINDRES="${ncn_tool_prefix}$2"
9022 if test -n "$WINDMC"; then
9023 ac_cv_prog_WINDMC=$WINDMC
9024 elif test -n "$ac_cv_prog_WINDMC"; then
9025 WINDMC=$ac_cv_prog_WINDMC
9028 if test -n "$ac_cv_prog_WINDMC"; then
9029 for ncn_progname in windmc; do
9030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9031 set dummy ${ncn_progname}; ac_word=$2
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033 $as_echo_n "checking for $ac_word... " >&6; }
9034 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 if test -n "$WINDMC"; then
9038 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9039 else
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041 for as_dir in $PATH
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9047 ac_cv_prog_WINDMC="${ncn_progname}"
9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9049 break 2
9051 done
9052 done
9053 IFS=$as_save_IFS
9057 WINDMC=$ac_cv_prog_WINDMC
9058 if test -n "$WINDMC"; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9060 $as_echo "$WINDMC" >&6; }
9061 else
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9067 done
9070 for ncn_progname in windmc; do
9071 if test -n "$ncn_tool_prefix"; then
9072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9073 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075 $as_echo_n "checking for $ac_word... " >&6; }
9076 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9079 if test -n "$WINDMC"; then
9080 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9081 else
9082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083 for as_dir in $PATH
9085 IFS=$as_save_IFS
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9089 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 break 2
9093 done
9094 done
9095 IFS=$as_save_IFS
9099 WINDMC=$ac_cv_prog_WINDMC
9100 if test -n "$WINDMC"; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9102 $as_echo "$WINDMC" >&6; }
9103 else
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9110 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9112 set dummy ${ncn_progname}; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 if test -n "$WINDMC"; then
9119 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9120 else
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 for as_dir in $PATH
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128 ac_cv_prog_WINDMC="${ncn_progname}"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9132 done
9133 done
9134 IFS=$as_save_IFS
9138 WINDMC=$ac_cv_prog_WINDMC
9139 if test -n "$WINDMC"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9141 $as_echo "$WINDMC" >&6; }
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9149 test -n "$ac_cv_prog_WINDMC" && break
9150 done
9152 if test -z "$ac_cv_prog_WINDMC" ; then
9153 set dummy windmc
9154 if test $build = $host ; then
9155 WINDMC="$2"
9156 else
9157 WINDMC="${ncn_tool_prefix}$2"
9163 if test -n "$OBJCOPY"; then
9164 ac_cv_prog_OBJCOPY=$OBJCOPY
9165 elif test -n "$ac_cv_prog_OBJCOPY"; then
9166 OBJCOPY=$ac_cv_prog_OBJCOPY
9169 if test -n "$ac_cv_prog_OBJCOPY"; then
9170 for ncn_progname in objcopy; do
9171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9172 set dummy ${ncn_progname}; ac_word=$2
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174 $as_echo_n "checking for $ac_word... " >&6; }
9175 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 if test -n "$OBJCOPY"; then
9179 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9180 else
9181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9182 for as_dir in $PATH
9184 IFS=$as_save_IFS
9185 test -z "$as_dir" && as_dir=.
9186 for ac_exec_ext in '' $ac_executable_extensions; do
9187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9188 ac_cv_prog_OBJCOPY="${ncn_progname}"
9189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9190 break 2
9192 done
9193 done
9194 IFS=$as_save_IFS
9198 OBJCOPY=$ac_cv_prog_OBJCOPY
9199 if test -n "$OBJCOPY"; then
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9201 $as_echo "$OBJCOPY" >&6; }
9202 else
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204 $as_echo "no" >&6; }
9208 done
9211 for ncn_progname in objcopy; do
9212 if test -n "$ncn_tool_prefix"; then
9213 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9214 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216 $as_echo_n "checking for $ac_word... " >&6; }
9217 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 if test -n "$OBJCOPY"; then
9221 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9222 else
9223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9224 for as_dir in $PATH
9226 IFS=$as_save_IFS
9227 test -z "$as_dir" && as_dir=.
9228 for ac_exec_ext in '' $ac_executable_extensions; do
9229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9230 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9232 break 2
9234 done
9235 done
9236 IFS=$as_save_IFS
9240 OBJCOPY=$ac_cv_prog_OBJCOPY
9241 if test -n "$OBJCOPY"; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9243 $as_echo "$OBJCOPY" >&6; }
9244 else
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9251 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9253 set dummy ${ncn_progname}; ac_word=$2
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9255 $as_echo_n "checking for $ac_word... " >&6; }
9256 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 if test -n "$OBJCOPY"; then
9260 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9261 else
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 for as_dir in $PATH
9265 IFS=$as_save_IFS
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9269 ac_cv_prog_OBJCOPY="${ncn_progname}"
9270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 break 2
9273 done
9274 done
9275 IFS=$as_save_IFS
9279 OBJCOPY=$ac_cv_prog_OBJCOPY
9280 if test -n "$OBJCOPY"; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9282 $as_echo "$OBJCOPY" >&6; }
9283 else
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285 $as_echo "no" >&6; }
9290 test -n "$ac_cv_prog_OBJCOPY" && break
9291 done
9293 if test -z "$ac_cv_prog_OBJCOPY" ; then
9294 set dummy objcopy
9295 if test $build = $host ; then
9296 OBJCOPY="$2"
9297 else
9298 OBJCOPY="${ncn_tool_prefix}$2"
9304 if test -n "$OBJDUMP"; then
9305 ac_cv_prog_OBJDUMP=$OBJDUMP
9306 elif test -n "$ac_cv_prog_OBJDUMP"; then
9307 OBJDUMP=$ac_cv_prog_OBJDUMP
9310 if test -n "$ac_cv_prog_OBJDUMP"; then
9311 for ncn_progname in objdump; do
9312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9313 set dummy ${ncn_progname}; ac_word=$2
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315 $as_echo_n "checking for $ac_word... " >&6; }
9316 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 if test -n "$OBJDUMP"; then
9320 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9321 else
9322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 for as_dir in $PATH
9325 IFS=$as_save_IFS
9326 test -z "$as_dir" && as_dir=.
9327 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9329 ac_cv_prog_OBJDUMP="${ncn_progname}"
9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 break 2
9333 done
9334 done
9335 IFS=$as_save_IFS
9339 OBJDUMP=$ac_cv_prog_OBJDUMP
9340 if test -n "$OBJDUMP"; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9342 $as_echo "$OBJDUMP" >&6; }
9343 else
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345 $as_echo "no" >&6; }
9349 done
9352 for ncn_progname in objdump; do
9353 if test -n "$ncn_tool_prefix"; then
9354 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9355 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9357 $as_echo_n "checking for $ac_word... " >&6; }
9358 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9359 $as_echo_n "(cached) " >&6
9360 else
9361 if test -n "$OBJDUMP"; then
9362 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9363 else
9364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9365 for as_dir in $PATH
9367 IFS=$as_save_IFS
9368 test -z "$as_dir" && as_dir=.
9369 for ac_exec_ext in '' $ac_executable_extensions; do
9370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9371 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9373 break 2
9375 done
9376 done
9377 IFS=$as_save_IFS
9381 OBJDUMP=$ac_cv_prog_OBJDUMP
9382 if test -n "$OBJDUMP"; then
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9384 $as_echo "$OBJDUMP" >&6; }
9385 else
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387 $as_echo "no" >&6; }
9392 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9394 set dummy ${ncn_progname}; ac_word=$2
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9396 $as_echo_n "checking for $ac_word... " >&6; }
9397 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9398 $as_echo_n "(cached) " >&6
9399 else
9400 if test -n "$OBJDUMP"; then
9401 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9402 else
9403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9404 for as_dir in $PATH
9406 IFS=$as_save_IFS
9407 test -z "$as_dir" && as_dir=.
9408 for ac_exec_ext in '' $ac_executable_extensions; do
9409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9410 ac_cv_prog_OBJDUMP="${ncn_progname}"
9411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9412 break 2
9414 done
9415 done
9416 IFS=$as_save_IFS
9420 OBJDUMP=$ac_cv_prog_OBJDUMP
9421 if test -n "$OBJDUMP"; then
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9423 $as_echo "$OBJDUMP" >&6; }
9424 else
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 $as_echo "no" >&6; }
9431 test -n "$ac_cv_prog_OBJDUMP" && break
9432 done
9434 if test -z "$ac_cv_prog_OBJDUMP" ; then
9435 set dummy objdump
9436 if test $build = $host ; then
9437 OBJDUMP="$2"
9438 else
9439 OBJDUMP="${ncn_tool_prefix}$2"
9445 if test -n "$READELF"; then
9446 ac_cv_prog_READELF=$READELF
9447 elif test -n "$ac_cv_prog_READELF"; then
9448 READELF=$ac_cv_prog_READELF
9451 if test -n "$ac_cv_prog_READELF"; then
9452 for ncn_progname in readelf; do
9453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9454 set dummy ${ncn_progname}; ac_word=$2
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456 $as_echo_n "checking for $ac_word... " >&6; }
9457 if test "${ac_cv_prog_READELF+set}" = set; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 if test -n "$READELF"; then
9461 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9462 else
9463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9464 for as_dir in $PATH
9466 IFS=$as_save_IFS
9467 test -z "$as_dir" && as_dir=.
9468 for ac_exec_ext in '' $ac_executable_extensions; do
9469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9470 ac_cv_prog_READELF="${ncn_progname}"
9471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9472 break 2
9474 done
9475 done
9476 IFS=$as_save_IFS
9480 READELF=$ac_cv_prog_READELF
9481 if test -n "$READELF"; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9483 $as_echo "$READELF" >&6; }
9484 else
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9490 done
9493 for ncn_progname in readelf; do
9494 if test -n "$ncn_tool_prefix"; then
9495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9496 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9498 $as_echo_n "checking for $ac_word... " >&6; }
9499 if test "${ac_cv_prog_READELF+set}" = set; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 if test -n "$READELF"; then
9503 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9504 else
9505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506 for as_dir in $PATH
9508 IFS=$as_save_IFS
9509 test -z "$as_dir" && as_dir=.
9510 for ac_exec_ext in '' $ac_executable_extensions; do
9511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9512 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9514 break 2
9516 done
9517 done
9518 IFS=$as_save_IFS
9522 READELF=$ac_cv_prog_READELF
9523 if test -n "$READELF"; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9525 $as_echo "$READELF" >&6; }
9526 else
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9533 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9535 set dummy ${ncn_progname}; ac_word=$2
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9537 $as_echo_n "checking for $ac_word... " >&6; }
9538 if test "${ac_cv_prog_READELF+set}" = set; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 if test -n "$READELF"; then
9542 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9543 else
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in $PATH
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9551 ac_cv_prog_READELF="${ncn_progname}"
9552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9555 done
9556 done
9557 IFS=$as_save_IFS
9561 READELF=$ac_cv_prog_READELF
9562 if test -n "$READELF"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9564 $as_echo "$READELF" >&6; }
9565 else
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9572 test -n "$ac_cv_prog_READELF" && break
9573 done
9575 if test -z "$ac_cv_prog_READELF" ; then
9576 set dummy readelf
9577 if test $build = $host ; then
9578 READELF="$2"
9579 else
9580 READELF="${ncn_tool_prefix}$2"
9589 # Target tools.
9591 # Check whether --with-build-time-tools was given.
9592 if test "${with_build_time_tools+set}" = set; then :
9593 withval=$with_build_time_tools; case x"$withval" in
9594 x/*) ;;
9596 with_build_time_tools=
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9598 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9600 esac
9601 else
9602 with_build_time_tools=
9608 if test -n "$CC_FOR_TARGET"; then
9609 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9610 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9611 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9614 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9615 for ncn_progname in cc gcc; do
9616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9617 set dummy ${ncn_progname}; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 if test -n "$CC_FOR_TARGET"; then
9624 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9625 else
9626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 for as_dir in $PATH
9629 IFS=$as_save_IFS
9630 test -z "$as_dir" && as_dir=.
9631 for ac_exec_ext in '' $ac_executable_extensions; do
9632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9633 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9635 break 2
9637 done
9638 done
9639 IFS=$as_save_IFS
9643 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9644 if test -n "$CC_FOR_TARGET"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9646 $as_echo "$CC_FOR_TARGET" >&6; }
9647 else
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9653 done
9656 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9657 for ncn_progname in cc gcc; do
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9659 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9660 if test -x $with_build_time_tools/${ncn_progname}; then
9661 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9663 $as_echo "yes" >&6; }
9664 break
9665 else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9669 done
9672 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9673 for ncn_progname in cc gcc; do
9674 if test -n "$ncn_target_tool_prefix"; then
9675 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9676 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 if test -n "$CC_FOR_TARGET"; then
9683 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9684 else
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 for as_dir in $PATH
9688 IFS=$as_save_IFS
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9692 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 break 2
9696 done
9697 done
9698 IFS=$as_save_IFS
9702 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9703 if test -n "$CC_FOR_TARGET"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9705 $as_echo "$CC_FOR_TARGET" >&6; }
9706 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9713 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9715 set dummy ${ncn_progname}; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 if test -n "$CC_FOR_TARGET"; then
9722 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9723 else
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 for as_dir in $PATH
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9731 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733 break 2
9735 done
9736 done
9737 IFS=$as_save_IFS
9741 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9742 if test -n "$CC_FOR_TARGET"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9744 $as_echo "$CC_FOR_TARGET" >&6; }
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9752 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9753 done
9756 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9757 set dummy cc gcc
9758 if test $build = $target ; then
9759 CC_FOR_TARGET="$2"
9760 else
9761 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9763 else
9764 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9769 if test -n "$CXX_FOR_TARGET"; then
9770 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9771 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9772 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9775 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9776 for ncn_progname in c++ g++ cxx gxx; do
9777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9778 set dummy ${ncn_progname}; ac_word=$2
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9780 $as_echo_n "checking for $ac_word... " >&6; }
9781 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 if test -n "$CXX_FOR_TARGET"; then
9785 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9786 else
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 for as_dir in $PATH
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9794 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9798 done
9799 done
9800 IFS=$as_save_IFS
9804 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9805 if test -n "$CXX_FOR_TARGET"; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9807 $as_echo "$CXX_FOR_TARGET" >&6; }
9808 else
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 $as_echo "no" >&6; }
9814 done
9817 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9818 for ncn_progname in c++ g++ cxx gxx; do
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9820 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9821 if test -x $with_build_time_tools/${ncn_progname}; then
9822 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9824 $as_echo "yes" >&6; }
9825 break
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9830 done
9833 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9834 for ncn_progname in c++ g++ cxx gxx; do
9835 if test -n "$ncn_target_tool_prefix"; then
9836 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9837 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9839 $as_echo_n "checking for $ac_word... " >&6; }
9840 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 if test -n "$CXX_FOR_TARGET"; then
9844 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9845 else
9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in $PATH
9849 IFS=$as_save_IFS
9850 test -z "$as_dir" && as_dir=.
9851 for ac_exec_ext in '' $ac_executable_extensions; do
9852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9853 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9855 break 2
9857 done
9858 done
9859 IFS=$as_save_IFS
9863 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9864 if test -n "$CXX_FOR_TARGET"; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9866 $as_echo "$CXX_FOR_TARGET" >&6; }
9867 else
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869 $as_echo "no" >&6; }
9874 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9876 set dummy ${ncn_progname}; ac_word=$2
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9878 $as_echo_n "checking for $ac_word... " >&6; }
9879 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9880 $as_echo_n "(cached) " >&6
9881 else
9882 if test -n "$CXX_FOR_TARGET"; then
9883 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9884 else
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9892 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 break 2
9896 done
9897 done
9898 IFS=$as_save_IFS
9902 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9903 if test -n "$CXX_FOR_TARGET"; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9905 $as_echo "$CXX_FOR_TARGET" >&6; }
9906 else
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9913 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9914 done
9917 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9918 set dummy c++ g++ cxx gxx
9919 if test $build = $target ; then
9920 CXX_FOR_TARGET="$2"
9921 else
9922 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9924 else
9925 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9930 if test -n "$GCC_FOR_TARGET"; then
9931 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9932 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9933 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9936 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9937 for ncn_progname in gcc; do
9938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9939 set dummy ${ncn_progname}; ac_word=$2
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9941 $as_echo_n "checking for $ac_word... " >&6; }
9942 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9945 if test -n "$GCC_FOR_TARGET"; then
9946 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9947 else
9948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9949 for as_dir in $PATH
9951 IFS=$as_save_IFS
9952 test -z "$as_dir" && as_dir=.
9953 for ac_exec_ext in '' $ac_executable_extensions; do
9954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9955 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9957 break 2
9959 done
9960 done
9961 IFS=$as_save_IFS
9965 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9966 if test -n "$GCC_FOR_TARGET"; then
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9968 $as_echo "$GCC_FOR_TARGET" >&6; }
9969 else
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971 $as_echo "no" >&6; }
9975 done
9978 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9979 for ncn_progname in gcc; do
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9981 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9982 if test -x $with_build_time_tools/${ncn_progname}; then
9983 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9985 $as_echo "yes" >&6; }
9986 break
9987 else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; }
9991 done
9994 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9995 for ncn_progname in gcc; do
9996 if test -n "$ncn_target_tool_prefix"; then
9997 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9998 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 $as_echo_n "checking for $ac_word... " >&6; }
10001 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 if test -n "$GCC_FOR_TARGET"; then
10005 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10006 else
10007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008 for as_dir in $PATH
10010 IFS=$as_save_IFS
10011 test -z "$as_dir" && as_dir=.
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10014 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 break 2
10018 done
10019 done
10020 IFS=$as_save_IFS
10024 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10025 if test -n "$GCC_FOR_TARGET"; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10027 $as_echo "$GCC_FOR_TARGET" >&6; }
10028 else
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 $as_echo "no" >&6; }
10035 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10037 set dummy ${ncn_progname}; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 $as_echo_n "checking for $ac_word... " >&6; }
10040 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 if test -n "$GCC_FOR_TARGET"; then
10044 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10045 else
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10053 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 break 2
10057 done
10058 done
10059 IFS=$as_save_IFS
10063 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10064 if test -n "$GCC_FOR_TARGET"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10066 $as_echo "$GCC_FOR_TARGET" >&6; }
10067 else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10074 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10075 done
10078 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10079 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10080 else
10081 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10086 if test -n "$GCJ_FOR_TARGET"; then
10087 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10088 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10089 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10092 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10093 for ncn_progname in gcj; do
10094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10095 set dummy ${ncn_progname}; ac_word=$2
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 $as_echo_n "checking for $ac_word... " >&6; }
10098 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10099 $as_echo_n "(cached) " >&6
10100 else
10101 if test -n "$GCJ_FOR_TARGET"; then
10102 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10103 else
10104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105 for as_dir in $PATH
10107 IFS=$as_save_IFS
10108 test -z "$as_dir" && as_dir=.
10109 for ac_exec_ext in '' $ac_executable_extensions; do
10110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10111 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 break 2
10115 done
10116 done
10117 IFS=$as_save_IFS
10121 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10122 if test -n "$GCJ_FOR_TARGET"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10124 $as_echo "$GCJ_FOR_TARGET" >&6; }
10125 else
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10131 done
10134 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10135 for ncn_progname in gcj; do
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10137 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10138 if test -x $with_build_time_tools/${ncn_progname}; then
10139 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10141 $as_echo "yes" >&6; }
10142 break
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10147 done
10150 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10151 for ncn_progname in gcj; do
10152 if test -n "$ncn_target_tool_prefix"; then
10153 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10154 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 if test -n "$GCJ_FOR_TARGET"; then
10161 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10162 else
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10170 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 break 2
10174 done
10175 done
10176 IFS=$as_save_IFS
10180 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10181 if test -n "$GCJ_FOR_TARGET"; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10183 $as_echo "$GCJ_FOR_TARGET" >&6; }
10184 else
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10191 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10193 set dummy ${ncn_progname}; ac_word=$2
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10195 $as_echo_n "checking for $ac_word... " >&6; }
10196 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 if test -n "$GCJ_FOR_TARGET"; then
10200 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10201 else
10202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10203 for as_dir in $PATH
10205 IFS=$as_save_IFS
10206 test -z "$as_dir" && as_dir=.
10207 for ac_exec_ext in '' $ac_executable_extensions; do
10208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10209 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10211 break 2
10213 done
10214 done
10215 IFS=$as_save_IFS
10219 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10220 if test -n "$GCJ_FOR_TARGET"; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10222 $as_echo "$GCJ_FOR_TARGET" >&6; }
10223 else
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10230 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10231 done
10234 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10235 set dummy gcj
10236 if test $build = $target ; then
10237 GCJ_FOR_TARGET="$2"
10238 else
10239 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10241 else
10242 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10247 if test -n "$GFORTRAN_FOR_TARGET"; then
10248 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10249 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10250 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10253 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10254 for ncn_progname in gfortran; do
10255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10256 set dummy ${ncn_progname}; ac_word=$2
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258 $as_echo_n "checking for $ac_word... " >&6; }
10259 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 if test -n "$GFORTRAN_FOR_TARGET"; then
10263 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10264 else
10265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $PATH
10268 IFS=$as_save_IFS
10269 test -z "$as_dir" && as_dir=.
10270 for ac_exec_ext in '' $ac_executable_extensions; do
10271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10272 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10274 break 2
10276 done
10277 done
10278 IFS=$as_save_IFS
10282 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10283 if test -n "$GFORTRAN_FOR_TARGET"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10285 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10286 else
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10292 done
10295 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10296 for ncn_progname in gfortran; do
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10298 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10299 if test -x $with_build_time_tools/${ncn_progname}; then
10300 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10302 $as_echo "yes" >&6; }
10303 break
10304 else
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306 $as_echo "no" >&6; }
10308 done
10311 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10312 for ncn_progname in gfortran; do
10313 if test -n "$ncn_target_tool_prefix"; then
10314 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10315 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317 $as_echo_n "checking for $ac_word... " >&6; }
10318 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 if test -n "$GFORTRAN_FOR_TARGET"; then
10322 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10323 else
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325 for as_dir in $PATH
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 break 2
10335 done
10336 done
10337 IFS=$as_save_IFS
10341 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10342 if test -n "$GFORTRAN_FOR_TARGET"; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10344 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10345 else
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347 $as_echo "no" >&6; }
10352 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10354 set dummy ${ncn_progname}; ac_word=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 if test -n "$GFORTRAN_FOR_TARGET"; then
10361 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10362 else
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in $PATH
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10370 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10374 done
10375 done
10376 IFS=$as_save_IFS
10380 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10381 if test -n "$GFORTRAN_FOR_TARGET"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10383 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10391 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10392 done
10395 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10396 set dummy gfortran
10397 if test $build = $target ; then
10398 GFORTRAN_FOR_TARGET="$2"
10399 else
10400 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10402 else
10403 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10408 if test -n "$GOC_FOR_TARGET"; then
10409 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10410 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10411 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10414 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10415 for ncn_progname in gccgo; do
10416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10417 set dummy ${ncn_progname}; ac_word=$2
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10419 $as_echo_n "checking for $ac_word... " >&6; }
10420 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 if test -n "$GOC_FOR_TARGET"; then
10424 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10425 else
10426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427 for as_dir in $PATH
10429 IFS=$as_save_IFS
10430 test -z "$as_dir" && as_dir=.
10431 for ac_exec_ext in '' $ac_executable_extensions; do
10432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10433 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10435 break 2
10437 done
10438 done
10439 IFS=$as_save_IFS
10443 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10444 if test -n "$GOC_FOR_TARGET"; then
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10446 $as_echo "$GOC_FOR_TARGET" >&6; }
10447 else
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10453 done
10456 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10457 for ncn_progname in gccgo; do
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10459 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10460 if test -x $with_build_time_tools/${ncn_progname}; then
10461 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10463 $as_echo "yes" >&6; }
10464 break
10465 else
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467 $as_echo "no" >&6; }
10469 done
10472 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10473 for ncn_progname in gccgo; do
10474 if test -n "$ncn_target_tool_prefix"; then
10475 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10476 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478 $as_echo_n "checking for $ac_word... " >&6; }
10479 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 if test -n "$GOC_FOR_TARGET"; then
10483 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10484 else
10485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486 for as_dir in $PATH
10488 IFS=$as_save_IFS
10489 test -z "$as_dir" && as_dir=.
10490 for ac_exec_ext in '' $ac_executable_extensions; do
10491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10492 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494 break 2
10496 done
10497 done
10498 IFS=$as_save_IFS
10502 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10503 if test -n "$GOC_FOR_TARGET"; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10505 $as_echo "$GOC_FOR_TARGET" >&6; }
10506 else
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508 $as_echo "no" >&6; }
10513 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10515 set dummy ${ncn_progname}; ac_word=$2
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517 $as_echo_n "checking for $ac_word... " >&6; }
10518 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 if test -n "$GOC_FOR_TARGET"; then
10522 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10523 else
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10535 done
10536 done
10537 IFS=$as_save_IFS
10541 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10542 if test -n "$GOC_FOR_TARGET"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10544 $as_echo "$GOC_FOR_TARGET" >&6; }
10545 else
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547 $as_echo "no" >&6; }
10552 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10553 done
10556 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10557 set dummy gccgo
10558 if test $build = $target ; then
10559 GOC_FOR_TARGET="$2"
10560 else
10561 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10563 else
10564 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10569 cat > conftest.c << \EOF
10570 #ifdef __GNUC__
10571 gcc_yay;
10572 #endif
10574 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10575 have_gcc_for_target=yes
10576 else
10577 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10578 have_gcc_for_target=no
10580 rm conftest.c
10585 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10586 if test -n "$with_build_time_tools"; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10588 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10589 if test -x $with_build_time_tools/ar; then
10590 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10591 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10593 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10594 else
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10598 elif test $build != $host && test $have_gcc_for_target = yes; then
10599 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10600 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10601 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10604 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10605 # Extract the first word of "ar", so it can be a program name with args.
10606 set dummy ar; ac_word=$2
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10608 $as_echo_n "checking for $ac_word... " >&6; }
10609 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10610 $as_echo_n "(cached) " >&6
10611 else
10612 case $AR_FOR_TARGET in
10613 [\\/]* | ?:[\\/]*)
10614 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618 for as_dir in $gcc_cv_tool_dirs
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10624 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 break 2
10628 done
10629 done
10630 IFS=$as_save_IFS
10633 esac
10635 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10636 if test -n "$AR_FOR_TARGET"; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10638 $as_echo "$AR_FOR_TARGET" >&6; }
10639 else
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641 $as_echo "no" >&6; }
10646 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10649 if test -n "$AR_FOR_TARGET"; then
10650 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10651 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10652 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10655 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10656 for ncn_progname in ar; do
10657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10658 set dummy ${ncn_progname}; ac_word=$2
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10660 $as_echo_n "checking for $ac_word... " >&6; }
10661 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 if test -n "$AR_FOR_TARGET"; then
10665 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10666 else
10667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668 for as_dir in $PATH
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10674 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 break 2
10678 done
10679 done
10680 IFS=$as_save_IFS
10684 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10685 if test -n "$AR_FOR_TARGET"; then
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10687 $as_echo "$AR_FOR_TARGET" >&6; }
10688 else
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690 $as_echo "no" >&6; }
10694 done
10697 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10698 for ncn_progname in ar; do
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10700 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10701 if test -x $with_build_time_tools/${ncn_progname}; then
10702 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10704 $as_echo "yes" >&6; }
10705 break
10706 else
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10710 done
10713 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10714 for ncn_progname in ar; do
10715 if test -n "$ncn_target_tool_prefix"; then
10716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10717 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10719 $as_echo_n "checking for $ac_word... " >&6; }
10720 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10721 $as_echo_n "(cached) " >&6
10722 else
10723 if test -n "$AR_FOR_TARGET"; then
10724 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10725 else
10726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10727 for as_dir in $PATH
10729 IFS=$as_save_IFS
10730 test -z "$as_dir" && as_dir=.
10731 for ac_exec_ext in '' $ac_executable_extensions; do
10732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10733 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10735 break 2
10737 done
10738 done
10739 IFS=$as_save_IFS
10743 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10744 if test -n "$AR_FOR_TARGET"; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10746 $as_echo "$AR_FOR_TARGET" >&6; }
10747 else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10754 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10756 set dummy ${ncn_progname}; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 if test -n "$AR_FOR_TARGET"; then
10763 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10764 else
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10776 done
10777 done
10778 IFS=$as_save_IFS
10782 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10783 if test -n "$AR_FOR_TARGET"; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10785 $as_echo "$AR_FOR_TARGET" >&6; }
10786 else
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10793 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10794 done
10797 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10798 set dummy ar
10799 if test $build = $target ; then
10800 AR_FOR_TARGET="$2"
10801 else
10802 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10804 else
10805 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10808 else
10809 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10815 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10816 if test -n "$with_build_time_tools"; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10818 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10819 if test -x $with_build_time_tools/as; then
10820 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10821 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10823 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10824 else
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10828 elif test $build != $host && test $have_gcc_for_target = yes; then
10829 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10830 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10831 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10834 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10835 # Extract the first word of "as", so it can be a program name with args.
10836 set dummy as; 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_path_AS_FOR_TARGET+set}" = set; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 case $AS_FOR_TARGET in
10843 [\\/]* | ?:[\\/]*)
10844 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848 for as_dir in $gcc_cv_tool_dirs
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10854 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 break 2
10858 done
10859 done
10860 IFS=$as_save_IFS
10863 esac
10865 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10866 if test -n "$AS_FOR_TARGET"; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10868 $as_echo "$AS_FOR_TARGET" >&6; }
10869 else
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10876 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10879 if test -n "$AS_FOR_TARGET"; then
10880 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10881 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10882 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10885 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10886 for ncn_progname in as; do
10887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10888 set dummy ${ncn_progname}; ac_word=$2
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10890 $as_echo_n "checking for $ac_word... " >&6; }
10891 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
10893 else
10894 if test -n "$AS_FOR_TARGET"; then
10895 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10896 else
10897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10898 for as_dir in $PATH
10900 IFS=$as_save_IFS
10901 test -z "$as_dir" && as_dir=.
10902 for ac_exec_ext in '' $ac_executable_extensions; do
10903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10904 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10906 break 2
10908 done
10909 done
10910 IFS=$as_save_IFS
10914 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10915 if test -n "$AS_FOR_TARGET"; then
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10917 $as_echo "$AS_FOR_TARGET" >&6; }
10918 else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 $as_echo "no" >&6; }
10924 done
10927 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10928 for ncn_progname in as; do
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10930 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10931 if test -x $with_build_time_tools/${ncn_progname}; then
10932 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10934 $as_echo "yes" >&6; }
10935 break
10936 else
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10938 $as_echo "no" >&6; }
10940 done
10943 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10944 for ncn_progname in as; do
10945 if test -n "$ncn_target_tool_prefix"; then
10946 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10947 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10949 $as_echo_n "checking for $ac_word... " >&6; }
10950 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10951 $as_echo_n "(cached) " >&6
10952 else
10953 if test -n "$AS_FOR_TARGET"; then
10954 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10955 else
10956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957 for as_dir in $PATH
10959 IFS=$as_save_IFS
10960 test -z "$as_dir" && as_dir=.
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10963 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10967 done
10968 done
10969 IFS=$as_save_IFS
10973 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10974 if test -n "$AS_FOR_TARGET"; then
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10976 $as_echo "$AS_FOR_TARGET" >&6; }
10977 else
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979 $as_echo "no" >&6; }
10984 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10986 set dummy ${ncn_progname}; ac_word=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 $as_echo_n "checking for $ac_word... " >&6; }
10989 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 if test -n "$AS_FOR_TARGET"; then
10993 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10994 else
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11002 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11004 break 2
11006 done
11007 done
11008 IFS=$as_save_IFS
11012 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11013 if test -n "$AS_FOR_TARGET"; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11015 $as_echo "$AS_FOR_TARGET" >&6; }
11016 else
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 $as_echo "no" >&6; }
11023 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11024 done
11027 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11028 set dummy as
11029 if test $build = $target ; then
11030 AS_FOR_TARGET="$2"
11031 else
11032 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11034 else
11035 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11038 else
11039 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11045 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11046 if test -n "$with_build_time_tools"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11048 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11049 if test -x $with_build_time_tools/dlltool; then
11050 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11051 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11053 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11054 else
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056 $as_echo "no" >&6; }
11058 elif test $build != $host && test $have_gcc_for_target = yes; then
11059 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11060 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11061 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11064 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11065 # Extract the first word of "dlltool", so it can be a program name with args.
11066 set dummy dlltool; 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_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 case $DLLTOOL_FOR_TARGET in
11073 [\\/]* | ?:[\\/]*)
11074 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078 for as_dir in $gcc_cv_tool_dirs
11080 IFS=$as_save_IFS
11081 test -z "$as_dir" && as_dir=.
11082 for ac_exec_ext in '' $ac_executable_extensions; do
11083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11084 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11086 break 2
11088 done
11089 done
11090 IFS=$as_save_IFS
11093 esac
11095 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11096 if test -n "$DLLTOOL_FOR_TARGET"; then
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11098 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11099 else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11106 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11109 if test -n "$DLLTOOL_FOR_TARGET"; then
11110 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11111 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11112 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11115 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11116 for ncn_progname in dlltool; do
11117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11118 set dummy ${ncn_progname}; ac_word=$2
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120 $as_echo_n "checking for $ac_word... " >&6; }
11121 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11122 $as_echo_n "(cached) " >&6
11123 else
11124 if test -n "$DLLTOOL_FOR_TARGET"; then
11125 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11126 else
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
11133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11134 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 break 2
11138 done
11139 done
11140 IFS=$as_save_IFS
11144 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11145 if test -n "$DLLTOOL_FOR_TARGET"; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11147 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11148 else
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150 $as_echo "no" >&6; }
11154 done
11157 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11158 for ncn_progname in dlltool; do
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11160 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11161 if test -x $with_build_time_tools/${ncn_progname}; then
11162 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11164 $as_echo "yes" >&6; }
11165 break
11166 else
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11170 done
11173 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11174 for ncn_progname in dlltool; do
11175 if test -n "$ncn_target_tool_prefix"; then
11176 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11177 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11179 $as_echo_n "checking for $ac_word... " >&6; }
11180 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11181 $as_echo_n "(cached) " >&6
11182 else
11183 if test -n "$DLLTOOL_FOR_TARGET"; then
11184 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11185 else
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11189 IFS=$as_save_IFS
11190 test -z "$as_dir" && as_dir=.
11191 for ac_exec_ext in '' $ac_executable_extensions; do
11192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11193 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11195 break 2
11197 done
11198 done
11199 IFS=$as_save_IFS
11203 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11204 if test -n "$DLLTOOL_FOR_TARGET"; then
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11206 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11207 else
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11209 $as_echo "no" >&6; }
11214 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11216 set dummy ${ncn_progname}; ac_word=$2
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218 $as_echo_n "checking for $ac_word... " >&6; }
11219 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 if test -n "$DLLTOOL_FOR_TARGET"; then
11223 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11224 else
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11232 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 break 2
11236 done
11237 done
11238 IFS=$as_save_IFS
11242 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11243 if test -n "$DLLTOOL_FOR_TARGET"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11245 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11246 else
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11253 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11254 done
11257 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11258 set dummy dlltool
11259 if test $build = $target ; then
11260 DLLTOOL_FOR_TARGET="$2"
11261 else
11262 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11264 else
11265 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11268 else
11269 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11275 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11276 if test -n "$with_build_time_tools"; then
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11278 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11279 if test -x $with_build_time_tools/ld; then
11280 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11281 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11283 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11284 else
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11286 $as_echo "no" >&6; }
11288 elif test $build != $host && test $have_gcc_for_target = yes; then
11289 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11290 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11291 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11294 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11295 # Extract the first word of "ld", so it can be a program name with args.
11296 set dummy ld; 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_path_LD_FOR_TARGET+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 case $LD_FOR_TARGET in
11303 [\\/]* | ?:[\\/]*)
11304 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308 for as_dir in $gcc_cv_tool_dirs
11310 IFS=$as_save_IFS
11311 test -z "$as_dir" && as_dir=.
11312 for ac_exec_ext in '' $ac_executable_extensions; do
11313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11314 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11316 break 2
11318 done
11319 done
11320 IFS=$as_save_IFS
11323 esac
11325 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11326 if test -n "$LD_FOR_TARGET"; then
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11328 $as_echo "$LD_FOR_TARGET" >&6; }
11329 else
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11336 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11339 if test -n "$LD_FOR_TARGET"; then
11340 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11341 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11342 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11345 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11346 for ncn_progname in ld; do
11347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11348 set dummy ${ncn_progname}; ac_word=$2
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11350 $as_echo_n "checking for $ac_word... " >&6; }
11351 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11352 $as_echo_n "(cached) " >&6
11353 else
11354 if test -n "$LD_FOR_TARGET"; then
11355 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11356 else
11357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358 for as_dir in $PATH
11360 IFS=$as_save_IFS
11361 test -z "$as_dir" && as_dir=.
11362 for ac_exec_ext in '' $ac_executable_extensions; do
11363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11364 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11366 break 2
11368 done
11369 done
11370 IFS=$as_save_IFS
11374 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11375 if test -n "$LD_FOR_TARGET"; then
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11377 $as_echo "$LD_FOR_TARGET" >&6; }
11378 else
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380 $as_echo "no" >&6; }
11384 done
11387 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11388 for ncn_progname in ld; do
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11390 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11391 if test -x $with_build_time_tools/${ncn_progname}; then
11392 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11394 $as_echo "yes" >&6; }
11395 break
11396 else
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398 $as_echo "no" >&6; }
11400 done
11403 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11404 for ncn_progname in ld; do
11405 if test -n "$ncn_target_tool_prefix"; then
11406 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11407 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11409 $as_echo_n "checking for $ac_word... " >&6; }
11410 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11411 $as_echo_n "(cached) " >&6
11412 else
11413 if test -n "$LD_FOR_TARGET"; then
11414 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11415 else
11416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417 for as_dir in $PATH
11419 IFS=$as_save_IFS
11420 test -z "$as_dir" && as_dir=.
11421 for ac_exec_ext in '' $ac_executable_extensions; do
11422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11423 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11425 break 2
11427 done
11428 done
11429 IFS=$as_save_IFS
11433 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11434 if test -n "$LD_FOR_TARGET"; then
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11436 $as_echo "$LD_FOR_TARGET" >&6; }
11437 else
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11444 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11446 set dummy ${ncn_progname}; ac_word=$2
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11448 $as_echo_n "checking for $ac_word... " >&6; }
11449 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452 if test -n "$LD_FOR_TARGET"; then
11453 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11454 else
11455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456 for as_dir in $PATH
11458 IFS=$as_save_IFS
11459 test -z "$as_dir" && as_dir=.
11460 for ac_exec_ext in '' $ac_executable_extensions; do
11461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11462 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 break 2
11466 done
11467 done
11468 IFS=$as_save_IFS
11472 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11473 if test -n "$LD_FOR_TARGET"; then
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11475 $as_echo "$LD_FOR_TARGET" >&6; }
11476 else
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11483 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11484 done
11487 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11488 set dummy ld
11489 if test $build = $target ; then
11490 LD_FOR_TARGET="$2"
11491 else
11492 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11494 else
11495 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11498 else
11499 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11505 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11506 if test -n "$with_build_time_tools"; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11508 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11509 if test -x $with_build_time_tools/lipo; then
11510 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11511 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11513 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11514 else
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516 $as_echo "no" >&6; }
11518 elif test $build != $host && test $have_gcc_for_target = yes; then
11519 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11520 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11521 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11524 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11525 # Extract the first word of "lipo", so it can be a program name with args.
11526 set dummy lipo; 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_path_LIPO_FOR_TARGET+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 case $LIPO_FOR_TARGET in
11533 [\\/]* | ?:[\\/]*)
11534 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11538 for as_dir in $gcc_cv_tool_dirs
11540 IFS=$as_save_IFS
11541 test -z "$as_dir" && as_dir=.
11542 for ac_exec_ext in '' $ac_executable_extensions; do
11543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11544 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11546 break 2
11548 done
11549 done
11550 IFS=$as_save_IFS
11553 esac
11555 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11556 if test -n "$LIPO_FOR_TARGET"; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11558 $as_echo "$LIPO_FOR_TARGET" >&6; }
11559 else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11566 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11569 if test -n "$LIPO_FOR_TARGET"; then
11570 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11571 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11572 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11575 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11576 for ncn_progname in lipo; do
11577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11578 set dummy ${ncn_progname}; ac_word=$2
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11580 $as_echo_n "checking for $ac_word... " >&6; }
11581 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 if test -n "$LIPO_FOR_TARGET"; then
11585 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11586 else
11587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in $PATH
11590 IFS=$as_save_IFS
11591 test -z "$as_dir" && as_dir=.
11592 for ac_exec_ext in '' $ac_executable_extensions; do
11593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11594 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596 break 2
11598 done
11599 done
11600 IFS=$as_save_IFS
11604 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11605 if test -n "$LIPO_FOR_TARGET"; then
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11607 $as_echo "$LIPO_FOR_TARGET" >&6; }
11608 else
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11614 done
11617 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11618 for ncn_progname in lipo; do
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11620 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11621 if test -x $with_build_time_tools/${ncn_progname}; then
11622 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11624 $as_echo "yes" >&6; }
11625 break
11626 else
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 $as_echo "no" >&6; }
11630 done
11633 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11634 for ncn_progname in lipo; do
11635 if test -n "$ncn_target_tool_prefix"; then
11636 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11637 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11641 $as_echo_n "(cached) " >&6
11642 else
11643 if test -n "$LIPO_FOR_TARGET"; then
11644 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11645 else
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11649 IFS=$as_save_IFS
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
11652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11653 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655 break 2
11657 done
11658 done
11659 IFS=$as_save_IFS
11663 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11664 if test -n "$LIPO_FOR_TARGET"; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11666 $as_echo "$LIPO_FOR_TARGET" >&6; }
11667 else
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11674 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11676 set dummy ${ncn_progname}; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 if test -n "$LIPO_FOR_TARGET"; then
11683 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11684 else
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11696 done
11697 done
11698 IFS=$as_save_IFS
11702 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11703 if test -n "$LIPO_FOR_TARGET"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11705 $as_echo "$LIPO_FOR_TARGET" >&6; }
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11713 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11714 done
11717 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11718 set dummy lipo
11719 if test $build = $target ; then
11720 LIPO_FOR_TARGET="$2"
11721 else
11722 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11724 else
11725 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11728 else
11729 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11735 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11736 if test -n "$with_build_time_tools"; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11738 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11739 if test -x $with_build_time_tools/nm; then
11740 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11741 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11743 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11744 else
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11748 elif test $build != $host && test $have_gcc_for_target = yes; then
11749 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11750 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11751 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11754 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11755 # Extract the first word of "nm", so it can be a program name with args.
11756 set dummy nm; 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_path_NM_FOR_TARGET+set}" = set; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 case $NM_FOR_TARGET in
11763 [\\/]* | ?:[\\/]*)
11764 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768 for as_dir in $gcc_cv_tool_dirs
11770 IFS=$as_save_IFS
11771 test -z "$as_dir" && as_dir=.
11772 for ac_exec_ext in '' $ac_executable_extensions; do
11773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11774 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11776 break 2
11778 done
11779 done
11780 IFS=$as_save_IFS
11783 esac
11785 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11786 if test -n "$NM_FOR_TARGET"; then
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11788 $as_echo "$NM_FOR_TARGET" >&6; }
11789 else
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11796 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11799 if test -n "$NM_FOR_TARGET"; then
11800 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11801 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11802 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11805 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11806 for ncn_progname in nm; do
11807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11808 set dummy ${ncn_progname}; ac_word=$2
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11810 $as_echo_n "checking for $ac_word... " >&6; }
11811 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 if test -n "$NM_FOR_TARGET"; then
11815 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11816 else
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11824 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11828 done
11829 done
11830 IFS=$as_save_IFS
11834 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11835 if test -n "$NM_FOR_TARGET"; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11837 $as_echo "$NM_FOR_TARGET" >&6; }
11838 else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11844 done
11847 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11848 for ncn_progname in nm; do
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11850 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11851 if test -x $with_build_time_tools/${ncn_progname}; then
11852 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11854 $as_echo "yes" >&6; }
11855 break
11856 else
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11860 done
11863 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11864 for ncn_progname in nm; do
11865 if test -n "$ncn_target_tool_prefix"; then
11866 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11867 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869 $as_echo_n "checking for $ac_word... " >&6; }
11870 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11871 $as_echo_n "(cached) " >&6
11872 else
11873 if test -n "$NM_FOR_TARGET"; then
11874 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11875 else
11876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877 for as_dir in $PATH
11879 IFS=$as_save_IFS
11880 test -z "$as_dir" && as_dir=.
11881 for ac_exec_ext in '' $ac_executable_extensions; do
11882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11883 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 break 2
11887 done
11888 done
11889 IFS=$as_save_IFS
11893 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11894 if test -n "$NM_FOR_TARGET"; then
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11896 $as_echo "$NM_FOR_TARGET" >&6; }
11897 else
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899 $as_echo "no" >&6; }
11904 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11906 set dummy ${ncn_progname}; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 if test -n "$NM_FOR_TARGET"; then
11913 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11914 else
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11922 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 break 2
11926 done
11927 done
11928 IFS=$as_save_IFS
11932 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11933 if test -n "$NM_FOR_TARGET"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11935 $as_echo "$NM_FOR_TARGET" >&6; }
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11943 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11944 done
11947 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11948 set dummy nm
11949 if test $build = $target ; then
11950 NM_FOR_TARGET="$2"
11951 else
11952 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11954 else
11955 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11958 else
11959 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11965 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11966 if test -n "$with_build_time_tools"; then
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11968 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11969 if test -x $with_build_time_tools/objdump; then
11970 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11971 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11973 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11978 elif test $build != $host && test $have_gcc_for_target = yes; then
11979 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11980 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11981 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11984 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11985 # Extract the first word of "objdump", so it can be a program name with args.
11986 set dummy objdump; 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_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 case $OBJDUMP_FOR_TARGET in
11993 [\\/]* | ?:[\\/]*)
11994 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in $gcc_cv_tool_dirs
12000 IFS=$as_save_IFS
12001 test -z "$as_dir" && as_dir=.
12002 for ac_exec_ext in '' $ac_executable_extensions; do
12003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12004 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12006 break 2
12008 done
12009 done
12010 IFS=$as_save_IFS
12013 esac
12015 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12016 if test -n "$OBJDUMP_FOR_TARGET"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12018 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12026 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12029 if test -n "$OBJDUMP_FOR_TARGET"; then
12030 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12031 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12032 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12035 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12036 for ncn_progname in objdump; do
12037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12038 set dummy ${ncn_progname}; ac_word=$2
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12040 $as_echo_n "checking for $ac_word... " >&6; }
12041 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 if test -n "$OBJDUMP_FOR_TARGET"; then
12045 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12046 else
12047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH
12050 IFS=$as_save_IFS
12051 test -z "$as_dir" && as_dir=.
12052 for ac_exec_ext in '' $ac_executable_extensions; do
12053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12054 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12056 break 2
12058 done
12059 done
12060 IFS=$as_save_IFS
12064 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12065 if test -n "$OBJDUMP_FOR_TARGET"; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12067 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070 $as_echo "no" >&6; }
12074 done
12077 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12078 for ncn_progname in objdump; do
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12080 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12081 if test -x $with_build_time_tools/${ncn_progname}; then
12082 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12084 $as_echo "yes" >&6; }
12085 break
12086 else
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12090 done
12093 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12094 for ncn_progname in objdump; do
12095 if test -n "$ncn_target_tool_prefix"; then
12096 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12097 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12099 $as_echo_n "checking for $ac_word... " >&6; }
12100 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12101 $as_echo_n "(cached) " >&6
12102 else
12103 if test -n "$OBJDUMP_FOR_TARGET"; then
12104 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12105 else
12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in $PATH
12109 IFS=$as_save_IFS
12110 test -z "$as_dir" && as_dir=.
12111 for ac_exec_ext in '' $ac_executable_extensions; do
12112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12113 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 break 2
12117 done
12118 done
12119 IFS=$as_save_IFS
12123 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12124 if test -n "$OBJDUMP_FOR_TARGET"; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12126 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12127 else
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 $as_echo "no" >&6; }
12134 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12136 set dummy ${ncn_progname}; ac_word=$2
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138 $as_echo_n "checking for $ac_word... " >&6; }
12139 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12140 $as_echo_n "(cached) " >&6
12141 else
12142 if test -n "$OBJDUMP_FOR_TARGET"; then
12143 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12144 else
12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146 for as_dir in $PATH
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12152 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12156 done
12157 done
12158 IFS=$as_save_IFS
12162 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12163 if test -n "$OBJDUMP_FOR_TARGET"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12165 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12166 else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12173 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12174 done
12177 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12178 set dummy objdump
12179 if test $build = $target ; then
12180 OBJDUMP_FOR_TARGET="$2"
12181 else
12182 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12184 else
12185 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12188 else
12189 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12195 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12196 if test -n "$with_build_time_tools"; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12198 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12199 if test -x $with_build_time_tools/ranlib; then
12200 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12201 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12203 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12204 else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12208 elif test $build != $host && test $have_gcc_for_target = yes; then
12209 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12210 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12211 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12214 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12215 # Extract the first word of "ranlib", so it can be a program name with args.
12216 set dummy ranlib; 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_path_RANLIB_FOR_TARGET+set}" = set; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 case $RANLIB_FOR_TARGET in
12223 [\\/]* | ?:[\\/]*)
12224 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12228 for as_dir in $gcc_cv_tool_dirs
12230 IFS=$as_save_IFS
12231 test -z "$as_dir" && as_dir=.
12232 for ac_exec_ext in '' $ac_executable_extensions; do
12233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12234 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12236 break 2
12238 done
12239 done
12240 IFS=$as_save_IFS
12243 esac
12245 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12246 if test -n "$RANLIB_FOR_TARGET"; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12248 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12256 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12259 if test -n "$RANLIB_FOR_TARGET"; then
12260 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12261 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12262 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12265 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12266 for ncn_progname in ranlib; do
12267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12268 set dummy ${ncn_progname}; ac_word=$2
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12270 $as_echo_n "checking for $ac_word... " >&6; }
12271 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 if test -n "$RANLIB_FOR_TARGET"; then
12275 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12276 else
12277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278 for as_dir in $PATH
12280 IFS=$as_save_IFS
12281 test -z "$as_dir" && as_dir=.
12282 for ac_exec_ext in '' $ac_executable_extensions; do
12283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12284 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12286 break 2
12288 done
12289 done
12290 IFS=$as_save_IFS
12294 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12295 if test -n "$RANLIB_FOR_TARGET"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12297 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12298 else
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12304 done
12307 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12308 for ncn_progname in ranlib; do
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12310 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12311 if test -x $with_build_time_tools/${ncn_progname}; then
12312 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12314 $as_echo "yes" >&6; }
12315 break
12316 else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12320 done
12323 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12324 for ncn_progname in ranlib; do
12325 if test -n "$ncn_target_tool_prefix"; then
12326 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12327 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329 $as_echo_n "checking for $ac_word... " >&6; }
12330 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 if test -n "$RANLIB_FOR_TARGET"; then
12334 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12335 else
12336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $PATH
12339 IFS=$as_save_IFS
12340 test -z "$as_dir" && as_dir=.
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12343 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345 break 2
12347 done
12348 done
12349 IFS=$as_save_IFS
12353 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12354 if test -n "$RANLIB_FOR_TARGET"; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12356 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12357 else
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 $as_echo "no" >&6; }
12364 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12366 set dummy ${ncn_progname}; ac_word=$2
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12368 $as_echo_n "checking for $ac_word... " >&6; }
12369 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 if test -n "$RANLIB_FOR_TARGET"; then
12373 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12374 else
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12382 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12384 break 2
12386 done
12387 done
12388 IFS=$as_save_IFS
12392 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12393 if test -n "$RANLIB_FOR_TARGET"; then
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12395 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12396 else
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12403 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12404 done
12407 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12408 set dummy ranlib
12409 if test $build = $target ; then
12410 RANLIB_FOR_TARGET="$2"
12411 else
12412 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12414 else
12415 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12418 else
12419 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12425 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12426 if test -n "$with_build_time_tools"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12428 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12429 if test -x $with_build_time_tools/readelf; then
12430 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12431 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12433 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12434 else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12438 elif test $build != $host && test $have_gcc_for_target = yes; then
12439 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12440 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12441 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12444 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12445 # Extract the first word of "readelf", so it can be a program name with args.
12446 set dummy readelf; 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_path_READELF_FOR_TARGET+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 case $READELF_FOR_TARGET in
12453 [\\/]* | ?:[\\/]*)
12454 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $gcc_cv_tool_dirs
12460 IFS=$as_save_IFS
12461 test -z "$as_dir" && as_dir=.
12462 for ac_exec_ext in '' $ac_executable_extensions; do
12463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12464 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466 break 2
12468 done
12469 done
12470 IFS=$as_save_IFS
12473 esac
12475 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12476 if test -n "$READELF_FOR_TARGET"; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12478 $as_echo "$READELF_FOR_TARGET" >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12486 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12489 if test -n "$READELF_FOR_TARGET"; then
12490 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12491 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12492 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12495 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12496 for ncn_progname in readelf; do
12497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12498 set dummy ${ncn_progname}; ac_word=$2
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12500 $as_echo_n "checking for $ac_word... " >&6; }
12501 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12504 if test -n "$READELF_FOR_TARGET"; then
12505 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12506 else
12507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12508 for as_dir in $PATH
12510 IFS=$as_save_IFS
12511 test -z "$as_dir" && as_dir=.
12512 for ac_exec_ext in '' $ac_executable_extensions; do
12513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12514 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12516 break 2
12518 done
12519 done
12520 IFS=$as_save_IFS
12524 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12525 if test -n "$READELF_FOR_TARGET"; then
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12527 $as_echo "$READELF_FOR_TARGET" >&6; }
12528 else
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12530 $as_echo "no" >&6; }
12534 done
12537 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12538 for ncn_progname in readelf; do
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12540 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12541 if test -x $with_build_time_tools/${ncn_progname}; then
12542 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12544 $as_echo "yes" >&6; }
12545 break
12546 else
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12550 done
12553 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12554 for ncn_progname in readelf; do
12555 if test -n "$ncn_target_tool_prefix"; then
12556 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12557 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559 $as_echo_n "checking for $ac_word... " >&6; }
12560 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 if test -n "$READELF_FOR_TARGET"; then
12564 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12565 else
12566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567 for as_dir in $PATH
12569 IFS=$as_save_IFS
12570 test -z "$as_dir" && as_dir=.
12571 for ac_exec_ext in '' $ac_executable_extensions; do
12572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12573 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 break 2
12577 done
12578 done
12579 IFS=$as_save_IFS
12583 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12584 if test -n "$READELF_FOR_TARGET"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12586 $as_echo "$READELF_FOR_TARGET" >&6; }
12587 else
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12594 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12596 set dummy ${ncn_progname}; ac_word=$2
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12600 $as_echo_n "(cached) " >&6
12601 else
12602 if test -n "$READELF_FOR_TARGET"; then
12603 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12604 else
12605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606 for as_dir in $PATH
12608 IFS=$as_save_IFS
12609 test -z "$as_dir" && as_dir=.
12610 for ac_exec_ext in '' $ac_executable_extensions; do
12611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12612 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12614 break 2
12616 done
12617 done
12618 IFS=$as_save_IFS
12622 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12623 if test -n "$READELF_FOR_TARGET"; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12625 $as_echo "$READELF_FOR_TARGET" >&6; }
12626 else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12633 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12634 done
12637 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12638 set dummy readelf
12639 if test $build = $target ; then
12640 READELF_FOR_TARGET="$2"
12641 else
12642 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12644 else
12645 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12648 else
12649 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12655 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12656 if test -n "$with_build_time_tools"; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12658 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12659 if test -x $with_build_time_tools/strip; then
12660 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12661 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12663 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12664 else
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666 $as_echo "no" >&6; }
12668 elif test $build != $host && test $have_gcc_for_target = yes; then
12669 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12670 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12671 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12674 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12675 # Extract the first word of "strip", so it can be a program name with args.
12676 set dummy strip; 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_path_STRIP_FOR_TARGET+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 case $STRIP_FOR_TARGET in
12683 [\\/]* | ?:[\\/]*)
12684 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12688 for as_dir in $gcc_cv_tool_dirs
12690 IFS=$as_save_IFS
12691 test -z "$as_dir" && as_dir=.
12692 for ac_exec_ext in '' $ac_executable_extensions; do
12693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12694 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12696 break 2
12698 done
12699 done
12700 IFS=$as_save_IFS
12703 esac
12705 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12706 if test -n "$STRIP_FOR_TARGET"; then
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12708 $as_echo "$STRIP_FOR_TARGET" >&6; }
12709 else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12716 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12719 if test -n "$STRIP_FOR_TARGET"; then
12720 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12721 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12722 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12725 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12726 for ncn_progname in strip; do
12727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12728 set dummy ${ncn_progname}; ac_word=$2
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12730 $as_echo_n "checking for $ac_word... " >&6; }
12731 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12732 $as_echo_n "(cached) " >&6
12733 else
12734 if test -n "$STRIP_FOR_TARGET"; then
12735 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12736 else
12737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738 for as_dir in $PATH
12740 IFS=$as_save_IFS
12741 test -z "$as_dir" && as_dir=.
12742 for ac_exec_ext in '' $ac_executable_extensions; do
12743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12744 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 break 2
12748 done
12749 done
12750 IFS=$as_save_IFS
12754 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12755 if test -n "$STRIP_FOR_TARGET"; then
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12757 $as_echo "$STRIP_FOR_TARGET" >&6; }
12758 else
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760 $as_echo "no" >&6; }
12764 done
12767 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12768 for ncn_progname in strip; do
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12770 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12771 if test -x $with_build_time_tools/${ncn_progname}; then
12772 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12775 break
12776 else
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12780 done
12783 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12784 for ncn_progname in strip; do
12785 if test -n "$ncn_target_tool_prefix"; then
12786 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12787 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12789 $as_echo_n "checking for $ac_word... " >&6; }
12790 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12791 $as_echo_n "(cached) " >&6
12792 else
12793 if test -n "$STRIP_FOR_TARGET"; then
12794 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12795 else
12796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12797 for as_dir in $PATH
12799 IFS=$as_save_IFS
12800 test -z "$as_dir" && as_dir=.
12801 for ac_exec_ext in '' $ac_executable_extensions; do
12802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12803 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12805 break 2
12807 done
12808 done
12809 IFS=$as_save_IFS
12813 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12814 if test -n "$STRIP_FOR_TARGET"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12816 $as_echo "$STRIP_FOR_TARGET" >&6; }
12817 else
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12824 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12826 set dummy ${ncn_progname}; ac_word=$2
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828 $as_echo_n "checking for $ac_word... " >&6; }
12829 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12832 if test -n "$STRIP_FOR_TARGET"; then
12833 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12834 else
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12842 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12846 done
12847 done
12848 IFS=$as_save_IFS
12852 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12853 if test -n "$STRIP_FOR_TARGET"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12855 $as_echo "$STRIP_FOR_TARGET" >&6; }
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12863 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12864 done
12867 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12868 set dummy strip
12869 if test $build = $target ; then
12870 STRIP_FOR_TARGET="$2"
12871 else
12872 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12874 else
12875 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12878 else
12879 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12885 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12886 if test -n "$with_build_time_tools"; then
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12888 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12889 if test -x $with_build_time_tools/windres; then
12890 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12891 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12893 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12894 else
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896 $as_echo "no" >&6; }
12898 elif test $build != $host && test $have_gcc_for_target = yes; then
12899 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12900 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12901 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12904 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12905 # Extract the first word of "windres", so it can be a program name with args.
12906 set dummy windres; 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_path_WINDRES_FOR_TARGET+set}" = set; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 case $WINDRES_FOR_TARGET in
12913 [\\/]* | ?:[\\/]*)
12914 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 for as_dir in $gcc_cv_tool_dirs
12920 IFS=$as_save_IFS
12921 test -z "$as_dir" && as_dir=.
12922 for ac_exec_ext in '' $ac_executable_extensions; do
12923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12924 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12926 break 2
12928 done
12929 done
12930 IFS=$as_save_IFS
12933 esac
12935 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12936 if test -n "$WINDRES_FOR_TARGET"; then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12938 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12946 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12949 if test -n "$WINDRES_FOR_TARGET"; then
12950 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12951 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12952 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12955 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12956 for ncn_progname in windres; do
12957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12958 set dummy ${ncn_progname}; ac_word=$2
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12960 $as_echo_n "checking for $ac_word... " >&6; }
12961 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 if test -n "$WINDRES_FOR_TARGET"; then
12965 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12966 else
12967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12970 IFS=$as_save_IFS
12971 test -z "$as_dir" && as_dir=.
12972 for ac_exec_ext in '' $ac_executable_extensions; do
12973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12974 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12976 break 2
12978 done
12979 done
12980 IFS=$as_save_IFS
12984 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12985 if test -n "$WINDRES_FOR_TARGET"; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12987 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12988 else
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12994 done
12997 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12998 for ncn_progname in windres; do
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13000 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13001 if test -x $with_build_time_tools/${ncn_progname}; then
13002 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13004 $as_echo "yes" >&6; }
13005 break
13006 else
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008 $as_echo "no" >&6; }
13010 done
13013 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13014 for ncn_progname in windres; do
13015 if test -n "$ncn_target_tool_prefix"; then
13016 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13017 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13019 $as_echo_n "checking for $ac_word... " >&6; }
13020 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13021 $as_echo_n "(cached) " >&6
13022 else
13023 if test -n "$WINDRES_FOR_TARGET"; then
13024 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13025 else
13026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13027 for as_dir in $PATH
13029 IFS=$as_save_IFS
13030 test -z "$as_dir" && as_dir=.
13031 for ac_exec_ext in '' $ac_executable_extensions; do
13032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13033 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13035 break 2
13037 done
13038 done
13039 IFS=$as_save_IFS
13043 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13044 if test -n "$WINDRES_FOR_TARGET"; then
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13046 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13047 else
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13049 $as_echo "no" >&6; }
13054 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13056 set dummy ${ncn_progname}; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 if test -n "$WINDRES_FOR_TARGET"; then
13063 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13064 else
13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13068 IFS=$as_save_IFS
13069 test -z "$as_dir" && as_dir=.
13070 for ac_exec_ext in '' $ac_executable_extensions; do
13071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13072 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074 break 2
13076 done
13077 done
13078 IFS=$as_save_IFS
13082 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13083 if test -n "$WINDRES_FOR_TARGET"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13085 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13086 else
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13093 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13094 done
13097 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13098 set dummy windres
13099 if test $build = $target ; then
13100 WINDRES_FOR_TARGET="$2"
13101 else
13102 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13104 else
13105 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13108 else
13109 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13115 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13116 if test -n "$with_build_time_tools"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13118 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13119 if test -x $with_build_time_tools/windmc; then
13120 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13121 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13123 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13124 else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 $as_echo "no" >&6; }
13128 elif test $build != $host && test $have_gcc_for_target = yes; then
13129 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13130 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13131 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13134 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13135 # Extract the first word of "windmc", so it can be a program name with args.
13136 set dummy windmc; 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_path_WINDMC_FOR_TARGET+set}" = set; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 case $WINDMC_FOR_TARGET in
13143 [\\/]* | ?:[\\/]*)
13144 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $gcc_cv_tool_dirs
13150 IFS=$as_save_IFS
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13154 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 break 2
13158 done
13159 done
13160 IFS=$as_save_IFS
13163 esac
13165 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13166 if test -n "$WINDMC_FOR_TARGET"; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13168 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13169 else
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171 $as_echo "no" >&6; }
13176 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13179 if test -n "$WINDMC_FOR_TARGET"; then
13180 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13181 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13182 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13185 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13186 for ncn_progname in windmc; do
13187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13188 set dummy ${ncn_progname}; ac_word=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190 $as_echo_n "checking for $ac_word... " >&6; }
13191 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13192 $as_echo_n "(cached) " >&6
13193 else
13194 if test -n "$WINDMC_FOR_TARGET"; then
13195 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13196 else
13197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH
13200 IFS=$as_save_IFS
13201 test -z "$as_dir" && as_dir=.
13202 for ac_exec_ext in '' $ac_executable_extensions; do
13203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13204 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13206 break 2
13208 done
13209 done
13210 IFS=$as_save_IFS
13214 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13215 if test -n "$WINDMC_FOR_TARGET"; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13217 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13218 else
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220 $as_echo "no" >&6; }
13224 done
13227 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13228 for ncn_progname in windmc; do
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13230 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13231 if test -x $with_build_time_tools/${ncn_progname}; then
13232 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13234 $as_echo "yes" >&6; }
13235 break
13236 else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13240 done
13243 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13244 for ncn_progname in windmc; do
13245 if test -n "$ncn_target_tool_prefix"; then
13246 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13247 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13249 $as_echo_n "checking for $ac_word... " >&6; }
13250 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 if test -n "$WINDMC_FOR_TARGET"; then
13254 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13255 else
13256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13257 for as_dir in $PATH
13259 IFS=$as_save_IFS
13260 test -z "$as_dir" && as_dir=.
13261 for ac_exec_ext in '' $ac_executable_extensions; do
13262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13263 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13265 break 2
13267 done
13268 done
13269 IFS=$as_save_IFS
13273 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13274 if test -n "$WINDMC_FOR_TARGET"; then
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13276 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13277 else
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279 $as_echo "no" >&6; }
13284 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13286 set dummy ${ncn_progname}; ac_word=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288 $as_echo_n "checking for $ac_word... " >&6; }
13289 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 if test -n "$WINDMC_FOR_TARGET"; then
13293 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13294 else
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13302 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13306 done
13307 done
13308 IFS=$as_save_IFS
13312 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13313 if test -n "$WINDMC_FOR_TARGET"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13315 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13323 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13324 done
13327 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13328 set dummy windmc
13329 if test $build = $target ; then
13330 WINDMC_FOR_TARGET="$2"
13331 else
13332 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13334 else
13335 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13338 else
13339 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13343 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13346 $as_echo_n "checking where to find the target ar... " >&6; }
13347 if test "x${build}" != "x${host}" ; then
13348 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13349 # We already found the complete path
13350 ac_dir=`dirname $AR_FOR_TARGET`
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13352 $as_echo "pre-installed in $ac_dir" >&6; }
13353 else
13354 # Canadian cross, just use what we found
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13356 $as_echo "pre-installed" >&6; }
13358 else
13359 ok=yes
13360 case " ${configdirs} " in
13361 *" binutils "*) ;;
13362 *) ok=no ;;
13363 esac
13365 if test $ok = yes; then
13366 # An in-tree tool is available and we can use it
13367 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13369 $as_echo "just compiled" >&6; }
13370 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13371 # We already found the complete path
13372 ac_dir=`dirname $AR_FOR_TARGET`
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13374 $as_echo "pre-installed in $ac_dir" >&6; }
13375 elif test "x$target" = "x$host"; then
13376 # We can use an host tool
13377 AR_FOR_TARGET='$(AR)'
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13379 $as_echo "host tool" >&6; }
13380 else
13381 # We need a cross tool
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13383 $as_echo "pre-installed" >&6; }
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13388 $as_echo_n "checking where to find the target as... " >&6; }
13389 if test "x${build}" != "x${host}" ; then
13390 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13391 # We already found the complete path
13392 ac_dir=`dirname $AS_FOR_TARGET`
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13394 $as_echo "pre-installed in $ac_dir" >&6; }
13395 else
13396 # Canadian cross, just use what we found
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13398 $as_echo "pre-installed" >&6; }
13400 else
13401 ok=yes
13402 case " ${configdirs} " in
13403 *" gas "*) ;;
13404 *) ok=no ;;
13405 esac
13407 if test $ok = yes; then
13408 # An in-tree tool is available and we can use it
13409 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13411 $as_echo "just compiled" >&6; }
13412 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13413 # We already found the complete path
13414 ac_dir=`dirname $AS_FOR_TARGET`
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13416 $as_echo "pre-installed in $ac_dir" >&6; }
13417 elif test "x$target" = "x$host"; then
13418 # We can use an host tool
13419 AS_FOR_TARGET='$(AS)'
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13421 $as_echo "host tool" >&6; }
13422 else
13423 # We need a cross tool
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13425 $as_echo "pre-installed" >&6; }
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13430 $as_echo_n "checking where to find the target cc... " >&6; }
13431 if test "x${build}" != "x${host}" ; then
13432 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13433 # We already found the complete path
13434 ac_dir=`dirname $CC_FOR_TARGET`
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13436 $as_echo "pre-installed in $ac_dir" >&6; }
13437 else
13438 # Canadian cross, just use what we found
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13440 $as_echo "pre-installed" >&6; }
13442 else
13443 ok=yes
13444 case " ${configdirs} " in
13445 *" gcc "*) ;;
13446 *) ok=no ;;
13447 esac
13449 if test $ok = yes; then
13450 # An in-tree tool is available and we can use it
13451 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13453 $as_echo "just compiled" >&6; }
13454 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13455 # We already found the complete path
13456 ac_dir=`dirname $CC_FOR_TARGET`
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13458 $as_echo "pre-installed in $ac_dir" >&6; }
13459 elif test "x$target" = "x$host"; then
13460 # We can use an host tool
13461 CC_FOR_TARGET='$(CC)'
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13463 $as_echo "host tool" >&6; }
13464 else
13465 # We need a cross tool
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13467 $as_echo "pre-installed" >&6; }
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13472 $as_echo_n "checking where to find the target c++... " >&6; }
13473 if test "x${build}" != "x${host}" ; then
13474 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13475 # We already found the complete path
13476 ac_dir=`dirname $CXX_FOR_TARGET`
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13478 $as_echo "pre-installed in $ac_dir" >&6; }
13479 else
13480 # Canadian cross, just use what we found
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13482 $as_echo "pre-installed" >&6; }
13484 else
13485 ok=yes
13486 case " ${configdirs} " in
13487 *" gcc "*) ;;
13488 *) ok=no ;;
13489 esac
13490 case ,${enable_languages}, in
13491 *,c++,*) ;;
13492 *) ok=no ;;
13493 esac
13494 if test $ok = yes; then
13495 # An in-tree tool is available and we can use it
13496 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'
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13498 $as_echo "just compiled" >&6; }
13499 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13500 # We already found the complete path
13501 ac_dir=`dirname $CXX_FOR_TARGET`
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13503 $as_echo "pre-installed in $ac_dir" >&6; }
13504 elif test "x$target" = "x$host"; then
13505 # We can use an host tool
13506 CXX_FOR_TARGET='$(CXX)'
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13508 $as_echo "host tool" >&6; }
13509 else
13510 # We need a cross tool
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13512 $as_echo "pre-installed" >&6; }
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13517 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13518 if test "x${build}" != "x${host}" ; then
13519 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13520 # We already found the complete path
13521 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13523 $as_echo "pre-installed in $ac_dir" >&6; }
13524 else
13525 # Canadian cross, just use what we found
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13527 $as_echo "pre-installed" >&6; }
13529 else
13530 ok=yes
13531 case " ${configdirs} " in
13532 *" gcc "*) ;;
13533 *) ok=no ;;
13534 esac
13535 case ,${enable_languages}, in
13536 *,c++,*) ;;
13537 *) ok=no ;;
13538 esac
13539 if test $ok = yes; then
13540 # An in-tree tool is available and we can use it
13541 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'
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13543 $as_echo "just compiled" >&6; }
13544 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13545 # We already found the complete path
13546 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13548 $as_echo "pre-installed in $ac_dir" >&6; }
13549 elif test "x$target" = "x$host"; then
13550 # We can use an host tool
13551 RAW_CXX_FOR_TARGET='$(CXX)'
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13553 $as_echo "host tool" >&6; }
13554 else
13555 # We need a cross tool
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13557 $as_echo "pre-installed" >&6; }
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13562 $as_echo_n "checking where to find the target dlltool... " >&6; }
13563 if test "x${build}" != "x${host}" ; then
13564 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13565 # We already found the complete path
13566 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13568 $as_echo "pre-installed in $ac_dir" >&6; }
13569 else
13570 # Canadian cross, just use what we found
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13572 $as_echo "pre-installed" >&6; }
13574 else
13575 ok=yes
13576 case " ${configdirs} " in
13577 *" binutils "*) ;;
13578 *) ok=no ;;
13579 esac
13581 if test $ok = yes; then
13582 # An in-tree tool is available and we can use it
13583 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13585 $as_echo "just compiled" >&6; }
13586 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13587 # We already found the complete path
13588 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13590 $as_echo "pre-installed in $ac_dir" >&6; }
13591 elif test "x$target" = "x$host"; then
13592 # We can use an host tool
13593 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13595 $as_echo "host tool" >&6; }
13596 else
13597 # We need a cross tool
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13599 $as_echo "pre-installed" >&6; }
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13604 $as_echo_n "checking where to find the target gcc... " >&6; }
13605 if test "x${build}" != "x${host}" ; then
13606 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13607 # We already found the complete path
13608 ac_dir=`dirname $GCC_FOR_TARGET`
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13610 $as_echo "pre-installed in $ac_dir" >&6; }
13611 else
13612 # Canadian cross, just use what we found
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13614 $as_echo "pre-installed" >&6; }
13616 else
13617 ok=yes
13618 case " ${configdirs} " in
13619 *" gcc "*) ;;
13620 *) ok=no ;;
13621 esac
13623 if test $ok = yes; then
13624 # An in-tree tool is available and we can use it
13625 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13627 $as_echo "just compiled" >&6; }
13628 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13629 # We already found the complete path
13630 ac_dir=`dirname $GCC_FOR_TARGET`
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13632 $as_echo "pre-installed in $ac_dir" >&6; }
13633 elif test "x$target" = "x$host"; then
13634 # We can use an host tool
13635 GCC_FOR_TARGET='$()'
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13637 $as_echo "host tool" >&6; }
13638 else
13639 # We need a cross tool
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13641 $as_echo "pre-installed" >&6; }
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13646 $as_echo_n "checking where to find the target gcj... " >&6; }
13647 if test "x${build}" != "x${host}" ; then
13648 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13649 # We already found the complete path
13650 ac_dir=`dirname $GCJ_FOR_TARGET`
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13652 $as_echo "pre-installed in $ac_dir" >&6; }
13653 else
13654 # Canadian cross, just use what we found
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13656 $as_echo "pre-installed" >&6; }
13658 else
13659 ok=yes
13660 case " ${configdirs} " in
13661 *" gcc "*) ;;
13662 *) ok=no ;;
13663 esac
13664 case ,${enable_languages}, in
13665 *,java,*) ;;
13666 *) ok=no ;;
13667 esac
13668 if test $ok = yes; then
13669 # An in-tree tool is available and we can use it
13670 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13672 $as_echo "just compiled" >&6; }
13673 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13674 # We already found the complete path
13675 ac_dir=`dirname $GCJ_FOR_TARGET`
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13677 $as_echo "pre-installed in $ac_dir" >&6; }
13678 elif test "x$target" = "x$host"; then
13679 # We can use an host tool
13680 GCJ_FOR_TARGET='$(GCJ)'
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13682 $as_echo "host tool" >&6; }
13683 else
13684 # We need a cross tool
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13686 $as_echo "pre-installed" >&6; }
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13691 $as_echo_n "checking where to find the target gfortran... " >&6; }
13692 if test "x${build}" != "x${host}" ; then
13693 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13694 # We already found the complete path
13695 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13697 $as_echo "pre-installed in $ac_dir" >&6; }
13698 else
13699 # Canadian cross, just use what we found
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13701 $as_echo "pre-installed" >&6; }
13703 else
13704 ok=yes
13705 case " ${configdirs} " in
13706 *" gcc "*) ;;
13707 *) ok=no ;;
13708 esac
13709 case ,${enable_languages}, in
13710 *,fortran,*) ;;
13711 *) ok=no ;;
13712 esac
13713 if test $ok = yes; then
13714 # An in-tree tool is available and we can use it
13715 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13717 $as_echo "just compiled" >&6; }
13718 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13719 # We already found the complete path
13720 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13722 $as_echo "pre-installed in $ac_dir" >&6; }
13723 elif test "x$target" = "x$host"; then
13724 # We can use an host tool
13725 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13727 $as_echo "host tool" >&6; }
13728 else
13729 # We need a cross tool
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13731 $as_echo "pre-installed" >&6; }
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13736 $as_echo_n "checking where to find the target gccgo... " >&6; }
13737 if test "x${build}" != "x${host}" ; then
13738 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13739 # We already found the complete path
13740 ac_dir=`dirname $GOC_FOR_TARGET`
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13742 $as_echo "pre-installed in $ac_dir" >&6; }
13743 else
13744 # Canadian cross, just use what we found
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13746 $as_echo "pre-installed" >&6; }
13748 else
13749 ok=yes
13750 case " ${configdirs} " in
13751 *" gcc "*) ;;
13752 *) ok=no ;;
13753 esac
13754 case ,${enable_languages}, in
13755 *,go,*) ;;
13756 *) ok=no ;;
13757 esac
13758 if test $ok = yes; then
13759 # An in-tree tool is available and we can use it
13760 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13762 $as_echo "just compiled" >&6; }
13763 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13764 # We already found the complete path
13765 ac_dir=`dirname $GOC_FOR_TARGET`
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13767 $as_echo "pre-installed in $ac_dir" >&6; }
13768 elif test "x$target" = "x$host"; then
13769 # We can use an host tool
13770 GOC_FOR_TARGET='$(GOC)'
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13772 $as_echo "host tool" >&6; }
13773 else
13774 # We need a cross tool
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13776 $as_echo "pre-installed" >&6; }
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13781 $as_echo_n "checking where to find the target ld... " >&6; }
13782 if test "x${build}" != "x${host}" ; then
13783 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13784 # We already found the complete path
13785 ac_dir=`dirname $LD_FOR_TARGET`
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13787 $as_echo "pre-installed in $ac_dir" >&6; }
13788 else
13789 # Canadian cross, just use what we found
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13791 $as_echo "pre-installed" >&6; }
13793 else
13794 ok=yes
13795 case " ${configdirs} " in
13796 *" ld "*) ;;
13797 *) ok=no ;;
13798 esac
13800 if test $ok = yes; then
13801 # An in-tree tool is available and we can use it
13802 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13804 $as_echo "just compiled" >&6; }
13805 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13806 # We already found the complete path
13807 ac_dir=`dirname $LD_FOR_TARGET`
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13809 $as_echo "pre-installed in $ac_dir" >&6; }
13810 elif test "x$target" = "x$host"; then
13811 # We can use an host tool
13812 LD_FOR_TARGET='$(LD)'
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13814 $as_echo "host tool" >&6; }
13815 else
13816 # We need a cross tool
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13818 $as_echo "pre-installed" >&6; }
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13823 $as_echo_n "checking where to find the target lipo... " >&6; }
13824 if test "x${build}" != "x${host}" ; then
13825 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13826 # We already found the complete path
13827 ac_dir=`dirname $LIPO_FOR_TARGET`
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13829 $as_echo "pre-installed in $ac_dir" >&6; }
13830 else
13831 # Canadian cross, just use what we found
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13833 $as_echo "pre-installed" >&6; }
13835 else
13836 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13837 # We already found the complete path
13838 ac_dir=`dirname $LIPO_FOR_TARGET`
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13840 $as_echo "pre-installed in $ac_dir" >&6; }
13841 elif test "x$target" = "x$host"; then
13842 # We can use an host tool
13843 LIPO_FOR_TARGET='$(LIPO)'
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13845 $as_echo "host tool" >&6; }
13846 else
13847 # We need a cross tool
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13849 $as_echo "pre-installed" >&6; }
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13854 $as_echo_n "checking where to find the target nm... " >&6; }
13855 if test "x${build}" != "x${host}" ; then
13856 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13857 # We already found the complete path
13858 ac_dir=`dirname $NM_FOR_TARGET`
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13860 $as_echo "pre-installed in $ac_dir" >&6; }
13861 else
13862 # Canadian cross, just use what we found
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864 $as_echo "pre-installed" >&6; }
13866 else
13867 ok=yes
13868 case " ${configdirs} " in
13869 *" binutils "*) ;;
13870 *) ok=no ;;
13871 esac
13873 if test $ok = yes; then
13874 # An in-tree tool is available and we can use it
13875 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13877 $as_echo "just compiled" >&6; }
13878 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13879 # We already found the complete path
13880 ac_dir=`dirname $NM_FOR_TARGET`
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13882 $as_echo "pre-installed in $ac_dir" >&6; }
13883 elif test "x$target" = "x$host"; then
13884 # We can use an host tool
13885 NM_FOR_TARGET='$(NM)'
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13887 $as_echo "host tool" >&6; }
13888 else
13889 # We need a cross tool
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13891 $as_echo "pre-installed" >&6; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13896 $as_echo_n "checking where to find the target objdump... " >&6; }
13897 if test "x${build}" != "x${host}" ; then
13898 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13899 # We already found the complete path
13900 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13902 $as_echo "pre-installed in $ac_dir" >&6; }
13903 else
13904 # Canadian cross, just use what we found
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13906 $as_echo "pre-installed" >&6; }
13908 else
13909 ok=yes
13910 case " ${configdirs} " in
13911 *" binutils "*) ;;
13912 *) ok=no ;;
13913 esac
13915 if test $ok = yes; then
13916 # An in-tree tool is available and we can use it
13917 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13919 $as_echo "just compiled" >&6; }
13920 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13921 # We already found the complete path
13922 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13924 $as_echo "pre-installed in $ac_dir" >&6; }
13925 elif test "x$target" = "x$host"; then
13926 # We can use an host tool
13927 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13929 $as_echo "host tool" >&6; }
13930 else
13931 # We need a cross tool
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13933 $as_echo "pre-installed" >&6; }
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13938 $as_echo_n "checking where to find the target ranlib... " >&6; }
13939 if test "x${build}" != "x${host}" ; then
13940 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13941 # We already found the complete path
13942 ac_dir=`dirname $RANLIB_FOR_TARGET`
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13944 $as_echo "pre-installed in $ac_dir" >&6; }
13945 else
13946 # Canadian cross, just use what we found
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13948 $as_echo "pre-installed" >&6; }
13950 else
13951 ok=yes
13952 case " ${configdirs} " in
13953 *" binutils "*) ;;
13954 *) ok=no ;;
13955 esac
13957 if test $ok = yes; then
13958 # An in-tree tool is available and we can use it
13959 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13961 $as_echo "just compiled" >&6; }
13962 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
13964 ac_dir=`dirname $RANLIB_FOR_TARGET`
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966 $as_echo "pre-installed in $ac_dir" >&6; }
13967 elif test "x$target" = "x$host"; then
13968 # We can use an host tool
13969 RANLIB_FOR_TARGET='$(RANLIB)'
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13971 $as_echo "host tool" >&6; }
13972 else
13973 # We need a cross tool
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13975 $as_echo "pre-installed" >&6; }
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13980 $as_echo_n "checking where to find the target readelf... " >&6; }
13981 if test "x${build}" != "x${host}" ; then
13982 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13983 # We already found the complete path
13984 ac_dir=`dirname $READELF_FOR_TARGET`
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13986 $as_echo "pre-installed in $ac_dir" >&6; }
13987 else
13988 # Canadian cross, just use what we found
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13990 $as_echo "pre-installed" >&6; }
13992 else
13993 ok=yes
13994 case " ${configdirs} " in
13995 *" binutils "*) ;;
13996 *) ok=no ;;
13997 esac
13999 if test $ok = yes; then
14000 # An in-tree tool is available and we can use it
14001 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14003 $as_echo "just compiled" >&6; }
14004 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14005 # We already found the complete path
14006 ac_dir=`dirname $READELF_FOR_TARGET`
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14008 $as_echo "pre-installed in $ac_dir" >&6; }
14009 elif test "x$target" = "x$host"; then
14010 # We can use an host tool
14011 READELF_FOR_TARGET='$(READELF)'
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14013 $as_echo "host tool" >&6; }
14014 else
14015 # We need a cross tool
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14017 $as_echo "pre-installed" >&6; }
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14022 $as_echo_n "checking where to find the target strip... " >&6; }
14023 if test "x${build}" != "x${host}" ; then
14024 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14025 # We already found the complete path
14026 ac_dir=`dirname $STRIP_FOR_TARGET`
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14028 $as_echo "pre-installed in $ac_dir" >&6; }
14029 else
14030 # Canadian cross, just use what we found
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14032 $as_echo "pre-installed" >&6; }
14034 else
14035 ok=yes
14036 case " ${configdirs} " in
14037 *" binutils "*) ;;
14038 *) ok=no ;;
14039 esac
14041 if test $ok = yes; then
14042 # An in-tree tool is available and we can use it
14043 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14045 $as_echo "just compiled" >&6; }
14046 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14047 # We already found the complete path
14048 ac_dir=`dirname $STRIP_FOR_TARGET`
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14050 $as_echo "pre-installed in $ac_dir" >&6; }
14051 elif test "x$target" = "x$host"; then
14052 # We can use an host tool
14053 STRIP_FOR_TARGET='$(STRIP)'
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14055 $as_echo "host tool" >&6; }
14056 else
14057 # We need a cross tool
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14059 $as_echo "pre-installed" >&6; }
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14064 $as_echo_n "checking where to find the target windres... " >&6; }
14065 if test "x${build}" != "x${host}" ; then
14066 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
14068 ac_dir=`dirname $WINDRES_FOR_TARGET`
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14070 $as_echo "pre-installed in $ac_dir" >&6; }
14071 else
14072 # Canadian cross, just use what we found
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14074 $as_echo "pre-installed" >&6; }
14076 else
14077 ok=yes
14078 case " ${configdirs} " in
14079 *" binutils "*) ;;
14080 *) ok=no ;;
14081 esac
14083 if test $ok = yes; then
14084 # An in-tree tool is available and we can use it
14085 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14087 $as_echo "just compiled" >&6; }
14088 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14089 # We already found the complete path
14090 ac_dir=`dirname $WINDRES_FOR_TARGET`
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14092 $as_echo "pre-installed in $ac_dir" >&6; }
14093 elif test "x$target" = "x$host"; then
14094 # We can use an host tool
14095 WINDRES_FOR_TARGET='$(WINDRES)'
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14097 $as_echo "host tool" >&6; }
14098 else
14099 # We need a cross tool
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101 $as_echo "pre-installed" >&6; }
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14106 $as_echo_n "checking where to find the target windmc... " >&6; }
14107 if test "x${build}" != "x${host}" ; then
14108 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
14110 ac_dir=`dirname $WINDMC_FOR_TARGET`
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112 $as_echo "pre-installed in $ac_dir" >&6; }
14113 else
14114 # Canadian cross, just use what we found
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116 $as_echo "pre-installed" >&6; }
14118 else
14119 ok=yes
14120 case " ${configdirs} " in
14121 *" binutils "*) ;;
14122 *) ok=no ;;
14123 esac
14125 if test $ok = yes; then
14126 # An in-tree tool is available and we can use it
14127 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14129 $as_echo "just compiled" >&6; }
14130 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14131 # We already found the complete path
14132 ac_dir=`dirname $WINDMC_FOR_TARGET`
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14134 $as_echo "pre-installed in $ac_dir" >&6; }
14135 elif test "x$target" = "x$host"; then
14136 # We can use an host tool
14137 WINDMC_FOR_TARGET='$(WINDMC)'
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14139 $as_echo "host tool" >&6; }
14140 else
14141 # We need a cross tool
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14143 $as_echo "pre-installed" >&6; }
14151 # Certain tools may need extra flags.
14152 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14153 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14154 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14156 # When building target libraries, except in a Canadian cross, we use
14157 # the same toolchain as the compiler we just built.
14158 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14159 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14160 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14161 if test $host = $build; then
14162 case " $configdirs " in
14163 *" gcc "*)
14164 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14165 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14166 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14168 esac
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14176 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14177 # Check whether --enable-maintainer-mode was given.
14178 if test "${enable_maintainer_mode+set}" = set; then :
14179 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14180 else
14181 USE_MAINTAINER_MODE=no
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14185 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14188 if test "$USE_MAINTAINER_MODE" = yes; then
14189 MAINTAINER_MODE_TRUE=
14190 MAINTAINER_MODE_FALSE='#'
14191 else
14192 MAINTAINER_MODE_TRUE='#'
14193 MAINTAINER_MODE_FALSE=
14195 MAINT=$MAINTAINER_MODE_TRUE
14197 # ---------------------
14198 # GCC bootstrap support
14199 # ---------------------
14201 # Stage specific cflags for build.
14202 stage1_cflags="-g"
14203 case $build in
14204 vax-*-*)
14205 case ${GCC} in
14206 yes) stage1_cflags="-g -Wa,-J" ;;
14207 *) stage1_cflags="-g -J" ;;
14208 esac ;;
14209 esac
14213 # Enable --enable-checking in stage1 of the compiler.
14214 # Check whether --enable-stage1-checking was given.
14215 if test "${enable_stage1_checking+set}" = set; then :
14216 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14217 else
14218 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14219 stage1_checking=--enable-checking=yes,types
14220 else
14221 stage1_checking=--enable-checking=$enable_checking,types
14227 # Enable -Werror in bootstrap stage2 and later.
14228 # Check whether --enable-werror was given.
14229 if test "${enable_werror+set}" = set; then :
14230 enableval=$enable_werror;
14231 else
14232 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14233 enable_werror=yes
14234 else
14235 enable_werror=no
14239 case ${enable_werror} in
14240 yes) stage2_werror_flag="--enable-werror-always" ;;
14241 *) stage2_werror_flag="" ;;
14242 esac
14245 # Specify what files to not compare during bootstrap.
14247 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14248 case "$target" in
14249 hppa*64*-*-hpux*) ;;
14250 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14251 esac
14254 ac_config_files="$ac_config_files Makefile"
14256 cat >confcache <<\_ACEOF
14257 # This file is a shell script that caches the results of configure
14258 # tests run on this system so they can be shared between configure
14259 # scripts and configure runs, see configure's option --config-cache.
14260 # It is not useful on other systems. If it contains results you don't
14261 # want to keep, you may remove or edit it.
14263 # config.status only pays attention to the cache file if you give it
14264 # the --recheck option to rerun configure.
14266 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14267 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14268 # following values.
14270 _ACEOF
14272 # The following way of writing the cache mishandles newlines in values,
14273 # but we know of no workaround that is simple, portable, and efficient.
14274 # So, we kill variables containing newlines.
14275 # Ultrix sh set writes to stderr and can't be redirected directly,
14276 # and sets the high bit in the cache file unless we assign to the vars.
14278 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14279 eval ac_val=\$$ac_var
14280 case $ac_val in #(
14281 *${as_nl}*)
14282 case $ac_var in #(
14283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14285 esac
14286 case $ac_var in #(
14287 _ | IFS | as_nl) ;; #(
14288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14289 *) { eval $ac_var=; unset $ac_var;} ;;
14290 esac ;;
14291 esac
14292 done
14294 (set) 2>&1 |
14295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14296 *${as_nl}ac_space=\ *)
14297 # `set' does not quote correctly, so add quotes: double-quote
14298 # substitution turns \\\\ into \\, and sed turns \\ into \.
14299 sed -n \
14300 "s/'/'\\\\''/g;
14301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14302 ;; #(
14304 # `set' quotes correctly as required by POSIX, so do not add quotes.
14305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14307 esac |
14308 sort
14310 sed '
14311 /^ac_cv_env_/b end
14312 t clear
14313 :clear
14314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14315 t end
14316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14317 :end' >>confcache
14318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14319 if test -w "$cache_file"; then
14320 test "x$cache_file" != "x/dev/null" &&
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14322 $as_echo "$as_me: updating cache $cache_file" >&6;}
14323 cat confcache >$cache_file
14324 else
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14326 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14329 rm -f confcache
14331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14332 # Let make expand exec_prefix.
14333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14335 # Transform confdefs.h into DEFS.
14336 # Protect against shell expansion while executing Makefile rules.
14337 # Protect against Makefile macro expansion.
14339 # If the first sed substitution is executed (which looks for macros that
14340 # take arguments), then branch to the quote section. Otherwise,
14341 # look for a macro that doesn't take arguments.
14342 ac_script='
14343 :mline
14344 /\\$/{
14346 s,\\\n,,
14347 b mline
14349 t clear
14350 :clear
14351 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14352 t quote
14353 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14354 t quote
14355 b any
14356 :quote
14357 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14358 s/\[/\\&/g
14359 s/\]/\\&/g
14360 s/\$/$$/g
14362 :any
14365 s/^\n//
14366 s/\n/ /g
14370 DEFS=`sed -n "$ac_script" confdefs.h`
14373 ac_libobjs=
14374 ac_ltlibobjs=
14375 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14376 # 1. Remove the extension, and $U if already installed.
14377 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14378 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14379 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14380 # will be set to the directory where LIBOBJS objects are built.
14381 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14382 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14383 done
14384 LIBOBJS=$ac_libobjs
14386 LTLIBOBJS=$ac_ltlibobjs
14390 : ${CONFIG_STATUS=./config.status}
14391 ac_write_fail=0
14392 ac_clean_files_save=$ac_clean_files
14393 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14395 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14396 as_write_fail=0
14397 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14398 #! $SHELL
14399 # Generated by $as_me.
14400 # Run this file to recreate the current configuration.
14401 # Compiler output produced by configure, useful for debugging
14402 # configure, is in config.log if it exists.
14404 debug=false
14405 ac_cs_recheck=false
14406 ac_cs_silent=false
14408 SHELL=\${CONFIG_SHELL-$SHELL}
14409 export SHELL
14410 _ASEOF
14411 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14412 ## -------------------- ##
14413 ## M4sh Initialization. ##
14414 ## -------------------- ##
14416 # Be more Bourne compatible
14417 DUALCASE=1; export DUALCASE # for MKS sh
14418 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14419 emulate sh
14420 NULLCMD=:
14421 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14422 # is contrary to our usage. Disable this feature.
14423 alias -g '${1+"$@"}'='"$@"'
14424 setopt NO_GLOB_SUBST
14425 else
14426 case `(set -o) 2>/dev/null` in #(
14427 *posix*) :
14428 set -o posix ;; #(
14429 *) :
14431 esac
14435 as_nl='
14437 export as_nl
14438 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14439 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14440 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14441 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14442 # Prefer a ksh shell builtin over an external printf program on Solaris,
14443 # but without wasting forks for bash or zsh.
14444 if test -z "$BASH_VERSION$ZSH_VERSION" \
14445 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14446 as_echo='print -r --'
14447 as_echo_n='print -rn --'
14448 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14449 as_echo='printf %s\n'
14450 as_echo_n='printf %s'
14451 else
14452 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14453 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14454 as_echo_n='/usr/ucb/echo -n'
14455 else
14456 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14457 as_echo_n_body='eval
14458 arg=$1;
14459 case $arg in #(
14460 *"$as_nl"*)
14461 expr "X$arg" : "X\\(.*\\)$as_nl";
14462 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14463 esac;
14464 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14466 export as_echo_n_body
14467 as_echo_n='sh -c $as_echo_n_body as_echo'
14469 export as_echo_body
14470 as_echo='sh -c $as_echo_body as_echo'
14473 # The user is always right.
14474 if test "${PATH_SEPARATOR+set}" != set; then
14475 PATH_SEPARATOR=:
14476 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14477 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14478 PATH_SEPARATOR=';'
14483 # IFS
14484 # We need space, tab and new line, in precisely that order. Quoting is
14485 # there to prevent editors from complaining about space-tab.
14486 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14487 # splitting by setting IFS to empty value.)
14488 IFS=" "" $as_nl"
14490 # Find who we are. Look in the path if we contain no directory separator.
14491 case $0 in #((
14492 *[\\/]* ) as_myself=$0 ;;
14493 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14494 for as_dir in $PATH
14496 IFS=$as_save_IFS
14497 test -z "$as_dir" && as_dir=.
14498 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14499 done
14500 IFS=$as_save_IFS
14503 esac
14504 # We did not find ourselves, most probably we were run as `sh COMMAND'
14505 # in which case we are not to be found in the path.
14506 if test "x$as_myself" = x; then
14507 as_myself=$0
14509 if test ! -f "$as_myself"; then
14510 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14511 exit 1
14514 # Unset variables that we do not need and which cause bugs (e.g. in
14515 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14516 # suppresses any "Segmentation fault" message there. '((' could
14517 # trigger a bug in pdksh 5.2.14.
14518 for as_var in BASH_ENV ENV MAIL MAILPATH
14519 do eval test x\${$as_var+set} = xset \
14520 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14521 done
14522 PS1='$ '
14523 PS2='> '
14524 PS4='+ '
14526 # NLS nuisances.
14527 LC_ALL=C
14528 export LC_ALL
14529 LANGUAGE=C
14530 export LANGUAGE
14532 # CDPATH.
14533 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14536 # as_fn_error ERROR [LINENO LOG_FD]
14537 # ---------------------------------
14538 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14539 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14540 # script with status $?, using 1 if that was 0.
14541 as_fn_error ()
14543 as_status=$?; test $as_status -eq 0 && as_status=1
14544 if test "$3"; then
14545 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14546 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14548 $as_echo "$as_me: error: $1" >&2
14549 as_fn_exit $as_status
14550 } # as_fn_error
14553 # as_fn_set_status STATUS
14554 # -----------------------
14555 # Set $? to STATUS, without forking.
14556 as_fn_set_status ()
14558 return $1
14559 } # as_fn_set_status
14561 # as_fn_exit STATUS
14562 # -----------------
14563 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14564 as_fn_exit ()
14566 set +e
14567 as_fn_set_status $1
14568 exit $1
14569 } # as_fn_exit
14571 # as_fn_unset VAR
14572 # ---------------
14573 # Portably unset VAR.
14574 as_fn_unset ()
14576 { eval $1=; unset $1;}
14578 as_unset=as_fn_unset
14579 # as_fn_append VAR VALUE
14580 # ----------------------
14581 # Append the text in VALUE to the end of the definition contained in VAR. Take
14582 # advantage of any shell optimizations that allow amortized linear growth over
14583 # repeated appends, instead of the typical quadratic growth present in naive
14584 # implementations.
14585 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14586 eval 'as_fn_append ()
14588 eval $1+=\$2
14590 else
14591 as_fn_append ()
14593 eval $1=\$$1\$2
14595 fi # as_fn_append
14597 # as_fn_arith ARG...
14598 # ------------------
14599 # Perform arithmetic evaluation on the ARGs, and store the result in the
14600 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14601 # must be portable across $(()) and expr.
14602 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14603 eval 'as_fn_arith ()
14605 as_val=$(( $* ))
14607 else
14608 as_fn_arith ()
14610 as_val=`expr "$@" || test $? -eq 1`
14612 fi # as_fn_arith
14615 if expr a : '\(a\)' >/dev/null 2>&1 &&
14616 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14617 as_expr=expr
14618 else
14619 as_expr=false
14622 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14623 as_basename=basename
14624 else
14625 as_basename=false
14628 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14629 as_dirname=dirname
14630 else
14631 as_dirname=false
14634 as_me=`$as_basename -- "$0" ||
14635 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14636 X"$0" : 'X\(//\)$' \| \
14637 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14638 $as_echo X/"$0" |
14639 sed '/^.*\/\([^/][^/]*\)\/*$/{
14640 s//\1/
14643 /^X\/\(\/\/\)$/{
14644 s//\1/
14647 /^X\/\(\/\).*/{
14648 s//\1/
14651 s/.*/./; q'`
14653 # Avoid depending upon Character Ranges.
14654 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14655 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14656 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14657 as_cr_digits='0123456789'
14658 as_cr_alnum=$as_cr_Letters$as_cr_digits
14660 ECHO_C= ECHO_N= ECHO_T=
14661 case `echo -n x` in #(((((
14662 -n*)
14663 case `echo 'xy\c'` in
14664 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14665 xy) ECHO_C='\c';;
14666 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14667 ECHO_T=' ';;
14668 esac;;
14670 ECHO_N='-n';;
14671 esac
14673 rm -f conf$$ conf$$.exe conf$$.file
14674 if test -d conf$$.dir; then
14675 rm -f conf$$.dir/conf$$.file
14676 else
14677 rm -f conf$$.dir
14678 mkdir conf$$.dir 2>/dev/null
14680 if (echo >conf$$.file) 2>/dev/null; then
14681 if ln -s conf$$.file conf$$ 2>/dev/null; then
14682 as_ln_s='ln -s'
14683 # ... but there are two gotchas:
14684 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14685 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14686 # In both cases, we have to default to `cp -p'.
14687 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14688 as_ln_s='cp -p'
14689 elif ln conf$$.file conf$$ 2>/dev/null; then
14690 as_ln_s=ln
14691 else
14692 as_ln_s='cp -p'
14694 else
14695 as_ln_s='cp -p'
14697 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14698 rmdir conf$$.dir 2>/dev/null
14701 # as_fn_mkdir_p
14702 # -------------
14703 # Create "$as_dir" as a directory, including parents if necessary.
14704 as_fn_mkdir_p ()
14707 case $as_dir in #(
14708 -*) as_dir=./$as_dir;;
14709 esac
14710 test -d "$as_dir" || eval $as_mkdir_p || {
14711 as_dirs=
14712 while :; do
14713 case $as_dir in #(
14714 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14715 *) as_qdir=$as_dir;;
14716 esac
14717 as_dirs="'$as_qdir' $as_dirs"
14718 as_dir=`$as_dirname -- "$as_dir" ||
14719 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14720 X"$as_dir" : 'X\(//\)[^/]' \| \
14721 X"$as_dir" : 'X\(//\)$' \| \
14722 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14723 $as_echo X"$as_dir" |
14724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14725 s//\1/
14728 /^X\(\/\/\)[^/].*/{
14729 s//\1/
14732 /^X\(\/\/\)$/{
14733 s//\1/
14736 /^X\(\/\).*/{
14737 s//\1/
14740 s/.*/./; q'`
14741 test -d "$as_dir" && break
14742 done
14743 test -z "$as_dirs" || eval "mkdir $as_dirs"
14744 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14747 } # as_fn_mkdir_p
14748 if mkdir -p . 2>/dev/null; then
14749 as_mkdir_p='mkdir -p "$as_dir"'
14750 else
14751 test -d ./-p && rmdir ./-p
14752 as_mkdir_p=false
14755 if test -x / >/dev/null 2>&1; then
14756 as_test_x='test -x'
14757 else
14758 if ls -dL / >/dev/null 2>&1; then
14759 as_ls_L_option=L
14760 else
14761 as_ls_L_option=
14763 as_test_x='
14764 eval sh -c '\''
14765 if test -d "$1"; then
14766 test -d "$1/.";
14767 else
14768 case $1 in #(
14769 -*)set "./$1";;
14770 esac;
14771 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14772 ???[sx]*):;;*)false;;esac;fi
14773 '\'' sh
14776 as_executable_p=$as_test_x
14778 # Sed expression to map a string onto a valid CPP name.
14779 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14781 # Sed expression to map a string onto a valid variable name.
14782 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14785 exec 6>&1
14786 ## ----------------------------------- ##
14787 ## Main body of $CONFIG_STATUS script. ##
14788 ## ----------------------------------- ##
14789 _ASEOF
14790 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14793 # Save the log message, to keep $0 and so on meaningful, and to
14794 # report actual input values of CONFIG_FILES etc. instead of their
14795 # values after options handling.
14796 ac_log="
14797 This file was extended by $as_me, which was
14798 generated by GNU Autoconf 2.64. Invocation command line was
14800 CONFIG_FILES = $CONFIG_FILES
14801 CONFIG_HEADERS = $CONFIG_HEADERS
14802 CONFIG_LINKS = $CONFIG_LINKS
14803 CONFIG_COMMANDS = $CONFIG_COMMANDS
14804 $ $0 $@
14806 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14809 _ACEOF
14811 case $ac_config_files in *"
14812 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14813 esac
14817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14818 # Files that config.status was made for.
14819 config_files="$ac_config_files"
14821 _ACEOF
14823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14824 ac_cs_usage="\
14825 \`$as_me' instantiates files and other configuration actions
14826 from templates according to the current configuration. Unless the files
14827 and actions are specified as TAGs, all are instantiated by default.
14829 Usage: $0 [OPTION]... [TAG]...
14831 -h, --help print this help, then exit
14832 -V, --version print version number and configuration settings, then exit
14833 -q, --quiet, --silent
14834 do not print progress messages
14835 -d, --debug don't remove temporary files
14836 --recheck update $as_me by reconfiguring in the same conditions
14837 --file=FILE[:TEMPLATE]
14838 instantiate the configuration file FILE
14840 Configuration files:
14841 $config_files
14843 Report bugs to the package provider."
14845 _ACEOF
14846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14847 ac_cs_version="\\
14848 config.status
14849 configured by $0, generated by GNU Autoconf 2.64,
14850 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14852 Copyright (C) 2009 Free Software Foundation, Inc.
14853 This config.status script is free software; the Free Software Foundation
14854 gives unlimited permission to copy, distribute and modify it."
14856 ac_pwd='$ac_pwd'
14857 srcdir='$srcdir'
14858 INSTALL='$INSTALL'
14859 AWK='$AWK'
14860 test -n "\$AWK" || AWK=awk
14861 _ACEOF
14863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14864 # The default lists apply if the user does not specify any file.
14865 ac_need_defaults=:
14866 while test $# != 0
14868 case $1 in
14869 --*=*)
14870 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14871 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14872 ac_shift=:
14875 ac_option=$1
14876 ac_optarg=$2
14877 ac_shift=shift
14879 esac
14881 case $ac_option in
14882 # Handling of the options.
14883 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14884 ac_cs_recheck=: ;;
14885 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14886 $as_echo "$ac_cs_version"; exit ;;
14887 --debug | --debu | --deb | --de | --d | -d )
14888 debug=: ;;
14889 --file | --fil | --fi | --f )
14890 $ac_shift
14891 case $ac_optarg in
14892 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14893 esac
14894 as_fn_append CONFIG_FILES " '$ac_optarg'"
14895 ac_need_defaults=false;;
14896 --he | --h | --help | --hel | -h )
14897 $as_echo "$ac_cs_usage"; exit ;;
14898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14900 ac_cs_silent=: ;;
14902 # This is an error.
14903 -*) as_fn_error "unrecognized option: \`$1'
14904 Try \`$0 --help' for more information." ;;
14906 *) as_fn_append ac_config_targets " $1"
14907 ac_need_defaults=false ;;
14909 esac
14910 shift
14911 done
14913 ac_configure_extra_args=
14915 if $ac_cs_silent; then
14916 exec 6>/dev/null
14917 ac_configure_extra_args="$ac_configure_extra_args --silent"
14920 _ACEOF
14921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14922 if \$ac_cs_recheck; then
14923 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14924 shift
14925 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14926 CONFIG_SHELL='$SHELL'
14927 export CONFIG_SHELL
14928 exec "\$@"
14931 _ACEOF
14932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14933 exec 5>>config.log
14935 echo
14936 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14937 ## Running $as_me. ##
14938 _ASBOX
14939 $as_echo "$ac_log"
14940 } >&5
14942 _ACEOF
14943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14945 # INIT-COMMANDS
14947 extrasub_build="$extrasub_build"
14948 extrasub_host="$extrasub_host"
14949 extrasub_target="$extrasub_target"
14951 _ACEOF
14953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14955 # Handling of arguments.
14956 for ac_config_target in $ac_config_targets
14958 case $ac_config_target in
14959 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14961 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14962 esac
14963 done
14966 # If the user did not use the arguments to specify the items to instantiate,
14967 # then the envvar interface is used. Set only those that are not.
14968 # We use the long form for the default assignment because of an extremely
14969 # bizarre bug on SunOS 4.1.3.
14970 if $ac_need_defaults; then
14971 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14974 # Have a temporary directory for convenience. Make it in the build tree
14975 # simply because there is no reason against having it here, and in addition,
14976 # creating and moving files from /tmp can sometimes cause problems.
14977 # Hook for its removal unless debugging.
14978 # Note that there is a small window in which the directory will not be cleaned:
14979 # after its creation but before its name has been assigned to `$tmp'.
14980 $debug ||
14982 tmp=
14983 trap 'exit_status=$?
14984 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14986 trap 'as_fn_exit 1' 1 2 13 15
14988 # Create a (secure) tmp directory for tmp files.
14991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14992 test -n "$tmp" && test -d "$tmp"
14993 } ||
14995 tmp=./conf$$-$RANDOM
14996 (umask 077 && mkdir "$tmp")
14997 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14999 # Set up the scripts for CONFIG_FILES section.
15000 # No need to generate them if there are no CONFIG_FILES.
15001 # This happens for instance with `./config.status config.h'.
15002 if test -n "$CONFIG_FILES"; then
15004 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15005 ac_cs_awk_getline=:
15006 ac_cs_awk_pipe_init=
15007 ac_cs_awk_read_file='
15008 while ((getline aline < (F[key])) > 0)
15009 print(aline)
15010 close(F[key])'
15011 ac_cs_awk_pipe_fini=
15012 else
15013 ac_cs_awk_getline=false
15014 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15015 ac_cs_awk_read_file='
15016 print "|#_!!_#|"
15017 print "cat " F[key] " &&"
15018 '$ac_cs_awk_pipe_init
15019 # The final `:' finishes the AND list.
15020 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15022 ac_cr=`echo X | tr X '\015'`
15023 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15024 # But we know of no other shell where ac_cr would be empty at this
15025 # point, so we can use a bashism as a fallback.
15026 if test "x$ac_cr" = x; then
15027 eval ac_cr=\$\'\\r\'
15029 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15030 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15031 ac_cs_awk_cr='\r'
15032 else
15033 ac_cs_awk_cr=$ac_cr
15036 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15037 _ACEOF
15039 # Create commands to substitute file output variables.
15041 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15042 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15043 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15044 echo "_ACAWK" &&
15045 echo "_ACEOF"
15046 } >conf$$files.sh &&
15047 . ./conf$$files.sh ||
15048 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15049 rm -f conf$$files.sh
15052 echo "cat >conf$$subs.awk <<_ACEOF" &&
15053 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15054 echo "_ACEOF"
15055 } >conf$$subs.sh ||
15056 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15057 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15058 ac_delim='%!_!# '
15059 for ac_last_try in false false false false false :; do
15060 . ./conf$$subs.sh ||
15061 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15063 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15064 if test $ac_delim_n = $ac_delim_num; then
15065 break
15066 elif $ac_last_try; then
15067 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15068 else
15069 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15071 done
15072 rm -f conf$$subs.sh
15074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15076 _ACEOF
15077 sed -n '
15079 s/^/S["/; s/!.*/"]=/
15082 s/^[^!]*!//
15083 :repl
15084 t repl
15085 s/'"$ac_delim"'$//
15086 t delim
15089 s/\(.\{148\}\).*/\1/
15090 t more1
15091 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15094 b repl
15095 :more1
15096 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15099 s/.\{148\}//
15100 t nl
15101 :delim
15103 s/\(.\{148\}\).*/\1/
15104 t more2
15105 s/["\\]/\\&/g; s/^/"/; s/$/"/
15108 :more2
15109 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15112 s/.\{148\}//
15113 t delim
15114 ' <conf$$subs.awk | sed '
15115 /^[^""]/{
15117 s/\n//
15119 ' >>$CONFIG_STATUS || ac_write_fail=1
15120 rm -f conf$$subs.awk
15121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15122 _ACAWK
15123 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15124 for (key in S) S_is_set[key] = 1
15125 FS = "\a"
15126 \$ac_cs_awk_pipe_init
15129 line = $ 0
15130 nfields = split(line, field, "@")
15131 substed = 0
15132 len = length(field[1])
15133 for (i = 2; i < nfields; i++) {
15134 key = field[i]
15135 keylen = length(key)
15136 if (S_is_set[key]) {
15137 value = S[key]
15138 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15139 len += length(value) + length(field[++i])
15140 substed = 1
15141 } else
15142 len += 1 + keylen
15144 if (nfields == 3 && !substed) {
15145 key = field[2]
15146 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15147 \$ac_cs_awk_read_file
15148 next
15151 print line
15153 \$ac_cs_awk_pipe_fini
15154 _ACAWK
15155 _ACEOF
15156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15157 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15158 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15159 else
15161 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15162 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15163 _ACEOF
15165 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15166 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15167 # trailing colons and then remove the whole line if VPATH becomes empty
15168 # (actually we leave an empty line to preserve line numbers).
15169 if test "x$srcdir" = x.; then
15170 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15171 s/:*\$(srcdir):*/:/
15172 s/:*\${srcdir}:*/:/
15173 s/:*@srcdir@:*/:/
15174 s/^\([^=]*=[ ]*\):*/\1/
15175 s/:*$//
15176 s/^[^=]*=[ ]*$//
15180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15181 fi # test -n "$CONFIG_FILES"
15184 eval set X " :F $CONFIG_FILES "
15185 shift
15186 for ac_tag
15188 case $ac_tag in
15189 :[FHLC]) ac_mode=$ac_tag; continue;;
15190 esac
15191 case $ac_mode$ac_tag in
15192 :[FHL]*:*);;
15193 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15194 :[FH]-) ac_tag=-:-;;
15195 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15196 esac
15197 ac_save_IFS=$IFS
15198 IFS=:
15199 set x $ac_tag
15200 IFS=$ac_save_IFS
15201 shift
15202 ac_file=$1
15203 shift
15205 case $ac_mode in
15206 :L) ac_source=$1;;
15207 :[FH])
15208 ac_file_inputs=
15209 for ac_f
15211 case $ac_f in
15212 -) ac_f="$tmp/stdin";;
15213 *) # Look for the file first in the build tree, then in the source tree
15214 # (if the path is not absolute). The absolute path cannot be DOS-style,
15215 # because $ac_f cannot contain `:'.
15216 test -f "$ac_f" ||
15217 case $ac_f in
15218 [\\/$]*) false;;
15219 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15220 esac ||
15221 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15222 esac
15223 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15224 as_fn_append ac_file_inputs " '$ac_f'"
15225 done
15227 # Let's still pretend it is `configure' which instantiates (i.e., don't
15228 # use $as_me), people would be surprised to read:
15229 # /* config.h. Generated by config.status. */
15230 configure_input='Generated from '`
15231 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15232 `' by configure.'
15233 if test x"$ac_file" != x-; then
15234 configure_input="$ac_file. $configure_input"
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15236 $as_echo "$as_me: creating $ac_file" >&6;}
15238 # Neutralize special characters interpreted by sed in replacement strings.
15239 case $configure_input in #(
15240 *\&* | *\|* | *\\* )
15241 ac_sed_conf_input=`$as_echo "$configure_input" |
15242 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15243 *) ac_sed_conf_input=$configure_input;;
15244 esac
15246 case $ac_tag in
15247 *:-:* | *:-) cat >"$tmp/stdin" \
15248 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15249 esac
15251 esac
15253 ac_dir=`$as_dirname -- "$ac_file" ||
15254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15255 X"$ac_file" : 'X\(//\)[^/]' \| \
15256 X"$ac_file" : 'X\(//\)$' \| \
15257 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15258 $as_echo X"$ac_file" |
15259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15260 s//\1/
15263 /^X\(\/\/\)[^/].*/{
15264 s//\1/
15267 /^X\(\/\/\)$/{
15268 s//\1/
15271 /^X\(\/\).*/{
15272 s//\1/
15275 s/.*/./; q'`
15276 as_dir="$ac_dir"; as_fn_mkdir_p
15277 ac_builddir=.
15279 case "$ac_dir" in
15280 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15282 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15283 # A ".." for each directory in $ac_dir_suffix.
15284 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15285 case $ac_top_builddir_sub in
15286 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15287 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15288 esac ;;
15289 esac
15290 ac_abs_top_builddir=$ac_pwd
15291 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15292 # for backward compatibility:
15293 ac_top_builddir=$ac_top_build_prefix
15295 case $srcdir in
15296 .) # We are building in place.
15297 ac_srcdir=.
15298 ac_top_srcdir=$ac_top_builddir_sub
15299 ac_abs_top_srcdir=$ac_pwd ;;
15300 [\\/]* | ?:[\\/]* ) # Absolute name.
15301 ac_srcdir=$srcdir$ac_dir_suffix;
15302 ac_top_srcdir=$srcdir
15303 ac_abs_top_srcdir=$srcdir ;;
15304 *) # Relative name.
15305 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15306 ac_top_srcdir=$ac_top_build_prefix$srcdir
15307 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15308 esac
15309 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15312 case $ac_mode in
15315 # CONFIG_FILE
15318 case $INSTALL in
15319 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15320 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15321 esac
15322 _ACEOF
15324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15325 # If the template does not know about datarootdir, expand it.
15326 # FIXME: This hack should be removed a few years after 2.60.
15327 ac_datarootdir_hack=; ac_datarootdir_seen=
15328 ac_sed_dataroot='
15329 /datarootdir/ {
15333 /@datadir@/p
15334 /@docdir@/p
15335 /@infodir@/p
15336 /@localedir@/p
15337 /@mandir@/p'
15338 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15339 *datarootdir*) ac_datarootdir_seen=yes;;
15340 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15342 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15343 _ACEOF
15344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15345 ac_datarootdir_hack='
15346 s&@datadir@&$datadir&g
15347 s&@docdir@&$docdir&g
15348 s&@infodir@&$infodir&g
15349 s&@localedir@&$localedir&g
15350 s&@mandir@&$mandir&g
15351 s&\\\${datarootdir}&$datarootdir&g' ;;
15352 esac
15353 _ACEOF
15355 # Neutralize VPATH when `$srcdir' = `.'.
15356 # Shell code in configure.ac might set extrasub.
15357 # FIXME: do we really want to maintain this feature?
15358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15359 ac_sed_extra="$ac_vpsub
15360 $extrasub
15361 _ACEOF
15362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15365 s|@configure_input@|$ac_sed_conf_input|;t t
15366 s&@top_builddir@&$ac_top_builddir_sub&;t t
15367 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15368 s&@srcdir@&$ac_srcdir&;t t
15369 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15370 s&@top_srcdir@&$ac_top_srcdir&;t t
15371 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15372 s&@builddir@&$ac_builddir&;t t
15373 s&@abs_builddir@&$ac_abs_builddir&;t t
15374 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15375 s&@INSTALL@&$ac_INSTALL&;t t
15376 $ac_datarootdir_hack
15378 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15379 if $ac_cs_awk_getline; then
15380 $AWK -f "$tmp/subs.awk"
15381 else
15382 $AWK -f "$tmp/subs.awk" | $SHELL
15383 fi >$tmp/out \
15384 || as_fn_error "could not create $ac_file" "$LINENO" 5
15386 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15387 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15388 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15390 which seems to be undefined. Please make sure it is defined." >&5
15391 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15392 which seems to be undefined. Please make sure it is defined." >&2;}
15394 rm -f "$tmp/stdin"
15395 case $ac_file in
15396 -) cat "$tmp/out" && rm -f "$tmp/out";;
15397 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15398 esac \
15399 || as_fn_error "could not create $ac_file" "$LINENO" 5
15404 esac
15407 case $ac_file$ac_mode in
15408 "Makefile":F) sed "$extrasub_build" Makefile |
15409 sed "$extrasub_host" |
15410 sed "$extrasub_target" > mf$$
15411 mv -f mf$$ Makefile ;;
15413 esac
15414 done # for ac_tag
15417 as_fn_exit 0
15418 _ACEOF
15419 ac_clean_files=$ac_clean_files_save
15421 test $ac_write_fail = 0 ||
15422 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15425 # configure is writing to config.log, and then calls config.status.
15426 # config.status does its own redirection, appending to config.log.
15427 # Unfortunately, on DOS this fails, as config.log is still kept open
15428 # by configure, so config.status won't be able to write to it; its
15429 # output is simply discarded. So we exec the FD to /dev/null,
15430 # effectively closing config.log, so it can be properly (re)opened and
15431 # appended to by config.status. When coming back to configure, we
15432 # need to make the FD available again.
15433 if test "$no_create" != yes; then
15434 ac_cs_success=:
15435 ac_config_status_args=
15436 test "$silent" = yes &&
15437 ac_config_status_args="$ac_config_status_args --quiet"
15438 exec 5>/dev/null
15439 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15440 exec 5>>config.log
15441 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15442 # would make configure fail if this is the last instruction.
15443 $ac_cs_success || as_fn_exit $?
15445 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15447 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}