Bump date stamp to 20120822
[official-gcc.git] / configure
blob20bd6c8c6e908d72667623f65584ae64ab1aaf93
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 GUPC_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GUPC_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 stage1_languages
647 extra_host_libiberty_configure_flags
648 clooginc
649 clooglibs
650 islinc
651 isllibs
652 poststage1_ldflags
653 poststage1_libs
654 stage1_libs
655 stage1_ldflags
656 extra_isl_gmp_configure_flags
657 extra_mpc_mpfr_configure_flags
658 extra_mpc_gmp_configure_flags
659 extra_mpfr_configure_flags
660 gmpinc
661 gmplibs
662 do_compare
663 GNATMAKE
664 GNATBIND
665 ac_ct_CXX
666 CXXFLAGS
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
675 EXTRA_CONFIGARGS_LIBJAVA
676 target_subdir
677 host_subdir
678 build_subdir
679 build_libsubdir
682 LN_S
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 target_noncanonical
696 host_noncanonical
697 build_noncanonical
698 build_os
699 build_vendor
700 build_cpu
701 build
702 TOPLEVEL_CONFIGURE_ARGUMENTS
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_URL
734 PACKAGE_BUGREPORT
735 PACKAGE_STRING
736 PACKAGE_VERSION
737 PACKAGE_TARNAME
738 PACKAGE_NAME
739 PATH_SEPARATOR
740 SHELL'
741 ac_subst_files='serialization_dependencies
742 host_makefile_frag
743 target_makefile_frag
744 alphaieee_frag
745 ospace_frag'
746 ac_user_opts='
747 enable_option_checking
748 with_build_libsubdir
749 enable_gold
750 enable_ld
751 enable_libquadmath
752 enable_libquadmath_support
753 enable_libada
754 enable_libssp
755 enable_static_libjava
756 enable_bootstrap
757 with_mpc
758 with_mpc_include
759 with_mpc_lib
760 with_mpfr_dir
761 with_mpfr
762 with_mpfr_include
763 with_mpfr_lib
764 with_gmp_dir
765 with_gmp
766 with_gmp_include
767 with_gmp_lib
768 with_host_libstdcxx
769 with_stage1_ldflags
770 with_stage1_libs
771 with_boot_libs
772 with_boot_ldflags
773 with_isl
774 with_isl_include
775 with_isl_lib
776 enable_isl_version_check
777 with_cloog
778 with_cloog_include
779 with_cloog_lib
780 enable_cloog_version_check
781 enable_lto
782 enable_stage1_languages
783 enable_objc_gc
784 with_upc_pts
785 with_build_sysroot
786 with_debug_prefix_map
787 with_build_config
788 enable_serial_configure
789 enable_upc_link_script
790 with_build_time_tools
791 enable_maintainer_mode
792 enable_stage1_checking
793 enable_werror
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
804 CXXFLAGS
806 build_configargs
807 host_configargs
808 target_configargs
811 DLLTOOL
813 LIPO
815 RANLIB
816 STRIP
817 WINDRES
818 WINDMC
819 OBJCOPY
820 OBJDUMP
821 READELF
822 CC_FOR_TARGET
823 CXX_FOR_TARGET
824 GCC_FOR_TARGET
825 GCJ_FOR_TARGET
826 GFORTRAN_FOR_TARGET
827 GOC_FOR_TARGET
828 GUPC_FOR_TARGET
829 AR_FOR_TARGET
830 AS_FOR_TARGET
831 DLLTOOL_FOR_TARGET
832 LD_FOR_TARGET
833 LIPO_FOR_TARGET
834 NM_FOR_TARGET
835 OBJDUMP_FOR_TARGET
836 RANLIB_FOR_TARGET
837 READELF_FOR_TARGET
838 STRIP_FOR_TARGET
839 WINDRES_FOR_TARGET
840 WINDMC_FOR_TARGET'
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
891 ac_prev=
892 ac_dashdash=
893 for ac_option
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
902 case $ac_option in
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *) ac_optarg=yes ;;
905 esac
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
911 ac_dashdash=yes ;;
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
930 --config-cache | -C)
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) as_fn_error "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information."
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1235 esac
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 esac
1248 done
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error "missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 esac
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
1277 case $ac_val in
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 esac
1281 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1334 /^X\(\/\/\)$/{
1335 s//\1/
1338 /^X\(\/\).*/{
1339 s//\1/
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1347 else
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 case $srcdir in
1369 *" "*)
1370 as_fn_error "path to source, $srcdir, contains spaces"
1372 esac
1373 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 done
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1398 Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 [PREFIX]
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442 _ACEOF
1444 cat <<\_ACEOF
1446 Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451 System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 --target=TARGET configure for building compilers for TARGET [HOST]
1455 _ACEOF
1458 if test -n "$ac_init_help"; then
1460 cat <<\_ACEOF
1462 Optional Features:
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1467 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1468 --disable-libquadmath do not build libquadmath directory
1469 --disable-libquadmath-support
1470 disable libquadmath support for Fortran
1471 --enable-libada build libada directory
1472 --enable-libssp build libssp directory
1473 --enable-static-libjava[=ARG]
1474 build static libjava [default=no]
1475 --enable-bootstrap enable bootstrapping [yes if native build]
1476 --disable-isl-version-check
1477 disable check for ISL version
1478 --disable-cloog-version-check
1479 disable check for CLooG version
1480 --enable-lto enable link time optimization support
1481 --enable-stage1-languages[=all]
1482 choose additional languages to build during stage1.
1483 Mostly useful for compiler development
1484 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1485 Objective-C runtime
1486 --enable-serial-[{host,target,build}-]configure
1487 force sequential configuration of sub-packages for
1488 the host, target or build machine, or all
1489 sub-packages
1490 --enable-upc-link-script
1491 enable UPC's use of a custom linker script; this
1492 will define the UPC shared section as a no load
1493 section on targets where this feature is supported
1494 (requires GNU LD)
1495 --enable-maintainer-mode
1496 enable make rules and dependencies not useful (and
1497 sometimes confusing) to the casual installer
1498 --enable-stage1-checking[=all]
1499 choose additional checking for stage1 of the
1500 compiler
1501 --enable-werror enable -Werror in bootstrap stage2 and later
1503 Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-build-libsubdir=DIR Directory where to find libraries for build system
1507 --with-mpc=PATH specify prefix directory for installed MPC package.
1508 Equivalent to --with-mpc-include=PATH/include plus
1509 --with-mpc-lib=PATH/lib
1510 --with-mpc-include=PATH specify directory for installed MPC include files
1511 --with-mpc-lib=PATH specify directory for the installed MPC library
1512 --with-mpfr-dir=PATH this option has been REMOVED
1513 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1514 Equivalent to --with-mpfr-include=PATH/include plus
1515 --with-mpfr-lib=PATH/lib
1516 --with-mpfr-include=PATH
1517 specify directory for installed MPFR include files
1518 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1519 --with-gmp-dir=PATH this option has been REMOVED
1520 --with-gmp=PATH specify prefix directory for the installed GMP
1521 package. Equivalent to
1522 --with-gmp-include=PATH/include plus
1523 --with-gmp-lib=PATH/lib
1524 --with-gmp-include=PATH specify directory for installed GMP include files
1525 --with-gmp-lib=PATH specify directory for the installed GMP library
1526 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1527 linking with PPL
1528 --with-stage1-ldflags=FLAGS
1529 linker flags for stage1
1530 --with-stage1-libs=LIBS libraries for stage1
1531 --with-boot-libs=LIBS libraries for stage2 and later
1532 --with-boot-ldflags=FLAGS
1533 linker flags for stage2 and later
1534 --with-isl=PATH Specify prefix directory for the installed ISL
1535 package. Equivalent to
1536 --with-isl-include=PATH/include plus
1537 --with-isl-lib=PATH/lib
1538 --with-isl-include=PATH Specify directory for installed ISL include files
1539 --with-isl-lib=PATH Specify the directory for the installed ISL library
1540 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1541 package. Equivalent to
1542 --with-cloog-include=PATH/include plus
1543 --with-cloog-lib=PATH/lib
1544 --with-cloog-include=PATH
1545 Specify directory for installed CLooG include files
1546 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1547 library
1548 --with-upc-pts={struct,packed}
1549 choose the representation of a UPC pointer-to-shared
1550 --with-build-sysroot=SYSROOT
1551 use sysroot as the system root during the build
1552 --with-debug-prefix-map='A=B C=D ...'
1553 map A to B, C to D ... in debug information
1554 --with-build-config='NAME NAME2...'
1555 use config/NAME.mk build configuration
1556 --with-build-time-tools=PATH
1557 use given path to find target tools during the build
1559 Some influential environment variables:
1560 CC C compiler command
1561 CFLAGS C compiler flags
1562 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1563 nonstandard directory <lib dir>
1564 LIBS libraries to pass to the linker, e.g. -l<library>
1565 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1566 you have headers in a nonstandard directory <include dir>
1567 CXX C++ compiler command
1568 CXXFLAGS C++ compiler flags
1569 build_configargs
1570 additional configure arguments for build directories
1571 host_configargs
1572 additional configure arguments for host directories
1573 target_configargs
1574 additional configure arguments for target directories
1575 AR AR for the host
1576 AS AS for the host
1577 DLLTOOL DLLTOOL for the host
1578 LD LD for the host
1579 LIPO LIPO for the host
1580 NM NM for the host
1581 RANLIB RANLIB for the host
1582 STRIP STRIP for the host
1583 WINDRES WINDRES for the host
1584 WINDMC WINDMC for the host
1585 OBJCOPY OBJCOPY for the host
1586 OBJDUMP OBJDUMP for the host
1587 READELF READELF for the host
1588 CC_FOR_TARGET
1589 CC for the target
1590 CXX_FOR_TARGET
1591 CXX for the target
1592 GCC_FOR_TARGET
1593 GCC for the target
1594 GCJ_FOR_TARGET
1595 GCJ for the target
1596 GFORTRAN_FOR_TARGET
1597 GFORTRAN for the target
1598 GOC_FOR_TARGET
1599 GOC for the target
1600 GUPC_FOR_TARGET
1601 GUPC for the target
1602 AR_FOR_TARGET
1603 AR for the target
1604 AS_FOR_TARGET
1605 AS for the target
1606 DLLTOOL_FOR_TARGET
1607 DLLTOOL for the target
1608 LD_FOR_TARGET
1609 LD for the target
1610 LIPO_FOR_TARGET
1611 LIPO for the target
1612 NM_FOR_TARGET
1613 NM for the target
1614 OBJDUMP_FOR_TARGET
1615 OBJDUMP for the target
1616 RANLIB_FOR_TARGET
1617 RANLIB for the target
1618 READELF_FOR_TARGET
1619 READELF for the target
1620 STRIP_FOR_TARGET
1621 STRIP for the target
1622 WINDRES_FOR_TARGET
1623 WINDRES for the target
1624 WINDMC_FOR_TARGET
1625 WINDMC for the target
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1630 Report bugs to the package provider.
1631 _ACEOF
1632 ac_status=$?
1635 if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 continue
1641 ac_builddir=.
1643 case "$ac_dir" in
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 esac ;;
1653 esac
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1659 case $srcdir in
1660 .) # We are building in place.
1661 ac_srcdir=.
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1665 ac_srcdir=$srcdir$ac_dir_suffix;
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1668 *) # Relative name.
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 esac
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1683 else
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 fi || ac_status=$?
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1687 done
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1692 cat <<\_ACEOF
1693 configure
1694 generated by GNU Autoconf 2.64
1696 Copyright (C) 2009 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700 exit
1703 ## ------------------------ ##
1704 ## Autoconf initialization. ##
1705 ## ------------------------ ##
1707 # ac_fn_c_try_compile LINENO
1708 # --------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 ac_retval=1
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1743 } # ac_fn_c_try_compile
1745 # ac_fn_cxx_try_compile LINENO
1746 # ----------------------------
1747 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_cxx_try_compile ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext
1752 if { { ac_try="$ac_compile"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_cxx_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=1
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1781 } # ac_fn_cxx_try_compile
1783 # ac_fn_c_try_link LINENO
1784 # -----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_link ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 $as_test_x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1817 ac_retval=1
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 return $ac_retval
1827 } # ac_fn_c_try_link
1829 # ac_fn_c_try_run LINENO
1830 # ----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1832 # that executables *can* be run.
1833 ac_fn_c_try_run ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1847 { { case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_try") 2>&5
1854 ac_status=$?
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; }; }; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: program exited with status $ac_status" >&5
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=$ac_status
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1869 } # ac_fn_c_try_run
1870 cat >config.log <<_ACEOF
1871 This file contains any messages produced by compilers while
1872 running configure, to aid debugging if configure makes a mistake.
1874 It was created by $as_me, which was
1875 generated by GNU Autoconf 2.64. Invocation command line was
1877 $ $0 $@
1879 _ACEOF
1880 exec 5>>config.log
1882 cat <<_ASUNAME
1883 ## --------- ##
1884 ## Platform. ##
1885 ## --------- ##
1887 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1888 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1889 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1890 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1891 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1894 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1896 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1897 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1898 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1899 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1900 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1901 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1902 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1904 _ASUNAME
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1909 IFS=$as_save_IFS
1910 test -z "$as_dir" && as_dir=.
1911 $as_echo "PATH: $as_dir"
1912 done
1913 IFS=$as_save_IFS
1915 } >&5
1917 cat >&5 <<_ACEOF
1920 ## ----------- ##
1921 ## Core tests. ##
1922 ## ----------- ##
1924 _ACEOF
1927 # Keep a trace of the command line.
1928 # Strip out --no-create and --no-recursion so they do not pile up.
1929 # Strip out --silent because we don't want to record it for future runs.
1930 # Also quote any args containing shell meta-characters.
1931 # Make two passes to allow for proper duplicate-argument suppression.
1932 ac_configure_args=
1933 ac_configure_args0=
1934 ac_configure_args1=
1935 ac_must_keep_next=false
1936 for ac_pass in 1 2
1938 for ac_arg
1940 case $ac_arg in
1941 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943 | -silent | --silent | --silen | --sile | --sil)
1944 continue ;;
1945 *\'*)
1946 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947 esac
1948 case $ac_pass in
1949 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951 as_fn_append ac_configure_args1 " '$ac_arg'"
1952 if test $ac_must_keep_next = true; then
1953 ac_must_keep_next=false # Got value, back to normal.
1954 else
1955 case $ac_arg in
1956 *=* | --config-cache | -C | -disable-* | --disable-* \
1957 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959 | -with-* | --with-* | -without-* | --without-* | --x)
1960 case "$ac_configure_args0 " in
1961 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1962 esac
1964 -* ) ac_must_keep_next=true ;;
1965 esac
1967 as_fn_append ac_configure_args " '$ac_arg'"
1969 esac
1970 done
1971 done
1972 { ac_configure_args0=; unset ac_configure_args0;}
1973 { ac_configure_args1=; unset ac_configure_args1;}
1975 # When interrupted or exit'd, cleanup temporary files, and complete
1976 # config.log. We remove comments because anyway the quotes in there
1977 # would cause problems or look ugly.
1978 # WARNING: Use '\'' to represent an apostrophe within the trap.
1979 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1980 trap 'exit_status=$?
1981 # Save into config.log some information that might help in debugging.
1983 echo
1985 cat <<\_ASBOX
1986 ## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##
1989 _ASBOX
1990 echo
1991 # The following way of writing the cache mishandles newlines in values,
1993 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1994 eval ac_val=\$$ac_var
1995 case $ac_val in #(
1996 *${as_nl}*)
1997 case $ac_var in #(
1998 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1999 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2000 esac
2001 case $ac_var in #(
2002 _ | IFS | as_nl) ;; #(
2003 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2004 *) { eval $ac_var=; unset $ac_var;} ;;
2005 esac ;;
2006 esac
2007 done
2008 (set) 2>&1 |
2009 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2010 *${as_nl}ac_space=\ *)
2011 sed -n \
2012 "s/'\''/'\''\\\\'\'''\''/g;
2013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2014 ;; #(
2016 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2018 esac |
2019 sort
2021 echo
2023 cat <<\_ASBOX
2024 ## ----------------- ##
2025 ## Output variables. ##
2026 ## ----------------- ##
2027 _ASBOX
2028 echo
2029 for ac_var in $ac_subst_vars
2031 eval ac_val=\$$ac_var
2032 case $ac_val in
2033 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 esac
2035 $as_echo "$ac_var='\''$ac_val'\''"
2036 done | sort
2037 echo
2039 if test -n "$ac_subst_files"; then
2040 cat <<\_ASBOX
2041 ## ------------------- ##
2042 ## File substitutions. ##
2043 ## ------------------- ##
2044 _ASBOX
2045 echo
2046 for ac_var in $ac_subst_files
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
2053 done | sort
2054 echo
2057 if test -s confdefs.h; then
2058 cat <<\_ASBOX
2059 ## ----------- ##
2060 ## confdefs.h. ##
2061 ## ----------- ##
2062 _ASBOX
2063 echo
2064 cat confdefs.h
2065 echo
2067 test "$ac_signal" != 0 &&
2068 $as_echo "$as_me: caught signal $ac_signal"
2069 $as_echo "$as_me: exit $exit_status"
2070 } >&5
2071 rm -f core *.core core.conftest.* &&
2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073 exit $exit_status
2075 for ac_signal in 1 2 13 15; do
2076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2077 done
2078 ac_signal=0
2080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2081 rm -f -r conftest* confdefs.h
2083 $as_echo "/* confdefs.h */" > confdefs.h
2085 # Predefined preprocessor variables.
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_NAME "$PACKAGE_NAME"
2089 _ACEOF
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2097 _ACEOF
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_STRING "$PACKAGE_STRING"
2101 _ACEOF
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2105 _ACEOF
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_URL "$PACKAGE_URL"
2109 _ACEOF
2112 # Let the site file select an alternate cache file if it wants to.
2113 # Prefer an explicitly selected file to automatically selected ones.
2114 ac_site_file1=NONE
2115 ac_site_file2=NONE
2116 if test -n "$CONFIG_SITE"; then
2117 ac_site_file1=$CONFIG_SITE
2118 elif test "x$prefix" != xNONE; then
2119 ac_site_file1=$prefix/share/config.site
2120 ac_site_file2=$prefix/etc/config.site
2121 else
2122 ac_site_file1=$ac_default_prefix/share/config.site
2123 ac_site_file2=$ac_default_prefix/etc/config.site
2125 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2127 test "x$ac_site_file" = xNONE && continue
2128 if test -r "$ac_site_file"; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2130 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2131 sed 's/^/| /' "$ac_site_file" >&5
2132 . "$ac_site_file"
2134 done
2136 if test -r "$cache_file"; then
2137 # Some versions of bash will fail to source /dev/null (special
2138 # files actually), so we avoid doing that.
2139 if test -f "$cache_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2141 $as_echo "$as_me: loading cache $cache_file" >&6;}
2142 case $cache_file in
2143 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2144 *) . "./$cache_file";;
2145 esac
2147 else
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2149 $as_echo "$as_me: creating cache $cache_file" >&6;}
2150 >$cache_file
2153 # Check that the precious variables saved in the cache have kept the same
2154 # value.
2155 ac_cache_corrupted=false
2156 for ac_var in $ac_precious_vars; do
2157 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2158 eval ac_new_set=\$ac_env_${ac_var}_set
2159 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2160 eval ac_new_val=\$ac_env_${ac_var}_value
2161 case $ac_old_set,$ac_new_set in
2162 set,)
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2164 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2165 ac_cache_corrupted=: ;;
2166 ,set)
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2168 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2169 ac_cache_corrupted=: ;;
2170 ,);;
2172 if test "x$ac_old_val" != "x$ac_new_val"; then
2173 # differences in whitespace do not lead to failure.
2174 ac_old_val_w=`echo x $ac_old_val`
2175 ac_new_val_w=`echo x $ac_new_val`
2176 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2178 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2179 ac_cache_corrupted=:
2180 else
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2182 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2183 eval $ac_var=\$ac_old_val
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2186 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2188 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2189 fi;;
2190 esac
2191 # Pass precious variables to config.status.
2192 if test "$ac_new_set" = set; then
2193 case $ac_new_val in
2194 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2195 *) ac_arg=$ac_var=$ac_new_val ;;
2196 esac
2197 case " $ac_configure_args " in
2198 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2199 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2200 esac
2202 done
2203 if $ac_cache_corrupted; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2207 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2208 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2210 ## -------------------- ##
2211 ## Main body of script. ##
2212 ## -------------------- ##
2214 ac_ext=c
2215 ac_cpp='$CPP $CPPFLAGS'
2216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228 progname=$0
2229 # if PWD already has a value, it is probably wrong.
2230 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2232 # Export original configure arguments for use by sub-configures.
2233 # Quote arguments with shell meta charatcers.
2234 TOPLEVEL_CONFIGURE_ARGUMENTS=
2235 set -- "$progname" "$@"
2236 for ac_arg
2238 case "$ac_arg" in
2239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2240 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2241 # if the argument is of the form -foo=baz, quote the baz part only
2242 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2243 *) ;;
2244 esac
2245 # Add the quoted argument to the list.
2246 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2247 done
2248 if test "$silent" = yes; then
2249 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2251 # Remove the initial space we just introduced and, as these will be
2252 # expanded by make, quote '$'.
2253 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2256 # Find the build, host, and target systems.
2257 ac_aux_dir=
2258 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2259 for ac_t in install-sh install.sh shtool; do
2260 if test -f "$ac_dir/$ac_t"; then
2261 ac_aux_dir=$ac_dir
2262 ac_install_sh="$ac_aux_dir/$ac_t -c"
2263 break 2
2265 done
2266 done
2267 if test -z "$ac_aux_dir"; then
2268 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2271 # These three variables are undocumented and unsupported,
2272 # and are intended to be withdrawn in a future Autoconf release.
2273 # They can cause serious problems if a builder's source tree is in a directory
2274 # whose full name contains unusual characters.
2275 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2276 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2277 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2280 # Make sure we can run config.sub.
2281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2282 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2285 $as_echo_n "checking build system type... " >&6; }
2286 if test "${ac_cv_build+set}" = set; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 ac_build_alias=$build_alias
2290 test "x$ac_build_alias" = x &&
2291 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2292 test "x$ac_build_alias" = x &&
2293 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2294 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2295 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2299 $as_echo "$ac_cv_build" >&6; }
2300 case $ac_cv_build in
2301 *-*-*) ;;
2302 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2303 esac
2304 build=$ac_cv_build
2305 ac_save_IFS=$IFS; IFS='-'
2306 set x $ac_cv_build
2307 shift
2308 build_cpu=$1
2309 build_vendor=$2
2310 shift; shift
2311 # Remember, the first character of IFS is used to create $*,
2312 # except with old shells:
2313 build_os=$*
2314 IFS=$ac_save_IFS
2315 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2318 case ${build_alias} in
2319 "") build_noncanonical=${build} ;;
2320 *) build_noncanonical=${build_alias} ;;
2321 esac
2325 case ${host_alias} in
2326 "") host_noncanonical=${build_noncanonical} ;;
2327 *) host_noncanonical=${host_alias} ;;
2328 esac
2332 case ${target_alias} in
2333 "") target_noncanonical=${host_noncanonical} ;;
2334 *) target_noncanonical=${target_alias} ;;
2335 esac
2340 test "$host_noncanonical" = "$target_noncanonical" &&
2341 test "$program_prefix$program_suffix$program_transform_name" = \
2342 NONENONEs,x,x, &&
2343 program_transform_name=s,y,y,
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2346 $as_echo_n "checking host system type... " >&6; }
2347 if test "${ac_cv_host+set}" = set; then :
2348 $as_echo_n "(cached) " >&6
2349 else
2350 if test "x$host_alias" = x; then
2351 ac_cv_host=$ac_cv_build
2352 else
2353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2354 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2359 $as_echo "$ac_cv_host" >&6; }
2360 case $ac_cv_host in
2361 *-*-*) ;;
2362 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2363 esac
2364 host=$ac_cv_host
2365 ac_save_IFS=$IFS; IFS='-'
2366 set x $ac_cv_host
2367 shift
2368 host_cpu=$1
2369 host_vendor=$2
2370 shift; shift
2371 # Remember, the first character of IFS is used to create $*,
2372 # except with old shells:
2373 host_os=$*
2374 IFS=$ac_save_IFS
2375 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2379 $as_echo_n "checking target system type... " >&6; }
2380 if test "${ac_cv_target+set}" = set; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test "x$target_alias" = x; then
2384 ac_cv_target=$ac_cv_host
2385 else
2386 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2387 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2392 $as_echo "$ac_cv_target" >&6; }
2393 case $ac_cv_target in
2394 *-*-*) ;;
2395 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2396 esac
2397 target=$ac_cv_target
2398 ac_save_IFS=$IFS; IFS='-'
2399 set x $ac_cv_target
2400 shift
2401 target_cpu=$1
2402 target_vendor=$2
2403 shift; shift
2404 # Remember, the first character of IFS is used to create $*,
2405 # except with old shells:
2406 target_os=$*
2407 IFS=$ac_save_IFS
2408 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2411 # The aliases save the names the user supplied, while $host etc.
2412 # will get canonicalized.
2413 test -n "$target_alias" &&
2414 test "$program_prefix$program_suffix$program_transform_name" = \
2415 NONENONEs,x,x, &&
2416 program_prefix=${target_alias}-
2418 test "$program_prefix" != NONE &&
2419 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2420 # Use a double $ so make ignores it.
2421 test "$program_suffix" != NONE &&
2422 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2423 # Double any \ or $.
2424 # By default was `s,x,x', remove it if useless.
2425 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2426 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2430 # Get 'install' or 'install-sh' and its variants.
2431 # Find a good install program. We prefer a C program (faster),
2432 # so one script is as good as another. But avoid the broken or
2433 # incompatible versions:
2434 # SysV /etc/install, /usr/sbin/install
2435 # SunOS /usr/etc/install
2436 # IRIX /sbin/install
2437 # AIX /bin/install
2438 # AmigaOS /C/install, which installs bootblocks on floppy discs
2439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2442 # OS/2's system install, which has a completely different semantic
2443 # ./install, which can be erroneously created by make from ./install.sh.
2444 # Reject install programs that cannot install multiple files.
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2446 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2447 if test -z "$INSTALL"; then
2448 if test "${ac_cv_path_install+set}" = set; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 # Account for people who put trailing slashes in PATH elements.
2457 case $as_dir/ in #((
2458 ./ | .// | /[cC]/* | \
2459 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2460 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2461 /usr/ucb/* ) ;;
2463 # OSF1 and SCO ODT 3.0 have their own names for install.
2464 # Don't use installbsd from OSF since it installs stuff as root
2465 # by default.
2466 for ac_prog in ginstall scoinst install; do
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2469 if test $ac_prog = install &&
2470 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2471 # AIX install. It has an incompatible calling convention.
2473 elif test $ac_prog = install &&
2474 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475 # program-specific install script used by HP pwplus--don't use.
2477 else
2478 rm -rf conftest.one conftest.two conftest.dir
2479 echo one > conftest.one
2480 echo two > conftest.two
2481 mkdir conftest.dir
2482 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2483 test -s conftest.one && test -s conftest.two &&
2484 test -s conftest.dir/conftest.one &&
2485 test -s conftest.dir/conftest.two
2486 then
2487 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2488 break 3
2492 done
2493 done
2495 esac
2497 done
2498 IFS=$as_save_IFS
2500 rm -rf conftest.one conftest.two conftest.dir
2503 if test "${ac_cv_path_install+set}" = set; then
2504 INSTALL=$ac_cv_path_install
2505 else
2506 # As a last resort, use the slow shell script. Don't cache a
2507 # value for INSTALL within a source directory, because that will
2508 # break other packages using the cache if that directory is
2509 # removed, or if the value is a relative name.
2510 INSTALL=$ac_install_sh
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2514 $as_echo "$INSTALL" >&6; }
2516 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2517 # It thinks the first close brace ends the variable substitution.
2518 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2520 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2522 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2525 $as_echo_n "checking whether ln works... " >&6; }
2526 if test "${acx_cv_prog_LN+set}" = set; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 rm -f conftestdata_t
2530 echo >conftestdata_f
2531 if ln conftestdata_f conftestdata_t 2>/dev/null
2532 then
2533 acx_cv_prog_LN=ln
2534 else
2535 acx_cv_prog_LN=no
2537 rm -f conftestdata_f conftestdata_t
2540 if test $acx_cv_prog_LN = no; then
2541 LN="cp"
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2543 $as_echo "no, using $LN" >&6; }
2544 else
2545 LN="$acx_cv_prog_LN"
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2547 $as_echo "yes" >&6; }
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2551 $as_echo_n "checking whether ln -s works... " >&6; }
2552 LN_S=$as_ln_s
2553 if test "$LN_S" = "ln -s"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2555 $as_echo "yes" >&6; }
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2558 $as_echo "no, using $LN_S" >&6; }
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2562 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2563 if test "${ac_cv_path_SED+set}" = set; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2567 for ac_i in 1 2 3 4 5 6 7; do
2568 ac_script="$ac_script$as_nl$ac_script"
2569 done
2570 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2571 { ac_script=; unset ac_script;}
2572 if test -z "$SED"; then
2573 ac_path_SED_found=false
2574 # Loop through the user's path and test for each of PROGNAME-LIST
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_prog in sed gsed; do
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2583 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2584 # Check for GNU ac_path_SED and select it if it is found.
2585 # Check for GNU $ac_path_SED
2586 case `"$ac_path_SED" --version 2>&1` in
2587 *GNU*)
2588 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2590 ac_count=0
2591 $as_echo_n 0123456789 >"conftest.in"
2592 while :
2594 cat "conftest.in" "conftest.in" >"conftest.tmp"
2595 mv "conftest.tmp" "conftest.in"
2596 cp "conftest.in" "conftest.nl"
2597 $as_echo '' >> "conftest.nl"
2598 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2600 as_fn_arith $ac_count + 1 && ac_count=$as_val
2601 if test $ac_count -gt ${ac_path_SED_max-0}; then
2602 # Best one so far, save it but keep looking for a better one
2603 ac_cv_path_SED="$ac_path_SED"
2604 ac_path_SED_max=$ac_count
2606 # 10*(2^10) chars as input seems more than enough
2607 test $ac_count -gt 10 && break
2608 done
2609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2610 esac
2612 $ac_path_SED_found && break 3
2613 done
2614 done
2615 done
2616 IFS=$as_save_IFS
2617 if test -z "$ac_cv_path_SED"; then
2618 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2620 else
2621 ac_cv_path_SED=$SED
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2626 $as_echo "$ac_cv_path_SED" >&6; }
2627 SED="$ac_cv_path_SED"
2628 rm -f conftest.sed
2630 for ac_prog in gawk mawk nawk awk
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if test "${ac_cv_prog_AWK+set}" = set; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 if test -n "$AWK"; then
2640 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_AWK="$ac_prog"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2653 done
2654 done
2655 IFS=$as_save_IFS
2659 AWK=$ac_cv_prog_AWK
2660 if test -n "$AWK"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2662 $as_echo "$AWK" >&6; }
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2669 test -n "$AWK" && break
2670 done
2673 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2675 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2676 # a relative path.
2677 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2678 INSTALL="${srcpwd}/install-sh -c"
2681 # Set srcdir to "." if that's what it is.
2682 # This is important for multilib support.
2683 pwd=`${PWDCMD-pwd}`
2684 if test "${pwd}" = "${srcpwd}" ; then
2685 srcdir=.
2688 topsrcdir=$srcpwd
2690 extra_host_args=
2692 ### To add a new directory to the tree, first choose whether it is a target
2693 ### or a host dependent tool. Then put it into the appropriate list
2694 ### (library or tools, host or target), doing a dependency sort.
2696 # Subdirs will be configured in the order listed in build_configdirs,
2697 # configdirs, or target_configdirs; see the serialization section below.
2699 # Dependency sorting is only needed when *configuration* must be done in
2700 # a particular order. In all cases a dependency should be specified in
2701 # the Makefile, whether or not it's implicitly specified here.
2703 # Double entries in build_configdirs, configdirs, or target_configdirs may
2704 # cause circular dependencies and break everything horribly.
2706 # these library is used by various programs built for the build
2707 # environment
2709 build_libs="build-libiberty"
2711 # these tools are built for the build environment
2712 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2714 # these libraries are used by various programs built for the host environment
2716 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2718 # these tools are built for the host environment
2719 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2720 # know that we are building the simulator.
2721 # binutils, gas and ld appear in that order because it makes sense to run
2722 # "make check" in that particular order.
2723 # If --enable-gold is used, "gold" may replace "ld".
2724 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2726 # libgcj represents the runtime libraries only used by gcj.
2727 libgcj="target-libffi \
2728 target-zlib \
2729 target-libjava"
2731 # these libraries are built for the target environment, and are built after
2732 # the host libraries and the host tools (which may be a cross compiler)
2733 # Note that libiberty is not a target library.
2734 target_libraries="target-libgcc \
2735 target-libgloss \
2736 target-newlib \
2737 target-libgomp \
2738 target-libatomic \
2739 target-libitm \
2740 target-libstdc++-v3 \
2741 target-libmudflap \
2742 target-libssp \
2743 target-libquadmath \
2744 target-libgfortran \
2745 target-boehm-gc \
2746 ${libgcj} \
2747 target-libobjc \
2748 target-libgupc \
2749 target-libada \
2750 target-libgo"
2752 # these tools are built using the target libraries, and are intended to
2753 # run only in the target environment
2755 # note: any program that *uses* libraries that are in the "target_libraries"
2756 # list belongs in this list.
2758 target_tools="target-rda"
2760 ################################################################################
2762 ## All tools belong in one of the four categories, and are assigned above
2763 ## We assign ${configdirs} this way to remove all embedded newlines. This
2764 ## is important because configure will choke if they ever get through.
2765 ## ${configdirs} is directories we build using the host tools.
2766 ## ${target_configdirs} is directories we build using the target tools.
2767 configdirs=`echo ${host_libs} ${host_tools}`
2768 target_configdirs=`echo ${target_libraries} ${target_tools}`
2769 build_configdirs=`echo ${build_libs} ${build_tools}`
2773 ################################################################################
2775 srcname="gnu development package"
2777 # This gets set non-empty for some net releases of packages.
2778 appdirs=""
2780 # Define is_cross_compiler to save on calls to 'test'.
2781 is_cross_compiler=
2782 if test x"${host}" = x"${target}" ; then
2783 is_cross_compiler=no
2784 else
2785 is_cross_compiler=yes
2788 # Find the build and target subdir names.
2790 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2791 # have matching libraries, they should use host libraries: Makefile.tpl
2792 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2793 # However, they still use the build modules, because the corresponding
2794 # host modules (e.g. bison) are only built for the host when bootstrap
2795 # finishes. So:
2796 # - build_subdir is where we find build modules, and never changes.
2797 # - build_libsubdir is where we find build libraries, and can be overridden.
2799 # Prefix 'build-' so this never conflicts with target_subdir.
2800 build_subdir="build-${build_noncanonical}"
2802 # Check whether --with-build-libsubdir was given.
2803 if test "${with_build_libsubdir+set}" = set; then :
2804 withval=$with_build_libsubdir; build_libsubdir="$withval"
2805 else
2806 build_libsubdir="$build_subdir"
2809 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2810 if ( test $srcdir = . && test -d gcc ) \
2811 || test -d $srcdir/../host-${host_noncanonical}; then
2812 host_subdir="host-${host_noncanonical}"
2813 else
2814 host_subdir=.
2816 # No prefix.
2817 target_subdir=${target_noncanonical}
2819 # Be sure to cover against remnants of an in-tree build.
2820 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2821 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2822 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2825 # Skipdirs are removed silently.
2826 skipdirs=
2827 # Noconfigdirs are removed loudly.
2828 noconfigdirs=""
2830 use_gnu_ld=
2831 # Make sure we don't let GNU ld be added if we didn't want it.
2832 if test x$with_gnu_ld = xno ; then
2833 use_gnu_ld=no
2834 noconfigdirs="$noconfigdirs ld gold"
2837 use_gnu_as=
2838 # Make sure we don't let GNU as be added if we didn't want it.
2839 if test x$with_gnu_as = xno ; then
2840 use_gnu_as=no
2841 noconfigdirs="$noconfigdirs gas"
2844 use_included_zlib=
2845 # Make sure we don't let ZLIB be added if we didn't want it.
2846 if test x$with_system_zlib = xyes ; then
2847 use_included_zlib=no
2848 noconfigdirs="$noconfigdirs zlib"
2851 # some tools are so dependent upon X11 that if we're not building with X,
2852 # it's not even worth trying to configure, much less build, that tool.
2854 case ${with_x} in
2855 yes | "") ;; # the default value for this tree is that X11 is available
2857 skipdirs="${skipdirs} tk itcl libgui"
2858 # We won't be able to build gdbtk without X.
2859 enable_gdbtk=no
2861 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2862 esac
2864 # Some are only suitable for cross toolchains.
2865 # Remove these if host=target.
2866 cross_only="target-libgloss target-newlib target-opcodes"
2868 case $is_cross_compiler in
2869 no) skipdirs="${skipdirs} ${cross_only}" ;;
2870 esac
2872 # If both --with-headers and --with-libs are specified, default to
2873 # --without-newlib.
2874 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2875 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2876 if test x"${with_newlib}" = x ; then
2877 with_newlib=no
2881 # Recognize --with-newlib/--without-newlib.
2882 case ${with_newlib} in
2883 no) skipdirs="${skipdirs} target-newlib" ;;
2884 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2885 esac
2887 # Handle --enable-gold, --enable-ld.
2888 # --disable-gold [--enable-ld]
2889 # Build only ld. Default option.
2890 # --enable-gold [--enable-ld]
2891 # Build both gold and ld. Install gold as "ld.gold", install ld
2892 # as "ld.bfd" and "ld".
2893 # --enable-gold=default [--enable-ld]
2894 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2895 # install ld as "ld.bfd".
2896 # --enable-gold[=default] --disable-ld
2897 # Build only gold, which is then installed as both "ld.gold" and "ld".
2898 # --enable-gold --enable-ld=default
2899 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2900 # and ld.bfd).
2901 # In other words, ld is default
2902 # --enable-gold=default --enable-ld=default
2903 # Error.
2905 default_ld=
2906 # Check whether --enable-gold was given.
2907 if test "${enable_gold+set}" = set; then :
2908 enableval=$enable_gold; ENABLE_GOLD=$enableval
2909 else
2910 ENABLE_GOLD=no
2913 case "${ENABLE_GOLD}" in
2914 yes|default)
2915 # Check for ELF target.
2916 is_elf=no
2917 case "${target}" in
2918 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2919 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2920 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2921 | *-*-solaris2* | *-*-nto*)
2922 case "${target}" in
2923 *-*-linux*aout* | *-*-linux*oldld*)
2926 is_elf=yes
2928 esac
2929 esac
2931 if test "$is_elf" = "yes"; then
2932 # Check for target supported by gold.
2933 case "${target}" in
2934 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2935 configdirs="$configdirs gold"
2936 if test x${ENABLE_GOLD} = xdefault; then
2937 default_ld=gold
2939 ENABLE_GOLD=yes
2941 esac
2947 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2949 esac
2951 # Check whether --enable-ld was given.
2952 if test "${enable_ld+set}" = set; then :
2953 enableval=$enable_ld; ENABLE_LD=$enableval
2954 else
2955 ENABLE_LD=yes
2959 case "${ENABLE_LD}" in
2960 default)
2961 if test x${default_ld} != x; then
2962 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2965 yes)
2968 if test x${ENABLE_GOLD} != xyes; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2970 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2972 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2975 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2977 esac
2979 # Configure extra directories which are host specific
2981 case "${host}" in
2982 *-cygwin*)
2983 configdirs="$configdirs libtermcap" ;;
2984 esac
2986 # A target can indicate whether a language isn't supported for some reason.
2987 # Only spaces may be used in this macro; not newlines or tabs.
2988 unsupported_languages=
2990 # Remove more programs from consideration, based on the host or
2991 # target this usually means that a port of the program doesn't
2992 # exist yet.
2994 case "${host}" in
2995 i[3456789]86-*-msdosdjgpp*)
2996 noconfigdirs="$noconfigdirs tcl tk itcl"
2998 esac
3001 # Check whether --enable-libquadmath was given.
3002 if test "${enable_libquadmath+set}" = set; then :
3003 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3004 else
3005 ENABLE_LIBQUADMATH=yes
3008 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3009 noconfigdirs="$noconfigdirs target-libquadmath"
3013 # Check whether --enable-libquadmath-support was given.
3014 if test "${enable_libquadmath_support+set}" = set; then :
3015 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3016 else
3017 ENABLE_LIBQUADMATH_SUPPORT=yes
3020 enable_libquadmath_support=
3021 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3022 enable_libquadmath_support=no
3026 # Check whether --enable-libada was given.
3027 if test "${enable_libada+set}" = set; then :
3028 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3029 else
3030 ENABLE_LIBADA=yes
3033 if test "${ENABLE_LIBADA}" != "yes" ; then
3034 noconfigdirs="$noconfigdirs gnattools"
3037 # Check whether --enable-libssp was given.
3038 if test "${enable_libssp+set}" = set; then :
3039 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3040 else
3041 ENABLE_LIBSSP=yes
3045 # Save it here so that, even in case of --enable-libgcj, if the Java
3046 # front-end isn't enabled, we still get libgcj disabled.
3047 libgcj_saved=$libgcj
3048 case $enable_libgcj in
3049 yes)
3050 # If we reset it here, it won't get added to noconfigdirs in the
3051 # target-specific build rules, so it will be forcibly enabled
3052 # (unless the Java language itself isn't enabled).
3053 libgcj=
3056 # Make sure we get it printed in the list of not supported target libs.
3057 # Don't disable libffi, though, other languages use it.
3058 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3059 # Clear libgcj_saved so that even if java is enabled libffi won't be
3060 # built.
3061 libgcj_saved=
3063 esac
3065 # Check whether --enable-static-libjava was given.
3066 if test "${enable_static_libjava+set}" = set; then :
3067 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3068 else
3069 ENABLE_STATIC_LIBJAVA=no
3072 enable_static_libjava=
3073 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3074 enable_static_libjava=yes
3077 if test x$enable_static_libjava != xyes ; then
3078 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3082 # Disable libmudflap on some systems.
3083 if test x$enable_libmudflap = x ; then
3084 case "${target}" in
3085 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3086 # Enable libmudflap by default in GNU and friends.
3088 *-*-freebsd*)
3089 # Enable libmudflap by default in FreeBSD.
3092 # Disable it by default everywhere else.
3093 noconfigdirs="$noconfigdirs target-libmudflap"
3095 esac
3098 posix_based_os="yes"
3099 case "${target}" in
3100 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3102 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3104 *-*-solaris2* | *-*-hpux11*)
3106 *-*-darwin* | *-*-aix*)
3109 posix_based_os="no"
3111 esac
3113 # Enable libgomp by default on POSIX hosted systems.
3114 if test x$enable_libgomp = x -a $posix_based_os = "no" ; then
3115 # Disable libgomp on non POSIX hosted systems.
3116 noconfigdirs="$noconfigdirs target-libgomp"
3119 # Enable libgupc by default on POSIX hosted systems.
3120 if test x$enable_libgupc = x -a $posix_based_os = "no" ; then
3121 # Disable libgupc on non POSIX hosted systems.
3122 noconfigdirs="$noconfigdirs target-libgupc"
3125 # Disable libatomic on unsupported systems.
3126 if test -d ${srcdir}/libatomic; then
3127 if test x$enable_libatomic = x; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3129 $as_echo_n "checking for libatomic support... " >&6; }
3130 if (srcdir=${srcdir}/libatomic; \
3131 . ${srcdir}/configure.tgt; \
3132 test -n "$UNSUPPORTED")
3133 then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 noconfigdirs="$noconfigdirs target-libatomic"
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139 $as_echo "yes" >&6; }
3144 # Disable libitm on unsupported systems.
3145 if test -d ${srcdir}/libitm; then
3146 if test x$enable_libitm = x; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3148 $as_echo_n "checking for libitm support... " >&6; }
3149 if (srcdir=${srcdir}/libitm; \
3150 . ${srcdir}/configure.tgt; \
3151 test -n "$UNSUPPORTED")
3152 then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 noconfigdirs="$noconfigdirs target-libitm"
3156 else
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3158 $as_echo "yes" >&6; }
3163 # Disable libssp for some systems.
3164 case "${target}" in
3165 avr-*-*)
3166 # No hosted I/O support.
3167 noconfigdirs="$noconfigdirs target-libssp"
3169 powerpc-*-aix* | rs6000-*-aix*)
3170 noconfigdirs="$noconfigdirs target-libssp"
3172 rl78-*-*)
3173 # libssp uses a misaligned load to trigger a fault, but the RL78
3174 # doesn't fault for those - instead, it gives a build-time error
3175 # for explicit misaligned loads.
3176 noconfigdirs="$noconfigdirs target-libssp"
3178 esac
3180 # Disable libstdc++-v3 for some systems.
3181 case "${target}" in
3182 *-*-vxworks*)
3183 # VxWorks uses the Dinkumware C++ library.
3184 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3186 arm*-wince-pe*)
3187 # the C++ libraries don't build on top of CE's C libraries
3188 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3190 avr-*-*)
3191 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3193 esac
3195 # Disable Fortran for some systems.
3196 case "${target}" in
3197 mmix-*-*)
3198 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3199 unsupported_languages="$unsupported_languages fortran"
3201 esac
3203 # Disable Java if libffi is not supported.
3204 case "${target}" in
3205 alpha*-*-*)
3207 arm*-*-*)
3209 cris-*-*)
3211 frv-*-*)
3213 hppa*-*-linux*)
3215 hppa*-*-hpux*)
3217 i?86-*-*)
3219 ia64*-*-*)
3221 m32r*-*-*)
3223 m68k-*-*)
3225 mips*-*-rtems*)
3227 mips*-*-linux*)
3229 powerpc*-*-linux*)
3231 powerpc-*-darwin*)
3233 powerpc-*-aix* | rs6000-*-aix*)
3235 powerpc-*-freebsd*)
3237 powerpc64-*-freebsd*)
3239 powerpc*-*-rtems*)
3241 s390-*-* | s390x-*-*)
3243 sh-*-* | sh[34]*-*-*)
3245 sh64-*-* | sh5*-*-*)
3247 sparc*-*-*)
3249 x86_64-*-*)
3251 *-*-*)
3252 unsupported_languages="$unsupported_languages java"
3254 esac
3256 # Disable Java, libgcj or related libraries for some systems.
3257 case "${target}" in
3258 powerpc-*-darwin*)
3260 i[3456789]86-*-darwin*)
3262 x86_64-*-darwin[912]*)
3264 *-*-darwin*)
3265 noconfigdirs="$noconfigdirs ${libgcj}"
3267 *-*-netware*)
3268 noconfigdirs="$noconfigdirs ${libgcj}"
3270 *-*-rtems*)
3271 noconfigdirs="$noconfigdirs ${libgcj}"
3273 *-*-tpf*)
3274 noconfigdirs="$noconfigdirs ${libgcj}"
3276 *-*-uclinux*)
3277 noconfigdirs="$noconfigdirs ${libgcj}"
3279 *-*-vxworks*)
3280 noconfigdirs="$noconfigdirs ${libgcj}"
3282 alpha*-*-*vms*)
3283 noconfigdirs="$noconfigdirs ${libgcj}"
3285 arm-wince-pe)
3286 noconfigdirs="$noconfigdirs ${libgcj}"
3288 arm*-*-symbianelf*)
3289 noconfigdirs="$noconfigdirs ${libgcj}"
3291 bfin-*-*)
3292 noconfigdirs="$noconfigdirs target-boehm-gc"
3294 cris-*-* | crisv32-*-*)
3295 unsupported_languages="$unsupported_languages java"
3296 case "${target}" in
3297 *-*-linux*)
3299 *) # See PR46792 regarding target-libffi.
3300 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3301 esac
3303 hppa*64*-*-linux*)
3304 # In this case, it's because the hppa64-linux target is for
3305 # the kernel only at this point and has no libc, and thus no
3306 # headers, crt*.o, etc., all of which are needed by these.
3307 unsupported_languages="$unsupported_languages java"
3309 hppa*64*-*-hpux*)
3310 noconfigdirs="$noconfigdirs ${libgcj}"
3312 hppa*-hp-hpux11*)
3314 hppa*-*-hpux*)
3315 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3316 # build on HP-UX 10.20.
3317 noconfigdirs="$noconfigdirs ${libgcj}"
3319 ia64*-*-*vms*)
3320 noconfigdirs="$noconfigdirs ${libgcj}"
3322 i[3456789]86-w64-mingw*)
3323 noconfigdirs="$noconfigdirs ${libgcj}"
3325 i[3456789]86-*-mingw*)
3326 noconfigdirs="$noconfigdirs ${libgcj}"
3328 x86_64-*-mingw*)
3329 noconfigdirs="$noconfigdirs ${libgcj}"
3331 mmix-*-*)
3332 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3334 powerpc-*-aix*)
3335 # copied from rs6000-*-* entry
3336 noconfigdirs="$noconfigdirs ${libgcj}"
3338 rs6000-*-aix*)
3339 noconfigdirs="$noconfigdirs ${libgcj}"
3341 *-*-lynxos*)
3342 noconfigdirs="$noconfigdirs ${libgcj}"
3344 esac
3346 # Default libgloss CPU subdirectory.
3347 libgloss_dir="$target_cpu"
3349 case "${target}" in
3350 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3351 libgloss_dir=wince
3353 arm*-*-*)
3354 libgloss_dir=arm
3356 cris-*-* | crisv32-*-*)
3357 libgloss_dir=cris
3359 hppa*-*-*)
3360 libgloss_dir=pa
3362 i[3456789]86-*-*)
3363 libgloss_dir=i386
3365 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3366 libgloss_dir=m68hc11
3368 m68*-*-* | fido-*-*)
3369 libgloss_dir=m68k
3371 mips*-*-*)
3372 libgloss_dir=mips
3374 powerpc*-*-*)
3375 libgloss_dir=rs6000
3377 sparc*-*-*)
3378 libgloss_dir=sparc
3380 esac
3382 # Disable newlib and libgloss for various target OSes.
3383 case "${target}" in
3384 alpha*-dec-osf*)
3385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3387 i[3456789]86-*-linux*)
3388 # This section makes it possible to build newlib natively on linux.
3389 # If we are using a cross compiler then don't configure newlib.
3390 if test x${is_cross_compiler} != xno ; then
3391 noconfigdirs="$noconfigdirs target-newlib"
3393 noconfigdirs="$noconfigdirs target-libgloss"
3394 # If we are not using a cross compiler, do configure newlib.
3395 # Note however, that newlib will only be configured in this situation
3396 # if the --with-newlib option has been given, because otherwise
3397 # 'target-newlib' will appear in skipdirs.
3399 i[3456789]86-*-rdos*)
3400 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3402 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3403 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3405 sparc-*-sunos4*)
3406 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3408 *-*-aix*)
3409 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3411 *-*-beos*)
3412 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3414 *-*-chorusos)
3415 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3417 *-*-dragonfly*)
3418 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3420 *-*-freebsd*)
3421 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3423 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3424 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3426 *-*-lynxos*)
3427 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3429 *-*-mingw*)
3430 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3432 *-*-netbsd*)
3433 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3435 *-*-netware*)
3436 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3438 *-*-tpf*)
3439 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3441 *-*-uclinux*)
3442 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3444 *-*-vxworks*)
3445 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3447 esac
3449 case "${target}" in
3450 *-*-chorusos)
3452 powerpc-*-darwin*)
3453 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3454 noconfigdirs="$noconfigdirs sim target-rda"
3456 i[3456789]86-*-darwin*)
3457 noconfigdirs="$noconfigdirs ld gprof"
3458 noconfigdirs="$noconfigdirs sim target-rda"
3460 x86_64-*-darwin[912]*)
3461 noconfigdirs="$noconfigdirs ld gas gprof"
3462 noconfigdirs="$noconfigdirs sim target-rda"
3464 *-*-darwin*)
3465 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3466 noconfigdirs="$noconfigdirs sim target-rda"
3468 *-*-dragonfly*)
3470 *-*-freebsd*)
3471 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3472 && test -f /usr/local/include/gmp.h; then
3473 with_gmp=/usr/local
3476 *-*-kaos*)
3477 # Remove unsupported stuff on all kaOS configurations.
3478 noconfigdirs="$noconfigdirs target-libgloss"
3480 *-*-netbsd*)
3482 *-*-netware*)
3484 *-*-rtems*)
3485 noconfigdirs="$noconfigdirs target-libgloss"
3487 # The tpf target doesn't support gdb yet.
3488 *-*-tpf*)
3489 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3491 *-*-uclinux*)
3492 noconfigdirs="$noconfigdirs target-rda"
3494 *-*-vxworks*)
3496 alpha*-dec-osf*)
3497 # ld works, but does not support shared libraries.
3498 # gas doesn't generate exception information.
3499 noconfigdirs="$noconfigdirs gas ld"
3501 alpha*-*-*vms*)
3502 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3504 alpha*-*-*)
3505 # newlib is not 64 bit ready
3506 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3508 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3509 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3511 arc-*-*)
3512 noconfigdirs="$noconfigdirs target-libgloss"
3514 arm-*-pe*)
3515 noconfigdirs="$noconfigdirs target-libgloss"
3517 arm-*-riscix*)
3518 noconfigdirs="$noconfigdirs ld target-libgloss"
3520 c4x-*-* | tic4x-*-*)
3521 noconfigdirs="$noconfigdirs target-libgloss"
3523 tic54x-*-*)
3524 noconfigdirs="$noconfigdirs target-libgloss gdb"
3526 d10v-*-*)
3527 noconfigdirs="$noconfigdirs target-libgloss"
3529 d30v-*-*)
3530 noconfigdirs="$noconfigdirs gdb"
3532 fr30-*-elf*)
3533 noconfigdirs="$noconfigdirs gdb"
3535 moxie-*-*)
3536 noconfigdirs="$noconfigdirs gprof"
3538 h8300*-*-*)
3539 noconfigdirs="$noconfigdirs target-libgloss"
3541 h8500-*-*)
3542 noconfigdirs="$noconfigdirs target-libgloss"
3544 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3546 hppa*64*-*-linux*)
3548 hppa*-*-linux*)
3550 hppa*-*-*elf* | \
3551 hppa*-*-lites* | \
3552 hppa*-*-openbsd* | \
3553 hppa*64*-*-*)
3555 hppa*-hp-hpux11*)
3556 noconfigdirs="$noconfigdirs ld"
3558 hppa*-*-pro*)
3560 hppa*-*-*)
3561 noconfigdirs="$noconfigdirs ld"
3563 i960-*-*)
3564 noconfigdirs="$noconfigdirs gdb"
3566 ia64*-*-elf*)
3567 # No gdb support yet.
3568 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3570 ia64*-**-hpux*)
3571 # No ld support yet.
3572 noconfigdirs="$noconfigdirs libgui itcl ld"
3574 ia64*-*-*vms*)
3575 # No ld support yet.
3576 noconfigdirs="$noconfigdirs libgui itcl ld"
3578 i[3456789]86-w64-mingw*)
3580 i[3456789]86-*-mingw*)
3581 target_configdirs="$target_configdirs target-winsup"
3583 *-*-cygwin*)
3584 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3585 noconfigdirs="$noconfigdirs target-libgloss"
3586 # always build newlib if winsup directory is present.
3587 if test -d "$srcdir/winsup/cygwin"; then
3588 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3589 elif test -d "$srcdir/newlib"; then
3590 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3593 i[3456789]86-*-pe)
3594 noconfigdirs="$noconfigdirs target-libgloss"
3596 i[3456789]86-*-sco3.2v5*)
3597 # The linker does not yet know about weak symbols in COFF,
3598 # and is not configured to handle mixed ELF and COFF.
3599 noconfigdirs="$noconfigdirs ld target-libgloss"
3601 i[3456789]86-*-sco*)
3602 noconfigdirs="$noconfigdirs gprof target-libgloss"
3604 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3605 noconfigdirs="$noconfigdirs target-libgloss"
3607 i[3456789]86-*-sysv4*)
3608 noconfigdirs="$noconfigdirs target-libgloss"
3610 i[3456789]86-*-beos*)
3611 noconfigdirs="$noconfigdirs gdb"
3613 i[3456789]86-*-rdos*)
3614 noconfigdirs="$noconfigdirs gdb"
3616 mmix-*-*)
3617 noconfigdirs="$noconfigdirs gdb"
3619 mt-*-*)
3620 noconfigdirs="$noconfigdirs sim"
3622 powerpc-*-aix*)
3623 # copied from rs6000-*-* entry
3624 noconfigdirs="$noconfigdirs gprof"
3626 powerpc*-*-winnt* | powerpc*-*-pe*)
3627 target_configdirs="$target_configdirs target-winsup"
3628 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3629 # always build newlib.
3630 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3632 # This is temporary until we can link against shared libraries
3633 powerpcle-*-solaris*)
3634 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3636 powerpc-*-beos*)
3637 noconfigdirs="$noconfigdirs gdb"
3639 rs6000-*-lynxos*)
3640 noconfigdirs="$noconfigdirs gprof"
3642 rs6000-*-aix*)
3643 noconfigdirs="$noconfigdirs gprof"
3645 rs6000-*-*)
3646 noconfigdirs="$noconfigdirs gprof"
3648 m68k-apollo-*)
3649 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3651 microblaze*)
3652 noconfigdirs="$noconfigdirs gprof"
3654 mips*-sde-elf*)
3655 if test x$with_newlib = xyes; then
3656 noconfigdirs="$noconfigdirs gprof"
3659 mips*-*-irix5*)
3660 noconfigdirs="$noconfigdirs gprof target-libgloss"
3662 mips*-*-irix6*)
3663 noconfigdirs="$noconfigdirs gprof target-libgloss"
3665 mips*-*-bsd*)
3666 noconfigdirs="$noconfigdirs gprof target-libgloss"
3668 mips*-*-linux*)
3670 mips*-*-*)
3671 noconfigdirs="$noconfigdirs gprof"
3673 sh-*-* | sh64-*-*)
3674 case "${target}" in
3675 sh*-*-elf)
3678 noconfigdirs="$noconfigdirs target-libgloss" ;;
3679 esac
3681 sparc-*-sunos4*)
3682 if test x${is_cross_compiler} = xno ; then
3683 use_gnu_ld=no
3686 tic6x-*-*)
3687 noconfigdirs="$noconfigdirs sim"
3689 tilepro-*-* | tilegx-*-*)
3690 noconfigdirs="$noconfigdirs sim"
3692 v810-*-*)
3693 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3695 vax-*-*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 esac
3700 # If we aren't building newlib, then don't build libgloss, since libgloss
3701 # depends upon some newlib header files.
3702 case "${noconfigdirs}" in
3703 *target-libgloss*) ;;
3704 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3705 esac
3707 # Work in distributions that contain no compiler tools, like Autoconf.
3708 host_makefile_frag=/dev/null
3709 if test -d ${srcdir}/config ; then
3710 case "${host}" in
3711 i[3456789]86-*-msdosdjgpp*)
3712 host_makefile_frag="config/mh-djgpp"
3714 *-cygwin*)
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3717 $as_echo_n "checking to see if cat works as expected... " >&6; }
3718 echo a >cygwin-cat-check
3719 if test `cat cygwin-cat-check` = a ; then
3720 rm cygwin-cat-check
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3723 else
3724 rm cygwin-cat-check
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 as_fn_error "The cat command does not ignore carriage return characters.
3728 Please either mount the build directory in binary mode or run the following
3729 commands before running any configure script:
3730 set -o igncr
3731 export SHELLOPTS
3732 " "$LINENO" 5
3735 host_makefile_frag="config/mh-cygwin"
3737 *-mingw*)
3738 host_makefile_frag="config/mh-mingw"
3740 hppa*-hp-hpux10*)
3741 host_makefile_frag="config/mh-pa-hpux10"
3743 hppa*-hp-hpux*)
3744 host_makefile_frag="config/mh-pa"
3746 hppa*-*)
3747 host_makefile_frag="config/mh-pa"
3749 *-*-darwin*)
3750 host_makefile_frag="config/mh-darwin"
3752 powerpc-*-aix*)
3753 host_makefile_frag="config/mh-ppc-aix"
3755 rs6000-*-aix*)
3756 host_makefile_frag="config/mh-ppc-aix"
3758 esac
3761 if test "${build}" != "${host}" ; then
3762 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3763 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3764 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3765 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3766 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3767 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3768 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3769 GUPC_FOR_BUILD=${GUPC_FOR_BUILD-gupc}
3770 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3771 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3772 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3773 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3774 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3775 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3776 else
3777 AR_FOR_BUILD="\$(AR)"
3778 AS_FOR_BUILD="\$(AS)"
3779 CC_FOR_BUILD="\$(CC)"
3780 CXX_FOR_BUILD="\$(CXX)"
3781 GCJ_FOR_BUILD="\$(GCJ)"
3782 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3783 GOC_FOR_BUILD="\$(GOC)"
3784 GUPC_FOR_BUILD="\$(GUPC)"
3785 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3786 LD_FOR_BUILD="\$(LD)"
3787 NM_FOR_BUILD="\$(NM)"
3788 RANLIB_FOR_BUILD="\$(RANLIB)"
3789 WINDRES_FOR_BUILD="\$(WINDRES)"
3790 WINDMC_FOR_BUILD="\$(WINDMC)"
3793 ac_ext=c
3794 ac_cpp='$CPP $CPPFLAGS'
3795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3798 if test -n "$ac_tool_prefix"; then
3799 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3800 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if test "${ac_cv_prog_CC+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 if test -n "$CC"; then
3807 ac_cv_prog_CC="$CC" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3820 done
3821 done
3822 IFS=$as_save_IFS
3826 CC=$ac_cv_prog_CC
3827 if test -n "$CC"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3829 $as_echo "$CC" >&6; }
3830 else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3837 if test -z "$ac_cv_prog_CC"; then
3838 ac_ct_CC=$CC
3839 # Extract the first word of "gcc", so it can be a program name with args.
3840 set dummy gcc; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 if test -n "$ac_ct_CC"; then
3847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3856 ac_cv_prog_ac_ct_CC="gcc"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3860 done
3861 done
3862 IFS=$as_save_IFS
3866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3867 if test -n "$ac_ct_CC"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3869 $as_echo "$ac_ct_CC" >&6; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3875 if test "x$ac_ct_CC" = x; then
3876 CC=""
3877 else
3878 case $cross_compiling:$ac_tool_warned in
3879 yes:)
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3882 ac_tool_warned=yes ;;
3883 esac
3884 CC=$ac_ct_CC
3886 else
3887 CC="$ac_cv_prog_CC"
3890 if test -z "$CC"; then
3891 if test -n "$ac_tool_prefix"; then
3892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3893 set dummy ${ac_tool_prefix}cc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if test "${ac_cv_prog_CC+set}" = set; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$CC"; then
3900 ac_cv_prog_CC="$CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_prog_CC="${ac_tool_prefix}cc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3915 IFS=$as_save_IFS
3919 CC=$ac_cv_prog_CC
3920 if test -n "$CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3931 if test -z "$CC"; then
3932 # Extract the first word of "cc", so it can be a program name with args.
3933 set dummy cc; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if test "${ac_cv_prog_CC+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test -n "$CC"; then
3940 ac_cv_prog_CC="$CC" # Let the user override the test.
3941 else
3942 ac_prog_rejected=no
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3951 ac_prog_rejected=yes
3952 continue
3954 ac_cv_prog_CC="cc"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3958 done
3959 done
3960 IFS=$as_save_IFS
3962 if test $ac_prog_rejected = yes; then
3963 # We found a bogon in the path, so make sure we never use it.
3964 set dummy $ac_cv_prog_CC
3965 shift
3966 if test $# != 0; then
3967 # We chose a different compiler from the bogus one.
3968 # However, it has the same basename, so the bogon will be chosen
3969 # first if we set CC to just the basename; use the full file name.
3970 shift
3971 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3976 CC=$ac_cv_prog_CC
3977 if test -n "$CC"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3979 $as_echo "$CC" >&6; }
3980 else
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3987 if test -z "$CC"; then
3988 if test -n "$ac_tool_prefix"; then
3989 for ac_prog in cl.exe
3991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if test "${ac_cv_prog_CC+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 if test -n "$CC"; then
3999 ac_cv_prog_CC="$CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4012 done
4013 done
4014 IFS=$as_save_IFS
4018 CC=$ac_cv_prog_CC
4019 if test -n "$CC"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4021 $as_echo "$CC" >&6; }
4022 else
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4028 test -n "$CC" && break
4029 done
4031 if test -z "$CC"; then
4032 ac_ct_CC=$CC
4033 for ac_prog in cl.exe
4035 # Extract the first word of "$ac_prog", so it can be a program name with args.
4036 set dummy $ac_prog; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 if test -n "$ac_ct_CC"; then
4043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4044 else
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_prog_ac_ct_CC="$ac_prog"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4056 done
4057 done
4058 IFS=$as_save_IFS
4062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4063 if test -n "$ac_ct_CC"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4065 $as_echo "$ac_ct_CC" >&6; }
4066 else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 $as_echo "no" >&6; }
4072 test -n "$ac_ct_CC" && break
4073 done
4075 if test "x$ac_ct_CC" = x; then
4076 CC=""
4077 else
4078 case $cross_compiling:$ac_tool_warned in
4079 yes:)
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4082 ac_tool_warned=yes ;;
4083 esac
4084 CC=$ac_ct_CC
4091 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4093 as_fn_error "no acceptable C compiler found in \$PATH
4094 See \`config.log' for more details." "$LINENO" 5; }
4096 # Provide some information about the compiler.
4097 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4098 set X $ac_compile
4099 ac_compiler=$2
4100 for ac_option in --version -v -V -qversion; do
4101 { { ac_try="$ac_compiler $ac_option >&5"
4102 case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105 esac
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 $as_echo "$ac_try_echo"; } >&5
4108 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4109 ac_status=$?
4110 if test -s conftest.err; then
4111 sed '10a\
4112 ... rest of stderr output deleted ...
4113 10q' conftest.err >conftest.er1
4114 cat conftest.er1 >&5
4115 rm -f conftest.er1 conftest.err
4117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4118 test $ac_status = 0; }
4119 done
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4125 main ()
4129 return 0;
4131 _ACEOF
4132 ac_clean_files_save=$ac_clean_files
4133 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4134 # Try to create an executable without -o first, disregard a.out.
4135 # It will help us diagnose broken compilers, and finding out an intuition
4136 # of exeext.
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4138 $as_echo_n "checking for C compiler default output file name... " >&6; }
4139 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4141 # The possible output files:
4142 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4144 ac_rmfiles=
4145 for ac_file in $ac_files
4147 case $ac_file in
4148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4149 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4150 esac
4151 done
4152 rm -f $ac_rmfiles
4154 if { { ac_try="$ac_link_default"
4155 case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158 esac
4159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160 $as_echo "$ac_try_echo"; } >&5
4161 (eval "$ac_link_default") 2>&5
4162 ac_status=$?
4163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4164 test $ac_status = 0; }; then :
4165 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4166 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4167 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4168 # so that the user can short-circuit this test for compilers unknown to
4169 # Autoconf.
4170 for ac_file in $ac_files ''
4172 test -f "$ac_file" || continue
4173 case $ac_file in
4174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4176 [ab].out )
4177 # We found the default executable, but exeext='' is most
4178 # certainly right.
4179 break;;
4180 *.* )
4181 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4182 then :; else
4183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4185 # We set ac_cv_exeext here because the later test for it is not
4186 # safe: cross compilers may not add the suffix if given an `-o'
4187 # argument, so we may need to know it at that point already.
4188 # Even if this section looks crufty: it has the advantage of
4189 # actually working.
4190 break;;
4192 break;;
4193 esac
4194 done
4195 test "$ac_cv_exeext" = no && ac_cv_exeext=
4197 else
4198 ac_file=''
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4201 $as_echo "$ac_file" >&6; }
4202 if test -z "$ac_file"; then :
4203 $as_echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4208 { as_fn_set_status 77
4209 as_fn_error "C compiler cannot create executables
4210 See \`config.log' for more details." "$LINENO" 5; }; }
4212 ac_exeext=$ac_cv_exeext
4214 # Check that the compiler produces executables we can run. If not, either
4215 # the compiler is broken, or we cross compile.
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4217 $as_echo_n "checking whether the C compiler works... " >&6; }
4218 # If not cross compiling, check that we can run a simple program.
4219 if test "$cross_compiling" != yes; then
4220 if { ac_try='./$ac_file'
4221 { { case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224 esac
4225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4226 $as_echo "$ac_try_echo"; } >&5
4227 (eval "$ac_try") 2>&5
4228 ac_status=$?
4229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230 test $ac_status = 0; }; }; then
4231 cross_compiling=no
4232 else
4233 if test "$cross_compiling" = maybe; then
4234 cross_compiling=yes
4235 else
4236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4238 as_fn_error "cannot run C compiled programs.
4239 If you meant to cross compile, use \`--host'.
4240 See \`config.log' for more details." "$LINENO" 5; }
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4245 $as_echo "yes" >&6; }
4247 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4248 ac_clean_files=$ac_clean_files_save
4249 # Check that the compiler produces executables we can run. If not, either
4250 # the compiler is broken, or we cross compile.
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4252 $as_echo_n "checking whether we are cross compiling... " >&6; }
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4254 $as_echo "$cross_compiling" >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4257 $as_echo_n "checking for suffix of executables... " >&6; }
4258 if { { ac_try="$ac_link"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4264 $as_echo "$ac_try_echo"; } >&5
4265 (eval "$ac_link") 2>&5
4266 ac_status=$?
4267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268 test $ac_status = 0; }; then :
4269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4271 # work properly (i.e., refer to `conftest.exe'), while it won't with
4272 # `rm'.
4273 for ac_file in conftest.exe conftest conftest.*; do
4274 test -f "$ac_file" || continue
4275 case $ac_file in
4276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4278 break;;
4279 * ) break;;
4280 esac
4281 done
4282 else
4283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error "cannot compute suffix of executables: cannot compile and link
4286 See \`config.log' for more details." "$LINENO" 5; }
4288 rm -f conftest$ac_cv_exeext
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4290 $as_echo "$ac_cv_exeext" >&6; }
4292 rm -f conftest.$ac_ext
4293 EXEEXT=$ac_cv_exeext
4294 ac_exeext=$EXEEXT
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4296 $as_echo_n "checking for suffix of object files... " >&6; }
4297 if test "${ac_cv_objext+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4304 main ()
4308 return 0;
4310 _ACEOF
4311 rm -f conftest.o conftest.obj
4312 if { { ac_try="$ac_compile"
4313 case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316 esac
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_compile") 2>&5
4320 ac_status=$?
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }; then :
4323 for ac_file in conftest.o conftest.obj conftest.*; do
4324 test -f "$ac_file" || continue;
4325 case $ac_file in
4326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4328 break;;
4329 esac
4330 done
4331 else
4332 $as_echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337 as_fn_error "cannot compute suffix of object files: cannot compile
4338 See \`config.log' for more details." "$LINENO" 5; }
4340 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4343 $as_echo "$ac_cv_objext" >&6; }
4344 OBJEXT=$ac_cv_objext
4345 ac_objext=$OBJEXT
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4347 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4348 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4355 main ()
4357 #ifndef __GNUC__
4358 choke me
4359 #endif
4362 return 0;
4364 _ACEOF
4365 if ac_fn_c_try_compile "$LINENO"; then :
4366 ac_compiler_gnu=yes
4367 else
4368 ac_compiler_gnu=no
4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4375 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4376 if test $ac_compiler_gnu = yes; then
4377 GCC=yes
4378 else
4379 GCC=
4381 ac_test_CFLAGS=${CFLAGS+set}
4382 ac_save_CFLAGS=$CFLAGS
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4384 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4385 if test "${ac_cv_prog_cc_g+set}" = set; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 ac_save_c_werror_flag=$ac_c_werror_flag
4389 ac_c_werror_flag=yes
4390 ac_cv_prog_cc_g=no
4391 CFLAGS="-g"
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4396 main ()
4400 return 0;
4402 _ACEOF
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_cv_prog_cc_g=yes
4405 else
4406 CFLAGS=""
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4411 main ()
4415 return 0;
4417 _ACEOF
4418 if ac_fn_c_try_compile "$LINENO"; then :
4420 else
4421 ac_c_werror_flag=$ac_save_c_werror_flag
4422 CFLAGS="-g"
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4427 main ()
4431 return 0;
4433 _ACEOF
4434 if ac_fn_c_try_compile "$LINENO"; then :
4435 ac_cv_prog_cc_g=yes
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 ac_c_werror_flag=$ac_save_c_werror_flag
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4445 $as_echo "$ac_cv_prog_cc_g" >&6; }
4446 if test "$ac_test_CFLAGS" = set; then
4447 CFLAGS=$ac_save_CFLAGS
4448 elif test $ac_cv_prog_cc_g = yes; then
4449 if test "$GCC" = yes; then
4450 CFLAGS="-g -O2"
4451 else
4452 CFLAGS="-g"
4454 else
4455 if test "$GCC" = yes; then
4456 CFLAGS="-O2"
4457 else
4458 CFLAGS=
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4462 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4463 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 ac_cv_prog_cc_c89=no
4467 ac_save_CC=$CC
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <stdarg.h>
4471 #include <stdio.h>
4472 #include <sys/types.h>
4473 #include <sys/stat.h>
4474 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4475 struct buf { int x; };
4476 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4477 static char *e (p, i)
4478 char **p;
4479 int i;
4481 return p[i];
4483 static char *f (char * (*g) (char **, int), char **p, ...)
4485 char *s;
4486 va_list v;
4487 va_start (v,p);
4488 s = g (p, va_arg (v,int));
4489 va_end (v);
4490 return s;
4493 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4494 function prototypes and stuff, but not '\xHH' hex character constants.
4495 These don't provoke an error unfortunately, instead are silently treated
4496 as 'x'. The following induces an error, until -std is added to get
4497 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4498 array size at least. It's necessary to write '\x00'==0 to get something
4499 that's true only with -std. */
4500 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4502 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4503 inside strings and character constants. */
4504 #define FOO(x) 'x'
4505 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4507 int test (int i, double x);
4508 struct s1 {int (*f) (int a);};
4509 struct s2 {int (*f) (double a);};
4510 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4511 int argc;
4512 char **argv;
4514 main ()
4516 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4518 return 0;
4520 _ACEOF
4521 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4522 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4524 CC="$ac_save_CC $ac_arg"
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526 ac_cv_prog_cc_c89=$ac_arg
4528 rm -f core conftest.err conftest.$ac_objext
4529 test "x$ac_cv_prog_cc_c89" != "xno" && break
4530 done
4531 rm -f conftest.$ac_ext
4532 CC=$ac_save_CC
4535 # AC_CACHE_VAL
4536 case "x$ac_cv_prog_cc_c89" in
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4539 $as_echo "none needed" >&6; } ;;
4540 xno)
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4542 $as_echo "unsupported" >&6; } ;;
4544 CC="$CC $ac_cv_prog_cc_c89"
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4546 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4547 esac
4548 if test "x$ac_cv_prog_cc_c89" != xno; then :
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558 ac_ext=cpp
4559 ac_cpp='$CXXCPP $CPPFLAGS'
4560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4563 if test -z "$CXX"; then
4564 if test -n "$CCC"; then
4565 CXX=$CCC
4566 else
4567 if test -n "$ac_tool_prefix"; then
4568 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if test "${ac_cv_prog_CXX+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if test -n "$CXX"; then
4578 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4591 done
4592 done
4593 IFS=$as_save_IFS
4597 CXX=$ac_cv_prog_CXX
4598 if test -n "$CXX"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4600 $as_echo "$CXX" >&6; }
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4607 test -n "$CXX" && break
4608 done
4610 if test -z "$CXX"; then
4611 ac_ct_CXX=$CXX
4612 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4614 # Extract the first word of "$ac_prog", so it can be a program name with args.
4615 set dummy $ac_prog; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -n "$ac_ct_CXX"; then
4622 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_prog_ac_ct_CXX="$ac_prog"
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4635 done
4636 done
4637 IFS=$as_save_IFS
4641 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4642 if test -n "$ac_ct_CXX"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4644 $as_echo "$ac_ct_CXX" >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4651 test -n "$ac_ct_CXX" && break
4652 done
4654 if test "x$ac_ct_CXX" = x; then
4655 CXX="g++"
4656 else
4657 case $cross_compiling:$ac_tool_warned in
4658 yes:)
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4661 ac_tool_warned=yes ;;
4662 esac
4663 CXX=$ac_ct_CXX
4669 # Provide some information about the compiler.
4670 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4671 set X $ac_compile
4672 ac_compiler=$2
4673 for ac_option in --version -v -V -qversion; do
4674 { { ac_try="$ac_compiler $ac_option >&5"
4675 case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4678 esac
4679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4680 $as_echo "$ac_try_echo"; } >&5
4681 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4682 ac_status=$?
4683 if test -s conftest.err; then
4684 sed '10a\
4685 ... rest of stderr output deleted ...
4686 10q' conftest.err >conftest.er1
4687 cat conftest.er1 >&5
4688 rm -f conftest.er1 conftest.err
4690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4691 test $ac_status = 0; }
4692 done
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4695 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4696 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4703 main ()
4705 #ifndef __GNUC__
4706 choke me
4707 #endif
4710 return 0;
4712 _ACEOF
4713 if ac_fn_cxx_try_compile "$LINENO"; then :
4714 ac_compiler_gnu=yes
4715 else
4716 ac_compiler_gnu=no
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4723 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4724 if test $ac_compiler_gnu = yes; then
4725 GXX=yes
4726 else
4727 GXX=
4729 ac_test_CXXFLAGS=${CXXFLAGS+set}
4730 ac_save_CXXFLAGS=$CXXFLAGS
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4732 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4733 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4737 ac_cxx_werror_flag=yes
4738 ac_cv_prog_cxx_g=no
4739 CXXFLAGS="-g"
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4744 main ()
4748 return 0;
4750 _ACEOF
4751 if ac_fn_cxx_try_compile "$LINENO"; then :
4752 ac_cv_prog_cxx_g=yes
4753 else
4754 CXXFLAGS=""
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4759 main ()
4763 return 0;
4765 _ACEOF
4766 if ac_fn_cxx_try_compile "$LINENO"; then :
4768 else
4769 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4770 CXXFLAGS="-g"
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4775 main ()
4779 return 0;
4781 _ACEOF
4782 if ac_fn_cxx_try_compile "$LINENO"; then :
4783 ac_cv_prog_cxx_g=yes
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4793 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4794 if test "$ac_test_CXXFLAGS" = set; then
4795 CXXFLAGS=$ac_save_CXXFLAGS
4796 elif test $ac_cv_prog_cxx_g = yes; then
4797 if test "$GXX" = yes; then
4798 CXXFLAGS="-g -O2"
4799 else
4800 CXXFLAGS="-g"
4802 else
4803 if test "$GXX" = yes; then
4804 CXXFLAGS="-O2"
4805 else
4806 CXXFLAGS=
4809 ac_ext=c
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4816 # We must set the default linker to the linker used by gcc for the correct
4817 # operation of libtool. If LD is not defined and we are using gcc, try to
4818 # set the LD default to the ld used by gcc.
4819 if test -z "$LD"; then
4820 if test "$GCC" = yes; then
4821 case $build in
4822 *-*-mingw*)
4823 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4825 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4826 esac
4827 case $gcc_prog_ld in
4828 # Accept absolute paths.
4829 [\\/]* | [A-Za-z]:[\\/]*)
4830 LD="$gcc_prog_ld" ;;
4831 esac
4838 if test -n "$ac_tool_prefix"; then
4839 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4840 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 if test -n "$GNATBIND"; then
4847 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4852 IFS=$as_save_IFS
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 break 2
4860 done
4861 done
4862 IFS=$as_save_IFS
4866 GNATBIND=$ac_cv_prog_GNATBIND
4867 if test -n "$GNATBIND"; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4869 $as_echo "$GNATBIND" >&6; }
4870 else
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4877 if test -z "$ac_cv_prog_GNATBIND"; then
4878 ac_ct_GNATBIND=$GNATBIND
4879 # Extract the first word of "gnatbind", so it can be a program name with args.
4880 set dummy gnatbind; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test -n "$ac_ct_GNATBIND"; then
4887 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4900 done
4901 done
4902 IFS=$as_save_IFS
4906 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4907 if test -n "$ac_ct_GNATBIND"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4909 $as_echo "$ac_ct_GNATBIND" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4915 if test "x$ac_ct_GNATBIND" = x; then
4916 GNATBIND="no"
4917 else
4918 case $cross_compiling:$ac_tool_warned in
4919 yes:)
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4922 ac_tool_warned=yes ;;
4923 esac
4924 GNATBIND=$ac_ct_GNATBIND
4926 else
4927 GNATBIND="$ac_cv_prog_GNATBIND"
4930 if test -n "$ac_tool_prefix"; then
4931 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4932 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 if test -n "$GNATMAKE"; then
4939 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 break 2
4952 done
4953 done
4954 IFS=$as_save_IFS
4958 GNATMAKE=$ac_cv_prog_GNATMAKE
4959 if test -n "$GNATMAKE"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4961 $as_echo "$GNATMAKE" >&6; }
4962 else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4969 if test -z "$ac_cv_prog_GNATMAKE"; then
4970 ac_ct_GNATMAKE=$GNATMAKE
4971 # Extract the first word of "gnatmake", so it can be a program name with args.
4972 set dummy gnatmake; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$ac_ct_GNATMAKE"; then
4979 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4992 done
4993 done
4994 IFS=$as_save_IFS
4998 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4999 if test -n "$ac_ct_GNATMAKE"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5001 $as_echo "$ac_ct_GNATMAKE" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5007 if test "x$ac_ct_GNATMAKE" = x; then
5008 GNATMAKE="no"
5009 else
5010 case $cross_compiling:$ac_tool_warned in
5011 yes:)
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014 ac_tool_warned=yes ;;
5015 esac
5016 GNATMAKE=$ac_ct_GNATMAKE
5018 else
5019 GNATMAKE="$ac_cv_prog_GNATMAKE"
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5023 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5024 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 cat >conftest.adb <<EOF
5028 procedure conftest is begin null; end conftest;
5030 acx_cv_cc_gcc_supports_ada=no
5031 # There is a bug in old released versions of GCC which causes the
5032 # driver to exit successfully when the appropriate language module
5033 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5034 # Therefore we must check for the error message as well as an
5035 # unsuccessful exit.
5036 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5037 # given a .adb file, but produce no object file. So we must check
5038 # if an object file was really produced to guard against this.
5039 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5040 if test x"$errors" = x && test -f conftest.$ac_objext; then
5041 acx_cv_cc_gcc_supports_ada=yes
5043 rm -f conftest.*
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5046 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5048 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5049 have_gnat=yes
5050 else
5051 have_gnat=no
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5055 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5056 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 echo abfoo >t1
5060 echo cdfoo >t2
5061 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5062 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5063 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5065 else
5066 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5069 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5070 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5072 else
5073 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5076 rm t1 t2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5080 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5081 do_compare="$gcc_cv_prog_cmp_skip"
5085 # Check whether --enable-bootstrap was given.
5086 if test "${enable_bootstrap+set}" = set; then :
5087 enableval=$enable_bootstrap;
5088 else
5089 enable_bootstrap=default
5093 # Issue errors and warnings for invalid/strange bootstrap combinations.
5094 if test -r $srcdir/gcc/configure; then
5095 have_compiler=yes
5096 else
5097 have_compiler=no
5100 case "$have_compiler:$host:$target:$enable_bootstrap" in
5101 *:*:*:no) ;;
5103 # Default behavior. Enable bootstrap if we have a compiler
5104 # and we are in a native configuration.
5105 yes:$build:$build:default)
5106 enable_bootstrap=yes ;;
5108 *:*:*:default)
5109 enable_bootstrap=no ;;
5111 # We have a compiler and we are in a native configuration, bootstrap is ok
5112 yes:$build:$build:yes)
5115 # Other configurations, but we have a compiler. Assume the user knows
5116 # what he's doing.
5117 yes:*:*:yes)
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5119 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5122 # No compiler: if they passed --enable-bootstrap explicitly, fail
5123 no:*:*:yes)
5124 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5126 # Fail if wrong command line
5128 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5130 esac
5132 # Used for setting $lt_cv_objdir
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5134 $as_echo_n "checking for objdir... " >&6; }
5135 if test "${lt_cv_objdir+set}" = set; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 rm -f .libs 2>/dev/null
5139 mkdir .libs 2>/dev/null
5140 if test -d .libs; then
5141 lt_cv_objdir=.libs
5142 else
5143 # MS-DOS does not allow filenames that begin with a dot.
5144 lt_cv_objdir=_libs
5146 rmdir .libs 2>/dev/null
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5149 $as_echo "$lt_cv_objdir" >&6; }
5150 objdir=$lt_cv_objdir
5156 cat >>confdefs.h <<_ACEOF
5157 #define LT_OBJDIR "$lt_cv_objdir/"
5158 _ACEOF
5162 # Check for GMP, MPFR and MPC
5163 gmplibs="-lmpc -lmpfr -lgmp"
5164 gmpinc=
5165 have_gmp=no
5167 # Specify a location for mpc
5168 # check for this first so it ends up on the link line before mpfr.
5170 # Check whether --with-mpc was given.
5171 if test "${with_mpc+set}" = set; then :
5172 withval=$with_mpc;
5176 # Check whether --with-mpc-include was given.
5177 if test "${with_mpc_include+set}" = set; then :
5178 withval=$with_mpc_include;
5182 # Check whether --with-mpc-lib was given.
5183 if test "${with_mpc_lib+set}" = set; then :
5184 withval=$with_mpc_lib;
5188 if test "x$with_mpc" != x; then
5189 gmplibs="-L$with_mpc/lib $gmplibs"
5190 gmpinc="-I$with_mpc/include $gmpinc"
5192 if test "x$with_mpc_include" != x; then
5193 gmpinc="-I$with_mpc_include $gmpinc"
5195 if test "x$with_mpc_lib" != x; then
5196 gmplibs="-L$with_mpc_lib $gmplibs"
5198 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5199 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5200 gmpinc='-I$$s/mpc/src '"$gmpinc"
5201 # Do not test the mpc version. Assume that it is sufficient, since
5202 # it is in the source tree, and the library has not been built yet
5203 # but it would be included on the link line in the version check below
5204 # hence making the test fail.
5205 have_gmp=yes
5208 # Specify a location for mpfr
5209 # check for this first so it ends up on the link line before gmp.
5211 # Check whether --with-mpfr-dir was given.
5212 if test "${with_mpfr_dir+set}" = set; then :
5213 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5214 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5219 # Check whether --with-mpfr was given.
5220 if test "${with_mpfr+set}" = set; then :
5221 withval=$with_mpfr;
5225 # Check whether --with-mpfr-include was given.
5226 if test "${with_mpfr_include+set}" = set; then :
5227 withval=$with_mpfr_include;
5231 # Check whether --with-mpfr-lib was given.
5232 if test "${with_mpfr_lib+set}" = set; then :
5233 withval=$with_mpfr_lib;
5237 if test "x$with_mpfr" != x; then
5238 gmplibs="-L$with_mpfr/lib $gmplibs"
5239 gmpinc="-I$with_mpfr/include $gmpinc"
5241 if test "x$with_mpfr_include" != x; then
5242 gmpinc="-I$with_mpfr_include $gmpinc"
5244 if test "x$with_mpfr_lib" != x; then
5245 gmplibs="-L$with_mpfr_lib $gmplibs"
5247 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5248 # MPFR v3.1.0 moved the sources into a src sub-directory.
5249 if test -d ${srcdir}/mpfr/src; then
5250 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5251 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5252 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5253 else
5254 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5255 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5256 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5258 # Do not test the mpfr version. Assume that it is sufficient, since
5259 # it is in the source tree, and the library has not been built yet
5260 # but it would be included on the link line in the version check below
5261 # hence making the test fail.
5262 have_gmp=yes
5265 # Specify a location for gmp
5267 # Check whether --with-gmp-dir was given.
5268 if test "${with_gmp_dir+set}" = set; then :
5269 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5270 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5275 # Check whether --with-gmp was given.
5276 if test "${with_gmp+set}" = set; then :
5277 withval=$with_gmp;
5281 # Check whether --with-gmp-include was given.
5282 if test "${with_gmp_include+set}" = set; then :
5283 withval=$with_gmp_include;
5287 # Check whether --with-gmp-lib was given.
5288 if test "${with_gmp_lib+set}" = set; then :
5289 withval=$with_gmp_lib;
5294 if test "x$with_gmp" != x; then
5295 gmplibs="-L$with_gmp/lib $gmplibs"
5296 gmpinc="-I$with_gmp/include $gmpinc"
5298 if test "x$with_gmp_include" != x; then
5299 gmpinc="-I$with_gmp_include $gmpinc"
5301 if test "x$with_gmp_lib" != x; then
5302 gmplibs="-L$with_gmp_lib $gmplibs"
5304 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5305 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5306 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5307 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5308 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5309 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5310 # Do not test the gmp version. Assume that it is sufficient, since
5311 # it is in the source tree, and the library has not been built yet
5312 # but it would be included on the link line in the version check below
5313 # hence making the test fail.
5314 have_gmp=yes
5317 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5318 have_gmp=yes
5319 saved_CFLAGS="$CFLAGS"
5320 CFLAGS="$CFLAGS $gmpinc"
5321 # Check for the recommended and required versions of GMP.
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5323 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 #include "gmp.h"
5329 main ()
5332 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5333 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5334 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5335 choke me
5336 #endif
5339 return 0;
5341 _ACEOF
5342 if ac_fn_c_try_compile "$LINENO"; then :
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 #include <gmp.h>
5347 main ()
5350 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5351 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5352 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5353 choke me
5354 #endif
5357 return 0;
5359 _ACEOF
5360 if ac_fn_c_try_compile "$LINENO"; then :
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5362 $as_echo "yes" >&6; }
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5365 $as_echo "buggy but acceptable" >&6; }
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }; have_gmp=no
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 # If we have GMP, check the MPFR version.
5375 if test x"$have_gmp" = xyes; then
5376 # Check for the recommended and required versions of MPFR.
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5378 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #include <gmp.h>
5382 #include <mpfr.h>
5384 main ()
5387 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5388 choke me
5389 #endif
5392 return 0;
5394 _ACEOF
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 #include <gmp.h>
5399 #include <mpfr.h>
5401 main ()
5404 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5405 choke me
5406 #endif
5409 return 0;
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5414 $as_echo "yes" >&6; }
5415 else
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5417 $as_echo "buggy but acceptable" >&6; }
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }; have_gmp=no
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 # Check for the MPC header version.
5428 if test x"$have_gmp" = xyes ; then
5429 # Check for the recommended and required versions of MPC.
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5431 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5434 #include <mpc.h>
5436 main ()
5439 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5440 choke me
5441 #endif
5444 return 0;
5446 _ACEOF
5447 if ac_fn_c_try_compile "$LINENO"; then :
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #include <mpc.h>
5452 main ()
5455 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5456 choke me
5457 #endif
5460 return 0;
5462 _ACEOF
5463 if ac_fn_c_try_compile "$LINENO"; then :
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5465 $as_echo "yes" >&6; }
5466 else
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5468 $as_echo "buggy but acceptable" >&6; }
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 else
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }; have_gmp=no
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 # Now check the MPFR library.
5479 if test x"$have_gmp" = xyes; then
5480 saved_LIBS="$LIBS"
5481 LIBS="$LIBS $gmplibs"
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5483 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5486 #include <mpc.h>
5488 main ()
5491 mpfr_t n;
5492 mpfr_t x;
5493 mpc_t c;
5494 int t;
5495 mpfr_init (n);
5496 mpfr_init (x);
5497 mpfr_atan2 (n, n, x, GMP_RNDN);
5498 mpfr_erfc (n, x, GMP_RNDN);
5499 mpfr_subnormalize (x, t, GMP_RNDN);
5500 mpfr_clear(n);
5501 mpfr_clear(x);
5502 mpc_init2 (c, 53);
5503 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5504 mpc_cosh (c, c, MPC_RNDNN);
5505 mpc_pow (c, c, c, MPC_RNDNN);
5506 mpc_acosh (c, c, MPC_RNDNN);
5507 mpc_clear (c);
5510 return 0;
5512 _ACEOF
5513 if ac_fn_c_try_link "$LINENO"; then :
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515 $as_echo "yes" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }; have_gmp=no
5520 rm -f core conftest.err conftest.$ac_objext \
5521 conftest$ac_exeext conftest.$ac_ext
5522 LIBS="$saved_LIBS"
5525 CFLAGS="$saved_CFLAGS"
5527 # The library versions listed in the error message below should match
5528 # the HARD-minimums enforced above.
5529 if test x$have_gmp != xyes; then
5530 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5531 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5532 their locations. Source code for these libraries can be found at
5533 their respective hosting sites as well as at
5534 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5535 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5536 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5537 make sure that you have installed both the libraries and the header
5538 files. They may be located in separate packages." "$LINENO" 5
5542 # Flags needed for both GMP, MPFR and/or MPC.
5550 # Allow host libstdc++ to be specified for static linking with PPL.
5552 # Check whether --with-host-libstdcxx was given.
5553 if test "${with_host_libstdcxx+set}" = set; then :
5554 withval=$with_host_libstdcxx;
5558 case $with_host_libstdcxx in
5559 no|yes)
5560 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5562 esac
5564 # Linker flags to use for stage1 or when not boostrapping.
5566 # Check whether --with-stage1-ldflags was given.
5567 if test "${with_stage1_ldflags+set}" = set; then :
5568 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5569 stage1_ldflags=
5570 else
5571 stage1_ldflags=$withval
5573 else
5574 stage1_ldflags=
5579 # Libraries to use for stage1 or when not bootstrapping.
5581 # Check whether --with-stage1-libs was given.
5582 if test "${with_stage1_libs+set}" = set; then :
5583 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5584 stage1_libs=
5585 else
5586 stage1_libs=$withval
5588 else
5589 stage1_libs=$with_host_libstdcxx
5594 # Libraries to use for stage2 and later builds. This defaults to the
5595 # argument passed to --with-host-libstdcxx.
5597 # Check whether --with-boot-libs was given.
5598 if test "${with_boot_libs+set}" = set; then :
5599 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5600 poststage1_libs=
5601 else
5602 poststage1_libs=$withval
5604 else
5605 poststage1_libs=$with_host_libstdcxx
5610 # Linker flags to use for stage2 and later builds.
5612 # Check whether --with-boot-ldflags was given.
5613 if test "${with_boot_ldflags+set}" = set; then :
5614 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5615 poststage1_ldflags=
5616 else
5617 poststage1_ldflags=$withval
5619 else
5620 poststage1_ldflags=
5621 # In stages 2 and 3, default to linking libstdc++ and libgcc
5622 # statically. But if the user explicitly specified the libraries to
5623 # use, trust that they are doing what they want.
5624 if test "$poststage1_libs" = ""; then
5625 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5631 # Check for ISL
5634 # Check whether --with-isl was given.
5635 if test "${with_isl+set}" = set; then :
5636 withval=$with_isl;
5640 # Check whether --with-isl-include was given.
5641 if test "${with_isl_include+set}" = set; then :
5642 withval=$with_isl_include;
5646 # Check whether --with-isl-lib was given.
5647 if test "${with_isl_lib+set}" = set; then :
5648 withval=$with_isl_lib;
5652 # Check whether --enable-isl-version-check was given.
5653 if test "${enable_isl_version_check+set}" = set; then :
5654 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5655 else
5656 ENABLE_ISL_CHECK=yes
5660 # Initialize isllibs and islinc.
5661 case $with_isl in
5663 isllibs=
5664 islinc=
5666 "" | yes)
5669 isllibs="-L$with_isl/lib"
5670 islinc="-I$with_isl/include"
5672 esac
5673 if test "x${with_isl_include}" != x ; then
5674 islinc="-I$with_isl_include"
5676 if test "x${with_isl_lib}" != x; then
5677 isllibs="-L$with_isl_lib"
5679 if test "x${islinc}" = x && test "x${isllibs}" = x \
5680 && test -d ${srcdir}/isl; then
5681 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5682 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5683 ENABLE_ISL_CHECK=no
5686 isllibs="${isllibs} -lisl"
5692 if test "x$with_isl" != "xno"; then
5694 if test "${ENABLE_ISL_CHECK}" = yes ; then
5695 _isl_saved_CFLAGS=$CFLAGS
5696 _isl_saved_LDFLAGS=$LDFLAGS
5697 _isl_saved_LIBS=$LIBS
5699 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5700 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5701 LIBS="${_isl_saved_LIBS} -lisl"
5702 echo $CFLAGS
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5705 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5706 if test "${gcc_cv_isl+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test "$cross_compiling" = yes; then :
5710 gcc_cv_isl=yes
5711 else
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 #include <isl/version.h>
5715 #include <string.h>
5717 main ()
5719 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5720 return 1;
5723 return 0;
5725 _ACEOF
5726 if ac_fn_c_try_run "$LINENO"; then :
5727 gcc_cv_isl=yes
5728 else
5729 gcc_cv_isl=no
5731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5732 conftest.$ac_objext conftest.beam conftest.$ac_ext
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5737 $as_echo "$gcc_cv_isl" >&6; }
5739 CFLAGS=$_isl_saved_CFLAGS
5740 LDFLAGS=$_isl_saved_LDFLAGS
5741 LIBS=$_isl_saved_LIBS
5750 if test "x${with_isl}" = xno; then
5751 graphite_requested=no
5752 elif test "x${with_isl}" != x \
5753 || test "x${with_isl_include}" != x \
5754 || test "x${with_isl_lib}" != x ; then
5755 graphite_requested=yes
5756 else
5757 graphite_requested=no
5762 if test "${gcc_cv_isl}" = no ; then
5763 isllibs=
5764 islinc=
5767 if test "${graphite_requested}" = yes \
5768 && test "x${isllibs}" = x \
5769 && test "x${islinc}" = x ; then
5771 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5777 # Check for CLOOG
5780 # Check whether --with-cloog was given.
5781 if test "${with_cloog+set}" = set; then :
5782 withval=$with_cloog;
5786 # Check whether --with-cloog-include was given.
5787 if test "${with_cloog_include+set}" = set; then :
5788 withval=$with_cloog_include;
5792 # Check whether --with-cloog-lib was given.
5793 if test "${with_cloog_lib+set}" = set; then :
5794 withval=$with_cloog_lib;
5798 # Check whether --enable-cloog-version-check was given.
5799 if test "${enable_cloog_version_check+set}" = set; then :
5800 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5801 else
5802 ENABLE_CLOOG_CHECK=yes
5806 # Initialize clooglibs and clooginc.
5807 case $with_cloog in
5809 clooglibs=
5810 clooginc=
5812 "" | yes)
5815 clooglibs="-L$with_cloog/lib"
5816 clooginc="-I$with_cloog/include"
5818 esac
5819 if test "x${with_cloog_include}" != x ; then
5820 clooginc="-I$with_cloog_include"
5822 if test "x${with_cloog_lib}" != x; then
5823 clooglibs="-L$with_cloog_lib"
5825 if test "x${clooginc}" == x && test "x${clooglibs}" == x \
5826 && test -d ${srcdir}/cloog; then
5827 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5828 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
5831 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5832 clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
5838 if test "x$isllibs" = x && test "x$islinc" = x; then
5839 clooglibs=
5840 clooginc=
5841 elif test "x$with_cloog" != "xno"; then
5845 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5846 _cloog_saved_CFLAGS=$CFLAGS
5847 _cloog_saved_LDFLAGS=$LDFLAGS
5849 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5850 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5853 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5854 if test "${gcc_cv_cloog+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #include "cloog/version.h"
5861 main ()
5863 #if CLOOG_VERSION_MAJOR != 0 \
5864 || CLOOG_VERSION_MINOR != 17 \
5865 || CLOOG_VERSION_REVISION < 0
5866 choke me
5867 #endif
5869 return 0;
5871 _ACEOF
5872 if ac_fn_c_try_compile "$LINENO"; then :
5873 gcc_cv_cloog=yes
5874 else
5875 gcc_cv_cloog=no
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5880 $as_echo "$gcc_cv_cloog" >&6; }
5882 CFLAGS=$_cloog_saved_CFLAGS
5883 LDFLAGS=$_cloog_saved_LDFLAGS
5892 if test "x${with_cloog}" = xno; then
5893 graphite_requested=no
5894 elif test "x${with_cloog}" != x \
5895 || test "x${with_cloog_include}" != x \
5896 || test "x${with_cloog_lib}" != x ; then
5897 graphite_requested=yes
5898 else
5899 graphite_requested=no
5904 if test "${gcc_cv_cloog}" = no ; then
5905 clooglibs=
5906 clooginc=
5909 if test "${graphite_requested}" = yes \
5910 && test "x${clooglibs}" = x \
5911 && test "x${clooginc}" = x ; then
5913 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5919 # If either the ISL or the CLooG check failed, disable builds of in-tree
5920 # variants of both
5921 if test "x$clooglibs" = x && test "x$clooginc" = x; then
5922 noconfigdirs="$noconfigdirs cloog isl"
5925 # Check for LTO support.
5926 # Check whether --enable-lto was given.
5927 if test "${enable_lto+set}" = set; then :
5928 enableval=$enable_lto; enable_lto=$enableval
5929 else
5930 enable_lto=yes; default_enable_lto=yes
5937 target_elf=no
5938 case $target in
5939 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5940 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5941 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5942 target_elf=no
5945 target_elf=yes
5947 esac
5949 if test $target_elf = yes; then :
5950 # ELF platforms build the lto-plugin always.
5951 build_lto_plugin=yes
5953 else
5954 if test x"$default_enable_lto" = x"yes" ; then
5955 case $target in
5956 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
5957 # On other non-ELF platforms, LTO has yet to be validated.
5958 *) enable_lto=no ;;
5959 esac
5960 else
5961 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5962 # It would also be nice to check the binutils support, but we don't
5963 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5964 # warn during gcc/ subconfigure; unless you're bootstrapping with
5965 # -flto it won't be needed until after installation anyway.
5966 case $target in
5967 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5968 *) if test x"$enable_lto" = x"yes"; then
5969 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5972 esac
5974 # Among non-ELF, only Windows platforms support the lto-plugin so far.
5975 # Build it unless LTO was explicitly disabled.
5976 case $target in
5977 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5978 *) ;;
5979 esac
5985 # By default, C and C++ are the only stage 1 languages.
5986 stage1_languages=,c,
5988 # Target libraries that we bootstrap.
5989 bootstrap_target_libs=,target-libgcc,
5991 # Figure out what language subdirectories are present.
5992 # Look if the user specified --enable-languages="..."; if not, use
5993 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5994 # go away some day.
5995 # NB: embedded tabs in this IF block -- do not untabify
5996 if test -d ${srcdir}/gcc; then
5997 if test x"${enable_languages+set}" != xset; then
5998 if test x"${LANGUAGES+set}" = xset; then
5999 enable_languages="${LANGUAGES}"
6000 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6001 else
6002 enable_languages=all
6004 else
6005 if test x"${enable_languages}" = x ||
6006 test x"${enable_languages}" = xyes;
6007 then
6008 echo configure.in: --enable-languages needs at least one language argument 1>&2
6009 exit 1
6012 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6014 # 'f95' is the old name for the 'fortran' language. We issue a warning
6015 # and make the substitution.
6016 case ,${enable_languages}, in
6017 *,f95,*)
6018 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6019 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6021 esac
6023 # If bootstrapping, C++ must be enabled.
6024 case ",$enable_languages,:$enable_bootstrap" in
6025 *,c++,*:*) ;;
6026 *:yes)
6027 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6028 enable_languages="${enable_languages},c++"
6029 else
6030 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6033 esac
6035 # First scan to see if an enabled language requires some other language.
6036 # We assume that a given config-lang.in will list all the language
6037 # front ends it requires, even if some are required indirectly.
6038 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6039 case ${lang_frag} in
6040 ..) ;;
6041 # The odd quoting in the next line works around
6042 # an apparent bug in bash 1.12 on linux.
6043 ${srcdir}/gcc/[*]/config-lang.in) ;;
6045 # From the config-lang.in, get $language, $lang_requires, and
6046 # $lang_requires_boot_languages.
6047 language=
6048 lang_requires=
6049 lang_requires_boot_languages=
6050 . ${lang_frag}
6051 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6052 case ,${enable_languages}, in
6053 *,$other,*) ;;
6054 *,all,*) ;;
6055 *,$language,*)
6056 echo " \`$other' language required by \`$language'; enabling" 1>&2
6057 enable_languages="${enable_languages},${other}"
6059 esac
6060 done
6061 for other in ${lang_requires_boot_languages} ; do
6062 if test "$other" != "c"; then
6063 case ,${enable_stage1_languages}, in
6064 *,$other,*) ;;
6065 *,all,*) ;;
6067 case ,${enable_languages}, in
6068 *,$language,*)
6069 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6070 enable_stage1_languages="$enable_stage1_languages,${other}"
6072 esac
6074 esac
6076 done
6078 esac
6079 done
6081 new_enable_languages=,c,
6083 # If LTO is enabled, add the LTO front end.
6084 extra_host_libiberty_configure_flags=
6085 if test "$enable_lto" = "yes" ; then
6086 case ,${enable_languages}, in
6087 *,lto,*) ;;
6088 *) enable_languages="${enable_languages},lto" ;;
6089 esac
6090 if test "${build_lto_plugin}" = "yes" ; then
6091 configdirs="$configdirs lto-plugin"
6092 extra_host_libiberty_configure_flags=--enable-shared
6097 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6098 potential_languages=,c,
6100 enabled_target_libs=
6101 disabled_target_libs=
6103 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6104 case ${lang_frag} in
6105 ..) ;;
6106 # The odd quoting in the next line works around
6107 # an apparent bug in bash 1.12 on linux.
6108 ${srcdir}/gcc/[*]/config-lang.in) ;;
6110 # From the config-lang.in, get $language, $target_libs,
6111 # $lang_dirs, $boot_language, and $build_by_default
6112 language=
6113 target_libs=
6114 lang_dirs=
6115 subdir_requires=
6116 boot_language=no
6117 build_by_default=yes
6118 . ${lang_frag}
6119 if test x${language} = x; then
6120 echo "${lang_frag} doesn't set \$language." 1>&2
6121 exit 1
6124 if test "$language" = "c++"; then
6125 boot_language=yes
6128 case ,${enable_languages}, in
6129 *,${language},*)
6130 # Language was explicitly selected; include it
6131 # unless it is C, which is enabled by default.
6132 if test "$language" != "c"; then
6133 add_this_lang=yes
6136 *,all,*)
6137 # 'all' was selected, select it if it is a default language
6138 add_this_lang=${build_by_default}
6141 add_this_lang=no
6143 esac
6145 # Disable languages that need other directories if these aren't available.
6146 for i in $subdir_requires; do
6147 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6148 case ,${enable_languages}, in
6149 *,${language},*)
6150 # Specifically requested language; tell them.
6151 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6154 # Silently disable.
6155 add_this_lang=unsupported
6157 esac
6158 done
6160 # Disable Ada if no preexisting GNAT is available.
6161 case ,${enable_languages},:${language}:${have_gnat} in
6162 *,${language},*:ada:no)
6163 # Specifically requested language; tell them.
6164 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6166 *:ada:no)
6167 # Silently disable.
6168 add_this_lang=unsupported
6170 esac
6172 # Disable a language that is unsupported by the target.
6173 case " $unsupported_languages " in
6174 *" $language "*)
6175 add_this_lang=unsupported
6177 esac
6179 case $add_this_lang in
6180 unsupported)
6181 # Remove language-dependent dirs.
6182 disabled_target_libs="$disabled_target_libs $target_libs"
6183 noconfigdirs="$noconfigdirs $lang_dirs"
6186 # Remove language-dependent dirs; still show language as supported.
6187 disabled_target_libs="$disabled_target_libs $target_libs"
6188 noconfigdirs="$noconfigdirs $lang_dirs"
6189 potential_languages="${potential_languages}${language},"
6191 yes)
6192 new_enable_languages="${new_enable_languages}${language},"
6193 potential_languages="${potential_languages}${language},"
6194 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6195 enabled_target_libs="$enabled_target_libs $target_libs"
6196 case "${boot_language}:,$enable_stage1_languages," in
6197 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6198 # Add to (comma-separated) list of stage 1 languages.
6199 case ",$stage1_languages," in
6200 *,$language,* | ,yes, | ,all,) ;;
6201 *) stage1_languages="${stage1_languages}${language}," ;;
6202 esac
6203 # We need to bootstrap any supporting libraries.
6204 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6206 esac
6208 esac
6210 esac
6211 done
6213 # Add target libraries which are only needed for disabled languages
6214 # to noconfigdirs.
6215 if test -n "$disabled_target_libs"; then
6216 for dir in $disabled_target_libs; do
6217 case " $enabled_target_libs " in
6218 *" ${dir} "*) ;;
6219 *) noconfigdirs="$noconfigdirs $dir" ;;
6220 esac
6221 done
6224 # Check whether --enable-stage1-languages was given.
6225 if test "${enable_stage1_languages+set}" = set; then :
6226 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6227 ,no,|,,)
6228 # Set it to something that will have no effect in the loop below
6229 enable_stage1_languages=c ;;
6230 ,yes,)
6231 enable_stage1_languages=`echo $new_enable_languages | \
6232 sed -e "s/^,//" -e "s/,$//" ` ;;
6233 *,all,*)
6234 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6235 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6236 esac
6238 # Add "good" languages from enable_stage1_languages to stage1_languages,
6239 # while "bad" languages go in missing_languages. Leave no duplicates.
6240 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6241 case $potential_languages in
6242 *,$i,*)
6243 case $stage1_languages in
6244 *,$i,*) ;;
6245 *) stage1_languages="$stage1_languages$i," ;;
6246 esac ;;
6248 case $missing_languages in
6249 *,$i,*) ;;
6250 *) missing_languages="$missing_languages$i," ;;
6251 esac ;;
6252 esac
6253 done
6257 # Remove leading/trailing commas that were added for simplicity
6258 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6259 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6260 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6261 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6263 if test "x$missing_languages" != x; then
6264 as_fn_error "
6265 The following requested languages could not be built: ${missing_languages}
6266 Supported languages are: ${potential_languages}" "$LINENO" 5
6268 if test "x$new_enable_languages" != "x$enable_languages"; then
6269 echo The following languages will be built: ${new_enable_languages}
6270 enable_languages="$new_enable_languages"
6274 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6277 # Handle --disable-<component> generically.
6278 for dir in $configdirs $build_configdirs $target_configdirs ; do
6279 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6280 varname=`echo $dirname | sed -e s/+/_/g`
6281 if eval test x\${enable_${varname}} "=" xno ; then
6282 noconfigdirs="$noconfigdirs $dir"
6284 done
6286 # Check for Boehm's garbage collector
6287 # Check whether --enable-objc-gc was given.
6288 if test "${enable_objc_gc+set}" = set; then :
6289 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6290 *,objc,*:*:yes:*target-boehm-gc*)
6291 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6293 esac
6297 # Make sure we only build Boehm's garbage collector if required.
6298 case ,${enable_languages},:${enable_objc_gc} in
6299 *,objc,*:yes)
6300 # Keep target-boehm-gc if requested for Objective-C.
6303 # Otherwise remove target-boehm-gc depending on target-libjava.
6304 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6305 noconfigdirs="$noconfigdirs target-boehm-gc"
6308 esac
6311 # Check whether --with-upc-pts was given.
6312 if test "${with_upc_pts+set}" = set; then :
6313 withval=$with_upc_pts;
6314 case ,${enable_languages}, in
6315 *,upc,)
6316 case "$withval" in
6317 struct|packed)
6318 true
6321 as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
6323 esac
6326 as_fn_error "--with-upc-pts supplied, but UPC language not enabled" "$LINENO" 5
6328 esac
6333 # Disable libitm if we're not building C++
6334 case ,${enable_languages}, in
6335 *,c++,*) ;;
6337 noconfigdirs="$noconfigdirs target-libitm"
6339 esac
6341 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6342 # $build_configdirs and $target_configdirs.
6343 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6345 notsupp=""
6346 for dir in . $skipdirs $noconfigdirs ; do
6347 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6348 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6349 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6350 if test -r $srcdir/$dirname/configure ; then
6351 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6352 true
6353 else
6354 notsupp="$notsupp $dir"
6358 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6359 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6360 if test -r $srcdir/$dirname/configure ; then
6361 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6362 true
6363 else
6364 notsupp="$notsupp $dir"
6368 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6369 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6370 if test -r $srcdir/$dirname/configure ; then
6371 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6372 true
6373 else
6374 notsupp="$notsupp $dir"
6378 done
6380 # Quietly strip out all directories which aren't configurable in this tree.
6381 # This relies on all configurable subdirectories being autoconfiscated, which
6382 # is now the case.
6383 build_configdirs_all="$build_configdirs"
6384 build_configdirs=
6385 for i in ${build_configdirs_all} ; do
6386 j=`echo $i | sed -e s/build-//g`
6387 if test -f ${srcdir}/$j/configure ; then
6388 build_configdirs="${build_configdirs} $i"
6390 done
6392 configdirs_all="$configdirs"
6393 configdirs=
6394 for i in ${configdirs_all} ; do
6395 if test -f ${srcdir}/$i/configure ; then
6396 configdirs="${configdirs} $i"
6398 done
6400 target_configdirs_all="$target_configdirs"
6401 target_configdirs=
6402 for i in ${target_configdirs_all} ; do
6403 j=`echo $i | sed -e s/target-//g`
6404 if test -f ${srcdir}/$j/configure ; then
6405 target_configdirs="${target_configdirs} $i"
6407 done
6409 # Produce a warning message for the subdirs we can't configure.
6410 # This isn't especially interesting in the Cygnus tree, but in the individual
6411 # FSF releases, it's important to let people know when their machine isn't
6412 # supported by the one or two programs in a package.
6414 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6415 # If $appdirs is non-empty, at least one of those directories must still
6416 # be configured, or we error out. (E.g., if the gas release supports a
6417 # specified target in some subdirs but not the gas subdir, we shouldn't
6418 # pretend that all is well.)
6419 if test -n "$appdirs" ; then
6420 for dir in $appdirs ; do
6421 if test -r $dir/Makefile.in ; then
6422 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6423 appdirs=""
6424 break
6426 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6427 appdirs=""
6428 break
6431 done
6432 if test -n "$appdirs" ; then
6433 echo "*** This configuration is not supported by this package." 1>&2
6434 exit 1
6437 # Okay, some application will build, or we don't care to check. Still
6438 # notify of subdirs not getting built.
6439 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6440 echo " ${notsupp}" 1>&2
6441 echo " (Any other directories should still work fine.)" 1>&2
6444 case "$host" in
6445 *msdosdjgpp*)
6446 enable_gdbtk=no ;;
6447 esac
6449 # To find our prefix, in gcc_cv_tool_prefix.
6451 # The user is always right.
6452 if test "${PATH_SEPARATOR+set}" != set; then
6453 echo "#! /bin/sh" >conf$$.sh
6454 echo "exit 0" >>conf$$.sh
6455 chmod +x conf$$.sh
6456 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6457 PATH_SEPARATOR=';'
6458 else
6459 PATH_SEPARATOR=:
6461 rm -f conf$$.sh
6466 if test "x$exec_prefix" = xNONE; then
6467 if test "x$prefix" = xNONE; then
6468 gcc_cv_tool_prefix=$ac_default_prefix
6469 else
6470 gcc_cv_tool_prefix=$prefix
6472 else
6473 gcc_cv_tool_prefix=$exec_prefix
6476 # If there is no compiler in the tree, use the PATH only. In any
6477 # case, if there is no compiler in the tree nobody should use
6478 # AS_FOR_TARGET and LD_FOR_TARGET.
6479 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6480 gcc_version=`cat $srcdir/gcc/BASE-VER`
6481 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6482 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6483 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6484 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6485 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6486 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6487 else
6488 gcc_cv_tool_dirs=
6491 if test x$build = x$target && test -n "$md_exec_prefix"; then
6492 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6497 copy_dirs=
6500 # Check whether --with-build-sysroot was given.
6501 if test "${with_build_sysroot+set}" = set; then :
6502 withval=$with_build_sysroot; if test x"$withval" != x ; then
6503 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6505 else
6506 SYSROOT_CFLAGS_FOR_TARGET=
6512 # Check whether --with-debug-prefix-map was given.
6513 if test "${with_debug_prefix_map+set}" = set; then :
6514 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6515 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6516 for debug_map in $withval; do
6517 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6518 done
6520 else
6521 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6526 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6527 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6528 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6529 # We want to ensure that TARGET libraries (which we know are built with
6530 # gcc) are built with "-O2 -g", so include those options when setting
6531 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6532 if test "x$CFLAGS_FOR_TARGET" = x; then
6533 CFLAGS_FOR_TARGET=$CFLAGS
6534 case " $CFLAGS " in
6535 *" -O2 "*) ;;
6536 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6537 esac
6538 case " $CFLAGS " in
6539 *" -g "* | *" -g3 "*) ;;
6540 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6541 esac
6545 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6546 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6547 case " $CXXFLAGS " in
6548 *" -O2 "*) ;;
6549 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6550 esac
6551 case " $CXXFLAGS " in
6552 *" -g "* | *" -g3 "*) ;;
6553 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6554 esac
6560 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6561 # the named directory are copied to $(tooldir)/sys-include.
6562 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6563 if test x${is_cross_compiler} = xno ; then
6564 echo 1>&2 '***' --with-headers is only supported when cross compiling
6565 exit 1
6567 if test x"${with_headers}" != xyes ; then
6568 x=${gcc_cv_tool_prefix}
6569 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6573 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6574 # the name directories are copied to $(tooldir)/lib. Multiple directories
6575 # are permitted.
6576 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6577 if test x${is_cross_compiler} = xno ; then
6578 echo 1>&2 '***' --with-libs is only supported when cross compiling
6579 exit 1
6581 if test x"${with_libs}" != xyes ; then
6582 # Copy the libraries in reverse order, so that files in the first named
6583 # library override files in subsequent libraries.
6584 x=${gcc_cv_tool_prefix}
6585 for l in ${with_libs}; do
6586 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6587 done
6591 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6593 # This is done by determining whether or not the appropriate directory
6594 # is available, and by checking whether or not specific configurations
6595 # have requested that this magic not happen.
6597 # The command line options always override the explicit settings in
6598 # configure.in, and the settings in configure.in override this magic.
6600 # If the default for a toolchain is to use GNU as and ld, and you don't
6601 # want to do that, then you should use the --without-gnu-as and
6602 # --without-gnu-ld options for the configure script. Similarly, if
6603 # the default is to use the included zlib and you don't want to do that,
6604 # you should use the --with-system-zlib option for the configure script.
6606 if test x${use_gnu_as} = x &&
6607 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6608 with_gnu_as=yes
6609 extra_host_args="$extra_host_args --with-gnu-as"
6612 if test x${use_gnu_ld} = x &&
6613 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6614 with_gnu_ld=yes
6615 extra_host_args="$extra_host_args --with-gnu-ld"
6618 if test x${use_included_zlib} = x &&
6619 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6621 else
6622 with_system_zlib=yes
6623 extra_host_args="$extra_host_args --with-system-zlib"
6626 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6627 # can detect this case.
6629 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6630 with_newlib=yes
6631 extra_host_args="$extra_host_args --with-newlib"
6634 # Handle ${copy_dirs}
6635 set fnord ${copy_dirs}
6636 shift
6637 while test $# != 0 ; do
6638 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6640 else
6641 echo Copying $1 to $2
6643 # Use the install script to create the directory and all required
6644 # parent directories.
6645 if test -d $2 ; then
6647 else
6648 echo >config.temp
6649 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6652 # Copy the directory, assuming we have tar.
6653 # FIXME: Should we use B in the second tar? Not all systems support it.
6654 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6656 # It is the responsibility of the user to correctly adjust all
6657 # symlinks. If somebody can figure out how to handle them correctly
6658 # here, feel free to add the code.
6660 echo $1 > $2/COPIED
6662 shift; shift
6663 done
6665 # Determine a target-dependent exec_prefix that the installed
6666 # gcc will search in. Keep this list sorted by triplet, with
6667 # the *-*-osname triplets last.
6668 md_exec_prefix=
6669 case "${target}" in
6670 i[34567]86-pc-msdosdjgpp*)
6671 md_exec_prefix=/dev/env/DJDIR/bin
6673 *-*-hpux* | \
6674 *-*-nto-qnx* | \
6675 *-*-solaris2*)
6676 md_exec_prefix=/usr/ccs/bin
6678 esac
6680 extra_arflags_for_target=
6681 extra_nmflags_for_target=
6682 extra_ranlibflags_for_target=
6683 target_makefile_frag=/dev/null
6684 case "${target}" in
6685 spu-*-*)
6686 target_makefile_frag="config/mt-spu"
6688 mips*-sde-elf*)
6689 target_makefile_frag="config/mt-sde"
6691 mipsisa*-*-elfoabi*)
6692 target_makefile_frag="config/mt-mips-elfoabi"
6694 mips*-*-*linux* | mips*-*-gnu*)
6695 target_makefile_frag="config/mt-mips-gnu"
6697 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6698 target_makefile_frag="config/mt-gnu"
6700 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6701 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6702 # commands to handle both 32-bit and 64-bit objects. These flags are
6703 # harmless if we're using GNU nm or ar.
6704 extra_arflags_for_target=" -X32_64"
6705 extra_nmflags_for_target=" -B -X32_64"
6707 esac
6709 alphaieee_frag=/dev/null
6710 case $target in
6711 alpha*-*-*)
6712 # This just makes sure to use the -mieee option to build target libs.
6713 # This should probably be set individually by each library.
6714 alphaieee_frag="config/mt-alphaieee"
6716 esac
6718 # If --enable-target-optspace always use -Os instead of -O2 to build
6719 # the target libraries, similarly if it is not specified, use -Os
6720 # on selected platforms.
6721 ospace_frag=/dev/null
6722 case "${enable_target_optspace}:${target}" in
6723 yes:*)
6724 ospace_frag="config/mt-ospace"
6726 :d30v-*)
6727 ospace_frag="config/mt-d30v"
6729 :m32r-* | :d10v-* | :fr30-*)
6730 ospace_frag="config/mt-ospace"
6732 no:* | :*)
6735 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6737 esac
6739 # Some systems (e.g., one of the i386-aix systems the gas testers are
6740 # using) don't handle "\$" correctly, so don't use it here.
6741 tooldir='${exec_prefix}'/${target_noncanonical}
6742 build_tooldir=${tooldir}
6744 # Create a .gdbinit file which runs the one in srcdir
6745 # and tells GDB to look there for source files.
6747 if test -r ${srcdir}/.gdbinit ; then
6748 case ${srcdir} in
6749 .) ;;
6750 *) cat > ./.gdbinit <<EOF
6751 # ${NO_EDIT}
6752 dir ${srcdir}
6753 dir .
6754 source ${srcdir}/.gdbinit
6757 esac
6760 # Make sure that the compiler is able to generate an executable. If it
6761 # can't, we are probably in trouble. We don't care whether we can run the
6762 # executable--we might be using a cross compiler--we only care whether it
6763 # can be created. At this point the main configure script has set CC.
6764 we_are_ok=no
6765 echo "int main () { return 0; }" > conftest.c
6766 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6767 if test $? = 0 ; then
6768 if test -s conftest || test -s conftest.exe ; then
6769 we_are_ok=yes
6772 case $we_are_ok in
6774 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6775 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6776 rm -f conftest*
6777 exit 1
6779 esac
6780 rm -f conftest*
6782 # Decide which environment variable is used to find dynamic libraries.
6783 case "${host}" in
6784 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6785 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6786 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6787 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6788 esac
6790 # On systems where the dynamic library environment variable is PATH,
6791 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6792 # built executables to PATH.
6793 if test "$RPATH_ENVVAR" = PATH; then
6794 GCC_SHLIB_SUBDIR=/shlib
6795 else
6796 GCC_SHLIB_SUBDIR=
6799 # Record target_configdirs and the configure arguments for target and
6800 # build configuration in Makefile.
6801 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6802 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6804 # If we are building libgomp, bootstrap it.
6805 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6806 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6809 # Determine whether gdb needs tk/tcl or not.
6810 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6811 # and in that case we want gdb to be built without tk. Ugh!
6812 # In fact I believe gdb is the *only* package directly dependent on tk,
6813 # so we should be able to put the 'maybe's in unconditionally and
6814 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6815 # 100% sure that that's safe though.
6817 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6818 case "$enable_gdbtk" in
6820 GDB_TK="" ;;
6821 yes)
6822 GDB_TK="${gdb_tk}" ;;
6824 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6825 # distro. Eventually someone will fix this and move Insight, nee
6826 # gdbtk to a separate directory.
6827 if test -d ${srcdir}/gdb/gdbtk ; then
6828 GDB_TK="${gdb_tk}"
6829 else
6830 GDB_TK=""
6833 esac
6834 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6835 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6837 # Strip out unwanted targets.
6839 # While at that, we remove Makefiles if we were started for recursive
6840 # configuration, so that the top-level Makefile reconfigures them,
6841 # like we used to do when configure itself was recursive.
6843 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6844 # but now we're fixing up the Makefile ourselves with the additional
6845 # commands passed to AC_CONFIG_FILES. Use separate variables
6846 # extrasub-{build,host,target} not because there is any reason to split
6847 # the substitutions up that way, but only to remain below the limit of
6848 # 99 commands in a script, for HP-UX sed.
6849 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6851 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6852 yes:yes:*\ gold\ *:*,c++,*) ;;
6853 yes:yes:*\ gold\ *:*)
6854 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6856 esac
6858 # Adjust the toplevel makefile according to whether bootstrap was selected.
6859 case $enable_bootstrap in
6860 yes)
6861 bootstrap_suffix=bootstrap
6862 BUILD_CONFIG=bootstrap-debug
6865 bootstrap_suffix=no-bootstrap
6866 BUILD_CONFIG=
6868 esac
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6871 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6874 # Check whether --with-build-config was given.
6875 if test "${with_build_config+set}" = set; then :
6876 withval=$with_build_config; case $with_build_config in
6877 yes) with_build_config= ;;
6878 no) with_build_config= BUILD_CONFIG= ;;
6879 esac
6883 if test "x${with_build_config}" != x; then
6884 BUILD_CONFIG=$with_build_config
6885 else
6886 case $BUILD_CONFIG in
6887 bootstrap-debug)
6888 if echo "int f (void) { return 0; }" > conftest.c &&
6889 ${CC} -c conftest.c &&
6890 mv conftest.o conftest.o.g0 &&
6891 ${CC} -c -g conftest.c &&
6892 mv conftest.o conftest.o.g &&
6893 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6895 else
6896 BUILD_CONFIG=
6898 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6900 esac
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6903 $as_echo "$BUILD_CONFIG" >&6; }
6906 extrasub_build=
6907 for module in ${build_configdirs} ; do
6908 if test -z "${no_recursion}" \
6909 && test -f ${build_subdir}/${module}/Makefile; then
6910 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6911 rm -f ${build_subdir}/${module}/Makefile
6913 extrasub_build="$extrasub_build
6914 /^@if build-$module\$/d
6915 /^@endif build-$module\$/d
6916 /^@if build-$module-$bootstrap_suffix\$/d
6917 /^@endif build-$module-$bootstrap_suffix\$/d"
6918 done
6919 extrasub_host=
6920 for module in ${configdirs} ; do
6921 if test -z "${no_recursion}"; then
6922 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6923 if test -f ${file}; then
6924 echo 1>&2 "*** removing ${file} to force reconfigure"
6925 rm -f ${file}
6927 done
6929 extrasub_host="$extrasub_host
6930 /^@if $module\$/d
6931 /^@endif $module\$/d
6932 /^@if $module-$bootstrap_suffix\$/d
6933 /^@endif $module-$bootstrap_suffix\$/d"
6934 done
6935 extrasub_target=
6936 for module in ${target_configdirs} ; do
6937 if test -z "${no_recursion}" \
6938 && test -f ${target_subdir}/${module}/Makefile; then
6939 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6940 rm -f ${target_subdir}/${module}/Makefile
6943 # We only bootstrap target libraries listed in bootstrap_target_libs.
6944 case $bootstrap_target_libs in
6945 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6946 *) target_bootstrap_suffix=no-bootstrap ;;
6947 esac
6949 extrasub_target="$extrasub_target
6950 /^@if target-$module\$/d
6951 /^@endif target-$module\$/d
6952 /^@if target-$module-$target_bootstrap_suffix\$/d
6953 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6954 done
6956 # Do the final fixup along with target modules.
6957 extrasub_target="$extrasub_target
6958 /^@if /,/^@endif /d"
6960 # Create the serialization dependencies. This uses a temporary file.
6962 # Check whether --enable-serial-configure was given.
6963 if test "${enable_serial_configure+set}" = set; then :
6964 enableval=$enable_serial_configure;
6968 case ${enable_serial_configure} in
6969 yes)
6970 enable_serial_build_configure=yes
6971 enable_serial_host_configure=yes
6972 enable_serial_target_configure=yes
6974 esac
6976 # These force 'configure's to be done one at a time, to avoid problems
6977 # with contention over a shared config.cache.
6978 rm -f serdep.tmp
6979 echo '# serdep.tmp' > serdep.tmp
6980 olditem=
6981 test "x${enable_serial_build_configure}" = xyes &&
6982 for item in ${build_configdirs} ; do
6983 case ${olditem} in
6984 "") ;;
6985 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6986 esac
6987 olditem=${item}
6988 done
6989 olditem=
6990 test "x${enable_serial_host_configure}" = xyes &&
6991 for item in ${configdirs} ; do
6992 case ${olditem} in
6993 "") ;;
6994 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6995 esac
6996 olditem=${item}
6997 done
6998 olditem=
6999 test "x${enable_serial_target_configure}" = xyes &&
7000 for item in ${target_configdirs} ; do
7001 case ${olditem} in
7002 "") ;;
7003 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7004 esac
7005 olditem=${item}
7006 done
7007 serialization_dependencies=serdep.tmp
7010 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7011 # target, nonopt, and variable assignments. These are the ones we
7012 # might not want to pass down to subconfigures. The exception being
7013 # --cache-file=/dev/null, which is used to turn off the use of cache
7014 # files altogether, and which should be passed on to subconfigures.
7015 # Also strip program-prefix, program-suffix, and program-transform-name,
7016 # so that we can pass down a consistent program-transform-name.
7017 baseargs=
7018 tbaseargs=
7019 keep_next=no
7020 skip_next=no
7021 eval "set -- $ac_configure_args"
7022 for ac_arg
7024 if test X"$skip_next" = X"yes"; then
7025 skip_next=no
7026 continue
7028 if test X"$keep_next" = X"yes"; then
7029 case $ac_arg in
7030 *\'*)
7031 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7032 esac
7033 baseargs="$baseargs '$ac_arg'"
7034 tbaseargs="$tbaseargs '$ac_arg'"
7035 keep_next=no
7036 continue
7039 # Handle separated arguments. Based on the logic generated by
7040 # autoconf 2.59.
7041 case $ac_arg in
7042 *=* | --config-cache | -C | -disable-* | --disable-* \
7043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7045 | -with-* | --with-* | -without-* | --without-* | --x)
7046 separate_arg=no
7049 separate_arg=yes
7052 separate_arg=no
7054 esac
7056 skip_targ=no
7057 case $ac_arg in
7059 --with-* | --without-*)
7060 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7062 case $libopt in
7063 *[-_]include)
7064 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7066 *[-_]lib)
7067 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7070 lib=$libopt
7072 esac
7075 case $lib in
7076 mpc | mpfr | gmp | cloog)
7077 # If we're processing --with-$lib, --with-$lib-include or
7078 # --with-$lib-lib, for one of the libs above, and target is
7079 # different from host, don't pass the current argument to any
7080 # target library's configure.
7081 if test x$is_cross_compiler = xyes; then
7082 skip_targ=yes
7085 esac
7087 esac
7089 case "$ac_arg" in
7090 --cache-file=/dev/null | \
7091 -cache-file=/dev/null )
7092 # Handled here to avoid the test to skip args below.
7093 baseargs="$baseargs '$ac_arg'"
7094 tbaseargs="$tbaseargs '$ac_arg'"
7095 # Assert: $separate_arg should always be no.
7096 keep_next=$separate_arg
7098 --no*)
7099 continue
7101 --c* | \
7102 --sr* | \
7103 --ho* | \
7104 --bu* | \
7105 --t* | \
7106 --program-* | \
7107 -cache_file* | \
7108 -srcdir* | \
7109 -host* | \
7110 -build* | \
7111 -target* | \
7112 -program-prefix* | \
7113 -program-suffix* | \
7114 -program-transform-name* )
7115 skip_next=$separate_arg
7116 continue
7119 # An option. Add it.
7120 case $ac_arg in
7121 *\'*)
7122 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7123 esac
7124 baseargs="$baseargs '$ac_arg'"
7125 if test X"$skip_targ" = Xno; then
7126 tbaseargs="$tbaseargs '$ac_arg'"
7128 keep_next=$separate_arg
7131 # Either a variable assignment, or a nonopt (triplet). Don't
7132 # pass it down; let the Makefile handle this.
7133 continue
7135 esac
7136 done
7137 # Remove the initial space we just introduced and, as these will be
7138 # expanded by make, quote '$'.
7139 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7141 # Add in --program-transform-name, after --program-prefix and
7142 # --program-suffix have been applied to it. Autoconf has already
7143 # doubled dollar signs and backslashes in program_transform_name; we want
7144 # the backslashes un-doubled, and then the entire thing wrapped in single
7145 # quotes, because this will be expanded first by make and then by the shell.
7146 # Also, because we want to override the logic in subdir configure scripts to
7147 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7148 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7149 ${program_transform_name}
7150 EOF_SED
7151 gcc_transform_name=`cat conftestsed.out`
7152 rm -f conftestsed.out
7153 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7154 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7155 if test "$silent" = yes; then
7156 baseargs="$baseargs --silent"
7157 tbaseargs="$tbaseargs --silent"
7159 baseargs="$baseargs --disable-option-checking"
7160 tbaseargs="$tbaseargs --disable-option-checking"
7162 # Record and document user additions to sub configure arguments.
7167 # For the build-side libraries, we just need to pretend we're native,
7168 # and not use the same cache file. Multilibs are neither needed nor
7169 # desired.
7170 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7172 # For host modules, accept cache file option, or specification as blank.
7173 case "${cache_file}" in
7174 "") # empty
7175 cache_file_option="" ;;
7176 /* | [A-Za-z]:[\\/]* ) # absolute path
7177 cache_file_option="--cache-file=${cache_file}" ;;
7178 *) # relative path
7179 cache_file_option="--cache-file=../${cache_file}" ;;
7180 esac
7182 # Host dirs don't like to share a cache file either, horribly enough.
7183 # This seems to be due to autoconf 2.5x stupidity.
7184 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7186 target_configargs="$target_configargs ${tbaseargs}"
7188 # Passing a --with-cross-host argument lets the target libraries know
7189 # whether they are being built with a cross-compiler or being built
7190 # native. However, it would be better to use other mechanisms to make the
7191 # sorts of decisions they want to make on this basis. Please consider
7192 # this option to be deprecated. FIXME.
7193 if test x${is_cross_compiler} = xyes ; then
7194 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7197 # Default to --enable-multilib.
7198 if test x${enable_multilib} = x ; then
7199 target_configargs="--enable-multilib ${target_configargs}"
7202 # Pass --with-newlib if appropriate. Note that target_configdirs has
7203 # changed from the earlier setting of with_newlib.
7204 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7205 target_configargs="--with-newlib ${target_configargs}"
7208 # Different target subdirs use different values of certain variables
7209 # (notably CXX). Worse, multilibs use *lots* of different values.
7210 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7211 # it doesn't automatically accept command-line overrides of them.
7212 # This means it's not safe for target subdirs to share a cache file,
7213 # which is disgusting, but there you have it. Hopefully this can be
7214 # fixed in future. It's still worthwhile to use a cache file for each
7215 # directory. I think.
7217 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7218 # We need to pass --target, as newer autoconf's requires consistency
7219 # for target_alias and gcc doesn't manage it consistently.
7220 target_configargs="--cache-file=./config.cache ${target_configargs}"
7222 FLAGS_FOR_TARGET=
7223 case " $target_configdirs " in
7224 *" newlib "*)
7225 case " $target_configargs " in
7226 *" --with-newlib "*)
7227 case "$target" in
7228 *-cygwin*)
7229 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'
7231 esac
7233 # If we're not building GCC, don't discard standard headers.
7234 if test -d ${srcdir}/gcc; then
7235 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7237 if test "${build}" != "${host}"; then
7238 # On Canadian crosses, CC_FOR_TARGET will have already been set
7239 # by `configure', so we won't have an opportunity to add -Bgcc/
7240 # to it. This is right: we don't want to search that directory
7241 # for binaries, but we want the header files in there, so add
7242 # them explicitly.
7243 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7245 # Someone might think of using the pre-installed headers on
7246 # Canadian crosses, in case the installed compiler is not fully
7247 # compatible with the compiler being built. In this case, it
7248 # would be better to flag an error than risking having
7249 # incompatible object files being constructed. We can't
7250 # guarantee that an error will be flagged, but let's hope the
7251 # compiler will do it, when presented with incompatible header
7252 # files.
7256 case "${target}-${is_cross_compiler}" in
7257 i[3456789]86-*-linux*-no)
7258 # Here host == target, so we don't need to build gcc,
7259 # so we don't want to discard standard headers.
7260 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7263 # If we're building newlib, use its generic headers last, but search
7264 # for any libc-related directories first (so make it the last -B
7265 # switch).
7266 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7268 # If we're building libgloss, find the startup file, simulator library
7269 # and linker script.
7270 case " $target_configdirs " in
7271 *" libgloss "*)
7272 # Look for startup file, simulator library and maybe linker script.
7273 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7274 # Look for libnosys.a in case the target needs it.
7275 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7276 # Most targets have the linker script in the source directory.
7277 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7279 esac
7281 esac
7283 esac
7285 esac
7287 case "$target" in
7288 x86_64-*mingw* | *-w64-mingw*)
7289 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7290 # however, use a symlink named 'mingw' in ${prefix} .
7291 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7293 *-mingw*)
7294 # MinGW can't be handled as Cygwin above since it does not use newlib.
7295 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'
7297 esac
7299 # Allow the user to override the flags for
7300 # our build compiler if desired.
7301 if test x"${build}" = x"${host}" ; then
7302 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7303 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7304 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7307 # On Canadian crosses, we'll be searching the right directories for
7308 # the previously-installed cross compiler, so don't bother to add
7309 # flags for directories within the install tree of the compiler
7310 # being built; programs in there won't even run.
7311 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7312 # Search for pre-installed headers if nothing else fits.
7313 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7316 if test "x${use_gnu_ld}" = x &&
7317 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7318 # Arrange for us to find uninstalled linker scripts.
7319 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7322 # Search for other target-specific linker scripts and such.
7323 case "${target}" in
7324 mep*)
7325 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7327 esac
7329 # UPC linker script check
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7331 $as_echo_n "checking for UPC link script support... " >&6; }
7332 # Check whether --enable-upc-link-script was given.
7333 if test "${enable_upc_link_script+set}" = set; then :
7334 enableval=$enable_upc_link_script;
7335 case $enableval in
7336 yes | no) ;;
7338 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7340 esac
7342 else
7344 if test x${use_gnu_ld} != xno ; then
7345 case "$target" in
7346 # disable linker script for Apple Mac OS X
7347 *-*-darwin*)
7348 enable_upc_link_script=no
7351 enable_upc_link_script=yes
7353 esac
7354 else
7355 enable_upc_link_script=no
7357 if test "$enable_upc_link_script" = yes; then
7358 target_configargs="${target_configargs} --enable-upc-link-script"
7359 host_configargs="${host_configargs} --enable-upc-link-script"
7364 if test "$enable_upc_link_script" = yes; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7366 $as_echo "yes" >&6; };
7367 else
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; };
7373 # Makefile fragments.
7374 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7376 eval fragval=\$$frag
7377 if test $fragval != /dev/null; then
7378 eval $frag=${srcdir}/$fragval
7380 done
7386 # Miscellanea: directories, flags, etc.
7395 # Build module lists & subconfigure args.
7399 # Host module lists & subconfigure args.
7404 # Target module lists & subconfigure args.
7408 # Build tools.
7427 # Generate default definitions for YACC, M4, LEX and other programs that run
7428 # on the build machine. These are used if the Makefile can't locate these
7429 # programs in objdir.
7430 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7432 for ac_prog in 'bison -y' byacc yacc
7434 # Extract the first word of "$ac_prog", so it can be a program name with args.
7435 set dummy $ac_prog; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if test "${ac_cv_prog_YACC+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$YACC"; then
7442 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_prog_YACC="$ac_prog"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7455 done
7456 done
7457 IFS=$as_save_IFS
7461 YACC=$ac_cv_prog_YACC
7462 if test -n "$YACC"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7464 $as_echo "$YACC" >&6; }
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7471 test -n "$YACC" && break
7472 done
7473 test -n "$YACC" || YACC="$MISSING bison -y"
7475 case " $build_configdirs " in
7476 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7477 esac
7479 for ac_prog in bison
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if test "${ac_cv_prog_BISON+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 if test -n "$BISON"; then
7489 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_BISON="$ac_prog"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7502 done
7503 done
7504 IFS=$as_save_IFS
7508 BISON=$ac_cv_prog_BISON
7509 if test -n "$BISON"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7511 $as_echo "$BISON" >&6; }
7512 else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7518 test -n "$BISON" && break
7519 done
7520 test -n "$BISON" || BISON="$MISSING bison"
7522 case " $build_configdirs " in
7523 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7524 esac
7526 for ac_prog in gm4 gnum4 m4
7528 # Extract the first word of "$ac_prog", so it can be a program name with args.
7529 set dummy $ac_prog; ac_word=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if test "${ac_cv_prog_M4+set}" = set; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 if test -n "$M4"; then
7536 ac_cv_prog_M4="$M4" # Let the user override the test.
7537 else
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 ac_cv_prog_M4="$ac_prog"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7549 done
7550 done
7551 IFS=$as_save_IFS
7555 M4=$ac_cv_prog_M4
7556 if test -n "$M4"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7558 $as_echo "$M4" >&6; }
7559 else
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7565 test -n "$M4" && break
7566 done
7567 test -n "$M4" || M4="$MISSING m4"
7569 case " $build_configdirs " in
7570 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7571 esac
7573 for ac_prog in flex lex
7575 # Extract the first word of "$ac_prog", so it can be a program name with args.
7576 set dummy $ac_prog; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if test "${ac_cv_prog_LEX+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 if test -n "$LEX"; then
7583 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_prog_LEX="$ac_prog"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7596 done
7597 done
7598 IFS=$as_save_IFS
7602 LEX=$ac_cv_prog_LEX
7603 if test -n "$LEX"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7605 $as_echo "$LEX" >&6; }
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7612 test -n "$LEX" && break
7613 done
7614 test -n "$LEX" || LEX="$MISSING flex"
7616 case " $build_configdirs " in
7617 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7618 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7619 esac
7621 for ac_prog in flex
7623 # Extract the first word of "$ac_prog", so it can be a program name with args.
7624 set dummy $ac_prog; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if test "${ac_cv_prog_FLEX+set}" = set; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 if test -n "$FLEX"; then
7631 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640 ac_cv_prog_FLEX="$ac_prog"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 break 2
7644 done
7645 done
7646 IFS=$as_save_IFS
7650 FLEX=$ac_cv_prog_FLEX
7651 if test -n "$FLEX"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7653 $as_echo "$FLEX" >&6; }
7654 else
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7660 test -n "$FLEX" && break
7661 done
7662 test -n "$FLEX" || FLEX="$MISSING flex"
7664 case " $build_configdirs " in
7665 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7666 esac
7668 for ac_prog in makeinfo
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 if test -n "$MAKEINFO"; then
7678 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_prog_MAKEINFO="$ac_prog"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7691 done
7692 done
7693 IFS=$as_save_IFS
7697 MAKEINFO=$ac_cv_prog_MAKEINFO
7698 if test -n "$MAKEINFO"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7700 $as_echo "$MAKEINFO" >&6; }
7701 else
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7707 test -n "$MAKEINFO" && break
7708 done
7709 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7711 case " $build_configdirs " in
7712 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7715 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7716 # higher, else we use the "missing" dummy.
7717 if ${MAKEINFO} --version \
7718 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7720 else
7721 MAKEINFO="$MISSING makeinfo"
7725 esac
7727 # FIXME: expect and dejagnu may become build tools?
7729 for ac_prog in expect
7731 # Extract the first word of "$ac_prog", so it can be a program name with args.
7732 set dummy $ac_prog; ac_word=$2
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734 $as_echo_n "checking for $ac_word... " >&6; }
7735 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 if test -n "$EXPECT"; then
7739 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7748 ac_cv_prog_EXPECT="$ac_prog"
7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7752 done
7753 done
7754 IFS=$as_save_IFS
7758 EXPECT=$ac_cv_prog_EXPECT
7759 if test -n "$EXPECT"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7761 $as_echo "$EXPECT" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7768 test -n "$EXPECT" && break
7769 done
7770 test -n "$EXPECT" || EXPECT="expect"
7772 case " $configdirs " in
7773 *" expect "*)
7774 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7776 esac
7778 for ac_prog in runtest
7780 # Extract the first word of "$ac_prog", so it can be a program name with args.
7781 set dummy $ac_prog; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 if test -n "$RUNTEST"; then
7788 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797 ac_cv_prog_RUNTEST="$ac_prog"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7801 done
7802 done
7803 IFS=$as_save_IFS
7807 RUNTEST=$ac_cv_prog_RUNTEST
7808 if test -n "$RUNTEST"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7810 $as_echo "$RUNTEST" >&6; }
7811 else
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7817 test -n "$RUNTEST" && break
7818 done
7819 test -n "$RUNTEST" || RUNTEST="runtest"
7821 case " $configdirs " in
7822 *" dejagnu "*)
7823 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7825 esac
7828 # Host tools.
7829 ncn_tool_prefix=
7830 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7831 ncn_target_tool_prefix=
7832 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7836 if test -n "$AR"; then
7837 ac_cv_prog_AR=$AR
7838 elif test -n "$ac_cv_prog_AR"; then
7839 AR=$ac_cv_prog_AR
7842 if test -n "$ac_cv_prog_AR"; then
7843 for ncn_progname in ar; do
7844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7845 set dummy ${ncn_progname}; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if test "${ac_cv_prog_AR+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 if test -n "$AR"; then
7852 ac_cv_prog_AR="$AR" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_prog_AR="${ncn_progname}"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7865 done
7866 done
7867 IFS=$as_save_IFS
7871 AR=$ac_cv_prog_AR
7872 if test -n "$AR"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7874 $as_echo "$AR" >&6; }
7875 else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7881 done
7884 for ncn_progname in ar; do
7885 if test -n "$ncn_tool_prefix"; then
7886 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7887 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_AR+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 if test -n "$AR"; then
7894 ac_cv_prog_AR="$AR" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7907 done
7908 done
7909 IFS=$as_save_IFS
7913 AR=$ac_cv_prog_AR
7914 if test -n "$AR"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7916 $as_echo "$AR" >&6; }
7917 else
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7924 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7926 set dummy ${ncn_progname}; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if test "${ac_cv_prog_AR+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 if test -n "$AR"; then
7933 ac_cv_prog_AR="$AR" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_prog_AR="${ncn_progname}"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7946 done
7947 done
7948 IFS=$as_save_IFS
7952 AR=$ac_cv_prog_AR
7953 if test -n "$AR"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7955 $as_echo "$AR" >&6; }
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7963 test -n "$ac_cv_prog_AR" && break
7964 done
7966 if test -z "$ac_cv_prog_AR" ; then
7967 set dummy ar
7968 if test $build = $host ; then
7969 AR="$2"
7970 else
7971 AR="${ncn_tool_prefix}$2"
7977 if test -n "$AS"; then
7978 ac_cv_prog_AS=$AS
7979 elif test -n "$ac_cv_prog_AS"; then
7980 AS=$ac_cv_prog_AS
7983 if test -n "$ac_cv_prog_AS"; then
7984 for ncn_progname in as; do
7985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7986 set dummy ${ncn_progname}; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if test "${ac_cv_prog_AS+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 if test -n "$AS"; then
7993 ac_cv_prog_AS="$AS" # Let the user override the test.
7994 else
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8002 ac_cv_prog_AS="${ncn_progname}"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 break 2
8006 done
8007 done
8008 IFS=$as_save_IFS
8012 AS=$ac_cv_prog_AS
8013 if test -n "$AS"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8015 $as_echo "$AS" >&6; }
8016 else
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8022 done
8025 for ncn_progname in as; do
8026 if test -n "$ncn_tool_prefix"; then
8027 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8028 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if test "${ac_cv_prog_AS+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 if test -n "$AS"; then
8035 ac_cv_prog_AS="$AS" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 break 2
8048 done
8049 done
8050 IFS=$as_save_IFS
8054 AS=$ac_cv_prog_AS
8055 if test -n "$AS"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8057 $as_echo "$AS" >&6; }
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8065 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8067 set dummy ${ncn_progname}; ac_word=$2
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 $as_echo_n "checking for $ac_word... " >&6; }
8070 if test "${ac_cv_prog_AS+set}" = set; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 if test -n "$AS"; then
8074 ac_cv_prog_AS="$AS" # Let the user override the test.
8075 else
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8083 ac_cv_prog_AS="${ncn_progname}"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8087 done
8088 done
8089 IFS=$as_save_IFS
8093 AS=$ac_cv_prog_AS
8094 if test -n "$AS"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8096 $as_echo "$AS" >&6; }
8097 else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8104 test -n "$ac_cv_prog_AS" && break
8105 done
8107 if test -z "$ac_cv_prog_AS" ; then
8108 set dummy as
8109 if test $build = $host ; then
8110 AS="$2"
8111 else
8112 AS="${ncn_tool_prefix}$2"
8118 if test -n "$DLLTOOL"; then
8119 ac_cv_prog_DLLTOOL=$DLLTOOL
8120 elif test -n "$ac_cv_prog_DLLTOOL"; then
8121 DLLTOOL=$ac_cv_prog_DLLTOOL
8124 if test -n "$ac_cv_prog_DLLTOOL"; then
8125 for ncn_progname in dlltool; do
8126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8127 set dummy ${ncn_progname}; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 if test -n "$DLLTOOL"; then
8134 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8135 else
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8143 ac_cv_prog_DLLTOOL="${ncn_progname}"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145 break 2
8147 done
8148 done
8149 IFS=$as_save_IFS
8153 DLLTOOL=$ac_cv_prog_DLLTOOL
8154 if test -n "$DLLTOOL"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8156 $as_echo "$DLLTOOL" >&6; }
8157 else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8163 done
8166 for ncn_progname in dlltool; do
8167 if test -n "$ncn_tool_prefix"; then
8168 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8169 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171 $as_echo_n "checking for $ac_word... " >&6; }
8172 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 if test -n "$DLLTOOL"; then
8176 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8177 else
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 for as_dir in $PATH
8181 IFS=$as_save_IFS
8182 test -z "$as_dir" && as_dir=.
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8185 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 break 2
8189 done
8190 done
8191 IFS=$as_save_IFS
8195 DLLTOOL=$ac_cv_prog_DLLTOOL
8196 if test -n "$DLLTOOL"; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8198 $as_echo "$DLLTOOL" >&6; }
8199 else
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8206 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8208 set dummy ${ncn_progname}; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 if test -n "$DLLTOOL"; then
8215 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_prog_DLLTOOL="${ncn_progname}"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8228 done
8229 done
8230 IFS=$as_save_IFS
8234 DLLTOOL=$ac_cv_prog_DLLTOOL
8235 if test -n "$DLLTOOL"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8237 $as_echo "$DLLTOOL" >&6; }
8238 else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8245 test -n "$ac_cv_prog_DLLTOOL" && break
8246 done
8248 if test -z "$ac_cv_prog_DLLTOOL" ; then
8249 set dummy dlltool
8250 if test $build = $host ; then
8251 DLLTOOL="$2"
8252 else
8253 DLLTOOL="${ncn_tool_prefix}$2"
8259 if test -n "$LD"; then
8260 ac_cv_prog_LD=$LD
8261 elif test -n "$ac_cv_prog_LD"; then
8262 LD=$ac_cv_prog_LD
8265 if test -n "$ac_cv_prog_LD"; then
8266 for ncn_progname in ld; do
8267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8268 set dummy ${ncn_progname}; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if test "${ac_cv_prog_LD+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 if test -n "$LD"; then
8275 ac_cv_prog_LD="$LD" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_prog_LD="${ncn_progname}"
8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8288 done
8289 done
8290 IFS=$as_save_IFS
8294 LD=$ac_cv_prog_LD
8295 if test -n "$LD"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8297 $as_echo "$LD" >&6; }
8298 else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8304 done
8307 for ncn_progname in ld; do
8308 if test -n "$ncn_tool_prefix"; then
8309 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8310 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_prog_LD+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 if test -n "$LD"; then
8317 ac_cv_prog_LD="$LD" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8330 done
8331 done
8332 IFS=$as_save_IFS
8336 LD=$ac_cv_prog_LD
8337 if test -n "$LD"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8339 $as_echo "$LD" >&6; }
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8347 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8349 set dummy ${ncn_progname}; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if test "${ac_cv_prog_LD+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 if test -n "$LD"; then
8356 ac_cv_prog_LD="$LD" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8365 ac_cv_prog_LD="${ncn_progname}"
8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8369 done
8370 done
8371 IFS=$as_save_IFS
8375 LD=$ac_cv_prog_LD
8376 if test -n "$LD"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8378 $as_echo "$LD" >&6; }
8379 else
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8386 test -n "$ac_cv_prog_LD" && break
8387 done
8389 if test -z "$ac_cv_prog_LD" ; then
8390 set dummy ld
8391 if test $build = $host ; then
8392 LD="$2"
8393 else
8394 LD="${ncn_tool_prefix}$2"
8400 if test -n "$LIPO"; then
8401 ac_cv_prog_LIPO=$LIPO
8402 elif test -n "$ac_cv_prog_LIPO"; then
8403 LIPO=$ac_cv_prog_LIPO
8406 if test -n "$ac_cv_prog_LIPO"; then
8407 for ncn_progname in lipo; do
8408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8409 set dummy ${ncn_progname}; ac_word=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if test "${ac_cv_prog_LIPO+set}" = set; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 if test -n "$LIPO"; then
8416 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8417 else
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8425 ac_cv_prog_LIPO="${ncn_progname}"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 break 2
8429 done
8430 done
8431 IFS=$as_save_IFS
8435 LIPO=$ac_cv_prog_LIPO
8436 if test -n "$LIPO"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8438 $as_echo "$LIPO" >&6; }
8439 else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8445 done
8448 for ncn_progname in lipo; do
8449 if test -n "$ncn_tool_prefix"; then
8450 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8451 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if test "${ac_cv_prog_LIPO+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 if test -n "$LIPO"; then
8458 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8459 else
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8467 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 break 2
8471 done
8472 done
8473 IFS=$as_save_IFS
8477 LIPO=$ac_cv_prog_LIPO
8478 if test -n "$LIPO"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8480 $as_echo "$LIPO" >&6; }
8481 else
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8488 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8490 set dummy ${ncn_progname}; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if test "${ac_cv_prog_LIPO+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 if test -n "$LIPO"; then
8497 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8502 IFS=$as_save_IFS
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8506 ac_cv_prog_LIPO="${ncn_progname}"
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 break 2
8510 done
8511 done
8512 IFS=$as_save_IFS
8516 LIPO=$ac_cv_prog_LIPO
8517 if test -n "$LIPO"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8519 $as_echo "$LIPO" >&6; }
8520 else
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8527 test -n "$ac_cv_prog_LIPO" && break
8528 done
8530 if test -z "$ac_cv_prog_LIPO" ; then
8531 set dummy lipo
8532 if test $build = $host ; then
8533 LIPO="$2"
8534 else
8535 LIPO="${ncn_tool_prefix}$2"
8541 if test -n "$NM"; then
8542 ac_cv_prog_NM=$NM
8543 elif test -n "$ac_cv_prog_NM"; then
8544 NM=$ac_cv_prog_NM
8547 if test -n "$ac_cv_prog_NM"; then
8548 for ncn_progname in nm; do
8549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8550 set dummy ${ncn_progname}; ac_word=$2
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552 $as_echo_n "checking for $ac_word... " >&6; }
8553 if test "${ac_cv_prog_NM+set}" = set; then :
8554 $as_echo_n "(cached) " >&6
8555 else
8556 if test -n "$NM"; then
8557 ac_cv_prog_NM="$NM" # Let the user override the test.
8558 else
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 for as_dir in $PATH
8562 IFS=$as_save_IFS
8563 test -z "$as_dir" && as_dir=.
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8566 ac_cv_prog_NM="${ncn_progname}"
8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568 break 2
8570 done
8571 done
8572 IFS=$as_save_IFS
8576 NM=$ac_cv_prog_NM
8577 if test -n "$NM"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8579 $as_echo "$NM" >&6; }
8580 else
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8586 done
8589 for ncn_progname in nm; do
8590 if test -n "$ncn_tool_prefix"; then
8591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8592 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if test "${ac_cv_prog_NM+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 if test -n "$NM"; then
8599 ac_cv_prog_NM="$NM" # Let the user override the test.
8600 else
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8608 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8612 done
8613 done
8614 IFS=$as_save_IFS
8618 NM=$ac_cv_prog_NM
8619 if test -n "$NM"; then
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8621 $as_echo "$NM" >&6; }
8622 else
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8629 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8631 set dummy ${ncn_progname}; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if test "${ac_cv_prog_NM+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 if test -n "$NM"; then
8638 ac_cv_prog_NM="$NM" # Let the user override the test.
8639 else
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 for as_dir in $PATH
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8647 ac_cv_prog_NM="${ncn_progname}"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 break 2
8651 done
8652 done
8653 IFS=$as_save_IFS
8657 NM=$ac_cv_prog_NM
8658 if test -n "$NM"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8660 $as_echo "$NM" >&6; }
8661 else
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8668 test -n "$ac_cv_prog_NM" && break
8669 done
8671 if test -z "$ac_cv_prog_NM" ; then
8672 set dummy nm
8673 if test $build = $host ; then
8674 NM="$2"
8675 else
8676 NM="${ncn_tool_prefix}$2"
8682 if test -n "$RANLIB"; then
8683 ac_cv_prog_RANLIB=$RANLIB
8684 elif test -n "$ac_cv_prog_RANLIB"; then
8685 RANLIB=$ac_cv_prog_RANLIB
8688 if test -n "$ac_cv_prog_RANLIB"; then
8689 for ncn_progname in ranlib; do
8690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8691 set dummy ${ncn_progname}; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 if test -n "$RANLIB"; then
8698 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8699 else
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_prog_RANLIB="${ncn_progname}"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8711 done
8712 done
8713 IFS=$as_save_IFS
8717 RANLIB=$ac_cv_prog_RANLIB
8718 if test -n "$RANLIB"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8720 $as_echo "$RANLIB" >&6; }
8721 else
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8727 done
8730 for ncn_progname in ranlib; do
8731 if test -n "$ncn_tool_prefix"; then
8732 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8733 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 if test -n "$RANLIB"; then
8740 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8741 else
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8749 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 break 2
8753 done
8754 done
8755 IFS=$as_save_IFS
8759 RANLIB=$ac_cv_prog_RANLIB
8760 if test -n "$RANLIB"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8762 $as_echo "$RANLIB" >&6; }
8763 else
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8770 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8772 set dummy ${ncn_progname}; ac_word=$2
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8774 $as_echo_n "checking for $ac_word... " >&6; }
8775 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8776 $as_echo_n "(cached) " >&6
8777 else
8778 if test -n "$RANLIB"; then
8779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8780 else
8781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 for as_dir in $PATH
8784 IFS=$as_save_IFS
8785 test -z "$as_dir" && as_dir=.
8786 for ac_exec_ext in '' $ac_executable_extensions; do
8787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8788 ac_cv_prog_RANLIB="${ncn_progname}"
8789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8790 break 2
8792 done
8793 done
8794 IFS=$as_save_IFS
8798 RANLIB=$ac_cv_prog_RANLIB
8799 if test -n "$RANLIB"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8801 $as_echo "$RANLIB" >&6; }
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8809 test -n "$ac_cv_prog_RANLIB" && break
8810 done
8812 if test -z "$ac_cv_prog_RANLIB" ; then
8813 RANLIB="true"
8818 if test -n "$STRIP"; then
8819 ac_cv_prog_STRIP=$STRIP
8820 elif test -n "$ac_cv_prog_STRIP"; then
8821 STRIP=$ac_cv_prog_STRIP
8824 if test -n "$ac_cv_prog_STRIP"; then
8825 for ncn_progname in strip; do
8826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8827 set dummy ${ncn_progname}; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if test "${ac_cv_prog_STRIP+set}" = set; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 if test -n "$STRIP"; then
8834 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8835 else
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_prog_STRIP="${ncn_progname}"
8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 break 2
8847 done
8848 done
8849 IFS=$as_save_IFS
8853 STRIP=$ac_cv_prog_STRIP
8854 if test -n "$STRIP"; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8856 $as_echo "$STRIP" >&6; }
8857 else
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8863 done
8866 for ncn_progname in strip; do
8867 if test -n "$ncn_tool_prefix"; then
8868 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8869 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 $as_echo_n "checking for $ac_word... " >&6; }
8872 if test "${ac_cv_prog_STRIP+set}" = set; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 if test -n "$STRIP"; then
8876 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8877 else
8878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879 for as_dir in $PATH
8881 IFS=$as_save_IFS
8882 test -z "$as_dir" && as_dir=.
8883 for ac_exec_ext in '' $ac_executable_extensions; do
8884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8885 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 break 2
8889 done
8890 done
8891 IFS=$as_save_IFS
8895 STRIP=$ac_cv_prog_STRIP
8896 if test -n "$STRIP"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8898 $as_echo "$STRIP" >&6; }
8899 else
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8906 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8908 set dummy ${ncn_progname}; ac_word=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if test "${ac_cv_prog_STRIP+set}" = set; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 if test -n "$STRIP"; then
8915 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8916 else
8917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918 for as_dir in $PATH
8920 IFS=$as_save_IFS
8921 test -z "$as_dir" && as_dir=.
8922 for ac_exec_ext in '' $ac_executable_extensions; do
8923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8924 ac_cv_prog_STRIP="${ncn_progname}"
8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926 break 2
8928 done
8929 done
8930 IFS=$as_save_IFS
8934 STRIP=$ac_cv_prog_STRIP
8935 if test -n "$STRIP"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8937 $as_echo "$STRIP" >&6; }
8938 else
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8945 test -n "$ac_cv_prog_STRIP" && break
8946 done
8948 if test -z "$ac_cv_prog_STRIP" ; then
8949 STRIP="true"
8954 if test -n "$WINDRES"; then
8955 ac_cv_prog_WINDRES=$WINDRES
8956 elif test -n "$ac_cv_prog_WINDRES"; then
8957 WINDRES=$ac_cv_prog_WINDRES
8960 if test -n "$ac_cv_prog_WINDRES"; then
8961 for ncn_progname in windres; do
8962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8963 set dummy ${ncn_progname}; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 if test -n "$WINDRES"; then
8970 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8971 else
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8979 ac_cv_prog_WINDRES="${ncn_progname}"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 break 2
8983 done
8984 done
8985 IFS=$as_save_IFS
8989 WINDRES=$ac_cv_prog_WINDRES
8990 if test -n "$WINDRES"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8992 $as_echo "$WINDRES" >&6; }
8993 else
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8999 done
9002 for ncn_progname in windres; do
9003 if test -n "$ncn_tool_prefix"; then
9004 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9005 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 $as_echo_n "checking for $ac_word... " >&6; }
9008 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 if test -n "$WINDRES"; then
9012 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9013 else
9014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015 for as_dir in $PATH
9017 IFS=$as_save_IFS
9018 test -z "$as_dir" && as_dir=.
9019 for ac_exec_ext in '' $ac_executable_extensions; do
9020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9021 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 break 2
9025 done
9026 done
9027 IFS=$as_save_IFS
9031 WINDRES=$ac_cv_prog_WINDRES
9032 if test -n "$WINDRES"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9034 $as_echo "$WINDRES" >&6; }
9035 else
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9042 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9044 set dummy ${ncn_progname}; ac_word=$2
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046 $as_echo_n "checking for $ac_word... " >&6; }
9047 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 if test -n "$WINDRES"; then
9051 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9052 else
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060 ac_cv_prog_WINDRES="${ncn_progname}"
9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9064 done
9065 done
9066 IFS=$as_save_IFS
9070 WINDRES=$ac_cv_prog_WINDRES
9071 if test -n "$WINDRES"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9073 $as_echo "$WINDRES" >&6; }
9074 else
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9081 test -n "$ac_cv_prog_WINDRES" && break
9082 done
9084 if test -z "$ac_cv_prog_WINDRES" ; then
9085 set dummy windres
9086 if test $build = $host ; then
9087 WINDRES="$2"
9088 else
9089 WINDRES="${ncn_tool_prefix}$2"
9095 if test -n "$WINDMC"; then
9096 ac_cv_prog_WINDMC=$WINDMC
9097 elif test -n "$ac_cv_prog_WINDMC"; then
9098 WINDMC=$ac_cv_prog_WINDMC
9101 if test -n "$ac_cv_prog_WINDMC"; then
9102 for ncn_progname in windmc; do
9103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9104 set dummy ${ncn_progname}; ac_word=$2
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 $as_echo_n "checking for $ac_word... " >&6; }
9107 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 if test -n "$WINDMC"; then
9111 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9112 else
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $PATH
9116 IFS=$as_save_IFS
9117 test -z "$as_dir" && as_dir=.
9118 for ac_exec_ext in '' $ac_executable_extensions; do
9119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9120 ac_cv_prog_WINDMC="${ncn_progname}"
9121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122 break 2
9124 done
9125 done
9126 IFS=$as_save_IFS
9130 WINDMC=$ac_cv_prog_WINDMC
9131 if test -n "$WINDMC"; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9133 $as_echo "$WINDMC" >&6; }
9134 else
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136 $as_echo "no" >&6; }
9140 done
9143 for ncn_progname in windmc; do
9144 if test -n "$ncn_tool_prefix"; then
9145 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9146 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 if test -n "$WINDMC"; then
9153 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9154 else
9155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156 for as_dir in $PATH
9158 IFS=$as_save_IFS
9159 test -z "$as_dir" && as_dir=.
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9162 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 break 2
9166 done
9167 done
9168 IFS=$as_save_IFS
9172 WINDMC=$ac_cv_prog_WINDMC
9173 if test -n "$WINDMC"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9175 $as_echo "$WINDMC" >&6; }
9176 else
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 $as_echo "no" >&6; }
9183 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9185 set dummy ${ncn_progname}; ac_word=$2
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187 $as_echo_n "checking for $ac_word... " >&6; }
9188 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 if test -n "$WINDMC"; then
9192 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9193 else
9194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195 for as_dir in $PATH
9197 IFS=$as_save_IFS
9198 test -z "$as_dir" && as_dir=.
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9201 ac_cv_prog_WINDMC="${ncn_progname}"
9202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9203 break 2
9205 done
9206 done
9207 IFS=$as_save_IFS
9211 WINDMC=$ac_cv_prog_WINDMC
9212 if test -n "$WINDMC"; then
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9214 $as_echo "$WINDMC" >&6; }
9215 else
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217 $as_echo "no" >&6; }
9222 test -n "$ac_cv_prog_WINDMC" && break
9223 done
9225 if test -z "$ac_cv_prog_WINDMC" ; then
9226 set dummy windmc
9227 if test $build = $host ; then
9228 WINDMC="$2"
9229 else
9230 WINDMC="${ncn_tool_prefix}$2"
9236 if test -n "$OBJCOPY"; then
9237 ac_cv_prog_OBJCOPY=$OBJCOPY
9238 elif test -n "$ac_cv_prog_OBJCOPY"; then
9239 OBJCOPY=$ac_cv_prog_OBJCOPY
9242 if test -n "$ac_cv_prog_OBJCOPY"; then
9243 for ncn_progname in objcopy; do
9244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9245 set dummy ${ncn_progname}; ac_word=$2
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9247 $as_echo_n "checking for $ac_word... " >&6; }
9248 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9249 $as_echo_n "(cached) " >&6
9250 else
9251 if test -n "$OBJCOPY"; then
9252 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9253 else
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 for as_dir in $PATH
9257 IFS=$as_save_IFS
9258 test -z "$as_dir" && as_dir=.
9259 for ac_exec_ext in '' $ac_executable_extensions; do
9260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9261 ac_cv_prog_OBJCOPY="${ncn_progname}"
9262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9263 break 2
9265 done
9266 done
9267 IFS=$as_save_IFS
9271 OBJCOPY=$ac_cv_prog_OBJCOPY
9272 if test -n "$OBJCOPY"; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9274 $as_echo "$OBJCOPY" >&6; }
9275 else
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277 $as_echo "no" >&6; }
9281 done
9284 for ncn_progname in objcopy; do
9285 if test -n "$ncn_tool_prefix"; then
9286 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9287 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289 $as_echo_n "checking for $ac_word... " >&6; }
9290 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 if test -n "$OBJCOPY"; then
9294 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9295 else
9296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297 for as_dir in $PATH
9299 IFS=$as_save_IFS
9300 test -z "$as_dir" && as_dir=.
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9303 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 break 2
9307 done
9308 done
9309 IFS=$as_save_IFS
9313 OBJCOPY=$ac_cv_prog_OBJCOPY
9314 if test -n "$OBJCOPY"; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9316 $as_echo "$OBJCOPY" >&6; }
9317 else
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 $as_echo "no" >&6; }
9324 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9326 set dummy ${ncn_progname}; ac_word=$2
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9328 $as_echo_n "checking for $ac_word... " >&6; }
9329 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 if test -n "$OBJCOPY"; then
9333 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9334 else
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336 for as_dir in $PATH
9338 IFS=$as_save_IFS
9339 test -z "$as_dir" && as_dir=.
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9342 ac_cv_prog_OBJCOPY="${ncn_progname}"
9343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9344 break 2
9346 done
9347 done
9348 IFS=$as_save_IFS
9352 OBJCOPY=$ac_cv_prog_OBJCOPY
9353 if test -n "$OBJCOPY"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9355 $as_echo "$OBJCOPY" >&6; }
9356 else
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 $as_echo "no" >&6; }
9363 test -n "$ac_cv_prog_OBJCOPY" && break
9364 done
9366 if test -z "$ac_cv_prog_OBJCOPY" ; then
9367 set dummy objcopy
9368 if test $build = $host ; then
9369 OBJCOPY="$2"
9370 else
9371 OBJCOPY="${ncn_tool_prefix}$2"
9377 if test -n "$OBJDUMP"; then
9378 ac_cv_prog_OBJDUMP=$OBJDUMP
9379 elif test -n "$ac_cv_prog_OBJDUMP"; then
9380 OBJDUMP=$ac_cv_prog_OBJDUMP
9383 if test -n "$ac_cv_prog_OBJDUMP"; then
9384 for ncn_progname in objdump; do
9385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9386 set dummy ${ncn_progname}; ac_word=$2
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9388 $as_echo_n "checking for $ac_word... " >&6; }
9389 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9392 if test -n "$OBJDUMP"; then
9393 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9394 else
9395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 for as_dir in $PATH
9398 IFS=$as_save_IFS
9399 test -z "$as_dir" && as_dir=.
9400 for ac_exec_ext in '' $ac_executable_extensions; do
9401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9402 ac_cv_prog_OBJDUMP="${ncn_progname}"
9403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9404 break 2
9406 done
9407 done
9408 IFS=$as_save_IFS
9412 OBJDUMP=$ac_cv_prog_OBJDUMP
9413 if test -n "$OBJDUMP"; then
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9415 $as_echo "$OBJDUMP" >&6; }
9416 else
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 $as_echo "no" >&6; }
9422 done
9425 for ncn_progname in objdump; do
9426 if test -n "$ncn_tool_prefix"; then
9427 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9428 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9430 $as_echo_n "checking for $ac_word... " >&6; }
9431 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9432 $as_echo_n "(cached) " >&6
9433 else
9434 if test -n "$OBJDUMP"; then
9435 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9436 else
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 for as_dir in $PATH
9440 IFS=$as_save_IFS
9441 test -z "$as_dir" && as_dir=.
9442 for ac_exec_ext in '' $ac_executable_extensions; do
9443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9444 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9446 break 2
9448 done
9449 done
9450 IFS=$as_save_IFS
9454 OBJDUMP=$ac_cv_prog_OBJDUMP
9455 if test -n "$OBJDUMP"; then
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9457 $as_echo "$OBJDUMP" >&6; }
9458 else
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; }
9465 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9467 set dummy ${ncn_progname}; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 if test -n "$OBJDUMP"; then
9474 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9475 else
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 for as_dir in $PATH
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9483 ac_cv_prog_OBJDUMP="${ncn_progname}"
9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 break 2
9487 done
9488 done
9489 IFS=$as_save_IFS
9493 OBJDUMP=$ac_cv_prog_OBJDUMP
9494 if test -n "$OBJDUMP"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9496 $as_echo "$OBJDUMP" >&6; }
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9504 test -n "$ac_cv_prog_OBJDUMP" && break
9505 done
9507 if test -z "$ac_cv_prog_OBJDUMP" ; then
9508 set dummy objdump
9509 if test $build = $host ; then
9510 OBJDUMP="$2"
9511 else
9512 OBJDUMP="${ncn_tool_prefix}$2"
9518 if test -n "$READELF"; then
9519 ac_cv_prog_READELF=$READELF
9520 elif test -n "$ac_cv_prog_READELF"; then
9521 READELF=$ac_cv_prog_READELF
9524 if test -n "$ac_cv_prog_READELF"; then
9525 for ncn_progname in readelf; do
9526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9527 set dummy ${ncn_progname}; ac_word=$2
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9529 $as_echo_n "checking for $ac_word... " >&6; }
9530 if test "${ac_cv_prog_READELF+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 if test -n "$READELF"; then
9534 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9535 else
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 for as_dir in $PATH
9539 IFS=$as_save_IFS
9540 test -z "$as_dir" && as_dir=.
9541 for ac_exec_ext in '' $ac_executable_extensions; do
9542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9543 ac_cv_prog_READELF="${ncn_progname}"
9544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9545 break 2
9547 done
9548 done
9549 IFS=$as_save_IFS
9553 READELF=$ac_cv_prog_READELF
9554 if test -n "$READELF"; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9556 $as_echo "$READELF" >&6; }
9557 else
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9563 done
9566 for ncn_progname in readelf; do
9567 if test -n "$ncn_tool_prefix"; then
9568 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9569 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 $as_echo_n "checking for $ac_word... " >&6; }
9572 if test "${ac_cv_prog_READELF+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9575 if test -n "$READELF"; then
9576 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9577 else
9578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579 for as_dir in $PATH
9581 IFS=$as_save_IFS
9582 test -z "$as_dir" && as_dir=.
9583 for ac_exec_ext in '' $ac_executable_extensions; do
9584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9585 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9587 break 2
9589 done
9590 done
9591 IFS=$as_save_IFS
9595 READELF=$ac_cv_prog_READELF
9596 if test -n "$READELF"; then
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9598 $as_echo "$READELF" >&6; }
9599 else
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 $as_echo "no" >&6; }
9606 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9608 set dummy ${ncn_progname}; ac_word=$2
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 $as_echo_n "checking for $ac_word... " >&6; }
9611 if test "${ac_cv_prog_READELF+set}" = set; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 if test -n "$READELF"; then
9615 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9616 else
9617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618 for as_dir in $PATH
9620 IFS=$as_save_IFS
9621 test -z "$as_dir" && as_dir=.
9622 for ac_exec_ext in '' $ac_executable_extensions; do
9623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9624 ac_cv_prog_READELF="${ncn_progname}"
9625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9626 break 2
9628 done
9629 done
9630 IFS=$as_save_IFS
9634 READELF=$ac_cv_prog_READELF
9635 if test -n "$READELF"; then
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9637 $as_echo "$READELF" >&6; }
9638 else
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9640 $as_echo "no" >&6; }
9645 test -n "$ac_cv_prog_READELF" && break
9646 done
9648 if test -z "$ac_cv_prog_READELF" ; then
9649 set dummy readelf
9650 if test $build = $host ; then
9651 READELF="$2"
9652 else
9653 READELF="${ncn_tool_prefix}$2"
9662 # Target tools.
9664 # Check whether --with-build-time-tools was given.
9665 if test "${with_build_time_tools+set}" = set; then :
9666 withval=$with_build_time_tools; case x"$withval" in
9667 x/*) ;;
9669 with_build_time_tools=
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9671 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9673 esac
9674 else
9675 with_build_time_tools=
9681 if test -n "$CC_FOR_TARGET"; then
9682 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9683 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9684 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9687 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9688 for ncn_progname in cc gcc; do
9689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9690 set dummy ${ncn_progname}; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 if test -n "$CC_FOR_TARGET"; then
9697 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9698 else
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 for as_dir in $PATH
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9710 done
9711 done
9712 IFS=$as_save_IFS
9716 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9717 if test -n "$CC_FOR_TARGET"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9719 $as_echo "$CC_FOR_TARGET" >&6; }
9720 else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9726 done
9729 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9730 for ncn_progname in cc gcc; do
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9732 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9733 if test -x $with_build_time_tools/${ncn_progname}; then
9734 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9736 $as_echo "yes" >&6; }
9737 break
9738 else
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740 $as_echo "no" >&6; }
9742 done
9745 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9746 for ncn_progname in cc gcc; do
9747 if test -n "$ncn_target_tool_prefix"; then
9748 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9749 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 if test -n "$CC_FOR_TARGET"; then
9756 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9757 else
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in $PATH
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9765 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767 break 2
9769 done
9770 done
9771 IFS=$as_save_IFS
9775 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9776 if test -n "$CC_FOR_TARGET"; then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9778 $as_echo "$CC_FOR_TARGET" >&6; }
9779 else
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781 $as_echo "no" >&6; }
9786 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9788 set dummy ${ncn_progname}; ac_word=$2
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9790 $as_echo_n "checking for $ac_word... " >&6; }
9791 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 if test -n "$CC_FOR_TARGET"; then
9795 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9796 else
9797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798 for as_dir in $PATH
9800 IFS=$as_save_IFS
9801 test -z "$as_dir" && as_dir=.
9802 for ac_exec_ext in '' $ac_executable_extensions; do
9803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9804 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9806 break 2
9808 done
9809 done
9810 IFS=$as_save_IFS
9814 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9815 if test -n "$CC_FOR_TARGET"; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9817 $as_echo "$CC_FOR_TARGET" >&6; }
9818 else
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820 $as_echo "no" >&6; }
9825 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9826 done
9829 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9830 set dummy cc gcc
9831 if test $build = $target ; then
9832 CC_FOR_TARGET="$2"
9833 else
9834 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9836 else
9837 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9842 if test -n "$CXX_FOR_TARGET"; then
9843 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9844 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9845 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9848 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9849 for ncn_progname in c++ g++ cxx gxx; do
9850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9851 set dummy ${ncn_progname}; ac_word=$2
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9853 $as_echo_n "checking for $ac_word... " >&6; }
9854 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9855 $as_echo_n "(cached) " >&6
9856 else
9857 if test -n "$CXX_FOR_TARGET"; then
9858 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9859 else
9860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861 for as_dir in $PATH
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9867 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9869 break 2
9871 done
9872 done
9873 IFS=$as_save_IFS
9877 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9878 if test -n "$CXX_FOR_TARGET"; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9880 $as_echo "$CXX_FOR_TARGET" >&6; }
9881 else
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 $as_echo "no" >&6; }
9887 done
9890 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9891 for ncn_progname in c++ g++ cxx gxx; do
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9893 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9894 if test -x $with_build_time_tools/${ncn_progname}; then
9895 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9897 $as_echo "yes" >&6; }
9898 break
9899 else
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901 $as_echo "no" >&6; }
9903 done
9906 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9907 for ncn_progname in c++ g++ cxx gxx; do
9908 if test -n "$ncn_target_tool_prefix"; then
9909 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9910 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912 $as_echo_n "checking for $ac_word... " >&6; }
9913 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 if test -n "$CXX_FOR_TARGET"; then
9917 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9918 else
9919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920 for as_dir in $PATH
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9926 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 break 2
9930 done
9931 done
9932 IFS=$as_save_IFS
9936 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9937 if test -n "$CXX_FOR_TARGET"; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9939 $as_echo "$CXX_FOR_TARGET" >&6; }
9940 else
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942 $as_echo "no" >&6; }
9947 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9949 set dummy ${ncn_progname}; ac_word=$2
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951 $as_echo_n "checking for $ac_word... " >&6; }
9952 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9953 $as_echo_n "(cached) " >&6
9954 else
9955 if test -n "$CXX_FOR_TARGET"; then
9956 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9957 else
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 for as_dir in $PATH
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9965 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 break 2
9969 done
9970 done
9971 IFS=$as_save_IFS
9975 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9976 if test -n "$CXX_FOR_TARGET"; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9978 $as_echo "$CXX_FOR_TARGET" >&6; }
9979 else
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9986 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9987 done
9990 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9991 set dummy c++ g++ cxx gxx
9992 if test $build = $target ; then
9993 CXX_FOR_TARGET="$2"
9994 else
9995 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9997 else
9998 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10003 if test -n "$GCC_FOR_TARGET"; then
10004 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10005 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10006 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10009 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10010 for ncn_progname in gcc; do
10011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10012 set dummy ${ncn_progname}; ac_word=$2
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014 $as_echo_n "checking for $ac_word... " >&6; }
10015 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 if test -n "$GCC_FOR_TARGET"; then
10019 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10020 else
10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022 for as_dir in $PATH
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10028 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10032 done
10033 done
10034 IFS=$as_save_IFS
10038 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10039 if test -n "$GCC_FOR_TARGET"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10041 $as_echo "$GCC_FOR_TARGET" >&6; }
10042 else
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; }
10048 done
10051 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10052 for ncn_progname in gcc; do
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10054 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10055 if test -x $with_build_time_tools/${ncn_progname}; then
10056 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10058 $as_echo "yes" >&6; }
10059 break
10060 else
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062 $as_echo "no" >&6; }
10064 done
10067 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10068 for ncn_progname in gcc; do
10069 if test -n "$ncn_target_tool_prefix"; then
10070 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10071 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10073 $as_echo_n "checking for $ac_word... " >&6; }
10074 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10075 $as_echo_n "(cached) " >&6
10076 else
10077 if test -n "$GCC_FOR_TARGET"; then
10078 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10079 else
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in $PATH
10083 IFS=$as_save_IFS
10084 test -z "$as_dir" && as_dir=.
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10087 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10089 break 2
10091 done
10092 done
10093 IFS=$as_save_IFS
10097 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10098 if test -n "$GCC_FOR_TARGET"; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10100 $as_echo "$GCC_FOR_TARGET" >&6; }
10101 else
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; }
10108 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10110 set dummy ${ncn_progname}; ac_word=$2
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10112 $as_echo_n "checking for $ac_word... " >&6; }
10113 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 if test -n "$GCC_FOR_TARGET"; then
10117 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10118 else
10119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10120 for as_dir in $PATH
10122 IFS=$as_save_IFS
10123 test -z "$as_dir" && as_dir=.
10124 for ac_exec_ext in '' $ac_executable_extensions; do
10125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10126 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10128 break 2
10130 done
10131 done
10132 IFS=$as_save_IFS
10136 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10137 if test -n "$GCC_FOR_TARGET"; then
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10139 $as_echo "$GCC_FOR_TARGET" >&6; }
10140 else
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10142 $as_echo "no" >&6; }
10147 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10148 done
10151 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10152 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10153 else
10154 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10159 if test -n "$GCJ_FOR_TARGET"; then
10160 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10161 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10162 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10165 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10166 for ncn_progname in gcj; do
10167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10168 set dummy ${ncn_progname}; ac_word=$2
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170 $as_echo_n "checking for $ac_word... " >&6; }
10171 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10172 $as_echo_n "(cached) " >&6
10173 else
10174 if test -n "$GCJ_FOR_TARGET"; then
10175 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10176 else
10177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178 for as_dir in $PATH
10180 IFS=$as_save_IFS
10181 test -z "$as_dir" && as_dir=.
10182 for ac_exec_ext in '' $ac_executable_extensions; do
10183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10184 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10186 break 2
10188 done
10189 done
10190 IFS=$as_save_IFS
10194 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10195 if test -n "$GCJ_FOR_TARGET"; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10197 $as_echo "$GCJ_FOR_TARGET" >&6; }
10198 else
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200 $as_echo "no" >&6; }
10204 done
10207 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10208 for ncn_progname in gcj; do
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10210 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10211 if test -x $with_build_time_tools/${ncn_progname}; then
10212 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10214 $as_echo "yes" >&6; }
10215 break
10216 else
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10218 $as_echo "no" >&6; }
10220 done
10223 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10224 for ncn_progname in gcj; do
10225 if test -n "$ncn_target_tool_prefix"; then
10226 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10227 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 $as_echo_n "checking for $ac_word... " >&6; }
10230 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 if test -n "$GCJ_FOR_TARGET"; then
10234 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10235 else
10236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in $PATH
10239 IFS=$as_save_IFS
10240 test -z "$as_dir" && as_dir=.
10241 for ac_exec_ext in '' $ac_executable_extensions; do
10242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10243 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10245 break 2
10247 done
10248 done
10249 IFS=$as_save_IFS
10253 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10254 if test -n "$GCJ_FOR_TARGET"; then
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10256 $as_echo "$GCJ_FOR_TARGET" >&6; }
10257 else
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259 $as_echo "no" >&6; }
10264 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10266 set dummy ${ncn_progname}; ac_word=$2
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10268 $as_echo_n "checking for $ac_word... " >&6; }
10269 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 if test -n "$GCJ_FOR_TARGET"; then
10273 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10274 else
10275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276 for as_dir in $PATH
10278 IFS=$as_save_IFS
10279 test -z "$as_dir" && as_dir=.
10280 for ac_exec_ext in '' $ac_executable_extensions; do
10281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10282 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10284 break 2
10286 done
10287 done
10288 IFS=$as_save_IFS
10292 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10293 if test -n "$GCJ_FOR_TARGET"; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10295 $as_echo "$GCJ_FOR_TARGET" >&6; }
10296 else
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298 $as_echo "no" >&6; }
10303 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10304 done
10307 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10308 set dummy gcj
10309 if test $build = $target ; then
10310 GCJ_FOR_TARGET="$2"
10311 else
10312 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10314 else
10315 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10320 if test -n "$GFORTRAN_FOR_TARGET"; then
10321 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10322 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10323 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10326 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10327 for ncn_progname in gfortran; do
10328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10329 set dummy ${ncn_progname}; ac_word=$2
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331 $as_echo_n "checking for $ac_word... " >&6; }
10332 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 if test -n "$GFORTRAN_FOR_TARGET"; then
10336 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10337 else
10338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339 for as_dir in $PATH
10341 IFS=$as_save_IFS
10342 test -z "$as_dir" && as_dir=.
10343 for ac_exec_ext in '' $ac_executable_extensions; do
10344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10345 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10347 break 2
10349 done
10350 done
10351 IFS=$as_save_IFS
10355 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10356 if test -n "$GFORTRAN_FOR_TARGET"; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10358 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10359 else
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 $as_echo "no" >&6; }
10365 done
10368 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10369 for ncn_progname in gfortran; do
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10371 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10372 if test -x $with_build_time_tools/${ncn_progname}; then
10373 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10375 $as_echo "yes" >&6; }
10376 break
10377 else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10381 done
10384 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10385 for ncn_progname in gfortran; do
10386 if test -n "$ncn_target_tool_prefix"; then
10387 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10388 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390 $as_echo_n "checking for $ac_word... " >&6; }
10391 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10392 $as_echo_n "(cached) " >&6
10393 else
10394 if test -n "$GFORTRAN_FOR_TARGET"; then
10395 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10396 else
10397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398 for as_dir in $PATH
10400 IFS=$as_save_IFS
10401 test -z "$as_dir" && as_dir=.
10402 for ac_exec_ext in '' $ac_executable_extensions; do
10403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10404 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406 break 2
10408 done
10409 done
10410 IFS=$as_save_IFS
10414 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10415 if test -n "$GFORTRAN_FOR_TARGET"; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10417 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10418 else
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10425 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10427 set dummy ${ncn_progname}; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 if test -n "$GFORTRAN_FOR_TARGET"; then
10434 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10435 else
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $PATH
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10443 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10447 done
10448 done
10449 IFS=$as_save_IFS
10453 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10454 if test -n "$GFORTRAN_FOR_TARGET"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10456 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10457 else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10464 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10465 done
10468 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10469 set dummy gfortran
10470 if test $build = $target ; then
10471 GFORTRAN_FOR_TARGET="$2"
10472 else
10473 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10475 else
10476 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10481 if test -n "$GOC_FOR_TARGET"; then
10482 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10483 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10484 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10487 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10488 for ncn_progname in gccgo; do
10489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10490 set dummy ${ncn_progname}; ac_word=$2
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492 $as_echo_n "checking for $ac_word... " >&6; }
10493 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 if test -n "$GOC_FOR_TARGET"; then
10497 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10498 else
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10510 done
10511 done
10512 IFS=$as_save_IFS
10516 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10517 if test -n "$GOC_FOR_TARGET"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10519 $as_echo "$GOC_FOR_TARGET" >&6; }
10520 else
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; }
10526 done
10529 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10530 for ncn_progname in gccgo; do
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10532 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10533 if test -x $with_build_time_tools/${ncn_progname}; then
10534 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10536 $as_echo "yes" >&6; }
10537 break
10538 else
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540 $as_echo "no" >&6; }
10542 done
10545 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10546 for ncn_progname in gccgo; do
10547 if test -n "$ncn_target_tool_prefix"; then
10548 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10549 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551 $as_echo_n "checking for $ac_word... " >&6; }
10552 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10554 else
10555 if test -n "$GOC_FOR_TARGET"; then
10556 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10557 else
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10561 IFS=$as_save_IFS
10562 test -z "$as_dir" && as_dir=.
10563 for ac_exec_ext in '' $ac_executable_extensions; do
10564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10567 break 2
10569 done
10570 done
10571 IFS=$as_save_IFS
10575 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10576 if test -n "$GOC_FOR_TARGET"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10578 $as_echo "$GOC_FOR_TARGET" >&6; }
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10586 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10588 set dummy ${ncn_progname}; ac_word=$2
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10590 $as_echo_n "checking for $ac_word... " >&6; }
10591 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10592 $as_echo_n "(cached) " >&6
10593 else
10594 if test -n "$GOC_FOR_TARGET"; then
10595 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10596 else
10597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10600 IFS=$as_save_IFS
10601 test -z "$as_dir" && as_dir=.
10602 for ac_exec_ext in '' $ac_executable_extensions; do
10603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10604 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10606 break 2
10608 done
10609 done
10610 IFS=$as_save_IFS
10614 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10615 if test -n "$GOC_FOR_TARGET"; then
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10617 $as_echo "$GOC_FOR_TARGET" >&6; }
10618 else
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10625 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10626 done
10629 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10630 set dummy gccgo
10631 if test $build = $target ; then
10632 GOC_FOR_TARGET="$2"
10633 else
10634 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10636 else
10637 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10642 if test -n "$GUPC_FOR_TARGET"; then
10643 ac_cv_prog_GUPC_FOR_TARGET=$GUPC_FOR_TARGET
10644 elif test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
10645 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10648 if test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
10649 for ncn_progname in gupc; do
10650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10651 set dummy ${ncn_progname}; ac_word=$2
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10653 $as_echo_n "checking for $ac_word... " >&6; }
10654 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657 if test -n "$GUPC_FOR_TARGET"; then
10658 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10659 else
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10667 ac_cv_prog_GUPC_FOR_TARGET="${ncn_progname}"
10668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 break 2
10671 done
10672 done
10673 IFS=$as_save_IFS
10677 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10678 if test -n "$GUPC_FOR_TARGET"; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
10680 $as_echo "$GUPC_FOR_TARGET" >&6; }
10681 else
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683 $as_echo "no" >&6; }
10687 done
10690 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10691 for ncn_progname in gupc; do
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10693 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10694 if test -x $with_build_time_tools/${ncn_progname}; then
10695 ac_cv_prog_GUPC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10697 $as_echo "yes" >&6; }
10698 break
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10703 done
10706 if test -z "$ac_cv_prog_GUPC_FOR_TARGET"; then
10707 for ncn_progname in gupc; do
10708 if test -n "$ncn_target_tool_prefix"; then
10709 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10710 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712 $as_echo_n "checking for $ac_word... " >&6; }
10713 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 if test -n "$GUPC_FOR_TARGET"; then
10717 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10718 else
10719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720 for as_dir in $PATH
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10726 ac_cv_prog_GUPC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10730 done
10731 done
10732 IFS=$as_save_IFS
10736 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10737 if test -n "$GUPC_FOR_TARGET"; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
10739 $as_echo "$GUPC_FOR_TARGET" >&6; }
10740 else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10747 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test $build = $target ; then
10748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10749 set dummy ${ncn_progname}; ac_word=$2
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751 $as_echo_n "checking for $ac_word... " >&6; }
10752 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 if test -n "$GUPC_FOR_TARGET"; then
10756 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10757 else
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $PATH
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10765 ac_cv_prog_GUPC_FOR_TARGET="${ncn_progname}"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10769 done
10770 done
10771 IFS=$as_save_IFS
10775 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10776 if test -n "$GUPC_FOR_TARGET"; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
10778 $as_echo "$GUPC_FOR_TARGET" >&6; }
10779 else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781 $as_echo "no" >&6; }
10786 test -n "$ac_cv_prog_GUPC_FOR_TARGET" && break
10787 done
10790 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" ; then
10791 set dummy gupc
10792 if test $build = $target ; then
10793 GUPC_FOR_TARGET="$2"
10794 else
10795 GUPC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10797 else
10798 GUPC_FOR_TARGET="$ac_cv_prog_GUPC_FOR_TARGET"
10803 cat > conftest.c << \EOF
10804 #ifdef __GNUC__
10805 gcc_yay;
10806 #endif
10808 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10809 have_gcc_for_target=yes
10810 else
10811 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10812 have_gcc_for_target=no
10814 rm conftest.c
10819 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10820 if test -n "$with_build_time_tools"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10822 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10823 if test -x $with_build_time_tools/ar; then
10824 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10825 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10827 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10828 else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; }
10832 elif test $build != $host && test $have_gcc_for_target = yes; then
10833 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10834 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10835 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10838 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10839 # Extract the first word of "ar", so it can be a program name with args.
10840 set dummy ar; ac_word=$2
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10842 $as_echo_n "checking for $ac_word... " >&6; }
10843 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 case $AR_FOR_TARGET in
10847 [\\/]* | ?:[\\/]*)
10848 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $gcc_cv_tool_dirs
10854 IFS=$as_save_IFS
10855 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10858 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 break 2
10862 done
10863 done
10864 IFS=$as_save_IFS
10867 esac
10869 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10870 if test -n "$AR_FOR_TARGET"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10872 $as_echo "$AR_FOR_TARGET" >&6; }
10873 else
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10880 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10883 if test -n "$AR_FOR_TARGET"; then
10884 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10885 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10886 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10889 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10890 for ncn_progname in ar; do
10891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10892 set dummy ${ncn_progname}; ac_word=$2
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10894 $as_echo_n "checking for $ac_word... " >&6; }
10895 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10897 else
10898 if test -n "$AR_FOR_TARGET"; then
10899 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10900 else
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
10906 for ac_exec_ext in '' $ac_executable_extensions; do
10907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10908 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10910 break 2
10912 done
10913 done
10914 IFS=$as_save_IFS
10918 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10919 if test -n "$AR_FOR_TARGET"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10921 $as_echo "$AR_FOR_TARGET" >&6; }
10922 else
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924 $as_echo "no" >&6; }
10928 done
10931 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10932 for ncn_progname in ar; do
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10934 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10935 if test -x $with_build_time_tools/${ncn_progname}; then
10936 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10938 $as_echo "yes" >&6; }
10939 break
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10942 $as_echo "no" >&6; }
10944 done
10947 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10948 for ncn_progname in ar; do
10949 if test -n "$ncn_target_tool_prefix"; then
10950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10951 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10953 $as_echo_n "checking for $ac_word... " >&6; }
10954 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 if test -n "$AR_FOR_TARGET"; then
10958 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10959 else
10960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10961 for as_dir in $PATH
10963 IFS=$as_save_IFS
10964 test -z "$as_dir" && as_dir=.
10965 for ac_exec_ext in '' $ac_executable_extensions; do
10966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10967 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 break 2
10971 done
10972 done
10973 IFS=$as_save_IFS
10977 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10978 if test -n "$AR_FOR_TARGET"; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10980 $as_echo "$AR_FOR_TARGET" >&6; }
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10988 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10990 set dummy ${ncn_progname}; ac_word=$2
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10992 $as_echo_n "checking for $ac_word... " >&6; }
10993 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 if test -n "$AR_FOR_TARGET"; then
10997 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10998 else
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11006 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 break 2
11010 done
11011 done
11012 IFS=$as_save_IFS
11016 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11017 if test -n "$AR_FOR_TARGET"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11019 $as_echo "$AR_FOR_TARGET" >&6; }
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11027 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11028 done
11031 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11032 set dummy ar
11033 if test $build = $target ; then
11034 AR_FOR_TARGET="$2"
11035 else
11036 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11038 else
11039 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11042 else
11043 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11049 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11050 if test -n "$with_build_time_tools"; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11052 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11053 if test -x $with_build_time_tools/as; then
11054 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11055 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11057 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11058 else
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11062 elif test $build != $host && test $have_gcc_for_target = yes; then
11063 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11064 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11065 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11068 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11069 # Extract the first word of "as", so it can be a program name with args.
11070 set dummy as; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11076 case $AS_FOR_TARGET in
11077 [\\/]* | ?:[\\/]*)
11078 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 for as_dir in $gcc_cv_tool_dirs
11084 IFS=$as_save_IFS
11085 test -z "$as_dir" && as_dir=.
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11088 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 break 2
11092 done
11093 done
11094 IFS=$as_save_IFS
11097 esac
11099 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11100 if test -n "$AS_FOR_TARGET"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11102 $as_echo "$AS_FOR_TARGET" >&6; }
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 $as_echo "no" >&6; }
11110 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11113 if test -n "$AS_FOR_TARGET"; then
11114 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11115 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11116 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11119 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11120 for ncn_progname in as; do
11121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11122 set dummy ${ncn_progname}; ac_word=$2
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124 $as_echo_n "checking for $ac_word... " >&6; }
11125 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 if test -n "$AS_FOR_TARGET"; then
11129 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11130 else
11131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11134 IFS=$as_save_IFS
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11138 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 break 2
11142 done
11143 done
11144 IFS=$as_save_IFS
11148 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11149 if test -n "$AS_FOR_TARGET"; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11151 $as_echo "$AS_FOR_TARGET" >&6; }
11152 else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11158 done
11161 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11162 for ncn_progname in as; do
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11164 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11165 if test -x $with_build_time_tools/${ncn_progname}; then
11166 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11168 $as_echo "yes" >&6; }
11169 break
11170 else
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11174 done
11177 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11178 for ncn_progname in as; do
11179 if test -n "$ncn_target_tool_prefix"; then
11180 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11181 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11183 $as_echo_n "checking for $ac_word... " >&6; }
11184 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11186 else
11187 if test -n "$AS_FOR_TARGET"; then
11188 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11189 else
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $PATH
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11197 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 break 2
11201 done
11202 done
11203 IFS=$as_save_IFS
11207 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11208 if test -n "$AS_FOR_TARGET"; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11210 $as_echo "$AS_FOR_TARGET" >&6; }
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11218 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11220 set dummy ${ncn_progname}; ac_word=$2
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222 $as_echo_n "checking for $ac_word... " >&6; }
11223 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 if test -n "$AS_FOR_TARGET"; then
11227 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11228 else
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11236 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11240 done
11241 done
11242 IFS=$as_save_IFS
11246 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11247 if test -n "$AS_FOR_TARGET"; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11249 $as_echo "$AS_FOR_TARGET" >&6; }
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11257 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11258 done
11261 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11262 set dummy as
11263 if test $build = $target ; then
11264 AS_FOR_TARGET="$2"
11265 else
11266 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11268 else
11269 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11272 else
11273 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11279 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11280 if test -n "$with_build_time_tools"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11282 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11283 if test -x $with_build_time_tools/dlltool; then
11284 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11285 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11287 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290 $as_echo "no" >&6; }
11292 elif test $build != $host && test $have_gcc_for_target = yes; then
11293 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11294 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11295 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11298 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11299 # Extract the first word of "dlltool", so it can be a program name with args.
11300 set dummy dlltool; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 case $DLLTOOL_FOR_TARGET in
11307 [\\/]* | ?:[\\/]*)
11308 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $gcc_cv_tool_dirs
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11318 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11320 break 2
11322 done
11323 done
11324 IFS=$as_save_IFS
11327 esac
11329 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11330 if test -n "$DLLTOOL_FOR_TARGET"; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11332 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11333 else
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11340 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11343 if test -n "$DLLTOOL_FOR_TARGET"; then
11344 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11345 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11346 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11349 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11350 for ncn_progname in dlltool; do
11351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11352 set dummy ${ncn_progname}; ac_word=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354 $as_echo_n "checking for $ac_word... " >&6; }
11355 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 if test -n "$DLLTOOL_FOR_TARGET"; then
11359 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11360 else
11361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362 for as_dir in $PATH
11364 IFS=$as_save_IFS
11365 test -z "$as_dir" && as_dir=.
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11368 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11370 break 2
11372 done
11373 done
11374 IFS=$as_save_IFS
11378 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11379 if test -n "$DLLTOOL_FOR_TARGET"; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11381 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 $as_echo "no" >&6; }
11388 done
11391 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11392 for ncn_progname in dlltool; do
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11394 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11395 if test -x $with_build_time_tools/${ncn_progname}; then
11396 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11398 $as_echo "yes" >&6; }
11399 break
11400 else
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11404 done
11407 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11408 for ncn_progname in dlltool; do
11409 if test -n "$ncn_target_tool_prefix"; then
11410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11411 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 if test -n "$DLLTOOL_FOR_TARGET"; then
11418 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11419 else
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11427 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 break 2
11431 done
11432 done
11433 IFS=$as_save_IFS
11437 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11438 if test -n "$DLLTOOL_FOR_TARGET"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11440 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11448 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11450 set dummy ${ncn_progname}; ac_word=$2
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11452 $as_echo_n "checking for $ac_word... " >&6; }
11453 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 if test -n "$DLLTOOL_FOR_TARGET"; then
11457 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11458 else
11459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11462 IFS=$as_save_IFS
11463 test -z "$as_dir" && as_dir=.
11464 for ac_exec_ext in '' $ac_executable_extensions; do
11465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11466 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11468 break 2
11470 done
11471 done
11472 IFS=$as_save_IFS
11476 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11477 if test -n "$DLLTOOL_FOR_TARGET"; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11479 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11480 else
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 $as_echo "no" >&6; }
11487 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11488 done
11491 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11492 set dummy dlltool
11493 if test $build = $target ; then
11494 DLLTOOL_FOR_TARGET="$2"
11495 else
11496 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11498 else
11499 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11502 else
11503 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11509 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11510 if test -n "$with_build_time_tools"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11512 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11513 if test -x $with_build_time_tools/ld; then
11514 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11515 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11517 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11522 elif test $build != $host && test $have_gcc_for_target = yes; then
11523 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11524 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11525 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11528 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11529 # Extract the first word of "ld", so it can be a program name with args.
11530 set dummy ld; ac_word=$2
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532 $as_echo_n "checking for $ac_word... " >&6; }
11533 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11534 $as_echo_n "(cached) " >&6
11535 else
11536 case $LD_FOR_TARGET in
11537 [\\/]* | ?:[\\/]*)
11538 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $gcc_cv_tool_dirs
11544 IFS=$as_save_IFS
11545 test -z "$as_dir" && as_dir=.
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11548 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11550 break 2
11552 done
11553 done
11554 IFS=$as_save_IFS
11557 esac
11559 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11560 if test -n "$LD_FOR_TARGET"; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11562 $as_echo "$LD_FOR_TARGET" >&6; }
11563 else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11570 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11573 if test -n "$LD_FOR_TARGET"; then
11574 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11575 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11576 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11579 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11580 for ncn_progname in ld; do
11581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11582 set dummy ${ncn_progname}; ac_word=$2
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584 $as_echo_n "checking for $ac_word... " >&6; }
11585 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11586 $as_echo_n "(cached) " >&6
11587 else
11588 if test -n "$LD_FOR_TARGET"; then
11589 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11590 else
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11598 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 break 2
11602 done
11603 done
11604 IFS=$as_save_IFS
11608 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11609 if test -n "$LD_FOR_TARGET"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11611 $as_echo "$LD_FOR_TARGET" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11618 done
11621 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11622 for ncn_progname in ld; do
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11624 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11625 if test -x $with_build_time_tools/${ncn_progname}; then
11626 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11628 $as_echo "yes" >&6; }
11629 break
11630 else
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11634 done
11637 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11638 for ncn_progname in ld; do
11639 if test -n "$ncn_target_tool_prefix"; then
11640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11641 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643 $as_echo_n "checking for $ac_word... " >&6; }
11644 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 if test -n "$LD_FOR_TARGET"; then
11648 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11649 else
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11657 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 break 2
11661 done
11662 done
11663 IFS=$as_save_IFS
11667 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11668 if test -n "$LD_FOR_TARGET"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11670 $as_echo "$LD_FOR_TARGET" >&6; }
11671 else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11678 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11680 set dummy ${ncn_progname}; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 if test -n "$LD_FOR_TARGET"; then
11687 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11688 else
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11692 IFS=$as_save_IFS
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11696 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698 break 2
11700 done
11701 done
11702 IFS=$as_save_IFS
11706 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11707 if test -n "$LD_FOR_TARGET"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11709 $as_echo "$LD_FOR_TARGET" >&6; }
11710 else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11717 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11718 done
11721 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11722 set dummy ld
11723 if test $build = $target ; then
11724 LD_FOR_TARGET="$2"
11725 else
11726 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11728 else
11729 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11732 else
11733 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11739 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11740 if test -n "$with_build_time_tools"; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11742 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11743 if test -x $with_build_time_tools/lipo; then
11744 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11745 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11747 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11748 else
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11752 elif test $build != $host && test $have_gcc_for_target = yes; then
11753 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11754 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11755 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11758 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11759 # Extract the first word of "lipo", so it can be a program name with args.
11760 set dummy lipo; ac_word=$2
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762 $as_echo_n "checking for $ac_word... " >&6; }
11763 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11764 $as_echo_n "(cached) " >&6
11765 else
11766 case $LIPO_FOR_TARGET in
11767 [\\/]* | ?:[\\/]*)
11768 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $gcc_cv_tool_dirs
11774 IFS=$as_save_IFS
11775 test -z "$as_dir" && as_dir=.
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11778 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11780 break 2
11782 done
11783 done
11784 IFS=$as_save_IFS
11787 esac
11789 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11790 if test -n "$LIPO_FOR_TARGET"; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11792 $as_echo "$LIPO_FOR_TARGET" >&6; }
11793 else
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 $as_echo "no" >&6; }
11800 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11803 if test -n "$LIPO_FOR_TARGET"; then
11804 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11805 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11806 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11809 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11810 for ncn_progname in lipo; do
11811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11812 set dummy ${ncn_progname}; ac_word=$2
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814 $as_echo_n "checking for $ac_word... " >&6; }
11815 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11816 $as_echo_n "(cached) " >&6
11817 else
11818 if test -n "$LIPO_FOR_TARGET"; then
11819 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11820 else
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11828 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11832 done
11833 done
11834 IFS=$as_save_IFS
11838 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11839 if test -n "$LIPO_FOR_TARGET"; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11841 $as_echo "$LIPO_FOR_TARGET" >&6; }
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11848 done
11851 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11852 for ncn_progname in lipo; do
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11854 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11855 if test -x $with_build_time_tools/${ncn_progname}; then
11856 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11858 $as_echo "yes" >&6; }
11859 break
11860 else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11864 done
11867 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11868 for ncn_progname in lipo; do
11869 if test -n "$ncn_target_tool_prefix"; then
11870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11871 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873 $as_echo_n "checking for $ac_word... " >&6; }
11874 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 if test -n "$LIPO_FOR_TARGET"; then
11878 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11879 else
11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11887 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889 break 2
11891 done
11892 done
11893 IFS=$as_save_IFS
11897 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11898 if test -n "$LIPO_FOR_TARGET"; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11900 $as_echo "$LIPO_FOR_TARGET" >&6; }
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11908 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11910 set dummy ${ncn_progname}; ac_word=$2
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11914 $as_echo_n "(cached) " >&6
11915 else
11916 if test -n "$LIPO_FOR_TARGET"; then
11917 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11918 else
11919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920 for as_dir in $PATH
11922 IFS=$as_save_IFS
11923 test -z "$as_dir" && as_dir=.
11924 for ac_exec_ext in '' $ac_executable_extensions; do
11925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11926 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928 break 2
11930 done
11931 done
11932 IFS=$as_save_IFS
11936 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11937 if test -n "$LIPO_FOR_TARGET"; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11939 $as_echo "$LIPO_FOR_TARGET" >&6; }
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11947 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11948 done
11951 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11952 set dummy lipo
11953 if test $build = $target ; then
11954 LIPO_FOR_TARGET="$2"
11955 else
11956 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11958 else
11959 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11962 else
11963 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11969 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11970 if test -n "$with_build_time_tools"; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11972 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11973 if test -x $with_build_time_tools/nm; then
11974 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11975 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11977 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11978 else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11982 elif test $build != $host && test $have_gcc_for_target = yes; then
11983 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11984 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11985 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11988 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11989 # Extract the first word of "nm", so it can be a program name with args.
11990 set dummy nm; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 case $NM_FOR_TARGET in
11997 [\\/]* | ?:[\\/]*)
11998 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $gcc_cv_tool_dirs
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12008 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010 break 2
12012 done
12013 done
12014 IFS=$as_save_IFS
12017 esac
12019 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12020 if test -n "$NM_FOR_TARGET"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12022 $as_echo "$NM_FOR_TARGET" >&6; }
12023 else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12030 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12033 if test -n "$NM_FOR_TARGET"; then
12034 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12035 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12036 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12039 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12040 for ncn_progname in nm; do
12041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12042 set dummy ${ncn_progname}; ac_word=$2
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 if test -n "$NM_FOR_TARGET"; then
12049 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12050 else
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12054 IFS=$as_save_IFS
12055 test -z "$as_dir" && as_dir=.
12056 for ac_exec_ext in '' $ac_executable_extensions; do
12057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12058 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12060 break 2
12062 done
12063 done
12064 IFS=$as_save_IFS
12068 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12069 if test -n "$NM_FOR_TARGET"; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12071 $as_echo "$NM_FOR_TARGET" >&6; }
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12078 done
12081 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12082 for ncn_progname in nm; do
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12084 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12085 if test -x $with_build_time_tools/${ncn_progname}; then
12086 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12088 $as_echo "yes" >&6; }
12089 break
12090 else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12094 done
12097 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12098 for ncn_progname in nm; do
12099 if test -n "$ncn_target_tool_prefix"; then
12100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12101 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 if test -n "$NM_FOR_TARGET"; then
12108 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12109 else
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12113 IFS=$as_save_IFS
12114 test -z "$as_dir" && as_dir=.
12115 for ac_exec_ext in '' $ac_executable_extensions; do
12116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12117 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 break 2
12121 done
12122 done
12123 IFS=$as_save_IFS
12127 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12128 if test -n "$NM_FOR_TARGET"; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12130 $as_echo "$NM_FOR_TARGET" >&6; }
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12138 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12140 set dummy ${ncn_progname}; ac_word=$2
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12142 $as_echo_n "checking for $ac_word... " >&6; }
12143 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12146 if test -n "$NM_FOR_TARGET"; then
12147 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12148 else
12149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150 for as_dir in $PATH
12152 IFS=$as_save_IFS
12153 test -z "$as_dir" && as_dir=.
12154 for ac_exec_ext in '' $ac_executable_extensions; do
12155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12156 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12158 break 2
12160 done
12161 done
12162 IFS=$as_save_IFS
12166 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12167 if test -n "$NM_FOR_TARGET"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12169 $as_echo "$NM_FOR_TARGET" >&6; }
12170 else
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12177 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12178 done
12181 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12182 set dummy nm
12183 if test $build = $target ; then
12184 NM_FOR_TARGET="$2"
12185 else
12186 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12188 else
12189 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12192 else
12193 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12199 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12200 if test -n "$with_build_time_tools"; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12202 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12203 if test -x $with_build_time_tools/objdump; then
12204 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12205 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12207 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12208 else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12212 elif test $build != $host && test $have_gcc_for_target = yes; then
12213 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12214 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12215 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12218 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12219 # Extract the first word of "objdump", so it can be a program name with args.
12220 set dummy objdump; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 case $OBJDUMP_FOR_TARGET in
12227 [\\/]* | ?:[\\/]*)
12228 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232 for as_dir in $gcc_cv_tool_dirs
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12238 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 break 2
12242 done
12243 done
12244 IFS=$as_save_IFS
12247 esac
12249 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12250 if test -n "$OBJDUMP_FOR_TARGET"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12252 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12260 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12263 if test -n "$OBJDUMP_FOR_TARGET"; then
12264 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12265 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12266 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12269 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12270 for ncn_progname in objdump; do
12271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12272 set dummy ${ncn_progname}; ac_word=$2
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274 $as_echo_n "checking for $ac_word... " >&6; }
12275 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 if test -n "$OBJDUMP_FOR_TARGET"; then
12279 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12280 else
12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $PATH
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12288 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290 break 2
12292 done
12293 done
12294 IFS=$as_save_IFS
12298 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12299 if test -n "$OBJDUMP_FOR_TARGET"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12301 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12308 done
12311 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12312 for ncn_progname in objdump; do
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12314 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12315 if test -x $with_build_time_tools/${ncn_progname}; then
12316 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12318 $as_echo "yes" >&6; }
12319 break
12320 else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12324 done
12327 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12328 for ncn_progname in objdump; do
12329 if test -n "$ncn_target_tool_prefix"; then
12330 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12331 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 if test -n "$OBJDUMP_FOR_TARGET"; then
12338 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12339 else
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12343 IFS=$as_save_IFS
12344 test -z "$as_dir" && as_dir=.
12345 for ac_exec_ext in '' $ac_executable_extensions; do
12346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12347 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12349 break 2
12351 done
12352 done
12353 IFS=$as_save_IFS
12357 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12358 if test -n "$OBJDUMP_FOR_TARGET"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12360 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12361 else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12368 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12370 set dummy ${ncn_progname}; ac_word=$2
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372 $as_echo_n "checking for $ac_word... " >&6; }
12373 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 if test -n "$OBJDUMP_FOR_TARGET"; then
12377 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12378 else
12379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380 for as_dir in $PATH
12382 IFS=$as_save_IFS
12383 test -z "$as_dir" && as_dir=.
12384 for ac_exec_ext in '' $ac_executable_extensions; do
12385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12386 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388 break 2
12390 done
12391 done
12392 IFS=$as_save_IFS
12396 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12397 if test -n "$OBJDUMP_FOR_TARGET"; then
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12399 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12400 else
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12407 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12408 done
12411 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12412 set dummy objdump
12413 if test $build = $target ; then
12414 OBJDUMP_FOR_TARGET="$2"
12415 else
12416 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12418 else
12419 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12422 else
12423 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12429 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12430 if test -n "$with_build_time_tools"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12432 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12433 if test -x $with_build_time_tools/ranlib; then
12434 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12435 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12437 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12438 else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12442 elif test $build != $host && test $have_gcc_for_target = yes; then
12443 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12444 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12445 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12448 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12449 # Extract the first word of "ranlib", so it can be a program name with args.
12450 set dummy ranlib; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452 $as_echo_n "checking for $ac_word... " >&6; }
12453 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 case $RANLIB_FOR_TARGET in
12457 [\\/]* | ?:[\\/]*)
12458 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462 for as_dir in $gcc_cv_tool_dirs
12464 IFS=$as_save_IFS
12465 test -z "$as_dir" && as_dir=.
12466 for ac_exec_ext in '' $ac_executable_extensions; do
12467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12468 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470 break 2
12472 done
12473 done
12474 IFS=$as_save_IFS
12477 esac
12479 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12480 if test -n "$RANLIB_FOR_TARGET"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12482 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12483 else
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12490 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12493 if test -n "$RANLIB_FOR_TARGET"; then
12494 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12495 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12496 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12499 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12500 for ncn_progname in ranlib; do
12501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12502 set dummy ${ncn_progname}; ac_word=$2
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12504 $as_echo_n "checking for $ac_word... " >&6; }
12505 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12506 $as_echo_n "(cached) " >&6
12507 else
12508 if test -n "$RANLIB_FOR_TARGET"; then
12509 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12510 else
12511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512 for as_dir in $PATH
12514 IFS=$as_save_IFS
12515 test -z "$as_dir" && as_dir=.
12516 for ac_exec_ext in '' $ac_executable_extensions; do
12517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12518 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12520 break 2
12522 done
12523 done
12524 IFS=$as_save_IFS
12528 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12529 if test -n "$RANLIB_FOR_TARGET"; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12531 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12532 else
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12538 done
12541 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12542 for ncn_progname in ranlib; do
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12544 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12545 if test -x $with_build_time_tools/${ncn_progname}; then
12546 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12548 $as_echo "yes" >&6; }
12549 break
12550 else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552 $as_echo "no" >&6; }
12554 done
12557 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12558 for ncn_progname in ranlib; do
12559 if test -n "$ncn_target_tool_prefix"; then
12560 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12561 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563 $as_echo_n "checking for $ac_word... " >&6; }
12564 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 if test -n "$RANLIB_FOR_TARGET"; then
12568 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12569 else
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12577 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 break 2
12581 done
12582 done
12583 IFS=$as_save_IFS
12587 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12588 if test -n "$RANLIB_FOR_TARGET"; then
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12590 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12591 else
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12598 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12600 set dummy ${ncn_progname}; ac_word=$2
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602 $as_echo_n "checking for $ac_word... " >&6; }
12603 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12606 if test -n "$RANLIB_FOR_TARGET"; then
12607 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12608 else
12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610 for as_dir in $PATH
12612 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
12614 for ac_exec_ext in '' $ac_executable_extensions; do
12615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12616 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 break 2
12620 done
12621 done
12622 IFS=$as_save_IFS
12626 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12627 if test -n "$RANLIB_FOR_TARGET"; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12629 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12630 else
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12637 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12638 done
12641 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12642 set dummy ranlib
12643 if test $build = $target ; then
12644 RANLIB_FOR_TARGET="$2"
12645 else
12646 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12648 else
12649 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12652 else
12653 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12659 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12660 if test -n "$with_build_time_tools"; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12662 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12663 if test -x $with_build_time_tools/readelf; then
12664 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12665 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12667 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; }
12672 elif test $build != $host && test $have_gcc_for_target = yes; then
12673 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12674 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12675 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12678 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12679 # Extract the first word of "readelf", so it can be a program name with args.
12680 set dummy readelf; ac_word=$2
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682 $as_echo_n "checking for $ac_word... " >&6; }
12683 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 case $READELF_FOR_TARGET in
12687 [\\/]* | ?:[\\/]*)
12688 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12692 for as_dir in $gcc_cv_tool_dirs
12694 IFS=$as_save_IFS
12695 test -z "$as_dir" && as_dir=.
12696 for ac_exec_ext in '' $ac_executable_extensions; do
12697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12698 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12700 break 2
12702 done
12703 done
12704 IFS=$as_save_IFS
12707 esac
12709 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12710 if test -n "$READELF_FOR_TARGET"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12712 $as_echo "$READELF_FOR_TARGET" >&6; }
12713 else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715 $as_echo "no" >&6; }
12720 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12723 if test -n "$READELF_FOR_TARGET"; then
12724 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12725 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12726 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12729 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12730 for ncn_progname in readelf; do
12731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12732 set dummy ${ncn_progname}; ac_word=$2
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734 $as_echo_n "checking for $ac_word... " >&6; }
12735 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 if test -n "$READELF_FOR_TARGET"; then
12739 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12740 else
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12748 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 break 2
12752 done
12753 done
12754 IFS=$as_save_IFS
12758 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12759 if test -n "$READELF_FOR_TARGET"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12761 $as_echo "$READELF_FOR_TARGET" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12768 done
12771 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12772 for ncn_progname in readelf; do
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12774 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12775 if test -x $with_build_time_tools/${ncn_progname}; then
12776 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12778 $as_echo "yes" >&6; }
12779 break
12780 else
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782 $as_echo "no" >&6; }
12784 done
12787 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12788 for ncn_progname in readelf; do
12789 if test -n "$ncn_target_tool_prefix"; then
12790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12791 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793 $as_echo_n "checking for $ac_word... " >&6; }
12794 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 if test -n "$READELF_FOR_TARGET"; then
12798 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12799 else
12800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801 for as_dir in $PATH
12803 IFS=$as_save_IFS
12804 test -z "$as_dir" && as_dir=.
12805 for ac_exec_ext in '' $ac_executable_extensions; do
12806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12807 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12809 break 2
12811 done
12812 done
12813 IFS=$as_save_IFS
12817 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12818 if test -n "$READELF_FOR_TARGET"; then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12820 $as_echo "$READELF_FOR_TARGET" >&6; }
12821 else
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12828 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12830 set dummy ${ncn_progname}; ac_word=$2
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12832 $as_echo_n "checking for $ac_word... " >&6; }
12833 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 if test -n "$READELF_FOR_TARGET"; then
12837 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12838 else
12839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12842 IFS=$as_save_IFS
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
12845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12846 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12848 break 2
12850 done
12851 done
12852 IFS=$as_save_IFS
12856 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12857 if test -n "$READELF_FOR_TARGET"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12859 $as_echo "$READELF_FOR_TARGET" >&6; }
12860 else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12867 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12868 done
12871 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12872 set dummy readelf
12873 if test $build = $target ; then
12874 READELF_FOR_TARGET="$2"
12875 else
12876 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12878 else
12879 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12882 else
12883 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12889 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12890 if test -n "$with_build_time_tools"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12892 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12893 if test -x $with_build_time_tools/strip; then
12894 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12895 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12897 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12898 else
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12902 elif test $build != $host && test $have_gcc_for_target = yes; then
12903 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12904 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12905 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12908 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12909 # Extract the first word of "strip", so it can be a program name with args.
12910 set dummy strip; ac_word=$2
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912 $as_echo_n "checking for $ac_word... " >&6; }
12913 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916 case $STRIP_FOR_TARGET in
12917 [\\/]* | ?:[\\/]*)
12918 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922 for as_dir in $gcc_cv_tool_dirs
12924 IFS=$as_save_IFS
12925 test -z "$as_dir" && as_dir=.
12926 for ac_exec_ext in '' $ac_executable_extensions; do
12927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12928 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12930 break 2
12932 done
12933 done
12934 IFS=$as_save_IFS
12937 esac
12939 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12940 if test -n "$STRIP_FOR_TARGET"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12942 $as_echo "$STRIP_FOR_TARGET" >&6; }
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12950 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12953 if test -n "$STRIP_FOR_TARGET"; then
12954 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12955 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12956 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12959 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12960 for ncn_progname in strip; do
12961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12962 set dummy ${ncn_progname}; ac_word=$2
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12964 $as_echo_n "checking for $ac_word... " >&6; }
12965 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12967 else
12968 if test -n "$STRIP_FOR_TARGET"; then
12969 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12970 else
12971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972 for as_dir in $PATH
12974 IFS=$as_save_IFS
12975 test -z "$as_dir" && as_dir=.
12976 for ac_exec_ext in '' $ac_executable_extensions; do
12977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12978 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12980 break 2
12982 done
12983 done
12984 IFS=$as_save_IFS
12988 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12989 if test -n "$STRIP_FOR_TARGET"; then
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12991 $as_echo "$STRIP_FOR_TARGET" >&6; }
12992 else
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
12998 done
13001 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13002 for ncn_progname in strip; do
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13004 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13005 if test -x $with_build_time_tools/${ncn_progname}; then
13006 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13008 $as_echo "yes" >&6; }
13009 break
13010 else
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 $as_echo "no" >&6; }
13014 done
13017 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13018 for ncn_progname in strip; do
13019 if test -n "$ncn_target_tool_prefix"; then
13020 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13021 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 if test -n "$STRIP_FOR_TARGET"; then
13028 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13029 else
13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $PATH
13033 IFS=$as_save_IFS
13034 test -z "$as_dir" && as_dir=.
13035 for ac_exec_ext in '' $ac_executable_extensions; do
13036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13037 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13039 break 2
13041 done
13042 done
13043 IFS=$as_save_IFS
13047 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13048 if test -n "$STRIP_FOR_TARGET"; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13050 $as_echo "$STRIP_FOR_TARGET" >&6; }
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13058 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13060 set dummy ${ncn_progname}; ac_word=$2
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13062 $as_echo_n "checking for $ac_word... " >&6; }
13063 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13064 $as_echo_n "(cached) " >&6
13065 else
13066 if test -n "$STRIP_FOR_TARGET"; then
13067 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13068 else
13069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH
13072 IFS=$as_save_IFS
13073 test -z "$as_dir" && as_dir=.
13074 for ac_exec_ext in '' $ac_executable_extensions; do
13075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13076 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13078 break 2
13080 done
13081 done
13082 IFS=$as_save_IFS
13086 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13087 if test -n "$STRIP_FOR_TARGET"; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13089 $as_echo "$STRIP_FOR_TARGET" >&6; }
13090 else
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13097 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13098 done
13101 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13102 set dummy strip
13103 if test $build = $target ; then
13104 STRIP_FOR_TARGET="$2"
13105 else
13106 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13108 else
13109 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13112 else
13113 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13119 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13120 if test -n "$with_build_time_tools"; then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13122 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13123 if test -x $with_build_time_tools/windres; then
13124 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13125 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13127 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13132 elif test $build != $host && test $have_gcc_for_target = yes; then
13133 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13134 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13135 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13138 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13139 # Extract the first word of "windres", so it can be a program name with args.
13140 set dummy windres; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 $as_echo_n "checking for $ac_word... " >&6; }
13143 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 case $WINDRES_FOR_TARGET in
13147 [\\/]* | ?:[\\/]*)
13148 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152 for as_dir in $gcc_cv_tool_dirs
13154 IFS=$as_save_IFS
13155 test -z "$as_dir" && as_dir=.
13156 for ac_exec_ext in '' $ac_executable_extensions; do
13157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13158 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13160 break 2
13162 done
13163 done
13164 IFS=$as_save_IFS
13167 esac
13169 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13170 if test -n "$WINDRES_FOR_TARGET"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13172 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13173 else
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13180 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13183 if test -n "$WINDRES_FOR_TARGET"; then
13184 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13185 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13186 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13189 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13190 for ncn_progname in windres; do
13191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13192 set dummy ${ncn_progname}; ac_word=$2
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194 $as_echo_n "checking for $ac_word... " >&6; }
13195 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13196 $as_echo_n "(cached) " >&6
13197 else
13198 if test -n "$WINDRES_FOR_TARGET"; then
13199 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13200 else
13201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13204 IFS=$as_save_IFS
13205 test -z "$as_dir" && as_dir=.
13206 for ac_exec_ext in '' $ac_executable_extensions; do
13207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13208 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210 break 2
13212 done
13213 done
13214 IFS=$as_save_IFS
13218 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13219 if test -n "$WINDRES_FOR_TARGET"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13221 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13222 else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13228 done
13231 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13232 for ncn_progname in windres; do
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13234 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13235 if test -x $with_build_time_tools/${ncn_progname}; then
13236 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13238 $as_echo "yes" >&6; }
13239 break
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13244 done
13247 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13248 for ncn_progname in windres; do
13249 if test -n "$ncn_target_tool_prefix"; then
13250 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13251 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 if test -n "$WINDRES_FOR_TARGET"; then
13258 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13259 else
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13267 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269 break 2
13271 done
13272 done
13273 IFS=$as_save_IFS
13277 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13278 if test -n "$WINDRES_FOR_TARGET"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13280 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13281 else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13288 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13290 set dummy ${ncn_progname}; ac_word=$2
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292 $as_echo_n "checking for $ac_word... " >&6; }
13293 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 if test -n "$WINDRES_FOR_TARGET"; then
13297 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13298 else
13299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300 for as_dir in $PATH
13302 IFS=$as_save_IFS
13303 test -z "$as_dir" && as_dir=.
13304 for ac_exec_ext in '' $ac_executable_extensions; do
13305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13306 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13308 break 2
13310 done
13311 done
13312 IFS=$as_save_IFS
13316 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13317 if test -n "$WINDRES_FOR_TARGET"; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13319 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13320 else
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13327 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13328 done
13331 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13332 set dummy windres
13333 if test $build = $target ; then
13334 WINDRES_FOR_TARGET="$2"
13335 else
13336 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13338 else
13339 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13342 else
13343 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13349 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13350 if test -n "$with_build_time_tools"; then
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13352 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13353 if test -x $with_build_time_tools/windmc; then
13354 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13355 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13357 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13358 else
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 $as_echo "no" >&6; }
13362 elif test $build != $host && test $have_gcc_for_target = yes; then
13363 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13364 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13365 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13368 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13369 # Extract the first word of "windmc", so it can be a program name with args.
13370 set dummy windmc; ac_word=$2
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13372 $as_echo_n "checking for $ac_word... " >&6; }
13373 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13375 else
13376 case $WINDMC_FOR_TARGET in
13377 [\\/]* | ?:[\\/]*)
13378 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13382 for as_dir in $gcc_cv_tool_dirs
13384 IFS=$as_save_IFS
13385 test -z "$as_dir" && as_dir=.
13386 for ac_exec_ext in '' $ac_executable_extensions; do
13387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13388 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13390 break 2
13392 done
13393 done
13394 IFS=$as_save_IFS
13397 esac
13399 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13400 if test -n "$WINDMC_FOR_TARGET"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13402 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13403 else
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405 $as_echo "no" >&6; }
13410 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13413 if test -n "$WINDMC_FOR_TARGET"; then
13414 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13415 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13416 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13419 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13420 for ncn_progname in windmc; do
13421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13422 set dummy ${ncn_progname}; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 if test -n "$WINDMC_FOR_TARGET"; then
13429 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13430 else
13431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432 for as_dir in $PATH
13434 IFS=$as_save_IFS
13435 test -z "$as_dir" && as_dir=.
13436 for ac_exec_ext in '' $ac_executable_extensions; do
13437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13438 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440 break 2
13442 done
13443 done
13444 IFS=$as_save_IFS
13448 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13449 if test -n "$WINDMC_FOR_TARGET"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13451 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13452 else
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13458 done
13461 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13462 for ncn_progname in windmc; do
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13464 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13465 if test -x $with_build_time_tools/${ncn_progname}; then
13466 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13468 $as_echo "yes" >&6; }
13469 break
13470 else
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472 $as_echo "no" >&6; }
13474 done
13477 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13478 for ncn_progname in windmc; do
13479 if test -n "$ncn_target_tool_prefix"; then
13480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13481 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13483 $as_echo_n "checking for $ac_word... " >&6; }
13484 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13485 $as_echo_n "(cached) " >&6
13486 else
13487 if test -n "$WINDMC_FOR_TARGET"; then
13488 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13489 else
13490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491 for as_dir in $PATH
13493 IFS=$as_save_IFS
13494 test -z "$as_dir" && as_dir=.
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13497 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 break 2
13501 done
13502 done
13503 IFS=$as_save_IFS
13507 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13508 if test -n "$WINDMC_FOR_TARGET"; then
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13510 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13518 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13520 set dummy ${ncn_progname}; ac_word=$2
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13522 $as_echo_n "checking for $ac_word... " >&6; }
13523 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 if test -n "$WINDMC_FOR_TARGET"; then
13527 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13528 else
13529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13530 for as_dir in $PATH
13532 IFS=$as_save_IFS
13533 test -z "$as_dir" && as_dir=.
13534 for ac_exec_ext in '' $ac_executable_extensions; do
13535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13536 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13538 break 2
13540 done
13541 done
13542 IFS=$as_save_IFS
13546 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13547 if test -n "$WINDMC_FOR_TARGET"; then
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13549 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13550 else
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552 $as_echo "no" >&6; }
13557 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13558 done
13561 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13562 set dummy windmc
13563 if test $build = $target ; then
13564 WINDMC_FOR_TARGET="$2"
13565 else
13566 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13568 else
13569 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13572 else
13573 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13577 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13580 $as_echo_n "checking where to find the target ar... " >&6; }
13581 if test "x${build}" != "x${host}" ; then
13582 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13583 # We already found the complete path
13584 ac_dir=`dirname $AR_FOR_TARGET`
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13586 $as_echo "pre-installed in $ac_dir" >&6; }
13587 else
13588 # Canadian cross, just use what we found
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13590 $as_echo "pre-installed" >&6; }
13592 else
13593 ok=yes
13594 case " ${configdirs} " in
13595 *" binutils "*) ;;
13596 *) ok=no ;;
13597 esac
13599 if test $ok = yes; then
13600 # An in-tree tool is available and we can use it
13601 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13603 $as_echo "just compiled" >&6; }
13604 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13605 # We already found the complete path
13606 ac_dir=`dirname $AR_FOR_TARGET`
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13608 $as_echo "pre-installed in $ac_dir" >&6; }
13609 elif test "x$target" = "x$host"; then
13610 # We can use an host tool
13611 AR_FOR_TARGET='$(AR)'
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13613 $as_echo "host tool" >&6; }
13614 else
13615 # We need a cross tool
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13617 $as_echo "pre-installed" >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13622 $as_echo_n "checking where to find the target as... " >&6; }
13623 if test "x${build}" != "x${host}" ; then
13624 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13625 # We already found the complete path
13626 ac_dir=`dirname $AS_FOR_TARGET`
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13628 $as_echo "pre-installed in $ac_dir" >&6; }
13629 else
13630 # Canadian cross, just use what we found
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13632 $as_echo "pre-installed" >&6; }
13634 else
13635 ok=yes
13636 case " ${configdirs} " in
13637 *" gas "*) ;;
13638 *) ok=no ;;
13639 esac
13641 if test $ok = yes; then
13642 # An in-tree tool is available and we can use it
13643 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13645 $as_echo "just compiled" >&6; }
13646 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13647 # We already found the complete path
13648 ac_dir=`dirname $AS_FOR_TARGET`
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13650 $as_echo "pre-installed in $ac_dir" >&6; }
13651 elif test "x$target" = "x$host"; then
13652 # We can use an host tool
13653 AS_FOR_TARGET='$(AS)'
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13655 $as_echo "host tool" >&6; }
13656 else
13657 # We need a cross tool
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13659 $as_echo "pre-installed" >&6; }
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13664 $as_echo_n "checking where to find the target cc... " >&6; }
13665 if test "x${build}" != "x${host}" ; then
13666 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13667 # We already found the complete path
13668 ac_dir=`dirname $CC_FOR_TARGET`
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13670 $as_echo "pre-installed in $ac_dir" >&6; }
13671 else
13672 # Canadian cross, just use what we found
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13674 $as_echo "pre-installed" >&6; }
13676 else
13677 ok=yes
13678 case " ${configdirs} " in
13679 *" gcc "*) ;;
13680 *) ok=no ;;
13681 esac
13683 if test $ok = yes; then
13684 # An in-tree tool is available and we can use it
13685 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13687 $as_echo "just compiled" >&6; }
13688 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13689 # We already found the complete path
13690 ac_dir=`dirname $CC_FOR_TARGET`
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13692 $as_echo "pre-installed in $ac_dir" >&6; }
13693 elif test "x$target" = "x$host"; then
13694 # We can use an host tool
13695 CC_FOR_TARGET='$(CC)'
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13697 $as_echo "host tool" >&6; }
13698 else
13699 # We need a cross tool
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13701 $as_echo "pre-installed" >&6; }
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13706 $as_echo_n "checking where to find the target c++... " >&6; }
13707 if test "x${build}" != "x${host}" ; then
13708 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13709 # We already found the complete path
13710 ac_dir=`dirname $CXX_FOR_TARGET`
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13712 $as_echo "pre-installed in $ac_dir" >&6; }
13713 else
13714 # Canadian cross, just use what we found
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13716 $as_echo "pre-installed" >&6; }
13718 else
13719 ok=yes
13720 case " ${configdirs} " in
13721 *" gcc "*) ;;
13722 *) ok=no ;;
13723 esac
13724 case ,${enable_languages}, in
13725 *,c++,*) ;;
13726 *) ok=no ;;
13727 esac
13728 if test $ok = yes; then
13729 # An in-tree tool is available and we can use it
13730 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'
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13732 $as_echo "just compiled" >&6; }
13733 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13734 # We already found the complete path
13735 ac_dir=`dirname $CXX_FOR_TARGET`
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13737 $as_echo "pre-installed in $ac_dir" >&6; }
13738 elif test "x$target" = "x$host"; then
13739 # We can use an host tool
13740 CXX_FOR_TARGET='$(CXX)'
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13742 $as_echo "host tool" >&6; }
13743 else
13744 # We need a cross tool
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13746 $as_echo "pre-installed" >&6; }
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13751 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13752 if test "x${build}" != "x${host}" ; then
13753 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13754 # We already found the complete path
13755 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13757 $as_echo "pre-installed in $ac_dir" >&6; }
13758 else
13759 # Canadian cross, just use what we found
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13761 $as_echo "pre-installed" >&6; }
13763 else
13764 ok=yes
13765 case " ${configdirs} " in
13766 *" gcc "*) ;;
13767 *) ok=no ;;
13768 esac
13769 case ,${enable_languages}, in
13770 *,c++,*) ;;
13771 *) ok=no ;;
13772 esac
13773 if test $ok = yes; then
13774 # An in-tree tool is available and we can use it
13775 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'
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13777 $as_echo "just compiled" >&6; }
13778 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13779 # We already found the complete path
13780 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13782 $as_echo "pre-installed in $ac_dir" >&6; }
13783 elif test "x$target" = "x$host"; then
13784 # We can use an host tool
13785 RAW_CXX_FOR_TARGET='$(CXX)'
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13787 $as_echo "host tool" >&6; }
13788 else
13789 # We need a cross tool
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13791 $as_echo "pre-installed" >&6; }
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13796 $as_echo_n "checking where to find the target dlltool... " >&6; }
13797 if test "x${build}" != "x${host}" ; then
13798 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13799 # We already found the complete path
13800 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13802 $as_echo "pre-installed in $ac_dir" >&6; }
13803 else
13804 # Canadian cross, just use what we found
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13806 $as_echo "pre-installed" >&6; }
13808 else
13809 ok=yes
13810 case " ${configdirs} " in
13811 *" binutils "*) ;;
13812 *) ok=no ;;
13813 esac
13815 if test $ok = yes; then
13816 # An in-tree tool is available and we can use it
13817 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13819 $as_echo "just compiled" >&6; }
13820 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13821 # We already found the complete path
13822 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13824 $as_echo "pre-installed in $ac_dir" >&6; }
13825 elif test "x$target" = "x$host"; then
13826 # We can use an host tool
13827 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13829 $as_echo "host tool" >&6; }
13830 else
13831 # We need a cross tool
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13833 $as_echo "pre-installed" >&6; }
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13838 $as_echo_n "checking where to find the target gcc... " >&6; }
13839 if test "x${build}" != "x${host}" ; then
13840 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13841 # We already found the complete path
13842 ac_dir=`dirname $GCC_FOR_TARGET`
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13844 $as_echo "pre-installed in $ac_dir" >&6; }
13845 else
13846 # Canadian cross, just use what we found
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13848 $as_echo "pre-installed" >&6; }
13850 else
13851 ok=yes
13852 case " ${configdirs} " in
13853 *" gcc "*) ;;
13854 *) ok=no ;;
13855 esac
13857 if test $ok = yes; then
13858 # An in-tree tool is available and we can use it
13859 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13861 $as_echo "just compiled" >&6; }
13862 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13863 # We already found the complete path
13864 ac_dir=`dirname $GCC_FOR_TARGET`
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13866 $as_echo "pre-installed in $ac_dir" >&6; }
13867 elif test "x$target" = "x$host"; then
13868 # We can use an host tool
13869 GCC_FOR_TARGET='$()'
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13871 $as_echo "host tool" >&6; }
13872 else
13873 # We need a cross tool
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13875 $as_echo "pre-installed" >&6; }
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13880 $as_echo_n "checking where to find the target gcj... " >&6; }
13881 if test "x${build}" != "x${host}" ; then
13882 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13883 # We already found the complete path
13884 ac_dir=`dirname $GCJ_FOR_TARGET`
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13886 $as_echo "pre-installed in $ac_dir" >&6; }
13887 else
13888 # Canadian cross, just use what we found
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13890 $as_echo "pre-installed" >&6; }
13892 else
13893 ok=yes
13894 case " ${configdirs} " in
13895 *" gcc "*) ;;
13896 *) ok=no ;;
13897 esac
13898 case ,${enable_languages}, in
13899 *,java,*) ;;
13900 *) ok=no ;;
13901 esac
13902 if test $ok = yes; then
13903 # An in-tree tool is available and we can use it
13904 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13906 $as_echo "just compiled" >&6; }
13907 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13908 # We already found the complete path
13909 ac_dir=`dirname $GCJ_FOR_TARGET`
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13911 $as_echo "pre-installed in $ac_dir" >&6; }
13912 elif test "x$target" = "x$host"; then
13913 # We can use an host tool
13914 GCJ_FOR_TARGET='$(GCJ)'
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13916 $as_echo "host tool" >&6; }
13917 else
13918 # We need a cross tool
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13920 $as_echo "pre-installed" >&6; }
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13925 $as_echo_n "checking where to find the target gfortran... " >&6; }
13926 if test "x${build}" != "x${host}" ; then
13927 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13928 # We already found the complete path
13929 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13931 $as_echo "pre-installed in $ac_dir" >&6; }
13932 else
13933 # Canadian cross, just use what we found
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13935 $as_echo "pre-installed" >&6; }
13937 else
13938 ok=yes
13939 case " ${configdirs} " in
13940 *" gcc "*) ;;
13941 *) ok=no ;;
13942 esac
13943 case ,${enable_languages}, in
13944 *,fortran,*) ;;
13945 *) ok=no ;;
13946 esac
13947 if test $ok = yes; then
13948 # An in-tree tool is available and we can use it
13949 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13951 $as_echo "just compiled" >&6; }
13952 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13953 # We already found the complete path
13954 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13956 $as_echo "pre-installed in $ac_dir" >&6; }
13957 elif test "x$target" = "x$host"; then
13958 # We can use an host tool
13959 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13961 $as_echo "host tool" >&6; }
13962 else
13963 # We need a cross tool
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13965 $as_echo "pre-installed" >&6; }
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13970 $as_echo_n "checking where to find the target gccgo... " >&6; }
13971 if test "x${build}" != "x${host}" ; then
13972 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13973 # We already found the complete path
13974 ac_dir=`dirname $GOC_FOR_TARGET`
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13976 $as_echo "pre-installed in $ac_dir" >&6; }
13977 else
13978 # Canadian cross, just use what we found
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13980 $as_echo "pre-installed" >&6; }
13982 else
13983 ok=yes
13984 case " ${configdirs} " in
13985 *" gcc "*) ;;
13986 *) ok=no ;;
13987 esac
13988 case ,${enable_languages}, in
13989 *,go,*) ;;
13990 *) ok=no ;;
13991 esac
13992 if test $ok = yes; then
13993 # An in-tree tool is available and we can use it
13994 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13996 $as_echo "just compiled" >&6; }
13997 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13998 # We already found the complete path
13999 ac_dir=`dirname $GOC_FOR_TARGET`
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14001 $as_echo "pre-installed in $ac_dir" >&6; }
14002 elif test "x$target" = "x$host"; then
14003 # We can use an host tool
14004 GOC_FOR_TARGET='$(GOC)'
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14006 $as_echo "host tool" >&6; }
14007 else
14008 # We need a cross tool
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14010 $as_echo "pre-installed" >&6; }
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gupc" >&5
14015 $as_echo_n "checking where to find the target gupc... " >&6; }
14016 if test "x${build}" != "x${host}" ; then
14017 if expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14018 # We already found the complete path
14019 ac_dir=`dirname $GUPC_FOR_TARGET`
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14021 $as_echo "pre-installed in $ac_dir" >&6; }
14022 else
14023 # Canadian cross, just use what we found
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14025 $as_echo "pre-installed" >&6; }
14027 else
14028 ok=yes
14029 case " ${configdirs} " in
14030 *" gcc "*) ;;
14031 *) ok=no ;;
14032 esac
14033 case ,${enable_languages}, in
14034 *,upc,*) ;;
14035 *) ok=no ;;
14036 esac
14037 if test $ok = yes; then
14038 # An in-tree tool is available and we can use it
14039 GUPC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gupc -B$$r/$(HOST_SUBDIR)/gcc/'
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14041 $as_echo "just compiled" >&6; }
14042 elif expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14043 # We already found the complete path
14044 ac_dir=`dirname $GUPC_FOR_TARGET`
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14046 $as_echo "pre-installed in $ac_dir" >&6; }
14047 elif test "x$target" = "x$host"; then
14048 # We can use an host tool
14049 GUPC_FOR_TARGET='$(GUPC)'
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14051 $as_echo "host tool" >&6; }
14052 else
14053 # We need a cross tool
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14055 $as_echo "pre-installed" >&6; }
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14060 $as_echo_n "checking where to find the target ld... " >&6; }
14061 if test "x${build}" != "x${host}" ; then
14062 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14063 # We already found the complete path
14064 ac_dir=`dirname $LD_FOR_TARGET`
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14066 $as_echo "pre-installed in $ac_dir" >&6; }
14067 else
14068 # Canadian cross, just use what we found
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14070 $as_echo "pre-installed" >&6; }
14072 else
14073 ok=yes
14074 case " ${configdirs} " in
14075 *" ld "*) ;;
14076 *) ok=no ;;
14077 esac
14079 if test $ok = yes; then
14080 # An in-tree tool is available and we can use it
14081 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14083 $as_echo "just compiled" >&6; }
14084 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14085 # We already found the complete path
14086 ac_dir=`dirname $LD_FOR_TARGET`
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14088 $as_echo "pre-installed in $ac_dir" >&6; }
14089 elif test "x$target" = "x$host"; then
14090 # We can use an host tool
14091 LD_FOR_TARGET='$(LD)'
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14093 $as_echo "host tool" >&6; }
14094 else
14095 # We need a cross tool
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14097 $as_echo "pre-installed" >&6; }
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14102 $as_echo_n "checking where to find the target lipo... " >&6; }
14103 if test "x${build}" != "x${host}" ; then
14104 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14105 # We already found the complete path
14106 ac_dir=`dirname $LIPO_FOR_TARGET`
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14108 $as_echo "pre-installed in $ac_dir" >&6; }
14109 else
14110 # Canadian cross, just use what we found
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14112 $as_echo "pre-installed" >&6; }
14114 else
14115 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
14117 ac_dir=`dirname $LIPO_FOR_TARGET`
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119 $as_echo "pre-installed in $ac_dir" >&6; }
14120 elif test "x$target" = "x$host"; then
14121 # We can use an host tool
14122 LIPO_FOR_TARGET='$(LIPO)'
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14124 $as_echo "host tool" >&6; }
14125 else
14126 # We need a cross tool
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14128 $as_echo "pre-installed" >&6; }
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14133 $as_echo_n "checking where to find the target nm... " >&6; }
14134 if test "x${build}" != "x${host}" ; then
14135 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14136 # We already found the complete path
14137 ac_dir=`dirname $NM_FOR_TARGET`
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14139 $as_echo "pre-installed in $ac_dir" >&6; }
14140 else
14141 # Canadian cross, just use what we found
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14143 $as_echo "pre-installed" >&6; }
14145 else
14146 ok=yes
14147 case " ${configdirs} " in
14148 *" binutils "*) ;;
14149 *) ok=no ;;
14150 esac
14152 if test $ok = yes; then
14153 # An in-tree tool is available and we can use it
14154 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14156 $as_echo "just compiled" >&6; }
14157 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14158 # We already found the complete path
14159 ac_dir=`dirname $NM_FOR_TARGET`
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14161 $as_echo "pre-installed in $ac_dir" >&6; }
14162 elif test "x$target" = "x$host"; then
14163 # We can use an host tool
14164 NM_FOR_TARGET='$(NM)'
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14166 $as_echo "host tool" >&6; }
14167 else
14168 # We need a cross tool
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14170 $as_echo "pre-installed" >&6; }
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14175 $as_echo_n "checking where to find the target objdump... " >&6; }
14176 if test "x${build}" != "x${host}" ; then
14177 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14178 # We already found the complete path
14179 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14181 $as_echo "pre-installed in $ac_dir" >&6; }
14182 else
14183 # Canadian cross, just use what we found
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14185 $as_echo "pre-installed" >&6; }
14187 else
14188 ok=yes
14189 case " ${configdirs} " in
14190 *" binutils "*) ;;
14191 *) ok=no ;;
14192 esac
14194 if test $ok = yes; then
14195 # An in-tree tool is available and we can use it
14196 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14198 $as_echo "just compiled" >&6; }
14199 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14200 # We already found the complete path
14201 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14203 $as_echo "pre-installed in $ac_dir" >&6; }
14204 elif test "x$target" = "x$host"; then
14205 # We can use an host tool
14206 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14208 $as_echo "host tool" >&6; }
14209 else
14210 # We need a cross tool
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14212 $as_echo "pre-installed" >&6; }
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14217 $as_echo_n "checking where to find the target ranlib... " >&6; }
14218 if test "x${build}" != "x${host}" ; then
14219 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14220 # We already found the complete path
14221 ac_dir=`dirname $RANLIB_FOR_TARGET`
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14223 $as_echo "pre-installed in $ac_dir" >&6; }
14224 else
14225 # Canadian cross, just use what we found
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14227 $as_echo "pre-installed" >&6; }
14229 else
14230 ok=yes
14231 case " ${configdirs} " in
14232 *" binutils "*) ;;
14233 *) ok=no ;;
14234 esac
14236 if test $ok = yes; then
14237 # An in-tree tool is available and we can use it
14238 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14240 $as_echo "just compiled" >&6; }
14241 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14242 # We already found the complete path
14243 ac_dir=`dirname $RANLIB_FOR_TARGET`
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14245 $as_echo "pre-installed in $ac_dir" >&6; }
14246 elif test "x$target" = "x$host"; then
14247 # We can use an host tool
14248 RANLIB_FOR_TARGET='$(RANLIB)'
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14250 $as_echo "host tool" >&6; }
14251 else
14252 # We need a cross tool
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14254 $as_echo "pre-installed" >&6; }
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14259 $as_echo_n "checking where to find the target readelf... " >&6; }
14260 if test "x${build}" != "x${host}" ; then
14261 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14262 # We already found the complete path
14263 ac_dir=`dirname $READELF_FOR_TARGET`
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14265 $as_echo "pre-installed in $ac_dir" >&6; }
14266 else
14267 # Canadian cross, just use what we found
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14269 $as_echo "pre-installed" >&6; }
14271 else
14272 ok=yes
14273 case " ${configdirs} " in
14274 *" binutils "*) ;;
14275 *) ok=no ;;
14276 esac
14278 if test $ok = yes; then
14279 # An in-tree tool is available and we can use it
14280 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14282 $as_echo "just compiled" >&6; }
14283 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14284 # We already found the complete path
14285 ac_dir=`dirname $READELF_FOR_TARGET`
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14287 $as_echo "pre-installed in $ac_dir" >&6; }
14288 elif test "x$target" = "x$host"; then
14289 # We can use an host tool
14290 READELF_FOR_TARGET='$(READELF)'
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14292 $as_echo "host tool" >&6; }
14293 else
14294 # We need a cross tool
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14296 $as_echo "pre-installed" >&6; }
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14301 $as_echo_n "checking where to find the target strip... " >&6; }
14302 if test "x${build}" != "x${host}" ; then
14303 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14304 # We already found the complete path
14305 ac_dir=`dirname $STRIP_FOR_TARGET`
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14307 $as_echo "pre-installed in $ac_dir" >&6; }
14308 else
14309 # Canadian cross, just use what we found
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14311 $as_echo "pre-installed" >&6; }
14313 else
14314 ok=yes
14315 case " ${configdirs} " in
14316 *" binutils "*) ;;
14317 *) ok=no ;;
14318 esac
14320 if test $ok = yes; then
14321 # An in-tree tool is available and we can use it
14322 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14324 $as_echo "just compiled" >&6; }
14325 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14326 # We already found the complete path
14327 ac_dir=`dirname $STRIP_FOR_TARGET`
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14329 $as_echo "pre-installed in $ac_dir" >&6; }
14330 elif test "x$target" = "x$host"; then
14331 # We can use an host tool
14332 STRIP_FOR_TARGET='$(STRIP)'
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14334 $as_echo "host tool" >&6; }
14335 else
14336 # We need a cross tool
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14338 $as_echo "pre-installed" >&6; }
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14343 $as_echo_n "checking where to find the target windres... " >&6; }
14344 if test "x${build}" != "x${host}" ; then
14345 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14346 # We already found the complete path
14347 ac_dir=`dirname $WINDRES_FOR_TARGET`
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14349 $as_echo "pre-installed in $ac_dir" >&6; }
14350 else
14351 # Canadian cross, just use what we found
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14353 $as_echo "pre-installed" >&6; }
14355 else
14356 ok=yes
14357 case " ${configdirs} " in
14358 *" binutils "*) ;;
14359 *) ok=no ;;
14360 esac
14362 if test $ok = yes; then
14363 # An in-tree tool is available and we can use it
14364 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14366 $as_echo "just compiled" >&6; }
14367 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14368 # We already found the complete path
14369 ac_dir=`dirname $WINDRES_FOR_TARGET`
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14371 $as_echo "pre-installed in $ac_dir" >&6; }
14372 elif test "x$target" = "x$host"; then
14373 # We can use an host tool
14374 WINDRES_FOR_TARGET='$(WINDRES)'
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14376 $as_echo "host tool" >&6; }
14377 else
14378 # We need a cross tool
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14380 $as_echo "pre-installed" >&6; }
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14385 $as_echo_n "checking where to find the target windmc... " >&6; }
14386 if test "x${build}" != "x${host}" ; then
14387 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14388 # We already found the complete path
14389 ac_dir=`dirname $WINDMC_FOR_TARGET`
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14391 $as_echo "pre-installed in $ac_dir" >&6; }
14392 else
14393 # Canadian cross, just use what we found
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14395 $as_echo "pre-installed" >&6; }
14397 else
14398 ok=yes
14399 case " ${configdirs} " in
14400 *" binutils "*) ;;
14401 *) ok=no ;;
14402 esac
14404 if test $ok = yes; then
14405 # An in-tree tool is available and we can use it
14406 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14408 $as_echo "just compiled" >&6; }
14409 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14410 # We already found the complete path
14411 ac_dir=`dirname $WINDMC_FOR_TARGET`
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14413 $as_echo "pre-installed in $ac_dir" >&6; }
14414 elif test "x$target" = "x$host"; then
14415 # We can use an host tool
14416 WINDMC_FOR_TARGET='$(WINDMC)'
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14418 $as_echo "host tool" >&6; }
14419 else
14420 # We need a cross tool
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14422 $as_echo "pre-installed" >&6; }
14430 # Certain tools may need extra flags.
14431 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14432 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14433 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14435 # When building target libraries, except in a Canadian cross, we use
14436 # the same toolchain as the compiler we just built.
14437 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14438 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14439 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14440 if test $host = $build; then
14441 case " $configdirs " in
14442 *" gcc "*)
14443 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14444 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14445 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14447 esac
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14455 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14456 # Check whether --enable-maintainer-mode was given.
14457 if test "${enable_maintainer_mode+set}" = set; then :
14458 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14459 else
14460 USE_MAINTAINER_MODE=no
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14464 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14467 if test "$USE_MAINTAINER_MODE" = yes; then
14468 MAINTAINER_MODE_TRUE=
14469 MAINTAINER_MODE_FALSE='#'
14470 else
14471 MAINTAINER_MODE_TRUE='#'
14472 MAINTAINER_MODE_FALSE=
14474 MAINT=$MAINTAINER_MODE_TRUE
14476 # ---------------------
14477 # GCC bootstrap support
14478 # ---------------------
14480 # Stage specific cflags for build.
14481 stage1_cflags="-g"
14482 case $build in
14483 vax-*-*)
14484 case ${GCC} in
14485 yes) stage1_cflags="-g -Wa,-J" ;;
14486 *) stage1_cflags="-g -J" ;;
14487 esac ;;
14488 esac
14492 # Enable --enable-checking in stage1 of the compiler.
14493 # Check whether --enable-stage1-checking was given.
14494 if test "${enable_stage1_checking+set}" = set; then :
14495 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14496 else
14497 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14498 stage1_checking=--enable-checking=yes,types
14499 else
14500 stage1_checking=--enable-checking=$enable_checking,types
14506 # Enable -Werror in bootstrap stage2 and later.
14507 # Check whether --enable-werror was given.
14508 if test "${enable_werror+set}" = set; then :
14509 enableval=$enable_werror;
14510 else
14511 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14512 enable_werror=yes
14513 else
14514 enable_werror=no
14518 case ${enable_werror} in
14519 yes) stage2_werror_flag="--enable-werror-always" ;;
14520 *) stage2_werror_flag="" ;;
14521 esac
14524 # Specify what files to not compare during bootstrap.
14526 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14527 case "$target" in
14528 hppa*64*-*-hpux*) ;;
14529 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14530 esac
14533 ac_config_files="$ac_config_files Makefile"
14535 cat >confcache <<\_ACEOF
14536 # This file is a shell script that caches the results of configure
14537 # tests run on this system so they can be shared between configure
14538 # scripts and configure runs, see configure's option --config-cache.
14539 # It is not useful on other systems. If it contains results you don't
14540 # want to keep, you may remove or edit it.
14542 # config.status only pays attention to the cache file if you give it
14543 # the --recheck option to rerun configure.
14545 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14546 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14547 # following values.
14549 _ACEOF
14551 # The following way of writing the cache mishandles newlines in values,
14552 # but we know of no workaround that is simple, portable, and efficient.
14553 # So, we kill variables containing newlines.
14554 # Ultrix sh set writes to stderr and can't be redirected directly,
14555 # and sets the high bit in the cache file unless we assign to the vars.
14557 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14558 eval ac_val=\$$ac_var
14559 case $ac_val in #(
14560 *${as_nl}*)
14561 case $ac_var in #(
14562 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14563 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14564 esac
14565 case $ac_var in #(
14566 _ | IFS | as_nl) ;; #(
14567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14568 *) { eval $ac_var=; unset $ac_var;} ;;
14569 esac ;;
14570 esac
14571 done
14573 (set) 2>&1 |
14574 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14575 *${as_nl}ac_space=\ *)
14576 # `set' does not quote correctly, so add quotes: double-quote
14577 # substitution turns \\\\ into \\, and sed turns \\ into \.
14578 sed -n \
14579 "s/'/'\\\\''/g;
14580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14581 ;; #(
14583 # `set' quotes correctly as required by POSIX, so do not add quotes.
14584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14586 esac |
14587 sort
14589 sed '
14590 /^ac_cv_env_/b end
14591 t clear
14592 :clear
14593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14594 t end
14595 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14596 :end' >>confcache
14597 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14598 if test -w "$cache_file"; then
14599 test "x$cache_file" != "x/dev/null" &&
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14601 $as_echo "$as_me: updating cache $cache_file" >&6;}
14602 cat confcache >$cache_file
14603 else
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14605 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14608 rm -f confcache
14610 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14611 # Let make expand exec_prefix.
14612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14614 # Transform confdefs.h into DEFS.
14615 # Protect against shell expansion while executing Makefile rules.
14616 # Protect against Makefile macro expansion.
14618 # If the first sed substitution is executed (which looks for macros that
14619 # take arguments), then branch to the quote section. Otherwise,
14620 # look for a macro that doesn't take arguments.
14621 ac_script='
14622 :mline
14623 /\\$/{
14625 s,\\\n,,
14626 b mline
14628 t clear
14629 :clear
14630 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14631 t quote
14632 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14633 t quote
14634 b any
14635 :quote
14636 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14637 s/\[/\\&/g
14638 s/\]/\\&/g
14639 s/\$/$$/g
14641 :any
14644 s/^\n//
14645 s/\n/ /g
14649 DEFS=`sed -n "$ac_script" confdefs.h`
14652 ac_libobjs=
14653 ac_ltlibobjs=
14654 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14655 # 1. Remove the extension, and $U if already installed.
14656 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14657 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14658 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14659 # will be set to the directory where LIBOBJS objects are built.
14660 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14661 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14662 done
14663 LIBOBJS=$ac_libobjs
14665 LTLIBOBJS=$ac_ltlibobjs
14669 : ${CONFIG_STATUS=./config.status}
14670 ac_write_fail=0
14671 ac_clean_files_save=$ac_clean_files
14672 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14674 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14675 as_write_fail=0
14676 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14677 #! $SHELL
14678 # Generated by $as_me.
14679 # Run this file to recreate the current configuration.
14680 # Compiler output produced by configure, useful for debugging
14681 # configure, is in config.log if it exists.
14683 debug=false
14684 ac_cs_recheck=false
14685 ac_cs_silent=false
14687 SHELL=\${CONFIG_SHELL-$SHELL}
14688 export SHELL
14689 _ASEOF
14690 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14691 ## -------------------- ##
14692 ## M4sh Initialization. ##
14693 ## -------------------- ##
14695 # Be more Bourne compatible
14696 DUALCASE=1; export DUALCASE # for MKS sh
14697 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14698 emulate sh
14699 NULLCMD=:
14700 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14701 # is contrary to our usage. Disable this feature.
14702 alias -g '${1+"$@"}'='"$@"'
14703 setopt NO_GLOB_SUBST
14704 else
14705 case `(set -o) 2>/dev/null` in #(
14706 *posix*) :
14707 set -o posix ;; #(
14708 *) :
14710 esac
14714 as_nl='
14716 export as_nl
14717 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14718 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14719 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14720 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14721 # Prefer a ksh shell builtin over an external printf program on Solaris,
14722 # but without wasting forks for bash or zsh.
14723 if test -z "$BASH_VERSION$ZSH_VERSION" \
14724 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14725 as_echo='print -r --'
14726 as_echo_n='print -rn --'
14727 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14728 as_echo='printf %s\n'
14729 as_echo_n='printf %s'
14730 else
14731 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14732 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14733 as_echo_n='/usr/ucb/echo -n'
14734 else
14735 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14736 as_echo_n_body='eval
14737 arg=$1;
14738 case $arg in #(
14739 *"$as_nl"*)
14740 expr "X$arg" : "X\\(.*\\)$as_nl";
14741 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14742 esac;
14743 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14745 export as_echo_n_body
14746 as_echo_n='sh -c $as_echo_n_body as_echo'
14748 export as_echo_body
14749 as_echo='sh -c $as_echo_body as_echo'
14752 # The user is always right.
14753 if test "${PATH_SEPARATOR+set}" != set; then
14754 PATH_SEPARATOR=:
14755 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14756 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14757 PATH_SEPARATOR=';'
14762 # IFS
14763 # We need space, tab and new line, in precisely that order. Quoting is
14764 # there to prevent editors from complaining about space-tab.
14765 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14766 # splitting by setting IFS to empty value.)
14767 IFS=" "" $as_nl"
14769 # Find who we are. Look in the path if we contain no directory separator.
14770 case $0 in #((
14771 *[\\/]* ) as_myself=$0 ;;
14772 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14773 for as_dir in $PATH
14775 IFS=$as_save_IFS
14776 test -z "$as_dir" && as_dir=.
14777 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14778 done
14779 IFS=$as_save_IFS
14782 esac
14783 # We did not find ourselves, most probably we were run as `sh COMMAND'
14784 # in which case we are not to be found in the path.
14785 if test "x$as_myself" = x; then
14786 as_myself=$0
14788 if test ! -f "$as_myself"; then
14789 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14790 exit 1
14793 # Unset variables that we do not need and which cause bugs (e.g. in
14794 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14795 # suppresses any "Segmentation fault" message there. '((' could
14796 # trigger a bug in pdksh 5.2.14.
14797 for as_var in BASH_ENV ENV MAIL MAILPATH
14798 do eval test x\${$as_var+set} = xset \
14799 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14800 done
14801 PS1='$ '
14802 PS2='> '
14803 PS4='+ '
14805 # NLS nuisances.
14806 LC_ALL=C
14807 export LC_ALL
14808 LANGUAGE=C
14809 export LANGUAGE
14811 # CDPATH.
14812 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14815 # as_fn_error ERROR [LINENO LOG_FD]
14816 # ---------------------------------
14817 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14818 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14819 # script with status $?, using 1 if that was 0.
14820 as_fn_error ()
14822 as_status=$?; test $as_status -eq 0 && as_status=1
14823 if test "$3"; then
14824 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14825 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14827 $as_echo "$as_me: error: $1" >&2
14828 as_fn_exit $as_status
14829 } # as_fn_error
14832 # as_fn_set_status STATUS
14833 # -----------------------
14834 # Set $? to STATUS, without forking.
14835 as_fn_set_status ()
14837 return $1
14838 } # as_fn_set_status
14840 # as_fn_exit STATUS
14841 # -----------------
14842 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14843 as_fn_exit ()
14845 set +e
14846 as_fn_set_status $1
14847 exit $1
14848 } # as_fn_exit
14850 # as_fn_unset VAR
14851 # ---------------
14852 # Portably unset VAR.
14853 as_fn_unset ()
14855 { eval $1=; unset $1;}
14857 as_unset=as_fn_unset
14858 # as_fn_append VAR VALUE
14859 # ----------------------
14860 # Append the text in VALUE to the end of the definition contained in VAR. Take
14861 # advantage of any shell optimizations that allow amortized linear growth over
14862 # repeated appends, instead of the typical quadratic growth present in naive
14863 # implementations.
14864 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14865 eval 'as_fn_append ()
14867 eval $1+=\$2
14869 else
14870 as_fn_append ()
14872 eval $1=\$$1\$2
14874 fi # as_fn_append
14876 # as_fn_arith ARG...
14877 # ------------------
14878 # Perform arithmetic evaluation on the ARGs, and store the result in the
14879 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14880 # must be portable across $(()) and expr.
14881 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14882 eval 'as_fn_arith ()
14884 as_val=$(( $* ))
14886 else
14887 as_fn_arith ()
14889 as_val=`expr "$@" || test $? -eq 1`
14891 fi # as_fn_arith
14894 if expr a : '\(a\)' >/dev/null 2>&1 &&
14895 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14896 as_expr=expr
14897 else
14898 as_expr=false
14901 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14902 as_basename=basename
14903 else
14904 as_basename=false
14907 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14908 as_dirname=dirname
14909 else
14910 as_dirname=false
14913 as_me=`$as_basename -- "$0" ||
14914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14915 X"$0" : 'X\(//\)$' \| \
14916 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14917 $as_echo X/"$0" |
14918 sed '/^.*\/\([^/][^/]*\)\/*$/{
14919 s//\1/
14922 /^X\/\(\/\/\)$/{
14923 s//\1/
14926 /^X\/\(\/\).*/{
14927 s//\1/
14930 s/.*/./; q'`
14932 # Avoid depending upon Character Ranges.
14933 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14934 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14935 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14936 as_cr_digits='0123456789'
14937 as_cr_alnum=$as_cr_Letters$as_cr_digits
14939 ECHO_C= ECHO_N= ECHO_T=
14940 case `echo -n x` in #(((((
14941 -n*)
14942 case `echo 'xy\c'` in
14943 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14944 xy) ECHO_C='\c';;
14945 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14946 ECHO_T=' ';;
14947 esac;;
14949 ECHO_N='-n';;
14950 esac
14952 rm -f conf$$ conf$$.exe conf$$.file
14953 if test -d conf$$.dir; then
14954 rm -f conf$$.dir/conf$$.file
14955 else
14956 rm -f conf$$.dir
14957 mkdir conf$$.dir 2>/dev/null
14959 if (echo >conf$$.file) 2>/dev/null; then
14960 if ln -s conf$$.file conf$$ 2>/dev/null; then
14961 as_ln_s='ln -s'
14962 # ... but there are two gotchas:
14963 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14964 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14965 # In both cases, we have to default to `cp -p'.
14966 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14967 as_ln_s='cp -p'
14968 elif ln conf$$.file conf$$ 2>/dev/null; then
14969 as_ln_s=ln
14970 else
14971 as_ln_s='cp -p'
14973 else
14974 as_ln_s='cp -p'
14976 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14977 rmdir conf$$.dir 2>/dev/null
14980 # as_fn_mkdir_p
14981 # -------------
14982 # Create "$as_dir" as a directory, including parents if necessary.
14983 as_fn_mkdir_p ()
14986 case $as_dir in #(
14987 -*) as_dir=./$as_dir;;
14988 esac
14989 test -d "$as_dir" || eval $as_mkdir_p || {
14990 as_dirs=
14991 while :; do
14992 case $as_dir in #(
14993 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14994 *) as_qdir=$as_dir;;
14995 esac
14996 as_dirs="'$as_qdir' $as_dirs"
14997 as_dir=`$as_dirname -- "$as_dir" ||
14998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14999 X"$as_dir" : 'X\(//\)[^/]' \| \
15000 X"$as_dir" : 'X\(//\)$' \| \
15001 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15002 $as_echo X"$as_dir" |
15003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15004 s//\1/
15007 /^X\(\/\/\)[^/].*/{
15008 s//\1/
15011 /^X\(\/\/\)$/{
15012 s//\1/
15015 /^X\(\/\).*/{
15016 s//\1/
15019 s/.*/./; q'`
15020 test -d "$as_dir" && break
15021 done
15022 test -z "$as_dirs" || eval "mkdir $as_dirs"
15023 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15026 } # as_fn_mkdir_p
15027 if mkdir -p . 2>/dev/null; then
15028 as_mkdir_p='mkdir -p "$as_dir"'
15029 else
15030 test -d ./-p && rmdir ./-p
15031 as_mkdir_p=false
15034 if test -x / >/dev/null 2>&1; then
15035 as_test_x='test -x'
15036 else
15037 if ls -dL / >/dev/null 2>&1; then
15038 as_ls_L_option=L
15039 else
15040 as_ls_L_option=
15042 as_test_x='
15043 eval sh -c '\''
15044 if test -d "$1"; then
15045 test -d "$1/.";
15046 else
15047 case $1 in #(
15048 -*)set "./$1";;
15049 esac;
15050 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15051 ???[sx]*):;;*)false;;esac;fi
15052 '\'' sh
15055 as_executable_p=$as_test_x
15057 # Sed expression to map a string onto a valid CPP name.
15058 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15060 # Sed expression to map a string onto a valid variable name.
15061 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15064 exec 6>&1
15065 ## ----------------------------------- ##
15066 ## Main body of $CONFIG_STATUS script. ##
15067 ## ----------------------------------- ##
15068 _ASEOF
15069 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15072 # Save the log message, to keep $0 and so on meaningful, and to
15073 # report actual input values of CONFIG_FILES etc. instead of their
15074 # values after options handling.
15075 ac_log="
15076 This file was extended by $as_me, which was
15077 generated by GNU Autoconf 2.64. Invocation command line was
15079 CONFIG_FILES = $CONFIG_FILES
15080 CONFIG_HEADERS = $CONFIG_HEADERS
15081 CONFIG_LINKS = $CONFIG_LINKS
15082 CONFIG_COMMANDS = $CONFIG_COMMANDS
15083 $ $0 $@
15085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15088 _ACEOF
15090 case $ac_config_files in *"
15091 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15092 esac
15096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15097 # Files that config.status was made for.
15098 config_files="$ac_config_files"
15100 _ACEOF
15102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15103 ac_cs_usage="\
15104 \`$as_me' instantiates files and other configuration actions
15105 from templates according to the current configuration. Unless the files
15106 and actions are specified as TAGs, all are instantiated by default.
15108 Usage: $0 [OPTION]... [TAG]...
15110 -h, --help print this help, then exit
15111 -V, --version print version number and configuration settings, then exit
15112 -q, --quiet, --silent
15113 do not print progress messages
15114 -d, --debug don't remove temporary files
15115 --recheck update $as_me by reconfiguring in the same conditions
15116 --file=FILE[:TEMPLATE]
15117 instantiate the configuration file FILE
15119 Configuration files:
15120 $config_files
15122 Report bugs to the package provider."
15124 _ACEOF
15125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15126 ac_cs_version="\\
15127 config.status
15128 configured by $0, generated by GNU Autoconf 2.64,
15129 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15131 Copyright (C) 2009 Free Software Foundation, Inc.
15132 This config.status script is free software; the Free Software Foundation
15133 gives unlimited permission to copy, distribute and modify it."
15135 ac_pwd='$ac_pwd'
15136 srcdir='$srcdir'
15137 INSTALL='$INSTALL'
15138 AWK='$AWK'
15139 test -n "\$AWK" || AWK=awk
15140 _ACEOF
15142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15143 # The default lists apply if the user does not specify any file.
15144 ac_need_defaults=:
15145 while test $# != 0
15147 case $1 in
15148 --*=*)
15149 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15150 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15151 ac_shift=:
15154 ac_option=$1
15155 ac_optarg=$2
15156 ac_shift=shift
15158 esac
15160 case $ac_option in
15161 # Handling of the options.
15162 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15163 ac_cs_recheck=: ;;
15164 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15165 $as_echo "$ac_cs_version"; exit ;;
15166 --debug | --debu | --deb | --de | --d | -d )
15167 debug=: ;;
15168 --file | --fil | --fi | --f )
15169 $ac_shift
15170 case $ac_optarg in
15171 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15172 esac
15173 as_fn_append CONFIG_FILES " '$ac_optarg'"
15174 ac_need_defaults=false;;
15175 --he | --h | --help | --hel | -h )
15176 $as_echo "$ac_cs_usage"; exit ;;
15177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15178 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15179 ac_cs_silent=: ;;
15181 # This is an error.
15182 -*) as_fn_error "unrecognized option: \`$1'
15183 Try \`$0 --help' for more information." ;;
15185 *) as_fn_append ac_config_targets " $1"
15186 ac_need_defaults=false ;;
15188 esac
15189 shift
15190 done
15192 ac_configure_extra_args=
15194 if $ac_cs_silent; then
15195 exec 6>/dev/null
15196 ac_configure_extra_args="$ac_configure_extra_args --silent"
15199 _ACEOF
15200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15201 if \$ac_cs_recheck; then
15202 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15203 shift
15204 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15205 CONFIG_SHELL='$SHELL'
15206 export CONFIG_SHELL
15207 exec "\$@"
15210 _ACEOF
15211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15212 exec 5>>config.log
15214 echo
15215 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15216 ## Running $as_me. ##
15217 _ASBOX
15218 $as_echo "$ac_log"
15219 } >&5
15221 _ACEOF
15222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15224 # INIT-COMMANDS
15226 extrasub_build="$extrasub_build"
15227 extrasub_host="$extrasub_host"
15228 extrasub_target="$extrasub_target"
15230 _ACEOF
15232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15234 # Handling of arguments.
15235 for ac_config_target in $ac_config_targets
15237 case $ac_config_target in
15238 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15240 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15241 esac
15242 done
15245 # If the user did not use the arguments to specify the items to instantiate,
15246 # then the envvar interface is used. Set only those that are not.
15247 # We use the long form for the default assignment because of an extremely
15248 # bizarre bug on SunOS 4.1.3.
15249 if $ac_need_defaults; then
15250 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15253 # Have a temporary directory for convenience. Make it in the build tree
15254 # simply because there is no reason against having it here, and in addition,
15255 # creating and moving files from /tmp can sometimes cause problems.
15256 # Hook for its removal unless debugging.
15257 # Note that there is a small window in which the directory will not be cleaned:
15258 # after its creation but before its name has been assigned to `$tmp'.
15259 $debug ||
15261 tmp=
15262 trap 'exit_status=$?
15263 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15265 trap 'as_fn_exit 1' 1 2 13 15
15267 # Create a (secure) tmp directory for tmp files.
15270 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15271 test -n "$tmp" && test -d "$tmp"
15272 } ||
15274 tmp=./conf$$-$RANDOM
15275 (umask 077 && mkdir "$tmp")
15276 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15278 # Set up the scripts for CONFIG_FILES section.
15279 # No need to generate them if there are no CONFIG_FILES.
15280 # This happens for instance with `./config.status config.h'.
15281 if test -n "$CONFIG_FILES"; then
15283 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15284 ac_cs_awk_getline=:
15285 ac_cs_awk_pipe_init=
15286 ac_cs_awk_read_file='
15287 while ((getline aline < (F[key])) > 0)
15288 print(aline)
15289 close(F[key])'
15290 ac_cs_awk_pipe_fini=
15291 else
15292 ac_cs_awk_getline=false
15293 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15294 ac_cs_awk_read_file='
15295 print "|#_!!_#|"
15296 print "cat " F[key] " &&"
15297 '$ac_cs_awk_pipe_init
15298 # The final `:' finishes the AND list.
15299 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15301 ac_cr=`echo X | tr X '\015'`
15302 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15303 # But we know of no other shell where ac_cr would be empty at this
15304 # point, so we can use a bashism as a fallback.
15305 if test "x$ac_cr" = x; then
15306 eval ac_cr=\$\'\\r\'
15308 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15309 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15310 ac_cs_awk_cr='\r'
15311 else
15312 ac_cs_awk_cr=$ac_cr
15315 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15316 _ACEOF
15318 # Create commands to substitute file output variables.
15320 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15321 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15322 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15323 echo "_ACAWK" &&
15324 echo "_ACEOF"
15325 } >conf$$files.sh &&
15326 . ./conf$$files.sh ||
15327 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15328 rm -f conf$$files.sh
15331 echo "cat >conf$$subs.awk <<_ACEOF" &&
15332 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15333 echo "_ACEOF"
15334 } >conf$$subs.sh ||
15335 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15336 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15337 ac_delim='%!_!# '
15338 for ac_last_try in false false false false false :; do
15339 . ./conf$$subs.sh ||
15340 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15342 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15343 if test $ac_delim_n = $ac_delim_num; then
15344 break
15345 elif $ac_last_try; then
15346 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15347 else
15348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15350 done
15351 rm -f conf$$subs.sh
15353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15354 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15355 _ACEOF
15356 sed -n '
15358 s/^/S["/; s/!.*/"]=/
15361 s/^[^!]*!//
15362 :repl
15363 t repl
15364 s/'"$ac_delim"'$//
15365 t delim
15368 s/\(.\{148\}\).*/\1/
15369 t more1
15370 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15373 b repl
15374 :more1
15375 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15378 s/.\{148\}//
15379 t nl
15380 :delim
15382 s/\(.\{148\}\).*/\1/
15383 t more2
15384 s/["\\]/\\&/g; s/^/"/; s/$/"/
15387 :more2
15388 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15391 s/.\{148\}//
15392 t delim
15393 ' <conf$$subs.awk | sed '
15394 /^[^""]/{
15396 s/\n//
15398 ' >>$CONFIG_STATUS || ac_write_fail=1
15399 rm -f conf$$subs.awk
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 _ACAWK
15402 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15403 for (key in S) S_is_set[key] = 1
15404 FS = "\a"
15405 \$ac_cs_awk_pipe_init
15408 line = $ 0
15409 nfields = split(line, field, "@")
15410 substed = 0
15411 len = length(field[1])
15412 for (i = 2; i < nfields; i++) {
15413 key = field[i]
15414 keylen = length(key)
15415 if (S_is_set[key]) {
15416 value = S[key]
15417 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15418 len += length(value) + length(field[++i])
15419 substed = 1
15420 } else
15421 len += 1 + keylen
15423 if (nfields == 3 && !substed) {
15424 key = field[2]
15425 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15426 \$ac_cs_awk_read_file
15427 next
15430 print line
15432 \$ac_cs_awk_pipe_fini
15433 _ACAWK
15434 _ACEOF
15435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15436 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15437 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15438 else
15440 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15441 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15442 _ACEOF
15444 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15445 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15446 # trailing colons and then remove the whole line if VPATH becomes empty
15447 # (actually we leave an empty line to preserve line numbers).
15448 if test "x$srcdir" = x.; then
15449 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15450 s/:*\$(srcdir):*/:/
15451 s/:*\${srcdir}:*/:/
15452 s/:*@srcdir@:*/:/
15453 s/^\([^=]*=[ ]*\):*/\1/
15454 s/:*$//
15455 s/^[^=]*=[ ]*$//
15459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15460 fi # test -n "$CONFIG_FILES"
15463 eval set X " :F $CONFIG_FILES "
15464 shift
15465 for ac_tag
15467 case $ac_tag in
15468 :[FHLC]) ac_mode=$ac_tag; continue;;
15469 esac
15470 case $ac_mode$ac_tag in
15471 :[FHL]*:*);;
15472 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15473 :[FH]-) ac_tag=-:-;;
15474 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15475 esac
15476 ac_save_IFS=$IFS
15477 IFS=:
15478 set x $ac_tag
15479 IFS=$ac_save_IFS
15480 shift
15481 ac_file=$1
15482 shift
15484 case $ac_mode in
15485 :L) ac_source=$1;;
15486 :[FH])
15487 ac_file_inputs=
15488 for ac_f
15490 case $ac_f in
15491 -) ac_f="$tmp/stdin";;
15492 *) # Look for the file first in the build tree, then in the source tree
15493 # (if the path is not absolute). The absolute path cannot be DOS-style,
15494 # because $ac_f cannot contain `:'.
15495 test -f "$ac_f" ||
15496 case $ac_f in
15497 [\\/$]*) false;;
15498 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15499 esac ||
15500 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15501 esac
15502 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15503 as_fn_append ac_file_inputs " '$ac_f'"
15504 done
15506 # Let's still pretend it is `configure' which instantiates (i.e., don't
15507 # use $as_me), people would be surprised to read:
15508 # /* config.h. Generated by config.status. */
15509 configure_input='Generated from '`
15510 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15511 `' by configure.'
15512 if test x"$ac_file" != x-; then
15513 configure_input="$ac_file. $configure_input"
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15515 $as_echo "$as_me: creating $ac_file" >&6;}
15517 # Neutralize special characters interpreted by sed in replacement strings.
15518 case $configure_input in #(
15519 *\&* | *\|* | *\\* )
15520 ac_sed_conf_input=`$as_echo "$configure_input" |
15521 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15522 *) ac_sed_conf_input=$configure_input;;
15523 esac
15525 case $ac_tag in
15526 *:-:* | *:-) cat >"$tmp/stdin" \
15527 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15528 esac
15530 esac
15532 ac_dir=`$as_dirname -- "$ac_file" ||
15533 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15534 X"$ac_file" : 'X\(//\)[^/]' \| \
15535 X"$ac_file" : 'X\(//\)$' \| \
15536 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15537 $as_echo X"$ac_file" |
15538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15539 s//\1/
15542 /^X\(\/\/\)[^/].*/{
15543 s//\1/
15546 /^X\(\/\/\)$/{
15547 s//\1/
15550 /^X\(\/\).*/{
15551 s//\1/
15554 s/.*/./; q'`
15555 as_dir="$ac_dir"; as_fn_mkdir_p
15556 ac_builddir=.
15558 case "$ac_dir" in
15559 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15561 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15562 # A ".." for each directory in $ac_dir_suffix.
15563 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15564 case $ac_top_builddir_sub in
15565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15567 esac ;;
15568 esac
15569 ac_abs_top_builddir=$ac_pwd
15570 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15571 # for backward compatibility:
15572 ac_top_builddir=$ac_top_build_prefix
15574 case $srcdir in
15575 .) # We are building in place.
15576 ac_srcdir=.
15577 ac_top_srcdir=$ac_top_builddir_sub
15578 ac_abs_top_srcdir=$ac_pwd ;;
15579 [\\/]* | ?:[\\/]* ) # Absolute name.
15580 ac_srcdir=$srcdir$ac_dir_suffix;
15581 ac_top_srcdir=$srcdir
15582 ac_abs_top_srcdir=$srcdir ;;
15583 *) # Relative name.
15584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15585 ac_top_srcdir=$ac_top_build_prefix$srcdir
15586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15587 esac
15588 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15591 case $ac_mode in
15594 # CONFIG_FILE
15597 case $INSTALL in
15598 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15599 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15600 esac
15601 _ACEOF
15603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15604 # If the template does not know about datarootdir, expand it.
15605 # FIXME: This hack should be removed a few years after 2.60.
15606 ac_datarootdir_hack=; ac_datarootdir_seen=
15607 ac_sed_dataroot='
15608 /datarootdir/ {
15612 /@datadir@/p
15613 /@docdir@/p
15614 /@infodir@/p
15615 /@localedir@/p
15616 /@mandir@/p'
15617 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15618 *datarootdir*) ac_datarootdir_seen=yes;;
15619 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15621 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15622 _ACEOF
15623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15624 ac_datarootdir_hack='
15625 s&@datadir@&$datadir&g
15626 s&@docdir@&$docdir&g
15627 s&@infodir@&$infodir&g
15628 s&@localedir@&$localedir&g
15629 s&@mandir@&$mandir&g
15630 s&\\\${datarootdir}&$datarootdir&g' ;;
15631 esac
15632 _ACEOF
15634 # Neutralize VPATH when `$srcdir' = `.'.
15635 # Shell code in configure.ac might set extrasub.
15636 # FIXME: do we really want to maintain this feature?
15637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15638 ac_sed_extra="$ac_vpsub
15639 $extrasub
15640 _ACEOF
15641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15644 s|@configure_input@|$ac_sed_conf_input|;t t
15645 s&@top_builddir@&$ac_top_builddir_sub&;t t
15646 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15647 s&@srcdir@&$ac_srcdir&;t t
15648 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15649 s&@top_srcdir@&$ac_top_srcdir&;t t
15650 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15651 s&@builddir@&$ac_builddir&;t t
15652 s&@abs_builddir@&$ac_abs_builddir&;t t
15653 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15654 s&@INSTALL@&$ac_INSTALL&;t t
15655 $ac_datarootdir_hack
15657 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15658 if $ac_cs_awk_getline; then
15659 $AWK -f "$tmp/subs.awk"
15660 else
15661 $AWK -f "$tmp/subs.awk" | $SHELL
15662 fi >$tmp/out \
15663 || as_fn_error "could not create $ac_file" "$LINENO" 5
15665 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15666 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15669 which seems to be undefined. Please make sure it is defined." >&5
15670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15671 which seems to be undefined. Please make sure it is defined." >&2;}
15673 rm -f "$tmp/stdin"
15674 case $ac_file in
15675 -) cat "$tmp/out" && rm -f "$tmp/out";;
15676 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15677 esac \
15678 || as_fn_error "could not create $ac_file" "$LINENO" 5
15683 esac
15686 case $ac_file$ac_mode in
15687 "Makefile":F) sed "$extrasub_build" Makefile |
15688 sed "$extrasub_host" |
15689 sed "$extrasub_target" > mf$$
15690 mv -f mf$$ Makefile ;;
15692 esac
15693 done # for ac_tag
15696 as_fn_exit 0
15697 _ACEOF
15698 ac_clean_files=$ac_clean_files_save
15700 test $ac_write_fail = 0 ||
15701 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15704 # configure is writing to config.log, and then calls config.status.
15705 # config.status does its own redirection, appending to config.log.
15706 # Unfortunately, on DOS this fails, as config.log is still kept open
15707 # by configure, so config.status won't be able to write to it; its
15708 # output is simply discarded. So we exec the FD to /dev/null,
15709 # effectively closing config.log, so it can be properly (re)opened and
15710 # appended to by config.status. When coming back to configure, we
15711 # need to make the FD available again.
15712 if test "$no_create" != yes; then
15713 ac_cs_success=:
15714 ac_config_status_args=
15715 test "$silent" = yes &&
15716 ac_config_status_args="$ac_config_status_args --quiet"
15717 exec 5>/dev/null
15718 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15719 exec 5>>config.log
15720 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15721 # would make configure fail if this is the last instruction.
15722 $ac_cs_success || as_fn_exit $?
15724 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15726 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}