In gcc/objc/: 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
[official-gcc.git] / configure
blobc463e198d0a9df24aa65b4afc183598c6067774b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 RANLIB_FOR_TARGET
574 OBJDUMP_FOR_TARGET
575 NM_FOR_TARGET
576 LIPO_FOR_TARGET
577 LD_FOR_TARGET
578 DLLTOOL_FOR_TARGET
579 AS_FOR_TARGET
580 AR_FOR_TARGET
581 GOC_FOR_TARGET
582 GFORTRAN_FOR_TARGET
583 GCJ_FOR_TARGET
584 GCC_FOR_TARGET
585 CXX_FOR_TARGET
586 CC_FOR_TARGET
587 OBJDUMP
588 OBJCOPY
589 WINDMC
590 WINDRES
591 STRIP
592 RANLIB
594 LIPO
596 DLLTOOL
599 RUNTEST
600 EXPECT
601 MAKEINFO
602 FLEX
605 BISON
606 YACC
607 config_shell
608 WINDRES_FOR_BUILD
609 WINDMC_FOR_BUILD
610 RANLIB_FOR_BUILD
611 NM_FOR_BUILD
612 LD_FOR_BUILD
613 LDFLAGS_FOR_BUILD
614 GOC_FOR_BUILD
615 GFORTRAN_FOR_BUILD
616 GCJ_FOR_BUILD
617 DLLTOOL_FOR_BUILD
618 CXX_FOR_BUILD
619 CXXFLAGS_FOR_BUILD
620 CFLAGS_FOR_BUILD
621 CC_FOR_BUILD
622 AS_FOR_BUILD
623 AR_FOR_BUILD
624 target_configdirs
625 configdirs
626 build_configdirs
627 INSTALL_GDB_TK
628 GDB_TK
629 CONFIGURE_GDB_TK
630 build_tooldir
631 tooldir
632 GCC_SHLIB_SUBDIR
633 RPATH_ENVVAR
634 target_configargs
635 host_configargs
636 build_configargs
637 BUILD_CONFIG
638 CXXFLAGS_FOR_TARGET
639 CFLAGS_FOR_TARGET
640 DEBUG_PREFIX_CFLAGS_FOR_TARGET
641 SYSROOT_CFLAGS_FOR_TARGET
642 stage1_languages
643 extra_host_libiberty_configure_flags
644 clooginc
645 clooglibs
646 pplinc
647 ppllibs
648 poststage1_ldflags
649 poststage1_libs
650 stage1_libs
651 stage1_ldflags
652 extra_mpc_mpfr_configure_flags
653 extra_mpc_gmp_configure_flags
654 extra_mpfr_configure_flags
655 gmpinc
656 gmplibs
657 do_compare
658 GNATMAKE
659 GNATBIND
660 ac_ct_CXX
661 CXXFLAGS
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
670 target_subdir
671 host_subdir
672 build_subdir
673 build_libsubdir
676 LN_S
678 INSTALL_DATA
679 INSTALL_SCRIPT
680 INSTALL_PROGRAM
681 target_os
682 target_vendor
683 target_cpu
684 target
685 host_os
686 host_vendor
687 host_cpu
688 host
689 target_noncanonical
690 host_noncanonical
691 build_noncanonical
692 build_os
693 build_vendor
694 build_cpu
695 build
696 TOPLEVEL_CONFIGURE_ARGUMENTS
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files='serialization_dependencies
736 host_makefile_frag
737 target_makefile_frag
738 alphaieee_frag
739 ospace_frag'
740 ac_user_opts='
741 enable_option_checking
742 with_build_libsubdir
743 enable_gold
744 enable_libada
745 enable_libssp
746 enable_build_with_cxx
747 with_mpc
748 with_mpc_include
749 with_mpc_lib
750 with_mpfr_dir
751 with_mpfr
752 with_mpfr_include
753 with_mpfr_lib
754 with_gmp_dir
755 with_gmp
756 with_gmp_include
757 with_gmp_lib
758 with_host_libstdcxx
759 with_stage1_ldflags
760 with_stage1_libs
761 with_boot_libs
762 with_boot_ldflags
763 with_ppl
764 with_ppl_include
765 with_ppl_lib
766 enable_ppl_version_check
767 with_cloog
768 with_cloog_include
769 with_cloog_lib
770 enable_cloog_backend
771 enable_cloog_version_check
772 enable_lto
773 enable_stage1_languages
774 enable_objc_gc
775 with_build_sysroot
776 with_debug_prefix_map
777 enable_bootstrap
778 with_build_config
779 enable_serial_configure
780 with_build_time_tools
781 enable_maintainer_mode
782 enable_stage1_checking
783 enable_werror
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
794 CXXFLAGS
796 build_configargs
797 host_configargs
798 target_configargs
801 DLLTOOL
803 LIPO
805 RANLIB
806 STRIP
807 WINDRES
808 WINDMC
809 OBJCOPY
810 OBJDUMP
811 CC_FOR_TARGET
812 CXX_FOR_TARGET
813 GCC_FOR_TARGET
814 GCJ_FOR_TARGET
815 GFORTRAN_FOR_TARGET
816 GOC_FOR_TARGET
817 AR_FOR_TARGET
818 AS_FOR_TARGET
819 DLLTOOL_FOR_TARGET
820 LD_FOR_TARGET
821 LIPO_FOR_TARGET
822 NM_FOR_TARGET
823 OBJDUMP_FOR_TARGET
824 RANLIB_FOR_TARGET
825 STRIP_FOR_TARGET
826 WINDRES_FOR_TARGET
827 WINDMC_FOR_TARGET'
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
878 ac_prev=
879 ac_dashdash=
880 for ac_option
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
898 ac_dashdash=yes ;;
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
917 --config-cache | -C)
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=\$ac_optarg ;;
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1052 no_create=yes ;;
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
1121 sbindir=$ac_optarg ;;
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
1132 sharedstatedir=$ac_optarg ;;
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
1137 site=$ac_optarg ;;
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1162 -with-* | --with-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=\$ac_optarg ;;
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1212 -*) as_fn_error "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information."
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1227 # FIXME: should be removed in autoconf 3.0.
1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234 esac
1235 done
1237 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error "missing argument to $ac_option"
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1269 done
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1283 If a cross compiler is detected then cross compile mode will be used." >&2
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292 test "$silent" = yes && exec 6>/dev/null
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error "pwd does not report name of working directory"
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1321 /^X\(\/\/\)$/{
1322 s//\1/
1325 /^X\(\/\).*/{
1326 s//\1/
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1334 else
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 case $srcdir in
1356 *" "*)
1357 as_fn_error "path to source, $srcdir, contains spaces"
1359 esac
1360 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1370 # Report the --help message.
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376 \`configure' configures this package to adapt to many kinds of systems.
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1383 Defaults for the options are specified in brackets.
1385 Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1407 For better control, use the options below.
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1431 cat <<\_ACEOF
1433 Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438 System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 --target=TARGET configure for building compilers for TARGET [HOST]
1442 _ACEOF
1445 if test -n "$ac_init_help"; then
1447 cat <<\_ACEOF
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
1454 --enable-libada build libada directory
1455 --enable-libssp build libssp directory
1456 --enable-build-with-cxx build with C++ compiler instead of C compiler
1457 --disable-ppl-version-check disable check for PPL version
1458 --enable-cloog-backend[=BACKEND]
1459 set the CLooG BACKEND used to either isl, ppl or
1460 ppl-legacy (default)
1461 --disable-cloog-version-check
1462 disable check for CLooG version
1463 --enable-lto enable link time optimization support
1464 --enable-stage1-languages[=all] choose additional languages to build during
1465 stage1. Mostly useful for compiler development.
1466 --enable-objc-gc enable use of Boehm's garbage collector with the
1467 GNU Objective-C runtime
1468 --enable-bootstrap enable bootstrapping [yes if native build]
1469 --enable-serial-[{host,target,build}-]configure
1470 force sequential configuration of
1471 sub-packages for the host, target or build
1472 machine, or all sub-packages
1473 --enable-maintainer-mode enable make rules and dependencies not useful
1474 (and sometimes confusing) to the casual installer
1475 --enable-stage1-checking[=all] choose additional checking for stage1
1476 of the compiler
1477 --enable-werror enable -Werror in bootstrap stage2 and later
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-build-libsubdir=DIR Directory where to find libraries for build system
1483 --with-mpc=PATH specify prefix directory for installed MPC package.
1484 Equivalent to --with-mpc-include=PATH/include
1485 plus --with-mpc-lib=PATH/lib
1486 --with-mpc-include=PATH
1487 specify directory for installed MPC include files
1488 --with-mpc-lib=PATH specify directory for the installed MPC library
1489 --with-mpfr-dir=PATH this option has been REMOVED
1490 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1491 Equivalent to --with-mpfr-include=PATH/include
1492 plus --with-mpfr-lib=PATH/lib
1493 --with-mpfr-include=PATH
1494 specify directory for installed MPFR include files
1495 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1496 --with-gmp-dir=PATH this option has been REMOVED
1497 --with-gmp=PATH specify prefix directory for the installed GMP package.
1498 Equivalent to --with-gmp-include=PATH/include
1499 plus --with-gmp-lib=PATH/lib
1500 --with-gmp-include=PATH specify directory for installed GMP include files
1501 --with-gmp-lib=PATH specify directory for the installed GMP library
1502 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1503 when linking with PPL
1504 --with-stage1-ldflags=FLAGS Linker flags for stage1
1505 -with-stage1-libs=LIBS Libraries for stage1
1506 --with-boot-libs=LIBS Libraries for stage2 and later
1507 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1508 --with-ppl=PATH Specify prefix directory for the installed PPL package
1509 Equivalent to --with-ppl-include=PATH/include
1510 plus --with-ppl-lib=PATH/lib
1511 --with-ppl-include=PATH Specify directory for installed PPL include files
1512 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1513 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1514 package. Equivalent to
1515 --with-cloog-include=PATH/include plus
1516 --with-cloog-lib=PATH/lib
1517 --with-cloog-include=PATH
1518 Specify directory for installed CLooG include files
1519 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1520 library
1521 --with-build-sysroot=SYSROOT
1522 use sysroot as the system root during the build
1523 --with-debug-prefix-map='A=B C=D ...'
1524 map A to B, C to D ... in debug information
1525 --with-build-config='NAME NAME2...'
1526 Use config/NAME.mk build configuration
1527 --with-build-time-tools=PATH
1528 use given path to find target tools during the build
1530 Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
1538 CXX C++ compiler command
1539 CXXFLAGS C++ compiler flags
1540 build_configargs
1541 additional configure arguments for build directories
1542 host_configargs
1543 additional configure arguments for host directories
1544 target_configargs
1545 additional configure arguments for target directories
1546 AR AR for the host
1547 AS AS for the host
1548 DLLTOOL DLLTOOL for the host
1549 LD LD for the host
1550 LIPO LIPO for the host
1551 NM NM for the host
1552 RANLIB RANLIB for the host
1553 STRIP STRIP for the host
1554 WINDRES WINDRES for the host
1555 WINDMC WINDMC for the host
1556 OBJCOPY OBJCOPY for the host
1557 OBJDUMP OBJDUMP for the host
1558 CC_FOR_TARGET
1559 CC for the target
1560 CXX_FOR_TARGET
1561 CXX for the target
1562 GCC_FOR_TARGET
1563 GCC for the target
1564 GCJ_FOR_TARGET
1565 GCJ for the target
1566 GFORTRAN_FOR_TARGET
1567 GFORTRAN for the target
1568 GOC_FOR_TARGET
1569 GOC for the target
1570 AR_FOR_TARGET
1571 AR for the target
1572 AS_FOR_TARGET
1573 AS for the target
1574 DLLTOOL_FOR_TARGET
1575 DLLTOOL for the target
1576 LD_FOR_TARGET
1577 LD for the target
1578 LIPO_FOR_TARGET
1579 LIPO for the target
1580 NM_FOR_TARGET
1581 NM for the target
1582 OBJDUMP_FOR_TARGET
1583 OBJDUMP for the target
1584 RANLIB_FOR_TARGET
1585 RANLIB for the target
1586 STRIP_FOR_TARGET
1587 STRIP for the target
1588 WINDRES_FOR_TARGET
1589 WINDRES for the target
1590 WINDMC_FOR_TARGET
1591 WINDMC for the target
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1596 Report bugs to the package provider.
1597 _ACEOF
1598 ac_status=$?
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606 continue
1607 ac_builddir=.
1609 case "$ac_dir" in
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619 esac
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1625 case $srcdir in
1626 .) # We are building in place.
1627 ac_srcdir=.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 esac
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1649 else
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1653 done
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658 cat <<\_ACEOF
1659 configure
1660 generated by GNU Autoconf 2.64
1662 Copyright (C) 2009 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665 _ACEOF
1666 exit
1669 ## ------------------------ ##
1670 ## Autoconf initialization. ##
1671 ## ------------------------ ##
1673 # ac_fn_c_try_compile LINENO
1674 # --------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_compile ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1709 } # ac_fn_c_try_compile
1711 # ac_fn_cxx_try_compile LINENO
1712 # ----------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_cxx_try_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_cxx_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=1
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 return $ac_retval
1747 } # ac_fn_cxx_try_compile
1749 # ac_fn_c_try_link LINENO
1750 # -----------------------
1751 # Try to link conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_link ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext conftest$ac_exeext
1756 if { { ac_try="$ac_link"
1757 case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest$ac_exeext && {
1775 test "$cross_compiling" = yes ||
1776 $as_test_x conftest$ac_exeext
1777 }; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1783 ac_retval=1
1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787 # interfere with the next link command; also delete a directory that is
1788 # left behind by Apple's compiler. We do this before executing the actions.
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 return $ac_retval
1793 } # ac_fn_c_try_link
1794 cat >config.log <<_ACEOF
1795 This file contains any messages produced by compilers while
1796 running configure, to aid debugging if configure makes a mistake.
1798 It was created by $as_me, which was
1799 generated by GNU Autoconf 2.64. Invocation command line was
1801 $ $0 $@
1803 _ACEOF
1804 exec 5>>config.log
1806 cat <<_ASUNAME
1807 ## --------- ##
1808 ## Platform. ##
1809 ## --------- ##
1811 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1812 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1813 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1814 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1815 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1817 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1818 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1820 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1821 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1822 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1823 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1824 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1825 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1826 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1828 _ASUNAME
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 $as_echo "PATH: $as_dir"
1836 done
1837 IFS=$as_save_IFS
1839 } >&5
1841 cat >&5 <<_ACEOF
1844 ## ----------- ##
1845 ## Core tests. ##
1846 ## ----------- ##
1848 _ACEOF
1851 # Keep a trace of the command line.
1852 # Strip out --no-create and --no-recursion so they do not pile up.
1853 # Strip out --silent because we don't want to record it for future runs.
1854 # Also quote any args containing shell meta-characters.
1855 # Make two passes to allow for proper duplicate-argument suppression.
1856 ac_configure_args=
1857 ac_configure_args0=
1858 ac_configure_args1=
1859 ac_must_keep_next=false
1860 for ac_pass in 1 2
1862 for ac_arg
1864 case $ac_arg in
1865 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1867 | -silent | --silent | --silen | --sile | --sil)
1868 continue ;;
1869 *\'*)
1870 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1871 esac
1872 case $ac_pass in
1873 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1875 as_fn_append ac_configure_args1 " '$ac_arg'"
1876 if test $ac_must_keep_next = true; then
1877 ac_must_keep_next=false # Got value, back to normal.
1878 else
1879 case $ac_arg in
1880 *=* | --config-cache | -C | -disable-* | --disable-* \
1881 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1882 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1883 | -with-* | --with-* | -without-* | --without-* | --x)
1884 case "$ac_configure_args0 " in
1885 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1886 esac
1888 -* ) ac_must_keep_next=true ;;
1889 esac
1891 as_fn_append ac_configure_args " '$ac_arg'"
1893 esac
1894 done
1895 done
1896 { ac_configure_args0=; unset ac_configure_args0;}
1897 { ac_configure_args1=; unset ac_configure_args1;}
1899 # When interrupted or exit'd, cleanup temporary files, and complete
1900 # config.log. We remove comments because anyway the quotes in there
1901 # would cause problems or look ugly.
1902 # WARNING: Use '\'' to represent an apostrophe within the trap.
1903 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1904 trap 'exit_status=$?
1905 # Save into config.log some information that might help in debugging.
1907 echo
1909 cat <<\_ASBOX
1910 ## ---------------- ##
1911 ## Cache variables. ##
1912 ## ---------------- ##
1913 _ASBOX
1914 echo
1915 # The following way of writing the cache mishandles newlines in values,
1917 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1918 eval ac_val=\$$ac_var
1919 case $ac_val in #(
1920 *${as_nl}*)
1921 case $ac_var in #(
1922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1924 esac
1925 case $ac_var in #(
1926 _ | IFS | as_nl) ;; #(
1927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1928 *) { eval $ac_var=; unset $ac_var;} ;;
1929 esac ;;
1930 esac
1931 done
1932 (set) 2>&1 |
1933 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1934 *${as_nl}ac_space=\ *)
1935 sed -n \
1936 "s/'\''/'\''\\\\'\'''\''/g;
1937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1938 ;; #(
1940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1942 esac |
1943 sort
1945 echo
1947 cat <<\_ASBOX
1948 ## ----------------- ##
1949 ## Output variables. ##
1950 ## ----------------- ##
1951 _ASBOX
1952 echo
1953 for ac_var in $ac_subst_vars
1955 eval ac_val=\$$ac_var
1956 case $ac_val in
1957 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958 esac
1959 $as_echo "$ac_var='\''$ac_val'\''"
1960 done | sort
1961 echo
1963 if test -n "$ac_subst_files"; then
1964 cat <<\_ASBOX
1965 ## ------------------- ##
1966 ## File substitutions. ##
1967 ## ------------------- ##
1968 _ASBOX
1969 echo
1970 for ac_var in $ac_subst_files
1972 eval ac_val=\$$ac_var
1973 case $ac_val in
1974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975 esac
1976 $as_echo "$ac_var='\''$ac_val'\''"
1977 done | sort
1978 echo
1981 if test -s confdefs.h; then
1982 cat <<\_ASBOX
1983 ## ----------- ##
1984 ## confdefs.h. ##
1985 ## ----------- ##
1986 _ASBOX
1987 echo
1988 cat confdefs.h
1989 echo
1991 test "$ac_signal" != 0 &&
1992 $as_echo "$as_me: caught signal $ac_signal"
1993 $as_echo "$as_me: exit $exit_status"
1994 } >&5
1995 rm -f core *.core core.conftest.* &&
1996 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1997 exit $exit_status
1999 for ac_signal in 1 2 13 15; do
2000 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2001 done
2002 ac_signal=0
2004 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2005 rm -f -r conftest* confdefs.h
2007 $as_echo "/* confdefs.h */" > confdefs.h
2009 # Predefined preprocessor variables.
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_NAME "$PACKAGE_NAME"
2013 _ACEOF
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2017 _ACEOF
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2021 _ACEOF
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_STRING "$PACKAGE_STRING"
2025 _ACEOF
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2029 _ACEOF
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_URL "$PACKAGE_URL"
2033 _ACEOF
2036 # Let the site file select an alternate cache file if it wants to.
2037 # Prefer an explicitly selected file to automatically selected ones.
2038 ac_site_file1=NONE
2039 ac_site_file2=NONE
2040 if test -n "$CONFIG_SITE"; then
2041 ac_site_file1=$CONFIG_SITE
2042 elif test "x$prefix" != xNONE; then
2043 ac_site_file1=$prefix/share/config.site
2044 ac_site_file2=$prefix/etc/config.site
2045 else
2046 ac_site_file1=$ac_default_prefix/share/config.site
2047 ac_site_file2=$ac_default_prefix/etc/config.site
2049 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2051 test "x$ac_site_file" = xNONE && continue
2052 if test -r "$ac_site_file"; then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2054 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2055 sed 's/^/| /' "$ac_site_file" >&5
2056 . "$ac_site_file"
2058 done
2060 if test -r "$cache_file"; then
2061 # Some versions of bash will fail to source /dev/null (special
2062 # files actually), so we avoid doing that.
2063 if test -f "$cache_file"; then
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2065 $as_echo "$as_me: loading cache $cache_file" >&6;}
2066 case $cache_file in
2067 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2068 *) . "./$cache_file";;
2069 esac
2071 else
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2073 $as_echo "$as_me: creating cache $cache_file" >&6;}
2074 >$cache_file
2077 # Check that the precious variables saved in the cache have kept the same
2078 # value.
2079 ac_cache_corrupted=false
2080 for ac_var in $ac_precious_vars; do
2081 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2082 eval ac_new_set=\$ac_env_${ac_var}_set
2083 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2084 eval ac_new_val=\$ac_env_${ac_var}_value
2085 case $ac_old_set,$ac_new_set in
2086 set,)
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2088 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2089 ac_cache_corrupted=: ;;
2090 ,set)
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2092 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2093 ac_cache_corrupted=: ;;
2094 ,);;
2096 if test "x$ac_old_val" != "x$ac_new_val"; then
2097 # differences in whitespace do not lead to failure.
2098 ac_old_val_w=`echo x $ac_old_val`
2099 ac_new_val_w=`echo x $ac_new_val`
2100 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2102 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2103 ac_cache_corrupted=:
2104 else
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2106 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2107 eval $ac_var=\$ac_old_val
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2110 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2112 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2113 fi;;
2114 esac
2115 # Pass precious variables to config.status.
2116 if test "$ac_new_set" = set; then
2117 case $ac_new_val in
2118 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2119 *) ac_arg=$ac_var=$ac_new_val ;;
2120 esac
2121 case " $ac_configure_args " in
2122 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2123 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2124 esac
2126 done
2127 if $ac_cache_corrupted; then
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2131 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2132 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2134 ## -------------------- ##
2135 ## Main body of script. ##
2136 ## -------------------- ##
2138 ac_ext=c
2139 ac_cpp='$CPP $CPPFLAGS'
2140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2152 progname=$0
2153 # if PWD already has a value, it is probably wrong.
2154 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2156 # Export original configure arguments for use by sub-configures.
2157 # Quote arguments with shell meta charatcers.
2158 TOPLEVEL_CONFIGURE_ARGUMENTS=
2159 set -- "$progname" "$@"
2160 for ac_arg
2162 case "$ac_arg" in
2163 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2164 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2165 # if the argument is of the form -foo=baz, quote the baz part only
2166 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2167 *) ;;
2168 esac
2169 # Add the quoted argument to the list.
2170 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2171 done
2172 if test "$silent" = yes; then
2173 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2175 # Remove the initial space we just introduced and, as these will be
2176 # expanded by make, quote '$'.
2177 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2180 # Find the build, host, and target systems.
2181 ac_aux_dir=
2182 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2183 for ac_t in install-sh install.sh shtool; do
2184 if test -f "$ac_dir/$ac_t"; then
2185 ac_aux_dir=$ac_dir
2186 ac_install_sh="$ac_aux_dir/$ac_t -c"
2187 break 2
2189 done
2190 done
2191 if test -z "$ac_aux_dir"; then
2192 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2195 # These three variables are undocumented and unsupported,
2196 # and are intended to be withdrawn in a future Autoconf release.
2197 # They can cause serious problems if a builder's source tree is in a directory
2198 # whose full name contains unusual characters.
2199 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2200 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2201 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2204 # Make sure we can run config.sub.
2205 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2206 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2209 $as_echo_n "checking build system type... " >&6; }
2210 if test "${ac_cv_build+set}" = set; then :
2211 $as_echo_n "(cached) " >&6
2212 else
2213 ac_build_alias=$build_alias
2214 test "x$ac_build_alias" = x &&
2215 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2216 test "x$ac_build_alias" = x &&
2217 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2218 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2219 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2223 $as_echo "$ac_cv_build" >&6; }
2224 case $ac_cv_build in
2225 *-*-*) ;;
2226 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2227 esac
2228 build=$ac_cv_build
2229 ac_save_IFS=$IFS; IFS='-'
2230 set x $ac_cv_build
2231 shift
2232 build_cpu=$1
2233 build_vendor=$2
2234 shift; shift
2235 # Remember, the first character of IFS is used to create $*,
2236 # except with old shells:
2237 build_os=$*
2238 IFS=$ac_save_IFS
2239 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2242 case ${build_alias} in
2243 "") build_noncanonical=${build} ;;
2244 *) build_noncanonical=${build_alias} ;;
2245 esac
2249 case ${host_alias} in
2250 "") host_noncanonical=${build_noncanonical} ;;
2251 *) host_noncanonical=${host_alias} ;;
2252 esac
2256 case ${target_alias} in
2257 "") target_noncanonical=${host_noncanonical} ;;
2258 *) target_noncanonical=${target_alias} ;;
2259 esac
2264 test "$host_noncanonical" = "$target_noncanonical" &&
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2266 NONENONEs,x,x, &&
2267 program_transform_name=s,y,y,
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2270 $as_echo_n "checking host system type... " >&6; }
2271 if test "${ac_cv_host+set}" = set; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 if test "x$host_alias" = x; then
2275 ac_cv_host=$ac_cv_build
2276 else
2277 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2278 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2283 $as_echo "$ac_cv_host" >&6; }
2284 case $ac_cv_host in
2285 *-*-*) ;;
2286 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2287 esac
2288 host=$ac_cv_host
2289 ac_save_IFS=$IFS; IFS='-'
2290 set x $ac_cv_host
2291 shift
2292 host_cpu=$1
2293 host_vendor=$2
2294 shift; shift
2295 # Remember, the first character of IFS is used to create $*,
2296 # except with old shells:
2297 host_os=$*
2298 IFS=$ac_save_IFS
2299 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2303 $as_echo_n "checking target system type... " >&6; }
2304 if test "${ac_cv_target+set}" = set; then :
2305 $as_echo_n "(cached) " >&6
2306 else
2307 if test "x$target_alias" = x; then
2308 ac_cv_target=$ac_cv_host
2309 else
2310 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2311 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2316 $as_echo "$ac_cv_target" >&6; }
2317 case $ac_cv_target in
2318 *-*-*) ;;
2319 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2320 esac
2321 target=$ac_cv_target
2322 ac_save_IFS=$IFS; IFS='-'
2323 set x $ac_cv_target
2324 shift
2325 target_cpu=$1
2326 target_vendor=$2
2327 shift; shift
2328 # Remember, the first character of IFS is used to create $*,
2329 # except with old shells:
2330 target_os=$*
2331 IFS=$ac_save_IFS
2332 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2335 # The aliases save the names the user supplied, while $host etc.
2336 # will get canonicalized.
2337 test -n "$target_alias" &&
2338 test "$program_prefix$program_suffix$program_transform_name" = \
2339 NONENONEs,x,x, &&
2340 program_prefix=${target_alias}-
2342 test "$program_prefix" != NONE &&
2343 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2344 # Use a double $ so make ignores it.
2345 test "$program_suffix" != NONE &&
2346 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2347 # Double any \ or $.
2348 # By default was `s,x,x', remove it if useless.
2349 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2350 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2354 # Get 'install' or 'install-sh' and its variants.
2355 # Find a good install program. We prefer a C program (faster),
2356 # so one script is as good as another. But avoid the broken or
2357 # incompatible versions:
2358 # SysV /etc/install, /usr/sbin/install
2359 # SunOS /usr/etc/install
2360 # IRIX /sbin/install
2361 # AIX /bin/install
2362 # AmigaOS /C/install, which installs bootblocks on floppy discs
2363 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2364 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2365 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2366 # OS/2's system install, which has a completely different semantic
2367 # ./install, which can be erroneously created by make from ./install.sh.
2368 # Reject install programs that cannot install multiple files.
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2370 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2371 if test -z "$INSTALL"; then
2372 if test "${ac_cv_path_install+set}" = set; then :
2373 $as_echo_n "(cached) " >&6
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 # Account for people who put trailing slashes in PATH elements.
2381 case $as_dir/ in #((
2382 ./ | .// | /[cC]/* | \
2383 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2384 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2385 /usr/ucb/* ) ;;
2387 # OSF1 and SCO ODT 3.0 have their own names for install.
2388 # Don't use installbsd from OSF since it installs stuff as root
2389 # by default.
2390 for ac_prog in ginstall scoinst install; do
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2393 if test $ac_prog = install &&
2394 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2395 # AIX install. It has an incompatible calling convention.
2397 elif test $ac_prog = install &&
2398 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2399 # program-specific install script used by HP pwplus--don't use.
2401 else
2402 rm -rf conftest.one conftest.two conftest.dir
2403 echo one > conftest.one
2404 echo two > conftest.two
2405 mkdir conftest.dir
2406 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2407 test -s conftest.one && test -s conftest.two &&
2408 test -s conftest.dir/conftest.one &&
2409 test -s conftest.dir/conftest.two
2410 then
2411 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2412 break 3
2416 done
2417 done
2419 esac
2421 done
2422 IFS=$as_save_IFS
2424 rm -rf conftest.one conftest.two conftest.dir
2427 if test "${ac_cv_path_install+set}" = set; then
2428 INSTALL=$ac_cv_path_install
2429 else
2430 # As a last resort, use the slow shell script. Don't cache a
2431 # value for INSTALL within a source directory, because that will
2432 # break other packages using the cache if that directory is
2433 # removed, or if the value is a relative name.
2434 INSTALL=$ac_install_sh
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2438 $as_echo "$INSTALL" >&6; }
2440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2441 # It thinks the first close brace ends the variable substitution.
2442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2449 $as_echo_n "checking whether ln works... " >&6; }
2450 if test "${acx_cv_prog_LN+set}" = set; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 rm -f conftestdata_t
2454 echo >conftestdata_f
2455 if ln conftestdata_f conftestdata_t 2>/dev/null
2456 then
2457 acx_cv_prog_LN=ln
2458 else
2459 acx_cv_prog_LN=no
2461 rm -f conftestdata_f conftestdata_t
2464 if test $acx_cv_prog_LN = no; then
2465 LN="cp"
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2467 $as_echo "no, using $LN" >&6; }
2468 else
2469 LN="$acx_cv_prog_LN"
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2471 $as_echo "yes" >&6; }
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2475 $as_echo_n "checking whether ln -s works... " >&6; }
2476 LN_S=$as_ln_s
2477 if test "$LN_S" = "ln -s"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2479 $as_echo "yes" >&6; }
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2482 $as_echo "no, using $LN_S" >&6; }
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2486 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2487 if test "${ac_cv_path_SED+set}" = set; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2491 for ac_i in 1 2 3 4 5 6 7; do
2492 ac_script="$ac_script$as_nl$ac_script"
2493 done
2494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2495 { ac_script=; unset ac_script;}
2496 if test -z "$SED"; then
2497 ac_path_SED_found=false
2498 # Loop through the user's path and test for each of PROGNAME-LIST
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_prog in sed gsed; do
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2507 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2508 # Check for GNU ac_path_SED and select it if it is found.
2509 # Check for GNU $ac_path_SED
2510 case `"$ac_path_SED" --version 2>&1` in
2511 *GNU*)
2512 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2514 ac_count=0
2515 $as_echo_n 0123456789 >"conftest.in"
2516 while :
2518 cat "conftest.in" "conftest.in" >"conftest.tmp"
2519 mv "conftest.tmp" "conftest.in"
2520 cp "conftest.in" "conftest.nl"
2521 $as_echo '' >> "conftest.nl"
2522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2524 as_fn_arith $ac_count + 1 && ac_count=$as_val
2525 if test $ac_count -gt ${ac_path_SED_max-0}; then
2526 # Best one so far, save it but keep looking for a better one
2527 ac_cv_path_SED="$ac_path_SED"
2528 ac_path_SED_max=$ac_count
2530 # 10*(2^10) chars as input seems more than enough
2531 test $ac_count -gt 10 && break
2532 done
2533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2534 esac
2536 $ac_path_SED_found && break 3
2537 done
2538 done
2539 done
2540 IFS=$as_save_IFS
2541 if test -z "$ac_cv_path_SED"; then
2542 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2544 else
2545 ac_cv_path_SED=$SED
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2550 $as_echo "$ac_cv_path_SED" >&6; }
2551 SED="$ac_cv_path_SED"
2552 rm -f conftest.sed
2554 for ac_prog in gawk mawk nawk awk
2556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if test "${ac_cv_prog_AWK+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 if test -n "$AWK"; then
2564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_AWK="$ac_prog"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2577 done
2578 done
2579 IFS=$as_save_IFS
2583 AWK=$ac_cv_prog_AWK
2584 if test -n "$AWK"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2586 $as_echo "$AWK" >&6; }
2587 else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2593 test -n "$AWK" && break
2594 done
2597 ### we might need to use some other shell than /bin/sh for running subshells
2598 ### If we are on Windows, search for the shell. This will permit people
2599 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2600 ### without also having to set CONFIG_SHELL. This code will work when
2601 ### using bash, which sets OSTYPE.
2602 case "${OSTYPE}" in
2603 *win32*)
2604 if test x${CONFIG_SHELL} = x ; then
2605 if test ! -f /bin/sh ; then
2606 if test x${SHELL} != x && test -f ${SHELL} ; then
2607 CONFIG_SHELL=${SHELL}
2608 export CONFIG_SHELL
2609 else
2610 for prog in sh sh.exe bash bash.exe; do
2611 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2612 for dir in $PATH; do
2613 test -z "$dir" && dir=.
2614 if test -f $dir/$prog; then
2615 CONFIG_SHELL=$dir/$prog
2616 export CONFIG_SHELL
2617 break
2619 done
2620 IFS="$save_ifs"
2621 test -n "${CONFIG_SHELL}" && break
2622 done
2627 esac
2629 config_shell=${CONFIG_SHELL-/bin/sh}
2631 moveifchange=${srcdir}/move-if-change
2633 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2635 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2636 # a relative path.
2637 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2638 INSTALL="${srcpwd}/install-sh -c"
2641 # Set srcdir to "." if that's what it is.
2642 # This is important for multilib support.
2643 pwd=`${PWDCMD-pwd}`
2644 if test "${pwd}" = "${srcpwd}" ; then
2645 srcdir=.
2648 topsrcdir=$srcpwd
2650 extra_host_args=
2652 ### To add a new directory to the tree, first choose whether it is a target
2653 ### or a host dependent tool. Then put it into the appropriate list
2654 ### (library or tools, host or target), doing a dependency sort.
2656 # Subdirs will be configured in the order listed in build_configdirs,
2657 # configdirs, or target_configdirs; see the serialization section below.
2659 # Dependency sorting is only needed when *configuration* must be done in
2660 # a particular order. In all cases a dependency should be specified in
2661 # the Makefile, whether or not it's implicitly specified here.
2663 # Double entries in build_configdirs, configdirs, or target_configdirs may
2664 # cause circular dependencies and break everything horribly.
2666 # these library is used by various programs built for the build
2667 # environment
2669 build_libs="build-libiberty"
2671 # these tools are built for the build environment
2672 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2674 # these libraries are used by various programs built for the host environment
2676 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2678 # these tools are built for the host environment
2679 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2680 # know that we are building the simulator.
2681 # binutils, gas and ld appear in that order because it makes sense to run
2682 # "make check" in that particular order.
2683 # If --enable-gold is used, "gold" may replace "ld".
2684 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2686 # libgcj represents the runtime libraries only used by gcj.
2687 libgcj="target-libffi \
2688 target-zlib \
2689 target-qthreads \
2690 target-libjava"
2692 # these libraries are built for the target environment, and are built after
2693 # the host libraries and the host tools (which may be a cross compiler)
2695 target_libraries="target-libgcc \
2696 target-libiberty \
2697 target-libgloss \
2698 target-newlib \
2699 target-libgomp \
2700 target-libstdc++-v3 \
2701 target-libmudflap \
2702 target-libssp \
2703 target-libquadmath \
2704 target-libgfortran \
2705 target-boehm-gc \
2706 ${libgcj} \
2707 target-libobjc \
2708 target-libada \
2709 target-libgo"
2711 # these tools are built using the target libraries, and are intended to
2712 # run only in the target environment
2714 # note: any program that *uses* libraries that are in the "target_libraries"
2715 # list belongs in this list. those programs are also very likely
2716 # candidates for the "native_only" list which follows
2718 target_tools="target-examples target-groff target-gperf target-rda"
2720 ################################################################################
2722 ## All tools belong in one of the four categories, and are assigned above
2723 ## We assign ${configdirs} this way to remove all embedded newlines. This
2724 ## is important because configure will choke if they ever get through.
2725 ## ${configdirs} is directories we build using the host tools.
2726 ## ${target_configdirs} is directories we build using the target tools.
2727 configdirs=`echo ${host_libs} ${host_tools}`
2728 target_configdirs=`echo ${target_libraries} ${target_tools}`
2729 build_configdirs=`echo ${build_libs} ${build_tools}`
2733 ################################################################################
2735 srcname="gnu development package"
2737 # This gets set non-empty for some net releases of packages.
2738 appdirs=""
2740 # Define is_cross_compiler to save on calls to 'test'.
2741 is_cross_compiler=
2742 if test x"${host}" = x"${target}" ; then
2743 is_cross_compiler=no
2744 else
2745 is_cross_compiler=yes
2748 # Find the build and target subdir names.
2750 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2751 # have matching libraries, they should use host libraries: Makefile.tpl
2752 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2753 # However, they still use the build modules, because the corresponding
2754 # host modules (e.g. bison) are only built for the host when bootstrap
2755 # finishes. So:
2756 # - build_subdir is where we find build modules, and never changes.
2757 # - build_libsubdir is where we find build libraries, and can be overridden.
2759 # Prefix 'build-' so this never conflicts with target_subdir.
2760 build_subdir="build-${build_noncanonical}"
2762 # Check whether --with-build-libsubdir was given.
2763 if test "${with_build_libsubdir+set}" = set; then :
2764 withval=$with_build_libsubdir; build_libsubdir="$withval"
2765 else
2766 build_libsubdir="$build_subdir"
2769 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2770 if ( test $srcdir = . && test -d gcc ) \
2771 || test -d $srcdir/../host-${host_noncanonical}; then
2772 host_subdir="host-${host_noncanonical}"
2773 else
2774 host_subdir=.
2776 # No prefix.
2777 target_subdir=${target_noncanonical}
2779 # Be sure to cover against remnants of an in-tree build.
2780 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2781 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2782 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2785 # Skipdirs are removed silently.
2786 skipdirs=
2787 # Noconfigdirs are removed loudly.
2788 noconfigdirs=""
2790 use_gnu_ld=
2791 # Make sure we don't let GNU ld be added if we didn't want it.
2792 if test x$with_gnu_ld = xno ; then
2793 use_gnu_ld=no
2794 noconfigdirs="$noconfigdirs ld gold"
2797 use_gnu_as=
2798 # Make sure we don't let GNU as be added if we didn't want it.
2799 if test x$with_gnu_as = xno ; then
2800 use_gnu_as=no
2801 noconfigdirs="$noconfigdirs gas"
2804 use_included_zlib=
2805 # Make sure we don't let ZLIB be added if we didn't want it.
2806 if test x$with_system_zlib = xyes ; then
2807 use_included_zlib=no
2808 noconfigdirs="$noconfigdirs zlib"
2811 # some tools are so dependent upon X11 that if we're not building with X,
2812 # it's not even worth trying to configure, much less build, that tool.
2814 case ${with_x} in
2815 yes | "") ;; # the default value for this tree is that X11 is available
2817 skipdirs="${skipdirs} tk itcl libgui"
2818 # We won't be able to build gdbtk without X.
2819 enable_gdbtk=no
2821 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2822 esac
2824 # Some tools are only suitable for building in a "native" situation.
2825 # Remove these if host!=target.
2826 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2828 # Similarly, some are only suitable for cross toolchains.
2829 # Remove these if host=target.
2830 cross_only="target-libgloss target-newlib target-opcodes"
2832 case $is_cross_compiler in
2833 no) skipdirs="${skipdirs} ${cross_only}" ;;
2834 yes) skipdirs="${skipdirs} ${native_only}" ;;
2835 esac
2837 # If both --with-headers and --with-libs are specified, default to
2838 # --without-newlib.
2839 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2840 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2841 if test x"${with_newlib}" = x ; then
2842 with_newlib=no
2846 # Recognize --with-newlib/--without-newlib.
2847 case ${with_newlib} in
2848 no) skipdirs="${skipdirs} target-newlib" ;;
2849 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2850 esac
2852 # Handle --enable-gold.
2853 # --enable-gold Build only gold
2854 # --disable-gold [default] Build only ld
2855 # --enable-gold=both Build both gold and ld, ld is default
2856 # --enable-gold=both/ld Same
2857 # --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
2859 # Check whether --enable-gold was given.
2860 if test "${enable_gold+set}" = set; then :
2861 enableval=$enable_gold; ENABLE_GOLD=$enableval
2862 else
2863 ENABLE_GOLD=no
2866 case "${ENABLE_GOLD}" in
2867 yes|both|both/gold|both/ld)
2868 # Check for ELF target.
2869 is_elf=no
2870 case "${target}" in
2871 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2872 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2873 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2874 case "${target}" in
2875 *-*-linux*aout* | *-*-linux*oldld*)
2878 is_elf=yes
2880 esac
2881 esac
2883 if test "$is_elf" = "yes"; then
2884 # Check for target supported by gold.
2885 case "${target}" in
2886 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2887 case "${ENABLE_GOLD}" in
2888 both*)
2889 configdirs="$configdirs gold"
2892 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
2894 esac
2895 ENABLE_GOLD=yes
2897 esac
2903 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2905 esac
2907 # Configure extra directories which are host specific
2909 case "${host}" in
2910 *-cygwin*)
2911 configdirs="$configdirs libtermcap" ;;
2912 esac
2914 # A target can indicate whether a language isn't supported for some reason.
2915 # Only spaces may be used in this macro; not newlines or tabs.
2916 unsupported_languages=
2918 # Remove more programs from consideration, based on the host or
2919 # target this usually means that a port of the program doesn't
2920 # exist yet.
2922 case "${host}" in
2923 hppa*64*-*-*)
2924 noconfigdirs="$noconfigdirs byacc"
2926 i[3456789]86-*-vsta)
2927 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2929 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2930 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2932 x86_64-*-mingw*)
2933 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2935 i[3456789]86-*-mingw32*)
2936 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2937 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2939 i[3456789]86-*-beos*)
2940 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2942 *-*-cygwin*)
2943 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2945 *-*-netbsd*)
2946 noconfigdirs="$noconfigdirs rcs"
2948 ppc*-*-pe)
2949 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2951 powerpc-*-beos*)
2952 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2954 esac
2957 # Check whether --enable-libada was given.
2958 if test "${enable_libada+set}" = set; then :
2959 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2960 else
2961 ENABLE_LIBADA=yes
2964 if test "${ENABLE_LIBADA}" != "yes" ; then
2965 noconfigdirs="$noconfigdirs gnattools"
2968 # Check whether --enable-libssp was given.
2969 if test "${enable_libssp+set}" = set; then :
2970 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2971 else
2972 ENABLE_LIBSSP=yes
2976 # Save it here so that, even in case of --enable-libgcj, if the Java
2977 # front-end isn't enabled, we still get libgcj disabled.
2978 libgcj_saved=$libgcj
2979 case $enable_libgcj in
2980 yes)
2981 # If we reset it here, it won't get added to noconfigdirs in the
2982 # target-specific build rules, so it will be forcibly enabled
2983 # (unless the Java language itself isn't enabled).
2984 libgcj=
2987 # Make sure we get it printed in the list of not supported target libs.
2988 noconfigdirs="$noconfigdirs ${libgcj}"
2990 esac
2993 # Disable libmudflap on some systems.
2994 if test x$enable_libmudflap = x ; then
2995 case "${target}" in
2996 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2997 # Enable libmudflap by default in GNU and friends.
2999 *-*-freebsd*)
3000 # Enable libmudflap by default in FreeBSD.
3003 # Disable it by default everywhere else.
3004 noconfigdirs="$noconfigdirs target-libmudflap"
3006 esac
3009 # Disable libgomp on non POSIX hosted systems.
3010 if test x$enable_libgomp = x ; then
3011 # Enable libgomp by default on hosted POSIX systems.
3012 case "${target}" in
3013 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3015 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3017 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3019 *-*-darwin* | *-*-aix*)
3022 noconfigdirs="$noconfigdirs target-libgomp"
3024 esac
3027 # Default libgloss CPU subdirectory.
3028 libgloss_dir="$target_cpu"
3030 case "${target}" in
3031 *-*-chorusos)
3032 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3034 powerpc-*-darwin*)
3035 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3036 noconfigdirs="$noconfigdirs sim target-rda"
3038 i[3456789]86-*-darwin*)
3039 noconfigdirs="$noconfigdirs ld gprof"
3040 noconfigdirs="$noconfigdirs sim target-rda"
3042 x86_64-*-darwin[912]*)
3043 noconfigdirs="$noconfigdirs ld gas gprof"
3044 noconfigdirs="$noconfigdirs sim target-rda"
3046 *-*-darwin*)
3047 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3048 noconfigdirs="$noconfigdirs sim target-rda"
3049 noconfigdirs="$noconfigdirs ${libgcj}"
3051 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3052 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3054 *-*-freebsd*)
3055 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3056 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3057 && test -f /usr/local/include/gmp.h; then
3058 with_gmp=/usr/local
3061 # Skip some stuff that's unsupported on some FreeBSD configurations.
3062 case "${target}" in
3063 i*86-*-*) ;;
3064 alpha*-*-*) ;;
3065 x86_64-*-*) ;;
3067 noconfigdirs="$noconfigdirs ${libgcj}"
3069 esac
3071 *-*-kaos*)
3072 # Remove unsupported stuff on all kaOS configurations.
3073 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3074 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3075 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3076 noconfigdirs="$noconfigdirs target-libgloss"
3078 *-*-netbsd*)
3079 # Skip some stuff on all NetBSD configurations.
3080 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3082 # Skip some stuff that's unsupported on some NetBSD configurations.
3083 case "${target}" in
3084 i*86-*-netbsdelf*) ;;
3085 arm*-*-netbsdelf*) ;;
3087 noconfigdirs="$noconfigdirs ${libgcj}"
3089 esac
3091 *-*-netware*)
3092 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3094 *-*-rtems*)
3095 skipdirs="${skipdirs} target-libiberty"
3096 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3098 # The tpf target doesn't support gdb yet.
3099 *-*-tpf*)
3100 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3102 *-*-uclinux*)
3103 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3105 *-*-vxworks*)
3106 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3108 alpha*-dec-osf*)
3109 # ld works, but does not support shared libraries.
3110 # newlib is not 64 bit ready. I'm not sure about fileutils.
3111 # gas doesn't generate exception information.
3112 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3114 alpha*-*-*vms*)
3115 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3117 alpha*-*-linux*)
3118 # newlib is not 64 bit ready
3119 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3121 alpha*-*-*)
3122 # newlib is not 64 bit ready
3123 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3125 am33_2.0-*-linux*)
3126 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3128 sh-*-linux*)
3129 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3131 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3132 noconfigdirs="$noconfigdirs ${libgcj}"
3133 noconfigdirs="$noconfigdirs target-examples"
3134 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3135 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3136 noconfigdirs="$noconfigdirs expect dejagnu"
3137 # the C++ libraries don't build on top of CE's C libraries
3138 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3139 noconfigdirs="$noconfigdirs target-newlib"
3140 case "${host}" in
3141 *-*-cygwin*) ;; # keep gdb and readline
3142 *) noconfigdirs="$noconfigdirs gdb readline"
3144 esac
3145 libgloss_dir=wince
3147 arc-*-*)
3148 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3150 arm-semi-aof )
3152 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3153 noconfigdirs="$noconfigdirs ${libgcj}"
3154 libgloss_dir=arm
3156 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3157 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3158 libgloss_dir=arm
3160 arm*-*-linux-gnueabi)
3161 noconfigdirs="$noconfigdirs target-qthreads"
3162 case ${with_newlib} in
3163 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3164 esac
3165 libgloss_dir=arm
3167 arm*-*-symbianelf*)
3168 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3169 libgloss_dir=arm
3171 arm-*-pe*)
3172 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3174 thumb-*-coff)
3175 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3177 thumb-*-elf)
3178 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3180 thumb-*-pe)
3181 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3183 arm-*-riscix*)
3184 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3186 avr-*-*)
3187 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3189 bfin-*-*)
3190 unsupported_languages="$unsupported_languages java"
3191 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3192 if test x${is_cross_compiler} != xno ; then
3193 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3196 c4x-*-* | tic4x-*-*)
3197 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3199 c54x*-*-* | tic54x-*-*)
3200 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3202 cr16-*-*)
3203 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3205 cris-*-* | crisv32-*-*)
3206 unsupported_languages="$unsupported_languages java"
3207 case "${target}" in
3208 *-*-aout)
3209 unsupported_languages="$unsupported_languages fortran"
3210 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3211 *-*-elf)
3212 noconfigdirs="$noconfigdirs target-boehm-gc";;
3213 *-*-linux*)
3214 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3216 unsupported_languages="$unsupported_languages fortran"
3217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3218 esac
3219 libgloss_dir=cris
3221 crx-*-*)
3222 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3224 d10v-*-*)
3225 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3227 d30v-*-*)
3228 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3230 ep9312-*-elf | ep9312-*-coff)
3231 libgloss_dir=arm
3233 fr30-*-elf*)
3234 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3236 frv-*-*)
3237 noconfigdirs="$noconfigdirs ${libgcj}"
3239 moxie-*-*)
3240 noconfigdirs="$noconfigdirs ${libgcj}"
3241 noconfigdirs="$noconfigdirs gprof"
3243 h8300*-*-*)
3244 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3246 h8500-*-*)
3247 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3249 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3251 hppa*64*-*-linux* | parisc*64*-*-linux*)
3252 # In this case, it's because the hppa64-linux target is for
3253 # the kernel only at this point and has no libc, and thus no
3254 # headers, crt*.o, etc., all of which are needed by these.
3255 noconfigdirs="$noconfigdirs target-zlib"
3257 parisc*-*-linux* | hppa*-*-linux*)
3259 hppa*-*-*elf* | \
3260 hppa*-*-lites* | \
3261 hppa*-*-openbsd* | \
3262 hppa*64*-*-*)
3263 noconfigdirs="$noconfigdirs ${libgcj}"
3265 hppa*-hp-hpux11*)
3266 noconfigdirs="$noconfigdirs ld shellutils"
3268 hppa*-*-pro*)
3269 libgloss_dir=pa
3271 hppa*-*-*)
3272 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3273 # build on HP-UX 10.20.
3274 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3276 i960-*-*)
3277 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3279 ia64*-*-elf*)
3280 # No gdb support yet.
3281 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3283 ia64*-**-hpux*)
3284 # No gdb or ld support yet.
3285 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3287 ia64*-*-*vms*)
3288 # No gdb or ld support yet.
3289 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3291 i370-*-opened*)
3293 i[3456789]86-*-coff | i[3456789]86-*-elf)
3294 noconfigdirs="$noconfigdirs ${libgcj}"
3295 libgloss_dir=i386
3297 i[3456789]86-*-linux*)
3298 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3299 # not build java stuff by default.
3300 case "${target}" in
3301 *-*-*libc1*)
3302 noconfigdirs="$noconfigdirs ${libgcj}";;
3303 esac
3305 # This section makes it possible to build newlib natively on linux.
3306 # If we are using a cross compiler then don't configure newlib.
3307 if test x${is_cross_compiler} != xno ; then
3308 noconfigdirs="$noconfigdirs target-newlib"
3310 noconfigdirs="$noconfigdirs target-libgloss"
3311 # If we are not using a cross compiler, do configure newlib.
3312 # Note however, that newlib will only be configured in this situation
3313 # if the --with-newlib option has been given, because otherwise
3314 # 'target-newlib' will appear in skipdirs.
3316 i[3456789]86-w64-mingw*)
3317 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3319 i[3456789]86-*-mingw*)
3320 target_configdirs="$target_configdirs target-winsup"
3321 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3323 x86_64-*-mingw*)
3324 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3326 *-*-cygwin*)
3327 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3328 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3329 # always build newlib if winsup directory is present.
3330 if test -d "$srcdir/winsup/cygwin"; then
3331 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3332 elif test -d "$srcdir/newlib"; then
3333 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3336 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3337 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3339 i[3456789]86-*-pe)
3340 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3342 i[3456789]86-*-sco3.2v5*)
3343 # The linker does not yet know about weak symbols in COFF,
3344 # and is not configured to handle mixed ELF and COFF.
3345 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3347 i[3456789]86-*-sco*)
3348 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3350 i[3456789]86-*-solaris2*)
3351 noconfigdirs="$noconfigdirs target-libgloss"
3353 i[3456789]86-*-sysv4*)
3354 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3356 i[3456789]86-*-beos*)
3357 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3359 i[3456789]86-*-rdos*)
3360 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3362 m32r-*-*)
3363 noconfigdirs="$noconfigdirs ${libgcj}"
3365 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3366 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3367 libgloss_dir=m68hc11
3369 m68k-*-elf*)
3370 noconfigdirs="$noconfigdirs ${libgcj}"
3372 m68k-*-coff*)
3373 noconfigdirs="$noconfigdirs ${libgcj}"
3375 m68*-*-* | fido-*-*)
3376 libgloss_dir=m68k
3378 mcore-*-pe*)
3379 # The EPOC C++ environment does not support exceptions or rtti,
3380 # and so building libstdc++-v3 tends not to always work.
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383 mmix-*-*)
3384 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3385 unsupported_languages="$unsupported_languages fortran java"
3387 mn10200-*-*)
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3390 mn10300-*-*)
3391 noconfigdirs="$noconfigdirs ${libgcj}"
3393 mt-*-*)
3394 noconfigdirs="$noconfigdirs sim"
3396 powerpc-*-aix*)
3397 # copied from rs6000-*-* entry
3398 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3400 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3401 target_configdirs="$target_configdirs target-winsup"
3402 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3403 # always build newlib.
3404 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3406 # This is temporary until we can link against shared libraries
3407 powerpcle-*-solaris*)
3408 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3409 libgloss_dir=rs6000
3411 powerpc-*-beos*)
3412 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3414 powerpc-*-eabi)
3415 noconfigdirs="$noconfigdirs ${libgcj}"
3416 libgloss_dir=rs6000
3418 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3419 libgloss_dir=rs6000
3421 rs6000-*-lynxos*)
3422 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3424 rs6000-*-aix*)
3425 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3427 rs6000-*-*)
3428 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3430 m68k-apollo-*)
3431 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3433 microblaze*)
3434 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3436 mips*-sde-elf*)
3437 skipdirs="$skipdirs target-libiberty"
3438 noconfigdirs="$noconfigdirs ${libgcj}"
3439 if test x$with_newlib = xyes; then
3440 noconfigdirs="$noconfigdirs gprof"
3442 libgloss_dir=mips
3444 mips*-*-irix5*)
3445 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3447 mips*-*-irix6*)
3448 # Linking libjava exceeds command-line length limits on at least
3449 # IRIX 6.2, but not on IRIX 6.5.
3450 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3451 # <oldham@codesourcery.com>
3452 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3454 mips*-*-bsd*)
3455 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3457 mips*-*-linux*)
3458 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3460 mips*-*-*)
3461 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3462 libgloss_dir=mips
3464 romp-*-*)
3465 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3467 sh-*-* | sh64-*-*)
3468 case "${host}" in
3469 i[3456789]86-*-vsta) ;; # don't add gprof back in
3470 i[3456789]86-*-go32*) ;; # don't add gprof back in
3471 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3472 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3473 esac
3474 case "${target}" in
3475 sh*-*-elf)
3476 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3478 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3479 esac
3481 sparclet-*-aout* | sparc86x-*-*)
3482 libgloss_dir=sparc
3484 sparc-*-elf*)
3485 noconfigdirs="$noconfigdirs ${libgcj}"
3487 sparc64-*-elf*)
3488 noconfigdirs="$noconfigdirs ${libgcj}"
3489 libgloss_dir=sparc
3491 sparclite-*-*)
3492 noconfigdirs="$noconfigdirs ${libgcj}"
3493 libgloss_dir=sparc
3495 sparc-*-sunos4*)
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3497 if test x${is_cross_compiler} != xno ; then
3498 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3499 else
3500 use_gnu_ld=no
3503 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3504 noconfigdirs="$noconfigdirs ${libgcj}"
3506 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3508 tic6x-*-*)
3509 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3511 v810-*-*)
3512 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3514 v850*-*-*)
3515 noconfigdirs="$noconfigdirs ${libgcj}"
3517 vax-*-vms)
3518 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3520 vax-*-*)
3521 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3523 xtensa*-*-*)
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3526 ip2k-*-*)
3527 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3529 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3530 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 *-*-lynxos*)
3533 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3535 *-*-*)
3536 noconfigdirs="$noconfigdirs ${libgcj}"
3538 esac
3540 # If we aren't building newlib, then don't build libgloss, since libgloss
3541 # depends upon some newlib header files.
3542 case "${noconfigdirs}" in
3543 *target-libgloss*) ;;
3544 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3545 esac
3547 # Work in distributions that contain no compiler tools, like Autoconf.
3548 tentative_cc=""
3549 host_makefile_frag=/dev/null
3550 if test -d ${srcdir}/config ; then
3551 case "${host}" in
3552 m68k-hp-hpux*)
3553 # Avoid "too much defining" errors from HPUX compiler.
3554 tentative_cc="cc -Wp,-H256000"
3555 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3556 # If it's HP/UX ar, this should be harmless.
3557 RANLIB="ar ts"
3559 m68k-apollo-sysv*)
3560 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3562 m68k-apollo-bsd*)
3563 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3564 # chokes on bfd, the compiler won't let you assign integers to enums, and
3565 # other problems. Defining CC to gcc is a questionable way to say "don't use
3566 # the apollo compiler" (the preferred version of GCC could be called cc,
3567 # or whatever), but I'm not sure leaving CC as cc is any better...
3568 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3569 # Used to have BISON=yacc.
3570 tentative_cc=gcc
3572 m88k-dg-dgux*)
3573 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3575 m88k-harris-cxux*)
3576 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3577 tentative_cc="cc -Xa"
3578 host_makefile_frag="config/mh-cxux"
3580 m88k-motorola-sysv*)
3582 mips*-dec-ultrix*)
3583 tentative_cc="cc -Wf,-XNg1000"
3584 host_makefile_frag="config/mh-decstation"
3586 mips*-nec-sysv4*)
3587 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3588 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3589 host_makefile_frag="config/mh-necv4"
3591 mips*-sgi-irix4*)
3592 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3593 # environment. Also bump switch table size so that cp-parse will
3594 # compile. Bump string length limit so linker builds.
3595 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3597 mips*-*-sysv4*)
3598 host_makefile_frag="config/mh-sysv4"
3600 mips*-*-sysv*)
3601 # This is for a MIPS running RISC/os 4.52C.
3603 # This is needed for GDB, but needs to be in the top-level make because
3604 # if a library is compiled with the bsd headers and gets linked with the
3605 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3606 # a different size).
3607 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3608 # known except to select the sysv environment. Could we use /proc instead?
3609 # These "sysv environments" and "bsd environments" often end up being a pain.
3611 # This is not part of CFLAGS because perhaps not all C compilers have this
3612 # option.
3613 tentative_cc="cc -systype sysv"
3615 i370-ibm-opened*)
3616 tentative_cc="c89"
3618 i[3456789]86-*-sysv5*)
3619 host_makefile_frag="config/mh-sysv5"
3621 i[3456789]86-*-dgux*)
3622 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3623 host_makefile_frag="config/mh-dgux386"
3625 i[3456789]86-ncr-sysv4.3*)
3626 # The MetaWare compiler will generate a copyright message unless you
3627 # turn it off by adding the -Hnocopyr flag.
3628 tentative_cc="cc -Hnocopyr"
3630 i[3456789]86-ncr-sysv4*)
3631 # for an NCR 3000 (i486/SVR4) system.
3632 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3633 # This compiler not only emits obnoxious copyright messages every time
3634 # you run it, but it chokes and dies on a whole bunch of GNU source
3635 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3636 tentative_cc="/usr/ccs/ATT/cc"
3637 host_makefile_frag="config/mh-ncr3000"
3639 i[3456789]86-*-sco3.2v5*)
3641 i[3456789]86-*-sco*)
3642 # The native C compiler botches some simple uses of const. Unfortunately,
3643 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3644 tentative_cc="cc -Dconst="
3645 host_makefile_frag="config/mh-sco"
3647 i[3456789]86-*-udk*)
3648 host_makefile_frag="config/mh-sysv5"
3650 i[3456789]86-*-solaris2*)
3651 host_makefile_frag="config/mh-sysv4"
3653 i[3456789]86-*-msdosdjgpp*)
3654 host_makefile_frag="config/mh-djgpp"
3656 *-cygwin*)
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3659 $as_echo_n "checking to see if cat works as expected... " >&6; }
3660 echo a >cygwin-cat-check
3661 if test `cat cygwin-cat-check` = a ; then
3662 rm cygwin-cat-check
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3664 $as_echo "yes" >&6; }
3665 else
3666 rm cygwin-cat-check
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3669 as_fn_error "The cat command does not ignore carriage return characters.
3670 Please either mount the build directory in binary mode or run the following
3671 commands before running any configure script:
3672 set -o igncr
3673 export SHELLOPTS
3674 " "$LINENO" 5
3677 host_makefile_frag="config/mh-cygwin"
3679 *-mingw*)
3680 host_makefile_frag="config/mh-mingw"
3682 *-interix*)
3683 host_makefile_frag="config/mh-interix"
3685 vax-*-ultrix2*)
3686 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3687 tentative_cc=gcc
3689 *-*-solaris2*)
3690 host_makefile_frag="config/mh-solaris"
3692 m68k-sun-sunos*)
3693 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3694 # without overflowing the jump tables (-J says to use a 32 bit table)
3695 tentative_cc="cc -J"
3697 hppa*-hp-hpux10*)
3698 tentative_cc="cc -Wp,-H256000"
3699 host_makefile_frag="config/mh-pa-hpux10"
3701 hppa*-hp-hpux* | hppa*-*-hiux*)
3702 tentative_cc="cc -Wp,-H256000"
3703 host_makefile_frag="config/mh-pa"
3705 hppa*-*)
3706 host_makefile_frag="config/mh-pa"
3708 *-hp-hpux* | *-*-hiux*)
3709 tentative_cc="cc -Wp,-H256000"
3711 rs6000-*-lynxos*)
3712 # /bin/cc is less than useful for our purposes. Always use GCC
3713 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3714 host_makefile_frag="config/mh-lynxrs6k"
3716 *-*-darwin*)
3717 host_makefile_frag="config/mh-darwin"
3719 powerpc-*-aix*)
3720 host_makefile_frag="config/mh-ppc-aix"
3722 rs6000-*-aix*)
3723 host_makefile_frag="config/mh-ppc-aix"
3725 *-*-lynxos*)
3726 # /bin/cc is less than useful for our purposes. Always use GCC
3727 tentative_cc="/bin/gcc"
3729 *-*-sysv4*)
3730 host_makefile_frag="config/mh-sysv4"
3732 # This is placed last to prevent interfering with the cases above.
3733 i[3456789]86-*-*)
3734 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3735 host_makefile_frag="config/mh-x86omitfp"
3737 esac
3740 # If we aren't going to be using gcc, see if we can extract a definition
3741 # of CC from the fragment.
3742 # Actually, use the 'pre-extracted' version above.
3743 if test -z "${CC}" && test "${build}" = "${host}" ; then
3744 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3745 found=
3746 for dir in $PATH; do
3747 test -z "$dir" && dir=.
3748 if test -f $dir/gcc; then
3749 found=yes
3750 break
3752 done
3753 IFS="$save_ifs"
3754 if test -z "${found}" && test -n "${tentative_cc}" ; then
3755 CC=$tentative_cc
3759 if test "${build}" != "${host}" ; then
3760 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3761 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3762 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3763 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3764 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3765 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3766 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3767 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3768 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3769 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3770 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3771 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3772 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3773 else
3774 AR_FOR_BUILD="\$(AR)"
3775 AS_FOR_BUILD="\$(AS)"
3776 CC_FOR_BUILD="\$(CC)"
3777 CXX_FOR_BUILD="\$(CXX)"
3778 GCJ_FOR_BUILD="\$(GCJ)"
3779 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3780 GOC_FOR_BUILD="\$(GOC)"
3781 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3782 LD_FOR_BUILD="\$(LD)"
3783 NM_FOR_BUILD="\$(NM)"
3784 RANLIB_FOR_BUILD="\$(RANLIB)"
3785 WINDRES_FOR_BUILD="\$(WINDRES)"
3786 WINDMC_FOR_BUILD="\$(WINDMC)"
3789 ac_ext=c
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794 if test -n "$ac_tool_prefix"; then
3795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if test "${ac_cv_prog_CC+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -n "$CC"; then
3803 ac_cv_prog_CC="$CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3818 IFS=$as_save_IFS
3822 CC=$ac_cv_prog_CC
3823 if test -n "$CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825 $as_echo "$CC" >&6; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3833 if test -z "$ac_cv_prog_CC"; then
3834 ac_ct_CC=$CC
3835 # Extract the first word of "gcc", so it can be a program name with args.
3836 set dummy gcc; ac_word=$2
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838 $as_echo_n "checking for $ac_word... " >&6; }
3839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 if test -n "$ac_ct_CC"; then
3843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3844 else
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3852 ac_cv_prog_ac_ct_CC="gcc"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 break 2
3856 done
3857 done
3858 IFS=$as_save_IFS
3862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3863 if test -n "$ac_ct_CC"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3865 $as_echo "$ac_ct_CC" >&6; }
3866 else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3871 if test "x$ac_ct_CC" = x; then
3872 CC=""
3873 else
3874 case $cross_compiling:$ac_tool_warned in
3875 yes:)
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3878 ac_tool_warned=yes ;;
3879 esac
3880 CC=$ac_ct_CC
3882 else
3883 CC="$ac_cv_prog_CC"
3886 if test -z "$CC"; then
3887 if test -n "$ac_tool_prefix"; then
3888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3889 set dummy ${ac_tool_prefix}cc; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if test "${ac_cv_prog_CC+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 if test -n "$CC"; then
3896 ac_cv_prog_CC="$CC" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 ac_cv_prog_CC="${ac_tool_prefix}cc"
3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3909 done
3910 done
3911 IFS=$as_save_IFS
3915 CC=$ac_cv_prog_CC
3916 if test -n "$CC"; then
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3918 $as_echo "$CC" >&6; }
3919 else
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3927 if test -z "$CC"; then
3928 # Extract the first word of "cc", so it can be a program name with args.
3929 set dummy cc; ac_word=$2
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 $as_echo_n "checking for $ac_word... " >&6; }
3932 if test "${ac_cv_prog_CC+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 if test -n "$CC"; then
3936 ac_cv_prog_CC="$CC" # Let the user override the test.
3937 else
3938 ac_prog_rejected=no
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3947 ac_prog_rejected=yes
3948 continue
3950 ac_cv_prog_CC="cc"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3954 done
3955 done
3956 IFS=$as_save_IFS
3958 if test $ac_prog_rejected = yes; then
3959 # We found a bogon in the path, so make sure we never use it.
3960 set dummy $ac_cv_prog_CC
3961 shift
3962 if test $# != 0; then
3963 # We chose a different compiler from the bogus one.
3964 # However, it has the same basename, so the bogon will be chosen
3965 # first if we set CC to just the basename; use the full file name.
3966 shift
3967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3972 CC=$ac_cv_prog_CC
3973 if test -n "$CC"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3975 $as_echo "$CC" >&6; }
3976 else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3983 if test -z "$CC"; then
3984 if test -n "$ac_tool_prefix"; then
3985 for ac_prog in cl.exe
3987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if test "${ac_cv_prog_CC+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 if test -n "$CC"; then
3995 ac_cv_prog_CC="$CC" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4008 done
4009 done
4010 IFS=$as_save_IFS
4014 CC=$ac_cv_prog_CC
4015 if test -n "$CC"; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4017 $as_echo "$CC" >&6; }
4018 else
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4024 test -n "$CC" && break
4025 done
4027 if test -z "$CC"; then
4028 ac_ct_CC=$CC
4029 for ac_prog in cl.exe
4031 # Extract the first word of "$ac_prog", so it can be a program name with args.
4032 set dummy $ac_prog; ac_word=$2
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 $as_echo_n "checking for $ac_word... " >&6; }
4035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if test -n "$ac_ct_CC"; then
4039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_prog_ac_ct_CC="$ac_prog"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4052 done
4053 done
4054 IFS=$as_save_IFS
4058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4059 if test -n "$ac_ct_CC"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4061 $as_echo "$ac_ct_CC" >&6; }
4062 else
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4068 test -n "$ac_ct_CC" && break
4069 done
4071 if test "x$ac_ct_CC" = x; then
4072 CC=""
4073 else
4074 case $cross_compiling:$ac_tool_warned in
4075 yes:)
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4078 ac_tool_warned=yes ;;
4079 esac
4080 CC=$ac_ct_CC
4087 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089 as_fn_error "no acceptable C compiler found in \$PATH
4090 See \`config.log' for more details." "$LINENO" 5; }
4092 # Provide some information about the compiler.
4093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4094 set X $ac_compile
4095 ac_compiler=$2
4096 for ac_option in --version -v -V -qversion; do
4097 { { ac_try="$ac_compiler $ac_option >&5"
4098 case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101 esac
4102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103 $as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4105 ac_status=$?
4106 if test -s conftest.err; then
4107 sed '10a\
4108 ... rest of stderr output deleted ...
4109 10q' conftest.err >conftest.er1
4110 cat conftest.er1 >&5
4111 rm -f conftest.er1 conftest.err
4113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114 test $ac_status = 0; }
4115 done
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4121 main ()
4125 return 0;
4127 _ACEOF
4128 ac_clean_files_save=$ac_clean_files
4129 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4130 # Try to create an executable without -o first, disregard a.out.
4131 # It will help us diagnose broken compilers, and finding out an intuition
4132 # of exeext.
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4134 $as_echo_n "checking for C compiler default output file name... " >&6; }
4135 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4137 # The possible output files:
4138 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4140 ac_rmfiles=
4141 for ac_file in $ac_files
4143 case $ac_file in
4144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4145 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4146 esac
4147 done
4148 rm -f $ac_rmfiles
4150 if { { ac_try="$ac_link_default"
4151 case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154 esac
4155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4156 $as_echo "$ac_try_echo"; } >&5
4157 (eval "$ac_link_default") 2>&5
4158 ac_status=$?
4159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4160 test $ac_status = 0; }; then :
4161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4163 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4164 # so that the user can short-circuit this test for compilers unknown to
4165 # Autoconf.
4166 for ac_file in $ac_files ''
4168 test -f "$ac_file" || continue
4169 case $ac_file in
4170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4172 [ab].out )
4173 # We found the default executable, but exeext='' is most
4174 # certainly right.
4175 break;;
4176 *.* )
4177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4178 then :; else
4179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4181 # We set ac_cv_exeext here because the later test for it is not
4182 # safe: cross compilers may not add the suffix if given an `-o'
4183 # argument, so we may need to know it at that point already.
4184 # Even if this section looks crufty: it has the advantage of
4185 # actually working.
4186 break;;
4188 break;;
4189 esac
4190 done
4191 test "$ac_cv_exeext" = no && ac_cv_exeext=
4193 else
4194 ac_file=''
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4197 $as_echo "$ac_file" >&6; }
4198 if test -z "$ac_file"; then :
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4204 { as_fn_set_status 77
4205 as_fn_error "C compiler cannot create executables
4206 See \`config.log' for more details." "$LINENO" 5; }; }
4208 ac_exeext=$ac_cv_exeext
4210 # Check that the compiler produces executables we can run. If not, either
4211 # the compiler is broken, or we cross compile.
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4213 $as_echo_n "checking whether the C compiler works... " >&6; }
4214 # If not cross compiling, check that we can run a simple program.
4215 if test "$cross_compiling" != yes; then
4216 if { ac_try='./$ac_file'
4217 { { case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222 $as_echo "$ac_try_echo"; } >&5
4223 (eval "$ac_try") 2>&5
4224 ac_status=$?
4225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4226 test $ac_status = 0; }; }; then
4227 cross_compiling=no
4228 else
4229 if test "$cross_compiling" = maybe; then
4230 cross_compiling=yes
4231 else
4232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4234 as_fn_error "cannot run C compiled programs.
4235 If you meant to cross compile, use \`--host'.
4236 See \`config.log' for more details." "$LINENO" 5; }
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4241 $as_echo "yes" >&6; }
4243 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4244 ac_clean_files=$ac_clean_files_save
4245 # Check that the compiler produces executables we can run. If not, either
4246 # the compiler is broken, or we cross compile.
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4248 $as_echo_n "checking whether we are cross compiling... " >&6; }
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4250 $as_echo "$cross_compiling" >&6; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4253 $as_echo_n "checking for suffix of executables... " >&6; }
4254 if { { ac_try="$ac_link"
4255 case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261 (eval "$ac_link") 2>&5
4262 ac_status=$?
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; }; then :
4265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4266 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4267 # work properly (i.e., refer to `conftest.exe'), while it won't with
4268 # `rm'.
4269 for ac_file in conftest.exe conftest conftest.*; do
4270 test -f "$ac_file" || continue
4271 case $ac_file in
4272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4274 break;;
4275 * ) break;;
4276 esac
4277 done
4278 else
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error "cannot compute suffix of executables: cannot compile and link
4282 See \`config.log' for more details." "$LINENO" 5; }
4284 rm -f conftest$ac_cv_exeext
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4286 $as_echo "$ac_cv_exeext" >&6; }
4288 rm -f conftest.$ac_ext
4289 EXEEXT=$ac_cv_exeext
4290 ac_exeext=$EXEEXT
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4292 $as_echo_n "checking for suffix of object files... " >&6; }
4293 if test "${ac_cv_objext+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4300 main ()
4304 return 0;
4306 _ACEOF
4307 rm -f conftest.o conftest.obj
4308 if { { ac_try="$ac_compile"
4309 case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312 esac
4313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314 $as_echo "$ac_try_echo"; } >&5
4315 (eval "$ac_compile") 2>&5
4316 ac_status=$?
4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }; then :
4319 for ac_file in conftest.o conftest.obj conftest.*; do
4320 test -f "$ac_file" || continue;
4321 case $ac_file in
4322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4323 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4324 break;;
4325 esac
4326 done
4327 else
4328 $as_echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4333 as_fn_error "cannot compute suffix of object files: cannot compile
4334 See \`config.log' for more details." "$LINENO" 5; }
4336 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4339 $as_echo "$ac_cv_objext" >&6; }
4340 OBJEXT=$ac_cv_objext
4341 ac_objext=$OBJEXT
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4343 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4344 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4351 main ()
4353 #ifndef __GNUC__
4354 choke me
4355 #endif
4358 return 0;
4360 _ACEOF
4361 if ac_fn_c_try_compile "$LINENO"; then :
4362 ac_compiler_gnu=yes
4363 else
4364 ac_compiler_gnu=no
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4371 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4372 if test $ac_compiler_gnu = yes; then
4373 GCC=yes
4374 else
4375 GCC=
4377 ac_test_CFLAGS=${CFLAGS+set}
4378 ac_save_CFLAGS=$CFLAGS
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4380 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4381 if test "${ac_cv_prog_cc_g+set}" = set; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 ac_save_c_werror_flag=$ac_c_werror_flag
4385 ac_c_werror_flag=yes
4386 ac_cv_prog_cc_g=no
4387 CFLAGS="-g"
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4392 main ()
4396 return 0;
4398 _ACEOF
4399 if ac_fn_c_try_compile "$LINENO"; then :
4400 ac_cv_prog_cc_g=yes
4401 else
4402 CFLAGS=""
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4407 main ()
4411 return 0;
4413 _ACEOF
4414 if ac_fn_c_try_compile "$LINENO"; then :
4416 else
4417 ac_c_werror_flag=$ac_save_c_werror_flag
4418 CFLAGS="-g"
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4423 main ()
4427 return 0;
4429 _ACEOF
4430 if ac_fn_c_try_compile "$LINENO"; then :
4431 ac_cv_prog_cc_g=yes
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 ac_c_werror_flag=$ac_save_c_werror_flag
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4441 $as_echo "$ac_cv_prog_cc_g" >&6; }
4442 if test "$ac_test_CFLAGS" = set; then
4443 CFLAGS=$ac_save_CFLAGS
4444 elif test $ac_cv_prog_cc_g = yes; then
4445 if test "$GCC" = yes; then
4446 CFLAGS="-g -O2"
4447 else
4448 CFLAGS="-g"
4450 else
4451 if test "$GCC" = yes; then
4452 CFLAGS="-O2"
4453 else
4454 CFLAGS=
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4458 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4459 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 ac_cv_prog_cc_c89=no
4463 ac_save_CC=$CC
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 #include <stdarg.h>
4467 #include <stdio.h>
4468 #include <sys/types.h>
4469 #include <sys/stat.h>
4470 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4471 struct buf { int x; };
4472 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4473 static char *e (p, i)
4474 char **p;
4475 int i;
4477 return p[i];
4479 static char *f (char * (*g) (char **, int), char **p, ...)
4481 char *s;
4482 va_list v;
4483 va_start (v,p);
4484 s = g (p, va_arg (v,int));
4485 va_end (v);
4486 return s;
4489 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4490 function prototypes and stuff, but not '\xHH' hex character constants.
4491 These don't provoke an error unfortunately, instead are silently treated
4492 as 'x'. The following induces an error, until -std is added to get
4493 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4494 array size at least. It's necessary to write '\x00'==0 to get something
4495 that's true only with -std. */
4496 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4498 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4499 inside strings and character constants. */
4500 #define FOO(x) 'x'
4501 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4503 int test (int i, double x);
4504 struct s1 {int (*f) (int a);};
4505 struct s2 {int (*f) (double a);};
4506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4507 int argc;
4508 char **argv;
4510 main ()
4512 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4514 return 0;
4516 _ACEOF
4517 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4518 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4520 CC="$ac_save_CC $ac_arg"
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522 ac_cv_prog_cc_c89=$ac_arg
4524 rm -f core conftest.err conftest.$ac_objext
4525 test "x$ac_cv_prog_cc_c89" != "xno" && break
4526 done
4527 rm -f conftest.$ac_ext
4528 CC=$ac_save_CC
4531 # AC_CACHE_VAL
4532 case "x$ac_cv_prog_cc_c89" in
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4535 $as_echo "none needed" >&6; } ;;
4536 xno)
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4538 $as_echo "unsupported" >&6; } ;;
4540 CC="$CC $ac_cv_prog_cc_c89"
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4542 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4543 esac
4544 if test "x$ac_cv_prog_cc_c89" != xno; then :
4548 ac_ext=c
4549 ac_cpp='$CPP $CPPFLAGS'
4550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554 ac_ext=cpp
4555 ac_cpp='$CXXCPP $CPPFLAGS'
4556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4559 if test -z "$CXX"; then
4560 if test -n "$CCC"; then
4561 CXX=$CCC
4562 else
4563 if test -n "$ac_tool_prefix"; then
4564 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if test "${ac_cv_prog_CXX+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if test -n "$CXX"; then
4574 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4587 done
4588 done
4589 IFS=$as_save_IFS
4593 CXX=$ac_cv_prog_CXX
4594 if test -n "$CXX"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4596 $as_echo "$CXX" >&6; }
4597 else
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4603 test -n "$CXX" && break
4604 done
4606 if test -z "$CXX"; then
4607 ac_ct_CXX=$CXX
4608 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4610 # Extract the first word of "$ac_prog", so it can be a program name with args.
4611 set dummy $ac_prog; ac_word=$2
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613 $as_echo_n "checking for $ac_word... " >&6; }
4614 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test -n "$ac_ct_CXX"; then
4618 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_ac_ct_CXX="$ac_prog"
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4631 done
4632 done
4633 IFS=$as_save_IFS
4637 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4638 if test -n "$ac_ct_CXX"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4640 $as_echo "$ac_ct_CXX" >&6; }
4641 else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4647 test -n "$ac_ct_CXX" && break
4648 done
4650 if test "x$ac_ct_CXX" = x; then
4651 CXX="g++"
4652 else
4653 case $cross_compiling:$ac_tool_warned in
4654 yes:)
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4657 ac_tool_warned=yes ;;
4658 esac
4659 CXX=$ac_ct_CXX
4665 # Provide some information about the compiler.
4666 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4667 set X $ac_compile
4668 ac_compiler=$2
4669 for ac_option in --version -v -V -qversion; do
4670 { { ac_try="$ac_compiler $ac_option >&5"
4671 case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4676 $as_echo "$ac_try_echo"; } >&5
4677 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4678 ac_status=$?
4679 if test -s conftest.err; then
4680 sed '10a\
4681 ... rest of stderr output deleted ...
4682 10q' conftest.err >conftest.er1
4683 cat conftest.er1 >&5
4684 rm -f conftest.er1 conftest.err
4686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4687 test $ac_status = 0; }
4688 done
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4691 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4692 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4699 main ()
4701 #ifndef __GNUC__
4702 choke me
4703 #endif
4706 return 0;
4708 _ACEOF
4709 if ac_fn_cxx_try_compile "$LINENO"; then :
4710 ac_compiler_gnu=yes
4711 else
4712 ac_compiler_gnu=no
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4719 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4720 if test $ac_compiler_gnu = yes; then
4721 GXX=yes
4722 else
4723 GXX=
4725 ac_test_CXXFLAGS=${CXXFLAGS+set}
4726 ac_save_CXXFLAGS=$CXXFLAGS
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4728 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4729 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4733 ac_cxx_werror_flag=yes
4734 ac_cv_prog_cxx_g=no
4735 CXXFLAGS="-g"
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4740 main ()
4744 return 0;
4746 _ACEOF
4747 if ac_fn_cxx_try_compile "$LINENO"; then :
4748 ac_cv_prog_cxx_g=yes
4749 else
4750 CXXFLAGS=""
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4755 main ()
4759 return 0;
4761 _ACEOF
4762 if ac_fn_cxx_try_compile "$LINENO"; then :
4764 else
4765 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4766 CXXFLAGS="-g"
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4771 main ()
4775 return 0;
4777 _ACEOF
4778 if ac_fn_cxx_try_compile "$LINENO"; then :
4779 ac_cv_prog_cxx_g=yes
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4789 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4790 if test "$ac_test_CXXFLAGS" = set; then
4791 CXXFLAGS=$ac_save_CXXFLAGS
4792 elif test $ac_cv_prog_cxx_g = yes; then
4793 if test "$GXX" = yes; then
4794 CXXFLAGS="-g -O2"
4795 else
4796 CXXFLAGS="-g"
4798 else
4799 if test "$GXX" = yes; then
4800 CXXFLAGS="-O2"
4801 else
4802 CXXFLAGS=
4805 ac_ext=c
4806 ac_cpp='$CPP $CPPFLAGS'
4807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812 # We must set the default linker to the linker used by gcc for the correct
4813 # operation of libtool. If LD is not defined and we are using gcc, try to
4814 # set the LD default to the ld used by gcc.
4815 if test -z "$LD"; then
4816 if test "$GCC" = yes; then
4817 case $build in
4818 *-*-mingw*)
4819 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4821 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4822 esac
4823 case $gcc_prog_ld in
4824 # Accept absolute paths.
4825 [\\/]* | [A-Za-z]:[\\/]*)
4826 LD="$gcc_prog_ld" ;;
4827 esac
4834 if test -n "$ac_tool_prefix"; then
4835 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4836 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 if test -n "$GNATBIND"; then
4843 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4844 else
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4852 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4856 done
4857 done
4858 IFS=$as_save_IFS
4862 GNATBIND=$ac_cv_prog_GNATBIND
4863 if test -n "$GNATBIND"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4865 $as_echo "$GNATBIND" >&6; }
4866 else
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4873 if test -z "$ac_cv_prog_GNATBIND"; then
4874 ac_ct_GNATBIND=$GNATBIND
4875 # Extract the first word of "gnatbind", so it can be a program name with args.
4876 set dummy gnatbind; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 if test -n "$ac_ct_GNATBIND"; then
4883 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4896 done
4897 done
4898 IFS=$as_save_IFS
4902 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4903 if test -n "$ac_ct_GNATBIND"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4905 $as_echo "$ac_ct_GNATBIND" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4911 if test "x$ac_ct_GNATBIND" = x; then
4912 GNATBIND="no"
4913 else
4914 case $cross_compiling:$ac_tool_warned in
4915 yes:)
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4918 ac_tool_warned=yes ;;
4919 esac
4920 GNATBIND=$ac_ct_GNATBIND
4922 else
4923 GNATBIND="$ac_cv_prog_GNATBIND"
4926 if test -n "$ac_tool_prefix"; then
4927 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4928 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 if test -n "$GNATMAKE"; then
4935 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4950 IFS=$as_save_IFS
4954 GNATMAKE=$ac_cv_prog_GNATMAKE
4955 if test -n "$GNATMAKE"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4957 $as_echo "$GNATMAKE" >&6; }
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4965 if test -z "$ac_cv_prog_GNATMAKE"; then
4966 ac_ct_GNATMAKE=$GNATMAKE
4967 # Extract the first word of "gnatmake", so it can be a program name with args.
4968 set dummy gnatmake; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$ac_ct_GNATMAKE"; then
4975 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4988 done
4989 done
4990 IFS=$as_save_IFS
4994 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4995 if test -n "$ac_ct_GNATMAKE"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4997 $as_echo "$ac_ct_GNATMAKE" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5003 if test "x$ac_ct_GNATMAKE" = x; then
5004 GNATMAKE="no"
5005 else
5006 case $cross_compiling:$ac_tool_warned in
5007 yes:)
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5010 ac_tool_warned=yes ;;
5011 esac
5012 GNATMAKE=$ac_ct_GNATMAKE
5014 else
5015 GNATMAKE="$ac_cv_prog_GNATMAKE"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5019 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5020 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 cat >conftest.adb <<EOF
5024 procedure conftest is begin null; end conftest;
5026 acx_cv_cc_gcc_supports_ada=no
5027 # There is a bug in old released versions of GCC which causes the
5028 # driver to exit successfully when the appropriate language module
5029 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5030 # Therefore we must check for the error message as well as an
5031 # unsuccessful exit.
5032 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5033 # given a .adb file, but produce no object file. So we must check
5034 # if an object file was really produced to guard against this.
5035 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5036 if test x"$errors" = x && test -f conftest.$ac_objext; then
5037 acx_cv_cc_gcc_supports_ada=yes
5039 rm -f conftest.*
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5042 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5044 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5045 have_gnat=yes
5046 else
5047 have_gnat=no
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5051 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5052 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 echo abfoo >t1
5056 echo cdfoo >t2
5057 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5058 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5059 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5061 else
5062 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5065 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5066 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5068 else
5069 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5072 rm t1 t2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5076 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5077 do_compare="$gcc_cv_prog_cmp_skip"
5081 # See if we are building gcc with C++.
5082 # Check whether --enable-build-with-cxx was given.
5083 if test "${enable_build_with_cxx+set}" = set; then :
5084 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5085 else
5086 ENABLE_BUILD_WITH_CXX=no
5090 # Used for setting $lt_cv_objdir
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5092 $as_echo_n "checking for objdir... " >&6; }
5093 if test "${lt_cv_objdir+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 rm -f .libs 2>/dev/null
5097 mkdir .libs 2>/dev/null
5098 if test -d .libs; then
5099 lt_cv_objdir=.libs
5100 else
5101 # MS-DOS does not allow filenames that begin with a dot.
5102 lt_cv_objdir=_libs
5104 rmdir .libs 2>/dev/null
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5107 $as_echo "$lt_cv_objdir" >&6; }
5108 objdir=$lt_cv_objdir
5114 cat >>confdefs.h <<_ACEOF
5115 #define LT_OBJDIR "$lt_cv_objdir/"
5116 _ACEOF
5120 # Check for GMP, MPFR and MPC
5121 gmplibs="-lmpc -lmpfr -lgmp"
5122 gmpinc=
5123 have_gmp=no
5125 # Specify a location for mpc
5126 # check for this first so it ends up on the link line before mpfr.
5128 # Check whether --with-mpc was given.
5129 if test "${with_mpc+set}" = set; then :
5130 withval=$with_mpc;
5134 # Check whether --with-mpc-include was given.
5135 if test "${with_mpc_include+set}" = set; then :
5136 withval=$with_mpc_include;
5140 # Check whether --with-mpc-lib was given.
5141 if test "${with_mpc_lib+set}" = set; then :
5142 withval=$with_mpc_lib;
5146 if test "x$with_mpc" != x; then
5147 gmplibs="-L$with_mpc/lib $gmplibs"
5148 gmpinc="-I$with_mpc/include $gmpinc"
5150 if test "x$with_mpc_include" != x; then
5151 gmpinc="-I$with_mpc_include $gmpinc"
5153 if test "x$with_mpc_lib" != x; then
5154 gmplibs="-L$with_mpc_lib $gmplibs"
5156 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5157 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5158 gmpinc='-I$$s/mpc/src '"$gmpinc"
5159 # Do not test the mpc version. Assume that it is sufficient, since
5160 # it is in the source tree, and the library has not been built yet
5161 # but it would be included on the link line in the version check below
5162 # hence making the test fail.
5163 have_gmp=yes
5166 # Specify a location for mpfr
5167 # check for this first so it ends up on the link line before gmp.
5169 # Check whether --with-mpfr-dir was given.
5170 if test "${with_mpfr_dir+set}" = set; then :
5171 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5172 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5177 # Check whether --with-mpfr was given.
5178 if test "${with_mpfr+set}" = set; then :
5179 withval=$with_mpfr;
5183 # Check whether --with-mpfr-include was given.
5184 if test "${with_mpfr_include+set}" = set; then :
5185 withval=$with_mpfr_include;
5189 # Check whether --with-mpfr-lib was given.
5190 if test "${with_mpfr_lib+set}" = set; then :
5191 withval=$with_mpfr_lib;
5195 if test "x$with_mpfr" != x; then
5196 gmplibs="-L$with_mpfr/lib $gmplibs"
5197 gmpinc="-I$with_mpfr/include $gmpinc"
5199 if test "x$with_mpfr_include" != x; then
5200 gmpinc="-I$with_mpfr_include $gmpinc"
5202 if test "x$with_mpfr_lib" != x; then
5203 gmplibs="-L$with_mpfr_lib $gmplibs"
5205 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5206 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5207 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5208 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5209 # Do not test the mpfr version. Assume that it is sufficient, since
5210 # it is in the source tree, and the library has not been built yet
5211 # but it would be included on the link line in the version check below
5212 # hence making the test fail.
5213 have_gmp=yes
5216 # Specify a location for gmp
5218 # Check whether --with-gmp-dir was given.
5219 if test "${with_gmp_dir+set}" = set; then :
5220 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5221 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5226 # Check whether --with-gmp was given.
5227 if test "${with_gmp+set}" = set; then :
5228 withval=$with_gmp;
5232 # Check whether --with-gmp-include was given.
5233 if test "${with_gmp_include+set}" = set; then :
5234 withval=$with_gmp_include;
5238 # Check whether --with-gmp-lib was given.
5239 if test "${with_gmp_lib+set}" = set; then :
5240 withval=$with_gmp_lib;
5245 if test "x$with_gmp" != x; then
5246 gmplibs="-L$with_gmp/lib $gmplibs"
5247 gmpinc="-I$with_gmp/include $gmpinc"
5249 if test "x$with_gmp_include" != x; then
5250 gmpinc="-I$with_gmp_include $gmpinc"
5252 if test "x$with_gmp_lib" != x; then
5253 gmplibs="-L$with_gmp_lib $gmplibs"
5255 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5256 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5257 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5258 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5259 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5260 # Do not test the gmp version. Assume that it is sufficient, since
5261 # it is in the source tree, and the library has not been built yet
5262 # but it would be included on the link line in the version check below
5263 # hence making the test fail.
5264 have_gmp=yes
5267 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5268 have_gmp=yes
5269 saved_CFLAGS="$CFLAGS"
5270 CFLAGS="$CFLAGS $gmpinc"
5271 # Check for the recommended and required versions of GMP.
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5273 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 #include "gmp.h"
5279 main ()
5282 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5283 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5284 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5285 choke me
5286 #endif
5289 return 0;
5291 _ACEOF
5292 if ac_fn_c_try_compile "$LINENO"; then :
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295 #include <gmp.h>
5297 main ()
5300 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5301 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5302 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5303 choke me
5304 #endif
5307 return 0;
5309 _ACEOF
5310 if ac_fn_c_try_compile "$LINENO"; then :
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5312 $as_echo "yes" >&6; }
5313 else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5315 $as_echo "buggy but acceptable" >&6; }
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }; have_gmp=no
5322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 # If we have GMP, check the MPFR version.
5325 if test x"$have_gmp" = xyes; then
5326 # Check for the recommended and required versions of MPFR.
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5328 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 #include <gmp.h>
5332 #include <mpfr.h>
5334 main ()
5337 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5338 choke me
5339 #endif
5342 return 0;
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"; then :
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348 #include <gmp.h>
5349 #include <mpfr.h>
5351 main ()
5354 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5355 choke me
5356 #endif
5359 return 0;
5361 _ACEOF
5362 if ac_fn_c_try_compile "$LINENO"; then :
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5364 $as_echo "yes" >&6; }
5365 else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5367 $as_echo "buggy but acceptable" >&6; }
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }; have_gmp=no
5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 # Check for the MPC header version.
5378 if test x"$have_gmp" = xyes ; then
5379 # Check for the recommended and required versions of MPC.
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5381 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384 #include <mpc.h>
5386 main ()
5389 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5390 choke me
5391 #endif
5394 return 0;
5396 _ACEOF
5397 if ac_fn_c_try_compile "$LINENO"; then :
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5400 #include <mpc.h>
5402 main ()
5405 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5406 choke me
5407 #endif
5410 return 0;
5412 _ACEOF
5413 if ac_fn_c_try_compile "$LINENO"; then :
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5415 $as_echo "yes" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5418 $as_echo "buggy but acceptable" >&6; }
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }; have_gmp=no
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 # Now check the MPFR library.
5429 if test x"$have_gmp" = xyes; then
5430 saved_LIBS="$LIBS"
5431 LIBS="$LIBS $gmplibs"
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5433 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 #include <mpc.h>
5438 main ()
5441 mpfr_t n;
5442 mpfr_t x;
5443 mpc_t c;
5444 int t;
5445 mpfr_init (n);
5446 mpfr_init (x);
5447 mpfr_atan2 (n, n, x, GMP_RNDN);
5448 mpfr_erfc (n, x, GMP_RNDN);
5449 mpfr_subnormalize (x, t, GMP_RNDN);
5450 mpfr_clear(n);
5451 mpfr_clear(x);
5452 mpc_init2 (c, 53);
5453 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5454 mpc_cosh (c, c, MPC_RNDNN);
5455 mpc_pow (c, c, c, MPC_RNDNN);
5456 mpc_acosh (c, c, MPC_RNDNN);
5457 mpc_clear (c);
5460 return 0;
5462 _ACEOF
5463 if ac_fn_c_try_link "$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: no" >&5
5468 $as_echo "no" >&6; }; have_gmp=no
5470 rm -f core conftest.err conftest.$ac_objext \
5471 conftest$ac_exeext conftest.$ac_ext
5472 LIBS="$saved_LIBS"
5475 CFLAGS="$saved_CFLAGS"
5477 # The library versions listed in the error message below should match
5478 # the HARD-minimums enforced above.
5479 if test x$have_gmp != xyes; then
5480 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5481 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5482 their locations. Source code for these libraries can be found at
5483 their respective hosting sites as well as at
5484 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5485 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5486 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5487 make sure that you have installed both the libraries and the header
5488 files. They may be located in separate packages." "$LINENO" 5
5492 # Flags needed for both GMP, MPFR and/or MPC.
5499 # Allow host libstdc++ to be specified for static linking with PPL.
5501 # Check whether --with-host-libstdcxx was given.
5502 if test "${with_host_libstdcxx+set}" = set; then :
5503 withval=$with_host_libstdcxx;
5507 case $with_host_libstdcxx in
5508 no|yes)
5509 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5511 esac
5513 # Linker flags to use for stage1 or when not boostrapping.
5515 # Check whether --with-stage1-ldflags was given.
5516 if test "${with_stage1_ldflags+set}" = set; then :
5517 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5518 stage1_ldflags=
5519 else
5520 stage1_ldflags=$withval
5522 else
5523 stage1_ldflags=
5528 # Libraries to use for stage1 or when not bootstrapping.
5530 # Check whether --with-stage1-libs was given.
5531 if test "${with_stage1_libs+set}" = set; then :
5532 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5533 stage1_libs=
5534 else
5535 stage1_libs=$withval
5537 else
5538 stage1_libs=$with_host_libstdcxx
5543 # Libraries to use for stage2 and later builds. This defaults to the
5544 # argument passed to --with-host-libstdcxx.
5546 # Check whether --with-boot-libs was given.
5547 if test "${with_boot_libs+set}" = set; then :
5548 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5549 poststage1_libs=
5550 else
5551 poststage1_libs=$withval
5553 else
5554 poststage1_libs=$with_host_libstdcxx
5559 # Linker flags to use for stage2 and later builds.
5561 # Check whether --with-boot-ldflags was given.
5562 if test "${with_boot_ldflags+set}" = set; then :
5563 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5564 poststage1_ldflags=
5565 else
5566 poststage1_ldflags=$withval
5568 else
5569 poststage1_ldflags=
5570 # With --enable-build-with-cxx, default to linking libstdc++ and
5571 # libgcc statically. But if the user explicitly specified the
5572 # libraries to use, trust that they are doing what they want.
5573 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5574 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5580 # Check for PPL
5581 ppllibs=" -lppl_c -lppl -lgmpxx"
5582 pplinc=
5585 # Check whether --with-ppl was given.
5586 if test "${with_ppl+set}" = set; then :
5587 withval=$with_ppl;
5591 # Check whether --with-ppl-include was given.
5592 if test "${with_ppl_include+set}" = set; then :
5593 withval=$with_ppl_include;
5597 # Check whether --with-ppl-lib was given.
5598 if test "${with_ppl_lib+set}" = set; then :
5599 withval=$with_ppl_lib;
5603 case $with_ppl in
5605 ppllibs=
5607 "" | yes)
5610 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5611 pplinc="-I$with_ppl/include $pplinc"
5613 esac
5614 if test "x$with_ppl_include" != x; then
5615 pplinc="-I$with_ppl_include $pplinc"
5617 if test "x$with_ppl_lib" != x; then
5618 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5620 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5621 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5622 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5623 enable_ppl_version_check=no
5626 # Check whether --enable-ppl-version-check was given.
5627 if test "${enable_ppl_version_check+set}" = set; then :
5628 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5629 else
5630 ENABLE_PPL_CHECK=yes
5634 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5635 saved_CFLAGS="$CFLAGS"
5636 CFLAGS="$CFLAGS $pplinc $gmpinc"
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5638 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 #include "ppl_c.h"
5643 main ()
5646 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5647 choke me
5648 #endif
5651 return 0;
5653 _ACEOF
5654 if ac_fn_c_try_compile "$LINENO"; then :
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5656 $as_echo "yes" >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 CFLAGS="$saved_CFLAGS"
5665 # Flags needed for PPL
5670 # Check for CLOOG
5674 # Check whether --with-cloog was given.
5675 if test "${with_cloog+set}" = set; then :
5676 withval=$with_cloog;
5680 # Check whether --with-cloog-include was given.
5681 if test "${with_cloog_include+set}" = set; then :
5682 withval=$with_cloog_include;
5686 # Check whether --with-cloog-lib was given.
5687 if test "${with_cloog_lib+set}" = set; then :
5688 withval=$with_cloog_lib;
5692 # Check whether --enable-cloog-backend was given.
5693 if test "${enable_cloog_backend+set}" = set; then :
5694 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5695 cloog_backend=isl
5696 elif test "x${enableval}" = "xppl"; then
5697 cloog_backend=ppl
5698 else
5699 cloog_backend=ppl-legacy
5701 else
5702 cloog_backend=ppl-legacy
5705 # Check whether --enable-cloog-version-check was given.
5706 if test "${enable_cloog_version_check+set}" = set; then :
5707 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5708 else
5709 ENABLE_CLOOG_CHECK=yes
5713 # Initialize clooglibs and clooginc.
5714 case $with_cloog in
5716 clooglibs=
5717 clooginc=
5719 "" | yes)
5722 clooglibs="-L$with_cloog/lib"
5723 clooginc="-I$with_cloog/include"
5725 esac
5726 if test "x${with_cloog_include}" != x ; then
5727 clooginc="-I$with_cloog_include"
5729 if test "x${with_cloog_lib}" != x; then
5730 clooglibs="-L$with_cloog_lib"
5737 if test "x$with_ppl" = "xno"; then
5738 with_cloog=no
5740 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5741 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5742 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5743 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5745 if test "x$with_cloog" != "xno"; then
5749 _cloog_saved_CFLAGS=$CFLAGS
5750 _cloog_saved_CPPFLAGS=$CPPFLAGS
5751 _cloog_saved_LDFLAGS=$LDFLAGS
5752 _cloog_saved_LIBS=$LIBS
5754 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5756 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5757 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5758 LDFLAGS="${LDFLAGS} ${clooglibs}"
5760 case $cloog_backend in
5761 "ppl-legacy")
5762 CFLAGS="${CFLAGS} ${pplinc}"
5763 LDFLAGS="${LDFLAGS} ${ppllibs}"
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5765 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5766 if test "${gcc_cv_cloog_type+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 LIBS="-lcloog ${_cloog_saved_LIBS}"
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 #include "cloog/cloog.h"
5774 main ()
5776 #ifndef CLOOG_PPL_BACKEND
5777 choke me
5778 #endif
5780 return 0;
5782 _ACEOF
5783 if ac_fn_c_try_link "$LINENO"; then :
5784 gcc_cv_cloog_type="PPL Legacy"
5785 else
5786 gcc_cv_cloog_type=no
5788 rm -f core conftest.err conftest.$ac_objext \
5789 conftest$ac_exeext conftest.$ac_ext
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5792 $as_echo "$gcc_cv_cloog_type" >&6; }
5794 "isl")
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5796 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5797 if test "${gcc_cv_cloog_type+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803 #include "cloog/cloog.h"
5805 main ()
5807 cloog_version ()
5809 return 0;
5811 _ACEOF
5812 if ac_fn_c_try_link "$LINENO"; then :
5813 gcc_cv_cloog_type="ISL"
5814 else
5815 gcc_cv_cloog_type=no
5817 rm -f core conftest.err conftest.$ac_objext \
5818 conftest$ac_exeext conftest.$ac_ext
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5821 $as_echo "$gcc_cv_cloog_type" >&6; }
5823 "ppl")
5824 CFLAGS="${CFLAGS} ${pplinc}"
5825 LDFLAGS="${LDFLAGS} ${ppllibs}"
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5827 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5828 if test "${gcc_cv_cloog_type+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include "cloog/cloog.h"
5835 #include "cloog/ppl/cloog.h"
5837 main ()
5839 cloog_version ()
5841 return 0;
5843 _ACEOF
5844 if ac_fn_c_try_link "$LINENO"; then :
5845 gcc_cv_cloog_type="PPL"
5846 else
5847 gcc_cv_cloog_type=no
5849 rm -f core conftest.err conftest.$ac_objext \
5850 conftest$ac_exeext conftest.$ac_ext
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5853 $as_echo "$gcc_cv_cloog_type" >&6; }
5856 gcc_cv_cloog_type=""
5857 esac
5859 case $gcc_cv_cloog_type in
5860 "PPL Legacy")
5861 clooginc="${clooginc}"
5862 clooglibs="${clooglibs} -lcloog"
5863 cloog_org=no
5865 "ISL")
5866 clooginc="${clooginc} ${_cloogorginc}"
5867 clooglibs="${clooglibs} -lcloog-isl"
5868 cloog_org=yes
5870 "PPL")
5871 clooginc="${clooginc} ${_cloogorginc}"
5872 clooglibs="${clooglibs} -lcloog-ppl"
5873 cloog_org=yes
5876 clooglibs=
5877 clooginc=
5878 cloog_org=
5880 esac
5882 LIBS=$_cloog_saved_LIBS
5883 CFLAGS=$_cloog_saved_CFLAGS
5884 CPPFLAGS=$_cloog_saved_CPPFLAGS
5885 LDFLAGS=$_cloog_saved_LDFLAGS
5891 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5892 _cloog_saved_CFLAGS=$CFLAGS
5893 _cloog_saved_LDFLAGS=$LDFLAGS
5895 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5896 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5898 if test "${cloog_org}" = yes ; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5900 $as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5901 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 #include "cloog/cloog.h"
5908 main ()
5910 #if CLOOG_VERSION_MAJOR != 0 \
5911 || CLOOG_VERSION_MINOR != 14 \
5912 || CLOOG_VERSION_REVISION < 0
5913 choke me
5914 #endif
5916 return 0;
5918 _ACEOF
5919 if ac_fn_c_try_compile "$LINENO"; then :
5920 gcc_cv_cloog_ct_0_14_0=yes
5921 else
5922 gcc_cv_cloog_ct_0_14_0=no
5924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5927 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5928 elif test "${cloog_org}" = no ; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5930 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5931 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5936 #include "cloog/cloog.h"
5938 main ()
5940 #if CLOOG_VERSION_MAJOR != 0 \
5941 || CLOOG_VERSION_MINOR != 15 \
5942 || CLOOG_VERSION_REVISION < 5
5943 choke me
5944 #endif
5946 return 0;
5948 _ACEOF
5949 if ac_fn_c_try_compile "$LINENO"; then :
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #include "cloog/cloog.h"
5954 main ()
5956 #if CLOOG_VERSION_MAJOR != 0 \
5957 || CLOOG_VERSION_MINOR != 15 \
5958 || CLOOG_VERSION_REVISION < 9
5959 choke me
5960 #endif
5962 return 0;
5964 _ACEOF
5965 if ac_fn_c_try_compile "$LINENO"; then :
5966 gcc_cv_cloog_ct_0_15_5=yes
5967 else
5968 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 else
5972 gcc_cv_cloog_ct_0_15_5=no
5974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5977 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5980 CFLAGS=$_cloog_saved_CFLAGS
5981 LDFLAGS=$_cloog_saved_LDFLAGS
5990 if test "x${with_cloog}" != x \
5991 || test "x${with_cloog_include}" != x \
5992 || test "x${with_cloog_lib}" != x ; then
5993 graphite_requested=yes
5994 else
5995 graphite_requested=no
6000 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6001 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6002 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6003 clooglibs=
6004 clooginc=
6007 if test "${graphite_requested}" = yes \
6008 && test "x${clooglibs}" = x \
6009 && test "x${clooginc}" = x ; then
6011 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6017 # Check for LTO support.
6018 # Check whether --enable-lto was given.
6019 if test "${enable_lto+set}" = set; then :
6020 enableval=$enable_lto; enable_lto=$enableval
6021 else
6022 enable_lto=yes; default_enable_lto=yes
6029 target_elf=no
6030 case $target in
6031 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6032 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6033 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6034 target_elf=no
6037 target_elf=yes
6039 esac
6041 if test $target_elf = yes; then :
6042 # ELF platforms build the lto-plugin always.
6043 build_lto_plugin=yes
6045 else
6046 if test x"$default_enable_lto" = x"yes" ; then
6047 case $target in
6048 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6049 # On other non-ELF platforms, LTO has yet to be validated.
6050 *) enable_lto=no ;;
6051 esac
6052 else
6053 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6054 # It would also be nice to check the binutils support, but we don't
6055 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6056 # warn during gcc/ subconfigure; unless you're bootstrapping with
6057 # -flto it won't be needed until after installation anyway.
6058 case $target in
6059 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6060 *) if test x"$enable_lto" = x"yes"; then
6061 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6064 esac
6066 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6067 # Build it unless LTO was explicitly disabled.
6068 case $target in
6069 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6070 *) ;;
6071 esac
6077 # By default, C is the only stage 1 language.
6078 stage1_languages=,c,
6080 # Target libraries that we bootstrap.
6081 bootstrap_target_libs=,target-libgcc,
6083 # Figure out what language subdirectories are present.
6084 # Look if the user specified --enable-languages="..."; if not, use
6085 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6086 # go away some day.
6087 # NB: embedded tabs in this IF block -- do not untabify
6088 if test -d ${srcdir}/gcc; then
6089 if test x"${enable_languages+set}" != xset; then
6090 if test x"${LANGUAGES+set}" = xset; then
6091 enable_languages="${LANGUAGES}"
6092 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6093 else
6094 enable_languages=all
6096 else
6097 if test x"${enable_languages}" = x ||
6098 test x"${enable_languages}" = xyes;
6099 then
6100 echo configure.in: --enable-languages needs at least one language argument 1>&2
6101 exit 1
6104 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6106 # 'f95' is the old name for the 'fortran' language. We issue a warning
6107 # and make the substitution.
6108 case ,${enable_languages}, in
6109 *,f95,*)
6110 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6111 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6113 esac
6115 # First scan to see if an enabled language requires some other language.
6116 # We assume that a given config-lang.in will list all the language
6117 # front ends it requires, even if some are required indirectly.
6118 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6119 case ${lang_frag} in
6120 ..) ;;
6121 # The odd quoting in the next line works around
6122 # an apparent bug in bash 1.12 on linux.
6123 ${srcdir}/gcc/[*]/config-lang.in) ;;
6125 # From the config-lang.in, get $language, $lang_requires, and
6126 # $lang_requires_boot_languages.
6127 language=
6128 lang_requires=
6129 lang_requires_boot_languages=
6130 . ${lang_frag}
6131 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6132 case ,${enable_languages}, in
6133 *,$other,*) ;;
6134 *,all,*) ;;
6135 *,$language,*)
6136 echo " \`$other' language required by \`$language'; enabling" 1>&2
6137 enable_languages="${enable_languages},${other}"
6139 esac
6140 done
6141 for other in ${lang_requires_boot_languages} ; do
6142 if test "$other" != "c"; then
6143 case ,${enable_stage1_languages}, in
6144 *,$other,*) ;;
6145 *,all,*) ;;
6147 case ,${enable_languages}, in
6148 *,$language,*)
6149 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6150 enable_stage1_languages="$enable_stage1_languages,${other}"
6152 esac
6154 esac
6156 done
6158 esac
6159 done
6161 new_enable_languages=,c,
6163 # If LTO is enabled, add the LTO front end.
6164 extra_host_libiberty_configure_flags=
6165 if test "$enable_lto" = "yes" ; then
6166 case ,${enable_languages}, in
6167 *,lto,*) ;;
6168 *) enable_languages="${enable_languages},lto" ;;
6169 esac
6170 if test "${build_lto_plugin}" = "yes" ; then
6171 configdirs="$configdirs lto-plugin"
6172 extra_host_libiberty_configure_flags=--enable-shared
6177 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6178 potential_languages=,c,
6180 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6181 case ${lang_frag} in
6182 ..) ;;
6183 # The odd quoting in the next line works around
6184 # an apparent bug in bash 1.12 on linux.
6185 ${srcdir}/gcc/[*]/config-lang.in) ;;
6187 # From the config-lang.in, get $language, $target_libs,
6188 # $lang_dirs, $boot_language, and $build_by_default
6189 language=
6190 target_libs=
6191 lang_dirs=
6192 subdir_requires=
6193 boot_language=no
6194 build_by_default=yes
6195 . ${lang_frag}
6196 if test x${language} = x; then
6197 echo "${lang_frag} doesn't set \$language." 1>&2
6198 exit 1
6201 if test "$language" = "c++" \
6202 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6203 boot_language=yes
6206 case ,${enable_languages}, in
6207 *,${language},*)
6208 # Language was explicitly selected; include it.
6209 add_this_lang=yes
6211 *,all,*)
6212 # 'all' was selected, select it if it is a default language
6213 add_this_lang=${build_by_default}
6216 add_this_lang=no
6218 esac
6220 # Disable languages that need other directories if these aren't available.
6221 for i in $subdir_requires; do
6222 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6223 case ,${enable_languages}, in
6224 *,${language},*)
6225 # Specifically requested language; tell them.
6226 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6229 # Silently disable.
6230 add_this_lang=unsupported
6232 esac
6233 done
6235 # Disable Ada if no preexisting GNAT is available.
6236 case ,${enable_languages},:${language}:${have_gnat} in
6237 *,${language},*:ada:no)
6238 # Specifically requested language; tell them.
6239 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6241 *:ada:no)
6242 # Silently disable.
6243 add_this_lang=unsupported
6245 esac
6247 # Disable a language that is unsupported by the target.
6248 case " $unsupported_languages " in
6249 *" $language "*)
6250 add_this_lang=unsupported
6252 esac
6254 case $add_this_lang in
6255 unsupported)
6256 # Remove language-dependent dirs.
6257 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6260 # Remove language-dependent dirs; still show language as supported.
6261 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6262 potential_languages="${potential_languages}${language},"
6264 yes)
6265 new_enable_languages="${new_enable_languages}${language},"
6266 potential_languages="${potential_languages}${language},"
6267 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6268 case "${boot_language}:,$enable_stage1_languages," in
6269 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6270 # Add to (comma-separated) list of stage 1 languages.
6271 case ",$stage1_languages," in
6272 *,$language,* | ,yes, | ,all,) ;;
6273 *) stage1_languages="${stage1_languages}${language}," ;;
6274 esac
6275 # We need to bootstrap any supporting libraries.
6276 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6278 esac
6280 esac
6282 esac
6283 done
6285 # Check whether --enable-stage1-languages was given.
6286 if test "${enable_stage1_languages+set}" = set; then :
6287 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6288 ,no,|,,)
6289 # Set it to something that will have no effect in the loop below
6290 enable_stage1_languages=c ;;
6291 ,yes,)
6292 enable_stage1_languages=`echo $new_enable_languages | \
6293 sed -e "s/^,//" -e "s/,$//" ` ;;
6294 *,all,*)
6295 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6296 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6297 esac
6299 # Add "good" languages from enable_stage1_languages to stage1_languages,
6300 # while "bad" languages go in missing_languages. Leave no duplicates.
6301 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6302 case $potential_languages in
6303 *,$i,*)
6304 case $stage1_languages in
6305 *,$i,*) ;;
6306 *) stage1_languages="$stage1_languages$i," ;;
6307 esac ;;
6309 case $missing_languages in
6310 *,$i,*) ;;
6311 *) missing_languages="$missing_languages$i," ;;
6312 esac ;;
6313 esac
6314 done
6318 # Remove leading/trailing commas that were added for simplicity
6319 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6320 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6321 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6322 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6324 if test "x$missing_languages" != x; then
6325 as_fn_error "
6326 The following requested languages could not be built: ${missing_languages}
6327 Supported languages are: ${potential_languages}" "$LINENO" 5
6329 if test "x$new_enable_languages" != "x$enable_languages"; then
6330 echo The following languages will be built: ${new_enable_languages}
6331 enable_languages="$new_enable_languages"
6335 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6338 # Handle --disable-<component> generically.
6339 for dir in $configdirs $build_configdirs $target_configdirs ; do
6340 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6341 varname=`echo $dirname | sed -e s/+/_/g`
6342 if eval test x\${enable_${varname}} "=" xno ; then
6343 noconfigdirs="$noconfigdirs $dir"
6345 done
6347 # Check for Boehm's garbage collector
6348 # Check whether --enable-objc-gc was given.
6349 if test "${enable_objc_gc+set}" = set; then :
6350 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6351 *,objc,*:*:yes:*target-boehm-gc*)
6352 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6354 esac
6358 # Make sure we only build Boehm's garbage collector if required.
6359 case ,${enable_languages},:${enable_objc_gc} in
6360 *,objc,*:yes)
6361 # Keep target-boehm-gc if requested for Objective-C.
6364 # Otherwise remove target-boehm-gc depending on target-libjava.
6365 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6366 noconfigdirs="$noconfigdirs target-boehm-gc"
6369 esac
6371 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6372 # $build_configdirs and $target_configdirs.
6373 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6375 notsupp=""
6376 for dir in . $skipdirs $noconfigdirs ; do
6377 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6378 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6379 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6380 if test -r $srcdir/$dirname/configure ; then
6381 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6382 true
6383 else
6384 notsupp="$notsupp $dir"
6388 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6389 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6390 if test -r $srcdir/$dirname/configure ; then
6391 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6392 true
6393 else
6394 notsupp="$notsupp $dir"
6398 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6399 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6400 if test -r $srcdir/$dirname/configure ; then
6401 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6402 true
6403 else
6404 notsupp="$notsupp $dir"
6408 done
6410 # Sometimes the tools are distributed with libiberty but with no other
6411 # libraries. In that case, we don't want to build target-libiberty.
6412 # Don't let libgcc imply libiberty either.
6413 if test -n "${target_configdirs}" ; then
6414 libgcc=
6415 others=
6416 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6417 if test "$i" = "libgcc"; then
6418 libgcc=target-libgcc
6419 elif test "$i" != "libiberty" ; then
6420 if test -r $srcdir/$i/configure ; then
6421 others=yes;
6422 break;
6425 done
6426 if test -z "${others}" ; then
6427 target_configdirs=$libgcc
6431 # Quietly strip out all directories which aren't configurable in this tree.
6432 # This relies on all configurable subdirectories being autoconfiscated, which
6433 # is now the case.
6434 build_configdirs_all="$build_configdirs"
6435 build_configdirs=
6436 for i in ${build_configdirs_all} ; do
6437 j=`echo $i | sed -e s/build-//g`
6438 if test -f ${srcdir}/$j/configure ; then
6439 build_configdirs="${build_configdirs} $i"
6441 done
6443 configdirs_all="$configdirs"
6444 configdirs=
6445 for i in ${configdirs_all} ; do
6446 if test -f ${srcdir}/$i/configure ; then
6447 configdirs="${configdirs} $i"
6449 done
6451 target_configdirs_all="$target_configdirs"
6452 target_configdirs=
6453 for i in ${target_configdirs_all} ; do
6454 j=`echo $i | sed -e s/target-//g`
6455 if test -f ${srcdir}/$j/configure ; then
6456 target_configdirs="${target_configdirs} $i"
6458 done
6460 # Produce a warning message for the subdirs we can't configure.
6461 # This isn't especially interesting in the Cygnus tree, but in the individual
6462 # FSF releases, it's important to let people know when their machine isn't
6463 # supported by the one or two programs in a package.
6465 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6466 # If $appdirs is non-empty, at least one of those directories must still
6467 # be configured, or we error out. (E.g., if the gas release supports a
6468 # specified target in some subdirs but not the gas subdir, we shouldn't
6469 # pretend that all is well.)
6470 if test -n "$appdirs" ; then
6471 for dir in $appdirs ; do
6472 if test -r $dir/Makefile.in ; then
6473 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 appdirs=""
6475 break
6477 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6478 appdirs=""
6479 break
6482 done
6483 if test -n "$appdirs" ; then
6484 echo "*** This configuration is not supported by this package." 1>&2
6485 exit 1
6488 # Okay, some application will build, or we don't care to check. Still
6489 # notify of subdirs not getting built.
6490 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6491 echo " ${notsupp}" 1>&2
6492 echo " (Any other directories should still work fine.)" 1>&2
6495 case "$host" in
6496 *msdosdjgpp*)
6497 enable_gdbtk=no ;;
6498 esac
6500 # To find our prefix, in gcc_cv_tool_prefix.
6502 # The user is always right.
6503 if test "${PATH_SEPARATOR+set}" != set; then
6504 echo "#! /bin/sh" >conf$$.sh
6505 echo "exit 0" >>conf$$.sh
6506 chmod +x conf$$.sh
6507 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6508 PATH_SEPARATOR=';'
6509 else
6510 PATH_SEPARATOR=:
6512 rm -f conf$$.sh
6517 if test "x$exec_prefix" = xNONE; then
6518 if test "x$prefix" = xNONE; then
6519 gcc_cv_tool_prefix=$ac_default_prefix
6520 else
6521 gcc_cv_tool_prefix=$prefix
6523 else
6524 gcc_cv_tool_prefix=$exec_prefix
6527 # If there is no compiler in the tree, use the PATH only. In any
6528 # case, if there is no compiler in the tree nobody should use
6529 # AS_FOR_TARGET and LD_FOR_TARGET.
6530 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6531 gcc_version=`cat $srcdir/gcc/BASE-VER`
6532 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6533 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6534 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6535 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6536 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6537 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6538 else
6539 gcc_cv_tool_dirs=
6542 if test x$build = x$target && test -n "$md_exec_prefix"; then
6543 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6548 copy_dirs=
6551 # Check whether --with-build-sysroot was given.
6552 if test "${with_build_sysroot+set}" = set; then :
6553 withval=$with_build_sysroot; if test x"$withval" != x ; then
6554 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6556 else
6557 SYSROOT_CFLAGS_FOR_TARGET=
6563 # Check whether --with-debug-prefix-map was given.
6564 if test "${with_debug_prefix_map+set}" = set; then :
6565 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6566 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6567 for debug_map in $withval; do
6568 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6569 done
6571 else
6572 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6577 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6578 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6579 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6580 # We want to ensure that TARGET libraries (which we know are built with
6581 # gcc) are built with "-O2 -g", so include those options when setting
6582 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6583 if test "x$CFLAGS_FOR_TARGET" = x; then
6584 CFLAGS_FOR_TARGET=$CFLAGS
6585 case " $CFLAGS " in
6586 *" -O2 "*) ;;
6587 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6588 esac
6589 case " $CFLAGS " in
6590 *" -g "* | *" -g3 "*) ;;
6591 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6592 esac
6596 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6597 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6598 case " $CXXFLAGS " in
6599 *" -O2 "*) ;;
6600 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6601 esac
6602 case " $CXXFLAGS " in
6603 *" -g "* | *" -g3 "*) ;;
6604 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6605 esac
6609 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6610 # the named directory are copied to $(tooldir)/sys-include.
6611 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6612 if test x${is_cross_compiler} = xno ; then
6613 echo 1>&2 '***' --with-headers is only supported when cross compiling
6614 exit 1
6616 if test x"${with_headers}" != xyes ; then
6617 x=${gcc_cv_tool_prefix}
6618 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6622 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6623 # the name directories are copied to $(tooldir)/lib. Multiple directories
6624 # are permitted.
6625 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6626 if test x${is_cross_compiler} = xno ; then
6627 echo 1>&2 '***' --with-libs is only supported when cross compiling
6628 exit 1
6630 if test x"${with_libs}" != xyes ; then
6631 # Copy the libraries in reverse order, so that files in the first named
6632 # library override files in subsequent libraries.
6633 x=${gcc_cv_tool_prefix}
6634 for l in ${with_libs}; do
6635 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6636 done
6640 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6642 # This is done by determining whether or not the appropriate directory
6643 # is available, and by checking whether or not specific configurations
6644 # have requested that this magic not happen.
6646 # The command line options always override the explicit settings in
6647 # configure.in, and the settings in configure.in override this magic.
6649 # If the default for a toolchain is to use GNU as and ld, and you don't
6650 # want to do that, then you should use the --without-gnu-as and
6651 # --without-gnu-ld options for the configure script. Similarly, if
6652 # the default is to use the included zlib and you don't want to do that,
6653 # you should use the --with-system-zlib option for the configure script.
6655 if test x${use_gnu_as} = x &&
6656 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6657 with_gnu_as=yes
6658 extra_host_args="$extra_host_args --with-gnu-as"
6661 if test x${use_gnu_ld} = x &&
6662 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6663 with_gnu_ld=yes
6664 extra_host_args="$extra_host_args --with-gnu-ld"
6667 if test x${use_included_zlib} = x &&
6668 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6670 else
6671 with_system_zlib=yes
6672 extra_host_args="$extra_host_args --with-system-zlib"
6675 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6676 # can detect this case.
6678 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6679 with_newlib=yes
6680 extra_host_args="$extra_host_args --with-newlib"
6683 # Handle ${copy_dirs}
6684 set fnord ${copy_dirs}
6685 shift
6686 while test $# != 0 ; do
6687 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6689 else
6690 echo Copying $1 to $2
6692 # Use the install script to create the directory and all required
6693 # parent directories.
6694 if test -d $2 ; then
6696 else
6697 echo >config.temp
6698 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6701 # Copy the directory, assuming we have tar.
6702 # FIXME: Should we use B in the second tar? Not all systems support it.
6703 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6705 # It is the responsibility of the user to correctly adjust all
6706 # symlinks. If somebody can figure out how to handle them correctly
6707 # here, feel free to add the code.
6709 echo $1 > $2/COPIED
6711 shift; shift
6712 done
6714 # Determine a target-dependent exec_prefix that the installed
6715 # gcc will search in. Keep this list sorted by triplet, with
6716 # the *-*-osname triplets last.
6717 md_exec_prefix=
6718 case "${target}" in
6719 alpha*-*-*vms*)
6720 md_exec_prefix=/gnu/lib/gcc-lib
6722 i[34567]86-pc-msdosdjgpp*)
6723 md_exec_prefix=/dev/env/DJDIR/bin
6725 i[34567]86-*-sco3.2v5*)
6726 if test $with_gnu_as = yes; then
6727 md_exec_prefix=/usr/gnu/bin
6728 else
6729 md_exec_prefix=/usr/ccs/bin/elf
6733 mn10300-*-* | \
6734 powerpc-*-chorusos* | \
6735 powerpc*-*-eabi* | \
6736 powerpc*-*-sysv* | \
6737 powerpc*-*-kaos* | \
6738 s390x-ibm-tpf*)
6739 md_exec_prefix=/usr/ccs/bin
6741 sparc64-*-elf*)
6743 v850*-*-*)
6744 md_exec_prefix=/usr/ccs/bin
6746 xtensa*-*-elf*)
6749 *-*-beos* | \
6750 *-*-elf* | \
6751 *-*-hpux* | \
6752 *-*-netware* | \
6753 *-*-nto-qnx* | \
6754 *-*-rtems* | \
6755 *-*-solaris2* | \
6756 *-*-sysv[45]* | \
6757 *-*-vxworks* | \
6758 *-wrs-windiss)
6759 md_exec_prefix=/usr/ccs/bin
6761 esac
6763 extra_arflags_for_target=
6764 extra_nmflags_for_target=
6765 extra_ranlibflags_for_target=
6766 target_makefile_frag=/dev/null
6767 case "${target}" in
6768 mep*-*-*)
6769 target_makefile_frag="config/mt-mep"
6771 spu-*-*)
6772 target_makefile_frag="config/mt-spu"
6774 mips*-sde-elf*)
6775 target_makefile_frag="config/mt-sde"
6777 mipsisa*-*-elfoabi*)
6778 target_makefile_frag="config/mt-mips-elfoabi"
6780 mips*-*-*linux* | mips*-*-gnu*)
6781 target_makefile_frag="config/mt-mips-gnu"
6783 *-*-netware*)
6784 target_makefile_frag="config/mt-netware"
6786 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6787 target_makefile_frag="config/mt-gnu"
6789 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6790 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6791 # commands to handle both 32-bit and 64-bit objects. These flags are
6792 # harmless if we're using GNU nm or ar.
6793 extra_arflags_for_target=" -X32_64"
6794 extra_nmflags_for_target=" -B -X32_64"
6796 *-*-darwin[3-9]*)
6797 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6798 extra_ranlibflags_for_target=" -c"
6800 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6801 target_makefile_frag="config/mt-wince"
6803 esac
6805 alphaieee_frag=/dev/null
6806 case $target in
6807 alpha*-*-*)
6808 # This just makes sure to use the -mieee option to build target libs.
6809 # This should probably be set individually by each library.
6810 alphaieee_frag="config/mt-alphaieee"
6812 esac
6814 # If --enable-target-optspace always use -Os instead of -O2 to build
6815 # the target libraries, similarly if it is not specified, use -Os
6816 # on selected platforms.
6817 ospace_frag=/dev/null
6818 case "${enable_target_optspace}:${target}" in
6819 yes:*)
6820 ospace_frag="config/mt-ospace"
6822 :d30v-*)
6823 ospace_frag="config/mt-d30v"
6825 :m32r-* | :d10v-* | :fr30-*)
6826 ospace_frag="config/mt-ospace"
6828 no:* | :*)
6831 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6833 esac
6835 # Default to using --with-stabs for certain targets.
6836 if test x${with_stabs} = x ; then
6837 case "${target}" in
6838 mips*-*-irix[56]*)
6840 mips*-*-* | alpha*-*-osf*)
6841 with_stabs=yes;
6842 extra_host_args="${extra_host_args} --with-stabs"
6844 esac
6847 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6848 # them automatically.
6849 case "${host}" in
6850 hppa*64*-*-hpux11*)
6851 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6853 esac
6855 # Some systems (e.g., one of the i386-aix systems the gas testers are
6856 # using) don't handle "\$" correctly, so don't use it here.
6857 tooldir='${exec_prefix}'/${target_noncanonical}
6858 build_tooldir=${tooldir}
6860 # Create a .gdbinit file which runs the one in srcdir
6861 # and tells GDB to look there for source files.
6863 if test -r ${srcdir}/.gdbinit ; then
6864 case ${srcdir} in
6865 .) ;;
6866 *) cat > ./.gdbinit <<EOF
6867 # ${NO_EDIT}
6868 dir ${srcdir}
6869 dir .
6870 source ${srcdir}/.gdbinit
6873 esac
6876 # Make sure that the compiler is able to generate an executable. If it
6877 # can't, we are probably in trouble. We don't care whether we can run the
6878 # executable--we might be using a cross compiler--we only care whether it
6879 # can be created. At this point the main configure script has set CC.
6880 we_are_ok=no
6881 echo "int main () { return 0; }" > conftest.c
6882 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6883 if test $? = 0 ; then
6884 if test -s conftest || test -s conftest.exe ; then
6885 we_are_ok=yes
6888 case $we_are_ok in
6890 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6891 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6892 rm -f conftest*
6893 exit 1
6895 esac
6896 rm -f conftest*
6898 # The Solaris /usr/ucb/cc compiler does not appear to work.
6899 case "${host}" in
6900 sparc-sun-solaris2*)
6901 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6902 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6903 could_use=
6904 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6905 if test -d /opt/cygnus/bin ; then
6906 if test "$could_use" = "" ; then
6907 could_use="/opt/cygnus/bin"
6908 else
6909 could_use="$could_use or /opt/cygnus/bin"
6912 if test "$could_use" = "" ; then
6913 echo "Warning: compilation may fail because you're using"
6914 echo "/usr/ucb/cc. You should change your PATH or CC "
6915 echo "variable and rerun configure."
6916 else
6917 echo "Warning: compilation may fail because you're using"
6918 echo "/usr/ucb/cc, when you should use the C compiler from"
6919 echo "$could_use. You should change your"
6920 echo "PATH or CC variable and rerun configure."
6924 esac
6926 # Decide which environment variable is used to find dynamic libraries.
6927 case "${host}" in
6928 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6929 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6930 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6931 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6932 esac
6934 # On systems where the dynamic library environment variable is PATH,
6935 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6936 # built executables to PATH.
6937 if test "$RPATH_ENVVAR" = PATH; then
6938 GCC_SHLIB_SUBDIR=/shlib
6939 else
6940 GCC_SHLIB_SUBDIR=
6943 # Record target_configdirs and the configure arguments for target and
6944 # build configuration in Makefile.
6945 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6946 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6948 # If we are building libgomp, bootstrap it.
6949 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6950 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6953 # Determine whether gdb needs tk/tcl or not.
6954 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6955 # and in that case we want gdb to be built without tk. Ugh!
6956 # In fact I believe gdb is the *only* package directly dependent on tk,
6957 # so we should be able to put the 'maybe's in unconditionally and
6958 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6959 # 100% sure that that's safe though.
6961 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6962 case "$enable_gdbtk" in
6964 GDB_TK="" ;;
6965 yes)
6966 GDB_TK="${gdb_tk}" ;;
6968 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6969 # distro. Eventually someone will fix this and move Insight, nee
6970 # gdbtk to a separate directory.
6971 if test -d ${srcdir}/gdb/gdbtk ; then
6972 GDB_TK="${gdb_tk}"
6973 else
6974 GDB_TK=""
6977 esac
6978 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6979 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6981 # Strip out unwanted targets.
6983 # While at that, we remove Makefiles if we were started for recursive
6984 # configuration, so that the top-level Makefile reconfigures them,
6985 # like we used to do when configure itself was recursive.
6987 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6988 # but now we're fixing up the Makefile ourselves with the additional
6989 # commands passed to AC_CONFIG_FILES. Use separate variables
6990 # extrasub-{build,host,target} not because there is any reason to split
6991 # the substitutions up that way, but only to remain below the limit of
6992 # 99 commands in a script, for HP-UX sed.
6993 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6995 # Check whether --enable-bootstrap was given.
6996 if test "${enable_bootstrap+set}" = set; then :
6997 enableval=$enable_bootstrap;
6998 else
6999 enable_bootstrap=default
7003 # Issue errors and warnings for invalid/strange bootstrap combinations.
7004 case "$configdirs" in
7005 *gcc*) have_compiler=yes ;;
7006 *) have_compiler=no ;;
7007 esac
7009 case "$have_compiler:$host:$target:$enable_bootstrap" in
7010 *:*:*:no) ;;
7012 # Default behavior. Enable bootstrap if we have a compiler
7013 # and we are in a native configuration.
7014 yes:$build:$build:default)
7015 enable_bootstrap=yes ;;
7017 *:*:*:default)
7018 enable_bootstrap=no ;;
7020 # We have a compiler and we are in a native configuration, bootstrap is ok
7021 yes:$build:$build:yes)
7024 # Other configurations, but we have a compiler. Assume the user knows
7025 # what he's doing.
7026 yes:*:*:yes)
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7028 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7031 # No compiler: if they passed --enable-bootstrap explicitly, fail
7032 no:*:*:yes)
7033 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7035 # Fail if wrong command line
7037 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7039 esac
7041 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7042 *,c++,*:yes:yes) ;;
7043 *:yes:yes)
7044 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7046 esac
7048 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7049 yes:yes:*\ gold\ *:*,c++,*) ;;
7050 yes:yes:*\ gold\ *:*)
7051 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7053 esac
7055 # Adjust the toplevel makefile according to whether bootstrap was selected.
7056 case $enable_bootstrap in
7057 yes)
7058 bootstrap_suffix=bootstrap
7059 BUILD_CONFIG=bootstrap-debug
7062 bootstrap_suffix=no-bootstrap
7063 BUILD_CONFIG=
7065 esac
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7068 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7071 # Check whether --with-build-config was given.
7072 if test "${with_build_config+set}" = set; then :
7073 withval=$with_build_config; case $with_build_config in
7074 yes) with_build_config= ;;
7075 no) with_build_config= BUILD_CONFIG= ;;
7076 esac
7080 if test "x${with_build_config}" != x; then
7081 BUILD_CONFIG=$with_build_config
7082 else
7083 case $BUILD_CONFIG in
7084 bootstrap-debug)
7085 if echo "int f (void) { return 0; }" > conftest.c &&
7086 ${CC} -c conftest.c &&
7087 mv conftest.o conftest.o.g0 &&
7088 ${CC} -c -g conftest.c &&
7089 mv conftest.o conftest.o.g &&
7090 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7092 else
7093 BUILD_CONFIG=
7095 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7097 esac
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7100 $as_echo "$BUILD_CONFIG" >&6; }
7103 extrasub_build=
7104 for module in ${build_configdirs} ; do
7105 if test -z "${no_recursion}" \
7106 && test -f ${build_subdir}/${module}/Makefile; then
7107 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7108 rm -f ${build_subdir}/${module}/Makefile
7110 extrasub_build="$extrasub_build
7111 /^@if build-$module\$/d
7112 /^@endif build-$module\$/d
7113 /^@if build-$module-$bootstrap_suffix\$/d
7114 /^@endif build-$module-$bootstrap_suffix\$/d"
7115 done
7116 extrasub_host=
7117 for module in ${configdirs} ; do
7118 if test -z "${no_recursion}"; then
7119 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7120 if test -f ${file}; then
7121 echo 1>&2 "*** removing ${file} to force reconfigure"
7122 rm -f ${file}
7124 done
7126 extrasub_host="$extrasub_host
7127 /^@if $module\$/d
7128 /^@endif $module\$/d
7129 /^@if $module-$bootstrap_suffix\$/d
7130 /^@endif $module-$bootstrap_suffix\$/d"
7131 done
7132 extrasub_target=
7133 for module in ${target_configdirs} ; do
7134 if test -z "${no_recursion}" \
7135 && test -f ${target_subdir}/${module}/Makefile; then
7136 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7137 rm -f ${target_subdir}/${module}/Makefile
7140 # We only bootstrap target libraries listed in bootstrap_target_libs.
7141 case $bootstrap_target_libs in
7142 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7143 *) target_bootstrap_suffix=no-bootstrap ;;
7144 esac
7146 extrasub_target="$extrasub_target
7147 /^@if target-$module\$/d
7148 /^@endif target-$module\$/d
7149 /^@if target-$module-$target_bootstrap_suffix\$/d
7150 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7151 done
7153 # Do the final fixup along with target modules.
7154 extrasub_target="$extrasub_target
7155 /^@if /,/^@endif /d"
7157 # Create the serialization dependencies. This uses a temporary file.
7159 # Check whether --enable-serial-configure was given.
7160 if test "${enable_serial_configure+set}" = set; then :
7161 enableval=$enable_serial_configure;
7165 case ${enable_serial_configure} in
7166 yes)
7167 enable_serial_build_configure=yes
7168 enable_serial_host_configure=yes
7169 enable_serial_target_configure=yes
7171 esac
7173 # These force 'configure's to be done one at a time, to avoid problems
7174 # with contention over a shared config.cache.
7175 rm -f serdep.tmp
7176 echo '# serdep.tmp' > serdep.tmp
7177 olditem=
7178 test "x${enable_serial_build_configure}" = xyes &&
7179 for item in ${build_configdirs} ; do
7180 case ${olditem} in
7181 "") ;;
7182 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7183 esac
7184 olditem=${item}
7185 done
7186 olditem=
7187 test "x${enable_serial_host_configure}" = xyes &&
7188 for item in ${configdirs} ; do
7189 case ${olditem} in
7190 "") ;;
7191 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7192 esac
7193 olditem=${item}
7194 done
7195 olditem=
7196 test "x${enable_serial_target_configure}" = xyes &&
7197 for item in ${target_configdirs} ; do
7198 case ${olditem} in
7199 "") ;;
7200 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7201 esac
7202 olditem=${item}
7203 done
7204 serialization_dependencies=serdep.tmp
7207 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7208 # target, nonopt, and variable assignments. These are the ones we
7209 # might not want to pass down to subconfigures. The exception being
7210 # --cache-file=/dev/null, which is used to turn off the use of cache
7211 # files altogether, and which should be passed on to subconfigures.
7212 # Also strip program-prefix, program-suffix, and program-transform-name,
7213 # so that we can pass down a consistent program-transform-name.
7214 baseargs=
7215 keep_next=no
7216 skip_next=no
7217 eval "set -- $ac_configure_args"
7218 for ac_arg
7220 if test X"$skip_next" = X"yes"; then
7221 skip_next=no
7222 continue
7224 if test X"$keep_next" = X"yes"; then
7225 case $ac_arg in
7226 *\'*)
7227 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7228 esac
7229 baseargs="$baseargs '$ac_arg'"
7230 keep_next=no
7231 continue
7234 # Handle separated arguments. Based on the logic generated by
7235 # autoconf 2.59.
7236 case $ac_arg in
7237 *=* | --config-cache | -C | -disable-* | --disable-* \
7238 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7239 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7240 | -with-* | --with-* | -without-* | --without-* | --x)
7241 separate_arg=no
7244 separate_arg=yes
7247 separate_arg=no
7249 esac
7251 case "$ac_arg" in
7252 --cache-file=/dev/null | \
7253 -cache-file=/dev/null )
7254 # Handled here to avoid the test to skip args below.
7255 baseargs="$baseargs '$ac_arg'"
7256 # Assert: $separate_arg should always be no.
7257 keep_next=$separate_arg
7259 --no*)
7260 continue
7262 --c* | \
7263 --sr* | \
7264 --ho* | \
7265 --bu* | \
7266 --t* | \
7267 --program-* | \
7268 -cache_file* | \
7269 -srcdir* | \
7270 -host* | \
7271 -build* | \
7272 -target* | \
7273 -program-prefix* | \
7274 -program-suffix* | \
7275 -program-transform-name* )
7276 skip_next=$separate_arg
7277 continue
7280 # An option. Add it.
7281 case $ac_arg in
7282 *\'*)
7283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7284 esac
7285 baseargs="$baseargs '$ac_arg'"
7286 keep_next=$separate_arg
7289 # Either a variable assignment, or a nonopt (triplet). Don't
7290 # pass it down; let the Makefile handle this.
7291 continue
7293 esac
7294 done
7295 # Remove the initial space we just introduced and, as these will be
7296 # expanded by make, quote '$'.
7297 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7299 # Add in --program-transform-name, after --program-prefix and
7300 # --program-suffix have been applied to it. Autoconf has already
7301 # doubled dollar signs and backslashes in program_transform_name; we want
7302 # the backslashes un-doubled, and then the entire thing wrapped in single
7303 # quotes, because this will be expanded first by make and then by the shell.
7304 # Also, because we want to override the logic in subdir configure scripts to
7305 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7306 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7307 ${program_transform_name}
7308 EOF_SED
7309 gcc_transform_name=`cat conftestsed.out`
7310 rm -f conftestsed.out
7311 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7312 if test "$silent" = yes; then
7313 baseargs="$baseargs --silent"
7315 baseargs="$baseargs --disable-option-checking"
7317 # Record and document user additions to sub configure arguments.
7322 # For the build-side libraries, we just need to pretend we're native,
7323 # and not use the same cache file. Multilibs are neither needed nor
7324 # desired.
7325 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7327 # For host modules, accept cache file option, or specification as blank.
7328 case "${cache_file}" in
7329 "") # empty
7330 cache_file_option="" ;;
7331 /* | [A-Za-z]:[\\/]* ) # absolute path
7332 cache_file_option="--cache-file=${cache_file}" ;;
7333 *) # relative path
7334 cache_file_option="--cache-file=../${cache_file}" ;;
7335 esac
7337 # Host dirs don't like to share a cache file either, horribly enough.
7338 # This seems to be due to autoconf 2.5x stupidity.
7339 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7341 target_configargs="$target_configargs ${baseargs}"
7343 # Passing a --with-cross-host argument lets the target libraries know
7344 # whether they are being built with a cross-compiler or being built
7345 # native. However, it would be better to use other mechanisms to make the
7346 # sorts of decisions they want to make on this basis. Please consider
7347 # this option to be deprecated. FIXME.
7348 if test x${is_cross_compiler} = xyes ; then
7349 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7352 # Default to --enable-multilib.
7353 if test x${enable_multilib} = x ; then
7354 target_configargs="--enable-multilib ${target_configargs}"
7357 # Pass --with-newlib if appropriate. Note that target_configdirs has
7358 # changed from the earlier setting of with_newlib.
7359 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7360 target_configargs="--with-newlib ${target_configargs}"
7363 # Different target subdirs use different values of certain variables
7364 # (notably CXX). Worse, multilibs use *lots* of different values.
7365 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7366 # it doesn't automatically accept command-line overrides of them.
7367 # This means it's not safe for target subdirs to share a cache file,
7368 # which is disgusting, but there you have it. Hopefully this can be
7369 # fixed in future. It's still worthwhile to use a cache file for each
7370 # directory. I think.
7372 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7373 # We need to pass --target, as newer autoconf's requires consistency
7374 # for target_alias and gcc doesn't manage it consistently.
7375 target_configargs="--cache-file=./config.cache ${target_configargs}"
7377 FLAGS_FOR_TARGET=
7378 case " $target_configdirs " in
7379 *" newlib "*)
7380 case " $target_configargs " in
7381 *" --with-newlib "*)
7382 case "$target" in
7383 *-cygwin*)
7384 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'
7386 esac
7388 # If we're not building GCC, don't discard standard headers.
7389 if test -d ${srcdir}/gcc; then
7390 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7392 if test "${build}" != "${host}"; then
7393 # On Canadian crosses, CC_FOR_TARGET will have already been set
7394 # by `configure', so we won't have an opportunity to add -Bgcc/
7395 # to it. This is right: we don't want to search that directory
7396 # for binaries, but we want the header files in there, so add
7397 # them explicitly.
7398 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7400 # Someone might think of using the pre-installed headers on
7401 # Canadian crosses, in case the installed compiler is not fully
7402 # compatible with the compiler being built. In this case, it
7403 # would be better to flag an error than risking having
7404 # incompatible object files being constructed. We can't
7405 # guarantee that an error will be flagged, but let's hope the
7406 # compiler will do it, when presented with incompatible header
7407 # files.
7411 case "${target}-${is_cross_compiler}" in
7412 i[3456789]86-*-linux*-no)
7413 # Here host == target, so we don't need to build gcc,
7414 # so we don't want to discard standard headers.
7415 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7418 # If we're building newlib, use its generic headers last, but search
7419 # for any libc-related directories first (so make it the last -B
7420 # switch).
7421 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7423 # If we're building libgloss, find the startup file, simulator library
7424 # and linker script.
7425 case " $target_configdirs " in
7426 *" libgloss "*)
7427 # Look for startup file, simulator library and maybe linker script.
7428 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7429 # Look for libnosys.a in case the target needs it.
7430 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7431 # Most targets have the linker script in the source directory.
7432 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7434 esac
7436 esac
7438 esac
7440 esac
7442 case "$target" in
7443 x86_64-*mingw* | *-w64-mingw*)
7444 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7445 # however, use a symlink named 'mingw' in ${prefix} .
7446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7448 *-mingw*)
7449 # MinGW can't be handled as Cygwin above since it does not use newlib.
7450 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'
7452 esac
7454 # Allow the user to override the flags for
7455 # our build compiler if desired.
7456 if test x"${build}" = x"${host}" ; then
7457 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7458 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7459 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7462 # On Canadian crosses, we'll be searching the right directories for
7463 # the previously-installed cross compiler, so don't bother to add
7464 # flags for directories within the install tree of the compiler
7465 # being built; programs in there won't even run.
7466 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7467 # Search for pre-installed headers if nothing else fits.
7468 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7471 if test "x${use_gnu_ld}" = x &&
7472 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7473 # Arrange for us to find uninstalled linker scripts.
7474 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7477 # Search for other target-specific linker scripts and such.
7478 case "${target}" in
7479 mep*)
7480 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7482 esac
7484 # Makefile fragments.
7485 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7487 eval fragval=\$$frag
7488 if test $fragval != /dev/null; then
7489 eval $frag=${srcdir}/$fragval
7491 done
7497 # Miscellanea: directories, flags, etc.
7506 # Build module lists & subconfigure args.
7510 # Host module lists & subconfigure args.
7515 # Target module lists & subconfigure args.
7519 # Build tools.
7538 # Generate default definitions for YACC, M4, LEX and other programs that run
7539 # on the build machine. These are used if the Makefile can't locate these
7540 # programs in objdir.
7541 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7543 for ac_prog in 'bison -y' byacc yacc
7545 # Extract the first word of "$ac_prog", so it can be a program name with args.
7546 set dummy $ac_prog; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if test "${ac_cv_prog_YACC+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 if test -n "$YACC"; then
7553 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_prog_YACC="$ac_prog"
7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7566 done
7567 done
7568 IFS=$as_save_IFS
7572 YACC=$ac_cv_prog_YACC
7573 if test -n "$YACC"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7575 $as_echo "$YACC" >&6; }
7576 else
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7582 test -n "$YACC" && break
7583 done
7584 test -n "$YACC" || YACC="$MISSING bison -y"
7586 case " $build_configdirs " in
7587 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7588 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7589 esac
7591 for ac_prog in bison
7593 # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_BISON+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 if test -n "$BISON"; then
7601 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_BISON="$ac_prog"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7614 done
7615 done
7616 IFS=$as_save_IFS
7620 BISON=$ac_cv_prog_BISON
7621 if test -n "$BISON"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7623 $as_echo "$BISON" >&6; }
7624 else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7630 test -n "$BISON" && break
7631 done
7632 test -n "$BISON" || BISON="$MISSING bison"
7634 case " $build_configdirs " in
7635 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7636 esac
7638 for ac_prog in gm4 gnum4 m4
7640 # Extract the first word of "$ac_prog", so it can be a program name with args.
7641 set dummy $ac_prog; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if test "${ac_cv_prog_M4+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 if test -n "$M4"; then
7648 ac_cv_prog_M4="$M4" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_prog_M4="$ac_prog"
7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7661 done
7662 done
7663 IFS=$as_save_IFS
7667 M4=$ac_cv_prog_M4
7668 if test -n "$M4"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7670 $as_echo "$M4" >&6; }
7671 else
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7677 test -n "$M4" && break
7678 done
7679 test -n "$M4" || M4="$MISSING m4"
7681 case " $build_configdirs " in
7682 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7683 esac
7685 for ac_prog in flex lex
7687 # Extract the first word of "$ac_prog", so it can be a program name with args.
7688 set dummy $ac_prog; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if test "${ac_cv_prog_LEX+set}" = set; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694 if test -n "$LEX"; then
7695 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7696 else
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704 ac_cv_prog_LEX="$ac_prog"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7708 done
7709 done
7710 IFS=$as_save_IFS
7714 LEX=$ac_cv_prog_LEX
7715 if test -n "$LEX"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7717 $as_echo "$LEX" >&6; }
7718 else
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7724 test -n "$LEX" && break
7725 done
7726 test -n "$LEX" || LEX="$MISSING flex"
7728 case " $build_configdirs " in
7729 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7730 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7731 esac
7733 for ac_prog in flex
7735 # Extract the first word of "$ac_prog", so it can be a program name with args.
7736 set dummy $ac_prog; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if test "${ac_cv_prog_FLEX+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 if test -n "$FLEX"; then
7743 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752 ac_cv_prog_FLEX="$ac_prog"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7756 done
7757 done
7758 IFS=$as_save_IFS
7762 FLEX=$ac_cv_prog_FLEX
7763 if test -n "$FLEX"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7765 $as_echo "$FLEX" >&6; }
7766 else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7772 test -n "$FLEX" && break
7773 done
7774 test -n "$FLEX" || FLEX="$MISSING flex"
7776 case " $build_configdirs " in
7777 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7778 esac
7780 for ac_prog in makeinfo
7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
7783 set dummy $ac_prog; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 if test -n "$MAKEINFO"; then
7790 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7791 else
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_prog_MAKEINFO="$ac_prog"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7803 done
7804 done
7805 IFS=$as_save_IFS
7809 MAKEINFO=$ac_cv_prog_MAKEINFO
7810 if test -n "$MAKEINFO"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7812 $as_echo "$MAKEINFO" >&6; }
7813 else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7819 test -n "$MAKEINFO" && break
7820 done
7821 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7823 case " $build_configdirs " in
7824 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7827 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7828 # higher, else we use the "missing" dummy.
7829 if ${MAKEINFO} --version \
7830 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7832 else
7833 MAKEINFO="$MISSING makeinfo"
7837 esac
7839 # FIXME: expect and dejagnu may become build tools?
7841 for ac_prog in expect
7843 # Extract the first word of "$ac_prog", so it can be a program name with args.
7844 set dummy $ac_prog; ac_word=$2
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 if test -n "$EXPECT"; then
7851 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860 ac_cv_prog_EXPECT="$ac_prog"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7864 done
7865 done
7866 IFS=$as_save_IFS
7870 EXPECT=$ac_cv_prog_EXPECT
7871 if test -n "$EXPECT"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7873 $as_echo "$EXPECT" >&6; }
7874 else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7880 test -n "$EXPECT" && break
7881 done
7882 test -n "$EXPECT" || EXPECT="expect"
7884 case " $configdirs " in
7885 *" expect "*)
7886 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7888 esac
7890 for ac_prog in runtest
7892 # Extract the first word of "$ac_prog", so it can be a program name with args.
7893 set dummy $ac_prog; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 if test -n "$RUNTEST"; then
7900 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_RUNTEST="$ac_prog"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7913 done
7914 done
7915 IFS=$as_save_IFS
7919 RUNTEST=$ac_cv_prog_RUNTEST
7920 if test -n "$RUNTEST"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7922 $as_echo "$RUNTEST" >&6; }
7923 else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7929 test -n "$RUNTEST" && break
7930 done
7931 test -n "$RUNTEST" || RUNTEST="runtest"
7933 case " $configdirs " in
7934 *" dejagnu "*)
7935 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7937 esac
7940 # Host tools.
7941 ncn_tool_prefix=
7942 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7943 ncn_target_tool_prefix=
7944 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7948 if test -n "$AR"; then
7949 ac_cv_prog_AR=$AR
7950 elif test -n "$ac_cv_prog_AR"; then
7951 AR=$ac_cv_prog_AR
7954 if test -n "$ac_cv_prog_AR"; then
7955 for ncn_progname in ar; do
7956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7957 set dummy ${ncn_progname}; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if test "${ac_cv_prog_AR+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 if test -n "$AR"; then
7964 ac_cv_prog_AR="$AR" # Let the user override the test.
7965 else
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_prog_AR="${ncn_progname}"
7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7977 done
7978 done
7979 IFS=$as_save_IFS
7983 AR=$ac_cv_prog_AR
7984 if test -n "$AR"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7986 $as_echo "$AR" >&6; }
7987 else
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7993 done
7996 for ncn_progname in ar; do
7997 if test -n "$ncn_tool_prefix"; then
7998 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7999 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_prog_AR+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$AR"; then
8006 ac_cv_prog_AR="$AR" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8019 done
8020 done
8021 IFS=$as_save_IFS
8025 AR=$ac_cv_prog_AR
8026 if test -n "$AR"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8028 $as_echo "$AR" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8036 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8038 set dummy ${ncn_progname}; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if test "${ac_cv_prog_AR+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 if test -n "$AR"; then
8045 ac_cv_prog_AR="$AR" # Let the user override the test.
8046 else
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_prog_AR="${ncn_progname}"
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8058 done
8059 done
8060 IFS=$as_save_IFS
8064 AR=$ac_cv_prog_AR
8065 if test -n "$AR"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8067 $as_echo "$AR" >&6; }
8068 else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8075 test -n "$ac_cv_prog_AR" && break
8076 done
8078 if test -z "$ac_cv_prog_AR" ; then
8079 set dummy ar
8080 if test $build = $host ; then
8081 AR="$2"
8082 else
8083 AR="${ncn_tool_prefix}$2"
8089 if test -n "$AS"; then
8090 ac_cv_prog_AS=$AS
8091 elif test -n "$ac_cv_prog_AS"; then
8092 AS=$ac_cv_prog_AS
8095 if test -n "$ac_cv_prog_AS"; then
8096 for ncn_progname in as; do
8097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8098 set dummy ${ncn_progname}; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if test "${ac_cv_prog_AS+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 if test -n "$AS"; then
8105 ac_cv_prog_AS="$AS" # Let the user override the test.
8106 else
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8114 ac_cv_prog_AS="${ncn_progname}"
8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8118 done
8119 done
8120 IFS=$as_save_IFS
8124 AS=$ac_cv_prog_AS
8125 if test -n "$AS"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8127 $as_echo "$AS" >&6; }
8128 else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8134 done
8137 for ncn_progname in as; do
8138 if test -n "$ncn_tool_prefix"; then
8139 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8140 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if test "${ac_cv_prog_AS+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 if test -n "$AS"; then
8147 ac_cv_prog_AS="$AS" # Let the user override the test.
8148 else
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8160 done
8161 done
8162 IFS=$as_save_IFS
8166 AS=$ac_cv_prog_AS
8167 if test -n "$AS"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8169 $as_echo "$AS" >&6; }
8170 else
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8177 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8179 set dummy ${ncn_progname}; ac_word=$2
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if test "${ac_cv_prog_AS+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 if test -n "$AS"; then
8186 ac_cv_prog_AS="$AS" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195 ac_cv_prog_AS="${ncn_progname}"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8199 done
8200 done
8201 IFS=$as_save_IFS
8205 AS=$ac_cv_prog_AS
8206 if test -n "$AS"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8208 $as_echo "$AS" >&6; }
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8216 test -n "$ac_cv_prog_AS" && break
8217 done
8219 if test -z "$ac_cv_prog_AS" ; then
8220 set dummy as
8221 if test $build = $host ; then
8222 AS="$2"
8223 else
8224 AS="${ncn_tool_prefix}$2"
8230 if test -n "$DLLTOOL"; then
8231 ac_cv_prog_DLLTOOL=$DLLTOOL
8232 elif test -n "$ac_cv_prog_DLLTOOL"; then
8233 DLLTOOL=$ac_cv_prog_DLLTOOL
8236 if test -n "$ac_cv_prog_DLLTOOL"; then
8237 for ncn_progname in dlltool; do
8238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8239 set dummy ${ncn_progname}; ac_word=$2
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 $as_echo_n "checking for $ac_word... " >&6; }
8242 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 if test -n "$DLLTOOL"; then
8246 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8247 else
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 for as_dir in $PATH
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8255 ac_cv_prog_DLLTOOL="${ncn_progname}"
8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8259 done
8260 done
8261 IFS=$as_save_IFS
8265 DLLTOOL=$ac_cv_prog_DLLTOOL
8266 if test -n "$DLLTOOL"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8268 $as_echo "$DLLTOOL" >&6; }
8269 else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8275 done
8278 for ncn_progname in dlltool; do
8279 if test -n "$ncn_tool_prefix"; then
8280 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8281 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 if test -n "$DLLTOOL"; then
8288 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8289 else
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 break 2
8301 done
8302 done
8303 IFS=$as_save_IFS
8307 DLLTOOL=$ac_cv_prog_DLLTOOL
8308 if test -n "$DLLTOOL"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8310 $as_echo "$DLLTOOL" >&6; }
8311 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8318 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8320 set dummy ${ncn_progname}; ac_word=$2
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 $as_echo_n "checking for $ac_word... " >&6; }
8323 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 if test -n "$DLLTOOL"; then
8327 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8328 else
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8336 ac_cv_prog_DLLTOOL="${ncn_progname}"
8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8340 done
8341 done
8342 IFS=$as_save_IFS
8346 DLLTOOL=$ac_cv_prog_DLLTOOL
8347 if test -n "$DLLTOOL"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8349 $as_echo "$DLLTOOL" >&6; }
8350 else
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8357 test -n "$ac_cv_prog_DLLTOOL" && break
8358 done
8360 if test -z "$ac_cv_prog_DLLTOOL" ; then
8361 set dummy dlltool
8362 if test $build = $host ; then
8363 DLLTOOL="$2"
8364 else
8365 DLLTOOL="${ncn_tool_prefix}$2"
8371 if test -n "$LD"; then
8372 ac_cv_prog_LD=$LD
8373 elif test -n "$ac_cv_prog_LD"; then
8374 LD=$ac_cv_prog_LD
8377 if test -n "$ac_cv_prog_LD"; then
8378 for ncn_progname in ld; do
8379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8380 set dummy ${ncn_progname}; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_prog_LD+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 if test -n "$LD"; then
8387 ac_cv_prog_LD="$LD" # Let the user override the test.
8388 else
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 ac_cv_prog_LD="${ncn_progname}"
8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 break 2
8400 done
8401 done
8402 IFS=$as_save_IFS
8406 LD=$ac_cv_prog_LD
8407 if test -n "$LD"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8409 $as_echo "$LD" >&6; }
8410 else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8416 done
8419 for ncn_progname in ld; do
8420 if test -n "$ncn_tool_prefix"; then
8421 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8422 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if test "${ac_cv_prog_LD+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 if test -n "$LD"; then
8429 ac_cv_prog_LD="$LD" # Let the user override the test.
8430 else
8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432 for as_dir in $PATH
8434 IFS=$as_save_IFS
8435 test -z "$as_dir" && as_dir=.
8436 for ac_exec_ext in '' $ac_executable_extensions; do
8437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8438 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8440 break 2
8442 done
8443 done
8444 IFS=$as_save_IFS
8448 LD=$ac_cv_prog_LD
8449 if test -n "$LD"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8451 $as_echo "$LD" >&6; }
8452 else
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8459 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8461 set dummy ${ncn_progname}; ac_word=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if test "${ac_cv_prog_LD+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
8466 else
8467 if test -n "$LD"; then
8468 ac_cv_prog_LD="$LD" # Let the user override the test.
8469 else
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_prog_LD="${ncn_progname}"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8481 done
8482 done
8483 IFS=$as_save_IFS
8487 LD=$ac_cv_prog_LD
8488 if test -n "$LD"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8490 $as_echo "$LD" >&6; }
8491 else
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8498 test -n "$ac_cv_prog_LD" && break
8499 done
8501 if test -z "$ac_cv_prog_LD" ; then
8502 set dummy ld
8503 if test $build = $host ; then
8504 LD="$2"
8505 else
8506 LD="${ncn_tool_prefix}$2"
8512 if test -n "$LIPO"; then
8513 ac_cv_prog_LIPO=$LIPO
8514 elif test -n "$ac_cv_prog_LIPO"; then
8515 LIPO=$ac_cv_prog_LIPO
8518 if test -n "$ac_cv_prog_LIPO"; then
8519 for ncn_progname in lipo; do
8520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8521 set dummy ${ncn_progname}; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if test "${ac_cv_prog_LIPO+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 if test -n "$LIPO"; then
8528 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8537 ac_cv_prog_LIPO="${ncn_progname}"
8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 break 2
8541 done
8542 done
8543 IFS=$as_save_IFS
8547 LIPO=$ac_cv_prog_LIPO
8548 if test -n "$LIPO"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8550 $as_echo "$LIPO" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8557 done
8560 for ncn_progname in lipo; do
8561 if test -n "$ncn_tool_prefix"; then
8562 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8563 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8565 $as_echo_n "checking for $ac_word... " >&6; }
8566 if test "${ac_cv_prog_LIPO+set}" = set; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 if test -n "$LIPO"; then
8570 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8571 else
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8575 IFS=$as_save_IFS
8576 test -z "$as_dir" && as_dir=.
8577 for ac_exec_ext in '' $ac_executable_extensions; do
8578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8579 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 break 2
8583 done
8584 done
8585 IFS=$as_save_IFS
8589 LIPO=$ac_cv_prog_LIPO
8590 if test -n "$LIPO"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8592 $as_echo "$LIPO" >&6; }
8593 else
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 $as_echo "no" >&6; }
8600 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8602 set dummy ${ncn_progname}; ac_word=$2
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 $as_echo_n "checking for $ac_word... " >&6; }
8605 if test "${ac_cv_prog_LIPO+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 if test -n "$LIPO"; then
8609 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8610 else
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618 ac_cv_prog_LIPO="${ncn_progname}"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8622 done
8623 done
8624 IFS=$as_save_IFS
8628 LIPO=$ac_cv_prog_LIPO
8629 if test -n "$LIPO"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8631 $as_echo "$LIPO" >&6; }
8632 else
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8639 test -n "$ac_cv_prog_LIPO" && break
8640 done
8642 if test -z "$ac_cv_prog_LIPO" ; then
8643 set dummy lipo
8644 if test $build = $host ; then
8645 LIPO="$2"
8646 else
8647 LIPO="${ncn_tool_prefix}$2"
8653 if test -n "$NM"; then
8654 ac_cv_prog_NM=$NM
8655 elif test -n "$ac_cv_prog_NM"; then
8656 NM=$ac_cv_prog_NM
8659 if test -n "$ac_cv_prog_NM"; then
8660 for ncn_progname in nm; do
8661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8662 set dummy ${ncn_progname}; ac_word=$2
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if test "${ac_cv_prog_NM+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 if test -n "$NM"; then
8669 ac_cv_prog_NM="$NM" # Let the user override the test.
8670 else
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 for as_dir in $PATH
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8678 ac_cv_prog_NM="${ncn_progname}"
8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 break 2
8682 done
8683 done
8684 IFS=$as_save_IFS
8688 NM=$ac_cv_prog_NM
8689 if test -n "$NM"; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8691 $as_echo "$NM" >&6; }
8692 else
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 $as_echo "no" >&6; }
8698 done
8701 for ncn_progname in nm; do
8702 if test -n "$ncn_tool_prefix"; then
8703 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8704 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8706 $as_echo_n "checking for $ac_word... " >&6; }
8707 if test "${ac_cv_prog_NM+set}" = set; then :
8708 $as_echo_n "(cached) " >&6
8709 else
8710 if test -n "$NM"; then
8711 ac_cv_prog_NM="$NM" # Let the user override the test.
8712 else
8713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8716 IFS=$as_save_IFS
8717 test -z "$as_dir" && as_dir=.
8718 for ac_exec_ext in '' $ac_executable_extensions; do
8719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8720 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722 break 2
8724 done
8725 done
8726 IFS=$as_save_IFS
8730 NM=$ac_cv_prog_NM
8731 if test -n "$NM"; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8733 $as_echo "$NM" >&6; }
8734 else
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 $as_echo "no" >&6; }
8741 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8743 set dummy ${ncn_progname}; ac_word=$2
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745 $as_echo_n "checking for $ac_word... " >&6; }
8746 if test "${ac_cv_prog_NM+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 if test -n "$NM"; then
8750 ac_cv_prog_NM="$NM" # Let the user override the test.
8751 else
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 for as_dir in $PATH
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8759 ac_cv_prog_NM="${ncn_progname}"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8763 done
8764 done
8765 IFS=$as_save_IFS
8769 NM=$ac_cv_prog_NM
8770 if test -n "$NM"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8772 $as_echo "$NM" >&6; }
8773 else
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8780 test -n "$ac_cv_prog_NM" && break
8781 done
8783 if test -z "$ac_cv_prog_NM" ; then
8784 set dummy nm
8785 if test $build = $host ; then
8786 NM="$2"
8787 else
8788 NM="${ncn_tool_prefix}$2"
8794 if test -n "$RANLIB"; then
8795 ac_cv_prog_RANLIB=$RANLIB
8796 elif test -n "$ac_cv_prog_RANLIB"; then
8797 RANLIB=$ac_cv_prog_RANLIB
8800 if test -n "$ac_cv_prog_RANLIB"; then
8801 for ncn_progname in ranlib; do
8802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8803 set dummy ${ncn_progname}; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 if test -n "$RANLIB"; then
8810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8811 else
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8819 ac_cv_prog_RANLIB="${ncn_progname}"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8823 done
8824 done
8825 IFS=$as_save_IFS
8829 RANLIB=$ac_cv_prog_RANLIB
8830 if test -n "$RANLIB"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8832 $as_echo "$RANLIB" >&6; }
8833 else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8839 done
8842 for ncn_progname in ranlib; do
8843 if test -n "$ncn_tool_prefix"; then
8844 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8845 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847 $as_echo_n "checking for $ac_word... " >&6; }
8848 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 if test -n "$RANLIB"; then
8852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8853 else
8854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855 for as_dir in $PATH
8857 IFS=$as_save_IFS
8858 test -z "$as_dir" && as_dir=.
8859 for ac_exec_ext in '' $ac_executable_extensions; do
8860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8861 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8863 break 2
8865 done
8866 done
8867 IFS=$as_save_IFS
8871 RANLIB=$ac_cv_prog_RANLIB
8872 if test -n "$RANLIB"; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8874 $as_echo "$RANLIB" >&6; }
8875 else
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877 $as_echo "no" >&6; }
8882 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8884 set dummy ${ncn_progname}; ac_word=$2
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886 $as_echo_n "checking for $ac_word... " >&6; }
8887 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 if test -n "$RANLIB"; then
8891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8892 else
8893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 for as_dir in $PATH
8896 IFS=$as_save_IFS
8897 test -z "$as_dir" && as_dir=.
8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8900 ac_cv_prog_RANLIB="${ncn_progname}"
8901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8902 break 2
8904 done
8905 done
8906 IFS=$as_save_IFS
8910 RANLIB=$ac_cv_prog_RANLIB
8911 if test -n "$RANLIB"; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8913 $as_echo "$RANLIB" >&6; }
8914 else
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 $as_echo "no" >&6; }
8921 test -n "$ac_cv_prog_RANLIB" && break
8922 done
8924 if test -z "$ac_cv_prog_RANLIB" ; then
8925 RANLIB="true"
8930 if test -n "$STRIP"; then
8931 ac_cv_prog_STRIP=$STRIP
8932 elif test -n "$ac_cv_prog_STRIP"; then
8933 STRIP=$ac_cv_prog_STRIP
8936 if test -n "$ac_cv_prog_STRIP"; then
8937 for ncn_progname in strip; do
8938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8939 set dummy ${ncn_progname}; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if test "${ac_cv_prog_STRIP+set}" = set; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 if test -n "$STRIP"; then
8946 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8947 else
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8955 ac_cv_prog_STRIP="${ncn_progname}"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 break 2
8959 done
8960 done
8961 IFS=$as_save_IFS
8965 STRIP=$ac_cv_prog_STRIP
8966 if test -n "$STRIP"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8968 $as_echo "$STRIP" >&6; }
8969 else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8975 done
8978 for ncn_progname in strip; do
8979 if test -n "$ncn_tool_prefix"; then
8980 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8981 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983 $as_echo_n "checking for $ac_word... " >&6; }
8984 if test "${ac_cv_prog_STRIP+set}" = set; then :
8985 $as_echo_n "(cached) " >&6
8986 else
8987 if test -n "$STRIP"; then
8988 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8989 else
8990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991 for as_dir in $PATH
8993 IFS=$as_save_IFS
8994 test -z "$as_dir" && as_dir=.
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8997 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8999 break 2
9001 done
9002 done
9003 IFS=$as_save_IFS
9007 STRIP=$ac_cv_prog_STRIP
9008 if test -n "$STRIP"; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9010 $as_echo "$STRIP" >&6; }
9011 else
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013 $as_echo "no" >&6; }
9018 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020 set dummy ${ncn_progname}; ac_word=$2
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 if test "${ac_cv_prog_STRIP+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 if test -n "$STRIP"; then
9027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9028 else
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in $PATH
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036 ac_cv_prog_STRIP="${ncn_progname}"
9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9040 done
9041 done
9042 IFS=$as_save_IFS
9046 STRIP=$ac_cv_prog_STRIP
9047 if test -n "$STRIP"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9049 $as_echo "$STRIP" >&6; }
9050 else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9057 test -n "$ac_cv_prog_STRIP" && break
9058 done
9060 if test -z "$ac_cv_prog_STRIP" ; then
9061 STRIP="true"
9066 if test -n "$WINDRES"; then
9067 ac_cv_prog_WINDRES=$WINDRES
9068 elif test -n "$ac_cv_prog_WINDRES"; then
9069 WINDRES=$ac_cv_prog_WINDRES
9072 if test -n "$ac_cv_prog_WINDRES"; then
9073 for ncn_progname in windres; do
9074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9075 set dummy ${ncn_progname}; ac_word=$2
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9077 $as_echo_n "checking for $ac_word... " >&6; }
9078 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 if test -n "$WINDRES"; then
9082 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9083 else
9084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085 for as_dir in $PATH
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
9089 for ac_exec_ext in '' $ac_executable_extensions; do
9090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9091 ac_cv_prog_WINDRES="${ncn_progname}"
9092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9093 break 2
9095 done
9096 done
9097 IFS=$as_save_IFS
9101 WINDRES=$ac_cv_prog_WINDRES
9102 if test -n "$WINDRES"; then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9104 $as_echo "$WINDRES" >&6; }
9105 else
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107 $as_echo "no" >&6; }
9111 done
9114 for ncn_progname in windres; do
9115 if test -n "$ncn_tool_prefix"; then
9116 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9117 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119 $as_echo_n "checking for $ac_word... " >&6; }
9120 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 if test -n "$WINDRES"; then
9124 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9125 else
9126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 for as_dir in $PATH
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9133 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 break 2
9137 done
9138 done
9139 IFS=$as_save_IFS
9143 WINDRES=$ac_cv_prog_WINDRES
9144 if test -n "$WINDRES"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9146 $as_echo "$WINDRES" >&6; }
9147 else
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9154 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9156 set dummy ${ncn_progname}; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 if test -n "$WINDRES"; then
9163 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9172 ac_cv_prog_WINDRES="${ncn_progname}"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9176 done
9177 done
9178 IFS=$as_save_IFS
9182 WINDRES=$ac_cv_prog_WINDRES
9183 if test -n "$WINDRES"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9185 $as_echo "$WINDRES" >&6; }
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9193 test -n "$ac_cv_prog_WINDRES" && break
9194 done
9196 if test -z "$ac_cv_prog_WINDRES" ; then
9197 set dummy windres
9198 if test $build = $host ; then
9199 WINDRES="$2"
9200 else
9201 WINDRES="${ncn_tool_prefix}$2"
9207 if test -n "$WINDMC"; then
9208 ac_cv_prog_WINDMC=$WINDMC
9209 elif test -n "$ac_cv_prog_WINDMC"; then
9210 WINDMC=$ac_cv_prog_WINDMC
9213 if test -n "$ac_cv_prog_WINDMC"; then
9214 for ncn_progname in windmc; do
9215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9216 set dummy ${ncn_progname}; ac_word=$2
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218 $as_echo_n "checking for $ac_word... " >&6; }
9219 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 if test -n "$WINDMC"; then
9223 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9224 else
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 for as_dir in $PATH
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9232 ac_cv_prog_WINDMC="${ncn_progname}"
9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 break 2
9236 done
9237 done
9238 IFS=$as_save_IFS
9242 WINDMC=$ac_cv_prog_WINDMC
9243 if test -n "$WINDMC"; then
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9245 $as_echo "$WINDMC" >&6; }
9246 else
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248 $as_echo "no" >&6; }
9252 done
9255 for ncn_progname in windmc; do
9256 if test -n "$ncn_tool_prefix"; then
9257 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9258 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260 $as_echo_n "checking for $ac_word... " >&6; }
9261 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 if test -n "$WINDMC"; then
9265 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9266 else
9267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268 for as_dir in $PATH
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
9272 for ac_exec_ext in '' $ac_executable_extensions; do
9273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9274 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 break 2
9278 done
9279 done
9280 IFS=$as_save_IFS
9284 WINDMC=$ac_cv_prog_WINDMC
9285 if test -n "$WINDMC"; then
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9287 $as_echo "$WINDMC" >&6; }
9288 else
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290 $as_echo "no" >&6; }
9295 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9297 set dummy ${ncn_progname}; ac_word=$2
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299 $as_echo_n "checking for $ac_word... " >&6; }
9300 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 if test -n "$WINDMC"; then
9304 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9305 else
9306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307 for as_dir in $PATH
9309 IFS=$as_save_IFS
9310 test -z "$as_dir" && as_dir=.
9311 for ac_exec_ext in '' $ac_executable_extensions; do
9312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9313 ac_cv_prog_WINDMC="${ncn_progname}"
9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9315 break 2
9317 done
9318 done
9319 IFS=$as_save_IFS
9323 WINDMC=$ac_cv_prog_WINDMC
9324 if test -n "$WINDMC"; then
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9326 $as_echo "$WINDMC" >&6; }
9327 else
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 $as_echo "no" >&6; }
9334 test -n "$ac_cv_prog_WINDMC" && break
9335 done
9337 if test -z "$ac_cv_prog_WINDMC" ; then
9338 set dummy windmc
9339 if test $build = $host ; then
9340 WINDMC="$2"
9341 else
9342 WINDMC="${ncn_tool_prefix}$2"
9348 if test -n "$OBJCOPY"; then
9349 ac_cv_prog_OBJCOPY=$OBJCOPY
9350 elif test -n "$ac_cv_prog_OBJCOPY"; then
9351 OBJCOPY=$ac_cv_prog_OBJCOPY
9354 if test -n "$ac_cv_prog_OBJCOPY"; then
9355 for ncn_progname in objcopy; do
9356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9357 set dummy ${ncn_progname}; ac_word=$2
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359 $as_echo_n "checking for $ac_word... " >&6; }
9360 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 if test -n "$OBJCOPY"; then
9364 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9365 else
9366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9367 for as_dir in $PATH
9369 IFS=$as_save_IFS
9370 test -z "$as_dir" && as_dir=.
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9373 ac_cv_prog_OBJCOPY="${ncn_progname}"
9374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9375 break 2
9377 done
9378 done
9379 IFS=$as_save_IFS
9383 OBJCOPY=$ac_cv_prog_OBJCOPY
9384 if test -n "$OBJCOPY"; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9386 $as_echo "$OBJCOPY" >&6; }
9387 else
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389 $as_echo "no" >&6; }
9393 done
9396 for ncn_progname in objcopy; do
9397 if test -n "$ncn_tool_prefix"; then
9398 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9399 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401 $as_echo_n "checking for $ac_word... " >&6; }
9402 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 if test -n "$OBJCOPY"; then
9406 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9407 else
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9415 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 break 2
9419 done
9420 done
9421 IFS=$as_save_IFS
9425 OBJCOPY=$ac_cv_prog_OBJCOPY
9426 if test -n "$OBJCOPY"; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9428 $as_echo "$OBJCOPY" >&6; }
9429 else
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431 $as_echo "no" >&6; }
9436 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9438 set dummy ${ncn_progname}; ac_word=$2
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440 $as_echo_n "checking for $ac_word... " >&6; }
9441 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 if test -n "$OBJCOPY"; then
9445 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9446 else
9447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448 for as_dir in $PATH
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
9452 for ac_exec_ext in '' $ac_executable_extensions; do
9453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9454 ac_cv_prog_OBJCOPY="${ncn_progname}"
9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9456 break 2
9458 done
9459 done
9460 IFS=$as_save_IFS
9464 OBJCOPY=$ac_cv_prog_OBJCOPY
9465 if test -n "$OBJCOPY"; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9467 $as_echo "$OBJCOPY" >&6; }
9468 else
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470 $as_echo "no" >&6; }
9475 test -n "$ac_cv_prog_OBJCOPY" && break
9476 done
9478 if test -z "$ac_cv_prog_OBJCOPY" ; then
9479 set dummy objcopy
9480 if test $build = $host ; then
9481 OBJCOPY="$2"
9482 else
9483 OBJCOPY="${ncn_tool_prefix}$2"
9489 if test -n "$OBJDUMP"; then
9490 ac_cv_prog_OBJDUMP=$OBJDUMP
9491 elif test -n "$ac_cv_prog_OBJDUMP"; then
9492 OBJDUMP=$ac_cv_prog_OBJDUMP
9495 if test -n "$ac_cv_prog_OBJDUMP"; then
9496 for ncn_progname in objdump; do
9497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9498 set dummy ${ncn_progname}; ac_word=$2
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500 $as_echo_n "checking for $ac_word... " >&6; }
9501 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 if test -n "$OBJDUMP"; then
9505 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9506 else
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508 for as_dir in $PATH
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9514 ac_cv_prog_OBJDUMP="${ncn_progname}"
9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 break 2
9518 done
9519 done
9520 IFS=$as_save_IFS
9524 OBJDUMP=$ac_cv_prog_OBJDUMP
9525 if test -n "$OBJDUMP"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9527 $as_echo "$OBJDUMP" >&6; }
9528 else
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530 $as_echo "no" >&6; }
9534 done
9537 for ncn_progname in objdump; do
9538 if test -n "$ncn_tool_prefix"; then
9539 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9540 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542 $as_echo_n "checking for $ac_word... " >&6; }
9543 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 if test -n "$OBJDUMP"; then
9547 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9548 else
9549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550 for as_dir in $PATH
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9556 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 break 2
9560 done
9561 done
9562 IFS=$as_save_IFS
9566 OBJDUMP=$ac_cv_prog_OBJDUMP
9567 if test -n "$OBJDUMP"; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9569 $as_echo "$OBJDUMP" >&6; }
9570 else
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572 $as_echo "no" >&6; }
9577 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579 set dummy ${ncn_progname}; ac_word=$2
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581 $as_echo_n "checking for $ac_word... " >&6; }
9582 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 if test -n "$OBJDUMP"; then
9586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9587 else
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $PATH
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_prog_OBJDUMP="${ncn_progname}"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9599 done
9600 done
9601 IFS=$as_save_IFS
9605 OBJDUMP=$ac_cv_prog_OBJDUMP
9606 if test -n "$OBJDUMP"; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9608 $as_echo "$OBJDUMP" >&6; }
9609 else
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9616 test -n "$ac_cv_prog_OBJDUMP" && break
9617 done
9619 if test -z "$ac_cv_prog_OBJDUMP" ; then
9620 set dummy objdump
9621 if test $build = $host ; then
9622 OBJDUMP="$2"
9623 else
9624 OBJDUMP="${ncn_tool_prefix}$2"
9633 # Target tools.
9635 # Check whether --with-build-time-tools was given.
9636 if test "${with_build_time_tools+set}" = set; then :
9637 withval=$with_build_time_tools; case x"$withval" in
9638 x/*) ;;
9640 with_build_time_tools=
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9642 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9644 esac
9645 else
9646 with_build_time_tools=
9652 if test -n "$CC_FOR_TARGET"; then
9653 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9654 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9655 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9658 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9659 for ncn_progname in cc gcc; do
9660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9661 set dummy ${ncn_progname}; ac_word=$2
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663 $as_echo_n "checking for $ac_word... " >&6; }
9664 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666 else
9667 if test -n "$CC_FOR_TARGET"; then
9668 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9669 else
9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671 for as_dir in $PATH
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9677 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 break 2
9681 done
9682 done
9683 IFS=$as_save_IFS
9687 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9688 if test -n "$CC_FOR_TARGET"; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9690 $as_echo "$CC_FOR_TARGET" >&6; }
9691 else
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693 $as_echo "no" >&6; }
9697 done
9700 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9701 for ncn_progname in cc gcc; do
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9703 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9704 if test -x $with_build_time_tools/${ncn_progname}; then
9705 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9707 $as_echo "yes" >&6; }
9708 break
9709 else
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711 $as_echo "no" >&6; }
9713 done
9716 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9717 for ncn_progname in cc gcc; do
9718 if test -n "$ncn_target_tool_prefix"; then
9719 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9720 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 if test -n "$CC_FOR_TARGET"; then
9727 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9728 else
9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 for as_dir in $PATH
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9736 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9740 done
9741 done
9742 IFS=$as_save_IFS
9746 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9747 if test -n "$CC_FOR_TARGET"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9749 $as_echo "$CC_FOR_TARGET" >&6; }
9750 else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9757 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9759 set dummy ${ncn_progname}; ac_word=$2
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761 $as_echo_n "checking for $ac_word... " >&6; }
9762 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 if test -n "$CC_FOR_TARGET"; then
9766 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9767 else
9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 for as_dir in $PATH
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
9773 for ac_exec_ext in '' $ac_executable_extensions; do
9774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9775 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9777 break 2
9779 done
9780 done
9781 IFS=$as_save_IFS
9785 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9786 if test -n "$CC_FOR_TARGET"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9788 $as_echo "$CC_FOR_TARGET" >&6; }
9789 else
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791 $as_echo "no" >&6; }
9796 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9797 done
9800 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9801 set dummy cc gcc
9802 if test $build = $target ; then
9803 CC_FOR_TARGET="$2"
9804 else
9805 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9807 else
9808 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9813 if test -n "$CXX_FOR_TARGET"; then
9814 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9815 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9816 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9819 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9820 for ncn_progname in c++ g++ cxx gxx; do
9821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9822 set dummy ${ncn_progname}; ac_word=$2
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824 $as_echo_n "checking for $ac_word... " >&6; }
9825 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 if test -n "$CXX_FOR_TARGET"; then
9829 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9830 else
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832 for as_dir in $PATH
9834 IFS=$as_save_IFS
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840 break 2
9842 done
9843 done
9844 IFS=$as_save_IFS
9848 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9849 if test -n "$CXX_FOR_TARGET"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9851 $as_echo "$CXX_FOR_TARGET" >&6; }
9852 else
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9858 done
9861 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9862 for ncn_progname in c++ g++ cxx gxx; do
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9864 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9865 if test -x $with_build_time_tools/${ncn_progname}; then
9866 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9868 $as_echo "yes" >&6; }
9869 break
9870 else
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872 $as_echo "no" >&6; }
9874 done
9877 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9878 for ncn_progname in c++ g++ cxx gxx; do
9879 if test -n "$ncn_target_tool_prefix"; then
9880 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9881 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883 $as_echo_n "checking for $ac_word... " >&6; }
9884 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 if test -n "$CXX_FOR_TARGET"; then
9888 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9889 else
9890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891 for as_dir in $PATH
9893 IFS=$as_save_IFS
9894 test -z "$as_dir" && as_dir=.
9895 for ac_exec_ext in '' $ac_executable_extensions; do
9896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9897 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9899 break 2
9901 done
9902 done
9903 IFS=$as_save_IFS
9907 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9908 if test -n "$CXX_FOR_TARGET"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9910 $as_echo "$CXX_FOR_TARGET" >&6; }
9911 else
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9918 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9920 set dummy ${ncn_progname}; ac_word=$2
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922 $as_echo_n "checking for $ac_word... " >&6; }
9923 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9924 $as_echo_n "(cached) " >&6
9925 else
9926 if test -n "$CXX_FOR_TARGET"; then
9927 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9928 else
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 for as_dir in $PATH
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 break 2
9940 done
9941 done
9942 IFS=$as_save_IFS
9946 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9947 if test -n "$CXX_FOR_TARGET"; then
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9949 $as_echo "$CXX_FOR_TARGET" >&6; }
9950 else
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9957 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9958 done
9961 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9962 set dummy c++ g++ cxx gxx
9963 if test $build = $target ; then
9964 CXX_FOR_TARGET="$2"
9965 else
9966 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9968 else
9969 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9974 if test -n "$GCC_FOR_TARGET"; then
9975 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9976 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9977 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9980 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9981 for ncn_progname in gcc; do
9982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9983 set dummy ${ncn_progname}; ac_word=$2
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985 $as_echo_n "checking for $ac_word... " >&6; }
9986 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 if test -n "$GCC_FOR_TARGET"; then
9990 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9991 else
9992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993 for as_dir in $PATH
9995 IFS=$as_save_IFS
9996 test -z "$as_dir" && as_dir=.
9997 for ac_exec_ext in '' $ac_executable_extensions; do
9998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9999 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10001 break 2
10003 done
10004 done
10005 IFS=$as_save_IFS
10009 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10010 if test -n "$GCC_FOR_TARGET"; then
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10012 $as_echo "$GCC_FOR_TARGET" >&6; }
10013 else
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10015 $as_echo "no" >&6; }
10019 done
10022 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10023 for ncn_progname in gcc; do
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10025 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10026 if test -x $with_build_time_tools/${ncn_progname}; then
10027 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10029 $as_echo "yes" >&6; }
10030 break
10031 else
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10035 done
10038 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10039 for ncn_progname in gcc; do
10040 if test -n "$ncn_target_tool_prefix"; then
10041 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10042 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10046 $as_echo_n "(cached) " >&6
10047 else
10048 if test -n "$GCC_FOR_TARGET"; then
10049 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10050 else
10051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052 for as_dir in $PATH
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10058 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 break 2
10062 done
10063 done
10064 IFS=$as_save_IFS
10068 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10069 if test -n "$GCC_FOR_TARGET"; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10071 $as_echo "$GCC_FOR_TARGET" >&6; }
10072 else
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10079 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10081 set dummy ${ncn_progname}; ac_word=$2
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083 $as_echo_n "checking for $ac_word... " >&6; }
10084 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
10086 else
10087 if test -n "$GCC_FOR_TARGET"; then
10088 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10089 else
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10097 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10101 done
10102 done
10103 IFS=$as_save_IFS
10107 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10108 if test -n "$GCC_FOR_TARGET"; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10110 $as_echo "$GCC_FOR_TARGET" >&6; }
10111 else
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10118 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10119 done
10122 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10123 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10124 else
10125 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10130 if test -n "$GCJ_FOR_TARGET"; then
10131 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10132 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10133 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10136 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10137 for ncn_progname in gcj; do
10138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10139 set dummy ${ncn_progname}; ac_word=$2
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10141 $as_echo_n "checking for $ac_word... " >&6; }
10142 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10143 $as_echo_n "(cached) " >&6
10144 else
10145 if test -n "$GCJ_FOR_TARGET"; then
10146 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10147 else
10148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149 for as_dir in $PATH
10151 IFS=$as_save_IFS
10152 test -z "$as_dir" && as_dir=.
10153 for ac_exec_ext in '' $ac_executable_extensions; do
10154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10155 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10157 break 2
10159 done
10160 done
10161 IFS=$as_save_IFS
10165 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10166 if test -n "$GCJ_FOR_TARGET"; then
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10168 $as_echo "$GCJ_FOR_TARGET" >&6; }
10169 else
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171 $as_echo "no" >&6; }
10175 done
10178 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10179 for ncn_progname in gcj; do
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10181 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10182 if test -x $with_build_time_tools/${ncn_progname}; then
10183 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10185 $as_echo "yes" >&6; }
10186 break
10187 else
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10191 done
10194 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10195 for ncn_progname in gcj; do
10196 if test -n "$ncn_target_tool_prefix"; then
10197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10198 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204 if test -n "$GCJ_FOR_TARGET"; then
10205 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10206 else
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10218 done
10219 done
10220 IFS=$as_save_IFS
10224 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10225 if test -n "$GCJ_FOR_TARGET"; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10227 $as_echo "$GCJ_FOR_TARGET" >&6; }
10228 else
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10235 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10237 set dummy ${ncn_progname}; ac_word=$2
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10239 $as_echo_n "checking for $ac_word... " >&6; }
10240 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10241 $as_echo_n "(cached) " >&6
10242 else
10243 if test -n "$GCJ_FOR_TARGET"; then
10244 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10245 else
10246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247 for as_dir in $PATH
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
10252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10253 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 break 2
10257 done
10258 done
10259 IFS=$as_save_IFS
10263 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10264 if test -n "$GCJ_FOR_TARGET"; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10266 $as_echo "$GCJ_FOR_TARGET" >&6; }
10267 else
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10274 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10275 done
10278 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10279 set dummy gcj
10280 if test $build = $target ; then
10281 GCJ_FOR_TARGET="$2"
10282 else
10283 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10285 else
10286 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10291 if test -n "$GFORTRAN_FOR_TARGET"; then
10292 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10293 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10294 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10297 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10298 for ncn_progname in gfortran; do
10299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10300 set dummy ${ncn_progname}; ac_word=$2
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302 $as_echo_n "checking for $ac_word... " >&6; }
10303 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 if test -n "$GFORTRAN_FOR_TARGET"; then
10307 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10308 else
10309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10312 IFS=$as_save_IFS
10313 test -z "$as_dir" && as_dir=.
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10316 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318 break 2
10320 done
10321 done
10322 IFS=$as_save_IFS
10326 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10327 if test -n "$GFORTRAN_FOR_TARGET"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10329 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10330 else
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10336 done
10339 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10340 for ncn_progname in gfortran; do
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10342 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10343 if test -x $with_build_time_tools/${ncn_progname}; then
10344 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10346 $as_echo "yes" >&6; }
10347 break
10348 else
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10352 done
10355 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10356 for ncn_progname in gfortran; do
10357 if test -n "$ncn_target_tool_prefix"; then
10358 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10359 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 if test -n "$GFORTRAN_FOR_TARGET"; then
10366 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10367 else
10368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369 for as_dir in $PATH
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10375 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 break 2
10379 done
10380 done
10381 IFS=$as_save_IFS
10385 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10386 if test -n "$GFORTRAN_FOR_TARGET"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10388 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10389 else
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10396 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10398 set dummy ${ncn_progname}; ac_word=$2
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10400 $as_echo_n "checking for $ac_word... " >&6; }
10401 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10402 $as_echo_n "(cached) " >&6
10403 else
10404 if test -n "$GFORTRAN_FOR_TARGET"; then
10405 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10406 else
10407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408 for as_dir in $PATH
10410 IFS=$as_save_IFS
10411 test -z "$as_dir" && as_dir=.
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10414 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10416 break 2
10418 done
10419 done
10420 IFS=$as_save_IFS
10424 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10425 if test -n "$GFORTRAN_FOR_TARGET"; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10427 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10428 else
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430 $as_echo "no" >&6; }
10435 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10436 done
10439 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10440 set dummy gfortran
10441 if test $build = $target ; then
10442 GFORTRAN_FOR_TARGET="$2"
10443 else
10444 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10446 else
10447 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10452 if test -n "$GOC_FOR_TARGET"; then
10453 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10454 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10455 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10458 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10459 for ncn_progname in gccgo; do
10460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10461 set dummy ${ncn_progname}; ac_word=$2
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463 $as_echo_n "checking for $ac_word... " >&6; }
10464 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 if test -n "$GOC_FOR_TARGET"; then
10468 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10469 else
10470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10471 for as_dir in $PATH
10473 IFS=$as_save_IFS
10474 test -z "$as_dir" && as_dir=.
10475 for ac_exec_ext in '' $ac_executable_extensions; do
10476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10477 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10479 break 2
10481 done
10482 done
10483 IFS=$as_save_IFS
10487 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10488 if test -n "$GOC_FOR_TARGET"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10490 $as_echo "$GOC_FOR_TARGET" >&6; }
10491 else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10497 done
10500 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10501 for ncn_progname in gccgo; do
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10503 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10504 if test -x $with_build_time_tools/${ncn_progname}; then
10505 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10507 $as_echo "yes" >&6; }
10508 break
10509 else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 $as_echo "no" >&6; }
10513 done
10516 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10517 for ncn_progname in gccgo; do
10518 if test -n "$ncn_target_tool_prefix"; then
10519 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10520 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10522 $as_echo_n "checking for $ac_word... " >&6; }
10523 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10524 $as_echo_n "(cached) " >&6
10525 else
10526 if test -n "$GOC_FOR_TARGET"; then
10527 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10528 else
10529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530 for as_dir in $PATH
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10536 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10540 done
10541 done
10542 IFS=$as_save_IFS
10546 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10547 if test -n "$GOC_FOR_TARGET"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10549 $as_echo "$GOC_FOR_TARGET" >&6; }
10550 else
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552 $as_echo "no" >&6; }
10557 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10559 set dummy ${ncn_progname}; ac_word=$2
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561 $as_echo_n "checking for $ac_word... " >&6; }
10562 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10564 else
10565 if test -n "$GOC_FOR_TARGET"; then
10566 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10567 else
10568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10571 IFS=$as_save_IFS
10572 test -z "$as_dir" && as_dir=.
10573 for ac_exec_ext in '' $ac_executable_extensions; do
10574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10575 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577 break 2
10579 done
10580 done
10581 IFS=$as_save_IFS
10585 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10586 if test -n "$GOC_FOR_TARGET"; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10588 $as_echo "$GOC_FOR_TARGET" >&6; }
10589 else
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10596 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10597 done
10600 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10601 set dummy gccgo
10602 if test $build = $target ; then
10603 GOC_FOR_TARGET="$2"
10604 else
10605 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10607 else
10608 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10613 cat > conftest.c << \EOF
10614 #ifdef __GNUC__
10615 gcc_yay;
10616 #endif
10618 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10619 have_gcc_for_target=yes
10620 else
10621 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10622 have_gcc_for_target=no
10624 rm conftest.c
10629 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10630 if test -n "$with_build_time_tools"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10632 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10633 if test -x $with_build_time_tools/ar; then
10634 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10635 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10637 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10638 else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; }
10642 elif test $build != $host && test $have_gcc_for_target = yes; then
10643 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10644 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10645 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10648 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10649 # Extract the first word of "ar", so it can be a program name with args.
10650 set dummy ar; ac_word=$2
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 $as_echo_n "checking for $ac_word... " >&6; }
10653 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 case $AR_FOR_TARGET in
10657 [\\/]* | ?:[\\/]*)
10658 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662 for as_dir in $gcc_cv_tool_dirs
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10668 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 break 2
10672 done
10673 done
10674 IFS=$as_save_IFS
10677 esac
10679 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10680 if test -n "$AR_FOR_TARGET"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10682 $as_echo "$AR_FOR_TARGET" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10690 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10693 if test -n "$AR_FOR_TARGET"; then
10694 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10695 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10696 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10699 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10700 for ncn_progname in ar; do
10701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10702 set dummy ${ncn_progname}; ac_word=$2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 $as_echo_n "checking for $ac_word... " >&6; }
10705 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 if test -n "$AR_FOR_TARGET"; then
10709 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10710 else
10711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712 for as_dir in $PATH
10714 IFS=$as_save_IFS
10715 test -z "$as_dir" && as_dir=.
10716 for ac_exec_ext in '' $ac_executable_extensions; do
10717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10718 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10720 break 2
10722 done
10723 done
10724 IFS=$as_save_IFS
10728 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10729 if test -n "$AR_FOR_TARGET"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10731 $as_echo "$AR_FOR_TARGET" >&6; }
10732 else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10738 done
10741 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10742 for ncn_progname in ar; do
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10744 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10745 if test -x $with_build_time_tools/${ncn_progname}; then
10746 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10748 $as_echo "yes" >&6; }
10749 break
10750 else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10754 done
10757 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10758 for ncn_progname in ar; do
10759 if test -n "$ncn_target_tool_prefix"; then
10760 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10761 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763 $as_echo_n "checking for $ac_word... " >&6; }
10764 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 if test -n "$AR_FOR_TARGET"; then
10768 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10769 else
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771 for as_dir in $PATH
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10777 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10779 break 2
10781 done
10782 done
10783 IFS=$as_save_IFS
10787 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10788 if test -n "$AR_FOR_TARGET"; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10790 $as_echo "$AR_FOR_TARGET" >&6; }
10791 else
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793 $as_echo "no" >&6; }
10798 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10800 set dummy ${ncn_progname}; ac_word=$2
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802 $as_echo_n "checking for $ac_word... " >&6; }
10803 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 if test -n "$AR_FOR_TARGET"; then
10807 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10808 else
10809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810 for as_dir in $PATH
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10816 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10820 done
10821 done
10822 IFS=$as_save_IFS
10826 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10827 if test -n "$AR_FOR_TARGET"; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10829 $as_echo "$AR_FOR_TARGET" >&6; }
10830 else
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10837 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10838 done
10841 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10842 set dummy ar
10843 if test $build = $target ; then
10844 AR_FOR_TARGET="$2"
10845 else
10846 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10848 else
10849 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10852 else
10853 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10859 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10860 if test -n "$with_build_time_tools"; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10862 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10863 if test -x $with_build_time_tools/as; then
10864 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10865 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10867 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10868 else
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870 $as_echo "no" >&6; }
10872 elif test $build != $host && test $have_gcc_for_target = yes; then
10873 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10874 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10875 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10878 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10879 # Extract the first word of "as", so it can be a program name with args.
10880 set dummy as; ac_word=$2
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882 $as_echo_n "checking for $ac_word... " >&6; }
10883 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 case $AS_FOR_TARGET in
10887 [\\/]* | ?:[\\/]*)
10888 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $gcc_cv_tool_dirs
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10898 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 break 2
10902 done
10903 done
10904 IFS=$as_save_IFS
10907 esac
10909 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10910 if test -n "$AS_FOR_TARGET"; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10912 $as_echo "$AS_FOR_TARGET" >&6; }
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10920 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10923 if test -n "$AS_FOR_TARGET"; then
10924 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10925 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10926 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10929 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10930 for ncn_progname in as; do
10931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10932 set dummy ${ncn_progname}; ac_word=$2
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934 $as_echo_n "checking for $ac_word... " >&6; }
10935 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 if test -n "$AS_FOR_TARGET"; then
10939 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10940 else
10941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942 for as_dir in $PATH
10944 IFS=$as_save_IFS
10945 test -z "$as_dir" && as_dir=.
10946 for ac_exec_ext in '' $ac_executable_extensions; do
10947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10948 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10950 break 2
10952 done
10953 done
10954 IFS=$as_save_IFS
10958 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10959 if test -n "$AS_FOR_TARGET"; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10961 $as_echo "$AS_FOR_TARGET" >&6; }
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10968 done
10971 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10972 for ncn_progname in as; do
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10974 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10975 if test -x $with_build_time_tools/${ncn_progname}; then
10976 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10978 $as_echo "yes" >&6; }
10979 break
10980 else
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982 $as_echo "no" >&6; }
10984 done
10987 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10988 for ncn_progname in as; do
10989 if test -n "$ncn_target_tool_prefix"; then
10990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10991 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 if test -n "$AS_FOR_TARGET"; then
10998 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10999 else
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11007 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11011 done
11012 done
11013 IFS=$as_save_IFS
11017 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11018 if test -n "$AS_FOR_TARGET"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11020 $as_echo "$AS_FOR_TARGET" >&6; }
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; }
11028 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11030 set dummy ${ncn_progname}; ac_word=$2
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 $as_echo_n "checking for $ac_word... " >&6; }
11033 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11035 else
11036 if test -n "$AS_FOR_TARGET"; then
11037 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11038 else
11039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040 for as_dir in $PATH
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11046 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11050 done
11051 done
11052 IFS=$as_save_IFS
11056 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11057 if test -n "$AS_FOR_TARGET"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11059 $as_echo "$AS_FOR_TARGET" >&6; }
11060 else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11067 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11068 done
11071 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11072 set dummy as
11073 if test $build = $target ; then
11074 AS_FOR_TARGET="$2"
11075 else
11076 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11078 else
11079 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11082 else
11083 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11089 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11090 if test -n "$with_build_time_tools"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11092 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11093 if test -x $with_build_time_tools/dlltool; then
11094 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11095 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11097 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11098 else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100 $as_echo "no" >&6; }
11102 elif test $build != $host && test $have_gcc_for_target = yes; then
11103 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11104 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11105 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11108 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11109 # Extract the first word of "dlltool", so it can be a program name with args.
11110 set dummy dlltool; ac_word=$2
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112 $as_echo_n "checking for $ac_word... " >&6; }
11113 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11114 $as_echo_n "(cached) " >&6
11115 else
11116 case $DLLTOOL_FOR_TARGET in
11117 [\\/]* | ?:[\\/]*)
11118 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122 for as_dir in $gcc_cv_tool_dirs
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11128 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11132 done
11133 done
11134 IFS=$as_save_IFS
11137 esac
11139 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11140 if test -n "$DLLTOOL_FOR_TARGET"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11142 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11150 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11153 if test -n "$DLLTOOL_FOR_TARGET"; then
11154 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11155 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11156 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11159 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11160 for ncn_progname in dlltool; do
11161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11162 set dummy ${ncn_progname}; ac_word=$2
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164 $as_echo_n "checking for $ac_word... " >&6; }
11165 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 if test -n "$DLLTOOL_FOR_TARGET"; then
11169 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11170 else
11171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in $PATH
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11178 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 break 2
11182 done
11183 done
11184 IFS=$as_save_IFS
11188 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11189 if test -n "$DLLTOOL_FOR_TARGET"; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11191 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11192 else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11198 done
11201 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11202 for ncn_progname in dlltool; do
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11204 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11205 if test -x $with_build_time_tools/${ncn_progname}; then
11206 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11208 $as_echo "yes" >&6; }
11209 break
11210 else
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212 $as_echo "no" >&6; }
11214 done
11217 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11218 for ncn_progname in dlltool; do
11219 if test -n "$ncn_target_tool_prefix"; then
11220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11221 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11223 $as_echo_n "checking for $ac_word... " >&6; }
11224 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 if test -n "$DLLTOOL_FOR_TARGET"; then
11228 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11229 else
11230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
11235 for ac_exec_ext in '' $ac_executable_extensions; do
11236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11237 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11239 break 2
11241 done
11242 done
11243 IFS=$as_save_IFS
11247 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11248 if test -n "$DLLTOOL_FOR_TARGET"; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11250 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11251 else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 $as_echo "no" >&6; }
11258 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11260 set dummy ${ncn_progname}; ac_word=$2
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11262 $as_echo_n "checking for $ac_word... " >&6; }
11263 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 if test -n "$DLLTOOL_FOR_TARGET"; then
11267 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11268 else
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11276 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 break 2
11280 done
11281 done
11282 IFS=$as_save_IFS
11286 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11287 if test -n "$DLLTOOL_FOR_TARGET"; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11289 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11290 else
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292 $as_echo "no" >&6; }
11297 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11298 done
11301 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11302 set dummy dlltool
11303 if test $build = $target ; then
11304 DLLTOOL_FOR_TARGET="$2"
11305 else
11306 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11308 else
11309 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11312 else
11313 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11319 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11320 if test -n "$with_build_time_tools"; then
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11322 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11323 if test -x $with_build_time_tools/ld; then
11324 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11325 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11327 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11328 else
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330 $as_echo "no" >&6; }
11332 elif test $build != $host && test $have_gcc_for_target = yes; then
11333 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11334 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11335 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11338 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11339 # Extract the first word of "ld", so it can be a program name with args.
11340 set dummy ld; ac_word=$2
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342 $as_echo_n "checking for $ac_word... " >&6; }
11343 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346 case $LD_FOR_TARGET in
11347 [\\/]* | ?:[\\/]*)
11348 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $gcc_cv_tool_dirs
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11362 done
11363 done
11364 IFS=$as_save_IFS
11367 esac
11369 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11370 if test -n "$LD_FOR_TARGET"; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11372 $as_echo "$LD_FOR_TARGET" >&6; }
11373 else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11380 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11383 if test -n "$LD_FOR_TARGET"; then
11384 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11385 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11386 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11389 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11390 for ncn_progname in ld; do
11391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11392 set dummy ${ncn_progname}; ac_word=$2
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394 $as_echo_n "checking for $ac_word... " >&6; }
11395 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
11397 else
11398 if test -n "$LD_FOR_TARGET"; then
11399 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11400 else
11401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402 for as_dir in $PATH
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
11406 for ac_exec_ext in '' $ac_executable_extensions; do
11407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11408 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11410 break 2
11412 done
11413 done
11414 IFS=$as_save_IFS
11418 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11419 if test -n "$LD_FOR_TARGET"; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11421 $as_echo "$LD_FOR_TARGET" >&6; }
11422 else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424 $as_echo "no" >&6; }
11428 done
11431 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11432 for ncn_progname in ld; do
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11434 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11435 if test -x $with_build_time_tools/${ncn_progname}; then
11436 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11438 $as_echo "yes" >&6; }
11439 break
11440 else
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442 $as_echo "no" >&6; }
11444 done
11447 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11448 for ncn_progname in ld; do
11449 if test -n "$ncn_target_tool_prefix"; then
11450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11451 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11453 $as_echo_n "checking for $ac_word... " >&6; }
11454 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 if test -n "$LD_FOR_TARGET"; then
11458 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11459 else
11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461 for as_dir in $PATH
11463 IFS=$as_save_IFS
11464 test -z "$as_dir" && as_dir=.
11465 for ac_exec_ext in '' $ac_executable_extensions; do
11466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11467 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11469 break 2
11471 done
11472 done
11473 IFS=$as_save_IFS
11477 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11478 if test -n "$LD_FOR_TARGET"; then
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11480 $as_echo "$LD_FOR_TARGET" >&6; }
11481 else
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483 $as_echo "no" >&6; }
11488 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11490 set dummy ${ncn_progname}; ac_word=$2
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492 $as_echo_n "checking for $ac_word... " >&6; }
11493 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 if test -n "$LD_FOR_TARGET"; then
11497 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11498 else
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11502 IFS=$as_save_IFS
11503 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11506 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11508 break 2
11510 done
11511 done
11512 IFS=$as_save_IFS
11516 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11517 if test -n "$LD_FOR_TARGET"; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11519 $as_echo "$LD_FOR_TARGET" >&6; }
11520 else
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; }
11527 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11528 done
11531 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11532 set dummy ld
11533 if test $build = $target ; then
11534 LD_FOR_TARGET="$2"
11535 else
11536 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11538 else
11539 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11542 else
11543 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11549 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11550 if test -n "$with_build_time_tools"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11552 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11553 if test -x $with_build_time_tools/lipo; then
11554 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11555 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11557 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560 $as_echo "no" >&6; }
11562 elif test $build != $host && test $have_gcc_for_target = yes; then
11563 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11564 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11565 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11568 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11569 # Extract the first word of "lipo", so it can be a program name with args.
11570 set dummy lipo; ac_word=$2
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572 $as_echo_n "checking for $ac_word... " >&6; }
11573 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 case $LIPO_FOR_TARGET in
11577 [\\/]* | ?:[\\/]*)
11578 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582 for as_dir in $gcc_cv_tool_dirs
11584 IFS=$as_save_IFS
11585 test -z "$as_dir" && as_dir=.
11586 for ac_exec_ext in '' $ac_executable_extensions; do
11587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11588 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 break 2
11592 done
11593 done
11594 IFS=$as_save_IFS
11597 esac
11599 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11600 if test -n "$LIPO_FOR_TARGET"; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11602 $as_echo "$LIPO_FOR_TARGET" >&6; }
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11610 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11613 if test -n "$LIPO_FOR_TARGET"; then
11614 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11615 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11616 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11619 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11620 for ncn_progname in lipo; do
11621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11622 set dummy ${ncn_progname}; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 if test -n "$LIPO_FOR_TARGET"; then
11629 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11630 else
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11638 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11642 done
11643 done
11644 IFS=$as_save_IFS
11648 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11649 if test -n "$LIPO_FOR_TARGET"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11651 $as_echo "$LIPO_FOR_TARGET" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11658 done
11661 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11662 for ncn_progname in lipo; do
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11664 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11665 if test -x $with_build_time_tools/${ncn_progname}; then
11666 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11668 $as_echo "yes" >&6; }
11669 break
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11674 done
11677 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11678 for ncn_progname in lipo; do
11679 if test -n "$ncn_target_tool_prefix"; then
11680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11681 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683 $as_echo_n "checking for $ac_word... " >&6; }
11684 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 if test -n "$LIPO_FOR_TARGET"; then
11688 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11689 else
11690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH
11693 IFS=$as_save_IFS
11694 test -z "$as_dir" && as_dir=.
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11697 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 break 2
11701 done
11702 done
11703 IFS=$as_save_IFS
11707 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11708 if test -n "$LIPO_FOR_TARGET"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11710 $as_echo "$LIPO_FOR_TARGET" >&6; }
11711 else
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 $as_echo "no" >&6; }
11718 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11720 set dummy ${ncn_progname}; ac_word=$2
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11722 $as_echo_n "checking for $ac_word... " >&6; }
11723 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11724 $as_echo_n "(cached) " >&6
11725 else
11726 if test -n "$LIPO_FOR_TARGET"; then
11727 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11728 else
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11732 IFS=$as_save_IFS
11733 test -z "$as_dir" && as_dir=.
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11736 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738 break 2
11740 done
11741 done
11742 IFS=$as_save_IFS
11746 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11747 if test -n "$LIPO_FOR_TARGET"; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11749 $as_echo "$LIPO_FOR_TARGET" >&6; }
11750 else
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11757 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11758 done
11761 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11762 set dummy lipo
11763 if test $build = $target ; then
11764 LIPO_FOR_TARGET="$2"
11765 else
11766 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11768 else
11769 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11772 else
11773 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11779 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11780 if test -n "$with_build_time_tools"; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11782 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11783 if test -x $with_build_time_tools/nm; then
11784 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11785 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11787 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11788 else
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790 $as_echo "no" >&6; }
11792 elif test $build != $host && test $have_gcc_for_target = yes; then
11793 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11794 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11795 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11798 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11799 # Extract the first word of "nm", so it can be a program name with args.
11800 set dummy nm; ac_word=$2
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802 $as_echo_n "checking for $ac_word... " >&6; }
11803 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11804 $as_echo_n "(cached) " >&6
11805 else
11806 case $NM_FOR_TARGET in
11807 [\\/]* | ?:[\\/]*)
11808 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $gcc_cv_tool_dirs
11814 IFS=$as_save_IFS
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11818 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 break 2
11822 done
11823 done
11824 IFS=$as_save_IFS
11827 esac
11829 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11830 if test -n "$NM_FOR_TARGET"; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11832 $as_echo "$NM_FOR_TARGET" >&6; }
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11840 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11843 if test -n "$NM_FOR_TARGET"; then
11844 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11845 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11846 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11849 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11850 for ncn_progname in nm; do
11851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11852 set dummy ${ncn_progname}; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 if test -n "$NM_FOR_TARGET"; then
11859 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11860 else
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in $PATH
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11868 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11872 done
11873 done
11874 IFS=$as_save_IFS
11878 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11879 if test -n "$NM_FOR_TARGET"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11881 $as_echo "$NM_FOR_TARGET" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11888 done
11891 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11892 for ncn_progname in nm; do
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11894 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11895 if test -x $with_build_time_tools/${ncn_progname}; then
11896 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898 $as_echo "yes" >&6; }
11899 break
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11904 done
11907 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11908 for ncn_progname in nm; do
11909 if test -n "$ncn_target_tool_prefix"; then
11910 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11911 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11913 $as_echo_n "checking for $ac_word... " >&6; }
11914 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11915 $as_echo_n "(cached) " >&6
11916 else
11917 if test -n "$NM_FOR_TARGET"; then
11918 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11919 else
11920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921 for as_dir in $PATH
11923 IFS=$as_save_IFS
11924 test -z "$as_dir" && as_dir=.
11925 for ac_exec_ext in '' $ac_executable_extensions; do
11926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11927 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929 break 2
11931 done
11932 done
11933 IFS=$as_save_IFS
11937 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11938 if test -n "$NM_FOR_TARGET"; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11940 $as_echo "$NM_FOR_TARGET" >&6; }
11941 else
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943 $as_echo "no" >&6; }
11948 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11950 set dummy ${ncn_progname}; ac_word=$2
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952 $as_echo_n "checking for $ac_word... " >&6; }
11953 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 if test -n "$NM_FOR_TARGET"; then
11957 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11958 else
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11962 IFS=$as_save_IFS
11963 test -z "$as_dir" && as_dir=.
11964 for ac_exec_ext in '' $ac_executable_extensions; do
11965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11966 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11968 break 2
11970 done
11971 done
11972 IFS=$as_save_IFS
11976 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11977 if test -n "$NM_FOR_TARGET"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11979 $as_echo "$NM_FOR_TARGET" >&6; }
11980 else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11987 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11988 done
11991 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11992 set dummy nm
11993 if test $build = $target ; then
11994 NM_FOR_TARGET="$2"
11995 else
11996 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11998 else
11999 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12002 else
12003 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12009 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12010 if test -n "$with_build_time_tools"; then
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12012 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12013 if test -x $with_build_time_tools/objdump; then
12014 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12015 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12017 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12018 else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12022 elif test $build != $host && test $have_gcc_for_target = yes; then
12023 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12024 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12025 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12028 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12029 # Extract the first word of "objdump", so it can be a program name with args.
12030 set dummy objdump; ac_word=$2
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032 $as_echo_n "checking for $ac_word... " >&6; }
12033 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 case $OBJDUMP_FOR_TARGET in
12037 [\\/]* | ?:[\\/]*)
12038 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $gcc_cv_tool_dirs
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12048 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 break 2
12052 done
12053 done
12054 IFS=$as_save_IFS
12057 esac
12059 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12060 if test -n "$OBJDUMP_FOR_TARGET"; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12062 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12063 else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12070 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12073 if test -n "$OBJDUMP_FOR_TARGET"; then
12074 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12075 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12076 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12079 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12080 for ncn_progname in objdump; do
12081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12082 set dummy ${ncn_progname}; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 if test -n "$OBJDUMP_FOR_TARGET"; then
12089 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12090 else
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12098 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100 break 2
12102 done
12103 done
12104 IFS=$as_save_IFS
12108 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12109 if test -n "$OBJDUMP_FOR_TARGET"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12111 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12112 else
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12118 done
12121 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12122 for ncn_progname in objdump; do
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12124 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12125 if test -x $with_build_time_tools/${ncn_progname}; then
12126 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12128 $as_echo "yes" >&6; }
12129 break
12130 else
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12134 done
12137 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12138 for ncn_progname in objdump; do
12139 if test -n "$ncn_target_tool_prefix"; then
12140 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12141 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143 $as_echo_n "checking for $ac_word... " >&6; }
12144 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12145 $as_echo_n "(cached) " >&6
12146 else
12147 if test -n "$OBJDUMP_FOR_TARGET"; then
12148 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12149 else
12150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151 for as_dir in $PATH
12153 IFS=$as_save_IFS
12154 test -z "$as_dir" && as_dir=.
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12157 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12159 break 2
12161 done
12162 done
12163 IFS=$as_save_IFS
12167 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12168 if test -n "$OBJDUMP_FOR_TARGET"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12170 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12171 else
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173 $as_echo "no" >&6; }
12178 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12180 set dummy ${ncn_progname}; ac_word=$2
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182 $as_echo_n "checking for $ac_word... " >&6; }
12183 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 if test -n "$OBJDUMP_FOR_TARGET"; then
12187 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12188 else
12189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190 for as_dir in $PATH
12192 IFS=$as_save_IFS
12193 test -z "$as_dir" && as_dir=.
12194 for ac_exec_ext in '' $ac_executable_extensions; do
12195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12196 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 break 2
12200 done
12201 done
12202 IFS=$as_save_IFS
12206 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12207 if test -n "$OBJDUMP_FOR_TARGET"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12209 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12217 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12218 done
12221 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12222 set dummy objdump
12223 if test $build = $target ; then
12224 OBJDUMP_FOR_TARGET="$2"
12225 else
12226 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12228 else
12229 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12232 else
12233 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12239 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12240 if test -n "$with_build_time_tools"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12242 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12243 if test -x $with_build_time_tools/ranlib; then
12244 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12245 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12247 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12248 else
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; }
12252 elif test $build != $host && test $have_gcc_for_target = yes; then
12253 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12254 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12255 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12258 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12259 # Extract the first word of "ranlib", so it can be a program name with args.
12260 set dummy ranlib; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262 $as_echo_n "checking for $ac_word... " >&6; }
12263 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 case $RANLIB_FOR_TARGET in
12267 [\\/]* | ?:[\\/]*)
12268 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $gcc_cv_tool_dirs
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
12276 for ac_exec_ext in '' $ac_executable_extensions; do
12277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12278 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 break 2
12282 done
12283 done
12284 IFS=$as_save_IFS
12287 esac
12289 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12290 if test -n "$RANLIB_FOR_TARGET"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12292 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12300 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12303 if test -n "$RANLIB_FOR_TARGET"; then
12304 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12305 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12306 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12309 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12310 for ncn_progname in ranlib; do
12311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12312 set dummy ${ncn_progname}; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 if test -n "$RANLIB_FOR_TARGET"; then
12319 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12320 else
12321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12328 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330 break 2
12332 done
12333 done
12334 IFS=$as_save_IFS
12338 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12339 if test -n "$RANLIB_FOR_TARGET"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12341 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12342 else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12348 done
12351 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12352 for ncn_progname in ranlib; do
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12354 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12355 if test -x $with_build_time_tools/${ncn_progname}; then
12356 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358 $as_echo "yes" >&6; }
12359 break
12360 else
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 $as_echo "no" >&6; }
12364 done
12367 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12368 for ncn_progname in ranlib; do
12369 if test -n "$ncn_target_tool_prefix"; then
12370 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12371 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373 $as_echo_n "checking for $ac_word... " >&6; }
12374 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 if test -n "$RANLIB_FOR_TARGET"; then
12378 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12379 else
12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12383 IFS=$as_save_IFS
12384 test -z "$as_dir" && as_dir=.
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12387 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12389 break 2
12391 done
12392 done
12393 IFS=$as_save_IFS
12397 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12398 if test -n "$RANLIB_FOR_TARGET"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12400 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12401 else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12408 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12410 set dummy ${ncn_progname}; ac_word=$2
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412 $as_echo_n "checking for $ac_word... " >&6; }
12413 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 if test -n "$RANLIB_FOR_TARGET"; then
12417 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12418 else
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12426 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 break 2
12430 done
12431 done
12432 IFS=$as_save_IFS
12436 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12437 if test -n "$RANLIB_FOR_TARGET"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12439 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12447 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12448 done
12451 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12452 set dummy ranlib
12453 if test $build = $target ; then
12454 RANLIB_FOR_TARGET="$2"
12455 else
12456 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12458 else
12459 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12462 else
12463 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12469 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12470 if test -n "$with_build_time_tools"; then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12472 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12473 if test -x $with_build_time_tools/strip; then
12474 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12475 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12477 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12478 else
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 $as_echo "no" >&6; }
12482 elif test $build != $host && test $have_gcc_for_target = yes; then
12483 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12484 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12485 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12488 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12489 # Extract the first word of "strip", so it can be a program name with args.
12490 set dummy strip; ac_word=$2
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492 $as_echo_n "checking for $ac_word... " >&6; }
12493 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 case $STRIP_FOR_TARGET in
12497 [\\/]* | ?:[\\/]*)
12498 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502 for as_dir in $gcc_cv_tool_dirs
12504 IFS=$as_save_IFS
12505 test -z "$as_dir" && as_dir=.
12506 for ac_exec_ext in '' $ac_executable_extensions; do
12507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12508 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 break 2
12512 done
12513 done
12514 IFS=$as_save_IFS
12517 esac
12519 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12520 if test -n "$STRIP_FOR_TARGET"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12522 $as_echo "$STRIP_FOR_TARGET" >&6; }
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12530 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12533 if test -n "$STRIP_FOR_TARGET"; then
12534 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12535 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12536 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12539 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12540 for ncn_progname in strip; do
12541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12542 set dummy ${ncn_progname}; ac_word=$2
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544 $as_echo_n "checking for $ac_word... " >&6; }
12545 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 if test -n "$STRIP_FOR_TARGET"; then
12549 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12550 else
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 break 2
12562 done
12563 done
12564 IFS=$as_save_IFS
12568 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12569 if test -n "$STRIP_FOR_TARGET"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12571 $as_echo "$STRIP_FOR_TARGET" >&6; }
12572 else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 $as_echo "no" >&6; }
12578 done
12581 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12582 for ncn_progname in strip; do
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12584 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12585 if test -x $with_build_time_tools/${ncn_progname}; then
12586 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12588 $as_echo "yes" >&6; }
12589 break
12590 else
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 $as_echo "no" >&6; }
12594 done
12597 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12598 for ncn_progname in strip; do
12599 if test -n "$ncn_target_tool_prefix"; then
12600 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12601 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603 $as_echo_n "checking for $ac_word... " >&6; }
12604 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607 if test -n "$STRIP_FOR_TARGET"; then
12608 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12609 else
12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611 for as_dir in $PATH
12613 IFS=$as_save_IFS
12614 test -z "$as_dir" && as_dir=.
12615 for ac_exec_ext in '' $ac_executable_extensions; do
12616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12617 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619 break 2
12621 done
12622 done
12623 IFS=$as_save_IFS
12627 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12628 if test -n "$STRIP_FOR_TARGET"; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12630 $as_echo "$STRIP_FOR_TARGET" >&6; }
12631 else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633 $as_echo "no" >&6; }
12638 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12640 set dummy ${ncn_progname}; ac_word=$2
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12642 $as_echo_n "checking for $ac_word... " >&6; }
12643 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12644 $as_echo_n "(cached) " >&6
12645 else
12646 if test -n "$STRIP_FOR_TARGET"; then
12647 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12648 else
12649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650 for as_dir in $PATH
12652 IFS=$as_save_IFS
12653 test -z "$as_dir" && as_dir=.
12654 for ac_exec_ext in '' $ac_executable_extensions; do
12655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12656 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12658 break 2
12660 done
12661 done
12662 IFS=$as_save_IFS
12666 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12667 if test -n "$STRIP_FOR_TARGET"; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12669 $as_echo "$STRIP_FOR_TARGET" >&6; }
12670 else
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672 $as_echo "no" >&6; }
12677 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12678 done
12681 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12682 set dummy strip
12683 if test $build = $target ; then
12684 STRIP_FOR_TARGET="$2"
12685 else
12686 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12688 else
12689 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12692 else
12693 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12699 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12700 if test -n "$with_build_time_tools"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12702 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12703 if test -x $with_build_time_tools/windres; then
12704 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12705 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12707 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12708 else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12712 elif test $build != $host && test $have_gcc_for_target = yes; then
12713 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12714 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12715 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12718 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12719 # Extract the first word of "windres", so it can be a program name with args.
12720 set dummy windres; ac_word=$2
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722 $as_echo_n "checking for $ac_word... " >&6; }
12723 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12726 case $WINDRES_FOR_TARGET in
12727 [\\/]* | ?:[\\/]*)
12728 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732 for as_dir in $gcc_cv_tool_dirs
12734 IFS=$as_save_IFS
12735 test -z "$as_dir" && as_dir=.
12736 for ac_exec_ext in '' $ac_executable_extensions; do
12737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12738 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 break 2
12742 done
12743 done
12744 IFS=$as_save_IFS
12747 esac
12749 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12750 if test -n "$WINDRES_FOR_TARGET"; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12752 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12753 else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755 $as_echo "no" >&6; }
12760 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12763 if test -n "$WINDRES_FOR_TARGET"; then
12764 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12765 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12766 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12769 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12770 for ncn_progname in windres; do
12771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12772 set dummy ${ncn_progname}; ac_word=$2
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 $as_echo_n "checking for $ac_word... " >&6; }
12775 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 if test -n "$WINDRES_FOR_TARGET"; then
12779 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12780 else
12781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782 for as_dir in $PATH
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12788 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12792 done
12793 done
12794 IFS=$as_save_IFS
12798 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12799 if test -n "$WINDRES_FOR_TARGET"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12801 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12802 else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12808 done
12811 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12812 for ncn_progname in windres; do
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12814 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12815 if test -x $with_build_time_tools/${ncn_progname}; then
12816 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12818 $as_echo "yes" >&6; }
12819 break
12820 else
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12824 done
12827 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12828 for ncn_progname in windres; do
12829 if test -n "$ncn_target_tool_prefix"; then
12830 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12831 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12835 $as_echo_n "(cached) " >&6
12836 else
12837 if test -n "$WINDRES_FOR_TARGET"; then
12838 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12839 else
12840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 for as_dir in $PATH
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12847 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 break 2
12851 done
12852 done
12853 IFS=$as_save_IFS
12857 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12858 if test -n "$WINDRES_FOR_TARGET"; then
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12860 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12861 else
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863 $as_echo "no" >&6; }
12868 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12870 set dummy ${ncn_progname}; ac_word=$2
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872 $as_echo_n "checking for $ac_word... " >&6; }
12873 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 if test -n "$WINDRES_FOR_TARGET"; then
12877 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12878 else
12879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880 for as_dir in $PATH
12882 IFS=$as_save_IFS
12883 test -z "$as_dir" && as_dir=.
12884 for ac_exec_ext in '' $ac_executable_extensions; do
12885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12886 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12888 break 2
12890 done
12891 done
12892 IFS=$as_save_IFS
12896 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12897 if test -n "$WINDRES_FOR_TARGET"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12899 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12900 else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12907 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12908 done
12911 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12912 set dummy windres
12913 if test $build = $target ; then
12914 WINDRES_FOR_TARGET="$2"
12915 else
12916 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12918 else
12919 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12922 else
12923 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12929 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12930 if test -n "$with_build_time_tools"; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12932 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12933 if test -x $with_build_time_tools/windmc; then
12934 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12935 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12937 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12938 else
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940 $as_echo "no" >&6; }
12942 elif test $build != $host && test $have_gcc_for_target = yes; then
12943 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12944 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12945 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12948 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12949 # Extract the first word of "windmc", so it can be a program name with args.
12950 set dummy windmc; ac_word=$2
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952 $as_echo_n "checking for $ac_word... " >&6; }
12953 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12954 $as_echo_n "(cached) " >&6
12955 else
12956 case $WINDMC_FOR_TARGET in
12957 [\\/]* | ?:[\\/]*)
12958 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $gcc_cv_tool_dirs
12964 IFS=$as_save_IFS
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12968 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12970 break 2
12972 done
12973 done
12974 IFS=$as_save_IFS
12977 esac
12979 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12980 if test -n "$WINDMC_FOR_TARGET"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12982 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12990 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12993 if test -n "$WINDMC_FOR_TARGET"; then
12994 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12995 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12996 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12999 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13000 for ncn_progname in windmc; do
13001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13002 set dummy ${ncn_progname}; ac_word=$2
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004 $as_echo_n "checking for $ac_word... " >&6; }
13005 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13006 $as_echo_n "(cached) " >&6
13007 else
13008 if test -n "$WINDMC_FOR_TARGET"; then
13009 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13010 else
13011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012 for as_dir in $PATH
13014 IFS=$as_save_IFS
13015 test -z "$as_dir" && as_dir=.
13016 for ac_exec_ext in '' $ac_executable_extensions; do
13017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13018 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13020 break 2
13022 done
13023 done
13024 IFS=$as_save_IFS
13028 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13029 if test -n "$WINDMC_FOR_TARGET"; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13031 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13032 else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13038 done
13041 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13042 for ncn_progname in windmc; do
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13044 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13045 if test -x $with_build_time_tools/${ncn_progname}; then
13046 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13048 $as_echo "yes" >&6; }
13049 break
13050 else
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13054 done
13057 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13058 for ncn_progname in windmc; do
13059 if test -n "$ncn_target_tool_prefix"; then
13060 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13061 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13063 $as_echo_n "checking for $ac_word... " >&6; }
13064 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 if test -n "$WINDMC_FOR_TARGET"; then
13068 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13069 else
13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13077 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 break 2
13081 done
13082 done
13083 IFS=$as_save_IFS
13087 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13088 if test -n "$WINDMC_FOR_TARGET"; then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13090 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13091 else
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13098 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13100 set dummy ${ncn_progname}; ac_word=$2
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13102 $as_echo_n "checking for $ac_word... " >&6; }
13103 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13104 $as_echo_n "(cached) " >&6
13105 else
13106 if test -n "$WINDMC_FOR_TARGET"; then
13107 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13108 else
13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110 for as_dir in $PATH
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
13114 for ac_exec_ext in '' $ac_executable_extensions; do
13115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13116 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13118 break 2
13120 done
13121 done
13122 IFS=$as_save_IFS
13126 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13127 if test -n "$WINDMC_FOR_TARGET"; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13129 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13130 else
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132 $as_echo "no" >&6; }
13137 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13138 done
13141 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13142 set dummy windmc
13143 if test $build = $target ; then
13144 WINDMC_FOR_TARGET="$2"
13145 else
13146 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13148 else
13149 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13152 else
13153 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13157 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13160 $as_echo_n "checking where to find the target ar... " >&6; }
13161 if test "x${build}" != "x${host}" ; then
13162 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13163 # We already found the complete path
13164 ac_dir=`dirname $AR_FOR_TARGET`
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13166 $as_echo "pre-installed in $ac_dir" >&6; }
13167 else
13168 # Canadian cross, just use what we found
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13170 $as_echo "pre-installed" >&6; }
13172 else
13173 ok=yes
13174 case " ${configdirs} " in
13175 *" binutils "*) ;;
13176 *) ok=no ;;
13177 esac
13179 if test $ok = yes; then
13180 # An in-tree tool is available and we can use it
13181 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13183 $as_echo "just compiled" >&6; }
13184 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13185 # We already found the complete path
13186 ac_dir=`dirname $AR_FOR_TARGET`
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13188 $as_echo "pre-installed in $ac_dir" >&6; }
13189 elif test "x$target" = "x$host"; then
13190 # We can use an host tool
13191 AR_FOR_TARGET='$(AR)'
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13193 $as_echo "host tool" >&6; }
13194 else
13195 # We need a cross tool
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13197 $as_echo "pre-installed" >&6; }
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13202 $as_echo_n "checking where to find the target as... " >&6; }
13203 if test "x${build}" != "x${host}" ; then
13204 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13205 # We already found the complete path
13206 ac_dir=`dirname $AS_FOR_TARGET`
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13208 $as_echo "pre-installed in $ac_dir" >&6; }
13209 else
13210 # Canadian cross, just use what we found
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13212 $as_echo "pre-installed" >&6; }
13214 else
13215 ok=yes
13216 case " ${configdirs} " in
13217 *" gas "*) ;;
13218 *) ok=no ;;
13219 esac
13221 if test $ok = yes; then
13222 # An in-tree tool is available and we can use it
13223 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13225 $as_echo "just compiled" >&6; }
13226 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13227 # We already found the complete path
13228 ac_dir=`dirname $AS_FOR_TARGET`
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13230 $as_echo "pre-installed in $ac_dir" >&6; }
13231 elif test "x$target" = "x$host"; then
13232 # We can use an host tool
13233 AS_FOR_TARGET='$(AS)'
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13235 $as_echo "host tool" >&6; }
13236 else
13237 # We need a cross tool
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13239 $as_echo "pre-installed" >&6; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13244 $as_echo_n "checking where to find the target cc... " >&6; }
13245 if test "x${build}" != "x${host}" ; then
13246 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13247 # We already found the complete path
13248 ac_dir=`dirname $CC_FOR_TARGET`
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13250 $as_echo "pre-installed in $ac_dir" >&6; }
13251 else
13252 # Canadian cross, just use what we found
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13254 $as_echo "pre-installed" >&6; }
13256 else
13257 ok=yes
13258 case " ${configdirs} " in
13259 *" gcc "*) ;;
13260 *) ok=no ;;
13261 esac
13263 if test $ok = yes; then
13264 # An in-tree tool is available and we can use it
13265 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13267 $as_echo "just compiled" >&6; }
13268 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13269 # We already found the complete path
13270 ac_dir=`dirname $CC_FOR_TARGET`
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13272 $as_echo "pre-installed in $ac_dir" >&6; }
13273 elif test "x$target" = "x$host"; then
13274 # We can use an host tool
13275 CC_FOR_TARGET='$(CC)'
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13277 $as_echo "host tool" >&6; }
13278 else
13279 # We need a cross tool
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13281 $as_echo "pre-installed" >&6; }
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13286 $as_echo_n "checking where to find the target c++... " >&6; }
13287 if test "x${build}" != "x${host}" ; then
13288 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13289 # We already found the complete path
13290 ac_dir=`dirname $CXX_FOR_TARGET`
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13292 $as_echo "pre-installed in $ac_dir" >&6; }
13293 else
13294 # Canadian cross, just use what we found
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13296 $as_echo "pre-installed" >&6; }
13298 else
13299 ok=yes
13300 case " ${configdirs} " in
13301 *" gcc "*) ;;
13302 *) ok=no ;;
13303 esac
13304 case ,${enable_languages}, in
13305 *,c++,*) ;;
13306 *) ok=no ;;
13307 esac
13308 if test $ok = yes; then
13309 # An in-tree tool is available and we can use it
13310 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13312 $as_echo "just compiled" >&6; }
13313 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13314 # We already found the complete path
13315 ac_dir=`dirname $CXX_FOR_TARGET`
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13317 $as_echo "pre-installed in $ac_dir" >&6; }
13318 elif test "x$target" = "x$host"; then
13319 # We can use an host tool
13320 CXX_FOR_TARGET='$(CXX)'
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13322 $as_echo "host tool" >&6; }
13323 else
13324 # We need a cross tool
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13326 $as_echo "pre-installed" >&6; }
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13331 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13332 if test "x${build}" != "x${host}" ; then
13333 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13334 # We already found the complete path
13335 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13337 $as_echo "pre-installed in $ac_dir" >&6; }
13338 else
13339 # Canadian cross, just use what we found
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13341 $as_echo "pre-installed" >&6; }
13343 else
13344 ok=yes
13345 case " ${configdirs} " in
13346 *" gcc "*) ;;
13347 *) ok=no ;;
13348 esac
13349 case ,${enable_languages}, in
13350 *,c++,*) ;;
13351 *) ok=no ;;
13352 esac
13353 if test $ok = yes; then
13354 # An in-tree tool is available and we can use it
13355 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'
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13357 $as_echo "just compiled" >&6; }
13358 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13359 # We already found the complete path
13360 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13362 $as_echo "pre-installed in $ac_dir" >&6; }
13363 elif test "x$target" = "x$host"; then
13364 # We can use an host tool
13365 RAW_CXX_FOR_TARGET='$(CXX)'
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13367 $as_echo "host tool" >&6; }
13368 else
13369 # We need a cross tool
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13371 $as_echo "pre-installed" >&6; }
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13376 $as_echo_n "checking where to find the target dlltool... " >&6; }
13377 if test "x${build}" != "x${host}" ; then
13378 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13379 # We already found the complete path
13380 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13382 $as_echo "pre-installed in $ac_dir" >&6; }
13383 else
13384 # Canadian cross, just use what we found
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13386 $as_echo "pre-installed" >&6; }
13388 else
13389 ok=yes
13390 case " ${configdirs} " in
13391 *" binutils "*) ;;
13392 *) ok=no ;;
13393 esac
13395 if test $ok = yes; then
13396 # An in-tree tool is available and we can use it
13397 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13399 $as_echo "just compiled" >&6; }
13400 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13401 # We already found the complete path
13402 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13404 $as_echo "pre-installed in $ac_dir" >&6; }
13405 elif test "x$target" = "x$host"; then
13406 # We can use an host tool
13407 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13409 $as_echo "host tool" >&6; }
13410 else
13411 # We need a cross tool
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13413 $as_echo "pre-installed" >&6; }
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13418 $as_echo_n "checking where to find the target gcc... " >&6; }
13419 if test "x${build}" != "x${host}" ; then
13420 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13421 # We already found the complete path
13422 ac_dir=`dirname $GCC_FOR_TARGET`
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13424 $as_echo "pre-installed in $ac_dir" >&6; }
13425 else
13426 # Canadian cross, just use what we found
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13428 $as_echo "pre-installed" >&6; }
13430 else
13431 ok=yes
13432 case " ${configdirs} " in
13433 *" gcc "*) ;;
13434 *) ok=no ;;
13435 esac
13437 if test $ok = yes; then
13438 # An in-tree tool is available and we can use it
13439 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13441 $as_echo "just compiled" >&6; }
13442 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13443 # We already found the complete path
13444 ac_dir=`dirname $GCC_FOR_TARGET`
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13446 $as_echo "pre-installed in $ac_dir" >&6; }
13447 elif test "x$target" = "x$host"; then
13448 # We can use an host tool
13449 GCC_FOR_TARGET='$()'
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13451 $as_echo "host tool" >&6; }
13452 else
13453 # We need a cross tool
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13455 $as_echo "pre-installed" >&6; }
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13460 $as_echo_n "checking where to find the target gcj... " >&6; }
13461 if test "x${build}" != "x${host}" ; then
13462 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13463 # We already found the complete path
13464 ac_dir=`dirname $GCJ_FOR_TARGET`
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13466 $as_echo "pre-installed in $ac_dir" >&6; }
13467 else
13468 # Canadian cross, just use what we found
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13470 $as_echo "pre-installed" >&6; }
13472 else
13473 ok=yes
13474 case " ${configdirs} " in
13475 *" gcc "*) ;;
13476 *) ok=no ;;
13477 esac
13478 case ,${enable_languages}, in
13479 *,java,*) ;;
13480 *) ok=no ;;
13481 esac
13482 if test $ok = yes; then
13483 # An in-tree tool is available and we can use it
13484 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13486 $as_echo "just compiled" >&6; }
13487 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13488 # We already found the complete path
13489 ac_dir=`dirname $GCJ_FOR_TARGET`
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13491 $as_echo "pre-installed in $ac_dir" >&6; }
13492 elif test "x$target" = "x$host"; then
13493 # We can use an host tool
13494 GCJ_FOR_TARGET='$(GCJ)'
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13496 $as_echo "host tool" >&6; }
13497 else
13498 # We need a cross tool
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13500 $as_echo "pre-installed" >&6; }
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13505 $as_echo_n "checking where to find the target gfortran... " >&6; }
13506 if test "x${build}" != "x${host}" ; then
13507 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13508 # We already found the complete path
13509 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13511 $as_echo "pre-installed in $ac_dir" >&6; }
13512 else
13513 # Canadian cross, just use what we found
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13515 $as_echo "pre-installed" >&6; }
13517 else
13518 ok=yes
13519 case " ${configdirs} " in
13520 *" gcc "*) ;;
13521 *) ok=no ;;
13522 esac
13523 case ,${enable_languages}, in
13524 *,fortran,*) ;;
13525 *) ok=no ;;
13526 esac
13527 if test $ok = yes; then
13528 # An in-tree tool is available and we can use it
13529 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13531 $as_echo "just compiled" >&6; }
13532 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13533 # We already found the complete path
13534 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13536 $as_echo "pre-installed in $ac_dir" >&6; }
13537 elif test "x$target" = "x$host"; then
13538 # We can use an host tool
13539 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13541 $as_echo "host tool" >&6; }
13542 else
13543 # We need a cross tool
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13545 $as_echo "pre-installed" >&6; }
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13550 $as_echo_n "checking where to find the target gccgo... " >&6; }
13551 if test "x${build}" != "x${host}" ; then
13552 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13553 # We already found the complete path
13554 ac_dir=`dirname $GOC_FOR_TARGET`
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13556 $as_echo "pre-installed in $ac_dir" >&6; }
13557 else
13558 # Canadian cross, just use what we found
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13560 $as_echo "pre-installed" >&6; }
13562 else
13563 ok=yes
13564 case " ${configdirs} " in
13565 *" gcc "*) ;;
13566 *) ok=no ;;
13567 esac
13568 case ,${enable_languages}, in
13569 *,go,*) ;;
13570 *) ok=no ;;
13571 esac
13572 if test $ok = yes; then
13573 # An in-tree tool is available and we can use it
13574 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13576 $as_echo "just compiled" >&6; }
13577 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13578 # We already found the complete path
13579 ac_dir=`dirname $GOC_FOR_TARGET`
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13581 $as_echo "pre-installed in $ac_dir" >&6; }
13582 elif test "x$target" = "x$host"; then
13583 # We can use an host tool
13584 GOC_FOR_TARGET='$(GOC)'
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13586 $as_echo "host tool" >&6; }
13587 else
13588 # We need a cross tool
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13590 $as_echo "pre-installed" >&6; }
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13595 $as_echo_n "checking where to find the target ld... " >&6; }
13596 if test "x${build}" != "x${host}" ; then
13597 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13598 # We already found the complete path
13599 ac_dir=`dirname $LD_FOR_TARGET`
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13601 $as_echo "pre-installed in $ac_dir" >&6; }
13602 else
13603 # Canadian cross, just use what we found
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13605 $as_echo "pre-installed" >&6; }
13607 else
13608 ok=yes
13609 case " ${configdirs} " in
13610 *" ld "*) ;;
13611 *) ok=no ;;
13612 esac
13614 if test $ok = yes; then
13615 # An in-tree tool is available and we can use it
13616 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13618 $as_echo "just compiled" >&6; }
13619 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13620 # We already found the complete path
13621 ac_dir=`dirname $LD_FOR_TARGET`
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13623 $as_echo "pre-installed in $ac_dir" >&6; }
13624 elif test "x$target" = "x$host"; then
13625 # We can use an host tool
13626 LD_FOR_TARGET='$(LD)'
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13628 $as_echo "host tool" >&6; }
13629 else
13630 # We need a cross tool
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13632 $as_echo "pre-installed" >&6; }
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13637 $as_echo_n "checking where to find the target lipo... " >&6; }
13638 if test "x${build}" != "x${host}" ; then
13639 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13640 # We already found the complete path
13641 ac_dir=`dirname $LIPO_FOR_TARGET`
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13643 $as_echo "pre-installed in $ac_dir" >&6; }
13644 else
13645 # Canadian cross, just use what we found
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13647 $as_echo "pre-installed" >&6; }
13649 else
13650 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13651 # We already found the complete path
13652 ac_dir=`dirname $LIPO_FOR_TARGET`
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13654 $as_echo "pre-installed in $ac_dir" >&6; }
13655 elif test "x$target" = "x$host"; then
13656 # We can use an host tool
13657 LIPO_FOR_TARGET='$(LIPO)'
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13659 $as_echo "host tool" >&6; }
13660 else
13661 # We need a cross tool
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13663 $as_echo "pre-installed" >&6; }
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13668 $as_echo_n "checking where to find the target nm... " >&6; }
13669 if test "x${build}" != "x${host}" ; then
13670 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13671 # We already found the complete path
13672 ac_dir=`dirname $NM_FOR_TARGET`
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13674 $as_echo "pre-installed in $ac_dir" >&6; }
13675 else
13676 # Canadian cross, just use what we found
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13678 $as_echo "pre-installed" >&6; }
13680 else
13681 ok=yes
13682 case " ${configdirs} " in
13683 *" binutils "*) ;;
13684 *) ok=no ;;
13685 esac
13687 if test $ok = yes; then
13688 # An in-tree tool is available and we can use it
13689 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13691 $as_echo "just compiled" >&6; }
13692 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13693 # We already found the complete path
13694 ac_dir=`dirname $NM_FOR_TARGET`
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13696 $as_echo "pre-installed in $ac_dir" >&6; }
13697 elif test "x$target" = "x$host"; then
13698 # We can use an host tool
13699 NM_FOR_TARGET='$(NM)'
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13701 $as_echo "host tool" >&6; }
13702 else
13703 # We need a cross tool
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13705 $as_echo "pre-installed" >&6; }
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13710 $as_echo_n "checking where to find the target objdump... " >&6; }
13711 if test "x${build}" != "x${host}" ; then
13712 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13713 # We already found the complete path
13714 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13716 $as_echo "pre-installed in $ac_dir" >&6; }
13717 else
13718 # Canadian cross, just use what we found
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13720 $as_echo "pre-installed" >&6; }
13722 else
13723 ok=yes
13724 case " ${configdirs} " in
13725 *" binutils "*) ;;
13726 *) ok=no ;;
13727 esac
13729 if test $ok = yes; then
13730 # An in-tree tool is available and we can use it
13731 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13733 $as_echo "just compiled" >&6; }
13734 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13735 # We already found the complete path
13736 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13738 $as_echo "pre-installed in $ac_dir" >&6; }
13739 elif test "x$target" = "x$host"; then
13740 # We can use an host tool
13741 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13743 $as_echo "host tool" >&6; }
13744 else
13745 # We need a cross tool
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13747 $as_echo "pre-installed" >&6; }
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13752 $as_echo_n "checking where to find the target ranlib... " >&6; }
13753 if test "x${build}" != "x${host}" ; then
13754 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13755 # We already found the complete path
13756 ac_dir=`dirname $RANLIB_FOR_TARGET`
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13758 $as_echo "pre-installed in $ac_dir" >&6; }
13759 else
13760 # Canadian cross, just use what we found
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13762 $as_echo "pre-installed" >&6; }
13764 else
13765 ok=yes
13766 case " ${configdirs} " in
13767 *" binutils "*) ;;
13768 *) ok=no ;;
13769 esac
13771 if test $ok = yes; then
13772 # An in-tree tool is available and we can use it
13773 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13775 $as_echo "just compiled" >&6; }
13776 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13777 # We already found the complete path
13778 ac_dir=`dirname $RANLIB_FOR_TARGET`
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13780 $as_echo "pre-installed in $ac_dir" >&6; }
13781 elif test "x$target" = "x$host"; then
13782 # We can use an host tool
13783 RANLIB_FOR_TARGET='$(RANLIB)'
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13785 $as_echo "host tool" >&6; }
13786 else
13787 # We need a cross tool
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13789 $as_echo "pre-installed" >&6; }
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13794 $as_echo_n "checking where to find the target strip... " >&6; }
13795 if test "x${build}" != "x${host}" ; then
13796 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13797 # We already found the complete path
13798 ac_dir=`dirname $STRIP_FOR_TARGET`
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13800 $as_echo "pre-installed in $ac_dir" >&6; }
13801 else
13802 # Canadian cross, just use what we found
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13804 $as_echo "pre-installed" >&6; }
13806 else
13807 ok=yes
13808 case " ${configdirs} " in
13809 *" binutils "*) ;;
13810 *) ok=no ;;
13811 esac
13813 if test $ok = yes; then
13814 # An in-tree tool is available and we can use it
13815 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13817 $as_echo "just compiled" >&6; }
13818 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13819 # We already found the complete path
13820 ac_dir=`dirname $STRIP_FOR_TARGET`
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13822 $as_echo "pre-installed in $ac_dir" >&6; }
13823 elif test "x$target" = "x$host"; then
13824 # We can use an host tool
13825 STRIP_FOR_TARGET='$(STRIP)'
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13827 $as_echo "host tool" >&6; }
13828 else
13829 # We need a cross tool
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13831 $as_echo "pre-installed" >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13836 $as_echo_n "checking where to find the target windres... " >&6; }
13837 if test "x${build}" != "x${host}" ; then
13838 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13839 # We already found the complete path
13840 ac_dir=`dirname $WINDRES_FOR_TARGET`
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13842 $as_echo "pre-installed in $ac_dir" >&6; }
13843 else
13844 # Canadian cross, just use what we found
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13846 $as_echo "pre-installed" >&6; }
13848 else
13849 ok=yes
13850 case " ${configdirs} " in
13851 *" binutils "*) ;;
13852 *) ok=no ;;
13853 esac
13855 if test $ok = yes; then
13856 # An in-tree tool is available and we can use it
13857 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13859 $as_echo "just compiled" >&6; }
13860 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13861 # We already found the complete path
13862 ac_dir=`dirname $WINDRES_FOR_TARGET`
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13864 $as_echo "pre-installed in $ac_dir" >&6; }
13865 elif test "x$target" = "x$host"; then
13866 # We can use an host tool
13867 WINDRES_FOR_TARGET='$(WINDRES)'
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13869 $as_echo "host tool" >&6; }
13870 else
13871 # We need a cross tool
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13873 $as_echo "pre-installed" >&6; }
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13878 $as_echo_n "checking where to find the target windmc... " >&6; }
13879 if test "x${build}" != "x${host}" ; then
13880 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13881 # We already found the complete path
13882 ac_dir=`dirname $WINDMC_FOR_TARGET`
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13884 $as_echo "pre-installed in $ac_dir" >&6; }
13885 else
13886 # Canadian cross, just use what we found
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13888 $as_echo "pre-installed" >&6; }
13890 else
13891 ok=yes
13892 case " ${configdirs} " in
13893 *" binutils "*) ;;
13894 *) ok=no ;;
13895 esac
13897 if test $ok = yes; then
13898 # An in-tree tool is available and we can use it
13899 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13901 $as_echo "just compiled" >&6; }
13902 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13903 # We already found the complete path
13904 ac_dir=`dirname $WINDMC_FOR_TARGET`
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13906 $as_echo "pre-installed in $ac_dir" >&6; }
13907 elif test "x$target" = "x$host"; then
13908 # We can use an host tool
13909 WINDMC_FOR_TARGET='$(WINDMC)'
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13911 $as_echo "host tool" >&6; }
13912 else
13913 # We need a cross tool
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13915 $as_echo "pre-installed" >&6; }
13923 # Certain tools may need extra flags.
13924 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13925 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13926 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13928 # When building target libraries, except in a Canadian cross, we use
13929 # the same toolchain as the compiler we just built.
13930 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13931 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13932 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13933 if test $host = $build; then
13934 case " $configdirs " in
13935 *" gcc "*)
13936 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13937 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13938 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13940 esac
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13948 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13949 # Check whether --enable-maintainer-mode was given.
13950 if test "${enable_maintainer_mode+set}" = set; then :
13951 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13952 else
13953 USE_MAINTAINER_MODE=no
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13957 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13960 if test "$USE_MAINTAINER_MODE" = yes; then
13961 MAINTAINER_MODE_TRUE=
13962 MAINTAINER_MODE_FALSE='#'
13963 else
13964 MAINTAINER_MODE_TRUE='#'
13965 MAINTAINER_MODE_FALSE=
13967 MAINT=$MAINTAINER_MODE_TRUE
13969 # ---------------------
13970 # GCC bootstrap support
13971 # ---------------------
13973 # Stage specific cflags for build.
13974 stage1_cflags="-g"
13975 case $build in
13976 vax-*-*)
13977 case ${GCC} in
13978 yes) stage1_cflags="-g -Wa,-J" ;;
13979 *) stage1_cflags="-g -J" ;;
13980 esac ;;
13981 esac
13983 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13984 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13985 saved_CFLAGS="$CFLAGS"
13987 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13988 CFLAGS="$CFLAGS -fkeep-inline-functions"
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13990 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13994 #if (__GNUC__ < 3) \
13995 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13996 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13997 #error http://gcc.gnu.org/PR29382
13998 #endif
14001 main ()
14005 return 0;
14007 _ACEOF
14008 if ac_fn_c_try_compile "$LINENO"; then :
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14010 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14011 else
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013 $as_echo "no" >&6; }
14015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 CFLAGS="$saved_CFLAGS"
14022 # Enable --enable-checking in stage1 of the compiler.
14023 # Check whether --enable-stage1-checking was given.
14024 if test "${enable_stage1_checking+set}" = set; then :
14025 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14026 else
14027 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14028 stage1_checking=--enable-checking=yes,types
14029 else
14030 stage1_checking=--enable-checking=$enable_checking,types
14036 # Enable -Werror in bootstrap stage2 and later.
14037 # Check whether --enable-werror was given.
14038 if test "${enable_werror+set}" = set; then :
14039 enableval=$enable_werror;
14040 else
14041 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14042 enable_werror=yes
14043 else
14044 enable_werror=no
14048 case ${enable_werror} in
14049 yes) stage2_werror_flag="--enable-werror-always" ;;
14050 *) stage2_werror_flag="" ;;
14051 esac
14054 # Specify what files to not compare during bootstrap.
14056 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14057 case "$target" in
14058 hppa*64*-*-hpux*) ;;
14059 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14060 esac
14061 case " $configdirs " in
14062 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14063 esac
14066 ac_config_files="$ac_config_files Makefile"
14068 cat >confcache <<\_ACEOF
14069 # This file is a shell script that caches the results of configure
14070 # tests run on this system so they can be shared between configure
14071 # scripts and configure runs, see configure's option --config-cache.
14072 # It is not useful on other systems. If it contains results you don't
14073 # want to keep, you may remove or edit it.
14075 # config.status only pays attention to the cache file if you give it
14076 # the --recheck option to rerun configure.
14078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14080 # following values.
14082 _ACEOF
14084 # The following way of writing the cache mishandles newlines in values,
14085 # but we know of no workaround that is simple, portable, and efficient.
14086 # So, we kill variables containing newlines.
14087 # Ultrix sh set writes to stderr and can't be redirected directly,
14088 # and sets the high bit in the cache file unless we assign to the vars.
14090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14091 eval ac_val=\$$ac_var
14092 case $ac_val in #(
14093 *${as_nl}*)
14094 case $ac_var in #(
14095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14097 esac
14098 case $ac_var in #(
14099 _ | IFS | as_nl) ;; #(
14100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14101 *) { eval $ac_var=; unset $ac_var;} ;;
14102 esac ;;
14103 esac
14104 done
14106 (set) 2>&1 |
14107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14108 *${as_nl}ac_space=\ *)
14109 # `set' does not quote correctly, so add quotes: double-quote
14110 # substitution turns \\\\ into \\, and sed turns \\ into \.
14111 sed -n \
14112 "s/'/'\\\\''/g;
14113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14114 ;; #(
14116 # `set' quotes correctly as required by POSIX, so do not add quotes.
14117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14119 esac |
14120 sort
14122 sed '
14123 /^ac_cv_env_/b end
14124 t clear
14125 :clear
14126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14127 t end
14128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14129 :end' >>confcache
14130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14131 if test -w "$cache_file"; then
14132 test "x$cache_file" != "x/dev/null" &&
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14134 $as_echo "$as_me: updating cache $cache_file" >&6;}
14135 cat confcache >$cache_file
14136 else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14138 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14141 rm -f confcache
14143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14144 # Let make expand exec_prefix.
14145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14147 # Transform confdefs.h into DEFS.
14148 # Protect against shell expansion while executing Makefile rules.
14149 # Protect against Makefile macro expansion.
14151 # If the first sed substitution is executed (which looks for macros that
14152 # take arguments), then branch to the quote section. Otherwise,
14153 # look for a macro that doesn't take arguments.
14154 ac_script='
14155 :mline
14156 /\\$/{
14158 s,\\\n,,
14159 b mline
14161 t clear
14162 :clear
14163 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14164 t quote
14165 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14166 t quote
14167 b any
14168 :quote
14169 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14170 s/\[/\\&/g
14171 s/\]/\\&/g
14172 s/\$/$$/g
14174 :any
14177 s/^\n//
14178 s/\n/ /g
14182 DEFS=`sed -n "$ac_script" confdefs.h`
14185 ac_libobjs=
14186 ac_ltlibobjs=
14187 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14188 # 1. Remove the extension, and $U if already installed.
14189 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14190 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14191 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14192 # will be set to the directory where LIBOBJS objects are built.
14193 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14194 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14195 done
14196 LIBOBJS=$ac_libobjs
14198 LTLIBOBJS=$ac_ltlibobjs
14202 : ${CONFIG_STATUS=./config.status}
14203 ac_write_fail=0
14204 ac_clean_files_save=$ac_clean_files
14205 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14207 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14208 as_write_fail=0
14209 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14210 #! $SHELL
14211 # Generated by $as_me.
14212 # Run this file to recreate the current configuration.
14213 # Compiler output produced by configure, useful for debugging
14214 # configure, is in config.log if it exists.
14216 debug=false
14217 ac_cs_recheck=false
14218 ac_cs_silent=false
14220 SHELL=\${CONFIG_SHELL-$SHELL}
14221 export SHELL
14222 _ASEOF
14223 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14224 ## -------------------- ##
14225 ## M4sh Initialization. ##
14226 ## -------------------- ##
14228 # Be more Bourne compatible
14229 DUALCASE=1; export DUALCASE # for MKS sh
14230 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14231 emulate sh
14232 NULLCMD=:
14233 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14234 # is contrary to our usage. Disable this feature.
14235 alias -g '${1+"$@"}'='"$@"'
14236 setopt NO_GLOB_SUBST
14237 else
14238 case `(set -o) 2>/dev/null` in #(
14239 *posix*) :
14240 set -o posix ;; #(
14241 *) :
14243 esac
14247 as_nl='
14249 export as_nl
14250 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14251 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14252 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14253 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14254 # Prefer a ksh shell builtin over an external printf program on Solaris,
14255 # but without wasting forks for bash or zsh.
14256 if test -z "$BASH_VERSION$ZSH_VERSION" \
14257 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14258 as_echo='print -r --'
14259 as_echo_n='print -rn --'
14260 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14261 as_echo='printf %s\n'
14262 as_echo_n='printf %s'
14263 else
14264 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14265 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14266 as_echo_n='/usr/ucb/echo -n'
14267 else
14268 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14269 as_echo_n_body='eval
14270 arg=$1;
14271 case $arg in #(
14272 *"$as_nl"*)
14273 expr "X$arg" : "X\\(.*\\)$as_nl";
14274 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14275 esac;
14276 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14278 export as_echo_n_body
14279 as_echo_n='sh -c $as_echo_n_body as_echo'
14281 export as_echo_body
14282 as_echo='sh -c $as_echo_body as_echo'
14285 # The user is always right.
14286 if test "${PATH_SEPARATOR+set}" != set; then
14287 PATH_SEPARATOR=:
14288 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14289 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14290 PATH_SEPARATOR=';'
14295 # IFS
14296 # We need space, tab and new line, in precisely that order. Quoting is
14297 # there to prevent editors from complaining about space-tab.
14298 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14299 # splitting by setting IFS to empty value.)
14300 IFS=" "" $as_nl"
14302 # Find who we are. Look in the path if we contain no directory separator.
14303 case $0 in #((
14304 *[\\/]* ) as_myself=$0 ;;
14305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306 for as_dir in $PATH
14308 IFS=$as_save_IFS
14309 test -z "$as_dir" && as_dir=.
14310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14311 done
14312 IFS=$as_save_IFS
14315 esac
14316 # We did not find ourselves, most probably we were run as `sh COMMAND'
14317 # in which case we are not to be found in the path.
14318 if test "x$as_myself" = x; then
14319 as_myself=$0
14321 if test ! -f "$as_myself"; then
14322 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14323 exit 1
14326 # Unset variables that we do not need and which cause bugs (e.g. in
14327 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14328 # suppresses any "Segmentation fault" message there. '((' could
14329 # trigger a bug in pdksh 5.2.14.
14330 for as_var in BASH_ENV ENV MAIL MAILPATH
14331 do eval test x\${$as_var+set} = xset \
14332 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14333 done
14334 PS1='$ '
14335 PS2='> '
14336 PS4='+ '
14338 # NLS nuisances.
14339 LC_ALL=C
14340 export LC_ALL
14341 LANGUAGE=C
14342 export LANGUAGE
14344 # CDPATH.
14345 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14348 # as_fn_error ERROR [LINENO LOG_FD]
14349 # ---------------------------------
14350 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14351 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14352 # script with status $?, using 1 if that was 0.
14353 as_fn_error ()
14355 as_status=$?; test $as_status -eq 0 && as_status=1
14356 if test "$3"; then
14357 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14358 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14360 $as_echo "$as_me: error: $1" >&2
14361 as_fn_exit $as_status
14362 } # as_fn_error
14365 # as_fn_set_status STATUS
14366 # -----------------------
14367 # Set $? to STATUS, without forking.
14368 as_fn_set_status ()
14370 return $1
14371 } # as_fn_set_status
14373 # as_fn_exit STATUS
14374 # -----------------
14375 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14376 as_fn_exit ()
14378 set +e
14379 as_fn_set_status $1
14380 exit $1
14381 } # as_fn_exit
14383 # as_fn_unset VAR
14384 # ---------------
14385 # Portably unset VAR.
14386 as_fn_unset ()
14388 { eval $1=; unset $1;}
14390 as_unset=as_fn_unset
14391 # as_fn_append VAR VALUE
14392 # ----------------------
14393 # Append the text in VALUE to the end of the definition contained in VAR. Take
14394 # advantage of any shell optimizations that allow amortized linear growth over
14395 # repeated appends, instead of the typical quadratic growth present in naive
14396 # implementations.
14397 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14398 eval 'as_fn_append ()
14400 eval $1+=\$2
14402 else
14403 as_fn_append ()
14405 eval $1=\$$1\$2
14407 fi # as_fn_append
14409 # as_fn_arith ARG...
14410 # ------------------
14411 # Perform arithmetic evaluation on the ARGs, and store the result in the
14412 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14413 # must be portable across $(()) and expr.
14414 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14415 eval 'as_fn_arith ()
14417 as_val=$(( $* ))
14419 else
14420 as_fn_arith ()
14422 as_val=`expr "$@" || test $? -eq 1`
14424 fi # as_fn_arith
14427 if expr a : '\(a\)' >/dev/null 2>&1 &&
14428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14429 as_expr=expr
14430 else
14431 as_expr=false
14434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14435 as_basename=basename
14436 else
14437 as_basename=false
14440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14441 as_dirname=dirname
14442 else
14443 as_dirname=false
14446 as_me=`$as_basename -- "$0" ||
14447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14448 X"$0" : 'X\(//\)$' \| \
14449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14450 $as_echo X/"$0" |
14451 sed '/^.*\/\([^/][^/]*\)\/*$/{
14452 s//\1/
14455 /^X\/\(\/\/\)$/{
14456 s//\1/
14459 /^X\/\(\/\).*/{
14460 s//\1/
14463 s/.*/./; q'`
14465 # Avoid depending upon Character Ranges.
14466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14469 as_cr_digits='0123456789'
14470 as_cr_alnum=$as_cr_Letters$as_cr_digits
14472 ECHO_C= ECHO_N= ECHO_T=
14473 case `echo -n x` in #(((((
14474 -n*)
14475 case `echo 'xy\c'` in
14476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14477 xy) ECHO_C='\c';;
14478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14479 ECHO_T=' ';;
14480 esac;;
14482 ECHO_N='-n';;
14483 esac
14485 rm -f conf$$ conf$$.exe conf$$.file
14486 if test -d conf$$.dir; then
14487 rm -f conf$$.dir/conf$$.file
14488 else
14489 rm -f conf$$.dir
14490 mkdir conf$$.dir 2>/dev/null
14492 if (echo >conf$$.file) 2>/dev/null; then
14493 if ln -s conf$$.file conf$$ 2>/dev/null; then
14494 as_ln_s='ln -s'
14495 # ... but there are two gotchas:
14496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14498 # In both cases, we have to default to `cp -p'.
14499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14500 as_ln_s='cp -p'
14501 elif ln conf$$.file conf$$ 2>/dev/null; then
14502 as_ln_s=ln
14503 else
14504 as_ln_s='cp -p'
14506 else
14507 as_ln_s='cp -p'
14509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14510 rmdir conf$$.dir 2>/dev/null
14513 # as_fn_mkdir_p
14514 # -------------
14515 # Create "$as_dir" as a directory, including parents if necessary.
14516 as_fn_mkdir_p ()
14519 case $as_dir in #(
14520 -*) as_dir=./$as_dir;;
14521 esac
14522 test -d "$as_dir" || eval $as_mkdir_p || {
14523 as_dirs=
14524 while :; do
14525 case $as_dir in #(
14526 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14527 *) as_qdir=$as_dir;;
14528 esac
14529 as_dirs="'$as_qdir' $as_dirs"
14530 as_dir=`$as_dirname -- "$as_dir" ||
14531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14532 X"$as_dir" : 'X\(//\)[^/]' \| \
14533 X"$as_dir" : 'X\(//\)$' \| \
14534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14535 $as_echo X"$as_dir" |
14536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14537 s//\1/
14540 /^X\(\/\/\)[^/].*/{
14541 s//\1/
14544 /^X\(\/\/\)$/{
14545 s//\1/
14548 /^X\(\/\).*/{
14549 s//\1/
14552 s/.*/./; q'`
14553 test -d "$as_dir" && break
14554 done
14555 test -z "$as_dirs" || eval "mkdir $as_dirs"
14556 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14559 } # as_fn_mkdir_p
14560 if mkdir -p . 2>/dev/null; then
14561 as_mkdir_p='mkdir -p "$as_dir"'
14562 else
14563 test -d ./-p && rmdir ./-p
14564 as_mkdir_p=false
14567 if test -x / >/dev/null 2>&1; then
14568 as_test_x='test -x'
14569 else
14570 if ls -dL / >/dev/null 2>&1; then
14571 as_ls_L_option=L
14572 else
14573 as_ls_L_option=
14575 as_test_x='
14576 eval sh -c '\''
14577 if test -d "$1"; then
14578 test -d "$1/.";
14579 else
14580 case $1 in #(
14581 -*)set "./$1";;
14582 esac;
14583 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14584 ???[sx]*):;;*)false;;esac;fi
14585 '\'' sh
14588 as_executable_p=$as_test_x
14590 # Sed expression to map a string onto a valid CPP name.
14591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14593 # Sed expression to map a string onto a valid variable name.
14594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14597 exec 6>&1
14598 ## ----------------------------------- ##
14599 ## Main body of $CONFIG_STATUS script. ##
14600 ## ----------------------------------- ##
14601 _ASEOF
14602 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14605 # Save the log message, to keep $0 and so on meaningful, and to
14606 # report actual input values of CONFIG_FILES etc. instead of their
14607 # values after options handling.
14608 ac_log="
14609 This file was extended by $as_me, which was
14610 generated by GNU Autoconf 2.64. Invocation command line was
14612 CONFIG_FILES = $CONFIG_FILES
14613 CONFIG_HEADERS = $CONFIG_HEADERS
14614 CONFIG_LINKS = $CONFIG_LINKS
14615 CONFIG_COMMANDS = $CONFIG_COMMANDS
14616 $ $0 $@
14618 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14621 _ACEOF
14623 case $ac_config_files in *"
14624 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14625 esac
14629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14630 # Files that config.status was made for.
14631 config_files="$ac_config_files"
14633 _ACEOF
14635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14636 ac_cs_usage="\
14637 \`$as_me' instantiates files and other configuration actions
14638 from templates according to the current configuration. Unless the files
14639 and actions are specified as TAGs, all are instantiated by default.
14641 Usage: $0 [OPTION]... [TAG]...
14643 -h, --help print this help, then exit
14644 -V, --version print version number and configuration settings, then exit
14645 -q, --quiet, --silent
14646 do not print progress messages
14647 -d, --debug don't remove temporary files
14648 --recheck update $as_me by reconfiguring in the same conditions
14649 --file=FILE[:TEMPLATE]
14650 instantiate the configuration file FILE
14652 Configuration files:
14653 $config_files
14655 Report bugs to the package provider."
14657 _ACEOF
14658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14659 ac_cs_version="\\
14660 config.status
14661 configured by $0, generated by GNU Autoconf 2.64,
14662 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14664 Copyright (C) 2009 Free Software Foundation, Inc.
14665 This config.status script is free software; the Free Software Foundation
14666 gives unlimited permission to copy, distribute and modify it."
14668 ac_pwd='$ac_pwd'
14669 srcdir='$srcdir'
14670 INSTALL='$INSTALL'
14671 AWK='$AWK'
14672 test -n "\$AWK" || AWK=awk
14673 _ACEOF
14675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14676 # The default lists apply if the user does not specify any file.
14677 ac_need_defaults=:
14678 while test $# != 0
14680 case $1 in
14681 --*=*)
14682 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14683 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14684 ac_shift=:
14687 ac_option=$1
14688 ac_optarg=$2
14689 ac_shift=shift
14691 esac
14693 case $ac_option in
14694 # Handling of the options.
14695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14696 ac_cs_recheck=: ;;
14697 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14698 $as_echo "$ac_cs_version"; exit ;;
14699 --debug | --debu | --deb | --de | --d | -d )
14700 debug=: ;;
14701 --file | --fil | --fi | --f )
14702 $ac_shift
14703 case $ac_optarg in
14704 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14705 esac
14706 as_fn_append CONFIG_FILES " '$ac_optarg'"
14707 ac_need_defaults=false;;
14708 --he | --h | --help | --hel | -h )
14709 $as_echo "$ac_cs_usage"; exit ;;
14710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14711 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14712 ac_cs_silent=: ;;
14714 # This is an error.
14715 -*) as_fn_error "unrecognized option: \`$1'
14716 Try \`$0 --help' for more information." ;;
14718 *) as_fn_append ac_config_targets " $1"
14719 ac_need_defaults=false ;;
14721 esac
14722 shift
14723 done
14725 ac_configure_extra_args=
14727 if $ac_cs_silent; then
14728 exec 6>/dev/null
14729 ac_configure_extra_args="$ac_configure_extra_args --silent"
14732 _ACEOF
14733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14734 if \$ac_cs_recheck; then
14735 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14736 shift
14737 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14738 CONFIG_SHELL='$SHELL'
14739 export CONFIG_SHELL
14740 exec "\$@"
14743 _ACEOF
14744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14745 exec 5>>config.log
14747 echo
14748 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14749 ## Running $as_me. ##
14750 _ASBOX
14751 $as_echo "$ac_log"
14752 } >&5
14754 _ACEOF
14755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14757 # INIT-COMMANDS
14759 extrasub_build="$extrasub_build"
14760 extrasub_host="$extrasub_host"
14761 extrasub_target="$extrasub_target"
14763 _ACEOF
14765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14767 # Handling of arguments.
14768 for ac_config_target in $ac_config_targets
14770 case $ac_config_target in
14771 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14773 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14774 esac
14775 done
14778 # If the user did not use the arguments to specify the items to instantiate,
14779 # then the envvar interface is used. Set only those that are not.
14780 # We use the long form for the default assignment because of an extremely
14781 # bizarre bug on SunOS 4.1.3.
14782 if $ac_need_defaults; then
14783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14786 # Have a temporary directory for convenience. Make it in the build tree
14787 # simply because there is no reason against having it here, and in addition,
14788 # creating and moving files from /tmp can sometimes cause problems.
14789 # Hook for its removal unless debugging.
14790 # Note that there is a small window in which the directory will not be cleaned:
14791 # after its creation but before its name has been assigned to `$tmp'.
14792 $debug ||
14794 tmp=
14795 trap 'exit_status=$?
14796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14798 trap 'as_fn_exit 1' 1 2 13 15
14800 # Create a (secure) tmp directory for tmp files.
14803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14804 test -n "$tmp" && test -d "$tmp"
14805 } ||
14807 tmp=./conf$$-$RANDOM
14808 (umask 077 && mkdir "$tmp")
14809 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14811 # Set up the scripts for CONFIG_FILES section.
14812 # No need to generate them if there are no CONFIG_FILES.
14813 # This happens for instance with `./config.status config.h'.
14814 if test -n "$CONFIG_FILES"; then
14816 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14817 ac_cs_awk_getline=:
14818 ac_cs_awk_pipe_init=
14819 ac_cs_awk_read_file='
14820 while ((getline aline < (F[key])) > 0)
14821 print(aline)
14822 close(F[key])'
14823 ac_cs_awk_pipe_fini=
14824 else
14825 ac_cs_awk_getline=false
14826 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14827 ac_cs_awk_read_file='
14828 print "|#_!!_#|"
14829 print "cat " F[key] " &&"
14830 '$ac_cs_awk_pipe_init
14831 # The final `:' finishes the AND list.
14832 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14834 ac_cr=`echo X | tr X '\015'`
14835 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14836 # But we know of no other shell where ac_cr would be empty at this
14837 # point, so we can use a bashism as a fallback.
14838 if test "x$ac_cr" = x; then
14839 eval ac_cr=\$\'\\r\'
14841 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14842 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14843 ac_cs_awk_cr='\r'
14844 else
14845 ac_cs_awk_cr=$ac_cr
14848 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14849 _ACEOF
14851 # Create commands to substitute file output variables.
14853 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14854 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14855 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14856 echo "_ACAWK" &&
14857 echo "_ACEOF"
14858 } >conf$$files.sh &&
14859 . ./conf$$files.sh ||
14860 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14861 rm -f conf$$files.sh
14864 echo "cat >conf$$subs.awk <<_ACEOF" &&
14865 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14866 echo "_ACEOF"
14867 } >conf$$subs.sh ||
14868 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14869 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14870 ac_delim='%!_!# '
14871 for ac_last_try in false false false false false :; do
14872 . ./conf$$subs.sh ||
14873 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14875 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14876 if test $ac_delim_n = $ac_delim_num; then
14877 break
14878 elif $ac_last_try; then
14879 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14880 else
14881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14883 done
14884 rm -f conf$$subs.sh
14886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14887 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14888 _ACEOF
14889 sed -n '
14891 s/^/S["/; s/!.*/"]=/
14894 s/^[^!]*!//
14895 :repl
14896 t repl
14897 s/'"$ac_delim"'$//
14898 t delim
14901 s/\(.\{148\}\).*/\1/
14902 t more1
14903 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14906 b repl
14907 :more1
14908 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14911 s/.\{148\}//
14912 t nl
14913 :delim
14915 s/\(.\{148\}\).*/\1/
14916 t more2
14917 s/["\\]/\\&/g; s/^/"/; s/$/"/
14920 :more2
14921 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14924 s/.\{148\}//
14925 t delim
14926 ' <conf$$subs.awk | sed '
14927 /^[^""]/{
14929 s/\n//
14931 ' >>$CONFIG_STATUS || ac_write_fail=1
14932 rm -f conf$$subs.awk
14933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14934 _ACAWK
14935 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14936 for (key in S) S_is_set[key] = 1
14937 FS = "\a"
14938 \$ac_cs_awk_pipe_init
14941 line = $ 0
14942 nfields = split(line, field, "@")
14943 substed = 0
14944 len = length(field[1])
14945 for (i = 2; i < nfields; i++) {
14946 key = field[i]
14947 keylen = length(key)
14948 if (S_is_set[key]) {
14949 value = S[key]
14950 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14951 len += length(value) + length(field[++i])
14952 substed = 1
14953 } else
14954 len += 1 + keylen
14956 if (nfields == 3 && !substed) {
14957 key = field[2]
14958 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14959 \$ac_cs_awk_read_file
14960 next
14963 print line
14965 \$ac_cs_awk_pipe_fini
14966 _ACAWK
14967 _ACEOF
14968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14969 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14970 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14971 else
14973 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14974 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14975 _ACEOF
14977 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14978 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14979 # trailing colons and then remove the whole line if VPATH becomes empty
14980 # (actually we leave an empty line to preserve line numbers).
14981 if test "x$srcdir" = x.; then
14982 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14983 s/:*\$(srcdir):*/:/
14984 s/:*\${srcdir}:*/:/
14985 s/:*@srcdir@:*/:/
14986 s/^\([^=]*=[ ]*\):*/\1/
14987 s/:*$//
14988 s/^[^=]*=[ ]*$//
14992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14993 fi # test -n "$CONFIG_FILES"
14996 eval set X " :F $CONFIG_FILES "
14997 shift
14998 for ac_tag
15000 case $ac_tag in
15001 :[FHLC]) ac_mode=$ac_tag; continue;;
15002 esac
15003 case $ac_mode$ac_tag in
15004 :[FHL]*:*);;
15005 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15006 :[FH]-) ac_tag=-:-;;
15007 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15008 esac
15009 ac_save_IFS=$IFS
15010 IFS=:
15011 set x $ac_tag
15012 IFS=$ac_save_IFS
15013 shift
15014 ac_file=$1
15015 shift
15017 case $ac_mode in
15018 :L) ac_source=$1;;
15019 :[FH])
15020 ac_file_inputs=
15021 for ac_f
15023 case $ac_f in
15024 -) ac_f="$tmp/stdin";;
15025 *) # Look for the file first in the build tree, then in the source tree
15026 # (if the path is not absolute). The absolute path cannot be DOS-style,
15027 # because $ac_f cannot contain `:'.
15028 test -f "$ac_f" ||
15029 case $ac_f in
15030 [\\/$]*) false;;
15031 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15032 esac ||
15033 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15034 esac
15035 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15036 as_fn_append ac_file_inputs " '$ac_f'"
15037 done
15039 # Let's still pretend it is `configure' which instantiates (i.e., don't
15040 # use $as_me), people would be surprised to read:
15041 # /* config.h. Generated by config.status. */
15042 configure_input='Generated from '`
15043 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15044 `' by configure.'
15045 if test x"$ac_file" != x-; then
15046 configure_input="$ac_file. $configure_input"
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15048 $as_echo "$as_me: creating $ac_file" >&6;}
15050 # Neutralize special characters interpreted by sed in replacement strings.
15051 case $configure_input in #(
15052 *\&* | *\|* | *\\* )
15053 ac_sed_conf_input=`$as_echo "$configure_input" |
15054 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15055 *) ac_sed_conf_input=$configure_input;;
15056 esac
15058 case $ac_tag in
15059 *:-:* | *:-) cat >"$tmp/stdin" \
15060 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15061 esac
15063 esac
15065 ac_dir=`$as_dirname -- "$ac_file" ||
15066 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15067 X"$ac_file" : 'X\(//\)[^/]' \| \
15068 X"$ac_file" : 'X\(//\)$' \| \
15069 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15070 $as_echo X"$ac_file" |
15071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15072 s//\1/
15075 /^X\(\/\/\)[^/].*/{
15076 s//\1/
15079 /^X\(\/\/\)$/{
15080 s//\1/
15083 /^X\(\/\).*/{
15084 s//\1/
15087 s/.*/./; q'`
15088 as_dir="$ac_dir"; as_fn_mkdir_p
15089 ac_builddir=.
15091 case "$ac_dir" in
15092 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15094 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15095 # A ".." for each directory in $ac_dir_suffix.
15096 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15097 case $ac_top_builddir_sub in
15098 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15099 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15100 esac ;;
15101 esac
15102 ac_abs_top_builddir=$ac_pwd
15103 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15104 # for backward compatibility:
15105 ac_top_builddir=$ac_top_build_prefix
15107 case $srcdir in
15108 .) # We are building in place.
15109 ac_srcdir=.
15110 ac_top_srcdir=$ac_top_builddir_sub
15111 ac_abs_top_srcdir=$ac_pwd ;;
15112 [\\/]* | ?:[\\/]* ) # Absolute name.
15113 ac_srcdir=$srcdir$ac_dir_suffix;
15114 ac_top_srcdir=$srcdir
15115 ac_abs_top_srcdir=$srcdir ;;
15116 *) # Relative name.
15117 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15118 ac_top_srcdir=$ac_top_build_prefix$srcdir
15119 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15120 esac
15121 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15124 case $ac_mode in
15127 # CONFIG_FILE
15130 case $INSTALL in
15131 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15132 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15133 esac
15134 _ACEOF
15136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15137 # If the template does not know about datarootdir, expand it.
15138 # FIXME: This hack should be removed a few years after 2.60.
15139 ac_datarootdir_hack=; ac_datarootdir_seen=
15140 ac_sed_dataroot='
15141 /datarootdir/ {
15145 /@datadir@/p
15146 /@docdir@/p
15147 /@infodir@/p
15148 /@localedir@/p
15149 /@mandir@/p'
15150 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15151 *datarootdir*) ac_datarootdir_seen=yes;;
15152 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15154 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15155 _ACEOF
15156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15157 ac_datarootdir_hack='
15158 s&@datadir@&$datadir&g
15159 s&@docdir@&$docdir&g
15160 s&@infodir@&$infodir&g
15161 s&@localedir@&$localedir&g
15162 s&@mandir@&$mandir&g
15163 s&\\\${datarootdir}&$datarootdir&g' ;;
15164 esac
15165 _ACEOF
15167 # Neutralize VPATH when `$srcdir' = `.'.
15168 # Shell code in configure.ac might set extrasub.
15169 # FIXME: do we really want to maintain this feature?
15170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171 ac_sed_extra="$ac_vpsub
15172 $extrasub
15173 _ACEOF
15174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15177 s|@configure_input@|$ac_sed_conf_input|;t t
15178 s&@top_builddir@&$ac_top_builddir_sub&;t t
15179 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15180 s&@srcdir@&$ac_srcdir&;t t
15181 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15182 s&@top_srcdir@&$ac_top_srcdir&;t t
15183 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15184 s&@builddir@&$ac_builddir&;t t
15185 s&@abs_builddir@&$ac_abs_builddir&;t t
15186 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15187 s&@INSTALL@&$ac_INSTALL&;t t
15188 $ac_datarootdir_hack
15190 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15191 if $ac_cs_awk_getline; then
15192 $AWK -f "$tmp/subs.awk"
15193 else
15194 $AWK -f "$tmp/subs.awk" | $SHELL
15195 fi >$tmp/out \
15196 || as_fn_error "could not create $ac_file" "$LINENO" 5
15198 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15199 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15200 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15202 which seems to be undefined. Please make sure it is defined." >&5
15203 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15204 which seems to be undefined. Please make sure it is defined." >&2;}
15206 rm -f "$tmp/stdin"
15207 case $ac_file in
15208 -) cat "$tmp/out" && rm -f "$tmp/out";;
15209 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15210 esac \
15211 || as_fn_error "could not create $ac_file" "$LINENO" 5
15216 esac
15219 case $ac_file$ac_mode in
15220 "Makefile":F) sed "$extrasub_build" Makefile |
15221 sed "$extrasub_host" |
15222 sed "$extrasub_target" > mf$$
15223 mv -f mf$$ Makefile ;;
15225 esac
15226 done # for ac_tag
15229 as_fn_exit 0
15230 _ACEOF
15231 ac_clean_files=$ac_clean_files_save
15233 test $ac_write_fail = 0 ||
15234 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15237 # configure is writing to config.log, and then calls config.status.
15238 # config.status does its own redirection, appending to config.log.
15239 # Unfortunately, on DOS this fails, as config.log is still kept open
15240 # by configure, so config.status won't be able to write to it; its
15241 # output is simply discarded. So we exec the FD to /dev/null,
15242 # effectively closing config.log, so it can be properly (re)opened and
15243 # appended to by config.status. When coming back to configure, we
15244 # need to make the FD available again.
15245 if test "$no_create" != yes; then
15246 ac_cs_success=:
15247 ac_config_status_args=
15248 test "$silent" = yes &&
15249 ac_config_status_args="$ac_config_status_args --quiet"
15250 exec 5>/dev/null
15251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15252 exec 5>>config.log
15253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15254 # would make configure fail if this is the last instruction.
15255 $ac_cs_success || as_fn_exit $?
15257 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15259 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}