Merge trunk version 211672 into gupc branch.
[official-gcc.git] / configure
blobb0e387c90a1f470e69ce778d4bc43a2e9acb23e0
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 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GUPC_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
598 LIPO
600 DLLTOOL
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GUPC_FOR_BUILD
618 GOC_FOR_BUILD
619 GFORTRAN_FOR_BUILD
620 GCJ_FOR_BUILD
621 DLLTOOL_FOR_BUILD
622 CXX_FOR_BUILD
623 CXXFLAGS_FOR_BUILD
624 CFLAGS_FOR_BUILD
625 CC_FOR_BUILD
626 AS_FOR_BUILD
627 AR_FOR_BUILD
628 target_configdirs
629 configdirs
630 build_configdirs
631 INSTALL_GDB_TK
632 GDB_TK
633 CONFIGURE_GDB_TK
634 build_tooldir
635 tooldir
636 GCC_SHLIB_SUBDIR
637 RPATH_ENVVAR
638 target_configargs
639 host_configargs
640 build_configargs
641 BUILD_CONFIG
642 LDFLAGS_FOR_TARGET
643 CXXFLAGS_FOR_TARGET
644 CFLAGS_FOR_TARGET
645 DEBUG_PREFIX_CFLAGS_FOR_TARGET
646 SYSROOT_CFLAGS_FOR_TARGET
647 stage1_languages
648 extra_host_libiberty_configure_flags
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
651 clooginc
652 clooglibs
653 islinc
654 poststage1_ldflags
655 poststage1_libs
656 stage1_ldflags
657 stage1_libs
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
662 gmpinc
663 gmplibs
664 do_compare
665 GNATMAKE
666 GNATBIND
667 ac_ct_CXX
668 CXXFLAGS
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
677 EXTRA_CONFIGARGS_LIBJAVA
678 target_subdir
679 host_subdir
680 build_subdir
681 build_libsubdir
684 LN_S
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 target_noncanonical
698 host_noncanonical
699 build_noncanonical
700 build_os
701 build_vendor
702 build_cpu
703 build
704 TOPLEVEL_CONFIGURE_ARGUMENTS
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files='serialization_dependencies
744 host_makefile_frag
745 target_makefile_frag
746 alphaieee_frag
747 ospace_frag'
748 ac_user_opts='
749 enable_option_checking
750 with_build_libsubdir
751 enable_gold
752 enable_ld
753 enable_libquadmath
754 enable_libquadmath_support
755 enable_libada
756 enable_libssp
757 enable_libstdcxx
758 enable_static_libjava
759 enable_bootstrap
760 with_mpc
761 with_mpc_include
762 with_mpc_lib
763 with_mpfr_dir
764 with_mpfr
765 with_mpfr_include
766 with_mpfr_lib
767 with_gmp_dir
768 with_gmp
769 with_gmp_include
770 with_gmp_lib
771 with_host_libstdcxx
772 with_stage1_libs
773 with_stage1_ldflags
774 with_boot_libs
775 with_boot_ldflags
776 with_cloog
777 with_isl
778 with_isl_include
779 with_isl_lib
780 enable_isl_version_check
781 with_cloog_include
782 with_cloog_lib
783 enable_cloog_version_check
784 enable_lto
785 enable_linker_plugin_configure_flags
786 enable_linker_plugin_flags
787 enable_stage1_languages
788 enable_objc_gc
789 with_upc_pts
790 with_build_sysroot
791 with_debug_prefix_map
792 with_build_config
793 enable_vtable_verify
794 enable_serial_configure
795 enable_upc_link_script
796 with_build_time_tools
797 enable_maintainer_mode
798 enable_stage1_checking
799 enable_werror
800 enable_host_shared
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
811 CXXFLAGS
813 build_configargs
814 host_configargs
815 target_configargs
818 DLLTOOL
820 LIPO
822 RANLIB
823 STRIP
824 WINDRES
825 WINDMC
826 OBJCOPY
827 OBJDUMP
828 READELF
829 CC_FOR_TARGET
830 CXX_FOR_TARGET
831 GCC_FOR_TARGET
832 GCJ_FOR_TARGET
833 GFORTRAN_FOR_TARGET
834 GOC_FOR_TARGET
835 GUPC_FOR_TARGET
836 AR_FOR_TARGET
837 AS_FOR_TARGET
838 DLLTOOL_FOR_TARGET
839 LD_FOR_TARGET
840 LIPO_FOR_TARGET
841 NM_FOR_TARGET
842 OBJDUMP_FOR_TARGET
843 RANLIB_FOR_TARGET
844 READELF_FOR_TARGET
845 STRIP_FOR_TARGET
846 WINDRES_FOR_TARGET
847 WINDMC_FOR_TARGET'
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 ac_unrecognized_opts=
854 ac_unrecognized_sep=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
857 cache_file=/dev/null
858 exec_prefix=NONE
859 no_create=
860 no_recursion=
861 prefix=NONE
862 program_prefix=NONE
863 program_suffix=NONE
864 program_transform_name=s,x,x,
865 silent=
866 site=
867 srcdir=
868 verbose=
869 x_includes=NONE
870 x_libraries=NONE
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE}'
889 infodir='${datarootdir}/info'
890 htmldir='${docdir}'
891 dvidir='${docdir}'
892 pdfdir='${docdir}'
893 psdir='${docdir}'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
898 ac_prev=
899 ac_dashdash=
900 for ac_option
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
905 ac_prev=
906 continue
909 case $ac_option in
910 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 *) ac_optarg=yes ;;
912 esac
914 # Accept the important Cygnus configure options, so we can diagnose typos.
916 case $ac_dashdash$ac_option in
918 ac_dashdash=yes ;;
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
921 ac_prev=bindir ;;
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923 bindir=$ac_optarg ;;
925 -build | --build | --buil | --bui | --bu)
926 ac_prev=build_alias ;;
927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928 build_alias=$ac_optarg ;;
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935 cache_file=$ac_optarg ;;
937 --config-cache | -C)
938 cache_file=config.cache ;;
940 -datadir | --datadir | --datadi | --datad)
941 ac_prev=datadir ;;
942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
943 datadir=$ac_optarg ;;
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
952 -disable-* | --disable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=no ;;
968 -docdir | --docdir | --docdi | --doc | --do)
969 ac_prev=docdir ;;
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 docdir=$ac_optarg ;;
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974 ac_prev=dvidir ;;
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 dvidir=$ac_optarg ;;
978 -enable-* | --enable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
987 "enable_$ac_useropt"
988 "*) ;;
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
991 esac
992 eval enable_$ac_useropt=\$ac_optarg ;;
994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996 | --exec | --exe | --ex)
997 ac_prev=exec_prefix ;;
998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000 | --exec=* | --exe=* | --ex=*)
1001 exec_prefix=$ac_optarg ;;
1003 -gas | --gas | --ga | --g)
1004 # Obsolete; use --with-gas.
1005 with_gas=yes ;;
1007 -help | --help | --hel | --he | -h)
1008 ac_init_help=long ;;
1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010 ac_init_help=recursive ;;
1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012 ac_init_help=short ;;
1014 -host | --host | --hos | --ho)
1015 ac_prev=host_alias ;;
1016 -host=* | --host=* | --hos=* | --ho=*)
1017 host_alias=$ac_optarg ;;
1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020 ac_prev=htmldir ;;
1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022 | --ht=*)
1023 htmldir=$ac_optarg ;;
1025 -includedir | --includedir | --includedi | --included | --include \
1026 | --includ | --inclu | --incl | --inc)
1027 ac_prev=includedir ;;
1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029 | --includ=* | --inclu=* | --incl=* | --inc=*)
1030 includedir=$ac_optarg ;;
1032 -infodir | --infodir | --infodi | --infod | --info | --inf)
1033 ac_prev=infodir ;;
1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035 infodir=$ac_optarg ;;
1037 -libdir | --libdir | --libdi | --libd)
1038 ac_prev=libdir ;;
1039 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040 libdir=$ac_optarg ;;
1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043 | --libexe | --libex | --libe)
1044 ac_prev=libexecdir ;;
1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046 | --libexe=* | --libex=* | --libe=*)
1047 libexecdir=$ac_optarg ;;
1049 -localedir | --localedir | --localedi | --localed | --locale)
1050 ac_prev=localedir ;;
1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052 localedir=$ac_optarg ;;
1054 -localstatedir | --localstatedir | --localstatedi | --localstated \
1055 | --localstate | --localstat | --localsta | --localst | --locals)
1056 ac_prev=localstatedir ;;
1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059 localstatedir=$ac_optarg ;;
1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062 ac_prev=mandir ;;
1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064 mandir=$ac_optarg ;;
1066 -nfp | --nfp | --nf)
1067 # Obsolete; use --without-fp.
1068 with_fp=no ;;
1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071 | --no-cr | --no-c | -n)
1072 no_create=yes ;;
1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076 no_recursion=yes ;;
1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080 | --oldin | --oldi | --old | --ol | --o)
1081 ac_prev=oldincludedir ;;
1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085 oldincludedir=$ac_optarg ;;
1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088 ac_prev=prefix ;;
1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090 prefix=$ac_optarg ;;
1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093 | --program-pre | --program-pr | --program-p)
1094 ac_prev=program_prefix ;;
1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097 program_prefix=$ac_optarg ;;
1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100 | --program-suf | --program-su | --program-s)
1101 ac_prev=program_suffix ;;
1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104 program_suffix=$ac_optarg ;;
1106 -program-transform-name | --program-transform-name \
1107 | --program-transform-nam | --program-transform-na \
1108 | --program-transform-n | --program-transform- \
1109 | --program-transform | --program-transfor \
1110 | --program-transfo | --program-transf \
1111 | --program-trans | --program-tran \
1112 | --progr-tra | --program-tr | --program-t)
1113 ac_prev=program_transform_name ;;
1114 -program-transform-name=* | --program-transform-name=* \
1115 | --program-transform-nam=* | --program-transform-na=* \
1116 | --program-transform-n=* | --program-transform-=* \
1117 | --program-transform=* | --program-transfor=* \
1118 | --program-transfo=* | --program-transf=* \
1119 | --program-trans=* | --program-tran=* \
1120 | --progr-tra=* | --program-tr=* | --program-t=*)
1121 program_transform_name=$ac_optarg ;;
1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124 ac_prev=pdfdir ;;
1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126 pdfdir=$ac_optarg ;;
1128 -psdir | --psdir | --psdi | --psd | --ps)
1129 ac_prev=psdir ;;
1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131 psdir=$ac_optarg ;;
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1135 silent=yes ;;
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 ac_prev=sbindir ;;
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 | --sbi=* | --sb=*)
1141 sbindir=$ac_optarg ;;
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1146 | --sha | --sh)
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 | --sha=* | --sh=*)
1152 sharedstatedir=$ac_optarg ;;
1154 -site | --site | --sit)
1155 ac_prev=site ;;
1156 -site=* | --site=* | --sit=*)
1157 site=$ac_optarg ;;
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 ac_prev=srcdir ;;
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 verbose=yes ;;
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1182 -with-* | --with-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=\$ac_optarg ;;
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1232 -*) as_fn_error "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information."
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1242 esac
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1254 esac
1255 done
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error "missing argument to $ac_option"
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1264 no) ;;
1265 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 esac
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1278 case $ac_val in
1279 */ )
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1282 esac
1283 # Be sure to have absolute directory names.
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1289 done
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1305 cross_compiling=yes
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312 test "$silent" = yes && exec 6>/dev/null
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 as_fn_error "working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 as_fn_error "pwd does not report name of working directory"
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1341 /^X\(\/\/\)$/{
1342 s//\1/
1345 /^X\(\/\).*/{
1346 s//\1/
1349 s/.*/./; q'`
1350 srcdir=$ac_confdir
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 srcdir=..
1354 else
1355 ac_srcdir_defaulted=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 ac_abs_confdir=`(
1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1364 pwd)`
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 srcdir=.
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1372 case $srcdir in
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 esac
1375 case $srcdir in
1376 *" "*)
1377 as_fn_error "path to source, $srcdir, contains spaces"
1379 esac
1380 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures this package to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1451 cat <<\_ACEOF
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 --target=TARGET configure for building compilers for TARGET [HOST]
1462 _ACEOF
1465 if test -n "$ac_init_help"; then
1467 cat <<\_ACEOF
1469 Optional Features:
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1474 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1475 --disable-libquadmath do not build libquadmath directory
1476 --disable-libquadmath-support
1477 disable libquadmath support for Fortran
1478 --enable-libada build libada directory
1479 --enable-libssp build libssp directory
1480 --disable-libstdcxx do not build libstdc++-v3 directory
1481 --enable-static-libjava[=ARG]
1482 build static libjava [default=no]
1483 --enable-bootstrap enable bootstrapping [yes if native build]
1484 --disable-isl-version-check
1485 disable check for ISL version
1486 --disable-cloog-version-check
1487 disable check for CLooG version
1488 --enable-lto enable link time optimization support
1489 --enable-linker-plugin-configure-flags=FLAGS
1490 additional flags for configuring linker plugins
1491 [none]
1492 --enable-linker-plugin-flags=FLAGS
1493 additional flags for configuring and building linker
1494 plugins [none]
1495 --enable-stage1-languages[=all]
1496 choose additional languages to build during stage1.
1497 Mostly useful for compiler development
1498 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1499 Objective-C runtime
1500 --enable-vtable-verify Enable vtable verification feature
1501 --enable-serial-[{host,target,build}-]configure
1502 force sequential configuration of sub-packages for
1503 the host, target or build machine, or all
1504 sub-packages
1505 --enable-upc-link-script
1506 enable UPC's use of a custom linker script; this
1507 will define the UPC shared section as a no load
1508 section on targets where this feature is supported
1509 (requires GNU LD)
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
1516 --enable-werror enable -Werror in bootstrap stage2 and later
1517 --enable-host-shared build host code as shared libraries
1519 Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
1523 --with-mpc=PATH specify prefix directory for installed MPC package.
1524 Equivalent to --with-mpc-include=PATH/include plus
1525 --with-mpc-lib=PATH/lib
1526 --with-mpc-include=PATH specify directory for installed MPC include files
1527 --with-mpc-lib=PATH specify directory for the installed MPC library
1528 --with-mpfr-dir=PATH this option has been REMOVED
1529 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1530 Equivalent to --with-mpfr-include=PATH/include plus
1531 --with-mpfr-lib=PATH/lib
1532 --with-mpfr-include=PATH
1533 specify directory for installed MPFR include files
1534 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1535 --with-gmp-dir=PATH this option has been REMOVED
1536 --with-gmp=PATH specify prefix directory for the installed GMP
1537 package. Equivalent to
1538 --with-gmp-include=PATH/include plus
1539 --with-gmp-lib=PATH/lib
1540 --with-gmp-include=PATH specify directory for installed GMP include files
1541 --with-gmp-lib=PATH specify directory for the installed GMP library
1542 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1543 linking with PPL
1544 --with-stage1-libs=LIBS libraries for stage1
1545 --with-stage1-ldflags=FLAGS
1546 linker flags for stage1
1547 --with-boot-libs=LIBS libraries for stage2 and later
1548 --with-boot-ldflags=FLAGS
1549 linker flags for stage2 and later
1550 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1551 package. Equivalent to
1552 --with-cloog-include=PATH/include plus
1553 --with-cloog-lib=PATH/lib
1554 --with-isl=PATH Specify prefix directory for the installed ISL
1555 package. Equivalent to
1556 --with-isl-include=PATH/include plus
1557 --with-isl-lib=PATH/lib
1558 --with-isl-include=PATH Specify directory for installed ISL include files
1559 --with-isl-lib=PATH Specify the directory for the installed ISL library
1560 --with-cloog-include=PATH
1561 Specify directory for installed CLooG include files
1562 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1563 library
1564 --with-upc-pts={struct,packed}
1565 choose the default representation of a UPC
1566 pointer-to-shared
1567 --with-build-sysroot=SYSROOT
1568 use sysroot as the system root during the build
1569 --with-debug-prefix-map='A=B C=D ...'
1570 map A to B, C to D ... in debug information
1571 --with-build-config='NAME NAME2...'
1572 use config/NAME.mk build configuration
1573 --with-build-time-tools=PATH
1574 use given path to find target tools during the build
1576 Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1584 CXX C++ compiler command
1585 CXXFLAGS C++ compiler flags
1586 build_configargs
1587 additional configure arguments for build directories
1588 host_configargs
1589 additional configure arguments for host directories
1590 target_configargs
1591 additional configure arguments for target directories
1592 AR AR for the host
1593 AS AS for the host
1594 DLLTOOL DLLTOOL for the host
1595 LD LD for the host
1596 LIPO LIPO for the host
1597 NM NM for the host
1598 RANLIB RANLIB for the host
1599 STRIP STRIP for the host
1600 WINDRES WINDRES for the host
1601 WINDMC WINDMC for the host
1602 OBJCOPY OBJCOPY for the host
1603 OBJDUMP OBJDUMP for the host
1604 READELF READELF for the host
1605 CC_FOR_TARGET
1606 CC for the target
1607 CXX_FOR_TARGET
1608 CXX for the target
1609 GCC_FOR_TARGET
1610 GCC for the target
1611 GCJ_FOR_TARGET
1612 GCJ for the target
1613 GFORTRAN_FOR_TARGET
1614 GFORTRAN for the target
1615 GOC_FOR_TARGET
1616 GOC for the target
1617 GUPC_FOR_TARGET
1618 GUPC for the target
1619 AR_FOR_TARGET
1620 AR for the target
1621 AS_FOR_TARGET
1622 AS for the target
1623 DLLTOOL_FOR_TARGET
1624 DLLTOOL for the target
1625 LD_FOR_TARGET
1626 LD for the target
1627 LIPO_FOR_TARGET
1628 LIPO for the target
1629 NM_FOR_TARGET
1630 NM for the target
1631 OBJDUMP_FOR_TARGET
1632 OBJDUMP for the target
1633 RANLIB_FOR_TARGET
1634 RANLIB for the target
1635 READELF_FOR_TARGET
1636 READELF for the target
1637 STRIP_FOR_TARGET
1638 STRIP for the target
1639 WINDRES_FOR_TARGET
1640 WINDRES for the target
1641 WINDMC_FOR_TARGET
1642 WINDMC for the target
1644 Use these variables to override the choices made by `configure' or to help
1645 it to find libraries and programs with nonstandard names/locations.
1647 Report bugs to the package provider.
1648 _ACEOF
1649 ac_status=$?
1652 if test "$ac_init_help" = "recursive"; then
1653 # If there are subdirs, report their specific --help.
1654 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655 test -d "$ac_dir" ||
1656 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657 continue
1658 ac_builddir=.
1660 case "$ac_dir" in
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1664 # A ".." for each directory in $ac_dir_suffix.
1665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1666 case $ac_top_builddir_sub in
1667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 esac ;;
1670 esac
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1676 case $srcdir in
1677 .) # We are building in place.
1678 ac_srcdir=.
1679 ac_top_srcdir=$ac_top_builddir_sub
1680 ac_abs_top_srcdir=$ac_pwd ;;
1681 [\\/]* | ?:[\\/]* ) # Absolute name.
1682 ac_srcdir=$srcdir$ac_dir_suffix;
1683 ac_top_srcdir=$srcdir
1684 ac_abs_top_srcdir=$srcdir ;;
1685 *) # Relative name.
1686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687 ac_top_srcdir=$ac_top_build_prefix$srcdir
1688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 esac
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692 cd "$ac_dir" || { ac_status=$?; continue; }
1693 # Check for guested configure.
1694 if test -f "$ac_srcdir/configure.gnu"; then
1695 echo &&
1696 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697 elif test -f "$ac_srcdir/configure"; then
1698 echo &&
1699 $SHELL "$ac_srcdir/configure" --help=recursive
1700 else
1701 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 fi || ac_status=$?
1703 cd "$ac_pwd" || { ac_status=$?; break; }
1704 done
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1709 cat <<\_ACEOF
1710 configure
1711 generated by GNU Autoconf 2.64
1713 Copyright (C) 2009 Free Software Foundation, Inc.
1714 This configure script is free software; the Free Software Foundation
1715 gives unlimited permission to copy, distribute and modify it.
1716 _ACEOF
1717 exit
1720 ## ------------------------ ##
1721 ## Autoconf initialization. ##
1722 ## ------------------------ ##
1724 # ac_fn_c_try_compile LINENO
1725 # --------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_compile ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=1
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 return $ac_retval
1760 } # ac_fn_c_try_compile
1762 # ac_fn_cxx_try_compile LINENO
1763 # ----------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_cxx_try_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_cxx_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793 ac_retval=1
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 return $ac_retval
1798 } # ac_fn_cxx_try_compile
1800 # ac_fn_cxx_try_link LINENO
1801 # -------------------------
1802 # Try to link conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_link ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext conftest$ac_exeext
1807 if { { ac_try="$ac_link"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_link") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest$ac_exeext && {
1826 test "$cross_compiling" = yes ||
1827 $as_test_x conftest$ac_exeext
1828 }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1834 ac_retval=1
1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838 # interfere with the next link command; also delete a directory that is
1839 # left behind by Apple's compiler. We do this before executing the actions.
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 return $ac_retval
1844 } # ac_fn_cxx_try_link
1846 # ac_fn_c_try_link LINENO
1847 # -----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_c_try_link ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 $as_test_x conftest$ac_exeext
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=1
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888 return $ac_retval
1890 } # ac_fn_c_try_link
1892 # ac_fn_c_try_run LINENO
1893 # ----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1895 # that executables *can* be run.
1896 ac_fn_c_try_run ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>&5
1907 ac_status=$?
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1910 { { case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_try") 2>&5
1917 ac_status=$?
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; }; }; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: program exited with status $ac_status" >&5
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1926 ac_retval=$ac_status
1928 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930 return $ac_retval
1932 } # ac_fn_c_try_run
1933 cat >config.log <<_ACEOF
1934 This file contains any messages produced by compilers while
1935 running configure, to aid debugging if configure makes a mistake.
1937 It was created by $as_me, which was
1938 generated by GNU Autoconf 2.64. Invocation command line was
1940 $ $0 $@
1942 _ACEOF
1943 exec 5>>config.log
1945 cat <<_ASUNAME
1946 ## --------- ##
1947 ## Platform. ##
1948 ## --------- ##
1950 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1951 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1952 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1953 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1954 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1956 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1957 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1959 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1960 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1961 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1962 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1963 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1964 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1965 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1967 _ASUNAME
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 $as_echo "PATH: $as_dir"
1975 done
1976 IFS=$as_save_IFS
1978 } >&5
1980 cat >&5 <<_ACEOF
1983 ## ----------- ##
1984 ## Core tests. ##
1985 ## ----------- ##
1987 _ACEOF
1990 # Keep a trace of the command line.
1991 # Strip out --no-create and --no-recursion so they do not pile up.
1992 # Strip out --silent because we don't want to record it for future runs.
1993 # Also quote any args containing shell meta-characters.
1994 # Make two passes to allow for proper duplicate-argument suppression.
1995 ac_configure_args=
1996 ac_configure_args0=
1997 ac_configure_args1=
1998 ac_must_keep_next=false
1999 for ac_pass in 1 2
2001 for ac_arg
2003 case $ac_arg in
2004 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2006 | -silent | --silent | --silen | --sile | --sil)
2007 continue ;;
2008 *\'*)
2009 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2010 esac
2011 case $ac_pass in
2012 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2014 as_fn_append ac_configure_args1 " '$ac_arg'"
2015 if test $ac_must_keep_next = true; then
2016 ac_must_keep_next=false # Got value, back to normal.
2017 else
2018 case $ac_arg in
2019 *=* | --config-cache | -C | -disable-* | --disable-* \
2020 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2021 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2022 | -with-* | --with-* | -without-* | --without-* | --x)
2023 case "$ac_configure_args0 " in
2024 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2025 esac
2027 -* ) ac_must_keep_next=true ;;
2028 esac
2030 as_fn_append ac_configure_args " '$ac_arg'"
2032 esac
2033 done
2034 done
2035 { ac_configure_args0=; unset ac_configure_args0;}
2036 { ac_configure_args1=; unset ac_configure_args1;}
2038 # When interrupted or exit'd, cleanup temporary files, and complete
2039 # config.log. We remove comments because anyway the quotes in there
2040 # would cause problems or look ugly.
2041 # WARNING: Use '\'' to represent an apostrophe within the trap.
2042 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2043 trap 'exit_status=$?
2044 # Save into config.log some information that might help in debugging.
2046 echo
2048 cat <<\_ASBOX
2049 ## ---------------- ##
2050 ## Cache variables. ##
2051 ## ---------------- ##
2052 _ASBOX
2053 echo
2054 # The following way of writing the cache mishandles newlines in values,
2056 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2057 eval ac_val=\$$ac_var
2058 case $ac_val in #(
2059 *${as_nl}*)
2060 case $ac_var in #(
2061 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2062 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2063 esac
2064 case $ac_var in #(
2065 _ | IFS | as_nl) ;; #(
2066 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2067 *) { eval $ac_var=; unset $ac_var;} ;;
2068 esac ;;
2069 esac
2070 done
2071 (set) 2>&1 |
2072 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2073 *${as_nl}ac_space=\ *)
2074 sed -n \
2075 "s/'\''/'\''\\\\'\'''\''/g;
2076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2077 ;; #(
2079 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2081 esac |
2082 sort
2084 echo
2086 cat <<\_ASBOX
2087 ## ----------------- ##
2088 ## Output variables. ##
2089 ## ----------------- ##
2090 _ASBOX
2091 echo
2092 for ac_var in $ac_subst_vars
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2102 if test -n "$ac_subst_files"; then
2103 cat <<\_ASBOX
2104 ## ------------------- ##
2105 ## File substitutions. ##
2106 ## ------------------- ##
2107 _ASBOX
2108 echo
2109 for ac_var in $ac_subst_files
2111 eval ac_val=\$$ac_var
2112 case $ac_val in
2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114 esac
2115 $as_echo "$ac_var='\''$ac_val'\''"
2116 done | sort
2117 echo
2120 if test -s confdefs.h; then
2121 cat <<\_ASBOX
2122 ## ----------- ##
2123 ## confdefs.h. ##
2124 ## ----------- ##
2125 _ASBOX
2126 echo
2127 cat confdefs.h
2128 echo
2130 test "$ac_signal" != 0 &&
2131 $as_echo "$as_me: caught signal $ac_signal"
2132 $as_echo "$as_me: exit $exit_status"
2133 } >&5
2134 rm -f core *.core core.conftest.* &&
2135 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2136 exit $exit_status
2138 for ac_signal in 1 2 13 15; do
2139 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2140 done
2141 ac_signal=0
2143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2144 rm -f -r conftest* confdefs.h
2146 $as_echo "/* confdefs.h */" > confdefs.h
2148 # Predefined preprocessor variables.
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_NAME "$PACKAGE_NAME"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2156 _ACEOF
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2160 _ACEOF
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_STRING "$PACKAGE_STRING"
2164 _ACEOF
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2168 _ACEOF
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_URL "$PACKAGE_URL"
2172 _ACEOF
2175 # Let the site file select an alternate cache file if it wants to.
2176 # Prefer an explicitly selected file to automatically selected ones.
2177 ac_site_file1=NONE
2178 ac_site_file2=NONE
2179 if test -n "$CONFIG_SITE"; then
2180 ac_site_file1=$CONFIG_SITE
2181 elif test "x$prefix" != xNONE; then
2182 ac_site_file1=$prefix/share/config.site
2183 ac_site_file2=$prefix/etc/config.site
2184 else
2185 ac_site_file1=$ac_default_prefix/share/config.site
2186 ac_site_file2=$ac_default_prefix/etc/config.site
2188 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2190 test "x$ac_site_file" = xNONE && continue
2191 if test -r "$ac_site_file"; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2193 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2194 sed 's/^/| /' "$ac_site_file" >&5
2195 . "$ac_site_file"
2197 done
2199 if test -r "$cache_file"; then
2200 # Some versions of bash will fail to source /dev/null (special
2201 # files actually), so we avoid doing that.
2202 if test -f "$cache_file"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204 $as_echo "$as_me: loading cache $cache_file" >&6;}
2205 case $cache_file in
2206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2207 *) . "./$cache_file";;
2208 esac
2210 else
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212 $as_echo "$as_me: creating cache $cache_file" >&6;}
2213 >$cache_file
2216 # Check that the precious variables saved in the cache have kept the same
2217 # value.
2218 ac_cache_corrupted=false
2219 for ac_var in $ac_precious_vars; do
2220 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221 eval ac_new_set=\$ac_env_${ac_var}_set
2222 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223 eval ac_new_val=\$ac_env_${ac_var}_value
2224 case $ac_old_set,$ac_new_set in
2225 set,)
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2228 ac_cache_corrupted=: ;;
2229 ,set)
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2232 ac_cache_corrupted=: ;;
2233 ,);;
2235 if test "x$ac_old_val" != "x$ac_new_val"; then
2236 # differences in whitespace do not lead to failure.
2237 ac_old_val_w=`echo x $ac_old_val`
2238 ac_new_val_w=`echo x $ac_new_val`
2239 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242 ac_cache_corrupted=:
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246 eval $ac_var=\$ac_old_val
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2249 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2251 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2252 fi;;
2253 esac
2254 # Pass precious variables to config.status.
2255 if test "$ac_new_set" = set; then
2256 case $ac_new_val in
2257 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2258 *) ac_arg=$ac_var=$ac_new_val ;;
2259 esac
2260 case " $ac_configure_args " in
2261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2262 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2263 esac
2265 done
2266 if $ac_cache_corrupted; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2271 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2273 ## -------------------- ##
2274 ## Main body of script. ##
2275 ## -------------------- ##
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291 progname=$0
2292 # if PWD already has a value, it is probably wrong.
2293 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2295 # Export original configure arguments for use by sub-configures.
2296 # Quote arguments with shell meta charatcers.
2297 TOPLEVEL_CONFIGURE_ARGUMENTS=
2298 set -- "$progname" "$@"
2299 for ac_arg
2301 case "$ac_arg" in
2302 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2303 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2304 # if the argument is of the form -foo=baz, quote the baz part only
2305 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2306 *) ;;
2307 esac
2308 # Add the quoted argument to the list.
2309 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2310 done
2311 if test "$silent" = yes; then
2312 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2314 # Remove the initial space we just introduced and, as these will be
2315 # expanded by make, quote '$'.
2316 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2319 # Find the build, host, and target systems.
2320 ac_aux_dir=
2321 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2322 for ac_t in install-sh install.sh shtool; do
2323 if test -f "$ac_dir/$ac_t"; then
2324 ac_aux_dir=$ac_dir
2325 ac_install_sh="$ac_aux_dir/$ac_t -c"
2326 break 2
2328 done
2329 done
2330 if test -z "$ac_aux_dir"; then
2331 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2334 # These three variables are undocumented and unsupported,
2335 # and are intended to be withdrawn in a future Autoconf release.
2336 # They can cause serious problems if a builder's source tree is in a directory
2337 # whose full name contains unusual characters.
2338 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2339 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2340 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2343 # Make sure we can run config.sub.
2344 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2345 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2348 $as_echo_n "checking build system type... " >&6; }
2349 if test "${ac_cv_build+set}" = set; then :
2350 $as_echo_n "(cached) " >&6
2351 else
2352 ac_build_alias=$build_alias
2353 test "x$ac_build_alias" = x &&
2354 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2355 test "x$ac_build_alias" = x &&
2356 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2357 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2358 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2362 $as_echo "$ac_cv_build" >&6; }
2363 case $ac_cv_build in
2364 *-*-*) ;;
2365 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2366 esac
2367 build=$ac_cv_build
2368 ac_save_IFS=$IFS; IFS='-'
2369 set x $ac_cv_build
2370 shift
2371 build_cpu=$1
2372 build_vendor=$2
2373 shift; shift
2374 # Remember, the first character of IFS is used to create $*,
2375 # except with old shells:
2376 build_os=$*
2377 IFS=$ac_save_IFS
2378 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2381 case ${build_alias} in
2382 "") build_noncanonical=${build} ;;
2383 *) build_noncanonical=${build_alias} ;;
2384 esac
2388 case ${host_alias} in
2389 "") host_noncanonical=${build_noncanonical} ;;
2390 *) host_noncanonical=${host_alias} ;;
2391 esac
2395 case ${target_alias} in
2396 "") target_noncanonical=${host_noncanonical} ;;
2397 *) target_noncanonical=${target_alias} ;;
2398 esac
2403 test "$host_noncanonical" = "$target_noncanonical" &&
2404 test "$program_prefix$program_suffix$program_transform_name" = \
2405 NONENONEs,x,x, &&
2406 program_transform_name=s,y,y,
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2409 $as_echo_n "checking host system type... " >&6; }
2410 if test "${ac_cv_host+set}" = set; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 if test "x$host_alias" = x; then
2414 ac_cv_host=$ac_cv_build
2415 else
2416 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2417 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2422 $as_echo "$ac_cv_host" >&6; }
2423 case $ac_cv_host in
2424 *-*-*) ;;
2425 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2426 esac
2427 host=$ac_cv_host
2428 ac_save_IFS=$IFS; IFS='-'
2429 set x $ac_cv_host
2430 shift
2431 host_cpu=$1
2432 host_vendor=$2
2433 shift; shift
2434 # Remember, the first character of IFS is used to create $*,
2435 # except with old shells:
2436 host_os=$*
2437 IFS=$ac_save_IFS
2438 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2442 $as_echo_n "checking target system type... " >&6; }
2443 if test "${ac_cv_target+set}" = set; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 if test "x$target_alias" = x; then
2447 ac_cv_target=$ac_cv_host
2448 else
2449 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2450 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2455 $as_echo "$ac_cv_target" >&6; }
2456 case $ac_cv_target in
2457 *-*-*) ;;
2458 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2459 esac
2460 target=$ac_cv_target
2461 ac_save_IFS=$IFS; IFS='-'
2462 set x $ac_cv_target
2463 shift
2464 target_cpu=$1
2465 target_vendor=$2
2466 shift; shift
2467 # Remember, the first character of IFS is used to create $*,
2468 # except with old shells:
2469 target_os=$*
2470 IFS=$ac_save_IFS
2471 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2474 # The aliases save the names the user supplied, while $host etc.
2475 # will get canonicalized.
2476 test -n "$target_alias" &&
2477 test "$program_prefix$program_suffix$program_transform_name" = \
2478 NONENONEs,x,x, &&
2479 program_prefix=${target_alias}-
2481 test "$program_prefix" != NONE &&
2482 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2483 # Use a double $ so make ignores it.
2484 test "$program_suffix" != NONE &&
2485 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2486 # Double any \ or $.
2487 # By default was `s,x,x', remove it if useless.
2488 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2489 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2493 # Get 'install' or 'install-sh' and its variants.
2494 # Find a good install program. We prefer a C program (faster),
2495 # so one script is as good as another. But avoid the broken or
2496 # incompatible versions:
2497 # SysV /etc/install, /usr/sbin/install
2498 # SunOS /usr/etc/install
2499 # IRIX /sbin/install
2500 # AIX /bin/install
2501 # AmigaOS /C/install, which installs bootblocks on floppy discs
2502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2505 # OS/2's system install, which has a completely different semantic
2506 # ./install, which can be erroneously created by make from ./install.sh.
2507 # Reject install programs that cannot install multiple files.
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2509 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2510 if test -z "$INSTALL"; then
2511 if test "${ac_cv_path_install+set}" = set; then :
2512 $as_echo_n "(cached) " >&6
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 # Account for people who put trailing slashes in PATH elements.
2520 case $as_dir/ in #((
2521 ./ | .// | /[cC]/* | \
2522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2523 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2524 /usr/ucb/* ) ;;
2526 # OSF1 and SCO ODT 3.0 have their own names for install.
2527 # Don't use installbsd from OSF since it installs stuff as root
2528 # by default.
2529 for ac_prog in ginstall scoinst install; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2532 if test $ac_prog = install &&
2533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # AIX install. It has an incompatible calling convention.
2536 elif test $ac_prog = install &&
2537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # program-specific install script used by HP pwplus--don't use.
2540 else
2541 rm -rf conftest.one conftest.two conftest.dir
2542 echo one > conftest.one
2543 echo two > conftest.two
2544 mkdir conftest.dir
2545 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2546 test -s conftest.one && test -s conftest.two &&
2547 test -s conftest.dir/conftest.one &&
2548 test -s conftest.dir/conftest.two
2549 then
2550 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2551 break 3
2555 done
2556 done
2558 esac
2560 done
2561 IFS=$as_save_IFS
2563 rm -rf conftest.one conftest.two conftest.dir
2566 if test "${ac_cv_path_install+set}" = set; then
2567 INSTALL=$ac_cv_path_install
2568 else
2569 # As a last resort, use the slow shell script. Don't cache a
2570 # value for INSTALL within a source directory, because that will
2571 # break other packages using the cache if that directory is
2572 # removed, or if the value is a relative name.
2573 INSTALL=$ac_install_sh
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2577 $as_echo "$INSTALL" >&6; }
2579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2580 # It thinks the first close brace ends the variable substitution.
2581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2588 $as_echo_n "checking whether ln works... " >&6; }
2589 if test "${acx_cv_prog_LN+set}" = set; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 rm -f conftestdata_t
2593 echo >conftestdata_f
2594 if ln conftestdata_f conftestdata_t 2>/dev/null
2595 then
2596 acx_cv_prog_LN=ln
2597 else
2598 acx_cv_prog_LN=no
2600 rm -f conftestdata_f conftestdata_t
2603 if test $acx_cv_prog_LN = no; then
2604 LN="cp"
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2606 $as_echo "no, using $LN" >&6; }
2607 else
2608 LN="$acx_cv_prog_LN"
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2610 $as_echo "yes" >&6; }
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2614 $as_echo_n "checking whether ln -s works... " >&6; }
2615 LN_S=$as_ln_s
2616 if test "$LN_S" = "ln -s"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2618 $as_echo "yes" >&6; }
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2621 $as_echo "no, using $LN_S" >&6; }
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2625 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2626 if test "${ac_cv_path_SED+set}" = set; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2630 for ac_i in 1 2 3 4 5 6 7; do
2631 ac_script="$ac_script$as_nl$ac_script"
2632 done
2633 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2634 { ac_script=; unset ac_script;}
2635 if test -z "$SED"; then
2636 ac_path_SED_found=false
2637 # Loop through the user's path and test for each of PROGNAME-LIST
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_prog in sed gsed; do
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2646 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2647 # Check for GNU ac_path_SED and select it if it is found.
2648 # Check for GNU $ac_path_SED
2649 case `"$ac_path_SED" --version 2>&1` in
2650 *GNU*)
2651 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2653 ac_count=0
2654 $as_echo_n 0123456789 >"conftest.in"
2655 while :
2657 cat "conftest.in" "conftest.in" >"conftest.tmp"
2658 mv "conftest.tmp" "conftest.in"
2659 cp "conftest.in" "conftest.nl"
2660 $as_echo '' >> "conftest.nl"
2661 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2663 as_fn_arith $ac_count + 1 && ac_count=$as_val
2664 if test $ac_count -gt ${ac_path_SED_max-0}; then
2665 # Best one so far, save it but keep looking for a better one
2666 ac_cv_path_SED="$ac_path_SED"
2667 ac_path_SED_max=$ac_count
2669 # 10*(2^10) chars as input seems more than enough
2670 test $ac_count -gt 10 && break
2671 done
2672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2673 esac
2675 $ac_path_SED_found && break 3
2676 done
2677 done
2678 done
2679 IFS=$as_save_IFS
2680 if test -z "$ac_cv_path_SED"; then
2681 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2683 else
2684 ac_cv_path_SED=$SED
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2689 $as_echo "$ac_cv_path_SED" >&6; }
2690 SED="$ac_cv_path_SED"
2691 rm -f conftest.sed
2693 for ac_prog in gawk mawk nawk awk
2695 # Extract the first word of "$ac_prog", so it can be a program name with args.
2696 set dummy $ac_prog; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_AWK+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test -n "$AWK"; then
2703 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_AWK="$ac_prog"
2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2716 done
2717 done
2718 IFS=$as_save_IFS
2722 AWK=$ac_cv_prog_AWK
2723 if test -n "$AWK"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2725 $as_echo "$AWK" >&6; }
2726 else
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2732 test -n "$AWK" && break
2733 done
2736 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2738 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2739 # a relative path.
2740 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2741 INSTALL="${srcpwd}/install-sh -c"
2744 # Set srcdir to "." if that's what it is.
2745 # This is important for multilib support.
2746 pwd=`${PWDCMD-pwd}`
2747 if test "${pwd}" = "${srcpwd}" ; then
2748 srcdir=.
2751 topsrcdir=$srcpwd
2753 extra_host_args=
2755 ### To add a new directory to the tree, first choose whether it is a target
2756 ### or a host dependent tool. Then put it into the appropriate list
2757 ### (library or tools, host or target), doing a dependency sort.
2759 # Subdirs will be configured in the order listed in build_configdirs,
2760 # configdirs, or target_configdirs; see the serialization section below.
2762 # Dependency sorting is only needed when *configuration* must be done in
2763 # a particular order. In all cases a dependency should be specified in
2764 # the Makefile, whether or not it's implicitly specified here.
2766 # Double entries in build_configdirs, configdirs, or target_configdirs may
2767 # cause circular dependencies and break everything horribly.
2769 # these library is used by various programs built for the build
2770 # environment
2772 build_libs="build-libiberty"
2774 # these tools are built for the build environment
2775 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2777 # these libraries are used by various programs built for the host environment
2779 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2781 # these tools are built for the host environment
2782 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2783 # know that we are building the simulator.
2784 # binutils, gas and ld appear in that order because it makes sense to run
2785 # "make check" in that particular order.
2786 # If --enable-gold is used, "gold" may replace "ld".
2787 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2789 # libgcj represents the runtime libraries only used by gcj.
2790 libgcj="target-libffi \
2791 target-zlib \
2792 target-libjava"
2794 # these libraries are built for the target environment, and are built after
2795 # the host libraries and the host tools (which may be a cross compiler)
2796 # Note that libiberty is not a target library.
2797 target_libraries="target-libgcc \
2798 target-libbacktrace \
2799 target-libgloss \
2800 target-newlib \
2801 target-libgomp \
2802 target-libcilkrts \
2803 target-libatomic \
2804 target-libitm \
2805 target-libstdc++-v3 \
2806 target-libsanitizer \
2807 target-libvtv \
2808 target-libssp \
2809 target-libquadmath \
2810 target-libgfortran \
2811 target-boehm-gc \
2812 ${libgcj} \
2813 target-libobjc \
2814 target-libgupc \
2815 target-libada \
2816 target-libgo"
2818 # these tools are built using the target libraries, and are intended to
2819 # run only in the target environment
2821 # note: any program that *uses* libraries that are in the "target_libraries"
2822 # list belongs in this list.
2824 target_tools="target-rda"
2826 ################################################################################
2828 ## All tools belong in one of the four categories, and are assigned above
2829 ## We assign ${configdirs} this way to remove all embedded newlines. This
2830 ## is important because configure will choke if they ever get through.
2831 ## ${configdirs} is directories we build using the host tools.
2832 ## ${target_configdirs} is directories we build using the target tools.
2833 configdirs=`echo ${host_libs} ${host_tools}`
2834 target_configdirs=`echo ${target_libraries} ${target_tools}`
2835 build_configdirs=`echo ${build_libs} ${build_tools}`
2839 ################################################################################
2841 srcname="gnu development package"
2843 # This gets set non-empty for some net releases of packages.
2844 appdirs=""
2846 # Define is_cross_compiler to save on calls to 'test'.
2847 is_cross_compiler=
2848 if test x"${host}" = x"${target}" ; then
2849 is_cross_compiler=no
2850 else
2851 is_cross_compiler=yes
2854 # Find the build and target subdir names.
2856 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2857 # have matching libraries, they should use host libraries: Makefile.tpl
2858 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2859 # However, they still use the build modules, because the corresponding
2860 # host modules (e.g. bison) are only built for the host when bootstrap
2861 # finishes. So:
2862 # - build_subdir is where we find build modules, and never changes.
2863 # - build_libsubdir is where we find build libraries, and can be overridden.
2865 # Prefix 'build-' so this never conflicts with target_subdir.
2866 build_subdir="build-${build_noncanonical}"
2868 # Check whether --with-build-libsubdir was given.
2869 if test "${with_build_libsubdir+set}" = set; then :
2870 withval=$with_build_libsubdir; build_libsubdir="$withval"
2871 else
2872 build_libsubdir="$build_subdir"
2875 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2876 if ( test $srcdir = . && test -d gcc ) \
2877 || test -d $srcdir/../host-${host_noncanonical}; then
2878 host_subdir="host-${host_noncanonical}"
2879 else
2880 host_subdir=.
2882 # No prefix.
2883 target_subdir=${target_noncanonical}
2885 # Be sure to cover against remnants of an in-tree build.
2886 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2887 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2888 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2891 # Skipdirs are removed silently.
2892 skipdirs=
2893 # Noconfigdirs are removed loudly.
2894 noconfigdirs=""
2896 use_gnu_ld=
2897 # Make sure we don't let GNU ld be added if we didn't want it.
2898 if test x$with_gnu_ld = xno ; then
2899 use_gnu_ld=no
2900 noconfigdirs="$noconfigdirs ld gold"
2903 use_gnu_as=
2904 # Make sure we don't let GNU as be added if we didn't want it.
2905 if test x$with_gnu_as = xno ; then
2906 use_gnu_as=no
2907 noconfigdirs="$noconfigdirs gas"
2910 use_included_zlib=
2911 # Make sure we don't let ZLIB be added if we didn't want it.
2912 if test x$with_system_zlib = xyes ; then
2913 use_included_zlib=no
2914 noconfigdirs="$noconfigdirs zlib"
2917 # some tools are so dependent upon X11 that if we're not building with X,
2918 # it's not even worth trying to configure, much less build, that tool.
2920 case ${with_x} in
2921 yes | "") ;; # the default value for this tree is that X11 is available
2923 skipdirs="${skipdirs} tk itcl libgui"
2924 # We won't be able to build gdbtk without X.
2925 enable_gdbtk=no
2927 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2928 esac
2930 # Some are only suitable for cross toolchains.
2931 # Remove these if host=target.
2932 cross_only="target-libgloss target-newlib target-opcodes"
2934 case $is_cross_compiler in
2935 no) skipdirs="${skipdirs} ${cross_only}" ;;
2936 esac
2938 # If both --with-headers and --with-libs are specified, default to
2939 # --without-newlib.
2940 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2941 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2942 if test x"${with_newlib}" = x ; then
2943 with_newlib=no
2947 # Recognize --with-newlib/--without-newlib.
2948 case ${with_newlib} in
2949 no) skipdirs="${skipdirs} target-newlib" ;;
2950 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2951 esac
2953 # Handle --enable-gold, --enable-ld.
2954 # --disable-gold [--enable-ld]
2955 # Build only ld. Default option.
2956 # --enable-gold [--enable-ld]
2957 # Build both gold and ld. Install gold as "ld.gold", install ld
2958 # as "ld.bfd" and "ld".
2959 # --enable-gold=default [--enable-ld]
2960 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2961 # install ld as "ld.bfd".
2962 # --enable-gold[=default] --disable-ld
2963 # Build only gold, which is then installed as both "ld.gold" and "ld".
2964 # --enable-gold --enable-ld=default
2965 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2966 # and ld.bfd).
2967 # In other words, ld is default
2968 # --enable-gold=default --enable-ld=default
2969 # Error.
2971 default_ld=
2972 # Check whether --enable-gold was given.
2973 if test "${enable_gold+set}" = set; then :
2974 enableval=$enable_gold; ENABLE_GOLD=$enableval
2975 else
2976 ENABLE_GOLD=no
2979 case "${ENABLE_GOLD}" in
2980 yes|default)
2981 # Check for ELF target.
2982 is_elf=no
2983 case "${target}" in
2984 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2985 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2986 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2987 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2988 case "${target}" in
2989 *-*-linux*aout* | *-*-linux*oldld*)
2992 is_elf=yes
2994 esac
2995 esac
2997 if test "$is_elf" = "yes"; then
2998 # Check for target supported by gold.
2999 case "${target}" in
3000 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
3001 configdirs="$configdirs gold"
3002 if test x${ENABLE_GOLD} = xdefault; then
3003 default_ld=gold
3005 ENABLE_GOLD=yes
3007 esac
3013 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3015 esac
3017 # Check whether --enable-ld was given.
3018 if test "${enable_ld+set}" = set; then :
3019 enableval=$enable_ld; ENABLE_LD=$enableval
3020 else
3021 ENABLE_LD=yes
3025 case "${ENABLE_LD}" in
3026 default)
3027 if test x${default_ld} != x; then
3028 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3031 yes)
3034 if test x${ENABLE_GOLD} != xyes; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3036 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3038 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3041 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3043 esac
3045 # Configure extra directories which are host specific
3047 case "${host}" in
3048 *-cygwin*)
3049 configdirs="$configdirs libtermcap" ;;
3050 esac
3052 # A target can indicate whether a language isn't supported for some reason.
3053 # Only spaces may be used in this macro; not newlines or tabs.
3054 unsupported_languages=
3056 # Remove more programs from consideration, based on the host or
3057 # target this usually means that a port of the program doesn't
3058 # exist yet.
3060 case "${host}" in
3061 i[3456789]86-*-msdosdjgpp*)
3062 noconfigdirs="$noconfigdirs tcl tk itcl"
3064 esac
3067 # Check whether --enable-libquadmath was given.
3068 if test "${enable_libquadmath+set}" = set; then :
3069 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3070 else
3071 ENABLE_LIBQUADMATH=yes
3074 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3075 noconfigdirs="$noconfigdirs target-libquadmath"
3079 # Check whether --enable-libquadmath-support was given.
3080 if test "${enable_libquadmath_support+set}" = set; then :
3081 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3082 else
3083 ENABLE_LIBQUADMATH_SUPPORT=yes
3086 enable_libquadmath_support=
3087 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3088 enable_libquadmath_support=no
3092 # Check whether --enable-libada was given.
3093 if test "${enable_libada+set}" = set; then :
3094 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3095 else
3096 ENABLE_LIBADA=yes
3099 if test "${ENABLE_LIBADA}" != "yes" ; then
3100 noconfigdirs="$noconfigdirs gnattools"
3103 # Check whether --enable-libssp was given.
3104 if test "${enable_libssp+set}" = set; then :
3105 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3106 else
3107 ENABLE_LIBSSP=yes
3111 # Check whether --enable-libstdcxx was given.
3112 if test "${enable_libstdcxx+set}" = set; then :
3113 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3114 else
3115 ENABLE_LIBSTDCXX=default
3118 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3119 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3122 # Save it here so that, even in case of --enable-libgcj, if the Java
3123 # front-end isn't enabled, we still get libgcj disabled.
3124 libgcj_saved=$libgcj
3125 case $enable_libgcj in
3126 yes)
3127 # If we reset it here, it won't get added to noconfigdirs in the
3128 # target-specific build rules, so it will be forcibly enabled
3129 # (unless the Java language itself isn't enabled).
3130 libgcj=
3133 # Make sure we get it printed in the list of not supported target libs.
3134 # Don't disable libffi, though, other languages use it.
3135 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3136 # Clear libgcj_saved so that even if java is enabled libffi won't be
3137 # built.
3138 libgcj_saved=
3140 esac
3142 # Check whether --enable-static-libjava was given.
3143 if test "${enable_static_libjava+set}" = set; then :
3144 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3145 else
3146 ENABLE_STATIC_LIBJAVA=no
3149 enable_static_libjava=
3150 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3151 enable_static_libjava=yes
3154 if test x$enable_static_libjava != xyes ; then
3155 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3159 posix_based_os="yes"
3160 case "${target}" in
3161 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3163 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3165 *-*-solaris2* | *-*-hpux11*)
3167 *-*-darwin* | *-*-aix*)
3170 posix_based_os="no"
3172 esac
3174 # Enable libgomp by default on POSIX hosted systems.
3175 if test x$enable_libgomp = x -a $posix_based_os = "no" ; then
3176 # Disable libgomp on non POSIX hosted systems.
3177 noconfigdirs="$noconfigdirs target-libgomp"
3180 # Enable libgupc by default on POSIX hosted systems.
3181 if test x$enable_libgupc = x -a $posix_based_os = "no" ; then
3182 # Disable libgupc on non POSIX hosted systems.
3183 noconfigdirs="$noconfigdirs target-libgupc"
3186 # Disable libatomic on unsupported systems.
3187 if test -d ${srcdir}/libatomic; then
3188 if test x$enable_libatomic = x; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3190 $as_echo_n "checking for libatomic support... " >&6; }
3191 if (srcdir=${srcdir}/libatomic; \
3192 . ${srcdir}/configure.tgt; \
3193 test -n "$UNSUPPORTED")
3194 then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 noconfigdirs="$noconfigdirs target-libatomic"
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3205 # Disable libcilkrts on unsupported systems.
3206 if test -d ${srcdir}/libcilkrts; then
3207 if test x$enable_libcilkrts = x; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3209 $as_echo_n "checking for libcilkrts support... " >&6; }
3210 if (srcdir=${srcdir}/libcilkrts; \
3211 . ${srcdir}/configure.tgt; \
3212 test -n "$UNSUPPORTED")
3213 then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 noconfigdirs="$noconfigdirs target-libcilkrts"
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219 $as_echo "yes" >&6; }
3224 # Disable libitm on unsupported systems.
3225 if test -d ${srcdir}/libitm; then
3226 if test x$enable_libitm = x; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3228 $as_echo_n "checking for libitm support... " >&6; }
3229 if (srcdir=${srcdir}/libitm; \
3230 . ${srcdir}/configure.tgt; \
3231 test -n "$UNSUPPORTED")
3232 then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 noconfigdirs="$noconfigdirs target-libitm"
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238 $as_echo "yes" >&6; }
3243 # Disable libsanitizer on unsupported systems.
3244 if test -d ${srcdir}/libsanitizer; then
3245 if test x$enable_libsanitizer = x; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3247 $as_echo_n "checking for libsanitizer support... " >&6; }
3248 if (srcdir=${srcdir}/libsanitizer; \
3249 . ${srcdir}/configure.tgt; \
3250 test -n "$UNSUPPORTED")
3251 then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 noconfigdirs="$noconfigdirs target-libsanitizer"
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257 $as_echo "yes" >&6; }
3262 # Disable libvtv on unsupported systems.
3263 if test -d ${srcdir}/libvtv; then
3264 if test x$enable_libvtv = x; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3266 $as_echo_n "checking for libvtv support... " >&6; }
3267 if (srcdir=${srcdir}/libvtv; \
3268 . ${srcdir}/configure.tgt; \
3269 test "$VTV_SUPPORTED" != "yes")
3270 then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 noconfigdirs="$noconfigdirs target-libvtv"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3281 # Disable libquadmath for some systems.
3282 case "${target}" in
3283 avr-*-*)
3284 noconfigdirs="$noconfigdirs target-libquadmath"
3286 # libquadmath is unused on AIX and libquadmath build process use of
3287 # LD_LIBRARY_PATH can break AIX bootstrap.
3288 powerpc-*-aix* | rs6000-*-aix*)
3289 noconfigdirs="$noconfigdirs target-libquadmath"
3291 esac
3293 # Disable libssp for some systems.
3294 case "${target}" in
3295 avr-*-*)
3296 # No hosted I/O support.
3297 noconfigdirs="$noconfigdirs target-libssp"
3299 powerpc-*-aix* | rs6000-*-aix*)
3300 noconfigdirs="$noconfigdirs target-libssp"
3302 rl78-*-*)
3303 # libssp uses a misaligned load to trigger a fault, but the RL78
3304 # doesn't fault for those - instead, it gives a build-time error
3305 # for explicit misaligned loads.
3306 noconfigdirs="$noconfigdirs target-libssp"
3308 esac
3310 # Disable libstdc++-v3 for some systems.
3311 # Allow user to override this if they pass --enable-libstdc++-v3
3312 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3313 case "${target}" in
3314 *-*-vxworks*)
3315 # VxWorks uses the Dinkumware C++ library.
3316 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3318 arm*-wince-pe*)
3319 # the C++ libraries don't build on top of CE's C libraries
3320 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3322 avr-*-*)
3323 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3325 esac
3328 # Disable Fortran for some systems.
3329 case "${target}" in
3330 mmix-*-*)
3331 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3332 unsupported_languages="$unsupported_languages fortran"
3334 esac
3336 # Disable Java if libffi is not supported.
3337 case "${target}" in
3338 aarch64-*-*)
3340 alpha*-*-*)
3342 arm*-*-*)
3344 cris-*-*)
3346 frv-*-*)
3348 hppa*-*-linux*)
3350 hppa*-*-hpux*)
3352 i?86-*-*)
3354 ia64*-*-*)
3356 m32r*-*-*)
3358 m68k-*-*)
3360 mips*-*-rtems*)
3362 mips*-*-linux*)
3364 powerpc*-*-linux*)
3366 powerpc-*-darwin*)
3368 powerpc-*-aix* | rs6000-*-aix*)
3370 powerpc-*-freebsd*)
3372 powerpc64-*-freebsd*)
3374 powerpc*-*-rtems*)
3376 s390-*-* | s390x-*-*)
3378 sh-*-* | sh[34]*-*-*)
3380 sh64-*-* | sh5*-*-*)
3382 sparc*-*-*)
3384 x86_64-*-*)
3386 *-*-*)
3387 unsupported_languages="$unsupported_languages java"
3389 esac
3391 # Disable Java, libgcj or related libraries for some systems.
3392 case "${target}" in
3393 powerpc-*-darwin*)
3395 i[3456789]86-*-darwin*)
3397 x86_64-*-darwin[912]*)
3399 *-*-darwin*)
3400 noconfigdirs="$noconfigdirs ${libgcj}"
3402 *-*-netware*)
3403 noconfigdirs="$noconfigdirs ${libgcj}"
3405 *-*-rtems*)
3406 noconfigdirs="$noconfigdirs ${libgcj}"
3408 *-*-tpf*)
3409 noconfigdirs="$noconfigdirs ${libgcj}"
3411 *-*-uclinux*)
3412 noconfigdirs="$noconfigdirs ${libgcj}"
3414 *-*-vxworks*)
3415 noconfigdirs="$noconfigdirs ${libgcj}"
3417 alpha*-*-*vms*)
3418 noconfigdirs="$noconfigdirs ${libgcj}"
3420 arm-wince-pe)
3421 noconfigdirs="$noconfigdirs ${libgcj}"
3423 arm*-*-symbianelf*)
3424 noconfigdirs="$noconfigdirs ${libgcj}"
3426 bfin-*-*)
3427 noconfigdirs="$noconfigdirs target-boehm-gc"
3429 cris-*-* | crisv32-*-*)
3430 unsupported_languages="$unsupported_languages java"
3431 case "${target}" in
3432 *-*-linux*)
3434 *) # See PR46792 regarding target-libffi.
3435 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3436 esac
3438 hppa*64*-*-linux*)
3439 # In this case, it's because the hppa64-linux target is for
3440 # the kernel only at this point and has no libc, and thus no
3441 # headers, crt*.o, etc., all of which are needed by these.
3442 unsupported_languages="$unsupported_languages java"
3444 hppa*64*-*-hpux*)
3445 noconfigdirs="$noconfigdirs ${libgcj}"
3447 hppa*-hp-hpux11*)
3449 hppa*-*-hpux*)
3450 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3451 # build on HP-UX 10.20.
3452 noconfigdirs="$noconfigdirs ${libgcj}"
3454 ia64*-*-*vms*)
3455 noconfigdirs="$noconfigdirs ${libgcj}"
3457 i[3456789]86-w64-mingw*)
3458 noconfigdirs="$noconfigdirs ${libgcj}"
3460 i[3456789]86-*-mingw*)
3461 noconfigdirs="$noconfigdirs ${libgcj}"
3463 x86_64-*-mingw*)
3464 noconfigdirs="$noconfigdirs ${libgcj}"
3466 mmix-*-*)
3467 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3469 powerpc-*-aix*)
3470 # copied from rs6000-*-* entry
3471 noconfigdirs="$noconfigdirs ${libgcj}"
3473 rs6000-*-aix*)
3474 noconfigdirs="$noconfigdirs ${libgcj}"
3476 *-*-lynxos*)
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3479 esac
3481 # Disable libgo for some systems where it is known to not work.
3482 # For testing, you can easily override this with --enable-libgo.
3483 if test x$enable_libgo = x; then
3484 case "${target}" in
3485 *-*-darwin*)
3486 # PR 46986
3487 noconfigdirs="$noconfigdirs target-libgo"
3489 *-*-cygwin* | *-*-mingw*)
3490 noconfigdirs="$noconfigdirs target-libgo"
3492 *-*-aix*)
3493 noconfigdirs="$noconfigdirs target-libgo"
3495 esac
3498 # Default libgloss CPU subdirectory.
3499 libgloss_dir="$target_cpu"
3501 case "${target}" in
3502 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3503 libgloss_dir=wince
3505 aarch64*-*-* )
3506 libgloss_dir=aarch64
3508 arm*-*-*)
3509 libgloss_dir=arm
3511 cris-*-* | crisv32-*-*)
3512 libgloss_dir=cris
3514 hppa*-*-*)
3515 libgloss_dir=pa
3517 i[3456789]86-*-*)
3518 libgloss_dir=i386
3520 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3521 libgloss_dir=m68hc11
3523 m68*-*-* | fido-*-*)
3524 libgloss_dir=m68k
3526 mips*-*-*)
3527 libgloss_dir=mips
3529 powerpc*-*-*)
3530 libgloss_dir=rs6000
3532 sparc*-*-*)
3533 libgloss_dir=sparc
3535 esac
3537 # Disable newlib and libgloss for various target OSes.
3538 case "${target}" in
3539 alpha*-dec-osf*)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 i[3456789]86-*-linux*)
3543 # This section makes it possible to build newlib natively on linux.
3544 # If we are using a cross compiler then don't configure newlib.
3545 if test x${is_cross_compiler} != xno ; then
3546 noconfigdirs="$noconfigdirs target-newlib"
3548 noconfigdirs="$noconfigdirs target-libgloss"
3549 # If we are not using a cross compiler, do configure newlib.
3550 # Note however, that newlib will only be configured in this situation
3551 # if the --with-newlib option has been given, because otherwise
3552 # 'target-newlib' will appear in skipdirs.
3554 i[3456789]86-*-rdos*)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 sparc-*-sunos4*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 *-*-aix*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 *-*-beos*)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 *-*-chorusos)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 *-*-dragonfly*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 *-*-freebsd*)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 *-*-lynxos*)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 *-*-mingw*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 *-*-netbsd*)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 *-*-netware*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 *-*-tpf*)
3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 *-*-uclinux*)
3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 *-*-vxworks*)
3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 esac
3604 case "${target}" in
3605 *-*-chorusos)
3607 powerpc-*-darwin*)
3608 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3609 noconfigdirs="$noconfigdirs sim target-rda"
3611 i[3456789]86-*-darwin*)
3612 noconfigdirs="$noconfigdirs ld gprof"
3613 noconfigdirs="$noconfigdirs sim target-rda"
3615 x86_64-*-darwin[912]*)
3616 noconfigdirs="$noconfigdirs ld gas gprof"
3617 noconfigdirs="$noconfigdirs sim target-rda"
3619 *-*-darwin*)
3620 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3621 noconfigdirs="$noconfigdirs sim target-rda"
3623 *-*-dragonfly*)
3625 *-*-freebsd*)
3626 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3627 && test -f /usr/local/include/gmp.h; then
3628 with_gmp=/usr/local
3631 *-*-kaos*)
3632 # Remove unsupported stuff on all kaOS configurations.
3633 noconfigdirs="$noconfigdirs target-libgloss"
3635 *-*-netbsd*)
3637 *-*-netware*)
3639 *-*-rtems*)
3640 noconfigdirs="$noconfigdirs target-libgloss"
3642 # The tpf target doesn't support gdb yet.
3643 *-*-tpf*)
3644 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3646 *-*-uclinux*)
3647 noconfigdirs="$noconfigdirs target-rda"
3649 *-*-vxworks*)
3651 alpha*-dec-osf*)
3652 # ld works, but does not support shared libraries.
3653 # gas doesn't generate exception information.
3654 noconfigdirs="$noconfigdirs gas ld"
3656 alpha*-*-*vms*)
3657 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3659 alpha*-*-*)
3660 # newlib is not 64 bit ready
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3664 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3666 arc-*-*|arceb-*-*)
3667 noconfigdirs="$noconfigdirs target-libgloss"
3669 arm-*-pe*)
3670 noconfigdirs="$noconfigdirs target-libgloss"
3672 arm-*-riscix*)
3673 noconfigdirs="$noconfigdirs ld target-libgloss"
3675 avr-*-rtems*)
3677 avr-*-*)
3678 if test x${with_avrlibc} != xno; then
3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 c4x-*-* | tic4x-*-*)
3683 noconfigdirs="$noconfigdirs target-libgloss"
3685 tic54x-*-*)
3686 noconfigdirs="$noconfigdirs target-libgloss gdb"
3688 d10v-*-*)
3689 noconfigdirs="$noconfigdirs target-libgloss"
3691 d30v-*-*)
3692 noconfigdirs="$noconfigdirs gdb"
3694 fr30-*-elf*)
3695 noconfigdirs="$noconfigdirs gdb"
3697 moxie-*-*)
3698 noconfigdirs="$noconfigdirs gprof"
3700 h8300*-*-*)
3701 noconfigdirs="$noconfigdirs target-libgloss"
3703 h8500-*-*)
3704 noconfigdirs="$noconfigdirs target-libgloss"
3706 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3708 hppa*64*-*-linux*)
3710 hppa*-*-linux*)
3712 hppa*-*-*elf* | \
3713 hppa*-*-lites* | \
3714 hppa*-*-openbsd* | \
3715 hppa*64*-*-*)
3717 hppa*-hp-hpux11*)
3718 noconfigdirs="$noconfigdirs ld"
3720 hppa*-*-pro*)
3722 hppa*-*-*)
3723 noconfigdirs="$noconfigdirs ld"
3725 i960-*-*)
3726 noconfigdirs="$noconfigdirs gdb"
3728 ia64*-*-elf*)
3729 # No gdb support yet.
3730 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3732 ia64*-**-hpux*)
3733 # No ld support yet.
3734 noconfigdirs="$noconfigdirs libgui itcl ld"
3736 ia64*-*-*vms*)
3737 # No ld support yet.
3738 noconfigdirs="$noconfigdirs libgui itcl ld"
3740 i[3456789]86-w64-mingw*)
3742 i[3456789]86-*-mingw*)
3743 target_configdirs="$target_configdirs target-winsup"
3745 *-*-cygwin*)
3746 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3747 noconfigdirs="$noconfigdirs target-libgloss"
3748 # always build newlib if winsup directory is present.
3749 if test -d "$srcdir/winsup/cygwin"; then
3750 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3751 elif test -d "$srcdir/newlib"; then
3752 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3755 i[3456789]86-*-pe)
3756 noconfigdirs="$noconfigdirs target-libgloss"
3758 i[3456789]86-*-sco3.2v5*)
3759 # The linker does not yet know about weak symbols in COFF,
3760 # and is not configured to handle mixed ELF and COFF.
3761 noconfigdirs="$noconfigdirs ld target-libgloss"
3763 i[3456789]86-*-sco*)
3764 noconfigdirs="$noconfigdirs gprof target-libgloss"
3766 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3767 noconfigdirs="$noconfigdirs target-libgloss"
3769 i[3456789]86-*-sysv4*)
3770 noconfigdirs="$noconfigdirs target-libgloss"
3772 i[3456789]86-*-beos*)
3773 noconfigdirs="$noconfigdirs gdb"
3775 i[3456789]86-*-rdos*)
3776 noconfigdirs="$noconfigdirs gdb"
3778 mmix-*-*)
3779 noconfigdirs="$noconfigdirs gdb"
3781 mt-*-*)
3782 noconfigdirs="$noconfigdirs sim"
3784 powerpc-*-aix*)
3785 # copied from rs6000-*-* entry
3786 noconfigdirs="$noconfigdirs gprof"
3788 powerpc*-*-winnt* | powerpc*-*-pe*)
3789 target_configdirs="$target_configdirs target-winsup"
3790 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3791 # always build newlib.
3792 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3794 # This is temporary until we can link against shared libraries
3795 powerpcle-*-solaris*)
3796 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3798 powerpc-*-beos*)
3799 noconfigdirs="$noconfigdirs gdb"
3801 rs6000-*-lynxos*)
3802 noconfigdirs="$noconfigdirs gprof"
3804 rs6000-*-aix*)
3805 noconfigdirs="$noconfigdirs gprof"
3807 rs6000-*-*)
3808 noconfigdirs="$noconfigdirs gprof"
3810 m68k-apollo-*)
3811 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3813 microblaze*)
3814 noconfigdirs="$noconfigdirs gprof"
3816 mips*-sde-elf* | mips*-mti-elf*)
3817 if test x$with_newlib = xyes; then
3818 noconfigdirs="$noconfigdirs gprof"
3821 mips*-*-irix5*)
3822 noconfigdirs="$noconfigdirs gprof target-libgloss"
3824 mips*-*-irix6*)
3825 noconfigdirs="$noconfigdirs gprof target-libgloss"
3827 mips*-*-bsd*)
3828 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3830 mips*-*-linux*)
3832 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3833 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3834 noconfigdirs="$noconfigdirs ld gas gprof"
3836 mips*-*-*)
3837 noconfigdirs="$noconfigdirs gprof"
3839 sh-*-* | sh64-*-*)
3840 case "${target}" in
3841 sh*-*-elf)
3844 noconfigdirs="$noconfigdirs target-libgloss" ;;
3845 esac
3847 sparc-*-sunos4*)
3848 if test x${is_cross_compiler} = xno ; then
3849 use_gnu_ld=no
3852 tic6x-*-*)
3853 noconfigdirs="$noconfigdirs sim"
3855 tilepro*-*-* | tilegx*-*-*)
3856 noconfigdirs="$noconfigdirs sim"
3858 v810-*-*)
3859 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3861 vax-*-*)
3862 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3864 esac
3866 # If we aren't building newlib, then don't build libgloss, since libgloss
3867 # depends upon some newlib header files.
3868 case "${noconfigdirs}" in
3869 *target-libgloss*) ;;
3870 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3871 esac
3873 # Work in distributions that contain no compiler tools, like Autoconf.
3874 host_makefile_frag=/dev/null
3875 if test -d ${srcdir}/config ; then
3876 case "${host}" in
3877 i[3456789]86-*-msdosdjgpp*)
3878 host_makefile_frag="config/mh-djgpp"
3880 *-cygwin*)
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3883 $as_echo_n "checking to see if cat works as expected... " >&6; }
3884 echo a >cygwin-cat-check
3885 if test `cat cygwin-cat-check` = a ; then
3886 rm cygwin-cat-check
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3888 $as_echo "yes" >&6; }
3889 else
3890 rm cygwin-cat-check
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3893 as_fn_error "The cat command does not ignore carriage return characters.
3894 Please either mount the build directory in binary mode or run the following
3895 commands before running any configure script:
3896 set -o igncr
3897 export SHELLOPTS
3898 " "$LINENO" 5
3901 host_makefile_frag="config/mh-cygwin"
3903 *-mingw*)
3904 host_makefile_frag="config/mh-mingw"
3906 hppa*-hp-hpux10*)
3907 host_makefile_frag="config/mh-pa-hpux10"
3909 hppa*-hp-hpux*)
3910 host_makefile_frag="config/mh-pa"
3912 hppa*-*)
3913 host_makefile_frag="config/mh-pa"
3915 *-*-darwin*)
3916 host_makefile_frag="config/mh-darwin"
3918 powerpc-*-aix*)
3919 host_makefile_frag="config/mh-ppc-aix"
3921 rs6000-*-aix*)
3922 host_makefile_frag="config/mh-ppc-aix"
3924 esac
3927 if test "${build}" != "${host}" ; then
3928 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3929 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3930 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3931 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3932 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3933 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3934 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3935 GUPC_FOR_BUILD=${GUPC_FOR_BUILD-gupc}
3936 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3937 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3938 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3939 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3940 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3941 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3942 else
3943 AR_FOR_BUILD="\$(AR)"
3944 AS_FOR_BUILD="\$(AS)"
3945 CC_FOR_BUILD="\$(CC)"
3946 CXX_FOR_BUILD="\$(CXX)"
3947 GCJ_FOR_BUILD="\$(GCJ)"
3948 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3949 GOC_FOR_BUILD="\$(GOC)"
3950 GUPC_FOR_BUILD="\$(GUPC)"
3951 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3952 LD_FOR_BUILD="\$(LD)"
3953 NM_FOR_BUILD="\$(NM)"
3954 RANLIB_FOR_BUILD="\$(RANLIB)"
3955 WINDRES_FOR_BUILD="\$(WINDRES)"
3956 WINDMC_FOR_BUILD="\$(WINDMC)"
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964 if test -n "$ac_tool_prefix"; then
3965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968 $as_echo_n "checking for $ac_word... " >&6; }
3969 if test "${ac_cv_prog_CC+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 if test -n "$CC"; then
3973 ac_cv_prog_CC="$CC" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 break 2
3986 done
3987 done
3988 IFS=$as_save_IFS
3992 CC=$ac_cv_prog_CC
3993 if test -n "$CC"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3995 $as_echo "$CC" >&6; }
3996 else
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
4003 if test -z "$ac_cv_prog_CC"; then
4004 ac_ct_CC=$CC
4005 # Extract the first word of "gcc", so it can be a program name with args.
4006 set dummy gcc; ac_word=$2
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 $as_echo_n "checking for $ac_word... " >&6; }
4009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 if test -n "$ac_ct_CC"; then
4013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4022 ac_cv_prog_ac_ct_CC="gcc"
4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 break 2
4026 done
4027 done
4028 IFS=$as_save_IFS
4032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4033 if test -n "$ac_ct_CC"; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4035 $as_echo "$ac_ct_CC" >&6; }
4036 else
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4041 if test "x$ac_ct_CC" = x; then
4042 CC=""
4043 else
4044 case $cross_compiling:$ac_tool_warned in
4045 yes:)
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4048 ac_tool_warned=yes ;;
4049 esac
4050 CC=$ac_ct_CC
4052 else
4053 CC="$ac_cv_prog_CC"
4056 if test -z "$CC"; then
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}cc; ac_word=$2
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061 $as_echo_n "checking for $ac_word... " >&6; }
4062 if test "${ac_cv_prog_CC+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 if test -n "$CC"; then
4066 ac_cv_prog_CC="$CC" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_prog_CC="${ac_tool_prefix}cc"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4079 done
4080 done
4081 IFS=$as_save_IFS
4085 CC=$ac_cv_prog_CC
4086 if test -n "$CC"; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4088 $as_echo "$CC" >&6; }
4089 else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4097 if test -z "$CC"; then
4098 # Extract the first word of "cc", so it can be a program name with args.
4099 set dummy cc; ac_word=$2
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 $as_echo_n "checking for $ac_word... " >&6; }
4102 if test "${ac_cv_prog_CC+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 if test -n "$CC"; then
4106 ac_cv_prog_CC="$CC" # Let the user override the test.
4107 else
4108 ac_prog_rejected=no
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4117 ac_prog_rejected=yes
4118 continue
4120 ac_cv_prog_CC="cc"
4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 break 2
4124 done
4125 done
4126 IFS=$as_save_IFS
4128 if test $ac_prog_rejected = yes; then
4129 # We found a bogon in the path, so make sure we never use it.
4130 set dummy $ac_cv_prog_CC
4131 shift
4132 if test $# != 0; then
4133 # We chose a different compiler from the bogus one.
4134 # However, it has the same basename, so the bogon will be chosen
4135 # first if we set CC to just the basename; use the full file name.
4136 shift
4137 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4142 CC=$ac_cv_prog_CC
4143 if test -n "$CC"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4145 $as_echo "$CC" >&6; }
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4153 if test -z "$CC"; then
4154 if test -n "$ac_tool_prefix"; then
4155 for ac_prog in cl.exe
4157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if test "${ac_cv_prog_CC+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 if test -n "$CC"; then
4165 ac_cv_prog_CC="$CC" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4178 done
4179 done
4180 IFS=$as_save_IFS
4184 CC=$ac_cv_prog_CC
4185 if test -n "$CC"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187 $as_echo "$CC" >&6; }
4188 else
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4194 test -n "$CC" && break
4195 done
4197 if test -z "$CC"; then
4198 ac_ct_CC=$CC
4199 for ac_prog in cl.exe
4201 # Extract the first word of "$ac_prog", so it can be a program name with args.
4202 set dummy $ac_prog; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if test -n "$ac_ct_CC"; then
4209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_ac_ct_CC="$ac_prog"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4222 done
4223 done
4224 IFS=$as_save_IFS
4228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4229 if test -n "$ac_ct_CC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4231 $as_echo "$ac_ct_CC" >&6; }
4232 else
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4238 test -n "$ac_ct_CC" && break
4239 done
4241 if test "x$ac_ct_CC" = x; then
4242 CC=""
4243 else
4244 case $cross_compiling:$ac_tool_warned in
4245 yes:)
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248 ac_tool_warned=yes ;;
4249 esac
4250 CC=$ac_ct_CC
4257 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4259 as_fn_error "no acceptable C compiler found in \$PATH
4260 See \`config.log' for more details." "$LINENO" 5; }
4262 # Provide some information about the compiler.
4263 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4264 set X $ac_compile
4265 ac_compiler=$2
4266 for ac_option in --version -v -V -qversion; do
4267 { { ac_try="$ac_compiler $ac_option >&5"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4275 ac_status=$?
4276 if test -s conftest.err; then
4277 sed '10a\
4278 ... rest of stderr output deleted ...
4279 10q' conftest.err >conftest.er1
4280 cat conftest.er1 >&5
4281 rm -f conftest.er1 conftest.err
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; }
4285 done
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4291 main ()
4295 return 0;
4297 _ACEOF
4298 ac_clean_files_save=$ac_clean_files
4299 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4300 # Try to create an executable without -o first, disregard a.out.
4301 # It will help us diagnose broken compilers, and finding out an intuition
4302 # of exeext.
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4304 $as_echo_n "checking for C compiler default output file name... " >&6; }
4305 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4307 # The possible output files:
4308 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4310 ac_rmfiles=
4311 for ac_file in $ac_files
4313 case $ac_file in
4314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4315 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4316 esac
4317 done
4318 rm -f $ac_rmfiles
4320 if { { ac_try="$ac_link_default"
4321 case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 $as_echo "$ac_try_echo"; } >&5
4327 (eval "$ac_link_default") 2>&5
4328 ac_status=$?
4329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }; then :
4331 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4332 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4333 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4334 # so that the user can short-circuit this test for compilers unknown to
4335 # Autoconf.
4336 for ac_file in $ac_files ''
4338 test -f "$ac_file" || continue
4339 case $ac_file in
4340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4342 [ab].out )
4343 # We found the default executable, but exeext='' is most
4344 # certainly right.
4345 break;;
4346 *.* )
4347 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4348 then :; else
4349 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4351 # We set ac_cv_exeext here because the later test for it is not
4352 # safe: cross compilers may not add the suffix if given an `-o'
4353 # argument, so we may need to know it at that point already.
4354 # Even if this section looks crufty: it has the advantage of
4355 # actually working.
4356 break;;
4358 break;;
4359 esac
4360 done
4361 test "$ac_cv_exeext" = no && ac_cv_exeext=
4363 else
4364 ac_file=''
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4367 $as_echo "$ac_file" >&6; }
4368 if test -z "$ac_file"; then :
4369 $as_echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4374 { as_fn_set_status 77
4375 as_fn_error "C compiler cannot create executables
4376 See \`config.log' for more details." "$LINENO" 5; }; }
4378 ac_exeext=$ac_cv_exeext
4380 # Check that the compiler produces executables we can run. If not, either
4381 # the compiler is broken, or we cross compile.
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4383 $as_echo_n "checking whether the C compiler works... " >&6; }
4384 # If not cross compiling, check that we can run a simple program.
4385 if test "$cross_compiling" != yes; then
4386 if { ac_try='./$ac_file'
4387 { { case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_try") 2>&5
4394 ac_status=$?
4395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396 test $ac_status = 0; }; }; then
4397 cross_compiling=no
4398 else
4399 if test "$cross_compiling" = maybe; then
4400 cross_compiling=yes
4401 else
4402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4404 as_fn_error "cannot run C compiled programs.
4405 If you meant to cross compile, use \`--host'.
4406 See \`config.log' for more details." "$LINENO" 5; }
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4411 $as_echo "yes" >&6; }
4413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4414 ac_clean_files=$ac_clean_files_save
4415 # Check that the compiler produces executables we can run. If not, either
4416 # the compiler is broken, or we cross compile.
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4418 $as_echo_n "checking whether we are cross compiling... " >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4420 $as_echo "$cross_compiling" >&6; }
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4423 $as_echo_n "checking for suffix of executables... " >&6; }
4424 if { { ac_try="$ac_link"
4425 case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_link") 2>&5
4432 ac_status=$?
4433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434 test $ac_status = 0; }; then :
4435 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4436 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4437 # work properly (i.e., refer to `conftest.exe'), while it won't with
4438 # `rm'.
4439 for ac_file in conftest.exe conftest conftest.*; do
4440 test -f "$ac_file" || continue
4441 case $ac_file in
4442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4443 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4444 break;;
4445 * ) break;;
4446 esac
4447 done
4448 else
4449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451 as_fn_error "cannot compute suffix of executables: cannot compile and link
4452 See \`config.log' for more details." "$LINENO" 5; }
4454 rm -f conftest$ac_cv_exeext
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4456 $as_echo "$ac_cv_exeext" >&6; }
4458 rm -f conftest.$ac_ext
4459 EXEEXT=$ac_cv_exeext
4460 ac_exeext=$EXEEXT
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4462 $as_echo_n "checking for suffix of object files... " >&6; }
4463 if test "${ac_cv_objext+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4470 main ()
4474 return 0;
4476 _ACEOF
4477 rm -f conftest.o conftest.obj
4478 if { { ac_try="$ac_compile"
4479 case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482 esac
4483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 $as_echo "$ac_try_echo"; } >&5
4485 (eval "$ac_compile") 2>&5
4486 ac_status=$?
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }; then :
4489 for ac_file in conftest.o conftest.obj conftest.*; do
4490 test -f "$ac_file" || continue;
4491 case $ac_file in
4492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4494 break;;
4495 esac
4496 done
4497 else
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error "cannot compute suffix of object files: cannot compile
4504 See \`config.log' for more details." "$LINENO" 5; }
4506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4509 $as_echo "$ac_cv_objext" >&6; }
4510 OBJEXT=$ac_cv_objext
4511 ac_objext=$OBJEXT
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4513 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4514 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4521 main ()
4523 #ifndef __GNUC__
4524 choke me
4525 #endif
4528 return 0;
4530 _ACEOF
4531 if ac_fn_c_try_compile "$LINENO"; then :
4532 ac_compiler_gnu=yes
4533 else
4534 ac_compiler_gnu=no
4536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4541 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4542 if test $ac_compiler_gnu = yes; then
4543 GCC=yes
4544 else
4545 GCC=
4547 ac_test_CFLAGS=${CFLAGS+set}
4548 ac_save_CFLAGS=$CFLAGS
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4550 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4551 if test "${ac_cv_prog_cc_g+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 ac_save_c_werror_flag=$ac_c_werror_flag
4555 ac_c_werror_flag=yes
4556 ac_cv_prog_cc_g=no
4557 CFLAGS="-g"
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4562 main ()
4566 return 0;
4568 _ACEOF
4569 if ac_fn_c_try_compile "$LINENO"; then :
4570 ac_cv_prog_cc_g=yes
4571 else
4572 CFLAGS=""
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4577 main ()
4581 return 0;
4583 _ACEOF
4584 if ac_fn_c_try_compile "$LINENO"; then :
4586 else
4587 ac_c_werror_flag=$ac_save_c_werror_flag
4588 CFLAGS="-g"
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4593 main ()
4597 return 0;
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4601 ac_cv_prog_cc_g=yes
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_c_werror_flag=$ac_save_c_werror_flag
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4611 $as_echo "$ac_cv_prog_cc_g" >&6; }
4612 if test "$ac_test_CFLAGS" = set; then
4613 CFLAGS=$ac_save_CFLAGS
4614 elif test $ac_cv_prog_cc_g = yes; then
4615 if test "$GCC" = yes; then
4616 CFLAGS="-g -O2"
4617 else
4618 CFLAGS="-g"
4620 else
4621 if test "$GCC" = yes; then
4622 CFLAGS="-O2"
4623 else
4624 CFLAGS=
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4628 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4629 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4632 ac_cv_prog_cc_c89=no
4633 ac_save_CC=$CC
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 #include <stdarg.h>
4637 #include <stdio.h>
4638 #include <sys/types.h>
4639 #include <sys/stat.h>
4640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4641 struct buf { int x; };
4642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4643 static char *e (p, i)
4644 char **p;
4645 int i;
4647 return p[i];
4649 static char *f (char * (*g) (char **, int), char **p, ...)
4651 char *s;
4652 va_list v;
4653 va_start (v,p);
4654 s = g (p, va_arg (v,int));
4655 va_end (v);
4656 return s;
4659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4660 function prototypes and stuff, but not '\xHH' hex character constants.
4661 These don't provoke an error unfortunately, instead are silently treated
4662 as 'x'. The following induces an error, until -std is added to get
4663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4664 array size at least. It's necessary to write '\x00'==0 to get something
4665 that's true only with -std. */
4666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4668 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4669 inside strings and character constants. */
4670 #define FOO(x) 'x'
4671 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4673 int test (int i, double x);
4674 struct s1 {int (*f) (int a);};
4675 struct s2 {int (*f) (double a);};
4676 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4677 int argc;
4678 char **argv;
4680 main ()
4682 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4684 return 0;
4686 _ACEOF
4687 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4688 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4690 CC="$ac_save_CC $ac_arg"
4691 if ac_fn_c_try_compile "$LINENO"; then :
4692 ac_cv_prog_cc_c89=$ac_arg
4694 rm -f core conftest.err conftest.$ac_objext
4695 test "x$ac_cv_prog_cc_c89" != "xno" && break
4696 done
4697 rm -f conftest.$ac_ext
4698 CC=$ac_save_CC
4701 # AC_CACHE_VAL
4702 case "x$ac_cv_prog_cc_c89" in
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4705 $as_echo "none needed" >&6; } ;;
4706 xno)
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4708 $as_echo "unsupported" >&6; } ;;
4710 CC="$CC $ac_cv_prog_cc_c89"
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4712 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4713 esac
4714 if test "x$ac_cv_prog_cc_c89" != xno; then :
4718 ac_ext=c
4719 ac_cpp='$CPP $CPPFLAGS'
4720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4724 ac_ext=cpp
4725 ac_cpp='$CXXCPP $CPPFLAGS'
4726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4729 if test -z "$CXX"; then
4730 if test -n "$CCC"; then
4731 CXX=$CCC
4732 else
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_CXX+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$CXX"; then
4744 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4763 CXX=$ac_cv_prog_CXX
4764 if test -n "$CXX"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4766 $as_echo "$CXX" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4773 test -n "$CXX" && break
4774 done
4776 if test -z "$CXX"; then
4777 ac_ct_CXX=$CXX
4778 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$ac_ct_CXX"; then
4788 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_CXX="$ac_prog"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4801 done
4802 done
4803 IFS=$as_save_IFS
4807 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4808 if test -n "$ac_ct_CXX"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4810 $as_echo "$ac_ct_CXX" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4817 test -n "$ac_ct_CXX" && break
4818 done
4820 if test "x$ac_ct_CXX" = x; then
4821 CXX="g++"
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824 yes:)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829 CXX=$ac_ct_CXX
4835 # Provide some information about the compiler.
4836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4837 set X $ac_compile
4838 ac_compiler=$2
4839 for ac_option in --version -v -V -qversion; do
4840 { { ac_try="$ac_compiler $ac_option >&5"
4841 case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844 esac
4845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4846 $as_echo "$ac_try_echo"; } >&5
4847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4848 ac_status=$?
4849 if test -s conftest.err; then
4850 sed '10a\
4851 ... rest of stderr output deleted ...
4852 10q' conftest.err >conftest.er1
4853 cat conftest.er1 >&5
4854 rm -f conftest.er1 conftest.err
4856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4857 test $ac_status = 0; }
4858 done
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4861 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4862 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4869 main ()
4871 #ifndef __GNUC__
4872 choke me
4873 #endif
4876 return 0;
4878 _ACEOF
4879 if ac_fn_cxx_try_compile "$LINENO"; then :
4880 ac_compiler_gnu=yes
4881 else
4882 ac_compiler_gnu=no
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4889 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4890 if test $ac_compiler_gnu = yes; then
4891 GXX=yes
4892 else
4893 GXX=
4895 ac_test_CXXFLAGS=${CXXFLAGS+set}
4896 ac_save_CXXFLAGS=$CXXFLAGS
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4898 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4899 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4903 ac_cxx_werror_flag=yes
4904 ac_cv_prog_cxx_g=no
4905 CXXFLAGS="-g"
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4910 main ()
4914 return 0;
4916 _ACEOF
4917 if ac_fn_cxx_try_compile "$LINENO"; then :
4918 ac_cv_prog_cxx_g=yes
4919 else
4920 CXXFLAGS=""
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4925 main ()
4929 return 0;
4931 _ACEOF
4932 if ac_fn_cxx_try_compile "$LINENO"; then :
4934 else
4935 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4936 CXXFLAGS="-g"
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4941 main ()
4945 return 0;
4947 _ACEOF
4948 if ac_fn_cxx_try_compile "$LINENO"; then :
4949 ac_cv_prog_cxx_g=yes
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4959 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4960 if test "$ac_test_CXXFLAGS" = set; then
4961 CXXFLAGS=$ac_save_CXXFLAGS
4962 elif test $ac_cv_prog_cxx_g = yes; then
4963 if test "$GXX" = yes; then
4964 CXXFLAGS="-g -O2"
4965 else
4966 CXXFLAGS="-g"
4968 else
4969 if test "$GXX" = yes; then
4970 CXXFLAGS="-O2"
4971 else
4972 CXXFLAGS=
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 # We must set the default linker to the linker used by gcc for the correct
4983 # operation of libtool. If LD is not defined and we are using gcc, try to
4984 # set the LD default to the ld used by gcc.
4985 if test -z "$LD"; then
4986 if test "$GCC" = yes; then
4987 case $build in
4988 *-*-mingw*)
4989 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4991 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4992 esac
4993 case $gcc_prog_ld in
4994 # Accept absolute paths.
4995 [\\/]* | [A-Za-z]:[\\/]*)
4996 LD="$gcc_prog_ld" ;;
4997 esac
5001 # Check whether -static-libstdc++ -static-libgcc is supported.
5002 have_static_libs=no
5003 if test "$GCC" = yes; then
5004 saved_LDFLAGS="$LDFLAGS"
5006 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5008 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5009 ac_ext=cpp
5010 ac_cpp='$CXXCPP $CPPFLAGS'
5011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5019 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5020 #error -static-libstdc++ not implemented
5021 #endif
5022 int main() {}
5023 _ACEOF
5024 if ac_fn_cxx_try_link "$LINENO"; then :
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5026 $as_echo "yes" >&6; }; have_static_libs=yes
5027 else
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5031 rm -f core conftest.err conftest.$ac_objext \
5032 conftest$ac_exeext conftest.$ac_ext
5033 ac_ext=c
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040 LDFLAGS="$saved_LDFLAGS"
5046 if test -n "$ac_tool_prefix"; then
5047 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$GNATBIND"; then
5055 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5068 done
5069 done
5070 IFS=$as_save_IFS
5074 GNATBIND=$ac_cv_prog_GNATBIND
5075 if test -n "$GNATBIND"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5077 $as_echo "$GNATBIND" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5085 if test -z "$ac_cv_prog_GNATBIND"; then
5086 ac_ct_GNATBIND=$GNATBIND
5087 # Extract the first word of "gnatbind", so it can be a program name with args.
5088 set dummy gnatbind; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$ac_ct_GNATBIND"; then
5095 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5108 done
5109 done
5110 IFS=$as_save_IFS
5114 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5115 if test -n "$ac_ct_GNATBIND"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5117 $as_echo "$ac_ct_GNATBIND" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5123 if test "x$ac_ct_GNATBIND" = x; then
5124 GNATBIND="no"
5125 else
5126 case $cross_compiling:$ac_tool_warned in
5127 yes:)
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130 ac_tool_warned=yes ;;
5131 esac
5132 GNATBIND=$ac_ct_GNATBIND
5134 else
5135 GNATBIND="$ac_cv_prog_GNATBIND"
5138 if test -n "$ac_tool_prefix"; then
5139 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5140 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 if test -n "$GNATMAKE"; then
5147 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5160 done
5161 done
5162 IFS=$as_save_IFS
5166 GNATMAKE=$ac_cv_prog_GNATMAKE
5167 if test -n "$GNATMAKE"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5169 $as_echo "$GNATMAKE" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5177 if test -z "$ac_cv_prog_GNATMAKE"; then
5178 ac_ct_GNATMAKE=$GNATMAKE
5179 # Extract the first word of "gnatmake", so it can be a program name with args.
5180 set dummy gnatmake; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test -n "$ac_ct_GNATMAKE"; then
5187 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5202 IFS=$as_save_IFS
5206 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5207 if test -n "$ac_ct_GNATMAKE"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5209 $as_echo "$ac_ct_GNATMAKE" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5215 if test "x$ac_ct_GNATMAKE" = x; then
5216 GNATMAKE="no"
5217 else
5218 case $cross_compiling:$ac_tool_warned in
5219 yes:)
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5222 ac_tool_warned=yes ;;
5223 esac
5224 GNATMAKE=$ac_ct_GNATMAKE
5226 else
5227 GNATMAKE="$ac_cv_prog_GNATMAKE"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5231 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5232 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 cat >conftest.adb <<EOF
5236 procedure conftest is begin null; end conftest;
5238 acx_cv_cc_gcc_supports_ada=no
5239 # There is a bug in old released versions of GCC which causes the
5240 # driver to exit successfully when the appropriate language module
5241 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5242 # Therefore we must check for the error message as well as an
5243 # unsuccessful exit.
5244 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5245 # given a .adb file, but produce no object file. So we must check
5246 # if an object file was really produced to guard against this.
5247 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5248 if test x"$errors" = x && test -f conftest.$ac_objext; then
5249 acx_cv_cc_gcc_supports_ada=yes
5251 rm -f conftest.*
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5254 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5256 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5257 have_gnat=yes
5258 else
5259 have_gnat=no
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5263 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5264 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 echo abfoo >t1
5268 echo cdfoo >t2
5269 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5270 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5271 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5273 else
5274 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5277 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5278 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5280 else
5281 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5284 rm t1 t2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5288 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5289 do_compare="$gcc_cv_prog_cmp_skip"
5293 # Check whether --enable-bootstrap was given.
5294 if test "${enable_bootstrap+set}" = set; then :
5295 enableval=$enable_bootstrap;
5296 else
5297 enable_bootstrap=default
5301 # Issue errors and warnings for invalid/strange bootstrap combinations.
5302 if test -r $srcdir/gcc/configure; then
5303 have_compiler=yes
5304 else
5305 have_compiler=no
5308 case "$have_compiler:$host:$target:$enable_bootstrap" in
5309 *:*:*:no) ;;
5311 # Default behavior. Enable bootstrap if we have a compiler
5312 # and we are in a native configuration.
5313 yes:$build:$build:default)
5314 enable_bootstrap=yes ;;
5316 *:*:*:default)
5317 enable_bootstrap=no ;;
5319 # We have a compiler and we are in a native configuration, bootstrap is ok
5320 yes:$build:$build:yes)
5323 # Other configurations, but we have a compiler. Assume the user knows
5324 # what he's doing.
5325 yes:*:*:yes)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5327 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5330 # No compiler: if they passed --enable-bootstrap explicitly, fail
5331 no:*:*:yes)
5332 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5334 # Fail if wrong command line
5336 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5338 esac
5340 # Used for setting $lt_cv_objdir
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5342 $as_echo_n "checking for objdir... " >&6; }
5343 if test "${lt_cv_objdir+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 rm -f .libs 2>/dev/null
5347 mkdir .libs 2>/dev/null
5348 if test -d .libs; then
5349 lt_cv_objdir=.libs
5350 else
5351 # MS-DOS does not allow filenames that begin with a dot.
5352 lt_cv_objdir=_libs
5354 rmdir .libs 2>/dev/null
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5357 $as_echo "$lt_cv_objdir" >&6; }
5358 objdir=$lt_cv_objdir
5364 cat >>confdefs.h <<_ACEOF
5365 #define LT_OBJDIR "$lt_cv_objdir/"
5366 _ACEOF
5370 # Check for GMP, MPFR and MPC
5371 gmplibs="-lmpc -lmpfr -lgmp"
5372 gmpinc=
5373 have_gmp=no
5375 # Specify a location for mpc
5376 # check for this first so it ends up on the link line before mpfr.
5378 # Check whether --with-mpc was given.
5379 if test "${with_mpc+set}" = set; then :
5380 withval=$with_mpc;
5384 # Check whether --with-mpc-include was given.
5385 if test "${with_mpc_include+set}" = set; then :
5386 withval=$with_mpc_include;
5390 # Check whether --with-mpc-lib was given.
5391 if test "${with_mpc_lib+set}" = set; then :
5392 withval=$with_mpc_lib;
5396 if test "x$with_mpc" != x; then
5397 gmplibs="-L$with_mpc/lib $gmplibs"
5398 gmpinc="-I$with_mpc/include $gmpinc"
5400 if test "x$with_mpc_include" != x; then
5401 gmpinc="-I$with_mpc_include $gmpinc"
5403 if test "x$with_mpc_lib" != x; then
5404 gmplibs="-L$with_mpc_lib $gmplibs"
5406 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5407 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5408 gmpinc='-I$$s/mpc/src '"$gmpinc"
5409 # Do not test the mpc version. Assume that it is sufficient, since
5410 # it is in the source tree, and the library has not been built yet
5411 # but it would be included on the link line in the version check below
5412 # hence making the test fail.
5413 have_gmp=yes
5416 # Specify a location for mpfr
5417 # check for this first so it ends up on the link line before gmp.
5419 # Check whether --with-mpfr-dir was given.
5420 if test "${with_mpfr_dir+set}" = set; then :
5421 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5422 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5427 # Check whether --with-mpfr was given.
5428 if test "${with_mpfr+set}" = set; then :
5429 withval=$with_mpfr;
5433 # Check whether --with-mpfr-include was given.
5434 if test "${with_mpfr_include+set}" = set; then :
5435 withval=$with_mpfr_include;
5439 # Check whether --with-mpfr-lib was given.
5440 if test "${with_mpfr_lib+set}" = set; then :
5441 withval=$with_mpfr_lib;
5445 if test "x$with_mpfr" != x; then
5446 gmplibs="-L$with_mpfr/lib $gmplibs"
5447 gmpinc="-I$with_mpfr/include $gmpinc"
5449 if test "x$with_mpfr_include" != x; then
5450 gmpinc="-I$with_mpfr_include $gmpinc"
5452 if test "x$with_mpfr_lib" != x; then
5453 gmplibs="-L$with_mpfr_lib $gmplibs"
5455 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5456 # MPFR v3.1.0 moved the sources into a src sub-directory.
5457 if test -d ${srcdir}/mpfr/src; then
5458 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5459 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5460 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5461 else
5462 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5463 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5464 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5466 # Do not test the mpfr version. Assume that it is sufficient, since
5467 # it is in the source tree, and the library has not been built yet
5468 # but it would be included on the link line in the version check below
5469 # hence making the test fail.
5470 have_gmp=yes
5473 # Specify a location for gmp
5475 # Check whether --with-gmp-dir was given.
5476 if test "${with_gmp_dir+set}" = set; then :
5477 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5478 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5483 # Check whether --with-gmp was given.
5484 if test "${with_gmp+set}" = set; then :
5485 withval=$with_gmp;
5489 # Check whether --with-gmp-include was given.
5490 if test "${with_gmp_include+set}" = set; then :
5491 withval=$with_gmp_include;
5495 # Check whether --with-gmp-lib was given.
5496 if test "${with_gmp_lib+set}" = set; then :
5497 withval=$with_gmp_lib;
5502 if test "x$with_gmp" != x; then
5503 gmplibs="-L$with_gmp/lib $gmplibs"
5504 gmpinc="-I$with_gmp/include $gmpinc"
5506 if test "x$with_gmp_include" != x; then
5507 gmpinc="-I$with_gmp_include $gmpinc"
5509 if test "x$with_gmp_lib" != x; then
5510 gmplibs="-L$with_gmp_lib $gmplibs"
5512 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5513 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5514 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5515 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5516 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5517 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5518 # Do not test the gmp version. Assume that it is sufficient, since
5519 # it is in the source tree, and the library has not been built yet
5520 # but it would be included on the link line in the version check below
5521 # hence making the test fail.
5522 have_gmp=yes
5525 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5526 have_gmp=yes
5527 saved_CFLAGS="$CFLAGS"
5528 CFLAGS="$CFLAGS $gmpinc"
5529 # Check for the recommended and required versions of GMP.
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5531 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #include "gmp.h"
5537 main ()
5540 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5541 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5542 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5543 choke me
5544 #endif
5547 return 0;
5549 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #include <gmp.h>
5555 main ()
5558 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5559 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5560 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5561 choke me
5562 #endif
5565 return 0;
5567 _ACEOF
5568 if ac_fn_c_try_compile "$LINENO"; then :
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5570 $as_echo "yes" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5573 $as_echo "buggy but acceptable" >&6; }
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }; have_gmp=no
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 # If we have GMP, check the MPFR version.
5583 if test x"$have_gmp" = xyes; then
5584 # Check for the recommended and required versions of MPFR.
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5586 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <gmp.h>
5590 #include <mpfr.h>
5592 main ()
5595 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5596 choke me
5597 #endif
5600 return 0;
5602 _ACEOF
5603 if ac_fn_c_try_compile "$LINENO"; then :
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 #include <gmp.h>
5607 #include <mpfr.h>
5609 main ()
5612 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5613 choke me
5614 #endif
5617 return 0;
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5622 $as_echo "yes" >&6; }
5623 else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5625 $as_echo "buggy but acceptable" >&6; }
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 $as_echo "no" >&6; }; have_gmp=no
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 # Check for the MPC header version.
5636 if test x"$have_gmp" = xyes ; then
5637 # Check for the recommended and required versions of MPC.
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5639 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 #include <mpc.h>
5644 main ()
5647 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5648 choke me
5649 #endif
5652 return 0;
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <mpc.h>
5660 main ()
5663 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5664 choke me
5665 #endif
5668 return 0;
5670 _ACEOF
5671 if ac_fn_c_try_compile "$LINENO"; then :
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5673 $as_echo "yes" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5676 $as_echo "buggy but acceptable" >&6; }
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }; have_gmp=no
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 # Now check the MPFR library.
5687 if test x"$have_gmp" = xyes; then
5688 saved_LIBS="$LIBS"
5689 LIBS="$LIBS $gmplibs"
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5691 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #include <mpc.h>
5696 main ()
5699 mpfr_t n;
5700 mpfr_t x;
5701 mpc_t c;
5702 int t;
5703 mpfr_init (n);
5704 mpfr_init (x);
5705 mpfr_atan2 (n, n, x, GMP_RNDN);
5706 mpfr_erfc (n, x, GMP_RNDN);
5707 mpfr_subnormalize (x, t, GMP_RNDN);
5708 mpfr_clear(n);
5709 mpfr_clear(x);
5710 mpc_init2 (c, 53);
5711 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5712 mpc_cosh (c, c, MPC_RNDNN);
5713 mpc_pow (c, c, c, MPC_RNDNN);
5714 mpc_acosh (c, c, MPC_RNDNN);
5715 mpc_clear (c);
5718 return 0;
5720 _ACEOF
5721 if ac_fn_c_try_link "$LINENO"; then :
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5723 $as_echo "yes" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }; have_gmp=no
5728 rm -f core conftest.err conftest.$ac_objext \
5729 conftest$ac_exeext conftest.$ac_ext
5730 LIBS="$saved_LIBS"
5733 CFLAGS="$saved_CFLAGS"
5735 # The library versions listed in the error message below should match
5736 # the HARD-minimums enforced above.
5737 if test x$have_gmp != xyes; then
5738 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5739 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5740 their locations. Source code for these libraries can be found at
5741 their respective hosting sites as well as at
5742 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5743 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5744 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5745 make sure that you have installed both the libraries and the header
5746 files. They may be located in separate packages." "$LINENO" 5
5750 # Flags needed for both GMP, MPFR and/or MPC.
5758 # Allow host libstdc++ to be specified for static linking with PPL.
5760 # Check whether --with-host-libstdcxx was given.
5761 if test "${with_host_libstdcxx+set}" = set; then :
5762 withval=$with_host_libstdcxx;
5766 case $with_host_libstdcxx in
5767 no|yes)
5768 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5770 esac
5772 # Libraries to use for stage1 or when not bootstrapping.
5774 # Check whether --with-stage1-libs was given.
5775 if test "${with_stage1_libs+set}" = set; then :
5776 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5777 stage1_libs=
5778 else
5779 stage1_libs=$withval
5781 else
5782 stage1_libs=$with_host_libstdcxx
5787 # Linker flags to use for stage1 or when not bootstrapping.
5789 # Check whether --with-stage1-ldflags was given.
5790 if test "${with_stage1_ldflags+set}" = set; then :
5791 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5792 stage1_ldflags=
5793 else
5794 stage1_ldflags=$withval
5796 else
5797 stage1_ldflags=
5798 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5799 # if supported. But if the user explicitly specified the libraries to use,
5800 # trust that they are doing what they want.
5801 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5802 stage1_ldflags="-static-libstdc++ -static-libgcc"
5808 # Libraries to use for stage2 and later builds. This defaults to the
5809 # argument passed to --with-host-libstdcxx.
5811 # Check whether --with-boot-libs was given.
5812 if test "${with_boot_libs+set}" = set; then :
5813 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5814 poststage1_libs=
5815 else
5816 poststage1_libs=$withval
5818 else
5819 poststage1_libs=$with_host_libstdcxx
5824 # Linker flags to use for stage2 and later builds.
5826 # Check whether --with-boot-ldflags was given.
5827 if test "${with_boot_ldflags+set}" = set; then :
5828 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5829 poststage1_ldflags=
5830 else
5831 poststage1_ldflags=$withval
5833 else
5834 poststage1_ldflags=
5835 # In stages 2 and 3, default to linking libstdc++ and libgcc
5836 # statically. But if the user explicitly specified the libraries to
5837 # use, trust that they are doing what they want.
5838 if test "$poststage1_libs" = ""; then
5839 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5845 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5846 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5847 # config/isl.m4
5850 # Check whether --with-cloog was given.
5851 if test "${with_cloog+set}" = set; then :
5852 withval=$with_cloog;
5856 # Check whether --with-isl was given.
5857 if test "${with_isl+set}" = set; then :
5858 withval=$with_isl;
5862 # Treat either --without-cloog or --without-isl as a request to disable
5863 # GRAPHITE support and skip all following checks.
5864 if test "x$with_isl" != "xno" &&
5865 test "x$with_cloog" != "xno"; then
5866 # Check for ISL
5869 # Check whether --with-isl-include was given.
5870 if test "${with_isl_include+set}" = set; then :
5871 withval=$with_isl_include;
5875 # Check whether --with-isl-lib was given.
5876 if test "${with_isl_lib+set}" = set; then :
5877 withval=$with_isl_lib;
5881 # Check whether --enable-isl-version-check was given.
5882 if test "${enable_isl_version_check+set}" = set; then :
5883 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5884 else
5885 ENABLE_ISL_CHECK=yes
5889 # Initialize isllibs and islinc.
5890 case $with_isl in
5892 isllibs=
5893 islinc=
5895 "" | yes)
5898 isllibs="-L$with_isl/lib"
5899 islinc="-I$with_isl/include"
5901 esac
5902 if test "x${with_isl_include}" != x ; then
5903 islinc="-I$with_isl_include"
5905 if test "x${with_isl_lib}" != x; then
5906 isllibs="-L$with_isl_lib"
5908 if test "x${islinc}" = x && test "x${isllibs}" = x \
5909 && test -d ${srcdir}/isl; then
5910 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5911 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5912 ENABLE_ISL_CHECK=no
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5914 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5919 if test "${ENABLE_ISL_CHECK}" = yes ; then
5920 _isl_saved_CFLAGS=$CFLAGS
5921 _isl_saved_LDFLAGS=$LDFLAGS
5922 _isl_saved_LIBS=$LIBS
5924 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5925 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5926 LIBS="${_isl_saved_LIBS} -lisl"
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5929 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5930 if test "$cross_compiling" = yes; then :
5931 gcc_cv_isl=yes
5932 else
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 #include <isl/version.h>
5936 #include <string.h>
5938 main ()
5940 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5941 return 1;
5944 return 0;
5946 _ACEOF
5947 if ac_fn_c_try_run "$LINENO"; then :
5948 gcc_cv_isl=yes
5949 else
5950 gcc_cv_isl=no
5952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5953 conftest.$ac_objext conftest.beam conftest.$ac_ext
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5957 $as_echo "$gcc_cv_isl" >&6; }
5959 CFLAGS=$_isl_saved_CFLAGS
5960 LDFLAGS=$_isl_saved_LDFLAGS
5961 LIBS=$_isl_saved_LIBS
5965 if test "${gcc_cv_isl}" = no ; then
5967 if test "${ENABLE_ISL_CHECK}" = yes ; then
5968 _isl_saved_CFLAGS=$CFLAGS
5969 _isl_saved_LDFLAGS=$LDFLAGS
5970 _isl_saved_LIBS=$LIBS
5972 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5973 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5974 LIBS="${_isl_saved_LIBS} -lisl"
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5977 $as_echo_n "checking for version 0.11 of ISL... " >&6; }
5978 if test "$cross_compiling" = yes; then :
5979 gcc_cv_isl=yes
5980 else
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 #include <isl/version.h>
5984 #include <string.h>
5986 main ()
5988 if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5989 return 1;
5992 return 0;
5994 _ACEOF
5995 if ac_fn_c_try_run "$LINENO"; then :
5996 gcc_cv_isl=yes
5997 else
5998 gcc_cv_isl=no
6000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6001 conftest.$ac_objext conftest.beam conftest.$ac_ext
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6005 $as_echo "$gcc_cv_isl" >&6; }
6007 CFLAGS=$_isl_saved_CFLAGS
6008 LDFLAGS=$_isl_saved_LDFLAGS
6009 LIBS=$_isl_saved_LIBS
6013 if test "${gcc_cv_isl}" = no ; then
6015 if test "${ENABLE_ISL_CHECK}" = yes ; then
6016 _isl_saved_CFLAGS=$CFLAGS
6017 _isl_saved_LDFLAGS=$LDFLAGS
6018 _isl_saved_LIBS=$LIBS
6020 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6021 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6022 LIBS="${_isl_saved_LIBS} -lisl"
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
6025 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
6026 if test "$cross_compiling" = yes; then :
6027 gcc_cv_isl=yes
6028 else
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 #include <isl/version.h>
6032 #include <string.h>
6034 main ()
6036 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6037 return 1;
6040 return 0;
6042 _ACEOF
6043 if ac_fn_c_try_run "$LINENO"; then :
6044 gcc_cv_isl=yes
6045 else
6046 gcc_cv_isl=no
6048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6049 conftest.$ac_objext conftest.beam conftest.$ac_ext
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6053 $as_echo "$gcc_cv_isl" >&6; }
6055 CFLAGS=$_isl_saved_CFLAGS
6056 LDFLAGS=$_isl_saved_LDFLAGS
6057 LIBS=$_isl_saved_LIBS
6067 if test "x${with_isl}" = xno; then
6068 graphite_requested=no
6069 elif test "x${with_isl}" != x \
6070 || test "x${with_isl_include}" != x \
6071 || test "x${with_isl_lib}" != x ; then
6072 graphite_requested=yes
6073 else
6074 graphite_requested=no
6079 if test "${gcc_cv_isl}" = no ; then
6080 isllibs=
6081 islinc=
6084 if test "${graphite_requested}" = yes \
6085 && test "x${isllibs}" = x \
6086 && test "x${islinc}" = x ; then
6088 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6093 if test "x$gcc_cv_isl" != "xno"; then
6094 # Check for CLOOG
6097 # Check whether --with-cloog-include was given.
6098 if test "${with_cloog_include+set}" = set; then :
6099 withval=$with_cloog_include;
6103 # Check whether --with-cloog-lib was given.
6104 if test "${with_cloog_lib+set}" = set; then :
6105 withval=$with_cloog_lib;
6109 # Check whether --enable-cloog-version-check was given.
6110 if test "${enable_cloog_version_check+set}" = set; then :
6111 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6112 else
6113 ENABLE_CLOOG_CHECK=yes
6117 # Initialize clooglibs and clooginc.
6118 case $with_cloog in
6120 clooglibs=
6121 clooginc=
6123 "" | yes)
6126 clooglibs="-L$with_cloog/lib"
6127 clooginc="-I$with_cloog/include"
6129 esac
6130 if test "x${with_cloog_include}" != x ; then
6131 clooginc="-I$with_cloog_include"
6133 if test "x${with_cloog_lib}" != x; then
6134 clooglibs="-L$with_cloog_lib"
6136 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6137 && test -d ${srcdir}/cloog; then
6138 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6139 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6140 ENABLE_CLOOG_CHECK=no
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6142 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6145 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6146 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6152 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6153 _cloog_saved_CFLAGS=$CFLAGS
6154 _cloog_saved_LDFLAGS=$LDFLAGS
6156 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6157 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6160 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163 #include "cloog/version.h"
6165 main ()
6167 #if CLOOG_VERSION_MAJOR != 0 \
6168 || CLOOG_VERSION_MINOR != 17 \
6169 || CLOOG_VERSION_REVISION < 0
6170 choke me
6171 #endif
6173 return 0;
6175 _ACEOF
6176 if ac_fn_c_try_compile "$LINENO"; then :
6177 gcc_cv_cloog=yes
6178 else
6179 gcc_cv_cloog=no
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6183 $as_echo "$gcc_cv_cloog" >&6; }
6185 CFLAGS=$_cloog_saved_CFLAGS
6186 LDFLAGS=$_cloog_saved_LDFLAGS
6190 if test "${gcc_cv_cloog}" = no ; then
6194 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6195 _cloog_saved_CFLAGS=$CFLAGS
6196 _cloog_saved_LDFLAGS=$LDFLAGS
6198 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6199 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6202 $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6205 #include "cloog/version.h"
6207 main ()
6209 #if CLOOG_VERSION_MAJOR != 0 \
6210 || CLOOG_VERSION_MINOR != 18 \
6211 || CLOOG_VERSION_REVISION < 0
6212 choke me
6213 #endif
6215 return 0;
6217 _ACEOF
6218 if ac_fn_c_try_compile "$LINENO"; then :
6219 gcc_cv_cloog=yes
6220 else
6221 gcc_cv_cloog=no
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6225 $as_echo "$gcc_cv_cloog" >&6; }
6227 CFLAGS=$_cloog_saved_CFLAGS
6228 LDFLAGS=$_cloog_saved_LDFLAGS
6238 if test "x${with_cloog}" = xno; then
6239 graphite_requested=no
6240 elif test "x${with_cloog}" != x \
6241 || test "x${with_cloog_include}" != x \
6242 || test "x${with_cloog_lib}" != x ; then
6243 graphite_requested=yes
6244 else
6245 graphite_requested=no
6250 if test "${gcc_cv_cloog}" = no ; then
6251 clooglibs=
6252 clooginc=
6255 if test "${graphite_requested}" = yes \
6256 && test "x${clooglibs}" = x \
6257 && test "x${clooginc}" = x ; then
6259 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6266 # If either the ISL or the CLooG check failed, disable builds of in-tree
6267 # variants of both
6268 if test "x$with_isl" = xno ||
6269 test "x$with_cloog" = xno ||
6270 test "x$gcc_cv_cloog" = xno ||
6271 test "x$gcc_cv_isl" = xno; then
6272 noconfigdirs="$noconfigdirs cloog isl"
6273 islinc=
6274 clooginc=
6275 clooglibs=
6283 # Check for LTO support.
6284 # Check whether --enable-lto was given.
6285 if test "${enable_lto+set}" = set; then :
6286 enableval=$enable_lto; enable_lto=$enableval
6287 else
6288 enable_lto=yes; default_enable_lto=yes
6295 target_elf=no
6296 case $target in
6297 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6298 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6299 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6300 target_elf=no
6303 target_elf=yes
6305 esac
6307 if test $target_elf = yes; then :
6308 # ELF platforms build the lto-plugin always.
6309 build_lto_plugin=yes
6311 else
6312 if test x"$default_enable_lto" = x"yes" ; then
6313 case $target in
6314 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6315 # On other non-ELF platforms, LTO has yet to be validated.
6316 *) enable_lto=no ;;
6317 esac
6318 else
6319 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6320 # It would also be nice to check the binutils support, but we don't
6321 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6322 # warn during gcc/ subconfigure; unless you're bootstrapping with
6323 # -flto it won't be needed until after installation anyway.
6324 case $target in
6325 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6326 *) if test x"$enable_lto" = x"yes"; then
6327 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6330 esac
6332 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6333 # Build it unless LTO was explicitly disabled.
6334 case $target in
6335 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6336 *) ;;
6337 esac
6342 # Check whether --enable-linker-plugin-configure-flags was given.
6343 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6344 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6345 else
6346 extra_linker_plugin_configure_flags=
6350 # Check whether --enable-linker-plugin-flags was given.
6351 if test "${enable_linker_plugin_flags+set}" = set; then :
6352 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6353 else
6354 extra_linker_plugin_flags=
6360 # By default, C and C++ are the only stage 1 languages.
6361 stage1_languages=,c,
6363 # Target libraries that we bootstrap.
6364 bootstrap_target_libs=,target-libgcc,
6366 # Figure out what language subdirectories are present.
6367 # Look if the user specified --enable-languages="..."; if not, use
6368 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6369 # go away some day.
6370 # NB: embedded tabs in this IF block -- do not untabify
6371 if test -d ${srcdir}/gcc; then
6372 if test x"${enable_languages+set}" != xset; then
6373 if test x"${LANGUAGES+set}" = xset; then
6374 enable_languages="${LANGUAGES}"
6375 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6376 else
6377 enable_languages=all
6379 else
6380 if test x"${enable_languages}" = x ||
6381 test x"${enable_languages}" = xyes;
6382 then
6383 echo configure.in: --enable-languages needs at least one language argument 1>&2
6384 exit 1
6387 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6389 # 'f95' is the old name for the 'fortran' language. We issue a warning
6390 # and make the substitution.
6391 case ,${enable_languages}, in
6392 *,f95,*)
6393 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6394 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6396 esac
6398 # If bootstrapping, C++ must be enabled.
6399 case ",$enable_languages,:$enable_bootstrap" in
6400 *,c++,*:*) ;;
6401 *:yes)
6402 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6403 enable_languages="${enable_languages},c++"
6404 else
6405 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6408 esac
6410 # First scan to see if an enabled language requires some other language.
6411 # We assume that a given config-lang.in will list all the language
6412 # front ends it requires, even if some are required indirectly.
6413 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6414 case ${lang_frag} in
6415 ..) ;;
6416 # The odd quoting in the next line works around
6417 # an apparent bug in bash 1.12 on linux.
6418 ${srcdir}/gcc/[*]/config-lang.in) ;;
6420 # From the config-lang.in, get $language, $lang_requires, and
6421 # $lang_requires_boot_languages.
6422 language=
6423 lang_requires=
6424 lang_requires_boot_languages=
6425 . ${lang_frag}
6426 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6427 case ,${enable_languages}, in
6428 *,$other,*) ;;
6429 *,all,*) ;;
6430 *,$language,*)
6431 echo " \`$other' language required by \`$language'; enabling" 1>&2
6432 enable_languages="${enable_languages},${other}"
6434 esac
6435 done
6436 for other in ${lang_requires_boot_languages} ; do
6437 if test "$other" != "c"; then
6438 case ,${enable_stage1_languages}, in
6439 *,$other,*) ;;
6440 *,all,*) ;;
6442 case ,${enable_languages}, in
6443 *,$language,*)
6444 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6445 enable_stage1_languages="$enable_stage1_languages,${other}"
6447 esac
6449 esac
6451 done
6453 esac
6454 done
6456 new_enable_languages=,c,
6458 # If LTO is enabled, add the LTO front end.
6459 extra_host_libiberty_configure_flags=
6460 if test "$enable_lto" = "yes" ; then
6461 case ,${enable_languages}, in
6462 *,lto,*) ;;
6463 *) enable_languages="${enable_languages},lto" ;;
6464 esac
6465 if test "${build_lto_plugin}" = "yes" ; then
6466 configdirs="$configdirs lto-plugin"
6467 extra_host_libiberty_configure_flags=--enable-shared
6472 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6473 potential_languages=,c,
6475 enabled_target_libs=
6476 disabled_target_libs=
6478 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6479 case ${lang_frag} in
6480 ..) ;;
6481 # The odd quoting in the next line works around
6482 # an apparent bug in bash 1.12 on linux.
6483 ${srcdir}/gcc/[*]/config-lang.in) ;;
6485 # From the config-lang.in, get $language, $target_libs,
6486 # $lang_dirs, $boot_language, and $build_by_default
6487 language=
6488 target_libs=
6489 lang_dirs=
6490 subdir_requires=
6491 boot_language=no
6492 build_by_default=yes
6493 . ${lang_frag}
6494 if test x${language} = x; then
6495 echo "${lang_frag} doesn't set \$language." 1>&2
6496 exit 1
6499 if test "$language" = "c++"; then
6500 boot_language=yes
6503 add_this_lang=no
6504 case ,${enable_languages}, in
6505 *,${language},*)
6506 # Language was explicitly selected; include it
6507 # unless it is C, which is enabled by default.
6508 if test "$language" != "c"; then
6509 add_this_lang=yes
6512 *,all,*)
6513 # 'all' was selected, select it if it is a default language
6514 if test "$language" != "c"; then
6515 add_this_lang=${build_by_default}
6518 esac
6520 # Disable languages that need other directories if these aren't available.
6521 for i in $subdir_requires; do
6522 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6523 case ,${enable_languages}, in
6524 *,${language},*)
6525 # Specifically requested language; tell them.
6526 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6529 # Silently disable.
6530 add_this_lang=unsupported
6532 esac
6533 done
6535 # Disable Ada if no preexisting GNAT is available.
6536 case ,${enable_languages},:${language}:${have_gnat} in
6537 *,${language},*:ada:no)
6538 # Specifically requested language; tell them.
6539 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6541 *:ada:no)
6542 # Silently disable.
6543 add_this_lang=unsupported
6545 esac
6547 # Disable a language that is unsupported by the target.
6548 case " $unsupported_languages " in
6549 *" $language "*)
6550 add_this_lang=unsupported
6552 esac
6554 case $add_this_lang in
6555 unsupported)
6556 # Remove language-dependent dirs.
6557 disabled_target_libs="$disabled_target_libs $target_libs"
6558 noconfigdirs="$noconfigdirs $lang_dirs"
6561 # Remove language-dependent dirs; still show language as supported.
6562 disabled_target_libs="$disabled_target_libs $target_libs"
6563 noconfigdirs="$noconfigdirs $lang_dirs"
6564 potential_languages="${potential_languages}${language},"
6566 yes)
6567 new_enable_languages="${new_enable_languages}${language},"
6568 potential_languages="${potential_languages}${language},"
6569 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6570 enabled_target_libs="$enabled_target_libs $target_libs"
6571 case "${boot_language}:,$enable_stage1_languages," in
6572 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6573 # Add to (comma-separated) list of stage 1 languages.
6574 case ",$stage1_languages," in
6575 *,$language,* | ,yes, | ,all,) ;;
6576 *) stage1_languages="${stage1_languages}${language}," ;;
6577 esac
6578 # We need to bootstrap any supporting libraries.
6579 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6581 esac
6583 esac
6585 esac
6586 done
6588 # Add target libraries which are only needed for disabled languages
6589 # to noconfigdirs.
6590 if test -n "$disabled_target_libs"; then
6591 for dir in $disabled_target_libs; do
6592 case " $enabled_target_libs " in
6593 *" ${dir} "*) ;;
6594 *) noconfigdirs="$noconfigdirs $dir" ;;
6595 esac
6596 done
6599 # Check whether --enable-stage1-languages was given.
6600 if test "${enable_stage1_languages+set}" = set; then :
6601 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6602 ,no,|,,)
6603 # Set it to something that will have no effect in the loop below
6604 enable_stage1_languages=c ;;
6605 ,yes,)
6606 enable_stage1_languages=`echo $new_enable_languages | \
6607 sed -e "s/^,//" -e "s/,$//" ` ;;
6608 *,all,*)
6609 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6610 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6611 esac
6613 # Add "good" languages from enable_stage1_languages to stage1_languages,
6614 # while "bad" languages go in missing_languages. Leave no duplicates.
6615 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6616 case $potential_languages in
6617 *,$i,*)
6618 case $stage1_languages in
6619 *,$i,*) ;;
6620 *) stage1_languages="$stage1_languages$i," ;;
6621 esac ;;
6623 case $missing_languages in
6624 *,$i,*) ;;
6625 *) missing_languages="$missing_languages$i," ;;
6626 esac ;;
6627 esac
6628 done
6632 # Remove leading/trailing commas that were added for simplicity
6633 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6634 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6635 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6636 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6638 if test "x$missing_languages" != x; then
6639 as_fn_error "
6640 The following requested languages could not be built: ${missing_languages}
6641 Supported languages are: ${potential_languages}" "$LINENO" 5
6643 if test "x$new_enable_languages" != "x$enable_languages"; then
6644 echo The following languages will be built: ${new_enable_languages}
6645 enable_languages="$new_enable_languages"
6649 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6652 # Handle --disable-<component> generically.
6653 for dir in $configdirs $build_configdirs $target_configdirs ; do
6654 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6655 varname=`echo $dirname | sed -e s/+/_/g`
6656 if eval test x\${enable_${varname}} "=" xno ; then
6657 noconfigdirs="$noconfigdirs $dir"
6659 done
6661 # Check for Boehm's garbage collector
6662 # Check whether --enable-objc-gc was given.
6663 if test "${enable_objc_gc+set}" = set; then :
6664 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6665 *,objc,*:*:yes:*target-boehm-gc*)
6666 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6668 esac
6672 # Make sure we only build Boehm's garbage collector if required.
6673 case ,${enable_languages},:${enable_objc_gc} in
6674 *,objc,*:yes)
6675 # Keep target-boehm-gc if requested for Objective-C.
6678 # Otherwise remove target-boehm-gc depending on target-libjava.
6679 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6680 noconfigdirs="$noconfigdirs target-boehm-gc"
6683 esac
6686 # Check whether --with-upc-pts was given.
6687 if test "${with_upc_pts+set}" = set; then :
6688 withval=$with_upc_pts;
6689 if test "$withval"x != "struct"x && test "$withval"x != "packed"x; then \
6690 as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
6696 # Disable libcilkrts, libitm, libsanitizer, libvtv if we're not building C++
6697 case ,${enable_languages}, in
6698 *,c++,*)
6699 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6700 case "${noconfigdirs}" in
6701 *target-libstdc++-v3*)
6702 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6704 *) ;;
6705 esac
6708 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6710 esac
6712 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6713 # $build_configdirs and $target_configdirs.
6714 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6716 notsupp=""
6717 for dir in . $skipdirs $noconfigdirs ; do
6718 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6719 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6720 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6721 if test -r $srcdir/$dirname/configure ; then
6722 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6723 true
6724 else
6725 notsupp="$notsupp $dir"
6729 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6730 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6731 if test -r $srcdir/$dirname/configure ; then
6732 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6733 true
6734 else
6735 notsupp="$notsupp $dir"
6739 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6740 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6741 if test -r $srcdir/$dirname/configure ; then
6742 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6743 true
6744 else
6745 notsupp="$notsupp $dir"
6749 done
6751 # Quietly strip out all directories which aren't configurable in this tree.
6752 # This relies on all configurable subdirectories being autoconfiscated, which
6753 # is now the case.
6754 build_configdirs_all="$build_configdirs"
6755 build_configdirs=
6756 for i in ${build_configdirs_all} ; do
6757 j=`echo $i | sed -e s/build-//g`
6758 if test -f ${srcdir}/$j/configure ; then
6759 build_configdirs="${build_configdirs} $i"
6761 done
6763 configdirs_all="$configdirs"
6764 configdirs=
6765 for i in ${configdirs_all} ; do
6766 if test -f ${srcdir}/$i/configure ; then
6767 configdirs="${configdirs} $i"
6769 done
6771 target_configdirs_all="$target_configdirs"
6772 target_configdirs=
6773 for i in ${target_configdirs_all} ; do
6774 j=`echo $i | sed -e s/target-//g`
6775 if test -f ${srcdir}/$j/configure ; then
6776 target_configdirs="${target_configdirs} $i"
6778 done
6780 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6781 # so we have to add it after the preceding checks.
6782 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6783 then
6784 case " $configdirs " in
6785 *" libiberty "*)
6786 # If we can build libiberty, we can also build libiberty-linker-plugin.
6787 configdirs="$configdirs libiberty-linker-plugin"
6788 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6789 --with-libiberty=../libiberty-linker-plugin";;
6791 as_fn_error "libiberty missing" "$LINENO" 5;;
6792 esac
6795 # Produce a warning message for the subdirs we can't configure.
6796 # This isn't especially interesting in the Cygnus tree, but in the individual
6797 # FSF releases, it's important to let people know when their machine isn't
6798 # supported by the one or two programs in a package.
6800 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6801 # If $appdirs is non-empty, at least one of those directories must still
6802 # be configured, or we error out. (E.g., if the gas release supports a
6803 # specified target in some subdirs but not the gas subdir, we shouldn't
6804 # pretend that all is well.)
6805 if test -n "$appdirs" ; then
6806 for dir in $appdirs ; do
6807 if test -r $dir/Makefile.in ; then
6808 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6809 appdirs=""
6810 break
6812 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6813 appdirs=""
6814 break
6817 done
6818 if test -n "$appdirs" ; then
6819 echo "*** This configuration is not supported by this package." 1>&2
6820 exit 1
6823 # Okay, some application will build, or we don't care to check. Still
6824 # notify of subdirs not getting built.
6825 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6826 echo " ${notsupp}" 1>&2
6827 echo " (Any other directories should still work fine.)" 1>&2
6830 case "$host" in
6831 *msdosdjgpp*)
6832 enable_gdbtk=no ;;
6833 esac
6835 # To find our prefix, in gcc_cv_tool_prefix.
6837 # The user is always right.
6838 if test "${PATH_SEPARATOR+set}" != set; then
6839 echo "#! /bin/sh" >conf$$.sh
6840 echo "exit 0" >>conf$$.sh
6841 chmod +x conf$$.sh
6842 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6843 PATH_SEPARATOR=';'
6844 else
6845 PATH_SEPARATOR=:
6847 rm -f conf$$.sh
6852 if test "x$exec_prefix" = xNONE; then
6853 if test "x$prefix" = xNONE; then
6854 gcc_cv_tool_prefix=$ac_default_prefix
6855 else
6856 gcc_cv_tool_prefix=$prefix
6858 else
6859 gcc_cv_tool_prefix=$exec_prefix
6862 # If there is no compiler in the tree, use the PATH only. In any
6863 # case, if there is no compiler in the tree nobody should use
6864 # AS_FOR_TARGET and LD_FOR_TARGET.
6865 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6866 gcc_version=`cat $srcdir/gcc/BASE-VER`
6867 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6868 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6869 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6870 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6871 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6872 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6873 else
6874 gcc_cv_tool_dirs=
6877 if test x$build = x$target && test -n "$md_exec_prefix"; then
6878 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6883 copy_dirs=
6886 # Check whether --with-build-sysroot was given.
6887 if test "${with_build_sysroot+set}" = set; then :
6888 withval=$with_build_sysroot; if test x"$withval" != x ; then
6889 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6891 else
6892 SYSROOT_CFLAGS_FOR_TARGET=
6898 # Check whether --with-debug-prefix-map was given.
6899 if test "${with_debug_prefix_map+set}" = set; then :
6900 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6901 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6902 for debug_map in $withval; do
6903 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6904 done
6906 else
6907 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6912 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6913 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6914 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6915 # We want to ensure that TARGET libraries (which we know are built with
6916 # gcc) are built with "-O2 -g", so include those options when setting
6917 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6918 if test "x$CFLAGS_FOR_TARGET" = x; then
6919 CFLAGS_FOR_TARGET=$CFLAGS
6920 case " $CFLAGS " in
6921 *" -O2 "*) ;;
6922 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6923 esac
6924 case " $CFLAGS " in
6925 *" -g "* | *" -g3 "*) ;;
6926 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6927 esac
6931 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6932 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6933 case " $CXXFLAGS " in
6934 *" -O2 "*) ;;
6935 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6936 esac
6937 case " $CXXFLAGS " in
6938 *" -g "* | *" -g3 "*) ;;
6939 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6940 esac
6946 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6947 # the named directory are copied to $(tooldir)/sys-include.
6948 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6949 if test x${is_cross_compiler} = xno ; then
6950 echo 1>&2 '***' --with-headers is only supported when cross compiling
6951 exit 1
6953 if test x"${with_headers}" != xyes ; then
6954 x=${gcc_cv_tool_prefix}
6955 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6959 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6960 # the name directories are copied to $(tooldir)/lib. Multiple directories
6961 # are permitted.
6962 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6963 if test x${is_cross_compiler} = xno ; then
6964 echo 1>&2 '***' --with-libs is only supported when cross compiling
6965 exit 1
6967 if test x"${with_libs}" != xyes ; then
6968 # Copy the libraries in reverse order, so that files in the first named
6969 # library override files in subsequent libraries.
6970 x=${gcc_cv_tool_prefix}
6971 for l in ${with_libs}; do
6972 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6973 done
6977 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6979 # This is done by determining whether or not the appropriate directory
6980 # is available, and by checking whether or not specific configurations
6981 # have requested that this magic not happen.
6983 # The command line options always override the explicit settings in
6984 # configure.in, and the settings in configure.in override this magic.
6986 # If the default for a toolchain is to use GNU as and ld, and you don't
6987 # want to do that, then you should use the --without-gnu-as and
6988 # --without-gnu-ld options for the configure script. Similarly, if
6989 # the default is to use the included zlib and you don't want to do that,
6990 # you should use the --with-system-zlib option for the configure script.
6992 if test x${use_gnu_as} = x &&
6993 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6994 with_gnu_as=yes
6995 extra_host_args="$extra_host_args --with-gnu-as"
6998 if test x${use_gnu_ld} = x &&
6999 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7000 with_gnu_ld=yes
7001 extra_host_args="$extra_host_args --with-gnu-ld"
7004 if test x${use_included_zlib} = x &&
7005 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7007 else
7008 with_system_zlib=yes
7009 extra_host_args="$extra_host_args --with-system-zlib"
7012 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7013 # can detect this case.
7015 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7016 with_newlib=yes
7017 extra_host_args="$extra_host_args --with-newlib"
7020 # Handle ${copy_dirs}
7021 set fnord ${copy_dirs}
7022 shift
7023 while test $# != 0 ; do
7024 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7026 else
7027 echo Copying $1 to $2
7029 # Use the install script to create the directory and all required
7030 # parent directories.
7031 if test -d $2 ; then
7033 else
7034 echo >config.temp
7035 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7038 # Copy the directory, assuming we have tar.
7039 # FIXME: Should we use B in the second tar? Not all systems support it.
7040 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7042 # It is the responsibility of the user to correctly adjust all
7043 # symlinks. If somebody can figure out how to handle them correctly
7044 # here, feel free to add the code.
7046 echo $1 > $2/COPIED
7048 shift; shift
7049 done
7051 # Determine a target-dependent exec_prefix that the installed
7052 # gcc will search in. Keep this list sorted by triplet, with
7053 # the *-*-osname triplets last.
7054 md_exec_prefix=
7055 case "${target}" in
7056 i[34567]86-pc-msdosdjgpp*)
7057 md_exec_prefix=/dev/env/DJDIR/bin
7059 *-*-hpux* | \
7060 *-*-nto-qnx* | \
7061 *-*-solaris2*)
7062 md_exec_prefix=/usr/ccs/bin
7064 esac
7066 extra_arflags_for_target=
7067 extra_nmflags_for_target=
7068 extra_ranlibflags_for_target=
7069 target_makefile_frag=/dev/null
7070 case "${target}" in
7071 spu-*-*)
7072 target_makefile_frag="config/mt-spu"
7074 mips*-sde-elf* | mips*-mti-elf*)
7075 target_makefile_frag="config/mt-sde"
7077 mipsisa*-*-elfoabi*)
7078 target_makefile_frag="config/mt-mips-elfoabi"
7080 mips*-*-*linux* | mips*-*-gnu*)
7081 target_makefile_frag="config/mt-mips-gnu"
7083 nios2-*-elf*)
7084 target_makefile_frag="config/mt-nios2-elf"
7086 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7087 target_makefile_frag="config/mt-gnu"
7089 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7090 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7091 # commands to handle both 32-bit and 64-bit objects. These flags are
7092 # harmless if we're using GNU nm or ar.
7093 extra_arflags_for_target=" -X32_64"
7094 extra_nmflags_for_target=" -B -X32_64"
7096 esac
7098 alphaieee_frag=/dev/null
7099 case $target in
7100 alpha*-*-*)
7101 # This just makes sure to use the -mieee option to build target libs.
7102 # This should probably be set individually by each library.
7103 alphaieee_frag="config/mt-alphaieee"
7105 esac
7107 # If --enable-target-optspace always use -Os instead of -O2 to build
7108 # the target libraries, similarly if it is not specified, use -Os
7109 # on selected platforms.
7110 ospace_frag=/dev/null
7111 case "${enable_target_optspace}:${target}" in
7112 yes:*)
7113 ospace_frag="config/mt-ospace"
7115 :d30v-*)
7116 ospace_frag="config/mt-d30v"
7118 :m32r-* | :d10v-* | :fr30-*)
7119 ospace_frag="config/mt-ospace"
7121 no:* | :*)
7124 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7126 esac
7128 # Some systems (e.g., one of the i386-aix systems the gas testers are
7129 # using) don't handle "\$" correctly, so don't use it here.
7130 tooldir='${exec_prefix}'/${target_noncanonical}
7131 build_tooldir=${tooldir}
7133 # Create a .gdbinit file which runs the one in srcdir
7134 # and tells GDB to look there for source files.
7136 if test -r ${srcdir}/.gdbinit ; then
7137 case ${srcdir} in
7138 .) ;;
7139 *) cat > ./.gdbinit <<EOF
7140 # ${NO_EDIT}
7141 dir ${srcdir}
7142 dir .
7143 source ${srcdir}/.gdbinit
7146 esac
7149 # Make sure that the compiler is able to generate an executable. If it
7150 # can't, we are probably in trouble. We don't care whether we can run the
7151 # executable--we might be using a cross compiler--we only care whether it
7152 # can be created. At this point the main configure script has set CC.
7153 we_are_ok=no
7154 echo "int main () { return 0; }" > conftest.c
7155 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7156 if test $? = 0 ; then
7157 if test -s conftest || test -s conftest.exe ; then
7158 we_are_ok=yes
7161 case $we_are_ok in
7163 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7164 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7165 rm -f conftest*
7166 exit 1
7168 esac
7169 rm -f conftest*
7171 # Decide which environment variable is used to find dynamic libraries.
7172 case "${host}" in
7173 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7174 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7175 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7176 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7177 esac
7179 # On systems where the dynamic library environment variable is PATH,
7180 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7181 # built executables to PATH.
7182 if test "$RPATH_ENVVAR" = PATH; then
7183 GCC_SHLIB_SUBDIR=/shlib
7184 else
7185 GCC_SHLIB_SUBDIR=
7188 # Adjust the toplevel makefile according to whether bootstrap was selected.
7189 case $enable_bootstrap in
7190 yes)
7191 bootstrap_suffix=bootstrap
7192 BUILD_CONFIG=bootstrap-debug
7195 bootstrap_suffix=no-bootstrap
7196 BUILD_CONFIG=
7198 esac
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7201 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7204 # Check whether --with-build-config was given.
7205 if test "${with_build_config+set}" = set; then :
7206 withval=$with_build_config; case $with_build_config in
7207 yes) with_build_config= ;;
7208 no) with_build_config= BUILD_CONFIG= ;;
7209 esac
7213 if test "x${with_build_config}" != x; then
7214 BUILD_CONFIG=$with_build_config
7215 else
7216 case $BUILD_CONFIG in
7217 bootstrap-debug)
7218 if echo "int f (void) { return 0; }" > conftest.c &&
7219 ${CC} -c conftest.c &&
7220 mv conftest.o conftest.o.g0 &&
7221 ${CC} -c -g conftest.c &&
7222 mv conftest.o conftest.o.g &&
7223 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7225 else
7226 BUILD_CONFIG=
7228 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7230 esac
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7233 $as_echo "$BUILD_CONFIG" >&6; }
7236 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7238 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7239 # Check whether --enable-vtable-verify was given.
7240 if test "${enable_vtable_verify+set}" = set; then :
7241 enableval=$enable_vtable_verify; case "$enableval" in
7242 yes) enable_vtable_verify=yes ;;
7243 no) enable_vtable_verify=no ;;
7244 *) enable_vtable_verify=no;;
7245 esac
7246 else
7247 enable_vtable_verify=no
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7251 $as_echo "$enable_vtable_verify" >&6; }
7253 # Record target_configdirs and the configure arguments for target and
7254 # build configuration in Makefile.
7255 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7256 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7257 bootstrap_fixincludes=no
7259 # If we are building libgomp, bootstrap it.
7260 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7261 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7264 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7265 # or bootstrap-ubsan, bootstrap it.
7266 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7267 case "$BUILD_CONFIG" in
7268 *bootstrap-asan* | *bootstrap-ubsan* )
7269 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7270 bootstrap_fixincludes=yes
7272 esac
7275 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7276 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7277 test "$enable_vtable_verify" != no; then
7278 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7281 # Determine whether gdb needs tk/tcl or not.
7282 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7283 # and in that case we want gdb to be built without tk. Ugh!
7284 # In fact I believe gdb is the *only* package directly dependent on tk,
7285 # so we should be able to put the 'maybe's in unconditionally and
7286 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7287 # 100% sure that that's safe though.
7289 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7290 case "$enable_gdbtk" in
7292 GDB_TK="" ;;
7293 yes)
7294 GDB_TK="${gdb_tk}" ;;
7296 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7297 # distro. Eventually someone will fix this and move Insight, nee
7298 # gdbtk to a separate directory.
7299 if test -d ${srcdir}/gdb/gdbtk ; then
7300 GDB_TK="${gdb_tk}"
7301 else
7302 GDB_TK=""
7305 esac
7306 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7307 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7309 # Strip out unwanted targets.
7311 # While at that, we remove Makefiles if we were started for recursive
7312 # configuration, so that the top-level Makefile reconfigures them,
7313 # like we used to do when configure itself was recursive.
7315 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7316 # but now we're fixing up the Makefile ourselves with the additional
7317 # commands passed to AC_CONFIG_FILES. Use separate variables
7318 # extrasub-{build,host,target} not because there is any reason to split
7319 # the substitutions up that way, but only to remain below the limit of
7320 # 99 commands in a script, for HP-UX sed.
7321 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7323 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7324 yes:yes:*\ gold\ *:*,c++,*) ;;
7325 yes:yes:*\ gold\ *:*)
7326 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7328 esac
7330 extrasub_build=
7331 for module in ${build_configdirs} ; do
7332 if test -z "${no_recursion}" \
7333 && test -f ${build_subdir}/${module}/Makefile; then
7334 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7335 rm -f ${build_subdir}/${module}/Makefile
7337 extrasub_build="$extrasub_build
7338 /^@if build-$module\$/d
7339 /^@endif build-$module\$/d
7340 /^@if build-$module-$bootstrap_suffix\$/d
7341 /^@endif build-$module-$bootstrap_suffix\$/d"
7342 done
7343 extrasub_host=
7344 for module in ${configdirs} ; do
7345 if test -z "${no_recursion}"; then
7346 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7347 if test -f ${file}; then
7348 echo 1>&2 "*** removing ${file} to force reconfigure"
7349 rm -f ${file}
7351 done
7353 case ${module},${bootstrap_fixincludes} in
7354 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7355 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7356 esac
7357 extrasub_host="$extrasub_host
7358 /^@if $module\$/d
7359 /^@endif $module\$/d
7360 /^@if $module-$host_bootstrap_suffix\$/d
7361 /^@endif $module-$host_bootstrap_suffix\$/d"
7362 done
7363 extrasub_target=
7364 for module in ${target_configdirs} ; do
7365 if test -z "${no_recursion}" \
7366 && test -f ${target_subdir}/${module}/Makefile; then
7367 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7368 rm -f ${target_subdir}/${module}/Makefile
7371 # We only bootstrap target libraries listed in bootstrap_target_libs.
7372 case $bootstrap_target_libs in
7373 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7374 *) target_bootstrap_suffix=no-bootstrap ;;
7375 esac
7377 extrasub_target="$extrasub_target
7378 /^@if target-$module\$/d
7379 /^@endif target-$module\$/d
7380 /^@if target-$module-$target_bootstrap_suffix\$/d
7381 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7382 done
7384 # Do the final fixup along with target modules.
7385 extrasub_target="$extrasub_target
7386 /^@if /,/^@endif /d"
7388 # Create the serialization dependencies. This uses a temporary file.
7390 # Check whether --enable-serial-configure was given.
7391 if test "${enable_serial_configure+set}" = set; then :
7392 enableval=$enable_serial_configure;
7396 case ${enable_serial_configure} in
7397 yes)
7398 enable_serial_build_configure=yes
7399 enable_serial_host_configure=yes
7400 enable_serial_target_configure=yes
7402 esac
7404 # These force 'configure's to be done one at a time, to avoid problems
7405 # with contention over a shared config.cache.
7406 rm -f serdep.tmp
7407 echo '# serdep.tmp' > serdep.tmp
7408 olditem=
7409 test "x${enable_serial_build_configure}" = xyes &&
7410 for item in ${build_configdirs} ; do
7411 case ${olditem} in
7412 "") ;;
7413 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7414 esac
7415 olditem=${item}
7416 done
7417 olditem=
7418 test "x${enable_serial_host_configure}" = xyes &&
7419 for item in ${configdirs} ; do
7420 case ${olditem} in
7421 "") ;;
7422 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7423 esac
7424 olditem=${item}
7425 done
7426 olditem=
7427 test "x${enable_serial_target_configure}" = xyes &&
7428 for item in ${target_configdirs} ; do
7429 case ${olditem} in
7430 "") ;;
7431 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7432 esac
7433 olditem=${item}
7434 done
7435 serialization_dependencies=serdep.tmp
7438 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7439 # target, nonopt, and variable assignments. These are the ones we
7440 # might not want to pass down to subconfigures. The exception being
7441 # --cache-file=/dev/null, which is used to turn off the use of cache
7442 # files altogether, and which should be passed on to subconfigures.
7443 # Also strip program-prefix, program-suffix, and program-transform-name,
7444 # so that we can pass down a consistent program-transform-name.
7445 baseargs=
7446 tbaseargs=
7447 keep_next=no
7448 skip_next=no
7449 eval "set -- $ac_configure_args"
7450 for ac_arg
7452 if test X"$skip_next" = X"yes"; then
7453 skip_next=no
7454 continue
7456 if test X"$keep_next" = X"yes"; then
7457 case $ac_arg in
7458 *\'*)
7459 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7460 esac
7461 baseargs="$baseargs '$ac_arg'"
7462 tbaseargs="$tbaseargs '$ac_arg'"
7463 keep_next=no
7464 continue
7467 # Handle separated arguments. Based on the logic generated by
7468 # autoconf 2.59.
7469 case $ac_arg in
7470 *=* | --config-cache | -C | -disable-* | --disable-* \
7471 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7472 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7473 | -with-* | --with-* | -without-* | --without-* | --x)
7474 separate_arg=no
7477 separate_arg=yes
7480 separate_arg=no
7482 esac
7484 skip_targ=no
7485 case $ac_arg in
7487 --with-* | --without-*)
7488 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7490 case $libopt in
7491 *[-_]include)
7492 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7494 *[-_]lib)
7495 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7498 lib=$libopt
7500 esac
7503 case $lib in
7504 mpc | mpfr | gmp | cloog)
7505 # If we're processing --with-$lib, --with-$lib-include or
7506 # --with-$lib-lib, for one of the libs above, and target is
7507 # different from host, don't pass the current argument to any
7508 # target library's configure.
7509 if test x$is_cross_compiler = xyes; then
7510 skip_targ=yes
7513 esac
7515 esac
7517 case "$ac_arg" in
7518 --cache-file=/dev/null | \
7519 -cache-file=/dev/null )
7520 # Handled here to avoid the test to skip args below.
7521 baseargs="$baseargs '$ac_arg'"
7522 tbaseargs="$tbaseargs '$ac_arg'"
7523 # Assert: $separate_arg should always be no.
7524 keep_next=$separate_arg
7526 --no*)
7527 continue
7529 --c* | \
7530 --sr* | \
7531 --ho* | \
7532 --bu* | \
7533 --t* | \
7534 --program-* | \
7535 -cache_file* | \
7536 -srcdir* | \
7537 -host* | \
7538 -build* | \
7539 -target* | \
7540 -program-prefix* | \
7541 -program-suffix* | \
7542 -program-transform-name* )
7543 skip_next=$separate_arg
7544 continue
7547 # An option. Add it.
7548 case $ac_arg in
7549 *\'*)
7550 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7551 esac
7552 baseargs="$baseargs '$ac_arg'"
7553 if test X"$skip_targ" = Xno; then
7554 tbaseargs="$tbaseargs '$ac_arg'"
7556 keep_next=$separate_arg
7559 # Either a variable assignment, or a nonopt (triplet). Don't
7560 # pass it down; let the Makefile handle this.
7561 continue
7563 esac
7564 done
7565 # Remove the initial space we just introduced and, as these will be
7566 # expanded by make, quote '$'.
7567 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7569 # Add in --program-transform-name, after --program-prefix and
7570 # --program-suffix have been applied to it. Autoconf has already
7571 # doubled dollar signs and backslashes in program_transform_name; we want
7572 # the backslashes un-doubled, and then the entire thing wrapped in single
7573 # quotes, because this will be expanded first by make and then by the shell.
7574 # Also, because we want to override the logic in subdir configure scripts to
7575 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7576 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7577 ${program_transform_name}
7578 EOF_SED
7579 gcc_transform_name=`cat conftestsed.out`
7580 rm -f conftestsed.out
7581 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7582 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7583 if test "$silent" = yes; then
7584 baseargs="$baseargs --silent"
7585 tbaseargs="$tbaseargs --silent"
7587 baseargs="$baseargs --disable-option-checking"
7588 tbaseargs="$tbaseargs --disable-option-checking"
7590 # Record and document user additions to sub configure arguments.
7595 # For the build-side libraries, we just need to pretend we're native,
7596 # and not use the same cache file. Multilibs are neither needed nor
7597 # desired.
7598 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7600 # For host modules, accept cache file option, or specification as blank.
7601 case "${cache_file}" in
7602 "") # empty
7603 cache_file_option="" ;;
7604 /* | [A-Za-z]:[\\/]* ) # absolute path
7605 cache_file_option="--cache-file=${cache_file}" ;;
7606 *) # relative path
7607 cache_file_option="--cache-file=../${cache_file}" ;;
7608 esac
7610 # Host dirs don't like to share a cache file either, horribly enough.
7611 # This seems to be due to autoconf 2.5x stupidity.
7612 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7614 target_configargs="$target_configargs ${tbaseargs}"
7616 # Passing a --with-cross-host argument lets the target libraries know
7617 # whether they are being built with a cross-compiler or being built
7618 # native. However, it would be better to use other mechanisms to make the
7619 # sorts of decisions they want to make on this basis. Please consider
7620 # this option to be deprecated. FIXME.
7621 if test x${is_cross_compiler} = xyes ; then
7622 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7625 # Special user-friendly check for native x86_64-linux build, if
7626 # multilib is not explicitly enabled.
7627 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7628 x86_64-*linux*:yes:$build:$build:)
7629 # Make sure we have a developement environment that handles 32-bit
7630 dev64=no
7631 echo "int main () { return 0; }" > conftest.c
7632 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7633 if test $? = 0 ; then
7634 if test -s conftest || test -s conftest.exe ; then
7635 dev64=yes
7638 rm -f conftest*
7639 if test x${dev64} != xyes ; then
7640 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7643 esac
7645 # Default to --enable-multilib.
7646 if test x${enable_multilib} = x ; then
7647 target_configargs="--enable-multilib ${target_configargs}"
7650 # Pass --with-newlib if appropriate. Note that target_configdirs has
7651 # changed from the earlier setting of with_newlib.
7652 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7653 target_configargs="--with-newlib ${target_configargs}"
7656 # Different target subdirs use different values of certain variables
7657 # (notably CXX). Worse, multilibs use *lots* of different values.
7658 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7659 # it doesn't automatically accept command-line overrides of them.
7660 # This means it's not safe for target subdirs to share a cache file,
7661 # which is disgusting, but there you have it. Hopefully this can be
7662 # fixed in future. It's still worthwhile to use a cache file for each
7663 # directory. I think.
7665 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7666 # We need to pass --target, as newer autoconf's requires consistency
7667 # for target_alias and gcc doesn't manage it consistently.
7668 target_configargs="--cache-file=./config.cache ${target_configargs}"
7670 FLAGS_FOR_TARGET=
7671 case " $target_configdirs " in
7672 *" newlib "*)
7673 case " $target_configargs " in
7674 *" --with-newlib "*)
7675 case "$target" in
7676 *-cygwin*)
7677 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7679 esac
7681 # If we're not building GCC, don't discard standard headers.
7682 if test -d ${srcdir}/gcc; then
7683 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7685 if test "${build}" != "${host}"; then
7686 # On Canadian crosses, CC_FOR_TARGET will have already been set
7687 # by `configure', so we won't have an opportunity to add -Bgcc/
7688 # to it. This is right: we don't want to search that directory
7689 # for binaries, but we want the header files in there, so add
7690 # them explicitly.
7691 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7693 # Someone might think of using the pre-installed headers on
7694 # Canadian crosses, in case the installed compiler is not fully
7695 # compatible with the compiler being built. In this case, it
7696 # would be better to flag an error than risking having
7697 # incompatible object files being constructed. We can't
7698 # guarantee that an error will be flagged, but let's hope the
7699 # compiler will do it, when presented with incompatible header
7700 # files.
7704 case "${target}-${is_cross_compiler}" in
7705 i[3456789]86-*-linux*-no)
7706 # Here host == target, so we don't need to build gcc,
7707 # so we don't want to discard standard headers.
7708 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7711 # If we're building newlib, use its generic headers last, but search
7712 # for any libc-related directories first (so make it the last -B
7713 # switch).
7714 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7716 # If we're building libgloss, find the startup file, simulator library
7717 # and linker script.
7718 case " $target_configdirs " in
7719 *" libgloss "*)
7720 # Look for startup file, simulator library and maybe linker script.
7721 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7722 # Look for libnosys.a in case the target needs it.
7723 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7724 # Most targets have the linker script in the source directory.
7725 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7727 esac
7729 esac
7731 esac
7733 esac
7735 case "$target" in
7736 x86_64-*mingw* | *-w64-mingw*)
7737 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7738 # however, use a symlink named 'mingw' in ${prefix} .
7739 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7741 *-mingw*)
7742 # MinGW can't be handled as Cygwin above since it does not use newlib.
7743 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'
7745 esac
7747 # Allow the user to override the flags for
7748 # our build compiler if desired.
7749 if test x"${build}" = x"${host}" ; then
7750 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7751 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7752 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7755 # On Canadian crosses, we'll be searching the right directories for
7756 # the previously-installed cross compiler, so don't bother to add
7757 # flags for directories within the install tree of the compiler
7758 # being built; programs in there won't even run.
7759 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7760 # Search for pre-installed headers if nothing else fits.
7761 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7764 if test "x${use_gnu_ld}" = x &&
7765 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7766 # Arrange for us to find uninstalled linker scripts.
7767 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7770 # Search for other target-specific linker scripts and such.
7771 case "${target}" in
7772 mep*)
7773 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7775 esac
7777 # UPC linker script check
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7779 $as_echo_n "checking for UPC link script support... " >&6; }
7780 # Check whether --enable-upc-link-script was given.
7781 if test "${enable_upc_link_script+set}" = set; then :
7782 enableval=$enable_upc_link_script;
7783 case $enableval in
7784 yes | no) ;;
7786 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7788 esac
7790 else
7792 if test x${use_gnu_ld} != xno ; then
7793 case "$target" in
7794 # disable linker script for Apple Mac OS X
7795 *-*-darwin*)
7796 enable_upc_link_script=no
7799 enable_upc_link_script=yes
7801 esac
7802 else
7803 enable_upc_link_script=no
7805 if test "$enable_upc_link_script" = yes; then
7806 target_configargs="${target_configargs} --enable-upc-link-script"
7807 host_configargs="${host_configargs} --enable-upc-link-script"
7812 if test "$enable_upc_link_script" = yes; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7814 $as_echo "yes" >&6; };
7815 else
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; };
7821 # Makefile fragments.
7822 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7824 eval fragval=\$$frag
7825 if test $fragval != /dev/null; then
7826 eval $frag=${srcdir}/$fragval
7828 done
7834 # Miscellanea: directories, flags, etc.
7843 # Build module lists & subconfigure args.
7847 # Host module lists & subconfigure args.
7852 # Target module lists & subconfigure args.
7856 # Build tools.
7875 # Generate default definitions for YACC, M4, LEX and other programs that run
7876 # on the build machine. These are used if the Makefile can't locate these
7877 # programs in objdir.
7878 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7880 for ac_prog in 'bison -y' byacc yacc
7882 # Extract the first word of "$ac_prog", so it can be a program name with args.
7883 set dummy $ac_prog; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if test "${ac_cv_prog_YACC+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 if test -n "$YACC"; then
7890 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899 ac_cv_prog_YACC="$ac_prog"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7903 done
7904 done
7905 IFS=$as_save_IFS
7909 YACC=$ac_cv_prog_YACC
7910 if test -n "$YACC"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7912 $as_echo "$YACC" >&6; }
7913 else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7919 test -n "$YACC" && break
7920 done
7921 test -n "$YACC" || YACC="$MISSING bison -y"
7923 case " $build_configdirs " in
7924 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7925 esac
7927 for ac_prog in bison
7929 # Extract the first word of "$ac_prog", so it can be a program name with args.
7930 set dummy $ac_prog; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if test "${ac_cv_prog_BISON+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 if test -n "$BISON"; then
7937 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7938 else
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7942 IFS=$as_save_IFS
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7946 ac_cv_prog_BISON="$ac_prog"
7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 break 2
7950 done
7951 done
7952 IFS=$as_save_IFS
7956 BISON=$ac_cv_prog_BISON
7957 if test -n "$BISON"; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7959 $as_echo "$BISON" >&6; }
7960 else
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7966 test -n "$BISON" && break
7967 done
7968 test -n "$BISON" || BISON="$MISSING bison"
7970 case " $build_configdirs " in
7971 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7972 esac
7974 for ac_prog in gm4 gnum4 m4
7976 # Extract the first word of "$ac_prog", so it can be a program name with args.
7977 set dummy $ac_prog; ac_word=$2
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 $as_echo_n "checking for $ac_word... " >&6; }
7980 if test "${ac_cv_prog_M4+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 if test -n "$M4"; then
7984 ac_cv_prog_M4="$M4" # Let the user override the test.
7985 else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7993 ac_cv_prog_M4="$ac_prog"
7994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 break 2
7997 done
7998 done
7999 IFS=$as_save_IFS
8003 M4=$ac_cv_prog_M4
8004 if test -n "$M4"; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8006 $as_echo "$M4" >&6; }
8007 else
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8013 test -n "$M4" && break
8014 done
8015 test -n "$M4" || M4="$MISSING m4"
8017 case " $build_configdirs " in
8018 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8019 esac
8021 for ac_prog in flex lex
8023 # Extract the first word of "$ac_prog", so it can be a program name with args.
8024 set dummy $ac_prog; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if test "${ac_cv_prog_LEX+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 if test -n "$LEX"; then
8031 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_prog_LEX="$ac_prog"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 break 2
8044 done
8045 done
8046 IFS=$as_save_IFS
8050 LEX=$ac_cv_prog_LEX
8051 if test -n "$LEX"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8053 $as_echo "$LEX" >&6; }
8054 else
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8060 test -n "$LEX" && break
8061 done
8062 test -n "$LEX" || LEX="$MISSING flex"
8064 case " $build_configdirs " in
8065 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8066 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8067 esac
8069 for ac_prog in flex
8071 # Extract the first word of "$ac_prog", so it can be a program name with args.
8072 set dummy $ac_prog; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if test "${ac_cv_prog_FLEX+set}" = set; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 if test -n "$FLEX"; then
8079 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_prog_FLEX="$ac_prog"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8092 done
8093 done
8094 IFS=$as_save_IFS
8098 FLEX=$ac_cv_prog_FLEX
8099 if test -n "$FLEX"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8101 $as_echo "$FLEX" >&6; }
8102 else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8108 test -n "$FLEX" && break
8109 done
8110 test -n "$FLEX" || FLEX="$MISSING flex"
8112 case " $build_configdirs " in
8113 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8114 esac
8116 for ac_prog in makeinfo
8118 # Extract the first word of "$ac_prog", so it can be a program name with args.
8119 set dummy $ac_prog; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 if test -n "$MAKEINFO"; then
8126 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135 ac_cv_prog_MAKEINFO="$ac_prog"
8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8139 done
8140 done
8141 IFS=$as_save_IFS
8145 MAKEINFO=$ac_cv_prog_MAKEINFO
8146 if test -n "$MAKEINFO"; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8148 $as_echo "$MAKEINFO" >&6; }
8149 else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }
8155 test -n "$MAKEINFO" && break
8156 done
8157 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8159 case " $build_configdirs " in
8160 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8163 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8164 # higher, else we use the "missing" dummy.
8165 if ${MAKEINFO} --version \
8166 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8168 else
8169 MAKEINFO="$MISSING makeinfo"
8173 esac
8175 # FIXME: expect and dejagnu may become build tools?
8177 for ac_prog in expect
8179 # Extract the first word of "$ac_prog", so it can be a program name with args.
8180 set dummy $ac_prog; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 if test -n "$EXPECT"; then
8187 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8196 ac_cv_prog_EXPECT="$ac_prog"
8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 break 2
8200 done
8201 done
8202 IFS=$as_save_IFS
8206 EXPECT=$ac_cv_prog_EXPECT
8207 if test -n "$EXPECT"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8209 $as_echo "$EXPECT" >&6; }
8210 else
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8216 test -n "$EXPECT" && break
8217 done
8218 test -n "$EXPECT" || EXPECT="expect"
8220 case " $configdirs " in
8221 *" expect "*)
8222 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8224 esac
8226 for ac_prog in runtest
8228 # Extract the first word of "$ac_prog", so it can be a program name with args.
8229 set dummy $ac_prog; ac_word=$2
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231 $as_echo_n "checking for $ac_word... " >&6; }
8232 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 if test -n "$RUNTEST"; then
8236 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8237 else
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8245 ac_cv_prog_RUNTEST="$ac_prog"
8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 break 2
8249 done
8250 done
8251 IFS=$as_save_IFS
8255 RUNTEST=$ac_cv_prog_RUNTEST
8256 if test -n "$RUNTEST"; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8258 $as_echo "$RUNTEST" >&6; }
8259 else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8265 test -n "$RUNTEST" && break
8266 done
8267 test -n "$RUNTEST" || RUNTEST="runtest"
8269 case " $configdirs " in
8270 *" dejagnu "*)
8271 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8273 esac
8276 # Host tools.
8277 ncn_tool_prefix=
8278 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8279 ncn_target_tool_prefix=
8280 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8284 if test -n "$AR"; then
8285 ac_cv_prog_AR=$AR
8286 elif test -n "$ac_cv_prog_AR"; then
8287 AR=$ac_cv_prog_AR
8290 if test -n "$ac_cv_prog_AR"; then
8291 for ncn_progname in ar; do
8292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8293 set dummy ${ncn_progname}; ac_word=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 $as_echo_n "checking for $ac_word... " >&6; }
8296 if test "${ac_cv_prog_AR+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 if test -n "$AR"; then
8300 ac_cv_prog_AR="$AR" # Let the user override the test.
8301 else
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 ac_cv_prog_AR="${ncn_progname}"
8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8313 done
8314 done
8315 IFS=$as_save_IFS
8319 AR=$ac_cv_prog_AR
8320 if test -n "$AR"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8322 $as_echo "$AR" >&6; }
8323 else
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 $as_echo "no" >&6; }
8329 done
8332 for ncn_progname in ar; do
8333 if test -n "$ncn_tool_prefix"; then
8334 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8335 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337 $as_echo_n "checking for $ac_word... " >&6; }
8338 if test "${ac_cv_prog_AR+set}" = set; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 if test -n "$AR"; then
8342 ac_cv_prog_AR="$AR" # Let the user override the test.
8343 else
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 break 2
8355 done
8356 done
8357 IFS=$as_save_IFS
8361 AR=$ac_cv_prog_AR
8362 if test -n "$AR"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8364 $as_echo "$AR" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8372 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8374 set dummy ${ncn_progname}; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if test "${ac_cv_prog_AR+set}" = set; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 if test -n "$AR"; then
8381 ac_cv_prog_AR="$AR" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8390 ac_cv_prog_AR="${ncn_progname}"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8394 done
8395 done
8396 IFS=$as_save_IFS
8400 AR=$ac_cv_prog_AR
8401 if test -n "$AR"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8403 $as_echo "$AR" >&6; }
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8411 test -n "$ac_cv_prog_AR" && break
8412 done
8414 if test -z "$ac_cv_prog_AR" ; then
8415 set dummy ar
8416 if test $build = $host ; then
8417 AR="$2"
8418 else
8419 AR="${ncn_tool_prefix}$2"
8425 if test -n "$AS"; then
8426 ac_cv_prog_AS=$AS
8427 elif test -n "$ac_cv_prog_AS"; then
8428 AS=$ac_cv_prog_AS
8431 if test -n "$ac_cv_prog_AS"; then
8432 for ncn_progname in as; do
8433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8434 set dummy ${ncn_progname}; ac_word=$2
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 $as_echo_n "checking for $ac_word... " >&6; }
8437 if test "${ac_cv_prog_AS+set}" = set; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 if test -n "$AS"; then
8441 ac_cv_prog_AS="$AS" # Let the user override the test.
8442 else
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8450 ac_cv_prog_AS="${ncn_progname}"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 break 2
8454 done
8455 done
8456 IFS=$as_save_IFS
8460 AS=$ac_cv_prog_AS
8461 if test -n "$AS"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8463 $as_echo "$AS" >&6; }
8464 else
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 $as_echo "no" >&6; }
8470 done
8473 for ncn_progname in as; do
8474 if test -n "$ncn_tool_prefix"; then
8475 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8476 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478 $as_echo_n "checking for $ac_word... " >&6; }
8479 if test "${ac_cv_prog_AS+set}" = set; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8482 if test -n "$AS"; then
8483 ac_cv_prog_AS="$AS" # Let the user override the test.
8484 else
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $PATH
8488 IFS=$as_save_IFS
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8492 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 break 2
8496 done
8497 done
8498 IFS=$as_save_IFS
8502 AS=$ac_cv_prog_AS
8503 if test -n "$AS"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8505 $as_echo "$AS" >&6; }
8506 else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8513 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8515 set dummy ${ncn_progname}; ac_word=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if test "${ac_cv_prog_AS+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 if test -n "$AS"; then
8522 ac_cv_prog_AS="$AS" # Let the user override the test.
8523 else
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_prog_AS="${ncn_progname}"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8535 done
8536 done
8537 IFS=$as_save_IFS
8541 AS=$ac_cv_prog_AS
8542 if test -n "$AS"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8544 $as_echo "$AS" >&6; }
8545 else
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8552 test -n "$ac_cv_prog_AS" && break
8553 done
8555 if test -z "$ac_cv_prog_AS" ; then
8556 set dummy as
8557 if test $build = $host ; then
8558 AS="$2"
8559 else
8560 AS="${ncn_tool_prefix}$2"
8566 if test -n "$DLLTOOL"; then
8567 ac_cv_prog_DLLTOOL=$DLLTOOL
8568 elif test -n "$ac_cv_prog_DLLTOOL"; then
8569 DLLTOOL=$ac_cv_prog_DLLTOOL
8572 if test -n "$ac_cv_prog_DLLTOOL"; then
8573 for ncn_progname in dlltool; do
8574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8575 set dummy ${ncn_progname}; ac_word=$2
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577 $as_echo_n "checking for $ac_word... " >&6; }
8578 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8579 $as_echo_n "(cached) " >&6
8580 else
8581 if test -n "$DLLTOOL"; then
8582 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8587 IFS=$as_save_IFS
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8591 ac_cv_prog_DLLTOOL="${ncn_progname}"
8592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 break 2
8595 done
8596 done
8597 IFS=$as_save_IFS
8601 DLLTOOL=$ac_cv_prog_DLLTOOL
8602 if test -n "$DLLTOOL"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8604 $as_echo "$DLLTOOL" >&6; }
8605 else
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8611 done
8614 for ncn_progname in dlltool; do
8615 if test -n "$ncn_tool_prefix"; then
8616 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8617 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619 $as_echo_n "checking for $ac_word... " >&6; }
8620 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 if test -n "$DLLTOOL"; then
8624 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8625 else
8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627 for as_dir in $PATH
8629 IFS=$as_save_IFS
8630 test -z "$as_dir" && as_dir=.
8631 for ac_exec_ext in '' $ac_executable_extensions; do
8632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8633 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8635 break 2
8637 done
8638 done
8639 IFS=$as_save_IFS
8643 DLLTOOL=$ac_cv_prog_DLLTOOL
8644 if test -n "$DLLTOOL"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8646 $as_echo "$DLLTOOL" >&6; }
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8654 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8656 set dummy ${ncn_progname}; ac_word=$2
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 $as_echo_n "checking for $ac_word... " >&6; }
8659 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8660 $as_echo_n "(cached) " >&6
8661 else
8662 if test -n "$DLLTOOL"; then
8663 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8664 else
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 for as_dir in $PATH
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8672 ac_cv_prog_DLLTOOL="${ncn_progname}"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 break 2
8676 done
8677 done
8678 IFS=$as_save_IFS
8682 DLLTOOL=$ac_cv_prog_DLLTOOL
8683 if test -n "$DLLTOOL"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8685 $as_echo "$DLLTOOL" >&6; }
8686 else
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8693 test -n "$ac_cv_prog_DLLTOOL" && break
8694 done
8696 if test -z "$ac_cv_prog_DLLTOOL" ; then
8697 set dummy dlltool
8698 if test $build = $host ; then
8699 DLLTOOL="$2"
8700 else
8701 DLLTOOL="${ncn_tool_prefix}$2"
8707 if test -n "$LD"; then
8708 ac_cv_prog_LD=$LD
8709 elif test -n "$ac_cv_prog_LD"; then
8710 LD=$ac_cv_prog_LD
8713 if test -n "$ac_cv_prog_LD"; then
8714 for ncn_progname in ld; do
8715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8716 set dummy ${ncn_progname}; ac_word=$2
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 $as_echo_n "checking for $ac_word... " >&6; }
8719 if test "${ac_cv_prog_LD+set}" = set; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 if test -n "$LD"; then
8723 ac_cv_prog_LD="$LD" # Let the user override the test.
8724 else
8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 for as_dir in $PATH
8728 IFS=$as_save_IFS
8729 test -z "$as_dir" && as_dir=.
8730 for ac_exec_ext in '' $ac_executable_extensions; do
8731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8732 ac_cv_prog_LD="${ncn_progname}"
8733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 break 2
8736 done
8737 done
8738 IFS=$as_save_IFS
8742 LD=$ac_cv_prog_LD
8743 if test -n "$LD"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8745 $as_echo "$LD" >&6; }
8746 else
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8752 done
8755 for ncn_progname in ld; do
8756 if test -n "$ncn_tool_prefix"; then
8757 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8758 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8760 $as_echo_n "checking for $ac_word... " >&6; }
8761 if test "${ac_cv_prog_LD+set}" = set; then :
8762 $as_echo_n "(cached) " >&6
8763 else
8764 if test -n "$LD"; then
8765 ac_cv_prog_LD="$LD" # Let the user override the test.
8766 else
8767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768 for as_dir in $PATH
8770 IFS=$as_save_IFS
8771 test -z "$as_dir" && as_dir=.
8772 for ac_exec_ext in '' $ac_executable_extensions; do
8773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8774 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8776 break 2
8778 done
8779 done
8780 IFS=$as_save_IFS
8784 LD=$ac_cv_prog_LD
8785 if test -n "$LD"; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8787 $as_echo "$LD" >&6; }
8788 else
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8790 $as_echo "no" >&6; }
8795 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8797 set dummy ${ncn_progname}; ac_word=$2
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799 $as_echo_n "checking for $ac_word... " >&6; }
8800 if test "${ac_cv_prog_LD+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 if test -n "$LD"; then
8804 ac_cv_prog_LD="$LD" # Let the user override the test.
8805 else
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807 for as_dir in $PATH
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8813 ac_cv_prog_LD="${ncn_progname}"
8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8817 done
8818 done
8819 IFS=$as_save_IFS
8823 LD=$ac_cv_prog_LD
8824 if test -n "$LD"; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8826 $as_echo "$LD" >&6; }
8827 else
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829 $as_echo "no" >&6; }
8834 test -n "$ac_cv_prog_LD" && break
8835 done
8837 if test -z "$ac_cv_prog_LD" ; then
8838 set dummy ld
8839 if test $build = $host ; then
8840 LD="$2"
8841 else
8842 LD="${ncn_tool_prefix}$2"
8848 if test -n "$LIPO"; then
8849 ac_cv_prog_LIPO=$LIPO
8850 elif test -n "$ac_cv_prog_LIPO"; then
8851 LIPO=$ac_cv_prog_LIPO
8854 if test -n "$ac_cv_prog_LIPO"; then
8855 for ncn_progname in lipo; do
8856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8857 set dummy ${ncn_progname}; ac_word=$2
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8859 $as_echo_n "checking for $ac_word... " >&6; }
8860 if test "${ac_cv_prog_LIPO+set}" = set; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 if test -n "$LIPO"; then
8864 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8865 else
8866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867 for as_dir in $PATH
8869 IFS=$as_save_IFS
8870 test -z "$as_dir" && as_dir=.
8871 for ac_exec_ext in '' $ac_executable_extensions; do
8872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8873 ac_cv_prog_LIPO="${ncn_progname}"
8874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 break 2
8877 done
8878 done
8879 IFS=$as_save_IFS
8883 LIPO=$ac_cv_prog_LIPO
8884 if test -n "$LIPO"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8886 $as_echo "$LIPO" >&6; }
8887 else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8893 done
8896 for ncn_progname in lipo; do
8897 if test -n "$ncn_tool_prefix"; then
8898 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8899 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901 $as_echo_n "checking for $ac_word... " >&6; }
8902 if test "${ac_cv_prog_LIPO+set}" = set; then :
8903 $as_echo_n "(cached) " >&6
8904 else
8905 if test -n "$LIPO"; then
8906 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8907 else
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8915 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 break 2
8919 done
8920 done
8921 IFS=$as_save_IFS
8925 LIPO=$ac_cv_prog_LIPO
8926 if test -n "$LIPO"; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8928 $as_echo "$LIPO" >&6; }
8929 else
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8936 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8938 set dummy ${ncn_progname}; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if test "${ac_cv_prog_LIPO+set}" = set; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 if test -n "$LIPO"; then
8945 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8946 else
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $PATH
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
8952 for ac_exec_ext in '' $ac_executable_extensions; do
8953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8954 ac_cv_prog_LIPO="${ncn_progname}"
8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8956 break 2
8958 done
8959 done
8960 IFS=$as_save_IFS
8964 LIPO=$ac_cv_prog_LIPO
8965 if test -n "$LIPO"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8967 $as_echo "$LIPO" >&6; }
8968 else
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8975 test -n "$ac_cv_prog_LIPO" && break
8976 done
8978 if test -z "$ac_cv_prog_LIPO" ; then
8979 set dummy lipo
8980 if test $build = $host ; then
8981 LIPO="$2"
8982 else
8983 LIPO="${ncn_tool_prefix}$2"
8989 if test -n "$NM"; then
8990 ac_cv_prog_NM=$NM
8991 elif test -n "$ac_cv_prog_NM"; then
8992 NM=$ac_cv_prog_NM
8995 if test -n "$ac_cv_prog_NM"; then
8996 for ncn_progname in nm; do
8997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8998 set dummy ${ncn_progname}; ac_word=$2
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9000 $as_echo_n "checking for $ac_word... " >&6; }
9001 if test "${ac_cv_prog_NM+set}" = set; then :
9002 $as_echo_n "(cached) " >&6
9003 else
9004 if test -n "$NM"; then
9005 ac_cv_prog_NM="$NM" # Let the user override the test.
9006 else
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9014 ac_cv_prog_NM="${ncn_progname}"
9015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9018 done
9019 done
9020 IFS=$as_save_IFS
9024 NM=$ac_cv_prog_NM
9025 if test -n "$NM"; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9027 $as_echo "$NM" >&6; }
9028 else
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9034 done
9037 for ncn_progname in nm; do
9038 if test -n "$ncn_tool_prefix"; then
9039 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9040 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042 $as_echo_n "checking for $ac_word... " >&6; }
9043 if test "${ac_cv_prog_NM+set}" = set; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 if test -n "$NM"; then
9047 ac_cv_prog_NM="$NM" # Let the user override the test.
9048 else
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
9055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9056 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 break 2
9060 done
9061 done
9062 IFS=$as_save_IFS
9066 NM=$ac_cv_prog_NM
9067 if test -n "$NM"; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9069 $as_echo "$NM" >&6; }
9070 else
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 $as_echo "no" >&6; }
9077 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9079 set dummy ${ncn_progname}; ac_word=$2
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 $as_echo_n "checking for $ac_word... " >&6; }
9082 if test "${ac_cv_prog_NM+set}" = set; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 if test -n "$NM"; then
9086 ac_cv_prog_NM="$NM" # Let the user override the test.
9087 else
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089 for as_dir in $PATH
9091 IFS=$as_save_IFS
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9095 ac_cv_prog_NM="${ncn_progname}"
9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9097 break 2
9099 done
9100 done
9101 IFS=$as_save_IFS
9105 NM=$ac_cv_prog_NM
9106 if test -n "$NM"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9108 $as_echo "$NM" >&6; }
9109 else
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9116 test -n "$ac_cv_prog_NM" && break
9117 done
9119 if test -z "$ac_cv_prog_NM" ; then
9120 set dummy nm
9121 if test $build = $host ; then
9122 NM="$2"
9123 else
9124 NM="${ncn_tool_prefix}$2"
9130 if test -n "$RANLIB"; then
9131 ac_cv_prog_RANLIB=$RANLIB
9132 elif test -n "$ac_cv_prog_RANLIB"; then
9133 RANLIB=$ac_cv_prog_RANLIB
9136 if test -n "$ac_cv_prog_RANLIB"; then
9137 for ncn_progname in ranlib; do
9138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9139 set dummy ${ncn_progname}; ac_word=$2
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9141 $as_echo_n "checking for $ac_word... " >&6; }
9142 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 if test -n "$RANLIB"; then
9146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9147 else
9148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149 for as_dir in $PATH
9151 IFS=$as_save_IFS
9152 test -z "$as_dir" && as_dir=.
9153 for ac_exec_ext in '' $ac_executable_extensions; do
9154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9155 ac_cv_prog_RANLIB="${ncn_progname}"
9156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9157 break 2
9159 done
9160 done
9161 IFS=$as_save_IFS
9165 RANLIB=$ac_cv_prog_RANLIB
9166 if test -n "$RANLIB"; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9168 $as_echo "$RANLIB" >&6; }
9169 else
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171 $as_echo "no" >&6; }
9175 done
9178 for ncn_progname in ranlib; do
9179 if test -n "$ncn_tool_prefix"; then
9180 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9181 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 if test -n "$RANLIB"; then
9188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9189 else
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in $PATH
9193 IFS=$as_save_IFS
9194 test -z "$as_dir" && as_dir=.
9195 for ac_exec_ext in '' $ac_executable_extensions; do
9196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9197 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9199 break 2
9201 done
9202 done
9203 IFS=$as_save_IFS
9207 RANLIB=$ac_cv_prog_RANLIB
9208 if test -n "$RANLIB"; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9210 $as_echo "$RANLIB" >&6; }
9211 else
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 $as_echo "no" >&6; }
9218 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9220 set dummy ${ncn_progname}; ac_word=$2
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9222 $as_echo_n "checking for $ac_word... " >&6; }
9223 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9224 $as_echo_n "(cached) " >&6
9225 else
9226 if test -n "$RANLIB"; then
9227 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9228 else
9229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9230 for as_dir in $PATH
9232 IFS=$as_save_IFS
9233 test -z "$as_dir" && as_dir=.
9234 for ac_exec_ext in '' $ac_executable_extensions; do
9235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9236 ac_cv_prog_RANLIB="${ncn_progname}"
9237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9238 break 2
9240 done
9241 done
9242 IFS=$as_save_IFS
9246 RANLIB=$ac_cv_prog_RANLIB
9247 if test -n "$RANLIB"; then
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9249 $as_echo "$RANLIB" >&6; }
9250 else
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 $as_echo "no" >&6; }
9257 test -n "$ac_cv_prog_RANLIB" && break
9258 done
9260 if test -z "$ac_cv_prog_RANLIB" ; then
9261 RANLIB="true"
9266 if test -n "$STRIP"; then
9267 ac_cv_prog_STRIP=$STRIP
9268 elif test -n "$ac_cv_prog_STRIP"; then
9269 STRIP=$ac_cv_prog_STRIP
9272 if test -n "$ac_cv_prog_STRIP"; then
9273 for ncn_progname in strip; do
9274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9275 set dummy ${ncn_progname}; ac_word=$2
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9277 $as_echo_n "checking for $ac_word... " >&6; }
9278 if test "${ac_cv_prog_STRIP+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9281 if test -n "$STRIP"; then
9282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9283 else
9284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9285 for as_dir in $PATH
9287 IFS=$as_save_IFS
9288 test -z "$as_dir" && as_dir=.
9289 for ac_exec_ext in '' $ac_executable_extensions; do
9290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9291 ac_cv_prog_STRIP="${ncn_progname}"
9292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 break 2
9295 done
9296 done
9297 IFS=$as_save_IFS
9301 STRIP=$ac_cv_prog_STRIP
9302 if test -n "$STRIP"; then
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9304 $as_echo "$STRIP" >&6; }
9305 else
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9307 $as_echo "no" >&6; }
9311 done
9314 for ncn_progname in strip; do
9315 if test -n "$ncn_tool_prefix"; then
9316 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9317 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319 $as_echo_n "checking for $ac_word... " >&6; }
9320 if test "${ac_cv_prog_STRIP+set}" = set; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 if test -n "$STRIP"; then
9324 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9325 else
9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327 for as_dir in $PATH
9329 IFS=$as_save_IFS
9330 test -z "$as_dir" && as_dir=.
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9333 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9335 break 2
9337 done
9338 done
9339 IFS=$as_save_IFS
9343 STRIP=$ac_cv_prog_STRIP
9344 if test -n "$STRIP"; then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9346 $as_echo "$STRIP" >&6; }
9347 else
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 $as_echo "no" >&6; }
9354 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9356 set dummy ${ncn_progname}; ac_word=$2
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9358 $as_echo_n "checking for $ac_word... " >&6; }
9359 if test "${ac_cv_prog_STRIP+set}" = set; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 if test -n "$STRIP"; then
9363 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9364 else
9365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366 for as_dir in $PATH
9368 IFS=$as_save_IFS
9369 test -z "$as_dir" && as_dir=.
9370 for ac_exec_ext in '' $ac_executable_extensions; do
9371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9372 ac_cv_prog_STRIP="${ncn_progname}"
9373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 break 2
9376 done
9377 done
9378 IFS=$as_save_IFS
9382 STRIP=$ac_cv_prog_STRIP
9383 if test -n "$STRIP"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9385 $as_echo "$STRIP" >&6; }
9386 else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9393 test -n "$ac_cv_prog_STRIP" && break
9394 done
9396 if test -z "$ac_cv_prog_STRIP" ; then
9397 STRIP="true"
9402 if test -n "$WINDRES"; then
9403 ac_cv_prog_WINDRES=$WINDRES
9404 elif test -n "$ac_cv_prog_WINDRES"; then
9405 WINDRES=$ac_cv_prog_WINDRES
9408 if test -n "$ac_cv_prog_WINDRES"; then
9409 for ncn_progname in windres; do
9410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9411 set dummy ${ncn_progname}; ac_word=$2
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413 $as_echo_n "checking for $ac_word... " >&6; }
9414 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 if test -n "$WINDRES"; then
9418 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9419 else
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 for as_dir in $PATH
9423 IFS=$as_save_IFS
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9427 ac_cv_prog_WINDRES="${ncn_progname}"
9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 break 2
9431 done
9432 done
9433 IFS=$as_save_IFS
9437 WINDRES=$ac_cv_prog_WINDRES
9438 if test -n "$WINDRES"; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9440 $as_echo "$WINDRES" >&6; }
9441 else
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9447 done
9450 for ncn_progname in windres; do
9451 if test -n "$ncn_tool_prefix"; then
9452 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9453 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455 $as_echo_n "checking for $ac_word... " >&6; }
9456 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 if test -n "$WINDRES"; then
9460 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9461 else
9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463 for as_dir in $PATH
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9469 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 break 2
9473 done
9474 done
9475 IFS=$as_save_IFS
9479 WINDRES=$ac_cv_prog_WINDRES
9480 if test -n "$WINDRES"; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9482 $as_echo "$WINDRES" >&6; }
9483 else
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485 $as_echo "no" >&6; }
9490 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9492 set dummy ${ncn_progname}; ac_word=$2
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494 $as_echo_n "checking for $ac_word... " >&6; }
9495 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 if test -n "$WINDRES"; then
9499 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9500 else
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9508 ac_cv_prog_WINDRES="${ncn_progname}"
9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2
9512 done
9513 done
9514 IFS=$as_save_IFS
9518 WINDRES=$ac_cv_prog_WINDRES
9519 if test -n "$WINDRES"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9521 $as_echo "$WINDRES" >&6; }
9522 else
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9529 test -n "$ac_cv_prog_WINDRES" && break
9530 done
9532 if test -z "$ac_cv_prog_WINDRES" ; then
9533 set dummy windres
9534 if test $build = $host ; then
9535 WINDRES="$2"
9536 else
9537 WINDRES="${ncn_tool_prefix}$2"
9543 if test -n "$WINDMC"; then
9544 ac_cv_prog_WINDMC=$WINDMC
9545 elif test -n "$ac_cv_prog_WINDMC"; then
9546 WINDMC=$ac_cv_prog_WINDMC
9549 if test -n "$ac_cv_prog_WINDMC"; then
9550 for ncn_progname in windmc; do
9551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9552 set dummy ${ncn_progname}; ac_word=$2
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9554 $as_echo_n "checking for $ac_word... " >&6; }
9555 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 if test -n "$WINDMC"; then
9559 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9560 else
9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 for as_dir in $PATH
9564 IFS=$as_save_IFS
9565 test -z "$as_dir" && as_dir=.
9566 for ac_exec_ext in '' $ac_executable_extensions; do
9567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9568 ac_cv_prog_WINDMC="${ncn_progname}"
9569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9570 break 2
9572 done
9573 done
9574 IFS=$as_save_IFS
9578 WINDMC=$ac_cv_prog_WINDMC
9579 if test -n "$WINDMC"; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9581 $as_echo "$WINDMC" >&6; }
9582 else
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584 $as_echo "no" >&6; }
9588 done
9591 for ncn_progname in windmc; do
9592 if test -n "$ncn_tool_prefix"; then
9593 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9594 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 $as_echo_n "checking for $ac_word... " >&6; }
9597 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 if test -n "$WINDMC"; then
9601 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9602 else
9603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604 for as_dir in $PATH
9606 IFS=$as_save_IFS
9607 test -z "$as_dir" && as_dir=.
9608 for ac_exec_ext in '' $ac_executable_extensions; do
9609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9610 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9612 break 2
9614 done
9615 done
9616 IFS=$as_save_IFS
9620 WINDMC=$ac_cv_prog_WINDMC
9621 if test -n "$WINDMC"; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9623 $as_echo "$WINDMC" >&6; }
9624 else
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9631 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9632 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9633 set dummy ${ncn_progname}; ac_word=$2
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9635 $as_echo_n "checking for $ac_word... " >&6; }
9636 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9637 $as_echo_n "(cached) " >&6
9638 else
9639 if test -n "$WINDMC"; then
9640 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9641 else
9642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643 for as_dir in $PATH
9645 IFS=$as_save_IFS
9646 test -z "$as_dir" && as_dir=.
9647 for ac_exec_ext in '' $ac_executable_extensions; do
9648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9649 ac_cv_prog_WINDMC="${ncn_progname}"
9650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9651 break 2
9653 done
9654 done
9655 IFS=$as_save_IFS
9659 WINDMC=$ac_cv_prog_WINDMC
9660 if test -n "$WINDMC"; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9662 $as_echo "$WINDMC" >&6; }
9663 else
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 $as_echo "no" >&6; }
9670 test -n "$ac_cv_prog_WINDMC" && break
9671 done
9673 if test -z "$ac_cv_prog_WINDMC" ; then
9674 set dummy windmc
9675 if test $build = $host ; then
9676 WINDMC="$2"
9677 else
9678 WINDMC="${ncn_tool_prefix}$2"
9684 if test -n "$OBJCOPY"; then
9685 ac_cv_prog_OBJCOPY=$OBJCOPY
9686 elif test -n "$ac_cv_prog_OBJCOPY"; then
9687 OBJCOPY=$ac_cv_prog_OBJCOPY
9690 if test -n "$ac_cv_prog_OBJCOPY"; then
9691 for ncn_progname in objcopy; do
9692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9693 set dummy ${ncn_progname}; ac_word=$2
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9695 $as_echo_n "checking for $ac_word... " >&6; }
9696 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 if test -n "$OBJCOPY"; then
9700 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9701 else
9702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 for as_dir in $PATH
9705 IFS=$as_save_IFS
9706 test -z "$as_dir" && as_dir=.
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9709 ac_cv_prog_OBJCOPY="${ncn_progname}"
9710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9711 break 2
9713 done
9714 done
9715 IFS=$as_save_IFS
9719 OBJCOPY=$ac_cv_prog_OBJCOPY
9720 if test -n "$OBJCOPY"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9722 $as_echo "$OBJCOPY" >&6; }
9723 else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9729 done
9732 for ncn_progname in objcopy; do
9733 if test -n "$ncn_tool_prefix"; then
9734 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9735 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9737 $as_echo_n "checking for $ac_word... " >&6; }
9738 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 if test -n "$OBJCOPY"; then
9742 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9743 else
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9747 IFS=$as_save_IFS
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9751 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9753 break 2
9755 done
9756 done
9757 IFS=$as_save_IFS
9761 OBJCOPY=$ac_cv_prog_OBJCOPY
9762 if test -n "$OBJCOPY"; then
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9764 $as_echo "$OBJCOPY" >&6; }
9765 else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9772 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9774 set dummy ${ncn_progname}; ac_word=$2
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776 $as_echo_n "checking for $ac_word... " >&6; }
9777 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 if test -n "$OBJCOPY"; then
9781 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9782 else
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in $PATH
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790 ac_cv_prog_OBJCOPY="${ncn_progname}"
9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9794 done
9795 done
9796 IFS=$as_save_IFS
9800 OBJCOPY=$ac_cv_prog_OBJCOPY
9801 if test -n "$OBJCOPY"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9803 $as_echo "$OBJCOPY" >&6; }
9804 else
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9811 test -n "$ac_cv_prog_OBJCOPY" && break
9812 done
9814 if test -z "$ac_cv_prog_OBJCOPY" ; then
9815 set dummy objcopy
9816 if test $build = $host ; then
9817 OBJCOPY="$2"
9818 else
9819 OBJCOPY="${ncn_tool_prefix}$2"
9825 if test -n "$OBJDUMP"; then
9826 ac_cv_prog_OBJDUMP=$OBJDUMP
9827 elif test -n "$ac_cv_prog_OBJDUMP"; then
9828 OBJDUMP=$ac_cv_prog_OBJDUMP
9831 if test -n "$ac_cv_prog_OBJDUMP"; then
9832 for ncn_progname in objdump; do
9833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9834 set dummy ${ncn_progname}; ac_word=$2
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9838 $as_echo_n "(cached) " >&6
9839 else
9840 if test -n "$OBJDUMP"; then
9841 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9842 else
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 for as_dir in $PATH
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9850 ac_cv_prog_OBJDUMP="${ncn_progname}"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 break 2
9854 done
9855 done
9856 IFS=$as_save_IFS
9860 OBJDUMP=$ac_cv_prog_OBJDUMP
9861 if test -n "$OBJDUMP"; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9863 $as_echo "$OBJDUMP" >&6; }
9864 else
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9870 done
9873 for ncn_progname in objdump; do
9874 if test -n "$ncn_tool_prefix"; then
9875 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9876 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9878 $as_echo_n "checking for $ac_word... " >&6; }
9879 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9880 $as_echo_n "(cached) " >&6
9881 else
9882 if test -n "$OBJDUMP"; then
9883 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9884 else
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9892 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 break 2
9896 done
9897 done
9898 IFS=$as_save_IFS
9902 OBJDUMP=$ac_cv_prog_OBJDUMP
9903 if test -n "$OBJDUMP"; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9905 $as_echo "$OBJDUMP" >&6; }
9906 else
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9913 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9915 set dummy ${ncn_progname}; ac_word=$2
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9917 $as_echo_n "checking for $ac_word... " >&6; }
9918 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9919 $as_echo_n "(cached) " >&6
9920 else
9921 if test -n "$OBJDUMP"; then
9922 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9923 else
9924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925 for as_dir in $PATH
9927 IFS=$as_save_IFS
9928 test -z "$as_dir" && as_dir=.
9929 for ac_exec_ext in '' $ac_executable_extensions; do
9930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9931 ac_cv_prog_OBJDUMP="${ncn_progname}"
9932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9933 break 2
9935 done
9936 done
9937 IFS=$as_save_IFS
9941 OBJDUMP=$ac_cv_prog_OBJDUMP
9942 if test -n "$OBJDUMP"; then
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9944 $as_echo "$OBJDUMP" >&6; }
9945 else
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9952 test -n "$ac_cv_prog_OBJDUMP" && break
9953 done
9955 if test -z "$ac_cv_prog_OBJDUMP" ; then
9956 set dummy objdump
9957 if test $build = $host ; then
9958 OBJDUMP="$2"
9959 else
9960 OBJDUMP="${ncn_tool_prefix}$2"
9966 if test -n "$READELF"; then
9967 ac_cv_prog_READELF=$READELF
9968 elif test -n "$ac_cv_prog_READELF"; then
9969 READELF=$ac_cv_prog_READELF
9972 if test -n "$ac_cv_prog_READELF"; then
9973 for ncn_progname in readelf; do
9974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9975 set dummy ${ncn_progname}; ac_word=$2
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 $as_echo_n "checking for $ac_word... " >&6; }
9978 if test "${ac_cv_prog_READELF+set}" = set; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 if test -n "$READELF"; then
9982 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9983 else
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9991 ac_cv_prog_READELF="${ncn_progname}"
9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9995 done
9996 done
9997 IFS=$as_save_IFS
10001 READELF=$ac_cv_prog_READELF
10002 if test -n "$READELF"; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10004 $as_echo "$READELF" >&6; }
10005 else
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007 $as_echo "no" >&6; }
10011 done
10014 for ncn_progname in readelf; do
10015 if test -n "$ncn_tool_prefix"; then
10016 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10017 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10019 $as_echo_n "checking for $ac_word... " >&6; }
10020 if test "${ac_cv_prog_READELF+set}" = set; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 if test -n "$READELF"; then
10024 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10025 else
10026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027 for as_dir in $PATH
10029 IFS=$as_save_IFS
10030 test -z "$as_dir" && as_dir=.
10031 for ac_exec_ext in '' $ac_executable_extensions; do
10032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10033 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 break 2
10037 done
10038 done
10039 IFS=$as_save_IFS
10043 READELF=$ac_cv_prog_READELF
10044 if test -n "$READELF"; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10046 $as_echo "$READELF" >&6; }
10047 else
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049 $as_echo "no" >&6; }
10054 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10056 set dummy ${ncn_progname}; ac_word=$2
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058 $as_echo_n "checking for $ac_word... " >&6; }
10059 if test "${ac_cv_prog_READELF+set}" = set; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 if test -n "$READELF"; then
10063 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10064 else
10065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066 for as_dir in $PATH
10068 IFS=$as_save_IFS
10069 test -z "$as_dir" && as_dir=.
10070 for ac_exec_ext in '' $ac_executable_extensions; do
10071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10072 ac_cv_prog_READELF="${ncn_progname}"
10073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 break 2
10076 done
10077 done
10078 IFS=$as_save_IFS
10082 READELF=$ac_cv_prog_READELF
10083 if test -n "$READELF"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10085 $as_echo "$READELF" >&6; }
10086 else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10093 test -n "$ac_cv_prog_READELF" && break
10094 done
10096 if test -z "$ac_cv_prog_READELF" ; then
10097 set dummy readelf
10098 if test $build = $host ; then
10099 READELF="$2"
10100 else
10101 READELF="${ncn_tool_prefix}$2"
10110 # Target tools.
10112 # Check whether --with-build-time-tools was given.
10113 if test "${with_build_time_tools+set}" = set; then :
10114 withval=$with_build_time_tools; case x"$withval" in
10115 x/*) ;;
10117 with_build_time_tools=
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10119 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10121 esac
10122 else
10123 with_build_time_tools=
10129 if test -n "$CC_FOR_TARGET"; then
10130 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10131 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10132 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10135 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10136 for ncn_progname in cc gcc; do
10137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10138 set dummy ${ncn_progname}; ac_word=$2
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140 $as_echo_n "checking for $ac_word... " >&6; }
10141 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 if test -n "$CC_FOR_TARGET"; then
10145 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10146 else
10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148 for as_dir in $PATH
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
10153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10154 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 break 2
10158 done
10159 done
10160 IFS=$as_save_IFS
10164 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10165 if test -n "$CC_FOR_TARGET"; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10167 $as_echo "$CC_FOR_TARGET" >&6; }
10168 else
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170 $as_echo "no" >&6; }
10174 done
10177 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10178 for ncn_progname in cc gcc; do
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10180 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10181 if test -x $with_build_time_tools/${ncn_progname}; then
10182 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10184 $as_echo "yes" >&6; }
10185 break
10186 else
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10190 done
10193 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10194 for ncn_progname in cc gcc; do
10195 if test -n "$ncn_target_tool_prefix"; then
10196 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10197 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10201 $as_echo_n "(cached) " >&6
10202 else
10203 if test -n "$CC_FOR_TARGET"; then
10204 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10205 else
10206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10207 for as_dir in $PATH
10209 IFS=$as_save_IFS
10210 test -z "$as_dir" && as_dir=.
10211 for ac_exec_ext in '' $ac_executable_extensions; do
10212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10213 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10215 break 2
10217 done
10218 done
10219 IFS=$as_save_IFS
10223 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10224 if test -n "$CC_FOR_TARGET"; then
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10226 $as_echo "$CC_FOR_TARGET" >&6; }
10227 else
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229 $as_echo "no" >&6; }
10234 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10236 set dummy ${ncn_progname}; ac_word=$2
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10238 $as_echo_n "checking for $ac_word... " >&6; }
10239 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 if test -n "$CC_FOR_TARGET"; then
10243 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10244 else
10245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10246 for as_dir in $PATH
10248 IFS=$as_save_IFS
10249 test -z "$as_dir" && as_dir=.
10250 for ac_exec_ext in '' $ac_executable_extensions; do
10251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10252 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10254 break 2
10256 done
10257 done
10258 IFS=$as_save_IFS
10262 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10263 if test -n "$CC_FOR_TARGET"; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10265 $as_echo "$CC_FOR_TARGET" >&6; }
10266 else
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10273 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10274 done
10277 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10278 set dummy cc gcc
10279 if test $build = $target ; then
10280 CC_FOR_TARGET="$2"
10281 else
10282 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10284 else
10285 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10290 if test -n "$CXX_FOR_TARGET"; then
10291 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10292 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10293 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10296 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10297 for ncn_progname in c++ g++ cxx gxx; do
10298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10299 set dummy ${ncn_progname}; ac_word=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 if test -n "$CXX_FOR_TARGET"; then
10306 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10307 else
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in $PATH
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10315 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10319 done
10320 done
10321 IFS=$as_save_IFS
10325 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10326 if test -n "$CXX_FOR_TARGET"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10328 $as_echo "$CXX_FOR_TARGET" >&6; }
10329 else
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10335 done
10338 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10339 for ncn_progname in c++ g++ cxx gxx; do
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10341 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10342 if test -x $with_build_time_tools/${ncn_progname}; then
10343 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10345 $as_echo "yes" >&6; }
10346 break
10347 else
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 $as_echo "no" >&6; }
10351 done
10354 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10355 for ncn_progname in c++ g++ cxx gxx; do
10356 if test -n "$ncn_target_tool_prefix"; then
10357 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10358 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10360 $as_echo_n "checking for $ac_word... " >&6; }
10361 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 if test -n "$CXX_FOR_TARGET"; then
10365 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10366 else
10367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368 for as_dir in $PATH
10370 IFS=$as_save_IFS
10371 test -z "$as_dir" && as_dir=.
10372 for ac_exec_ext in '' $ac_executable_extensions; do
10373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10374 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10376 break 2
10378 done
10379 done
10380 IFS=$as_save_IFS
10384 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10385 if test -n "$CXX_FOR_TARGET"; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10387 $as_echo "$CXX_FOR_TARGET" >&6; }
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10395 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10397 set dummy ${ncn_progname}; ac_word=$2
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10399 $as_echo_n "checking for $ac_word... " >&6; }
10400 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10401 $as_echo_n "(cached) " >&6
10402 else
10403 if test -n "$CXX_FOR_TARGET"; then
10404 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10405 else
10406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407 for as_dir in $PATH
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
10411 for ac_exec_ext in '' $ac_executable_extensions; do
10412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10413 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10415 break 2
10417 done
10418 done
10419 IFS=$as_save_IFS
10423 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10424 if test -n "$CXX_FOR_TARGET"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10426 $as_echo "$CXX_FOR_TARGET" >&6; }
10427 else
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10434 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10435 done
10438 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10439 set dummy c++ g++ cxx gxx
10440 if test $build = $target ; then
10441 CXX_FOR_TARGET="$2"
10442 else
10443 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10445 else
10446 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10451 if test -n "$GCC_FOR_TARGET"; then
10452 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10453 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10454 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10457 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10458 for ncn_progname in gcc; do
10459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10460 set dummy ${ncn_progname}; ac_word=$2
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10462 $as_echo_n "checking for $ac_word... " >&6; }
10463 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10464 $as_echo_n "(cached) " >&6
10465 else
10466 if test -n "$GCC_FOR_TARGET"; then
10467 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10468 else
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10472 IFS=$as_save_IFS
10473 test -z "$as_dir" && as_dir=.
10474 for ac_exec_ext in '' $ac_executable_extensions; do
10475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10476 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10478 break 2
10480 done
10481 done
10482 IFS=$as_save_IFS
10486 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10487 if test -n "$GCC_FOR_TARGET"; then
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10489 $as_echo "$GCC_FOR_TARGET" >&6; }
10490 else
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492 $as_echo "no" >&6; }
10496 done
10499 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10500 for ncn_progname in gcc; do
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10502 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10503 if test -x $with_build_time_tools/${ncn_progname}; then
10504 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10506 $as_echo "yes" >&6; }
10507 break
10508 else
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510 $as_echo "no" >&6; }
10512 done
10515 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10516 for ncn_progname in gcc; do
10517 if test -n "$ncn_target_tool_prefix"; then
10518 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10519 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10521 $as_echo_n "checking for $ac_word... " >&6; }
10522 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 if test -n "$GCC_FOR_TARGET"; then
10526 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10527 else
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10535 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10539 done
10540 done
10541 IFS=$as_save_IFS
10545 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10546 if test -n "$GCC_FOR_TARGET"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10548 $as_echo "$GCC_FOR_TARGET" >&6; }
10549 else
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10556 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10558 set dummy ${ncn_progname}; ac_word=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 if test -n "$GCC_FOR_TARGET"; then
10565 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10566 else
10567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568 for as_dir in $PATH
10570 IFS=$as_save_IFS
10571 test -z "$as_dir" && as_dir=.
10572 for ac_exec_ext in '' $ac_executable_extensions; do
10573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10574 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10576 break 2
10578 done
10579 done
10580 IFS=$as_save_IFS
10584 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10585 if test -n "$GCC_FOR_TARGET"; then
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10587 $as_echo "$GCC_FOR_TARGET" >&6; }
10588 else
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590 $as_echo "no" >&6; }
10595 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10596 done
10599 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10600 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10601 else
10602 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10607 if test -n "$GCJ_FOR_TARGET"; then
10608 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10609 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10610 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10613 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10614 for ncn_progname in gcj; do
10615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10616 set dummy ${ncn_progname}; ac_word=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622 if test -n "$GCJ_FOR_TARGET"; then
10623 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10624 else
10625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626 for as_dir in $PATH
10628 IFS=$as_save_IFS
10629 test -z "$as_dir" && as_dir=.
10630 for ac_exec_ext in '' $ac_executable_extensions; do
10631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10632 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10634 break 2
10636 done
10637 done
10638 IFS=$as_save_IFS
10642 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10643 if test -n "$GCJ_FOR_TARGET"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10645 $as_echo "$GCJ_FOR_TARGET" >&6; }
10646 else
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
10652 done
10655 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10656 for ncn_progname in gcj; do
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10658 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10659 if test -x $with_build_time_tools/${ncn_progname}; then
10660 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10662 $as_echo "yes" >&6; }
10663 break
10664 else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10668 done
10671 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10672 for ncn_progname in gcj; do
10673 if test -n "$ncn_target_tool_prefix"; then
10674 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10675 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10679 $as_echo_n "(cached) " >&6
10680 else
10681 if test -n "$GCJ_FOR_TARGET"; then
10682 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10683 else
10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685 for as_dir in $PATH
10687 IFS=$as_save_IFS
10688 test -z "$as_dir" && as_dir=.
10689 for ac_exec_ext in '' $ac_executable_extensions; do
10690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10691 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10693 break 2
10695 done
10696 done
10697 IFS=$as_save_IFS
10701 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10702 if test -n "$GCJ_FOR_TARGET"; then
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10704 $as_echo "$GCJ_FOR_TARGET" >&6; }
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10712 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10714 set dummy ${ncn_progname}; ac_word=$2
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716 $as_echo_n "checking for $ac_word... " >&6; }
10717 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10718 $as_echo_n "(cached) " >&6
10719 else
10720 if test -n "$GCJ_FOR_TARGET"; then
10721 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10722 else
10723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10724 for as_dir in $PATH
10726 IFS=$as_save_IFS
10727 test -z "$as_dir" && as_dir=.
10728 for ac_exec_ext in '' $ac_executable_extensions; do
10729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10730 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10732 break 2
10734 done
10735 done
10736 IFS=$as_save_IFS
10740 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10741 if test -n "$GCJ_FOR_TARGET"; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10743 $as_echo "$GCJ_FOR_TARGET" >&6; }
10744 else
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746 $as_echo "no" >&6; }
10751 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10752 done
10755 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10756 set dummy gcj
10757 if test $build = $target ; then
10758 GCJ_FOR_TARGET="$2"
10759 else
10760 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10762 else
10763 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10768 if test -n "$GFORTRAN_FOR_TARGET"; then
10769 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10770 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10771 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10774 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10775 for ncn_progname in gfortran; do
10776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10777 set dummy ${ncn_progname}; ac_word=$2
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779 $as_echo_n "checking for $ac_word... " >&6; }
10780 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 if test -n "$GFORTRAN_FOR_TARGET"; then
10784 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10785 else
10786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787 for as_dir in $PATH
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
10791 for ac_exec_ext in '' $ac_executable_extensions; do
10792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10793 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 break 2
10797 done
10798 done
10799 IFS=$as_save_IFS
10803 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10804 if test -n "$GFORTRAN_FOR_TARGET"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10806 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10813 done
10816 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10817 for ncn_progname in gfortran; do
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10819 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10820 if test -x $with_build_time_tools/${ncn_progname}; then
10821 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10823 $as_echo "yes" >&6; }
10824 break
10825 else
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; }
10829 done
10832 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10833 for ncn_progname in gfortran; do
10834 if test -n "$ncn_target_tool_prefix"; then
10835 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10836 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10838 $as_echo_n "checking for $ac_word... " >&6; }
10839 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 if test -n "$GFORTRAN_FOR_TARGET"; then
10843 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10844 else
10845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846 for as_dir in $PATH
10848 IFS=$as_save_IFS
10849 test -z "$as_dir" && as_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10852 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 break 2
10856 done
10857 done
10858 IFS=$as_save_IFS
10862 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10863 if test -n "$GFORTRAN_FOR_TARGET"; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10865 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10866 else
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10868 $as_echo "no" >&6; }
10873 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10875 set dummy ${ncn_progname}; ac_word=$2
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10877 $as_echo_n "checking for $ac_word... " >&6; }
10878 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10879 $as_echo_n "(cached) " >&6
10880 else
10881 if test -n "$GFORTRAN_FOR_TARGET"; then
10882 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10883 else
10884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10891 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10895 done
10896 done
10897 IFS=$as_save_IFS
10901 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10902 if test -n "$GFORTRAN_FOR_TARGET"; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10904 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10905 else
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10912 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10913 done
10916 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10917 set dummy gfortran
10918 if test $build = $target ; then
10919 GFORTRAN_FOR_TARGET="$2"
10920 else
10921 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10923 else
10924 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10929 if test -n "$GOC_FOR_TARGET"; then
10930 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10931 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10932 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10935 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10936 for ncn_progname in gccgo; do
10937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10938 set dummy ${ncn_progname}; ac_word=$2
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940 $as_echo_n "checking for $ac_word... " >&6; }
10941 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 if test -n "$GOC_FOR_TARGET"; then
10945 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10946 else
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948 for as_dir in $PATH
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10954 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10956 break 2
10958 done
10959 done
10960 IFS=$as_save_IFS
10964 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10965 if test -n "$GOC_FOR_TARGET"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10967 $as_echo "$GOC_FOR_TARGET" >&6; }
10968 else
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10974 done
10977 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10978 for ncn_progname in gccgo; do
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10980 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10981 if test -x $with_build_time_tools/${ncn_progname}; then
10982 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10984 $as_echo "yes" >&6; }
10985 break
10986 else
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10988 $as_echo "no" >&6; }
10990 done
10993 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10994 for ncn_progname in gccgo; do
10995 if test -n "$ncn_target_tool_prefix"; then
10996 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10997 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10999 $as_echo_n "checking for $ac_word... " >&6; }
11000 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003 if test -n "$GOC_FOR_TARGET"; then
11004 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11005 else
11006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11007 for as_dir in $PATH
11009 IFS=$as_save_IFS
11010 test -z "$as_dir" && as_dir=.
11011 for ac_exec_ext in '' $ac_executable_extensions; do
11012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11013 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11015 break 2
11017 done
11018 done
11019 IFS=$as_save_IFS
11023 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11024 if test -n "$GOC_FOR_TARGET"; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11026 $as_echo "$GOC_FOR_TARGET" >&6; }
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11034 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11036 set dummy ${ncn_progname}; ac_word=$2
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 $as_echo_n "checking for $ac_word... " >&6; }
11039 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 if test -n "$GOC_FOR_TARGET"; then
11043 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11044 else
11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046 for as_dir in $PATH
11048 IFS=$as_save_IFS
11049 test -z "$as_dir" && as_dir=.
11050 for ac_exec_ext in '' $ac_executable_extensions; do
11051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11052 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 break 2
11056 done
11057 done
11058 IFS=$as_save_IFS
11062 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11063 if test -n "$GOC_FOR_TARGET"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11065 $as_echo "$GOC_FOR_TARGET" >&6; }
11066 else
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; }
11073 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11074 done
11077 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11078 set dummy gccgo
11079 if test $build = $target ; then
11080 GOC_FOR_TARGET="$2"
11081 else
11082 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11084 else
11085 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11090 if test -n "$GUPC_FOR_TARGET"; then
11091 ac_cv_prog_GUPC_FOR_TARGET=$GUPC_FOR_TARGET
11092 elif test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
11093 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
11096 if test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
11097 for ncn_progname in gupc; do
11098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11099 set dummy ${ncn_progname}; ac_word=$2
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11101 $as_echo_n "checking for $ac_word... " >&6; }
11102 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 if test -n "$GUPC_FOR_TARGET"; then
11106 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
11107 else
11108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 for as_dir in $PATH
11111 IFS=$as_save_IFS
11112 test -z "$as_dir" && as_dir=.
11113 for ac_exec_ext in '' $ac_executable_extensions; do
11114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11115 ac_cv_prog_GUPC_FOR_TARGET="${ncn_progname}"
11116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11117 break 2
11119 done
11120 done
11121 IFS=$as_save_IFS
11125 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
11126 if test -n "$GUPC_FOR_TARGET"; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
11128 $as_echo "$GUPC_FOR_TARGET" >&6; }
11129 else
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; }
11135 done
11138 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11139 for ncn_progname in gupc; do
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11141 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11142 if test -x $with_build_time_tools/${ncn_progname}; then
11143 ac_cv_prog_GUPC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11145 $as_echo "yes" >&6; }
11146 break
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11151 done
11154 if test -z "$ac_cv_prog_GUPC_FOR_TARGET"; then
11155 for ncn_progname in gupc; do
11156 if test -n "$ncn_target_tool_prefix"; then
11157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11158 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 if test -n "$GUPC_FOR_TARGET"; then
11165 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
11166 else
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174 ac_cv_prog_GUPC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 break 2
11178 done
11179 done
11180 IFS=$as_save_IFS
11184 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
11185 if test -n "$GUPC_FOR_TARGET"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
11187 $as_echo "$GUPC_FOR_TARGET" >&6; }
11188 else
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11195 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test $build = $target ; then
11196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11197 set dummy ${ncn_progname}; ac_word=$2
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11199 $as_echo_n "checking for $ac_word... " >&6; }
11200 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 if test -n "$GUPC_FOR_TARGET"; then
11204 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
11205 else
11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207 for as_dir in $PATH
11209 IFS=$as_save_IFS
11210 test -z "$as_dir" && as_dir=.
11211 for ac_exec_ext in '' $ac_executable_extensions; do
11212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11213 ac_cv_prog_GUPC_FOR_TARGET="${ncn_progname}"
11214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 break 2
11217 done
11218 done
11219 IFS=$as_save_IFS
11223 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
11224 if test -n "$GUPC_FOR_TARGET"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
11226 $as_echo "$GUPC_FOR_TARGET" >&6; }
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11234 test -n "$ac_cv_prog_GUPC_FOR_TARGET" && break
11235 done
11238 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" ; then
11239 set dummy gupc
11240 if test $build = $target ; then
11241 GUPC_FOR_TARGET="$2"
11242 else
11243 GUPC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11245 else
11246 GUPC_FOR_TARGET="$ac_cv_prog_GUPC_FOR_TARGET"
11251 cat > conftest.c << \EOF
11252 #ifdef __GNUC__
11253 gcc_yay;
11254 #endif
11256 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11257 have_gcc_for_target=yes
11258 else
11259 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11260 have_gcc_for_target=no
11262 rm conftest.c
11267 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11268 if test -n "$with_build_time_tools"; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11270 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11271 if test -x $with_build_time_tools/ar; then
11272 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11273 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11275 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11276 else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11280 elif test $build != $host && test $have_gcc_for_target = yes; then
11281 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11282 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11283 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11286 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11287 # Extract the first word of "ar", so it can be a program name with args.
11288 set dummy ar; ac_word=$2
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290 $as_echo_n "checking for $ac_word... " >&6; }
11291 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 case $AR_FOR_TARGET in
11295 [\\/]* | ?:[\\/]*)
11296 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $gcc_cv_tool_dirs
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11306 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 break 2
11310 done
11311 done
11312 IFS=$as_save_IFS
11315 esac
11317 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11318 if test -n "$AR_FOR_TARGET"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11320 $as_echo "$AR_FOR_TARGET" >&6; }
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11328 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11331 if test -n "$AR_FOR_TARGET"; then
11332 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11333 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11334 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11337 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11338 for ncn_progname in ar; do
11339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11340 set dummy ${ncn_progname}; 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_prog_AR_FOR_TARGET+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346 if test -n "$AR_FOR_TARGET"; then
11347 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11348 else
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11352 IFS=$as_save_IFS
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11356 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11358 break 2
11360 done
11361 done
11362 IFS=$as_save_IFS
11366 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11367 if test -n "$AR_FOR_TARGET"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11369 $as_echo "$AR_FOR_TARGET" >&6; }
11370 else
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11376 done
11379 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11380 for ncn_progname in ar; do
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11382 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11383 if test -x $with_build_time_tools/${ncn_progname}; then
11384 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11386 $as_echo "yes" >&6; }
11387 break
11388 else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11392 done
11395 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11396 for ncn_progname in ar; do
11397 if test -n "$ncn_target_tool_prefix"; then
11398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11399 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401 $as_echo_n "checking for $ac_word... " >&6; }
11402 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 if test -n "$AR_FOR_TARGET"; then
11406 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11407 else
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11411 IFS=$as_save_IFS
11412 test -z "$as_dir" && as_dir=.
11413 for ac_exec_ext in '' $ac_executable_extensions; do
11414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11415 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 break 2
11419 done
11420 done
11421 IFS=$as_save_IFS
11425 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11426 if test -n "$AR_FOR_TARGET"; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11428 $as_echo "$AR_FOR_TARGET" >&6; }
11429 else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11436 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11438 set dummy ${ncn_progname}; ac_word=$2
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11440 $as_echo_n "checking for $ac_word... " >&6; }
11441 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11444 if test -n "$AR_FOR_TARGET"; then
11445 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11446 else
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11454 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 break 2
11458 done
11459 done
11460 IFS=$as_save_IFS
11464 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11465 if test -n "$AR_FOR_TARGET"; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11467 $as_echo "$AR_FOR_TARGET" >&6; }
11468 else
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 $as_echo "no" >&6; }
11475 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11476 done
11479 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11480 set dummy ar
11481 if test $build = $target ; then
11482 AR_FOR_TARGET="$2"
11483 else
11484 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11486 else
11487 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11490 else
11491 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11497 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11498 if test -n "$with_build_time_tools"; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11500 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11501 if test -x $with_build_time_tools/as; then
11502 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11503 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11505 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11510 elif test $build != $host && test $have_gcc_for_target = yes; then
11511 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11512 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11513 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11516 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11517 # Extract the first word of "as", so it can be a program name with args.
11518 set dummy as; ac_word=$2
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520 $as_echo_n "checking for $ac_word... " >&6; }
11521 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 case $AS_FOR_TARGET in
11525 [\\/]* | ?:[\\/]*)
11526 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $gcc_cv_tool_dirs
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11540 done
11541 done
11542 IFS=$as_save_IFS
11545 esac
11547 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11548 if test -n "$AS_FOR_TARGET"; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11550 $as_echo "$AS_FOR_TARGET" >&6; }
11551 else
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11558 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11561 if test -n "$AS_FOR_TARGET"; then
11562 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11563 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11564 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11567 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11568 for ncn_progname in as; do
11569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11570 set dummy ${ncn_progname}; 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_prog_AS_FOR_TARGET+set}" = set; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 if test -n "$AS_FOR_TARGET"; then
11577 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11578 else
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11586 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11590 done
11591 done
11592 IFS=$as_save_IFS
11596 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11597 if test -n "$AS_FOR_TARGET"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11599 $as_echo "$AS_FOR_TARGET" >&6; }
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11606 done
11609 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11610 for ncn_progname in as; do
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11612 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11613 if test -x $with_build_time_tools/${ncn_progname}; then
11614 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11616 $as_echo "yes" >&6; }
11617 break
11618 else
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620 $as_echo "no" >&6; }
11622 done
11625 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11626 for ncn_progname in as; do
11627 if test -n "$ncn_target_tool_prefix"; then
11628 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11629 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631 $as_echo_n "checking for $ac_word... " >&6; }
11632 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 if test -n "$AS_FOR_TARGET"; then
11636 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11637 else
11638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639 for as_dir in $PATH
11641 IFS=$as_save_IFS
11642 test -z "$as_dir" && as_dir=.
11643 for ac_exec_ext in '' $ac_executable_extensions; do
11644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11645 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 break 2
11649 done
11650 done
11651 IFS=$as_save_IFS
11655 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11656 if test -n "$AS_FOR_TARGET"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11658 $as_echo "$AS_FOR_TARGET" >&6; }
11659 else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11666 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11668 set dummy ${ncn_progname}; ac_word=$2
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11670 $as_echo_n "checking for $ac_word... " >&6; }
11671 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11672 $as_echo_n "(cached) " >&6
11673 else
11674 if test -n "$AS_FOR_TARGET"; then
11675 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11676 else
11677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678 for as_dir in $PATH
11680 IFS=$as_save_IFS
11681 test -z "$as_dir" && as_dir=.
11682 for ac_exec_ext in '' $ac_executable_extensions; do
11683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11684 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11686 break 2
11688 done
11689 done
11690 IFS=$as_save_IFS
11694 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11695 if test -n "$AS_FOR_TARGET"; then
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11697 $as_echo "$AS_FOR_TARGET" >&6; }
11698 else
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11700 $as_echo "no" >&6; }
11705 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11706 done
11709 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11710 set dummy as
11711 if test $build = $target ; then
11712 AS_FOR_TARGET="$2"
11713 else
11714 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11716 else
11717 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11720 else
11721 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11727 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11728 if test -n "$with_build_time_tools"; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11730 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11731 if test -x $with_build_time_tools/dlltool; then
11732 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11733 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11735 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11736 else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11740 elif test $build != $host && test $have_gcc_for_target = yes; then
11741 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11742 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11743 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11746 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11747 # Extract the first word of "dlltool", so it can be a program name with args.
11748 set dummy dlltool; ac_word=$2
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11750 $as_echo_n "checking for $ac_word... " >&6; }
11751 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11752 $as_echo_n "(cached) " >&6
11753 else
11754 case $DLLTOOL_FOR_TARGET in
11755 [\\/]* | ?:[\\/]*)
11756 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $gcc_cv_tool_dirs
11762 IFS=$as_save_IFS
11763 test -z "$as_dir" && as_dir=.
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11766 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 break 2
11770 done
11771 done
11772 IFS=$as_save_IFS
11775 esac
11777 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11778 if test -n "$DLLTOOL_FOR_TARGET"; then
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11780 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11781 else
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783 $as_echo "no" >&6; }
11788 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11791 if test -n "$DLLTOOL_FOR_TARGET"; then
11792 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11793 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11794 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11797 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11798 for ncn_progname in dlltool; do
11799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11800 set dummy ${ncn_progname}; 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_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11804 $as_echo_n "(cached) " >&6
11805 else
11806 if test -n "$DLLTOOL_FOR_TARGET"; then
11807 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11808 else
11809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810 for as_dir in $PATH
11812 IFS=$as_save_IFS
11813 test -z "$as_dir" && as_dir=.
11814 for ac_exec_ext in '' $ac_executable_extensions; do
11815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11816 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11818 break 2
11820 done
11821 done
11822 IFS=$as_save_IFS
11826 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11827 if test -n "$DLLTOOL_FOR_TARGET"; then
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11829 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11830 else
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832 $as_echo "no" >&6; }
11836 done
11839 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11840 for ncn_progname in dlltool; do
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11842 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11843 if test -x $with_build_time_tools/${ncn_progname}; then
11844 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11846 $as_echo "yes" >&6; }
11847 break
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11852 done
11855 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11856 for ncn_progname in dlltool; do
11857 if test -n "$ncn_target_tool_prefix"; then
11858 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11859 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 if test -n "$DLLTOOL_FOR_TARGET"; then
11866 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11867 else
11868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869 for as_dir in $PATH
11871 IFS=$as_save_IFS
11872 test -z "$as_dir" && as_dir=.
11873 for ac_exec_ext in '' $ac_executable_extensions; do
11874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11875 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877 break 2
11879 done
11880 done
11881 IFS=$as_save_IFS
11885 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11886 if test -n "$DLLTOOL_FOR_TARGET"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11888 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11889 else
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11896 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11898 set dummy ${ncn_progname}; ac_word=$2
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900 $as_echo_n "checking for $ac_word... " >&6; }
11901 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 if test -n "$DLLTOOL_FOR_TARGET"; then
11905 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11906 else
11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH
11910 IFS=$as_save_IFS
11911 test -z "$as_dir" && as_dir=.
11912 for ac_exec_ext in '' $ac_executable_extensions; do
11913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11914 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11916 break 2
11918 done
11919 done
11920 IFS=$as_save_IFS
11924 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11925 if test -n "$DLLTOOL_FOR_TARGET"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11927 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11928 else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11935 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11936 done
11939 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11940 set dummy dlltool
11941 if test $build = $target ; then
11942 DLLTOOL_FOR_TARGET="$2"
11943 else
11944 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11946 else
11947 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11950 else
11951 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11957 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11958 if test -n "$with_build_time_tools"; then
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11960 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11961 if test -x $with_build_time_tools/ld; then
11962 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11963 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11965 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11966 else
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11970 elif test $build != $host && test $have_gcc_for_target = yes; then
11971 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11972 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11973 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11976 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11977 # Extract the first word of "ld", so it can be a program name with args.
11978 set dummy ld; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 case $LD_FOR_TARGET in
11985 [\\/]* | ?:[\\/]*)
11986 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $gcc_cv_tool_dirs
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11996 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 break 2
12000 done
12001 done
12002 IFS=$as_save_IFS
12005 esac
12007 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12008 if test -n "$LD_FOR_TARGET"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12010 $as_echo "$LD_FOR_TARGET" >&6; }
12011 else
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12018 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12021 if test -n "$LD_FOR_TARGET"; then
12022 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12023 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12024 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12027 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12028 for ncn_progname in ld; do
12029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12030 set dummy ${ncn_progname}; 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_prog_LD_FOR_TARGET+set}" = set; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 if test -n "$LD_FOR_TARGET"; then
12037 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12038 else
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12042 IFS=$as_save_IFS
12043 test -z "$as_dir" && as_dir=.
12044 for ac_exec_ext in '' $ac_executable_extensions; do
12045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12046 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12048 break 2
12050 done
12051 done
12052 IFS=$as_save_IFS
12056 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12057 if test -n "$LD_FOR_TARGET"; then
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12059 $as_echo "$LD_FOR_TARGET" >&6; }
12060 else
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062 $as_echo "no" >&6; }
12066 done
12069 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12070 for ncn_progname in ld; do
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12072 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12073 if test -x $with_build_time_tools/${ncn_progname}; then
12074 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12076 $as_echo "yes" >&6; }
12077 break
12078 else
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080 $as_echo "no" >&6; }
12082 done
12085 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12086 for ncn_progname in ld; do
12087 if test -n "$ncn_target_tool_prefix"; then
12088 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12089 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091 $as_echo_n "checking for $ac_word... " >&6; }
12092 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 if test -n "$LD_FOR_TARGET"; then
12096 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12097 else
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12101 IFS=$as_save_IFS
12102 test -z "$as_dir" && as_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107 break 2
12109 done
12110 done
12111 IFS=$as_save_IFS
12115 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12116 if test -n "$LD_FOR_TARGET"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12118 $as_echo "$LD_FOR_TARGET" >&6; }
12119 else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12126 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12128 set dummy ${ncn_progname}; ac_word=$2
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130 $as_echo_n "checking for $ac_word... " >&6; }
12131 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 if test -n "$LD_FOR_TARGET"; then
12135 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12136 else
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12144 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146 break 2
12148 done
12149 done
12150 IFS=$as_save_IFS
12154 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12155 if test -n "$LD_FOR_TARGET"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12157 $as_echo "$LD_FOR_TARGET" >&6; }
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12165 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12166 done
12169 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12170 set dummy ld
12171 if test $build = $target ; then
12172 LD_FOR_TARGET="$2"
12173 else
12174 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12176 else
12177 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12180 else
12181 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12187 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12188 if test -n "$with_build_time_tools"; then
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12190 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12191 if test -x $with_build_time_tools/lipo; then
12192 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12193 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12195 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12196 else
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12200 elif test $build != $host && test $have_gcc_for_target = yes; then
12201 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12202 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12203 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12206 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12207 # Extract the first word of "lipo", so it can be a program name with args.
12208 set dummy lipo; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 case $LIPO_FOR_TARGET in
12215 [\\/]* | ?:[\\/]*)
12216 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $gcc_cv_tool_dirs
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12226 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 break 2
12230 done
12231 done
12232 IFS=$as_save_IFS
12235 esac
12237 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12238 if test -n "$LIPO_FOR_TARGET"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12240 $as_echo "$LIPO_FOR_TARGET" >&6; }
12241 else
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12248 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12251 if test -n "$LIPO_FOR_TARGET"; then
12252 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12253 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12254 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12257 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12258 for ncn_progname in lipo; do
12259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12260 set dummy ${ncn_progname}; 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_prog_LIPO_FOR_TARGET+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 if test -n "$LIPO_FOR_TARGET"; then
12267 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12268 else
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12280 done
12281 done
12282 IFS=$as_save_IFS
12286 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12287 if test -n "$LIPO_FOR_TARGET"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12289 $as_echo "$LIPO_FOR_TARGET" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12296 done
12299 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12300 for ncn_progname in lipo; do
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12302 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12303 if test -x $with_build_time_tools/${ncn_progname}; then
12304 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12306 $as_echo "yes" >&6; }
12307 break
12308 else
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12312 done
12315 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12316 for ncn_progname in lipo; do
12317 if test -n "$ncn_target_tool_prefix"; then
12318 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12319 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 if test -n "$LIPO_FOR_TARGET"; then
12326 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12327 else
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12331 IFS=$as_save_IFS
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 break 2
12339 done
12340 done
12341 IFS=$as_save_IFS
12345 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12346 if test -n "$LIPO_FOR_TARGET"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12348 $as_echo "$LIPO_FOR_TARGET" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12356 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12358 set dummy ${ncn_progname}; ac_word=$2
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360 $as_echo_n "checking for $ac_word... " >&6; }
12361 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 if test -n "$LIPO_FOR_TARGET"; then
12365 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12366 else
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 for as_dir in $PATH
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12374 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 break 2
12378 done
12379 done
12380 IFS=$as_save_IFS
12384 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12385 if test -n "$LIPO_FOR_TARGET"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12387 $as_echo "$LIPO_FOR_TARGET" >&6; }
12388 else
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12395 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12396 done
12399 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12400 set dummy lipo
12401 if test $build = $target ; then
12402 LIPO_FOR_TARGET="$2"
12403 else
12404 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12406 else
12407 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12410 else
12411 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12417 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12418 if test -n "$with_build_time_tools"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12420 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12421 if test -x $with_build_time_tools/nm; then
12422 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12423 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12425 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12426 else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12430 elif test $build != $host && test $have_gcc_for_target = yes; then
12431 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12432 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12433 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12436 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12437 # Extract the first word of "nm", so it can be a program name with args.
12438 set dummy nm; ac_word=$2
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12440 $as_echo_n "checking for $ac_word... " >&6; }
12441 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 case $NM_FOR_TARGET in
12445 [\\/]* | ?:[\\/]*)
12446 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $gcc_cv_tool_dirs
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 break 2
12460 done
12461 done
12462 IFS=$as_save_IFS
12465 esac
12467 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12468 if test -n "$NM_FOR_TARGET"; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12470 $as_echo "$NM_FOR_TARGET" >&6; }
12471 else
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12478 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12481 if test -n "$NM_FOR_TARGET"; then
12482 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12483 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12484 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12487 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12488 for ncn_progname in nm; do
12489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12490 set dummy ${ncn_progname}; 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_prog_NM_FOR_TARGET+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 if test -n "$NM_FOR_TARGET"; then
12497 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12498 else
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12502 IFS=$as_save_IFS
12503 test -z "$as_dir" && as_dir=.
12504 for ac_exec_ext in '' $ac_executable_extensions; do
12505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12506 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12508 break 2
12510 done
12511 done
12512 IFS=$as_save_IFS
12516 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12517 if test -n "$NM_FOR_TARGET"; then
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12519 $as_echo "$NM_FOR_TARGET" >&6; }
12520 else
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 $as_echo "no" >&6; }
12526 done
12529 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12530 for ncn_progname in nm; do
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12532 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12533 if test -x $with_build_time_tools/${ncn_progname}; then
12534 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12536 $as_echo "yes" >&6; }
12537 break
12538 else
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12542 done
12545 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12546 for ncn_progname in nm; do
12547 if test -n "$ncn_target_tool_prefix"; then
12548 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12549 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551 $as_echo_n "checking for $ac_word... " >&6; }
12552 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12553 $as_echo_n "(cached) " >&6
12554 else
12555 if test -n "$NM_FOR_TARGET"; then
12556 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12557 else
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559 for as_dir in $PATH
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12565 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12569 done
12570 done
12571 IFS=$as_save_IFS
12575 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12576 if test -n "$NM_FOR_TARGET"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12578 $as_echo "$NM_FOR_TARGET" >&6; }
12579 else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12586 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12588 set dummy ${ncn_progname}; ac_word=$2
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590 $as_echo_n "checking for $ac_word... " >&6; }
12591 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12592 $as_echo_n "(cached) " >&6
12593 else
12594 if test -n "$NM_FOR_TARGET"; then
12595 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12596 else
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12608 done
12609 done
12610 IFS=$as_save_IFS
12614 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12615 if test -n "$NM_FOR_TARGET"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12617 $as_echo "$NM_FOR_TARGET" >&6; }
12618 else
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12625 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12626 done
12629 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12630 set dummy nm
12631 if test $build = $target ; then
12632 NM_FOR_TARGET="$2"
12633 else
12634 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12636 else
12637 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12640 else
12641 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12647 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12648 if test -n "$with_build_time_tools"; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12650 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12651 if test -x $with_build_time_tools/objdump; then
12652 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12653 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12655 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12656 else
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12660 elif test $build != $host && test $have_gcc_for_target = yes; then
12661 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12662 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12663 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12666 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12667 # Extract the first word of "objdump", so it can be a program name with args.
12668 set dummy objdump; ac_word=$2
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670 $as_echo_n "checking for $ac_word... " >&6; }
12671 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674 case $OBJDUMP_FOR_TARGET in
12675 [\\/]* | ?:[\\/]*)
12676 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in $gcc_cv_tool_dirs
12682 IFS=$as_save_IFS
12683 test -z "$as_dir" && as_dir=.
12684 for ac_exec_ext in '' $ac_executable_extensions; do
12685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12686 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12688 break 2
12690 done
12691 done
12692 IFS=$as_save_IFS
12695 esac
12697 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12698 if test -n "$OBJDUMP_FOR_TARGET"; then
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12700 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12701 else
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703 $as_echo "no" >&6; }
12708 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12711 if test -n "$OBJDUMP_FOR_TARGET"; then
12712 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12713 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12714 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12717 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12718 for ncn_progname in objdump; do
12719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12720 set dummy ${ncn_progname}; 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_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12726 if test -n "$OBJDUMP_FOR_TARGET"; then
12727 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12728 else
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
12734 for ac_exec_ext in '' $ac_executable_extensions; do
12735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12736 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738 break 2
12740 done
12741 done
12742 IFS=$as_save_IFS
12746 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12747 if test -n "$OBJDUMP_FOR_TARGET"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12749 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12750 else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12756 done
12759 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12760 for ncn_progname in objdump; do
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12762 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12763 if test -x $with_build_time_tools/${ncn_progname}; then
12764 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12766 $as_echo "yes" >&6; }
12767 break
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12772 done
12775 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12776 for ncn_progname in objdump; do
12777 if test -n "$ncn_target_tool_prefix"; then
12778 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12779 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781 $as_echo_n "checking for $ac_word... " >&6; }
12782 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12783 $as_echo_n "(cached) " >&6
12784 else
12785 if test -n "$OBJDUMP_FOR_TARGET"; then
12786 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12787 else
12788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789 for as_dir in $PATH
12791 IFS=$as_save_IFS
12792 test -z "$as_dir" && as_dir=.
12793 for ac_exec_ext in '' $ac_executable_extensions; do
12794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12795 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12797 break 2
12799 done
12800 done
12801 IFS=$as_save_IFS
12805 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12806 if test -n "$OBJDUMP_FOR_TARGET"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12808 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12809 else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12816 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12818 set dummy ${ncn_progname}; ac_word=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 $as_echo_n "checking for $ac_word... " >&6; }
12821 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824 if test -n "$OBJDUMP_FOR_TARGET"; then
12825 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12826 else
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12830 IFS=$as_save_IFS
12831 test -z "$as_dir" && as_dir=.
12832 for ac_exec_ext in '' $ac_executable_extensions; do
12833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12834 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836 break 2
12838 done
12839 done
12840 IFS=$as_save_IFS
12844 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12845 if test -n "$OBJDUMP_FOR_TARGET"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12847 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12848 else
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12855 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12856 done
12859 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12860 set dummy objdump
12861 if test $build = $target ; then
12862 OBJDUMP_FOR_TARGET="$2"
12863 else
12864 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12866 else
12867 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12870 else
12871 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12877 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12878 if test -n "$with_build_time_tools"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12880 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12881 if test -x $with_build_time_tools/ranlib; then
12882 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12883 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12885 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12886 else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12890 elif test $build != $host && test $have_gcc_for_target = yes; then
12891 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12892 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12893 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12896 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12897 # Extract the first word of "ranlib", so it can be a program name with args.
12898 set dummy ranlib; ac_word=$2
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12900 $as_echo_n "checking for $ac_word... " >&6; }
12901 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904 case $RANLIB_FOR_TARGET in
12905 [\\/]* | ?:[\\/]*)
12906 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 for as_dir in $gcc_cv_tool_dirs
12912 IFS=$as_save_IFS
12913 test -z "$as_dir" && as_dir=.
12914 for ac_exec_ext in '' $ac_executable_extensions; do
12915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12916 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12918 break 2
12920 done
12921 done
12922 IFS=$as_save_IFS
12925 esac
12927 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12928 if test -n "$RANLIB_FOR_TARGET"; then
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12930 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12931 else
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12933 $as_echo "no" >&6; }
12938 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12941 if test -n "$RANLIB_FOR_TARGET"; then
12942 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12943 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12944 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12947 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12948 for ncn_progname in ranlib; do
12949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12950 set dummy ${ncn_progname}; 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_prog_RANLIB_FOR_TARGET+set}" = set; then :
12954 $as_echo_n "(cached) " >&6
12955 else
12956 if test -n "$RANLIB_FOR_TARGET"; then
12957 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12958 else
12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
12964 for ac_exec_ext in '' $ac_executable_extensions; do
12965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12966 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968 break 2
12970 done
12971 done
12972 IFS=$as_save_IFS
12976 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12977 if test -n "$RANLIB_FOR_TARGET"; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12979 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12980 else
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982 $as_echo "no" >&6; }
12986 done
12989 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12990 for ncn_progname in ranlib; do
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12992 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12993 if test -x $with_build_time_tools/${ncn_progname}; then
12994 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12996 $as_echo "yes" >&6; }
12997 break
12998 else
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13002 done
13005 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13006 for ncn_progname in ranlib; do
13007 if test -n "$ncn_target_tool_prefix"; then
13008 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13009 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011 $as_echo_n "checking for $ac_word... " >&6; }
13012 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13013 $as_echo_n "(cached) " >&6
13014 else
13015 if test -n "$RANLIB_FOR_TARGET"; then
13016 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13017 else
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13021 IFS=$as_save_IFS
13022 test -z "$as_dir" && as_dir=.
13023 for ac_exec_ext in '' $ac_executable_extensions; do
13024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13025 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 break 2
13029 done
13030 done
13031 IFS=$as_save_IFS
13035 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13036 if test -n "$RANLIB_FOR_TARGET"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13038 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13039 else
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13046 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13048 set dummy ${ncn_progname}; ac_word=$2
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050 $as_echo_n "checking for $ac_word... " >&6; }
13051 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 if test -n "$RANLIB_FOR_TARGET"; then
13055 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13056 else
13057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058 for as_dir in $PATH
13060 IFS=$as_save_IFS
13061 test -z "$as_dir" && as_dir=.
13062 for ac_exec_ext in '' $ac_executable_extensions; do
13063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13064 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066 break 2
13068 done
13069 done
13070 IFS=$as_save_IFS
13074 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13075 if test -n "$RANLIB_FOR_TARGET"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13077 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13078 else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13085 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13086 done
13089 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13090 set dummy ranlib
13091 if test $build = $target ; then
13092 RANLIB_FOR_TARGET="$2"
13093 else
13094 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13096 else
13097 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13100 else
13101 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13107 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13108 if test -n "$with_build_time_tools"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13110 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13111 if test -x $with_build_time_tools/readelf; then
13112 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13113 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13115 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13116 else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13120 elif test $build != $host && test $have_gcc_for_target = yes; then
13121 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13122 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13123 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13126 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13127 # Extract the first word of "readelf", so it can be a program name with args.
13128 set dummy readelf; ac_word=$2
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13130 $as_echo_n "checking for $ac_word... " >&6; }
13131 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13132 $as_echo_n "(cached) " >&6
13133 else
13134 case $READELF_FOR_TARGET in
13135 [\\/]* | ?:[\\/]*)
13136 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $gcc_cv_tool_dirs
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13146 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148 break 2
13150 done
13151 done
13152 IFS=$as_save_IFS
13155 esac
13157 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13158 if test -n "$READELF_FOR_TARGET"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13160 $as_echo "$READELF_FOR_TARGET" >&6; }
13161 else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13168 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13171 if test -n "$READELF_FOR_TARGET"; then
13172 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13173 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13174 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13177 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13178 for ncn_progname in readelf; do
13179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13180 set dummy ${ncn_progname}; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13184 $as_echo_n "(cached) " >&6
13185 else
13186 if test -n "$READELF_FOR_TARGET"; then
13187 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13188 else
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13192 IFS=$as_save_IFS
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13196 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 break 2
13200 done
13201 done
13202 IFS=$as_save_IFS
13206 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13207 if test -n "$READELF_FOR_TARGET"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13209 $as_echo "$READELF_FOR_TARGET" >&6; }
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13216 done
13219 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13220 for ncn_progname in readelf; do
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13222 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13223 if test -x $with_build_time_tools/${ncn_progname}; then
13224 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13226 $as_echo "yes" >&6; }
13227 break
13228 else
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13232 done
13235 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13236 for ncn_progname in readelf; do
13237 if test -n "$ncn_target_tool_prefix"; then
13238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13239 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13241 $as_echo_n "checking for $ac_word... " >&6; }
13242 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 if test -n "$READELF_FOR_TARGET"; then
13246 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13247 else
13248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13251 IFS=$as_save_IFS
13252 test -z "$as_dir" && as_dir=.
13253 for ac_exec_ext in '' $ac_executable_extensions; do
13254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13255 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13257 break 2
13259 done
13260 done
13261 IFS=$as_save_IFS
13265 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13266 if test -n "$READELF_FOR_TARGET"; then
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13268 $as_echo "$READELF_FOR_TARGET" >&6; }
13269 else
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271 $as_echo "no" >&6; }
13276 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13278 set dummy ${ncn_progname}; ac_word=$2
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13280 $as_echo_n "checking for $ac_word... " >&6; }
13281 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13282 $as_echo_n "(cached) " >&6
13283 else
13284 if test -n "$READELF_FOR_TARGET"; then
13285 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13286 else
13287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 for as_dir in $PATH
13290 IFS=$as_save_IFS
13291 test -z "$as_dir" && as_dir=.
13292 for ac_exec_ext in '' $ac_executable_extensions; do
13293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13294 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13296 break 2
13298 done
13299 done
13300 IFS=$as_save_IFS
13304 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13305 if test -n "$READELF_FOR_TARGET"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13307 $as_echo "$READELF_FOR_TARGET" >&6; }
13308 else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310 $as_echo "no" >&6; }
13315 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13316 done
13319 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13320 set dummy readelf
13321 if test $build = $target ; then
13322 READELF_FOR_TARGET="$2"
13323 else
13324 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13326 else
13327 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13330 else
13331 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13337 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13338 if test -n "$with_build_time_tools"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13340 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13341 if test -x $with_build_time_tools/strip; then
13342 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13343 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13345 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13346 else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 $as_echo "no" >&6; }
13350 elif test $build != $host && test $have_gcc_for_target = yes; then
13351 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13352 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13353 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13356 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13357 # Extract the first word of "strip", so it can be a program name with args.
13358 set dummy strip; ac_word=$2
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360 $as_echo_n "checking for $ac_word... " >&6; }
13361 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 case $STRIP_FOR_TARGET in
13365 [\\/]* | ?:[\\/]*)
13366 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13370 for as_dir in $gcc_cv_tool_dirs
13372 IFS=$as_save_IFS
13373 test -z "$as_dir" && as_dir=.
13374 for ac_exec_ext in '' $ac_executable_extensions; do
13375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13376 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13378 break 2
13380 done
13381 done
13382 IFS=$as_save_IFS
13385 esac
13387 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13388 if test -n "$STRIP_FOR_TARGET"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13390 $as_echo "$STRIP_FOR_TARGET" >&6; }
13391 else
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393 $as_echo "no" >&6; }
13398 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13401 if test -n "$STRIP_FOR_TARGET"; then
13402 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13403 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13404 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13407 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13408 for ncn_progname in strip; do
13409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13410 set dummy ${ncn_progname}; ac_word=$2
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412 $as_echo_n "checking for $ac_word... " >&6; }
13413 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13414 $as_echo_n "(cached) " >&6
13415 else
13416 if test -n "$STRIP_FOR_TARGET"; then
13417 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13418 else
13419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13420 for as_dir in $PATH
13422 IFS=$as_save_IFS
13423 test -z "$as_dir" && as_dir=.
13424 for ac_exec_ext in '' $ac_executable_extensions; do
13425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13426 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13428 break 2
13430 done
13431 done
13432 IFS=$as_save_IFS
13436 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13437 if test -n "$STRIP_FOR_TARGET"; then
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13439 $as_echo "$STRIP_FOR_TARGET" >&6; }
13440 else
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442 $as_echo "no" >&6; }
13446 done
13449 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13450 for ncn_progname in strip; do
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13452 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13453 if test -x $with_build_time_tools/${ncn_progname}; then
13454 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13456 $as_echo "yes" >&6; }
13457 break
13458 else
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 $as_echo "no" >&6; }
13462 done
13465 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13466 for ncn_progname in strip; do
13467 if test -n "$ncn_target_tool_prefix"; then
13468 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13469 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13471 $as_echo_n "checking for $ac_word... " >&6; }
13472 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13475 if test -n "$STRIP_FOR_TARGET"; then
13476 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13477 else
13478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13479 for as_dir in $PATH
13481 IFS=$as_save_IFS
13482 test -z "$as_dir" && as_dir=.
13483 for ac_exec_ext in '' $ac_executable_extensions; do
13484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13485 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13487 break 2
13489 done
13490 done
13491 IFS=$as_save_IFS
13495 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13496 if test -n "$STRIP_FOR_TARGET"; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13498 $as_echo "$STRIP_FOR_TARGET" >&6; }
13499 else
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501 $as_echo "no" >&6; }
13506 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13508 set dummy ${ncn_progname}; ac_word=$2
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13510 $as_echo_n "checking for $ac_word... " >&6; }
13511 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13512 $as_echo_n "(cached) " >&6
13513 else
13514 if test -n "$STRIP_FOR_TARGET"; then
13515 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13516 else
13517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518 for as_dir in $PATH
13520 IFS=$as_save_IFS
13521 test -z "$as_dir" && as_dir=.
13522 for ac_exec_ext in '' $ac_executable_extensions; do
13523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13524 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13526 break 2
13528 done
13529 done
13530 IFS=$as_save_IFS
13534 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13535 if test -n "$STRIP_FOR_TARGET"; then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13537 $as_echo "$STRIP_FOR_TARGET" >&6; }
13538 else
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13540 $as_echo "no" >&6; }
13545 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13546 done
13549 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13550 set dummy strip
13551 if test $build = $target ; then
13552 STRIP_FOR_TARGET="$2"
13553 else
13554 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13556 else
13557 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13560 else
13561 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13567 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13568 if test -n "$with_build_time_tools"; then
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13570 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13571 if test -x $with_build_time_tools/windres; then
13572 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13573 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13575 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13576 else
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578 $as_echo "no" >&6; }
13580 elif test $build != $host && test $have_gcc_for_target = yes; then
13581 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13582 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13583 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13586 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13587 # Extract the first word of "windres", so it can be a program name with args.
13588 set dummy windres; ac_word=$2
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13590 $as_echo_n "checking for $ac_word... " >&6; }
13591 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13592 $as_echo_n "(cached) " >&6
13593 else
13594 case $WINDRES_FOR_TARGET in
13595 [\\/]* | ?:[\\/]*)
13596 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600 for as_dir in $gcc_cv_tool_dirs
13602 IFS=$as_save_IFS
13603 test -z "$as_dir" && as_dir=.
13604 for ac_exec_ext in '' $ac_executable_extensions; do
13605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13606 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13608 break 2
13610 done
13611 done
13612 IFS=$as_save_IFS
13615 esac
13617 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13618 if test -n "$WINDRES_FOR_TARGET"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13620 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13621 else
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623 $as_echo "no" >&6; }
13628 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13631 if test -n "$WINDRES_FOR_TARGET"; then
13632 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13633 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13634 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13637 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13638 for ncn_progname in windres; do
13639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13640 set dummy ${ncn_progname}; ac_word=$2
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13642 $as_echo_n "checking for $ac_word... " >&6; }
13643 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 if test -n "$WINDRES_FOR_TARGET"; then
13647 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13648 else
13649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650 for as_dir in $PATH
13652 IFS=$as_save_IFS
13653 test -z "$as_dir" && as_dir=.
13654 for ac_exec_ext in '' $ac_executable_extensions; do
13655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13656 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13658 break 2
13660 done
13661 done
13662 IFS=$as_save_IFS
13666 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13667 if test -n "$WINDRES_FOR_TARGET"; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13669 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13670 else
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13672 $as_echo "no" >&6; }
13676 done
13679 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13680 for ncn_progname in windres; do
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13682 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13683 if test -x $with_build_time_tools/${ncn_progname}; then
13684 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13686 $as_echo "yes" >&6; }
13687 break
13688 else
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690 $as_echo "no" >&6; }
13692 done
13695 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13696 for ncn_progname in windres; do
13697 if test -n "$ncn_target_tool_prefix"; then
13698 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13699 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13701 $as_echo_n "checking for $ac_word... " >&6; }
13702 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13703 $as_echo_n "(cached) " >&6
13704 else
13705 if test -n "$WINDRES_FOR_TARGET"; then
13706 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13707 else
13708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13709 for as_dir in $PATH
13711 IFS=$as_save_IFS
13712 test -z "$as_dir" && as_dir=.
13713 for ac_exec_ext in '' $ac_executable_extensions; do
13714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13715 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13717 break 2
13719 done
13720 done
13721 IFS=$as_save_IFS
13725 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13726 if test -n "$WINDRES_FOR_TARGET"; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13728 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13729 else
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731 $as_echo "no" >&6; }
13736 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13738 set dummy ${ncn_progname}; ac_word=$2
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13740 $as_echo_n "checking for $ac_word... " >&6; }
13741 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13742 $as_echo_n "(cached) " >&6
13743 else
13744 if test -n "$WINDRES_FOR_TARGET"; then
13745 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13746 else
13747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748 for as_dir in $PATH
13750 IFS=$as_save_IFS
13751 test -z "$as_dir" && as_dir=.
13752 for ac_exec_ext in '' $ac_executable_extensions; do
13753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13754 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13756 break 2
13758 done
13759 done
13760 IFS=$as_save_IFS
13764 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13765 if test -n "$WINDRES_FOR_TARGET"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13767 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13768 else
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770 $as_echo "no" >&6; }
13775 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13776 done
13779 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13780 set dummy windres
13781 if test $build = $target ; then
13782 WINDRES_FOR_TARGET="$2"
13783 else
13784 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13786 else
13787 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13790 else
13791 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13797 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13798 if test -n "$with_build_time_tools"; then
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13800 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13801 if test -x $with_build_time_tools/windmc; then
13802 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13803 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13805 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13806 else
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13810 elif test $build != $host && test $have_gcc_for_target = yes; then
13811 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13812 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13813 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13816 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13817 # Extract the first word of "windmc", so it can be a program name with args.
13818 set dummy windmc; ac_word=$2
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13820 $as_echo_n "checking for $ac_word... " >&6; }
13821 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 case $WINDMC_FOR_TARGET in
13825 [\\/]* | ?:[\\/]*)
13826 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $gcc_cv_tool_dirs
13832 IFS=$as_save_IFS
13833 test -z "$as_dir" && as_dir=.
13834 for ac_exec_ext in '' $ac_executable_extensions; do
13835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13836 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13838 break 2
13840 done
13841 done
13842 IFS=$as_save_IFS
13845 esac
13847 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13848 if test -n "$WINDMC_FOR_TARGET"; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13850 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13851 else
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853 $as_echo "no" >&6; }
13858 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13861 if test -n "$WINDMC_FOR_TARGET"; then
13862 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13863 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13864 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13867 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13868 for ncn_progname in windmc; do
13869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13870 set dummy ${ncn_progname}; ac_word=$2
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13872 $as_echo_n "checking for $ac_word... " >&6; }
13873 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 if test -n "$WINDMC_FOR_TARGET"; then
13877 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13878 else
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $PATH
13882 IFS=$as_save_IFS
13883 test -z "$as_dir" && as_dir=.
13884 for ac_exec_ext in '' $ac_executable_extensions; do
13885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13886 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 break 2
13890 done
13891 done
13892 IFS=$as_save_IFS
13896 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13897 if test -n "$WINDMC_FOR_TARGET"; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13899 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13900 else
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13902 $as_echo "no" >&6; }
13906 done
13909 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13910 for ncn_progname in windmc; do
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13912 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13913 if test -x $with_build_time_tools/${ncn_progname}; then
13914 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13916 $as_echo "yes" >&6; }
13917 break
13918 else
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13920 $as_echo "no" >&6; }
13922 done
13925 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13926 for ncn_progname in windmc; do
13927 if test -n "$ncn_target_tool_prefix"; then
13928 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13929 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13931 $as_echo_n "checking for $ac_word... " >&6; }
13932 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 if test -n "$WINDMC_FOR_TARGET"; then
13936 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13937 else
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13941 IFS=$as_save_IFS
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13945 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13947 break 2
13949 done
13950 done
13951 IFS=$as_save_IFS
13955 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13956 if test -n "$WINDMC_FOR_TARGET"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13958 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13959 else
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13966 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13968 set dummy ${ncn_progname}; ac_word=$2
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13970 $as_echo_n "checking for $ac_word... " >&6; }
13971 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13972 $as_echo_n "(cached) " >&6
13973 else
13974 if test -n "$WINDMC_FOR_TARGET"; then
13975 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13976 else
13977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13978 for as_dir in $PATH
13980 IFS=$as_save_IFS
13981 test -z "$as_dir" && as_dir=.
13982 for ac_exec_ext in '' $ac_executable_extensions; do
13983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13984 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13986 break 2
13988 done
13989 done
13990 IFS=$as_save_IFS
13994 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13995 if test -n "$WINDMC_FOR_TARGET"; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13997 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13998 else
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14000 $as_echo "no" >&6; }
14005 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14006 done
14009 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14010 set dummy windmc
14011 if test $build = $target ; then
14012 WINDMC_FOR_TARGET="$2"
14013 else
14014 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14016 else
14017 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14020 else
14021 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14025 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14028 $as_echo_n "checking where to find the target ar... " >&6; }
14029 if test "x${build}" != "x${host}" ; then
14030 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14031 # We already found the complete path
14032 ac_dir=`dirname $AR_FOR_TARGET`
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14034 $as_echo "pre-installed in $ac_dir" >&6; }
14035 else
14036 # Canadian cross, just use what we found
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14038 $as_echo "pre-installed" >&6; }
14040 else
14041 ok=yes
14042 case " ${configdirs} " in
14043 *" binutils "*) ;;
14044 *) ok=no ;;
14045 esac
14047 if test $ok = yes; then
14048 # An in-tree tool is available and we can use it
14049 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14051 $as_echo "just compiled" >&6; }
14052 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14053 # We already found the complete path
14054 ac_dir=`dirname $AR_FOR_TARGET`
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056 $as_echo "pre-installed in $ac_dir" >&6; }
14057 elif test "x$target" = "x$host"; then
14058 # We can use an host tool
14059 AR_FOR_TARGET='$(AR)'
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14061 $as_echo "host tool" >&6; }
14062 else
14063 # We need a cross tool
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14065 $as_echo "pre-installed" >&6; }
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14070 $as_echo_n "checking where to find the target as... " >&6; }
14071 if test "x${build}" != "x${host}" ; then
14072 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14073 # We already found the complete path
14074 ac_dir=`dirname $AS_FOR_TARGET`
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14076 $as_echo "pre-installed in $ac_dir" >&6; }
14077 else
14078 # Canadian cross, just use what we found
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080 $as_echo "pre-installed" >&6; }
14082 else
14083 ok=yes
14084 case " ${configdirs} " in
14085 *" gas "*) ;;
14086 *) ok=no ;;
14087 esac
14089 if test $ok = yes; then
14090 # An in-tree tool is available and we can use it
14091 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14093 $as_echo "just compiled" >&6; }
14094 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14095 # We already found the complete path
14096 ac_dir=`dirname $AS_FOR_TARGET`
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14098 $as_echo "pre-installed in $ac_dir" >&6; }
14099 elif test "x$target" = "x$host"; then
14100 # We can use an host tool
14101 AS_FOR_TARGET='$(AS)'
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14103 $as_echo "host tool" >&6; }
14104 else
14105 # We need a cross tool
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14107 $as_echo "pre-installed" >&6; }
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14112 $as_echo_n "checking where to find the target cc... " >&6; }
14113 if test "x${build}" != "x${host}" ; then
14114 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14115 # We already found the complete path
14116 ac_dir=`dirname $CC_FOR_TARGET`
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14118 $as_echo "pre-installed in $ac_dir" >&6; }
14119 else
14120 # Canadian cross, just use what we found
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14122 $as_echo "pre-installed" >&6; }
14124 else
14125 ok=yes
14126 case " ${configdirs} " in
14127 *" gcc "*) ;;
14128 *) ok=no ;;
14129 esac
14131 if test $ok = yes; then
14132 # An in-tree tool is available and we can use it
14133 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14135 $as_echo "just compiled" >&6; }
14136 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14137 # We already found the complete path
14138 ac_dir=`dirname $CC_FOR_TARGET`
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14140 $as_echo "pre-installed in $ac_dir" >&6; }
14141 elif test "x$target" = "x$host"; then
14142 # We can use an host tool
14143 CC_FOR_TARGET='$(CC)'
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14145 $as_echo "host tool" >&6; }
14146 else
14147 # We need a cross tool
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14149 $as_echo "pre-installed" >&6; }
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14154 $as_echo_n "checking where to find the target c++... " >&6; }
14155 if test "x${build}" != "x${host}" ; then
14156 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14157 # We already found the complete path
14158 ac_dir=`dirname $CXX_FOR_TARGET`
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14160 $as_echo "pre-installed in $ac_dir" >&6; }
14161 else
14162 # Canadian cross, just use what we found
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14164 $as_echo "pre-installed" >&6; }
14166 else
14167 ok=yes
14168 case " ${configdirs} " in
14169 *" gcc "*) ;;
14170 *) ok=no ;;
14171 esac
14172 case ,${enable_languages}, in
14173 *,c++,*) ;;
14174 *) ok=no ;;
14175 esac
14176 if test $ok = yes; then
14177 # An in-tree tool is available and we can use it
14178 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14180 $as_echo "just compiled" >&6; }
14181 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
14183 ac_dir=`dirname $CXX_FOR_TARGET`
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185 $as_echo "pre-installed in $ac_dir" >&6; }
14186 elif test "x$target" = "x$host"; then
14187 # We can use an host tool
14188 CXX_FOR_TARGET='$(CXX)'
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14190 $as_echo "host tool" >&6; }
14191 else
14192 # We need a cross tool
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14194 $as_echo "pre-installed" >&6; }
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14199 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14200 if test "x${build}" != "x${host}" ; then
14201 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14202 # We already found the complete path
14203 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14205 $as_echo "pre-installed in $ac_dir" >&6; }
14206 else
14207 # Canadian cross, just use what we found
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14209 $as_echo "pre-installed" >&6; }
14211 else
14212 ok=yes
14213 case " ${configdirs} " in
14214 *" gcc "*) ;;
14215 *) ok=no ;;
14216 esac
14217 case ,${enable_languages}, in
14218 *,c++,*) ;;
14219 *) ok=no ;;
14220 esac
14221 if test $ok = yes; then
14222 # An in-tree tool is available and we can use it
14223 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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14225 $as_echo "just compiled" >&6; }
14226 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14227 # We already found the complete path
14228 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14230 $as_echo "pre-installed in $ac_dir" >&6; }
14231 elif test "x$target" = "x$host"; then
14232 # We can use an host tool
14233 RAW_CXX_FOR_TARGET='$(CXX)'
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14235 $as_echo "host tool" >&6; }
14236 else
14237 # We need a cross tool
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14239 $as_echo "pre-installed" >&6; }
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14244 $as_echo_n "checking where to find the target dlltool... " >&6; }
14245 if test "x${build}" != "x${host}" ; then
14246 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14247 # We already found the complete path
14248 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14250 $as_echo "pre-installed in $ac_dir" >&6; }
14251 else
14252 # Canadian cross, just use what we found
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14254 $as_echo "pre-installed" >&6; }
14256 else
14257 ok=yes
14258 case " ${configdirs} " in
14259 *" binutils "*) ;;
14260 *) ok=no ;;
14261 esac
14263 if test $ok = yes; then
14264 # An in-tree tool is available and we can use it
14265 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14267 $as_echo "just compiled" >&6; }
14268 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14269 # We already found the complete path
14270 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14272 $as_echo "pre-installed in $ac_dir" >&6; }
14273 elif test "x$target" = "x$host"; then
14274 # We can use an host tool
14275 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14277 $as_echo "host tool" >&6; }
14278 else
14279 # We need a cross tool
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14281 $as_echo "pre-installed" >&6; }
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14286 $as_echo_n "checking where to find the target gcc... " >&6; }
14287 if test "x${build}" != "x${host}" ; then
14288 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14289 # We already found the complete path
14290 ac_dir=`dirname $GCC_FOR_TARGET`
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14292 $as_echo "pre-installed in $ac_dir" >&6; }
14293 else
14294 # Canadian cross, just use what we found
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14296 $as_echo "pre-installed" >&6; }
14298 else
14299 ok=yes
14300 case " ${configdirs} " in
14301 *" gcc "*) ;;
14302 *) ok=no ;;
14303 esac
14305 if test $ok = yes; then
14306 # An in-tree tool is available and we can use it
14307 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14309 $as_echo "just compiled" >&6; }
14310 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14311 # We already found the complete path
14312 ac_dir=`dirname $GCC_FOR_TARGET`
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14314 $as_echo "pre-installed in $ac_dir" >&6; }
14315 elif test "x$target" = "x$host"; then
14316 # We can use an host tool
14317 GCC_FOR_TARGET='$()'
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14319 $as_echo "host tool" >&6; }
14320 else
14321 # We need a cross tool
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14323 $as_echo "pre-installed" >&6; }
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14328 $as_echo_n "checking where to find the target gcj... " >&6; }
14329 if test "x${build}" != "x${host}" ; then
14330 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14331 # We already found the complete path
14332 ac_dir=`dirname $GCJ_FOR_TARGET`
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14334 $as_echo "pre-installed in $ac_dir" >&6; }
14335 else
14336 # Canadian cross, just use what we found
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14338 $as_echo "pre-installed" >&6; }
14340 else
14341 ok=yes
14342 case " ${configdirs} " in
14343 *" gcc "*) ;;
14344 *) ok=no ;;
14345 esac
14346 case ,${enable_languages}, in
14347 *,java,*) ;;
14348 *) ok=no ;;
14349 esac
14350 if test $ok = yes; then
14351 # An in-tree tool is available and we can use it
14352 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14354 $as_echo "just compiled" >&6; }
14355 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14356 # We already found the complete path
14357 ac_dir=`dirname $GCJ_FOR_TARGET`
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14359 $as_echo "pre-installed in $ac_dir" >&6; }
14360 elif test "x$target" = "x$host"; then
14361 # We can use an host tool
14362 GCJ_FOR_TARGET='$(GCJ)'
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14364 $as_echo "host tool" >&6; }
14365 else
14366 # We need a cross tool
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14368 $as_echo "pre-installed" >&6; }
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14373 $as_echo_n "checking where to find the target gfortran... " >&6; }
14374 if test "x${build}" != "x${host}" ; then
14375 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14376 # We already found the complete path
14377 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14379 $as_echo "pre-installed in $ac_dir" >&6; }
14380 else
14381 # Canadian cross, just use what we found
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14383 $as_echo "pre-installed" >&6; }
14385 else
14386 ok=yes
14387 case " ${configdirs} " in
14388 *" gcc "*) ;;
14389 *) ok=no ;;
14390 esac
14391 case ,${enable_languages}, in
14392 *,fortran,*) ;;
14393 *) ok=no ;;
14394 esac
14395 if test $ok = yes; then
14396 # An in-tree tool is available and we can use it
14397 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14399 $as_echo "just compiled" >&6; }
14400 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14401 # We already found the complete path
14402 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14404 $as_echo "pre-installed in $ac_dir" >&6; }
14405 elif test "x$target" = "x$host"; then
14406 # We can use an host tool
14407 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14409 $as_echo "host tool" >&6; }
14410 else
14411 # We need a cross tool
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14413 $as_echo "pre-installed" >&6; }
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14418 $as_echo_n "checking where to find the target gccgo... " >&6; }
14419 if test "x${build}" != "x${host}" ; then
14420 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14421 # We already found the complete path
14422 ac_dir=`dirname $GOC_FOR_TARGET`
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14424 $as_echo "pre-installed in $ac_dir" >&6; }
14425 else
14426 # Canadian cross, just use what we found
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14428 $as_echo "pre-installed" >&6; }
14430 else
14431 ok=yes
14432 case " ${configdirs} " in
14433 *" gcc "*) ;;
14434 *) ok=no ;;
14435 esac
14436 case ,${enable_languages}, in
14437 *,go,*) ;;
14438 *) ok=no ;;
14439 esac
14440 if test $ok = yes; then
14441 # An in-tree tool is available and we can use it
14442 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14444 $as_echo "just compiled" >&6; }
14445 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14446 # We already found the complete path
14447 ac_dir=`dirname $GOC_FOR_TARGET`
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14449 $as_echo "pre-installed in $ac_dir" >&6; }
14450 elif test "x$target" = "x$host"; then
14451 # We can use an host tool
14452 GOC_FOR_TARGET='$(GOC)'
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14454 $as_echo "host tool" >&6; }
14455 else
14456 # We need a cross tool
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14458 $as_echo "pre-installed" >&6; }
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gupc" >&5
14463 $as_echo_n "checking where to find the target gupc... " >&6; }
14464 if test "x${build}" != "x${host}" ; then
14465 if expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14466 # We already found the complete path
14467 ac_dir=`dirname $GUPC_FOR_TARGET`
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14469 $as_echo "pre-installed in $ac_dir" >&6; }
14470 else
14471 # Canadian cross, just use what we found
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14473 $as_echo "pre-installed" >&6; }
14475 else
14476 ok=yes
14477 case " ${configdirs} " in
14478 *" gcc "*) ;;
14479 *) ok=no ;;
14480 esac
14481 case ,${enable_languages}, in
14482 *,upc,*) ;;
14483 *) ok=no ;;
14484 esac
14485 if test $ok = yes; then
14486 # An in-tree tool is available and we can use it
14487 GUPC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gupc -B$$r/$(HOST_SUBDIR)/gcc/'
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14489 $as_echo "just compiled" >&6; }
14490 elif expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14491 # We already found the complete path
14492 ac_dir=`dirname $GUPC_FOR_TARGET`
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14494 $as_echo "pre-installed in $ac_dir" >&6; }
14495 elif test "x$target" = "x$host"; then
14496 # We can use an host tool
14497 GUPC_FOR_TARGET='$(GUPC)'
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14499 $as_echo "host tool" >&6; }
14500 else
14501 # We need a cross tool
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14503 $as_echo "pre-installed" >&6; }
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14508 $as_echo_n "checking where to find the target ld... " >&6; }
14509 if test "x${build}" != "x${host}" ; then
14510 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14511 # We already found the complete path
14512 ac_dir=`dirname $LD_FOR_TARGET`
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14514 $as_echo "pre-installed in $ac_dir" >&6; }
14515 else
14516 # Canadian cross, just use what we found
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14518 $as_echo "pre-installed" >&6; }
14520 else
14521 ok=yes
14522 case " ${configdirs} " in
14523 *" ld "*) ;;
14524 *) ok=no ;;
14525 esac
14527 if test $ok = yes; then
14528 # An in-tree tool is available and we can use it
14529 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14531 $as_echo "just compiled" >&6; }
14532 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14533 # We already found the complete path
14534 ac_dir=`dirname $LD_FOR_TARGET`
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14536 $as_echo "pre-installed in $ac_dir" >&6; }
14537 elif test "x$target" = "x$host"; then
14538 # We can use an host tool
14539 LD_FOR_TARGET='$(LD)'
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14541 $as_echo "host tool" >&6; }
14542 else
14543 # We need a cross tool
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14545 $as_echo "pre-installed" >&6; }
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14550 $as_echo_n "checking where to find the target lipo... " >&6; }
14551 if test "x${build}" != "x${host}" ; then
14552 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14553 # We already found the complete path
14554 ac_dir=`dirname $LIPO_FOR_TARGET`
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14556 $as_echo "pre-installed in $ac_dir" >&6; }
14557 else
14558 # Canadian cross, just use what we found
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14560 $as_echo "pre-installed" >&6; }
14562 else
14563 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14564 # We already found the complete path
14565 ac_dir=`dirname $LIPO_FOR_TARGET`
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14567 $as_echo "pre-installed in $ac_dir" >&6; }
14568 elif test "x$target" = "x$host"; then
14569 # We can use an host tool
14570 LIPO_FOR_TARGET='$(LIPO)'
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14572 $as_echo "host tool" >&6; }
14573 else
14574 # We need a cross tool
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14576 $as_echo "pre-installed" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14581 $as_echo_n "checking where to find the target nm... " >&6; }
14582 if test "x${build}" != "x${host}" ; then
14583 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14584 # We already found the complete path
14585 ac_dir=`dirname $NM_FOR_TARGET`
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14587 $as_echo "pre-installed in $ac_dir" >&6; }
14588 else
14589 # Canadian cross, just use what we found
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14591 $as_echo "pre-installed" >&6; }
14593 else
14594 ok=yes
14595 case " ${configdirs} " in
14596 *" binutils "*) ;;
14597 *) ok=no ;;
14598 esac
14600 if test $ok = yes; then
14601 # An in-tree tool is available and we can use it
14602 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14604 $as_echo "just compiled" >&6; }
14605 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14606 # We already found the complete path
14607 ac_dir=`dirname $NM_FOR_TARGET`
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14609 $as_echo "pre-installed in $ac_dir" >&6; }
14610 elif test "x$target" = "x$host"; then
14611 # We can use an host tool
14612 NM_FOR_TARGET='$(NM)'
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14614 $as_echo "host tool" >&6; }
14615 else
14616 # We need a cross tool
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14618 $as_echo "pre-installed" >&6; }
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14623 $as_echo_n "checking where to find the target objdump... " >&6; }
14624 if test "x${build}" != "x${host}" ; then
14625 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14626 # We already found the complete path
14627 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14629 $as_echo "pre-installed in $ac_dir" >&6; }
14630 else
14631 # Canadian cross, just use what we found
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14633 $as_echo "pre-installed" >&6; }
14635 else
14636 ok=yes
14637 case " ${configdirs} " in
14638 *" binutils "*) ;;
14639 *) ok=no ;;
14640 esac
14642 if test $ok = yes; then
14643 # An in-tree tool is available and we can use it
14644 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14646 $as_echo "just compiled" >&6; }
14647 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14648 # We already found the complete path
14649 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14651 $as_echo "pre-installed in $ac_dir" >&6; }
14652 elif test "x$target" = "x$host"; then
14653 # We can use an host tool
14654 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14656 $as_echo "host tool" >&6; }
14657 else
14658 # We need a cross tool
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14660 $as_echo "pre-installed" >&6; }
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14665 $as_echo_n "checking where to find the target ranlib... " >&6; }
14666 if test "x${build}" != "x${host}" ; then
14667 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14668 # We already found the complete path
14669 ac_dir=`dirname $RANLIB_FOR_TARGET`
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14671 $as_echo "pre-installed in $ac_dir" >&6; }
14672 else
14673 # Canadian cross, just use what we found
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14675 $as_echo "pre-installed" >&6; }
14677 else
14678 ok=yes
14679 case " ${configdirs} " in
14680 *" binutils "*) ;;
14681 *) ok=no ;;
14682 esac
14684 if test $ok = yes; then
14685 # An in-tree tool is available and we can use it
14686 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14688 $as_echo "just compiled" >&6; }
14689 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14690 # We already found the complete path
14691 ac_dir=`dirname $RANLIB_FOR_TARGET`
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14693 $as_echo "pre-installed in $ac_dir" >&6; }
14694 elif test "x$target" = "x$host"; then
14695 # We can use an host tool
14696 RANLIB_FOR_TARGET='$(RANLIB)'
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14698 $as_echo "host tool" >&6; }
14699 else
14700 # We need a cross tool
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14702 $as_echo "pre-installed" >&6; }
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14707 $as_echo_n "checking where to find the target readelf... " >&6; }
14708 if test "x${build}" != "x${host}" ; then
14709 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14710 # We already found the complete path
14711 ac_dir=`dirname $READELF_FOR_TARGET`
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14713 $as_echo "pre-installed in $ac_dir" >&6; }
14714 else
14715 # Canadian cross, just use what we found
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14717 $as_echo "pre-installed" >&6; }
14719 else
14720 ok=yes
14721 case " ${configdirs} " in
14722 *" binutils "*) ;;
14723 *) ok=no ;;
14724 esac
14726 if test $ok = yes; then
14727 # An in-tree tool is available and we can use it
14728 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14730 $as_echo "just compiled" >&6; }
14731 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14732 # We already found the complete path
14733 ac_dir=`dirname $READELF_FOR_TARGET`
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14735 $as_echo "pre-installed in $ac_dir" >&6; }
14736 elif test "x$target" = "x$host"; then
14737 # We can use an host tool
14738 READELF_FOR_TARGET='$(READELF)'
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14740 $as_echo "host tool" >&6; }
14741 else
14742 # We need a cross tool
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14744 $as_echo "pre-installed" >&6; }
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14749 $as_echo_n "checking where to find the target strip... " >&6; }
14750 if test "x${build}" != "x${host}" ; then
14751 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14752 # We already found the complete path
14753 ac_dir=`dirname $STRIP_FOR_TARGET`
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14755 $as_echo "pre-installed in $ac_dir" >&6; }
14756 else
14757 # Canadian cross, just use what we found
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14759 $as_echo "pre-installed" >&6; }
14761 else
14762 ok=yes
14763 case " ${configdirs} " in
14764 *" binutils "*) ;;
14765 *) ok=no ;;
14766 esac
14768 if test $ok = yes; then
14769 # An in-tree tool is available and we can use it
14770 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14772 $as_echo "just compiled" >&6; }
14773 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14774 # We already found the complete path
14775 ac_dir=`dirname $STRIP_FOR_TARGET`
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14777 $as_echo "pre-installed in $ac_dir" >&6; }
14778 elif test "x$target" = "x$host"; then
14779 # We can use an host tool
14780 STRIP_FOR_TARGET='$(STRIP)'
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14782 $as_echo "host tool" >&6; }
14783 else
14784 # We need a cross tool
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14786 $as_echo "pre-installed" >&6; }
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14791 $as_echo_n "checking where to find the target windres... " >&6; }
14792 if test "x${build}" != "x${host}" ; then
14793 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14794 # We already found the complete path
14795 ac_dir=`dirname $WINDRES_FOR_TARGET`
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14797 $as_echo "pre-installed in $ac_dir" >&6; }
14798 else
14799 # Canadian cross, just use what we found
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14801 $as_echo "pre-installed" >&6; }
14803 else
14804 ok=yes
14805 case " ${configdirs} " in
14806 *" binutils "*) ;;
14807 *) ok=no ;;
14808 esac
14810 if test $ok = yes; then
14811 # An in-tree tool is available and we can use it
14812 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14814 $as_echo "just compiled" >&6; }
14815 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14816 # We already found the complete path
14817 ac_dir=`dirname $WINDRES_FOR_TARGET`
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14819 $as_echo "pre-installed in $ac_dir" >&6; }
14820 elif test "x$target" = "x$host"; then
14821 # We can use an host tool
14822 WINDRES_FOR_TARGET='$(WINDRES)'
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14824 $as_echo "host tool" >&6; }
14825 else
14826 # We need a cross tool
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14828 $as_echo "pre-installed" >&6; }
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14833 $as_echo_n "checking where to find the target windmc... " >&6; }
14834 if test "x${build}" != "x${host}" ; then
14835 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14836 # We already found the complete path
14837 ac_dir=`dirname $WINDMC_FOR_TARGET`
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14839 $as_echo "pre-installed in $ac_dir" >&6; }
14840 else
14841 # Canadian cross, just use what we found
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14843 $as_echo "pre-installed" >&6; }
14845 else
14846 ok=yes
14847 case " ${configdirs} " in
14848 *" binutils "*) ;;
14849 *) ok=no ;;
14850 esac
14852 if test $ok = yes; then
14853 # An in-tree tool is available and we can use it
14854 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14856 $as_echo "just compiled" >&6; }
14857 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14858 # We already found the complete path
14859 ac_dir=`dirname $WINDMC_FOR_TARGET`
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14861 $as_echo "pre-installed in $ac_dir" >&6; }
14862 elif test "x$target" = "x$host"; then
14863 # We can use an host tool
14864 WINDMC_FOR_TARGET='$(WINDMC)'
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14866 $as_echo "host tool" >&6; }
14867 else
14868 # We need a cross tool
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14870 $as_echo "pre-installed" >&6; }
14878 # Certain tools may need extra flags.
14879 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14880 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14881 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14883 # When building target libraries, except in a Canadian cross, we use
14884 # the same toolchain as the compiler we just built.
14885 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14886 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14887 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14888 if test $host = $build; then
14889 case " $configdirs " in
14890 *" gcc "*)
14891 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14892 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14893 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14895 esac
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14903 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14904 # Check whether --enable-maintainer-mode was given.
14905 if test "${enable_maintainer_mode+set}" = set; then :
14906 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14907 else
14908 USE_MAINTAINER_MODE=no
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14912 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14915 if test "$USE_MAINTAINER_MODE" = yes; then
14916 MAINTAINER_MODE_TRUE=
14917 MAINTAINER_MODE_FALSE='#'
14918 else
14919 MAINTAINER_MODE_TRUE='#'
14920 MAINTAINER_MODE_FALSE=
14922 MAINT=$MAINTAINER_MODE_TRUE
14924 # ---------------------
14925 # GCC bootstrap support
14926 # ---------------------
14928 # Stage specific cflags for build.
14929 stage1_cflags="-g"
14930 case $build in
14931 vax-*-*)
14932 case ${GCC} in
14933 yes) stage1_cflags="-g -Wa,-J" ;;
14934 *) stage1_cflags="-g -J" ;;
14935 esac ;;
14936 esac
14940 # Enable --enable-checking in stage1 of the compiler.
14941 # Check whether --enable-stage1-checking was given.
14942 if test "${enable_stage1_checking+set}" = set; then :
14943 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14944 else
14945 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14946 stage1_checking=--enable-checking=yes,types
14947 else
14948 stage1_checking=--enable-checking=$enable_checking,types
14954 # Enable -Werror in bootstrap stage2 and later.
14955 # Check whether --enable-werror was given.
14956 if test "${enable_werror+set}" = set; then :
14957 enableval=$enable_werror;
14958 else
14959 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14960 enable_werror=yes
14961 else
14962 enable_werror=no
14966 case ${enable_werror} in
14967 yes) stage2_werror_flag="--enable-werror-always" ;;
14968 *) stage2_werror_flag="" ;;
14969 esac
14972 # Enable --enable-host-shared.
14973 # Check whether --enable-host-shared was given.
14974 if test "${enable_host_shared+set}" = set; then :
14975 enableval=$enable_host_shared; host_shared=$enableval
14976 else
14977 host_shared=no
14982 # Specify what files to not compare during bootstrap.
14984 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14985 case "$target" in
14986 hppa*64*-*-hpux*) ;;
14987 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14988 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14989 esac
14992 ac_config_files="$ac_config_files Makefile"
14994 cat >confcache <<\_ACEOF
14995 # This file is a shell script that caches the results of configure
14996 # tests run on this system so they can be shared between configure
14997 # scripts and configure runs, see configure's option --config-cache.
14998 # It is not useful on other systems. If it contains results you don't
14999 # want to keep, you may remove or edit it.
15001 # config.status only pays attention to the cache file if you give it
15002 # the --recheck option to rerun configure.
15004 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15005 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15006 # following values.
15008 _ACEOF
15010 # The following way of writing the cache mishandles newlines in values,
15011 # but we know of no workaround that is simple, portable, and efficient.
15012 # So, we kill variables containing newlines.
15013 # Ultrix sh set writes to stderr and can't be redirected directly,
15014 # and sets the high bit in the cache file unless we assign to the vars.
15016 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15017 eval ac_val=\$$ac_var
15018 case $ac_val in #(
15019 *${as_nl}*)
15020 case $ac_var in #(
15021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15023 esac
15024 case $ac_var in #(
15025 _ | IFS | as_nl) ;; #(
15026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15027 *) { eval $ac_var=; unset $ac_var;} ;;
15028 esac ;;
15029 esac
15030 done
15032 (set) 2>&1 |
15033 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15034 *${as_nl}ac_space=\ *)
15035 # `set' does not quote correctly, so add quotes: double-quote
15036 # substitution turns \\\\ into \\, and sed turns \\ into \.
15037 sed -n \
15038 "s/'/'\\\\''/g;
15039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15040 ;; #(
15042 # `set' quotes correctly as required by POSIX, so do not add quotes.
15043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15045 esac |
15046 sort
15048 sed '
15049 /^ac_cv_env_/b end
15050 t clear
15051 :clear
15052 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15053 t end
15054 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15055 :end' >>confcache
15056 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15057 if test -w "$cache_file"; then
15058 test "x$cache_file" != "x/dev/null" &&
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15060 $as_echo "$as_me: updating cache $cache_file" >&6;}
15061 cat confcache >$cache_file
15062 else
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15064 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15067 rm -f confcache
15069 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15070 # Let make expand exec_prefix.
15071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15073 # Transform confdefs.h into DEFS.
15074 # Protect against shell expansion while executing Makefile rules.
15075 # Protect against Makefile macro expansion.
15077 # If the first sed substitution is executed (which looks for macros that
15078 # take arguments), then branch to the quote section. Otherwise,
15079 # look for a macro that doesn't take arguments.
15080 ac_script='
15081 :mline
15082 /\\$/{
15084 s,\\\n,,
15085 b mline
15087 t clear
15088 :clear
15089 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15090 t quote
15091 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15092 t quote
15093 b any
15094 :quote
15095 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15096 s/\[/\\&/g
15097 s/\]/\\&/g
15098 s/\$/$$/g
15100 :any
15103 s/^\n//
15104 s/\n/ /g
15108 DEFS=`sed -n "$ac_script" confdefs.h`
15111 ac_libobjs=
15112 ac_ltlibobjs=
15113 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15114 # 1. Remove the extension, and $U if already installed.
15115 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15116 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15117 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15118 # will be set to the directory where LIBOBJS objects are built.
15119 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15120 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15121 done
15122 LIBOBJS=$ac_libobjs
15124 LTLIBOBJS=$ac_ltlibobjs
15128 : ${CONFIG_STATUS=./config.status}
15129 ac_write_fail=0
15130 ac_clean_files_save=$ac_clean_files
15131 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15133 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15134 as_write_fail=0
15135 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15136 #! $SHELL
15137 # Generated by $as_me.
15138 # Run this file to recreate the current configuration.
15139 # Compiler output produced by configure, useful for debugging
15140 # configure, is in config.log if it exists.
15142 debug=false
15143 ac_cs_recheck=false
15144 ac_cs_silent=false
15146 SHELL=\${CONFIG_SHELL-$SHELL}
15147 export SHELL
15148 _ASEOF
15149 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15150 ## -------------------- ##
15151 ## M4sh Initialization. ##
15152 ## -------------------- ##
15154 # Be more Bourne compatible
15155 DUALCASE=1; export DUALCASE # for MKS sh
15156 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15157 emulate sh
15158 NULLCMD=:
15159 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15160 # is contrary to our usage. Disable this feature.
15161 alias -g '${1+"$@"}'='"$@"'
15162 setopt NO_GLOB_SUBST
15163 else
15164 case `(set -o) 2>/dev/null` in #(
15165 *posix*) :
15166 set -o posix ;; #(
15167 *) :
15169 esac
15173 as_nl='
15175 export as_nl
15176 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15177 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15178 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15179 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15180 # Prefer a ksh shell builtin over an external printf program on Solaris,
15181 # but without wasting forks for bash or zsh.
15182 if test -z "$BASH_VERSION$ZSH_VERSION" \
15183 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15184 as_echo='print -r --'
15185 as_echo_n='print -rn --'
15186 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15187 as_echo='printf %s\n'
15188 as_echo_n='printf %s'
15189 else
15190 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15191 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15192 as_echo_n='/usr/ucb/echo -n'
15193 else
15194 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15195 as_echo_n_body='eval
15196 arg=$1;
15197 case $arg in #(
15198 *"$as_nl"*)
15199 expr "X$arg" : "X\\(.*\\)$as_nl";
15200 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15201 esac;
15202 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15204 export as_echo_n_body
15205 as_echo_n='sh -c $as_echo_n_body as_echo'
15207 export as_echo_body
15208 as_echo='sh -c $as_echo_body as_echo'
15211 # The user is always right.
15212 if test "${PATH_SEPARATOR+set}" != set; then
15213 PATH_SEPARATOR=:
15214 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15215 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15216 PATH_SEPARATOR=';'
15221 # IFS
15222 # We need space, tab and new line, in precisely that order. Quoting is
15223 # there to prevent editors from complaining about space-tab.
15224 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15225 # splitting by setting IFS to empty value.)
15226 IFS=" "" $as_nl"
15228 # Find who we are. Look in the path if we contain no directory separator.
15229 case $0 in #((
15230 *[\\/]* ) as_myself=$0 ;;
15231 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15232 for as_dir in $PATH
15234 IFS=$as_save_IFS
15235 test -z "$as_dir" && as_dir=.
15236 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15237 done
15238 IFS=$as_save_IFS
15241 esac
15242 # We did not find ourselves, most probably we were run as `sh COMMAND'
15243 # in which case we are not to be found in the path.
15244 if test "x$as_myself" = x; then
15245 as_myself=$0
15247 if test ! -f "$as_myself"; then
15248 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15249 exit 1
15252 # Unset variables that we do not need and which cause bugs (e.g. in
15253 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15254 # suppresses any "Segmentation fault" message there. '((' could
15255 # trigger a bug in pdksh 5.2.14.
15256 for as_var in BASH_ENV ENV MAIL MAILPATH
15257 do eval test x\${$as_var+set} = xset \
15258 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15259 done
15260 PS1='$ '
15261 PS2='> '
15262 PS4='+ '
15264 # NLS nuisances.
15265 LC_ALL=C
15266 export LC_ALL
15267 LANGUAGE=C
15268 export LANGUAGE
15270 # CDPATH.
15271 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15274 # as_fn_error ERROR [LINENO LOG_FD]
15275 # ---------------------------------
15276 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15277 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15278 # script with status $?, using 1 if that was 0.
15279 as_fn_error ()
15281 as_status=$?; test $as_status -eq 0 && as_status=1
15282 if test "$3"; then
15283 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15284 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15286 $as_echo "$as_me: error: $1" >&2
15287 as_fn_exit $as_status
15288 } # as_fn_error
15291 # as_fn_set_status STATUS
15292 # -----------------------
15293 # Set $? to STATUS, without forking.
15294 as_fn_set_status ()
15296 return $1
15297 } # as_fn_set_status
15299 # as_fn_exit STATUS
15300 # -----------------
15301 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15302 as_fn_exit ()
15304 set +e
15305 as_fn_set_status $1
15306 exit $1
15307 } # as_fn_exit
15309 # as_fn_unset VAR
15310 # ---------------
15311 # Portably unset VAR.
15312 as_fn_unset ()
15314 { eval $1=; unset $1;}
15316 as_unset=as_fn_unset
15317 # as_fn_append VAR VALUE
15318 # ----------------------
15319 # Append the text in VALUE to the end of the definition contained in VAR. Take
15320 # advantage of any shell optimizations that allow amortized linear growth over
15321 # repeated appends, instead of the typical quadratic growth present in naive
15322 # implementations.
15323 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15324 eval 'as_fn_append ()
15326 eval $1+=\$2
15328 else
15329 as_fn_append ()
15331 eval $1=\$$1\$2
15333 fi # as_fn_append
15335 # as_fn_arith ARG...
15336 # ------------------
15337 # Perform arithmetic evaluation on the ARGs, and store the result in the
15338 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15339 # must be portable across $(()) and expr.
15340 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15341 eval 'as_fn_arith ()
15343 as_val=$(( $* ))
15345 else
15346 as_fn_arith ()
15348 as_val=`expr "$@" || test $? -eq 1`
15350 fi # as_fn_arith
15353 if expr a : '\(a\)' >/dev/null 2>&1 &&
15354 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15355 as_expr=expr
15356 else
15357 as_expr=false
15360 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15361 as_basename=basename
15362 else
15363 as_basename=false
15366 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15367 as_dirname=dirname
15368 else
15369 as_dirname=false
15372 as_me=`$as_basename -- "$0" ||
15373 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15374 X"$0" : 'X\(//\)$' \| \
15375 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15376 $as_echo X/"$0" |
15377 sed '/^.*\/\([^/][^/]*\)\/*$/{
15378 s//\1/
15381 /^X\/\(\/\/\)$/{
15382 s//\1/
15385 /^X\/\(\/\).*/{
15386 s//\1/
15389 s/.*/./; q'`
15391 # Avoid depending upon Character Ranges.
15392 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15393 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15394 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15395 as_cr_digits='0123456789'
15396 as_cr_alnum=$as_cr_Letters$as_cr_digits
15398 ECHO_C= ECHO_N= ECHO_T=
15399 case `echo -n x` in #(((((
15400 -n*)
15401 case `echo 'xy\c'` in
15402 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15403 xy) ECHO_C='\c';;
15404 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15405 ECHO_T=' ';;
15406 esac;;
15408 ECHO_N='-n';;
15409 esac
15411 rm -f conf$$ conf$$.exe conf$$.file
15412 if test -d conf$$.dir; then
15413 rm -f conf$$.dir/conf$$.file
15414 else
15415 rm -f conf$$.dir
15416 mkdir conf$$.dir 2>/dev/null
15418 if (echo >conf$$.file) 2>/dev/null; then
15419 if ln -s conf$$.file conf$$ 2>/dev/null; then
15420 as_ln_s='ln -s'
15421 # ... but there are two gotchas:
15422 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15423 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15424 # In both cases, we have to default to `cp -p'.
15425 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15426 as_ln_s='cp -p'
15427 elif ln conf$$.file conf$$ 2>/dev/null; then
15428 as_ln_s=ln
15429 else
15430 as_ln_s='cp -p'
15432 else
15433 as_ln_s='cp -p'
15435 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15436 rmdir conf$$.dir 2>/dev/null
15439 # as_fn_mkdir_p
15440 # -------------
15441 # Create "$as_dir" as a directory, including parents if necessary.
15442 as_fn_mkdir_p ()
15445 case $as_dir in #(
15446 -*) as_dir=./$as_dir;;
15447 esac
15448 test -d "$as_dir" || eval $as_mkdir_p || {
15449 as_dirs=
15450 while :; do
15451 case $as_dir in #(
15452 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15453 *) as_qdir=$as_dir;;
15454 esac
15455 as_dirs="'$as_qdir' $as_dirs"
15456 as_dir=`$as_dirname -- "$as_dir" ||
15457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15458 X"$as_dir" : 'X\(//\)[^/]' \| \
15459 X"$as_dir" : 'X\(//\)$' \| \
15460 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15461 $as_echo X"$as_dir" |
15462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15463 s//\1/
15466 /^X\(\/\/\)[^/].*/{
15467 s//\1/
15470 /^X\(\/\/\)$/{
15471 s//\1/
15474 /^X\(\/\).*/{
15475 s//\1/
15478 s/.*/./; q'`
15479 test -d "$as_dir" && break
15480 done
15481 test -z "$as_dirs" || eval "mkdir $as_dirs"
15482 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15485 } # as_fn_mkdir_p
15486 if mkdir -p . 2>/dev/null; then
15487 as_mkdir_p='mkdir -p "$as_dir"'
15488 else
15489 test -d ./-p && rmdir ./-p
15490 as_mkdir_p=false
15493 if test -x / >/dev/null 2>&1; then
15494 as_test_x='test -x'
15495 else
15496 if ls -dL / >/dev/null 2>&1; then
15497 as_ls_L_option=L
15498 else
15499 as_ls_L_option=
15501 as_test_x='
15502 eval sh -c '\''
15503 if test -d "$1"; then
15504 test -d "$1/.";
15505 else
15506 case $1 in #(
15507 -*)set "./$1";;
15508 esac;
15509 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15510 ???[sx]*):;;*)false;;esac;fi
15511 '\'' sh
15514 as_executable_p=$as_test_x
15516 # Sed expression to map a string onto a valid CPP name.
15517 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15519 # Sed expression to map a string onto a valid variable name.
15520 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15523 exec 6>&1
15524 ## ----------------------------------- ##
15525 ## Main body of $CONFIG_STATUS script. ##
15526 ## ----------------------------------- ##
15527 _ASEOF
15528 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15531 # Save the log message, to keep $0 and so on meaningful, and to
15532 # report actual input values of CONFIG_FILES etc. instead of their
15533 # values after options handling.
15534 ac_log="
15535 This file was extended by $as_me, which was
15536 generated by GNU Autoconf 2.64. Invocation command line was
15538 CONFIG_FILES = $CONFIG_FILES
15539 CONFIG_HEADERS = $CONFIG_HEADERS
15540 CONFIG_LINKS = $CONFIG_LINKS
15541 CONFIG_COMMANDS = $CONFIG_COMMANDS
15542 $ $0 $@
15544 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15547 _ACEOF
15549 case $ac_config_files in *"
15550 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15551 esac
15555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15556 # Files that config.status was made for.
15557 config_files="$ac_config_files"
15559 _ACEOF
15561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15562 ac_cs_usage="\
15563 \`$as_me' instantiates files and other configuration actions
15564 from templates according to the current configuration. Unless the files
15565 and actions are specified as TAGs, all are instantiated by default.
15567 Usage: $0 [OPTION]... [TAG]...
15569 -h, --help print this help, then exit
15570 -V, --version print version number and configuration settings, then exit
15571 -q, --quiet, --silent
15572 do not print progress messages
15573 -d, --debug don't remove temporary files
15574 --recheck update $as_me by reconfiguring in the same conditions
15575 --file=FILE[:TEMPLATE]
15576 instantiate the configuration file FILE
15578 Configuration files:
15579 $config_files
15581 Report bugs to the package provider."
15583 _ACEOF
15584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15585 ac_cs_version="\\
15586 config.status
15587 configured by $0, generated by GNU Autoconf 2.64,
15588 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15590 Copyright (C) 2009 Free Software Foundation, Inc.
15591 This config.status script is free software; the Free Software Foundation
15592 gives unlimited permission to copy, distribute and modify it."
15594 ac_pwd='$ac_pwd'
15595 srcdir='$srcdir'
15596 INSTALL='$INSTALL'
15597 AWK='$AWK'
15598 test -n "\$AWK" || AWK=awk
15599 _ACEOF
15601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15602 # The default lists apply if the user does not specify any file.
15603 ac_need_defaults=:
15604 while test $# != 0
15606 case $1 in
15607 --*=*)
15608 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15609 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15610 ac_shift=:
15613 ac_option=$1
15614 ac_optarg=$2
15615 ac_shift=shift
15617 esac
15619 case $ac_option in
15620 # Handling of the options.
15621 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15622 ac_cs_recheck=: ;;
15623 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15624 $as_echo "$ac_cs_version"; exit ;;
15625 --debug | --debu | --deb | --de | --d | -d )
15626 debug=: ;;
15627 --file | --fil | --fi | --f )
15628 $ac_shift
15629 case $ac_optarg in
15630 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15631 esac
15632 as_fn_append CONFIG_FILES " '$ac_optarg'"
15633 ac_need_defaults=false;;
15634 --he | --h | --help | --hel | -h )
15635 $as_echo "$ac_cs_usage"; exit ;;
15636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15637 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15638 ac_cs_silent=: ;;
15640 # This is an error.
15641 -*) as_fn_error "unrecognized option: \`$1'
15642 Try \`$0 --help' for more information." ;;
15644 *) as_fn_append ac_config_targets " $1"
15645 ac_need_defaults=false ;;
15647 esac
15648 shift
15649 done
15651 ac_configure_extra_args=
15653 if $ac_cs_silent; then
15654 exec 6>/dev/null
15655 ac_configure_extra_args="$ac_configure_extra_args --silent"
15658 _ACEOF
15659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15660 if \$ac_cs_recheck; then
15661 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15662 shift
15663 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15664 CONFIG_SHELL='$SHELL'
15665 export CONFIG_SHELL
15666 exec "\$@"
15669 _ACEOF
15670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15671 exec 5>>config.log
15673 echo
15674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15675 ## Running $as_me. ##
15676 _ASBOX
15677 $as_echo "$ac_log"
15678 } >&5
15680 _ACEOF
15681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15683 # INIT-COMMANDS
15685 extrasub_build="$extrasub_build"
15686 extrasub_host="$extrasub_host"
15687 extrasub_target="$extrasub_target"
15689 _ACEOF
15691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15693 # Handling of arguments.
15694 for ac_config_target in $ac_config_targets
15696 case $ac_config_target in
15697 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15699 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15700 esac
15701 done
15704 # If the user did not use the arguments to specify the items to instantiate,
15705 # then the envvar interface is used. Set only those that are not.
15706 # We use the long form for the default assignment because of an extremely
15707 # bizarre bug on SunOS 4.1.3.
15708 if $ac_need_defaults; then
15709 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15712 # Have a temporary directory for convenience. Make it in the build tree
15713 # simply because there is no reason against having it here, and in addition,
15714 # creating and moving files from /tmp can sometimes cause problems.
15715 # Hook for its removal unless debugging.
15716 # Note that there is a small window in which the directory will not be cleaned:
15717 # after its creation but before its name has been assigned to `$tmp'.
15718 $debug ||
15720 tmp=
15721 trap 'exit_status=$?
15722 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15724 trap 'as_fn_exit 1' 1 2 13 15
15726 # Create a (secure) tmp directory for tmp files.
15729 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15730 test -n "$tmp" && test -d "$tmp"
15731 } ||
15733 tmp=./conf$$-$RANDOM
15734 (umask 077 && mkdir "$tmp")
15735 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15737 # Set up the scripts for CONFIG_FILES section.
15738 # No need to generate them if there are no CONFIG_FILES.
15739 # This happens for instance with `./config.status config.h'.
15740 if test -n "$CONFIG_FILES"; then
15742 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15743 ac_cs_awk_getline=:
15744 ac_cs_awk_pipe_init=
15745 ac_cs_awk_read_file='
15746 while ((getline aline < (F[key])) > 0)
15747 print(aline)
15748 close(F[key])'
15749 ac_cs_awk_pipe_fini=
15750 else
15751 ac_cs_awk_getline=false
15752 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15753 ac_cs_awk_read_file='
15754 print "|#_!!_#|"
15755 print "cat " F[key] " &&"
15756 '$ac_cs_awk_pipe_init
15757 # The final `:' finishes the AND list.
15758 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15760 ac_cr=`echo X | tr X '\015'`
15761 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15762 # But we know of no other shell where ac_cr would be empty at this
15763 # point, so we can use a bashism as a fallback.
15764 if test "x$ac_cr" = x; then
15765 eval ac_cr=\$\'\\r\'
15767 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15768 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15769 ac_cs_awk_cr='\r'
15770 else
15771 ac_cs_awk_cr=$ac_cr
15774 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15775 _ACEOF
15777 # Create commands to substitute file output variables.
15779 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15780 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15781 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15782 echo "_ACAWK" &&
15783 echo "_ACEOF"
15784 } >conf$$files.sh &&
15785 . ./conf$$files.sh ||
15786 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15787 rm -f conf$$files.sh
15790 echo "cat >conf$$subs.awk <<_ACEOF" &&
15791 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15792 echo "_ACEOF"
15793 } >conf$$subs.sh ||
15794 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15795 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15796 ac_delim='%!_!# '
15797 for ac_last_try in false false false false false :; do
15798 . ./conf$$subs.sh ||
15799 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15801 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15802 if test $ac_delim_n = $ac_delim_num; then
15803 break
15804 elif $ac_last_try; then
15805 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15806 else
15807 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15809 done
15810 rm -f conf$$subs.sh
15812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15813 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15814 _ACEOF
15815 sed -n '
15817 s/^/S["/; s/!.*/"]=/
15820 s/^[^!]*!//
15821 :repl
15822 t repl
15823 s/'"$ac_delim"'$//
15824 t delim
15827 s/\(.\{148\}\).*/\1/
15828 t more1
15829 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15832 b repl
15833 :more1
15834 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15837 s/.\{148\}//
15838 t nl
15839 :delim
15841 s/\(.\{148\}\).*/\1/
15842 t more2
15843 s/["\\]/\\&/g; s/^/"/; s/$/"/
15846 :more2
15847 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15850 s/.\{148\}//
15851 t delim
15852 ' <conf$$subs.awk | sed '
15853 /^[^""]/{
15855 s/\n//
15857 ' >>$CONFIG_STATUS || ac_write_fail=1
15858 rm -f conf$$subs.awk
15859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15860 _ACAWK
15861 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15862 for (key in S) S_is_set[key] = 1
15863 FS = "\a"
15864 \$ac_cs_awk_pipe_init
15867 line = $ 0
15868 nfields = split(line, field, "@")
15869 substed = 0
15870 len = length(field[1])
15871 for (i = 2; i < nfields; i++) {
15872 key = field[i]
15873 keylen = length(key)
15874 if (S_is_set[key]) {
15875 value = S[key]
15876 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15877 len += length(value) + length(field[++i])
15878 substed = 1
15879 } else
15880 len += 1 + keylen
15882 if (nfields == 3 && !substed) {
15883 key = field[2]
15884 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15885 \$ac_cs_awk_read_file
15886 next
15889 print line
15891 \$ac_cs_awk_pipe_fini
15892 _ACAWK
15893 _ACEOF
15894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15895 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15896 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15897 else
15899 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15900 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15901 _ACEOF
15903 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15904 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15905 # trailing colons and then remove the whole line if VPATH becomes empty
15906 # (actually we leave an empty line to preserve line numbers).
15907 if test "x$srcdir" = x.; then
15908 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15909 s/:*\$(srcdir):*/:/
15910 s/:*\${srcdir}:*/:/
15911 s/:*@srcdir@:*/:/
15912 s/^\([^=]*=[ ]*\):*/\1/
15913 s/:*$//
15914 s/^[^=]*=[ ]*$//
15918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15919 fi # test -n "$CONFIG_FILES"
15922 eval set X " :F $CONFIG_FILES "
15923 shift
15924 for ac_tag
15926 case $ac_tag in
15927 :[FHLC]) ac_mode=$ac_tag; continue;;
15928 esac
15929 case $ac_mode$ac_tag in
15930 :[FHL]*:*);;
15931 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15932 :[FH]-) ac_tag=-:-;;
15933 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15934 esac
15935 ac_save_IFS=$IFS
15936 IFS=:
15937 set x $ac_tag
15938 IFS=$ac_save_IFS
15939 shift
15940 ac_file=$1
15941 shift
15943 case $ac_mode in
15944 :L) ac_source=$1;;
15945 :[FH])
15946 ac_file_inputs=
15947 for ac_f
15949 case $ac_f in
15950 -) ac_f="$tmp/stdin";;
15951 *) # Look for the file first in the build tree, then in the source tree
15952 # (if the path is not absolute). The absolute path cannot be DOS-style,
15953 # because $ac_f cannot contain `:'.
15954 test -f "$ac_f" ||
15955 case $ac_f in
15956 [\\/$]*) false;;
15957 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15958 esac ||
15959 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15960 esac
15961 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15962 as_fn_append ac_file_inputs " '$ac_f'"
15963 done
15965 # Let's still pretend it is `configure' which instantiates (i.e., don't
15966 # use $as_me), people would be surprised to read:
15967 # /* config.h. Generated by config.status. */
15968 configure_input='Generated from '`
15969 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15970 `' by configure.'
15971 if test x"$ac_file" != x-; then
15972 configure_input="$ac_file. $configure_input"
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15974 $as_echo "$as_me: creating $ac_file" >&6;}
15976 # Neutralize special characters interpreted by sed in replacement strings.
15977 case $configure_input in #(
15978 *\&* | *\|* | *\\* )
15979 ac_sed_conf_input=`$as_echo "$configure_input" |
15980 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15981 *) ac_sed_conf_input=$configure_input;;
15982 esac
15984 case $ac_tag in
15985 *:-:* | *:-) cat >"$tmp/stdin" \
15986 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15987 esac
15989 esac
15991 ac_dir=`$as_dirname -- "$ac_file" ||
15992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15993 X"$ac_file" : 'X\(//\)[^/]' \| \
15994 X"$ac_file" : 'X\(//\)$' \| \
15995 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15996 $as_echo X"$ac_file" |
15997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15998 s//\1/
16001 /^X\(\/\/\)[^/].*/{
16002 s//\1/
16005 /^X\(\/\/\)$/{
16006 s//\1/
16009 /^X\(\/\).*/{
16010 s//\1/
16013 s/.*/./; q'`
16014 as_dir="$ac_dir"; as_fn_mkdir_p
16015 ac_builddir=.
16017 case "$ac_dir" in
16018 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16020 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16021 # A ".." for each directory in $ac_dir_suffix.
16022 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16023 case $ac_top_builddir_sub in
16024 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16025 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16026 esac ;;
16027 esac
16028 ac_abs_top_builddir=$ac_pwd
16029 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16030 # for backward compatibility:
16031 ac_top_builddir=$ac_top_build_prefix
16033 case $srcdir in
16034 .) # We are building in place.
16035 ac_srcdir=.
16036 ac_top_srcdir=$ac_top_builddir_sub
16037 ac_abs_top_srcdir=$ac_pwd ;;
16038 [\\/]* | ?:[\\/]* ) # Absolute name.
16039 ac_srcdir=$srcdir$ac_dir_suffix;
16040 ac_top_srcdir=$srcdir
16041 ac_abs_top_srcdir=$srcdir ;;
16042 *) # Relative name.
16043 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16044 ac_top_srcdir=$ac_top_build_prefix$srcdir
16045 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16046 esac
16047 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16050 case $ac_mode in
16053 # CONFIG_FILE
16056 case $INSTALL in
16057 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16058 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16059 esac
16060 _ACEOF
16062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16063 # If the template does not know about datarootdir, expand it.
16064 # FIXME: This hack should be removed a few years after 2.60.
16065 ac_datarootdir_hack=; ac_datarootdir_seen=
16066 ac_sed_dataroot='
16067 /datarootdir/ {
16071 /@datadir@/p
16072 /@docdir@/p
16073 /@infodir@/p
16074 /@localedir@/p
16075 /@mandir@/p'
16076 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16077 *datarootdir*) ac_datarootdir_seen=yes;;
16078 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16080 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16081 _ACEOF
16082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16083 ac_datarootdir_hack='
16084 s&@datadir@&$datadir&g
16085 s&@docdir@&$docdir&g
16086 s&@infodir@&$infodir&g
16087 s&@localedir@&$localedir&g
16088 s&@mandir@&$mandir&g
16089 s&\\\${datarootdir}&$datarootdir&g' ;;
16090 esac
16091 _ACEOF
16093 # Neutralize VPATH when `$srcdir' = `.'.
16094 # Shell code in configure.ac might set extrasub.
16095 # FIXME: do we really want to maintain this feature?
16096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16097 ac_sed_extra="$ac_vpsub
16098 $extrasub
16099 _ACEOF
16100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16103 s|@configure_input@|$ac_sed_conf_input|;t t
16104 s&@top_builddir@&$ac_top_builddir_sub&;t t
16105 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16106 s&@srcdir@&$ac_srcdir&;t t
16107 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16108 s&@top_srcdir@&$ac_top_srcdir&;t t
16109 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16110 s&@builddir@&$ac_builddir&;t t
16111 s&@abs_builddir@&$ac_abs_builddir&;t t
16112 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16113 s&@INSTALL@&$ac_INSTALL&;t t
16114 $ac_datarootdir_hack
16116 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16117 if $ac_cs_awk_getline; then
16118 $AWK -f "$tmp/subs.awk"
16119 else
16120 $AWK -f "$tmp/subs.awk" | $SHELL
16121 fi >$tmp/out \
16122 || as_fn_error "could not create $ac_file" "$LINENO" 5
16124 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16125 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16128 which seems to be undefined. Please make sure it is defined." >&5
16129 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16130 which seems to be undefined. Please make sure it is defined." >&2;}
16132 rm -f "$tmp/stdin"
16133 case $ac_file in
16134 -) cat "$tmp/out" && rm -f "$tmp/out";;
16135 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16136 esac \
16137 || as_fn_error "could not create $ac_file" "$LINENO" 5
16142 esac
16145 case $ac_file$ac_mode in
16146 "Makefile":F) sed "$extrasub_build" Makefile |
16147 sed "$extrasub_host" |
16148 sed "$extrasub_target" > mf$$
16149 mv -f mf$$ Makefile ;;
16151 esac
16152 done # for ac_tag
16155 as_fn_exit 0
16156 _ACEOF
16157 ac_clean_files=$ac_clean_files_save
16159 test $ac_write_fail = 0 ||
16160 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16163 # configure is writing to config.log, and then calls config.status.
16164 # config.status does its own redirection, appending to config.log.
16165 # Unfortunately, on DOS this fails, as config.log is still kept open
16166 # by configure, so config.status won't be able to write to it; its
16167 # output is simply discarded. So we exec the FD to /dev/null,
16168 # effectively closing config.log, so it can be properly (re)opened and
16169 # appended to by config.status. When coming back to configure, we
16170 # need to make the FD available again.
16171 if test "$no_create" != yes; then
16172 ac_cs_success=:
16173 ac_config_status_args=
16174 test "$silent" = yes &&
16175 ac_config_status_args="$ac_config_status_args --quiet"
16176 exec 5>/dev/null
16177 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16178 exec 5>>config.log
16179 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16180 # would make configure fail if this is the last instruction.
16181 $ac_cs_success || as_fn_exit $?
16183 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16185 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}