libgomp: Support NULL mappings as well as mapping kind OMP_CLAUSE_MAP_TO_PSET.
[official-gcc.git] / configure
blobea641998d95a77dc7bf042c60086aaa6cb1f7360
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 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 clooginc
650 clooglibs
651 islinc
652 poststage1_ldflags
653 poststage1_libs
654 stage1_ldflags
655 stage1_libs
656 extra_isl_gmp_configure_flags
657 extra_mpc_mpfr_configure_flags
658 extra_mpc_gmp_configure_flags
659 extra_mpfr_configure_flags
660 gmpinc
661 gmplibs
662 do_compare
663 GNATMAKE
664 GNATBIND
665 ac_ct_CXX
666 CXXFLAGS
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
675 EXTRA_CONFIGARGS_LIBJAVA
676 extra_accelerator_gcc_configure_flags
677 extra_target_gcc_configure_flags
678 accel_target_os
679 accel_target_vendor
680 accel_target_cpu
681 accel_target_alias
682 accel_target
683 accel_target_noncanonical
684 target_subdir
685 host_subdir
686 build_subdir
687 build_libsubdir
690 LN_S
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 target_os
696 target_vendor
697 target_cpu
698 target
699 host_os
700 host_vendor
701 host_cpu
702 host
703 target_noncanonical
704 host_noncanonical
705 build_noncanonical
706 build_os
707 build_vendor
708 build_cpu
709 build
710 TOPLEVEL_CONFIGURE_ARGUMENTS
711 target_alias
712 host_alias
713 build_alias
714 LIBS
715 ECHO_T
716 ECHO_N
717 ECHO_C
718 DEFS
719 mandir
720 localedir
721 libdir
722 psdir
723 pdfdir
724 dvidir
725 htmldir
726 infodir
727 docdir
728 oldincludedir
729 includedir
730 localstatedir
731 sharedstatedir
732 sysconfdir
733 datadir
734 datarootdir
735 libexecdir
736 sbindir
737 bindir
738 program_transform_name
739 prefix
740 exec_prefix
741 PACKAGE_URL
742 PACKAGE_BUGREPORT
743 PACKAGE_STRING
744 PACKAGE_VERSION
745 PACKAGE_TARNAME
746 PACKAGE_NAME
747 PATH_SEPARATOR
748 SHELL'
749 ac_subst_files='serialization_dependencies
750 host_makefile_frag
751 target_makefile_frag
752 alphaieee_frag
753 ospace_frag'
754 ac_user_opts='
755 enable_option_checking
756 with_build_libsubdir
757 enable_accelerator
758 enable_target_gcc_configure_flags
759 enable_accelerator_gcc_configure_flags
760 enable_gold
761 enable_ld
762 enable_libquadmath
763 enable_libquadmath_support
764 enable_libada
765 enable_libssp
766 enable_libstdcxx
767 enable_static_libjava
768 enable_bootstrap
769 with_mpc
770 with_mpc_include
771 with_mpc_lib
772 with_mpfr_dir
773 with_mpfr
774 with_mpfr_include
775 with_mpfr_lib
776 with_gmp_dir
777 with_gmp
778 with_gmp_include
779 with_gmp_lib
780 with_host_libstdcxx
781 with_stage1_libs
782 with_stage1_ldflags
783 with_boot_libs
784 with_boot_ldflags
785 with_cloog
786 with_isl
787 with_isl_include
788 with_isl_lib
789 enable_isl_version_check
790 with_cloog_include
791 with_cloog_lib
792 enable_cloog_version_check
793 enable_lto
794 enable_linker_plugin_configure_flags
795 enable_linker_plugin_flags
796 enable_stage1_languages
797 enable_objc_gc
798 with_build_sysroot
799 with_debug_prefix_map
800 with_build_config
801 enable_vtable_verify
802 enable_serial_configure
803 with_build_time_tools
804 enable_maintainer_mode
805 enable_stage1_checking
806 enable_werror
807 enable_host_shared
809 ac_precious_vars='build_alias
810 host_alias
811 target_alias
813 CFLAGS
814 LDFLAGS
815 LIBS
816 CPPFLAGS
818 CXXFLAGS
820 build_configargs
821 host_configargs
822 target_configargs
825 DLLTOOL
827 LIPO
829 RANLIB
830 STRIP
831 WINDRES
832 WINDMC
833 OBJCOPY
834 OBJDUMP
835 READELF
836 CC_FOR_TARGET
837 CXX_FOR_TARGET
838 GCC_FOR_TARGET
839 GCJ_FOR_TARGET
840 GFORTRAN_FOR_TARGET
841 GOC_FOR_TARGET
842 AR_FOR_TARGET
843 AS_FOR_TARGET
844 DLLTOOL_FOR_TARGET
845 LD_FOR_TARGET
846 LIPO_FOR_TARGET
847 NM_FOR_TARGET
848 OBJDUMP_FOR_TARGET
849 RANLIB_FOR_TARGET
850 READELF_FOR_TARGET
851 STRIP_FOR_TARGET
852 WINDRES_FOR_TARGET
853 WINDMC_FOR_TARGET'
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
904 ac_prev=
905 ac_dashdash=
906 for ac_option
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
915 case $ac_option in
916 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *) ac_optarg=yes ;;
918 esac
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
924 ac_dashdash=yes ;;
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
943 --config-cache | -C)
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1238 -*) as_fn_error "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information."
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260 esac
1261 done
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error "missing argument to $ac_option"
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error "pwd does not report name of working directory"
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1347 /^X\(\/\/\)$/{
1348 s//\1/
1351 /^X\(\/\).*/{
1352 s//\1/
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1360 else
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 case $srcdir in
1382 *" "*)
1383 as_fn_error "path to source, $srcdir, contains spaces"
1385 esac
1386 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 \`configure' configures this package to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455 _ACEOF
1457 cat <<\_ACEOF
1459 Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464 System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 --target=TARGET configure for building compilers for TARGET [HOST]
1468 _ACEOF
1471 if test -n "$ac_init_help"; then
1473 cat <<\_ACEOF
1475 Optional Features:
1476 --disable-option-checking ignore unrecognized --enable/--with options
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --enable-accelerator[=ARG]
1480 build accelerator
1481 [ARG={no,auto-device-triplet,device-triplet}]
1482 --enable-target-gcc-configure-flags=FLAGS
1483 additional flags for configuring the target GCC
1484 [none]
1485 --enable-accelerator-gcc-configure-flags=FLAGS
1486 additional flags for configuring the accelerator GCC
1487 [none]
1488 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1489 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1490 --disable-libquadmath do not build libquadmath directory
1491 --disable-libquadmath-support
1492 disable libquadmath support for Fortran
1493 --enable-libada build libada directory
1494 --enable-libssp build libssp directory
1495 --disable-libstdcxx do not build libstdc++-v3 directory
1496 --enable-static-libjava[=ARG]
1497 build static libjava [default=no]
1498 --enable-bootstrap enable bootstrapping [yes if native build]
1499 --disable-isl-version-check
1500 disable check for ISL version
1501 --disable-cloog-version-check
1502 disable check for CLooG version
1503 --enable-lto enable link time optimization support
1504 --enable-linker-plugin-configure-flags=FLAGS
1505 additional flags for configuring linker plugins
1506 [none]
1507 --enable-linker-plugin-flags=FLAGS
1508 additional flags for configuring and building linker
1509 plugins [none]
1510 --enable-stage1-languages[=all]
1511 choose additional languages to build during stage1.
1512 Mostly useful for compiler development
1513 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1514 Objective-C runtime
1515 --enable-vtable-verify Enable vtable verification feature
1516 --enable-serial-[{host,target,build}-]configure
1517 force sequential configuration of sub-packages for
1518 the host, target or build machine, or all
1519 sub-packages
1520 --enable-maintainer-mode
1521 enable make rules and dependencies not useful (and
1522 sometimes confusing) to the casual installer
1523 --enable-stage1-checking[=all]
1524 choose additional checking for stage1 of the
1525 compiler
1526 --enable-werror enable -Werror in bootstrap stage2 and later
1527 --enable-host-shared build host code as shared libraries
1529 Optional Packages:
1530 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1531 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1532 --with-build-libsubdir=DIR Directory where to find libraries for build system
1533 --with-mpc=PATH specify prefix directory for installed MPC package.
1534 Equivalent to --with-mpc-include=PATH/include plus
1535 --with-mpc-lib=PATH/lib
1536 --with-mpc-include=PATH specify directory for installed MPC include files
1537 --with-mpc-lib=PATH specify directory for the installed MPC library
1538 --with-mpfr-dir=PATH this option has been REMOVED
1539 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1540 Equivalent to --with-mpfr-include=PATH/include plus
1541 --with-mpfr-lib=PATH/lib
1542 --with-mpfr-include=PATH
1543 specify directory for installed MPFR include files
1544 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1545 --with-gmp-dir=PATH this option has been REMOVED
1546 --with-gmp=PATH specify prefix directory for the installed GMP
1547 package. Equivalent to
1548 --with-gmp-include=PATH/include plus
1549 --with-gmp-lib=PATH/lib
1550 --with-gmp-include=PATH specify directory for installed GMP include files
1551 --with-gmp-lib=PATH specify directory for the installed GMP library
1552 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1553 linking with PPL
1554 --with-stage1-libs=LIBS libraries for stage1
1555 --with-stage1-ldflags=FLAGS
1556 linker flags for stage1
1557 --with-boot-libs=LIBS libraries for stage2 and later
1558 --with-boot-ldflags=FLAGS
1559 linker flags for stage2 and later
1560 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1561 package. Equivalent to
1562 --with-cloog-include=PATH/include plus
1563 --with-cloog-lib=PATH/lib
1564 --with-isl=PATH Specify prefix directory for the installed ISL
1565 package. Equivalent to
1566 --with-isl-include=PATH/include plus
1567 --with-isl-lib=PATH/lib
1568 --with-isl-include=PATH Specify directory for installed ISL include files
1569 --with-isl-lib=PATH Specify the directory for the installed ISL library
1570 --with-cloog-include=PATH
1571 Specify directory for installed CLooG include files
1572 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1573 library
1574 --with-build-sysroot=SYSROOT
1575 use sysroot as the system root during the build
1576 --with-debug-prefix-map='A=B C=D ...'
1577 map A to B, C to D ... in debug information
1578 --with-build-config='NAME NAME2...'
1579 use config/NAME.mk build configuration
1580 --with-build-time-tools=PATH
1581 use given path to find target tools during the build
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CXX C++ compiler command
1592 CXXFLAGS C++ compiler flags
1593 build_configargs
1594 additional configure arguments for build directories
1595 host_configargs
1596 additional configure arguments for host directories
1597 target_configargs
1598 additional configure arguments for target directories
1599 AR AR for the host
1600 AS AS for the host
1601 DLLTOOL DLLTOOL for the host
1602 LD LD for the host
1603 LIPO LIPO for the host
1604 NM NM for the host
1605 RANLIB RANLIB for the host
1606 STRIP STRIP for the host
1607 WINDRES WINDRES for the host
1608 WINDMC WINDMC for the host
1609 OBJCOPY OBJCOPY for the host
1610 OBJDUMP OBJDUMP for the host
1611 READELF READELF for the host
1612 CC_FOR_TARGET
1613 CC for the target
1614 CXX_FOR_TARGET
1615 CXX for the target
1616 GCC_FOR_TARGET
1617 GCC for the target
1618 GCJ_FOR_TARGET
1619 GCJ for the target
1620 GFORTRAN_FOR_TARGET
1621 GFORTRAN for the target
1622 GOC_FOR_TARGET
1623 GOC for the target
1624 AR_FOR_TARGET
1625 AR for the target
1626 AS_FOR_TARGET
1627 AS for the target
1628 DLLTOOL_FOR_TARGET
1629 DLLTOOL for the target
1630 LD_FOR_TARGET
1631 LD for the target
1632 LIPO_FOR_TARGET
1633 LIPO for the target
1634 NM_FOR_TARGET
1635 NM for the target
1636 OBJDUMP_FOR_TARGET
1637 OBJDUMP for the target
1638 RANLIB_FOR_TARGET
1639 RANLIB for the target
1640 READELF_FOR_TARGET
1641 READELF for the target
1642 STRIP_FOR_TARGET
1643 STRIP for the target
1644 WINDRES_FOR_TARGET
1645 WINDRES for the target
1646 WINDMC_FOR_TARGET
1647 WINDMC for the target
1649 Use these variables to override the choices made by `configure' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1652 Report bugs to the package provider.
1653 _ACEOF
1654 ac_status=$?
1657 if test "$ac_init_help" = "recursive"; then
1658 # If there are subdirs, report their specific --help.
1659 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1660 test -d "$ac_dir" ||
1661 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1662 continue
1663 ac_builddir=.
1665 case "$ac_dir" in
1666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1669 # A ".." for each directory in $ac_dir_suffix.
1670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1671 case $ac_top_builddir_sub in
1672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1674 esac ;;
1675 esac
1676 ac_abs_top_builddir=$ac_pwd
1677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678 # for backward compatibility:
1679 ac_top_builddir=$ac_top_build_prefix
1681 case $srcdir in
1682 .) # We are building in place.
1683 ac_srcdir=.
1684 ac_top_srcdir=$ac_top_builddir_sub
1685 ac_abs_top_srcdir=$ac_pwd ;;
1686 [\\/]* | ?:[\\/]* ) # Absolute name.
1687 ac_srcdir=$srcdir$ac_dir_suffix;
1688 ac_top_srcdir=$srcdir
1689 ac_abs_top_srcdir=$srcdir ;;
1690 *) # Relative name.
1691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692 ac_top_srcdir=$ac_top_build_prefix$srcdir
1693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1694 esac
1695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697 cd "$ac_dir" || { ac_status=$?; continue; }
1698 # Check for guested configure.
1699 if test -f "$ac_srcdir/configure.gnu"; then
1700 echo &&
1701 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1702 elif test -f "$ac_srcdir/configure"; then
1703 echo &&
1704 $SHELL "$ac_srcdir/configure" --help=recursive
1705 else
1706 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1707 fi || ac_status=$?
1708 cd "$ac_pwd" || { ac_status=$?; break; }
1709 done
1712 test -n "$ac_init_help" && exit $ac_status
1713 if $ac_init_version; then
1714 cat <<\_ACEOF
1715 configure
1716 generated by GNU Autoconf 2.64
1718 Copyright (C) 2009 Free Software Foundation, Inc.
1719 This configure script is free software; the Free Software Foundation
1720 gives unlimited permission to copy, distribute and modify it.
1721 _ACEOF
1722 exit
1725 ## ------------------------ ##
1726 ## Autoconf initialization. ##
1727 ## ------------------------ ##
1729 # ac_fn_c_try_compile LINENO
1730 # --------------------------
1731 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext
1736 if { { ac_try="$ac_compile"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_compile") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest.$ac_objext; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1760 ac_retval=1
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 return $ac_retval
1765 } # ac_fn_c_try_compile
1767 # ac_fn_cxx_try_compile LINENO
1768 # ----------------------------
1769 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_cxx_try_compile ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext
1774 if { { ac_try="$ac_compile"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_compile") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_cxx_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest.$ac_objext; then :
1793 ac_retval=0
1794 else
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1798 ac_retval=1
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 return $ac_retval
1803 } # ac_fn_cxx_try_compile
1805 # ac_fn_cxx_try_link LINENO
1806 # -------------------------
1807 # Try to link conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_cxx_try_link ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext conftest$ac_exeext
1812 if { { ac_try="$ac_link"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_link") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_cxx_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest$ac_exeext && {
1831 test "$cross_compiling" = yes ||
1832 $as_test_x conftest$ac_exeext
1833 }; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 ac_retval=1
1841 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1842 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1843 # interfere with the next link command; also delete a directory that is
1844 # left behind by Apple's compiler. We do this before executing the actions.
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 return $ac_retval
1849 } # ac_fn_cxx_try_link
1851 # ac_fn_c_try_link LINENO
1852 # -----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_c_try_link ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 rm -f conftest.$ac_objext conftest$ac_exeext
1858 if { { ac_try="$ac_link"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && {
1874 test -z "$ac_c_werror_flag" ||
1875 test ! -s conftest.err
1876 } && test -s conftest$ac_exeext && {
1877 test "$cross_compiling" = yes ||
1878 $as_test_x conftest$ac_exeext
1879 }; then :
1880 ac_retval=0
1881 else
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=1
1887 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1888 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1889 # interfere with the next link command; also delete a directory that is
1890 # left behind by Apple's compiler. We do this before executing the actions.
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 return $ac_retval
1895 } # ac_fn_c_try_link
1897 # ac_fn_c_try_run LINENO
1898 # ----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1900 # that executables *can* be run.
1901 ac_fn_c_try_run ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>&5
1912 ac_status=$?
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1915 { { case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_try") 2>&5
1922 ac_status=$?
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; }; }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: program exited with status $ac_status" >&5
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=$ac_status
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935 return $ac_retval
1937 } # ac_fn_c_try_run
1938 cat >config.log <<_ACEOF
1939 This file contains any messages produced by compilers while
1940 running configure, to aid debugging if configure makes a mistake.
1942 It was created by $as_me, which was
1943 generated by GNU Autoconf 2.64. Invocation command line was
1945 $ $0 $@
1947 _ACEOF
1948 exec 5>>config.log
1950 cat <<_ASUNAME
1951 ## --------- ##
1952 ## Platform. ##
1953 ## --------- ##
1955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1964 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1965 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1968 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1969 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1970 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1972 _ASUNAME
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 $as_echo "PATH: $as_dir"
1980 done
1981 IFS=$as_save_IFS
1983 } >&5
1985 cat >&5 <<_ACEOF
1988 ## ----------- ##
1989 ## Core tests. ##
1990 ## ----------- ##
1992 _ACEOF
1995 # Keep a trace of the command line.
1996 # Strip out --no-create and --no-recursion so they do not pile up.
1997 # Strip out --silent because we don't want to record it for future runs.
1998 # Also quote any args containing shell meta-characters.
1999 # Make two passes to allow for proper duplicate-argument suppression.
2000 ac_configure_args=
2001 ac_configure_args0=
2002 ac_configure_args1=
2003 ac_must_keep_next=false
2004 for ac_pass in 1 2
2006 for ac_arg
2008 case $ac_arg in
2009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2011 | -silent | --silent | --silen | --sile | --sil)
2012 continue ;;
2013 *\'*)
2014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2015 esac
2016 case $ac_pass in
2017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2019 as_fn_append ac_configure_args1 " '$ac_arg'"
2020 if test $ac_must_keep_next = true; then
2021 ac_must_keep_next=false # Got value, back to normal.
2022 else
2023 case $ac_arg in
2024 *=* | --config-cache | -C | -disable-* | --disable-* \
2025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2027 | -with-* | --with-* | -without-* | --without-* | --x)
2028 case "$ac_configure_args0 " in
2029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2030 esac
2032 -* ) ac_must_keep_next=true ;;
2033 esac
2035 as_fn_append ac_configure_args " '$ac_arg'"
2037 esac
2038 done
2039 done
2040 { ac_configure_args0=; unset ac_configure_args0;}
2041 { ac_configure_args1=; unset ac_configure_args1;}
2043 # When interrupted or exit'd, cleanup temporary files, and complete
2044 # config.log. We remove comments because anyway the quotes in there
2045 # would cause problems or look ugly.
2046 # WARNING: Use '\'' to represent an apostrophe within the trap.
2047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2048 trap 'exit_status=$?
2049 # Save into config.log some information that might help in debugging.
2051 echo
2053 cat <<\_ASBOX
2054 ## ---------------- ##
2055 ## Cache variables. ##
2056 ## ---------------- ##
2057 _ASBOX
2058 echo
2059 # The following way of writing the cache mishandles newlines in values,
2061 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2062 eval ac_val=\$$ac_var
2063 case $ac_val in #(
2064 *${as_nl}*)
2065 case $ac_var in #(
2066 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2067 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2068 esac
2069 case $ac_var in #(
2070 _ | IFS | as_nl) ;; #(
2071 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2072 *) { eval $ac_var=; unset $ac_var;} ;;
2073 esac ;;
2074 esac
2075 done
2076 (set) 2>&1 |
2077 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2078 *${as_nl}ac_space=\ *)
2079 sed -n \
2080 "s/'\''/'\''\\\\'\'''\''/g;
2081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2082 ;; #(
2084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086 esac |
2087 sort
2089 echo
2091 cat <<\_ASBOX
2092 ## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##
2095 _ASBOX
2096 echo
2097 for ac_var in $ac_subst_vars
2099 eval ac_val=\$$ac_var
2100 case $ac_val in
2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102 esac
2103 $as_echo "$ac_var='\''$ac_val'\''"
2104 done | sort
2105 echo
2107 if test -n "$ac_subst_files"; then
2108 cat <<\_ASBOX
2109 ## ------------------- ##
2110 ## File substitutions. ##
2111 ## ------------------- ##
2112 _ASBOX
2113 echo
2114 for ac_var in $ac_subst_files
2116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 $as_echo "$ac_var='\''$ac_val'\''"
2121 done | sort
2122 echo
2125 if test -s confdefs.h; then
2126 cat <<\_ASBOX
2127 ## ----------- ##
2128 ## confdefs.h. ##
2129 ## ----------- ##
2130 _ASBOX
2131 echo
2132 cat confdefs.h
2133 echo
2135 test "$ac_signal" != 0 &&
2136 $as_echo "$as_me: caught signal $ac_signal"
2137 $as_echo "$as_me: exit $exit_status"
2138 } >&5
2139 rm -f core *.core core.conftest.* &&
2140 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2141 exit $exit_status
2143 for ac_signal in 1 2 13 15; do
2144 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2145 done
2146 ac_signal=0
2148 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2149 rm -f -r conftest* confdefs.h
2151 $as_echo "/* confdefs.h */" > confdefs.h
2153 # Predefined preprocessor variables.
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_NAME "$PACKAGE_NAME"
2157 _ACEOF
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2161 _ACEOF
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2165 _ACEOF
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_STRING "$PACKAGE_STRING"
2169 _ACEOF
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2173 _ACEOF
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_URL "$PACKAGE_URL"
2177 _ACEOF
2180 # Let the site file select an alternate cache file if it wants to.
2181 # Prefer an explicitly selected file to automatically selected ones.
2182 ac_site_file1=NONE
2183 ac_site_file2=NONE
2184 if test -n "$CONFIG_SITE"; then
2185 ac_site_file1=$CONFIG_SITE
2186 elif test "x$prefix" != xNONE; then
2187 ac_site_file1=$prefix/share/config.site
2188 ac_site_file2=$prefix/etc/config.site
2189 else
2190 ac_site_file1=$ac_default_prefix/share/config.site
2191 ac_site_file2=$ac_default_prefix/etc/config.site
2193 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2195 test "x$ac_site_file" = xNONE && continue
2196 if test -r "$ac_site_file"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2199 sed 's/^/| /' "$ac_site_file" >&5
2200 . "$ac_site_file"
2202 done
2204 if test -r "$cache_file"; then
2205 # Some versions of bash will fail to source /dev/null (special
2206 # files actually), so we avoid doing that.
2207 if test -f "$cache_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209 $as_echo "$as_me: loading cache $cache_file" >&6;}
2210 case $cache_file in
2211 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212 *) . "./$cache_file";;
2213 esac
2215 else
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217 $as_echo "$as_me: creating cache $cache_file" >&6;}
2218 >$cache_file
2221 # Check that the precious variables saved in the cache have kept the same
2222 # value.
2223 ac_cache_corrupted=false
2224 for ac_var in $ac_precious_vars; do
2225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2226 eval ac_new_set=\$ac_env_${ac_var}_set
2227 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2228 eval ac_new_val=\$ac_env_${ac_var}_value
2229 case $ac_old_set,$ac_new_set in
2230 set,)
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2232 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2233 ac_cache_corrupted=: ;;
2234 ,set)
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2238 ,);;
2240 if test "x$ac_old_val" != "x$ac_new_val"; then
2241 # differences in whitespace do not lead to failure.
2242 ac_old_val_w=`echo x $ac_old_val`
2243 ac_new_val_w=`echo x $ac_new_val`
2244 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2246 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2247 ac_cache_corrupted=:
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2250 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2251 eval $ac_var=\$ac_old_val
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2254 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2256 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2257 fi;;
2258 esac
2259 # Pass precious variables to config.status.
2260 if test "$ac_new_set" = set; then
2261 case $ac_new_val in
2262 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2263 *) ac_arg=$ac_var=$ac_new_val ;;
2264 esac
2265 case " $ac_configure_args " in
2266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2267 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2268 esac
2270 done
2271 if $ac_cache_corrupted; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2275 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2276 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 ## -------------------- ##
2279 ## Main body of script. ##
2280 ## -------------------- ##
2282 ac_ext=c
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296 progname=$0
2297 # if PWD already has a value, it is probably wrong.
2298 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2300 # Export original configure arguments for use by sub-configures.
2301 # Quote arguments with shell meta charatcers.
2302 TOPLEVEL_CONFIGURE_ARGUMENTS=
2303 set -- "$progname" "$@"
2304 for ac_arg
2306 case "$ac_arg" in
2307 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2308 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2309 # if the argument is of the form -foo=baz, quote the baz part only
2310 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2311 *) ;;
2312 esac
2313 # Add the quoted argument to the list.
2314 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2315 done
2316 if test "$silent" = yes; then
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2319 # Remove the initial space we just introduced and, as these will be
2320 # expanded by make, quote '$'.
2321 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2324 # Find the build, host, and target systems.
2325 ac_aux_dir=
2326 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2327 for ac_t in install-sh install.sh shtool; do
2328 if test -f "$ac_dir/$ac_t"; then
2329 ac_aux_dir=$ac_dir
2330 ac_install_sh="$ac_aux_dir/$ac_t -c"
2331 break 2
2333 done
2334 done
2335 if test -z "$ac_aux_dir"; then
2336 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2339 # These three variables are undocumented and unsupported,
2340 # and are intended to be withdrawn in a future Autoconf release.
2341 # They can cause serious problems if a builder's source tree is in a directory
2342 # whose full name contains unusual characters.
2343 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2344 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2345 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2348 # Make sure we can run config.sub.
2349 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2350 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2353 $as_echo_n "checking build system type... " >&6; }
2354 if test "${ac_cv_build+set}" = set; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 ac_build_alias=$build_alias
2358 test "x$ac_build_alias" = x &&
2359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2360 test "x$ac_build_alias" = x &&
2361 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2362 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2363 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2367 $as_echo "$ac_cv_build" >&6; }
2368 case $ac_cv_build in
2369 *-*-*) ;;
2370 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2371 esac
2372 build=$ac_cv_build
2373 ac_save_IFS=$IFS; IFS='-'
2374 set x $ac_cv_build
2375 shift
2376 build_cpu=$1
2377 build_vendor=$2
2378 shift; shift
2379 # Remember, the first character of IFS is used to create $*,
2380 # except with old shells:
2381 build_os=$*
2382 IFS=$ac_save_IFS
2383 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2386 case ${build_alias} in
2387 "") build_noncanonical=${build} ;;
2388 *) build_noncanonical=${build_alias} ;;
2389 esac
2393 case ${host_alias} in
2394 "") host_noncanonical=${build_noncanonical} ;;
2395 *) host_noncanonical=${host_alias} ;;
2396 esac
2400 case ${target_alias} in
2401 "") target_noncanonical=${host_noncanonical} ;;
2402 *) target_noncanonical=${target_alias} ;;
2403 esac
2408 test "$host_noncanonical" = "$target_noncanonical" &&
2409 test "$program_prefix$program_suffix$program_transform_name" = \
2410 NONENONEs,x,x, &&
2411 program_transform_name=s,y,y,
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2414 $as_echo_n "checking host system type... " >&6; }
2415 if test "${ac_cv_host+set}" = set; then :
2416 $as_echo_n "(cached) " >&6
2417 else
2418 if test "x$host_alias" = x; then
2419 ac_cv_host=$ac_cv_build
2420 else
2421 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2422 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2427 $as_echo "$ac_cv_host" >&6; }
2428 case $ac_cv_host in
2429 *-*-*) ;;
2430 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2431 esac
2432 host=$ac_cv_host
2433 ac_save_IFS=$IFS; IFS='-'
2434 set x $ac_cv_host
2435 shift
2436 host_cpu=$1
2437 host_vendor=$2
2438 shift; shift
2439 # Remember, the first character of IFS is used to create $*,
2440 # except with old shells:
2441 host_os=$*
2442 IFS=$ac_save_IFS
2443 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2447 $as_echo_n "checking target system type... " >&6; }
2448 if test "${ac_cv_target+set}" = set; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 if test "x$target_alias" = x; then
2452 ac_cv_target=$ac_cv_host
2453 else
2454 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2455 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2460 $as_echo "$ac_cv_target" >&6; }
2461 case $ac_cv_target in
2462 *-*-*) ;;
2463 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2464 esac
2465 target=$ac_cv_target
2466 ac_save_IFS=$IFS; IFS='-'
2467 set x $ac_cv_target
2468 shift
2469 target_cpu=$1
2470 target_vendor=$2
2471 shift; shift
2472 # Remember, the first character of IFS is used to create $*,
2473 # except with old shells:
2474 target_os=$*
2475 IFS=$ac_save_IFS
2476 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2479 # The aliases save the names the user supplied, while $host etc.
2480 # will get canonicalized.
2481 test -n "$target_alias" &&
2482 test "$program_prefix$program_suffix$program_transform_name" = \
2483 NONENONEs,x,x, &&
2484 program_prefix=${target_alias}-
2486 test "$program_prefix" != NONE &&
2487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2488 # Use a double $ so make ignores it.
2489 test "$program_suffix" != NONE &&
2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491 # Double any \ or $.
2492 # By default was `s,x,x', remove it if useless.
2493 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2498 # Get 'install' or 'install-sh' and its variants.
2499 # Find a good install program. We prefer a C program (faster),
2500 # so one script is as good as another. But avoid the broken or
2501 # incompatible versions:
2502 # SysV /etc/install, /usr/sbin/install
2503 # SunOS /usr/etc/install
2504 # IRIX /sbin/install
2505 # AIX /bin/install
2506 # AmigaOS /C/install, which installs bootblocks on floppy discs
2507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2510 # OS/2's system install, which has a completely different semantic
2511 # ./install, which can be erroneously created by make from ./install.sh.
2512 # Reject install programs that cannot install multiple files.
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2514 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2515 if test -z "$INSTALL"; then
2516 if test "${ac_cv_path_install+set}" = set; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 # Account for people who put trailing slashes in PATH elements.
2525 case $as_dir/ in #((
2526 ./ | .// | /[cC]/* | \
2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2528 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2529 /usr/ucb/* ) ;;
2531 # OSF1 and SCO ODT 3.0 have their own names for install.
2532 # Don't use installbsd from OSF since it installs stuff as root
2533 # by default.
2534 for ac_prog in ginstall scoinst install; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2537 if test $ac_prog = install &&
2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # AIX install. It has an incompatible calling convention.
2541 elif test $ac_prog = install &&
2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543 # program-specific install script used by HP pwplus--don't use.
2545 else
2546 rm -rf conftest.one conftest.two conftest.dir
2547 echo one > conftest.one
2548 echo two > conftest.two
2549 mkdir conftest.dir
2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2551 test -s conftest.one && test -s conftest.two &&
2552 test -s conftest.dir/conftest.one &&
2553 test -s conftest.dir/conftest.two
2554 then
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556 break 3
2560 done
2561 done
2563 esac
2565 done
2566 IFS=$as_save_IFS
2568 rm -rf conftest.one conftest.two conftest.dir
2571 if test "${ac_cv_path_install+set}" = set; then
2572 INSTALL=$ac_cv_path_install
2573 else
2574 # As a last resort, use the slow shell script. Don't cache a
2575 # value for INSTALL within a source directory, because that will
2576 # break other packages using the cache if that directory is
2577 # removed, or if the value is a relative name.
2578 INSTALL=$ac_install_sh
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2582 $as_echo "$INSTALL" >&6; }
2584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585 # It thinks the first close brace ends the variable substitution.
2586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2593 $as_echo_n "checking whether ln works... " >&6; }
2594 if test "${acx_cv_prog_LN+set}" = set; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 rm -f conftestdata_t
2598 echo >conftestdata_f
2599 if ln conftestdata_f conftestdata_t 2>/dev/null
2600 then
2601 acx_cv_prog_LN=ln
2602 else
2603 acx_cv_prog_LN=no
2605 rm -f conftestdata_f conftestdata_t
2608 if test $acx_cv_prog_LN = no; then
2609 LN="cp"
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2611 $as_echo "no, using $LN" >&6; }
2612 else
2613 LN="$acx_cv_prog_LN"
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615 $as_echo "yes" >&6; }
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2619 $as_echo_n "checking whether ln -s works... " >&6; }
2620 LN_S=$as_ln_s
2621 if test "$LN_S" = "ln -s"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2623 $as_echo "yes" >&6; }
2624 else
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2626 $as_echo "no, using $LN_S" >&6; }
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2630 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2631 if test "${ac_cv_path_SED+set}" = set; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2635 for ac_i in 1 2 3 4 5 6 7; do
2636 ac_script="$ac_script$as_nl$ac_script"
2637 done
2638 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2639 { ac_script=; unset ac_script;}
2640 if test -z "$SED"; then
2641 ac_path_SED_found=false
2642 # Loop through the user's path and test for each of PROGNAME-LIST
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_prog in sed gsed; do
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2651 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2652 # Check for GNU ac_path_SED and select it if it is found.
2653 # Check for GNU $ac_path_SED
2654 case `"$ac_path_SED" --version 2>&1` in
2655 *GNU*)
2656 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2658 ac_count=0
2659 $as_echo_n 0123456789 >"conftest.in"
2660 while :
2662 cat "conftest.in" "conftest.in" >"conftest.tmp"
2663 mv "conftest.tmp" "conftest.in"
2664 cp "conftest.in" "conftest.nl"
2665 $as_echo '' >> "conftest.nl"
2666 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2668 as_fn_arith $ac_count + 1 && ac_count=$as_val
2669 if test $ac_count -gt ${ac_path_SED_max-0}; then
2670 # Best one so far, save it but keep looking for a better one
2671 ac_cv_path_SED="$ac_path_SED"
2672 ac_path_SED_max=$ac_count
2674 # 10*(2^10) chars as input seems more than enough
2675 test $ac_count -gt 10 && break
2676 done
2677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2678 esac
2680 $ac_path_SED_found && break 3
2681 done
2682 done
2683 done
2684 IFS=$as_save_IFS
2685 if test -z "$ac_cv_path_SED"; then
2686 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2688 else
2689 ac_cv_path_SED=$SED
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2694 $as_echo "$ac_cv_path_SED" >&6; }
2695 SED="$ac_cv_path_SED"
2696 rm -f conftest.sed
2698 for ac_prog in gawk mawk nawk awk
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if test "${ac_cv_prog_AWK+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$AWK"; then
2708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_AWK="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2721 done
2722 done
2723 IFS=$as_save_IFS
2727 AWK=$ac_cv_prog_AWK
2728 if test -n "$AWK"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730 $as_echo "$AWK" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2737 test -n "$AWK" && break
2738 done
2741 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2743 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2744 # a relative path.
2745 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2746 INSTALL="${srcpwd}/install-sh -c"
2749 # Set srcdir to "." if that's what it is.
2750 # This is important for multilib support.
2751 pwd=`${PWDCMD-pwd}`
2752 if test "${pwd}" = "${srcpwd}" ; then
2753 srcdir=.
2756 topsrcdir=$srcpwd
2758 extra_host_args=
2760 ### To add a new directory to the tree, first choose whether it is a target
2761 ### or a host dependent tool. Then put it into the appropriate list
2762 ### (library or tools, host or target), doing a dependency sort.
2764 # Subdirs will be configured in the order listed in build_configdirs,
2765 # configdirs, or target_configdirs; see the serialization section below.
2767 # Dependency sorting is only needed when *configuration* must be done in
2768 # a particular order. In all cases a dependency should be specified in
2769 # the Makefile, whether or not it's implicitly specified here.
2771 # Double entries in build_configdirs, configdirs, or target_configdirs may
2772 # cause circular dependencies and break everything horribly.
2774 # these library is used by various programs built for the build
2775 # environment
2777 build_libs="build-libiberty"
2779 # these tools are built for the build environment
2780 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2782 # these libraries are used by various programs built for the host environment
2784 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2786 # these tools are built for the host environment
2787 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2788 # know that we are building the simulator.
2789 # binutils, gas and ld appear in that order because it makes sense to run
2790 # "make check" in that particular order.
2791 # If --enable-gold is used, "gold" may replace "ld".
2792 host_tools="texinfo flex bison binutils gas ld fixincludes accel-gcc gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2794 # libgcj represents the runtime libraries only used by gcj.
2795 libgcj="target-libffi \
2796 target-zlib \
2797 target-libjava"
2799 # these libraries are built for the target environment, and are built after
2800 # the host libraries and the host tools (which may be a cross compiler)
2801 # Note that libiberty is not a target library.
2802 target_libraries="target-libgcc \
2803 target-libbacktrace \
2804 target-libgloss \
2805 target-newlib \
2806 target-libgomp \
2807 target-libcilkrts \
2808 target-libatomic \
2809 target-libitm \
2810 target-libstdc++-v3 \
2811 target-libsanitizer \
2812 target-libvtv \
2813 target-libssp \
2814 target-libquadmath \
2815 target-libgfortran \
2816 target-boehm-gc \
2817 ${libgcj} \
2818 target-libobjc \
2819 target-libada \
2820 target-libgo"
2822 # these tools are built using the target libraries, and are intended to
2823 # run only in the target environment
2825 # note: any program that *uses* libraries that are in the "target_libraries"
2826 # list belongs in this list.
2828 target_tools="target-rda"
2830 ################################################################################
2832 ## All tools belong in one of the four categories, and are assigned above
2833 ## We assign ${configdirs} this way to remove all embedded newlines. This
2834 ## is important because configure will choke if they ever get through.
2835 ## ${configdirs} is directories we build using the host tools.
2836 ## ${target_configdirs} is directories we build using the target tools.
2837 configdirs=`echo ${host_libs} ${host_tools}`
2838 target_configdirs=`echo ${target_libraries} ${target_tools}`
2839 build_configdirs=`echo ${build_libs} ${build_tools}`
2843 ################################################################################
2845 srcname="gnu development package"
2847 # This gets set non-empty for some net releases of packages.
2848 appdirs=""
2850 # Define is_cross_compiler to save on calls to 'test'.
2851 is_cross_compiler=
2852 if test x"${host}" = x"${target}" ; then
2853 is_cross_compiler=no
2854 else
2855 is_cross_compiler=yes
2858 # Find the build and target subdir names.
2860 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2861 # have matching libraries, they should use host libraries: Makefile.tpl
2862 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2863 # However, they still use the build modules, because the corresponding
2864 # host modules (e.g. bison) are only built for the host when bootstrap
2865 # finishes. So:
2866 # - build_subdir is where we find build modules, and never changes.
2867 # - build_libsubdir is where we find build libraries, and can be overridden.
2869 # Prefix 'build-' so this never conflicts with target_subdir.
2870 build_subdir="build-${build_noncanonical}"
2872 # Check whether --with-build-libsubdir was given.
2873 if test "${with_build_libsubdir+set}" = set; then :
2874 withval=$with_build_libsubdir; build_libsubdir="$withval"
2875 else
2876 build_libsubdir="$build_subdir"
2879 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2880 if ( test $srcdir = . && test -d gcc ) \
2881 || test -d $srcdir/../host-${host_noncanonical}; then
2882 host_subdir="host-${host_noncanonical}"
2883 else
2884 host_subdir=.
2886 # No prefix.
2887 target_subdir=${target_noncanonical}
2889 # Be sure to cover against remnants of an in-tree build.
2890 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2891 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2892 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2895 # Skipdirs are removed silently.
2896 skipdirs=
2897 # Noconfigdirs are removed loudly.
2898 noconfigdirs=""
2900 use_gnu_ld=
2901 # Make sure we don't let GNU ld be added if we didn't want it.
2902 if test x$with_gnu_ld = xno ; then
2903 use_gnu_ld=no
2904 noconfigdirs="$noconfigdirs ld gold"
2907 use_gnu_as=
2908 # Make sure we don't let GNU as be added if we didn't want it.
2909 if test x$with_gnu_as = xno ; then
2910 use_gnu_as=no
2911 noconfigdirs="$noconfigdirs gas"
2914 use_included_zlib=
2915 # Make sure we don't let ZLIB be added if we didn't want it.
2916 if test x$with_system_zlib = xyes ; then
2917 use_included_zlib=no
2918 noconfigdirs="$noconfigdirs zlib"
2921 # some tools are so dependent upon X11 that if we're not building with X,
2922 # it's not even worth trying to configure, much less build, that tool.
2924 case ${with_x} in
2925 yes | "") ;; # the default value for this tree is that X11 is available
2927 skipdirs="${skipdirs} tk itcl libgui"
2928 # We won't be able to build gdbtk without X.
2929 enable_gdbtk=no
2931 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2932 esac
2934 # Some are only suitable for cross toolchains.
2935 # Remove these if host=target.
2936 cross_only="target-libgloss target-newlib target-opcodes"
2938 case $is_cross_compiler in
2939 no) skipdirs="${skipdirs} ${cross_only}" ;;
2940 esac
2942 # If both --with-headers and --with-libs are specified, default to
2943 # --without-newlib.
2944 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2945 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2946 if test x"${with_newlib}" = x ; then
2947 with_newlib=no
2951 # Recognize --with-newlib/--without-newlib.
2952 case ${with_newlib} in
2953 no) skipdirs="${skipdirs} target-newlib" ;;
2954 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2955 esac
2957 # Handle --enable-accelerator. This is in top-level because both libgomp and
2958 # GCC proper need this information.
2959 # --disable-accelerator
2960 # Default. Do not build accelerator pieces, only support host execution.
2961 # --enable-accelerator=auto-device-triplet
2962 # If possible, build accelerator pieces for 'device-triplet'.
2963 # --enable-accelerator=device-triplet
2964 # Build accelerator pieces for 'device-triplet'.
2965 # Check whether --enable-accelerator was given.
2966 if test "${enable_accelerator+set}" = set; then :
2967 enableval=$enable_accelerator; ENABLE_ACCELERATOR=$enableval
2968 else
2969 ENABLE_ACCELERATOR=no
2972 accel_target_noncanonical=NONE
2973 case "${ENABLE_ACCELERATOR}" in
2974 yes)
2975 as_fn_error "--enable-accelerators must name accelerator" "$LINENO" 5
2976 skipdirs="${skipdirs} accel-gcc"
2979 skipdirs="${skipdirs} accel-gcc"
2981 auto-nvptx*|nvptx*)
2982 accel_target_noncanonical=`echo "$ENABLE_ACCELERATOR" | sed -e s/auto-//g`
2985 as_fn_error "unrecognized accelerator" "$LINENO" 5
2986 skipdirs="${skipdirs} accel-gcc"
2988 esac
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking accelerator target system type" >&5
2991 $as_echo_n "checking accelerator target system type... " >&6; }
2993 accel_target_alias=$accel_target_noncanonical
2994 case "$accel_target_alias" in
2995 NONE)
2996 accel_target=NONE
2999 accel_target=`$ac_config_sub $accel_target_alias`
3001 esac
3003 accel_target_cpu=`echo $accel_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3004 accel_target_vendor=`echo $accel_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3005 accel_target_os=`echo $accel_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $accel_target" >&5
3007 $as_echo "$accel_target" >&6; }
3010 # Allow for specifying configure flags that apply to only the target GCC, or
3011 # only the accelerator GCC.
3013 # Check whether --enable-target-gcc-configure-flags was given.
3014 if test "${enable_target_gcc_configure_flags+set}" = set; then :
3015 enableval=$enable_target_gcc_configure_flags; extra_target_gcc_configure_flags=$enableval
3016 else
3017 extra_target_gcc_configure_flags=
3022 # Check whether --enable-accelerator-gcc-configure-flags was given.
3023 if test "${enable_accelerator_gcc_configure_flags+set}" = set; then :
3024 enableval=$enable_accelerator_gcc_configure_flags; extra_accelerator_gcc_configure_flags=$enableval
3025 else
3026 extra_accelerator_gcc_configure_flags=
3031 # Handle --enable-gold, --enable-ld.
3032 # --disable-gold [--enable-ld]
3033 # Build only ld. Default option.
3034 # --enable-gold [--enable-ld]
3035 # Build both gold and ld. Install gold as "ld.gold", install ld
3036 # as "ld.bfd" and "ld".
3037 # --enable-gold=default [--enable-ld]
3038 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3039 # install ld as "ld.bfd".
3040 # --enable-gold[=default] --disable-ld
3041 # Build only gold, which is then installed as both "ld.gold" and "ld".
3042 # --enable-gold --enable-ld=default
3043 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3044 # and ld.bfd).
3045 # In other words, ld is default
3046 # --enable-gold=default --enable-ld=default
3047 # Error.
3049 default_ld=
3050 # Check whether --enable-gold was given.
3051 if test "${enable_gold+set}" = set; then :
3052 enableval=$enable_gold; ENABLE_GOLD=$enableval
3053 else
3054 ENABLE_GOLD=no
3057 case "${ENABLE_GOLD}" in
3058 yes|default)
3059 # Check for ELF target.
3060 is_elf=no
3061 case "${target}" in
3062 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3063 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3064 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3065 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3066 case "${target}" in
3067 *-*-linux*aout* | *-*-linux*oldld*)
3070 is_elf=yes
3072 esac
3073 esac
3075 if test "$is_elf" = "yes"; then
3076 # Check for target supported by gold.
3077 case "${target}" in
3078 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
3079 configdirs="$configdirs gold"
3080 if test x${ENABLE_GOLD} = xdefault; then
3081 default_ld=gold
3083 ENABLE_GOLD=yes
3085 esac
3091 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3093 esac
3095 # Check whether --enable-ld was given.
3096 if test "${enable_ld+set}" = set; then :
3097 enableval=$enable_ld; ENABLE_LD=$enableval
3098 else
3099 ENABLE_LD=yes
3103 case "${ENABLE_LD}" in
3104 default)
3105 if test x${default_ld} != x; then
3106 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3109 yes)
3112 if test x${ENABLE_GOLD} != xyes; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3114 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3116 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3119 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3121 esac
3123 # Configure extra directories which are host specific
3125 case "${host}" in
3126 *-cygwin*)
3127 configdirs="$configdirs libtermcap" ;;
3128 esac
3130 # A target can indicate whether a language isn't supported for some reason.
3131 # Only spaces may be used in this macro; not newlines or tabs.
3132 unsupported_languages=
3134 # Remove more programs from consideration, based on the host or
3135 # target this usually means that a port of the program doesn't
3136 # exist yet.
3138 case "${host}" in
3139 i[3456789]86-*-msdosdjgpp*)
3140 noconfigdirs="$noconfigdirs tcl tk itcl"
3142 esac
3145 # Check whether --enable-libquadmath was given.
3146 if test "${enable_libquadmath+set}" = set; then :
3147 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3148 else
3149 ENABLE_LIBQUADMATH=yes
3152 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3153 noconfigdirs="$noconfigdirs target-libquadmath"
3157 # Check whether --enable-libquadmath-support was given.
3158 if test "${enable_libquadmath_support+set}" = set; then :
3159 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3160 else
3161 ENABLE_LIBQUADMATH_SUPPORT=yes
3164 enable_libquadmath_support=
3165 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3166 enable_libquadmath_support=no
3170 # Check whether --enable-libada was given.
3171 if test "${enable_libada+set}" = set; then :
3172 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3173 else
3174 ENABLE_LIBADA=yes
3177 if test "${ENABLE_LIBADA}" != "yes" ; then
3178 noconfigdirs="$noconfigdirs gnattools"
3181 # Check whether --enable-libssp was given.
3182 if test "${enable_libssp+set}" = set; then :
3183 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3184 else
3185 ENABLE_LIBSSP=yes
3189 # Check whether --enable-libstdcxx was given.
3190 if test "${enable_libstdcxx+set}" = set; then :
3191 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3192 else
3193 ENABLE_LIBSTDCXX=default
3196 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3197 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3200 # Save it here so that, even in case of --enable-libgcj, if the Java
3201 # front-end isn't enabled, we still get libgcj disabled.
3202 libgcj_saved=$libgcj
3203 case $enable_libgcj in
3204 yes)
3205 # If we reset it here, it won't get added to noconfigdirs in the
3206 # target-specific build rules, so it will be forcibly enabled
3207 # (unless the Java language itself isn't enabled).
3208 libgcj=
3211 # Make sure we get it printed in the list of not supported target libs.
3212 # Don't disable libffi, though, other languages use it.
3213 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3214 # Clear libgcj_saved so that even if java is enabled libffi won't be
3215 # built.
3216 libgcj_saved=
3218 esac
3220 # Check whether --enable-static-libjava was given.
3221 if test "${enable_static_libjava+set}" = set; then :
3222 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3223 else
3224 ENABLE_STATIC_LIBJAVA=no
3227 enable_static_libjava=
3228 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3229 enable_static_libjava=yes
3232 if test x$enable_static_libjava != xyes ; then
3233 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3237 # Disable libgomp on non POSIX hosted systems.
3238 if test x$enable_libgomp = x ; then
3239 # Enable libgomp by default on hosted POSIX systems.
3240 case "${target}" in
3241 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3243 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3245 *-*-solaris2* | *-*-hpux11*)
3247 *-*-darwin* | *-*-aix*)
3250 noconfigdirs="$noconfigdirs target-libgomp"
3252 esac
3255 # Disable libatomic on unsupported systems.
3256 if test -d ${srcdir}/libatomic; then
3257 if test x$enable_libatomic = x; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3259 $as_echo_n "checking for libatomic support... " >&6; }
3260 if (srcdir=${srcdir}/libatomic; \
3261 . ${srcdir}/configure.tgt; \
3262 test -n "$UNSUPPORTED")
3263 then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 noconfigdirs="$noconfigdirs target-libatomic"
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3269 $as_echo "yes" >&6; }
3274 # Disable libcilkrts on unsupported systems.
3275 if test -d ${srcdir}/libcilkrts; then
3276 if test x$enable_libcilkrts = x; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3278 $as_echo_n "checking for libcilkrts support... " >&6; }
3279 if (srcdir=${srcdir}/libcilkrts; \
3280 . ${srcdir}/configure.tgt; \
3281 test -n "$UNSUPPORTED")
3282 then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 noconfigdirs="$noconfigdirs target-libcilkrts"
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3293 # Disable libitm on unsupported systems.
3294 if test -d ${srcdir}/libitm; then
3295 if test x$enable_libitm = x; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3297 $as_echo_n "checking for libitm support... " >&6; }
3298 if (srcdir=${srcdir}/libitm; \
3299 . ${srcdir}/configure.tgt; \
3300 test -n "$UNSUPPORTED")
3301 then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3304 noconfigdirs="$noconfigdirs target-libitm"
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3307 $as_echo "yes" >&6; }
3312 # Disable libsanitizer on unsupported systems.
3313 if test -d ${srcdir}/libsanitizer; then
3314 if test x$enable_libsanitizer = x; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3316 $as_echo_n "checking for libsanitizer support... " >&6; }
3317 if (srcdir=${srcdir}/libsanitizer; \
3318 . ${srcdir}/configure.tgt; \
3319 test -n "$UNSUPPORTED")
3320 then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 noconfigdirs="$noconfigdirs target-libsanitizer"
3324 else
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326 $as_echo "yes" >&6; }
3331 # Disable libvtv on unsupported systems.
3332 if test -d ${srcdir}/libvtv; then
3333 if test x$enable_libvtv = x; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3335 $as_echo_n "checking for libvtv support... " >&6; }
3336 if (srcdir=${srcdir}/libvtv; \
3337 . ${srcdir}/configure.tgt; \
3338 test "$VTV_SUPPORTED" != "yes")
3339 then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 noconfigdirs="$noconfigdirs target-libvtv"
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345 $as_echo "yes" >&6; }
3350 # Disable libquadmath for some systems.
3351 case "${target}" in
3352 avr-*-*)
3353 noconfigdirs="$noconfigdirs target-libquadmath"
3355 # libquadmath is unused on AIX and libquadmath build process use of
3356 # LD_LIBRARY_PATH can break AIX bootstrap.
3357 powerpc-*-aix* | rs6000-*-aix*)
3358 noconfigdirs="$noconfigdirs target-libquadmath"
3360 esac
3362 # Disable libssp for some systems.
3363 case "${target}" in
3364 avr-*-*)
3365 # No hosted I/O support.
3366 noconfigdirs="$noconfigdirs target-libssp"
3368 powerpc-*-aix* | rs6000-*-aix*)
3369 noconfigdirs="$noconfigdirs target-libssp"
3371 rl78-*-*)
3372 # libssp uses a misaligned load to trigger a fault, but the RL78
3373 # doesn't fault for those - instead, it gives a build-time error
3374 # for explicit misaligned loads.
3375 noconfigdirs="$noconfigdirs target-libssp"
3377 esac
3379 # Disable libstdc++-v3 for some systems.
3380 # Allow user to override this if they pass --enable-libstdc++-v3
3381 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3382 case "${target}" in
3383 *-*-vxworks*)
3384 # VxWorks uses the Dinkumware C++ library.
3385 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3387 arm*-wince-pe*)
3388 # the C++ libraries don't build on top of CE's C libraries
3389 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3391 avr-*-*)
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3394 esac
3397 # Disable Fortran for some systems.
3398 case "${target}" in
3399 mmix-*-*)
3400 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3401 unsupported_languages="$unsupported_languages fortran"
3403 esac
3405 # Disable Java if libffi is not supported.
3406 case "${target}" in
3407 aarch64-*-*)
3409 alpha*-*-*)
3411 arm*-*-*)
3413 cris-*-*)
3415 frv-*-*)
3417 hppa*-*-linux*)
3419 hppa*-*-hpux*)
3421 i?86-*-*)
3423 ia64*-*-*)
3425 m32r*-*-*)
3427 m68k-*-*)
3429 mips*-*-rtems*)
3431 mips*-*-linux*)
3433 powerpc*-*-linux*)
3435 powerpc-*-darwin*)
3437 powerpc-*-aix* | rs6000-*-aix*)
3439 powerpc-*-freebsd*)
3441 powerpc64-*-freebsd*)
3443 powerpc*-*-rtems*)
3445 s390-*-* | s390x-*-*)
3447 sh-*-* | sh[34]*-*-*)
3449 sh64-*-* | sh5*-*-*)
3451 sparc*-*-*)
3453 x86_64-*-*)
3455 *-*-*)
3456 unsupported_languages="$unsupported_languages java"
3458 esac
3460 # Disable Java, libgcj or related libraries for some systems.
3461 case "${target}" in
3462 powerpc-*-darwin*)
3464 i[3456789]86-*-darwin*)
3466 x86_64-*-darwin[912]*)
3468 *-*-darwin*)
3469 noconfigdirs="$noconfigdirs ${libgcj}"
3471 *-*-netware*)
3472 noconfigdirs="$noconfigdirs ${libgcj}"
3474 *-*-rtems*)
3475 noconfigdirs="$noconfigdirs ${libgcj}"
3477 *-*-tpf*)
3478 noconfigdirs="$noconfigdirs ${libgcj}"
3480 *-*-uclinux*)
3481 noconfigdirs="$noconfigdirs ${libgcj}"
3483 *-*-vxworks*)
3484 noconfigdirs="$noconfigdirs ${libgcj}"
3486 alpha*-*-*vms*)
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3489 arm-wince-pe)
3490 noconfigdirs="$noconfigdirs ${libgcj}"
3492 arm*-*-symbianelf*)
3493 noconfigdirs="$noconfigdirs ${libgcj}"
3495 bfin-*-*)
3496 noconfigdirs="$noconfigdirs target-boehm-gc"
3498 cris-*-* | crisv32-*-*)
3499 unsupported_languages="$unsupported_languages java"
3500 case "${target}" in
3501 *-*-linux*)
3503 *) # See PR46792 regarding target-libffi.
3504 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3505 esac
3507 hppa*64*-*-linux*)
3508 # In this case, it's because the hppa64-linux target is for
3509 # the kernel only at this point and has no libc, and thus no
3510 # headers, crt*.o, etc., all of which are needed by these.
3511 unsupported_languages="$unsupported_languages java"
3513 hppa*64*-*-hpux*)
3514 noconfigdirs="$noconfigdirs ${libgcj}"
3516 hppa*-hp-hpux11*)
3518 hppa*-*-hpux*)
3519 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3520 # build on HP-UX 10.20.
3521 noconfigdirs="$noconfigdirs ${libgcj}"
3523 ia64*-*-*vms*)
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3526 i[3456789]86-w64-mingw*)
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3529 i[3456789]86-*-mingw*)
3530 noconfigdirs="$noconfigdirs ${libgcj}"
3532 x86_64-*-mingw*)
3533 noconfigdirs="$noconfigdirs ${libgcj}"
3535 mmix-*-*)
3536 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3538 powerpc-*-aix*)
3539 # copied from rs6000-*-* entry
3540 noconfigdirs="$noconfigdirs ${libgcj}"
3542 rs6000-*-aix*)
3543 noconfigdirs="$noconfigdirs ${libgcj}"
3545 *-*-lynxos*)
3546 noconfigdirs="$noconfigdirs ${libgcj}"
3548 esac
3550 # Disable libgo for some systems where it is known to not work.
3551 # For testing, you can easily override this with --enable-libgo.
3552 if test x$enable_libgo = x; then
3553 case "${target}" in
3554 *-*-darwin*)
3555 # PR 46986
3556 noconfigdirs="$noconfigdirs target-libgo"
3558 *-*-cygwin* | *-*-mingw*)
3559 noconfigdirs="$noconfigdirs target-libgo"
3561 *-*-aix*)
3562 noconfigdirs="$noconfigdirs target-libgo"
3564 esac
3567 # Default libgloss CPU subdirectory.
3568 libgloss_dir="$target_cpu"
3570 case "${target}" in
3571 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3572 libgloss_dir=wince
3574 aarch64*-*-* )
3575 libgloss_dir=aarch64
3577 arm*-*-*)
3578 libgloss_dir=arm
3580 cris-*-* | crisv32-*-*)
3581 libgloss_dir=cris
3583 hppa*-*-*)
3584 libgloss_dir=pa
3586 i[3456789]86-*-*)
3587 libgloss_dir=i386
3589 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3590 libgloss_dir=m68hc11
3592 m68*-*-* | fido-*-*)
3593 libgloss_dir=m68k
3595 mips*-*-*)
3596 libgloss_dir=mips
3598 powerpc*-*-*)
3599 libgloss_dir=rs6000
3601 sparc*-*-*)
3602 libgloss_dir=sparc
3604 esac
3606 # Disable newlib and libgloss for various target OSes.
3607 case "${target}" in
3608 alpha*-dec-osf*)
3609 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 i[3456789]86-*-linux*)
3612 # This section makes it possible to build newlib natively on linux.
3613 # If we are using a cross compiler then don't configure newlib.
3614 if test x${is_cross_compiler} != xno ; then
3615 noconfigdirs="$noconfigdirs target-newlib"
3617 noconfigdirs="$noconfigdirs target-libgloss"
3618 # If we are not using a cross compiler, do configure newlib.
3619 # Note however, that newlib will only be configured in this situation
3620 # if the --with-newlib option has been given, because otherwise
3621 # 'target-newlib' will appear in skipdirs.
3623 i[3456789]86-*-rdos*)
3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3627 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 sparc-*-sunos4*)
3630 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 *-*-aix*)
3633 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 *-*-beos*)
3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638 *-*-chorusos)
3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641 *-*-dragonfly*)
3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644 *-*-freebsd*)
3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 *-*-lynxos*)
3651 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 *-*-mingw*)
3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 *-*-netbsd*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 *-*-netware*)
3660 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 *-*-tpf*)
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 *-*-uclinux*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 *-*-vxworks*)
3669 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3671 esac
3673 case "${target}" in
3674 *-*-chorusos)
3676 powerpc-*-darwin*)
3677 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3678 noconfigdirs="$noconfigdirs sim target-rda"
3680 i[3456789]86-*-darwin*)
3681 noconfigdirs="$noconfigdirs ld gprof"
3682 noconfigdirs="$noconfigdirs sim target-rda"
3684 x86_64-*-darwin[912]*)
3685 noconfigdirs="$noconfigdirs ld gas gprof"
3686 noconfigdirs="$noconfigdirs sim target-rda"
3688 *-*-darwin*)
3689 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3690 noconfigdirs="$noconfigdirs sim target-rda"
3692 *-*-dragonfly*)
3694 *-*-freebsd*)
3695 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3696 && test -f /usr/local/include/gmp.h; then
3697 with_gmp=/usr/local
3700 *-*-kaos*)
3701 # Remove unsupported stuff on all kaOS configurations.
3702 noconfigdirs="$noconfigdirs target-libgloss"
3704 *-*-netbsd*)
3706 *-*-netware*)
3708 *-*-rtems*)
3709 noconfigdirs="$noconfigdirs target-libgloss"
3711 # The tpf target doesn't support gdb yet.
3712 *-*-tpf*)
3713 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3715 *-*-uclinux*)
3716 noconfigdirs="$noconfigdirs target-rda"
3718 *-*-vxworks*)
3720 alpha*-dec-osf*)
3721 # ld works, but does not support shared libraries.
3722 # gas doesn't generate exception information.
3723 noconfigdirs="$noconfigdirs gas ld"
3725 alpha*-*-*vms*)
3726 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3728 alpha*-*-*)
3729 # newlib is not 64 bit ready
3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3733 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3735 arc-*-*|arceb-*-*)
3736 noconfigdirs="$noconfigdirs target-libgloss"
3738 arm-*-pe*)
3739 noconfigdirs="$noconfigdirs target-libgloss"
3741 arm-*-riscix*)
3742 noconfigdirs="$noconfigdirs ld target-libgloss"
3744 avr-*-rtems*)
3746 avr-*-*)
3747 if test x${with_avrlibc} != xno; then
3748 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3751 c4x-*-* | tic4x-*-*)
3752 noconfigdirs="$noconfigdirs target-libgloss"
3754 tic54x-*-*)
3755 noconfigdirs="$noconfigdirs target-libgloss gdb"
3757 d10v-*-*)
3758 noconfigdirs="$noconfigdirs target-libgloss"
3760 d30v-*-*)
3761 noconfigdirs="$noconfigdirs gdb"
3763 fr30-*-elf*)
3764 noconfigdirs="$noconfigdirs gdb"
3766 moxie-*-*)
3767 noconfigdirs="$noconfigdirs gprof"
3769 h8300*-*-*)
3770 noconfigdirs="$noconfigdirs target-libgloss"
3772 h8500-*-*)
3773 noconfigdirs="$noconfigdirs target-libgloss"
3775 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3777 hppa*64*-*-linux*)
3779 hppa*-*-linux*)
3781 hppa*-*-*elf* | \
3782 hppa*-*-lites* | \
3783 hppa*-*-openbsd* | \
3784 hppa*64*-*-*)
3786 hppa*-hp-hpux11*)
3787 noconfigdirs="$noconfigdirs ld"
3789 hppa*-*-pro*)
3791 hppa*-*-*)
3792 noconfigdirs="$noconfigdirs ld"
3794 i960-*-*)
3795 noconfigdirs="$noconfigdirs gdb"
3797 ia64*-*-elf*)
3798 # No gdb support yet.
3799 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3801 ia64*-**-hpux*)
3802 # No ld support yet.
3803 noconfigdirs="$noconfigdirs libgui itcl ld"
3805 ia64*-*-*vms*)
3806 # No ld support yet.
3807 noconfigdirs="$noconfigdirs libgui itcl ld"
3809 i[3456789]86-w64-mingw*)
3811 i[3456789]86-*-mingw*)
3812 target_configdirs="$target_configdirs target-winsup"
3814 *-*-cygwin*)
3815 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3816 noconfigdirs="$noconfigdirs target-libgloss"
3817 # always build newlib if winsup directory is present.
3818 if test -d "$srcdir/winsup/cygwin"; then
3819 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3820 elif test -d "$srcdir/newlib"; then
3821 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3824 i[3456789]86-*-pe)
3825 noconfigdirs="$noconfigdirs target-libgloss"
3827 i[3456789]86-*-sco3.2v5*)
3828 # The linker does not yet know about weak symbols in COFF,
3829 # and is not configured to handle mixed ELF and COFF.
3830 noconfigdirs="$noconfigdirs ld target-libgloss"
3832 i[3456789]86-*-sco*)
3833 noconfigdirs="$noconfigdirs gprof target-libgloss"
3835 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3836 noconfigdirs="$noconfigdirs target-libgloss"
3838 i[3456789]86-*-sysv4*)
3839 noconfigdirs="$noconfigdirs target-libgloss"
3841 i[3456789]86-*-beos*)
3842 noconfigdirs="$noconfigdirs gdb"
3844 i[3456789]86-*-rdos*)
3845 noconfigdirs="$noconfigdirs gdb"
3847 mmix-*-*)
3848 noconfigdirs="$noconfigdirs gdb"
3850 mt-*-*)
3851 noconfigdirs="$noconfigdirs sim"
3853 powerpc-*-aix*)
3854 # copied from rs6000-*-* entry
3855 noconfigdirs="$noconfigdirs gprof"
3857 powerpc*-*-winnt* | powerpc*-*-pe*)
3858 target_configdirs="$target_configdirs target-winsup"
3859 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3860 # always build newlib.
3861 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3863 # This is temporary until we can link against shared libraries
3864 powerpcle-*-solaris*)
3865 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3867 powerpc-*-beos*)
3868 noconfigdirs="$noconfigdirs gdb"
3870 rs6000-*-lynxos*)
3871 noconfigdirs="$noconfigdirs gprof"
3873 rs6000-*-aix*)
3874 noconfigdirs="$noconfigdirs gprof"
3876 rs6000-*-*)
3877 noconfigdirs="$noconfigdirs gprof"
3879 m68k-apollo-*)
3880 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3882 microblaze*)
3883 noconfigdirs="$noconfigdirs gprof"
3885 mips*-sde-elf* | mips*-mti-elf*)
3886 if test x$with_newlib = xyes; then
3887 noconfigdirs="$noconfigdirs gprof"
3890 mips*-*-irix5*)
3891 noconfigdirs="$noconfigdirs gprof target-libgloss"
3893 mips*-*-irix6*)
3894 noconfigdirs="$noconfigdirs gprof target-libgloss"
3896 mips*-*-bsd*)
3897 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3899 mips*-*-linux*)
3901 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3902 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3903 noconfigdirs="$noconfigdirs ld gas gprof"
3905 mips*-*-*)
3906 noconfigdirs="$noconfigdirs gprof"
3908 sh-*-* | sh64-*-*)
3909 case "${target}" in
3910 sh*-*-elf)
3913 noconfigdirs="$noconfigdirs target-libgloss" ;;
3914 esac
3916 sparc-*-sunos4*)
3917 if test x${is_cross_compiler} = xno ; then
3918 use_gnu_ld=no
3921 tic6x-*-*)
3922 noconfigdirs="$noconfigdirs sim"
3924 tilepro*-*-* | tilegx*-*-*)
3925 noconfigdirs="$noconfigdirs sim"
3927 v810-*-*)
3928 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3930 vax-*-*)
3931 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3933 esac
3935 # If we aren't building newlib, then don't build libgloss, since libgloss
3936 # depends upon some newlib header files.
3937 case "${noconfigdirs}" in
3938 *target-libgloss*) ;;
3939 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3940 esac
3942 # Work in distributions that contain no compiler tools, like Autoconf.
3943 host_makefile_frag=/dev/null
3944 if test -d ${srcdir}/config ; then
3945 case "${host}" in
3946 i[3456789]86-*-msdosdjgpp*)
3947 host_makefile_frag="config/mh-djgpp"
3949 *-cygwin*)
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3952 $as_echo_n "checking to see if cat works as expected... " >&6; }
3953 echo a >cygwin-cat-check
3954 if test `cat cygwin-cat-check` = a ; then
3955 rm cygwin-cat-check
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3957 $as_echo "yes" >&6; }
3958 else
3959 rm cygwin-cat-check
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3962 as_fn_error "The cat command does not ignore carriage return characters.
3963 Please either mount the build directory in binary mode or run the following
3964 commands before running any configure script:
3965 set -o igncr
3966 export SHELLOPTS
3967 " "$LINENO" 5
3970 host_makefile_frag="config/mh-cygwin"
3972 *-mingw*)
3973 host_makefile_frag="config/mh-mingw"
3975 hppa*-hp-hpux10*)
3976 host_makefile_frag="config/mh-pa-hpux10"
3978 hppa*-hp-hpux*)
3979 host_makefile_frag="config/mh-pa"
3981 hppa*-*)
3982 host_makefile_frag="config/mh-pa"
3984 *-*-darwin*)
3985 host_makefile_frag="config/mh-darwin"
3987 powerpc-*-aix*)
3988 host_makefile_frag="config/mh-ppc-aix"
3990 rs6000-*-aix*)
3991 host_makefile_frag="config/mh-ppc-aix"
3993 esac
3996 if test "${build}" != "${host}" ; then
3997 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3998 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3999 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4000 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4001 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4002 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4003 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4004 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4005 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4006 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4007 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4008 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4009 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4010 else
4011 AR_FOR_BUILD="\$(AR)"
4012 AS_FOR_BUILD="\$(AS)"
4013 CC_FOR_BUILD="\$(CC)"
4014 CXX_FOR_BUILD="\$(CXX)"
4015 GCJ_FOR_BUILD="\$(GCJ)"
4016 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4017 GOC_FOR_BUILD="\$(GOC)"
4018 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4019 LD_FOR_BUILD="\$(LD)"
4020 NM_FOR_BUILD="\$(NM)"
4021 RANLIB_FOR_BUILD="\$(RANLIB)"
4022 WINDRES_FOR_BUILD="\$(WINDRES)"
4023 WINDMC_FOR_BUILD="\$(WINDMC)"
4026 ac_ext=c
4027 ac_cpp='$CPP $CPPFLAGS'
4028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031 if test -n "$ac_tool_prefix"; then
4032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_CC+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 if test -n "$CC"; then
4040 ac_cv_prog_CC="$CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 break 2
4053 done
4054 done
4055 IFS=$as_save_IFS
4059 CC=$ac_cv_prog_CC
4060 if test -n "$CC"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4062 $as_echo "$CC" >&6; }
4063 else
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4070 if test -z "$ac_cv_prog_CC"; then
4071 ac_ct_CC=$CC
4072 # Extract the first word of "gcc", so it can be a program name with args.
4073 set dummy gcc; ac_word=$2
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075 $as_echo_n "checking for $ac_word... " >&6; }
4076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 if test -n "$ac_ct_CC"; then
4080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089 ac_cv_prog_ac_ct_CC="gcc"
4090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4093 done
4094 done
4095 IFS=$as_save_IFS
4099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4100 if test -n "$ac_ct_CC"; then
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4102 $as_echo "$ac_ct_CC" >&6; }
4103 else
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105 $as_echo "no" >&6; }
4108 if test "x$ac_ct_CC" = x; then
4109 CC=""
4110 else
4111 case $cross_compiling:$ac_tool_warned in
4112 yes:)
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4115 ac_tool_warned=yes ;;
4116 esac
4117 CC=$ac_ct_CC
4119 else
4120 CC="$ac_cv_prog_CC"
4123 if test -z "$CC"; then
4124 if test -n "$ac_tool_prefix"; then
4125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4126 set dummy ${ac_tool_prefix}cc; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if test "${ac_cv_prog_CC+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if test -n "$CC"; then
4133 ac_cv_prog_CC="$CC" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_prog_CC="${ac_tool_prefix}cc"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4146 done
4147 done
4148 IFS=$as_save_IFS
4152 CC=$ac_cv_prog_CC
4153 if test -n "$CC"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4155 $as_echo "$CC" >&6; }
4156 else
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4164 if test -z "$CC"; then
4165 # Extract the first word of "cc", so it can be a program name with args.
4166 set dummy cc; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if test "${ac_cv_prog_CC+set}" = set; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -n "$CC"; then
4173 ac_cv_prog_CC="$CC" # Let the user override the test.
4174 else
4175 ac_prog_rejected=no
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4184 ac_prog_rejected=yes
4185 continue
4187 ac_cv_prog_CC="cc"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4191 done
4192 done
4193 IFS=$as_save_IFS
4195 if test $ac_prog_rejected = yes; then
4196 # We found a bogon in the path, so make sure we never use it.
4197 set dummy $ac_cv_prog_CC
4198 shift
4199 if test $# != 0; then
4200 # We chose a different compiler from the bogus one.
4201 # However, it has the same basename, so the bogon will be chosen
4202 # first if we set CC to just the basename; use the full file name.
4203 shift
4204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4213 else
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4220 if test -z "$CC"; then
4221 if test -n "$ac_tool_prefix"; then
4222 for ac_prog in cl.exe
4224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_CC+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$CC"; then
4232 ac_cv_prog_CC="$CC" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4245 done
4246 done
4247 IFS=$as_save_IFS
4251 CC=$ac_cv_prog_CC
4252 if test -n "$CC"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4254 $as_echo "$CC" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4261 test -n "$CC" && break
4262 done
4264 if test -z "$CC"; then
4265 ac_ct_CC=$CC
4266 for ac_prog in cl.exe
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -n "$ac_ct_CC"; then
4276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285 ac_cv_prog_ac_ct_CC="$ac_prog"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4289 done
4290 done
4291 IFS=$as_save_IFS
4295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4296 if test -n "$ac_ct_CC"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4298 $as_echo "$ac_ct_CC" >&6; }
4299 else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4305 test -n "$ac_ct_CC" && break
4306 done
4308 if test "x$ac_ct_CC" = x; then
4309 CC=""
4310 else
4311 case $cross_compiling:$ac_tool_warned in
4312 yes:)
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4315 ac_tool_warned=yes ;;
4316 esac
4317 CC=$ac_ct_CC
4324 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326 as_fn_error "no acceptable C compiler found in \$PATH
4327 See \`config.log' for more details." "$LINENO" 5; }
4329 # Provide some information about the compiler.
4330 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4331 set X $ac_compile
4332 ac_compiler=$2
4333 for ac_option in --version -v -V -qversion; do
4334 { { ac_try="$ac_compiler $ac_option >&5"
4335 case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4342 ac_status=$?
4343 if test -s conftest.err; then
4344 sed '10a\
4345 ... rest of stderr output deleted ...
4346 10q' conftest.err >conftest.er1
4347 cat conftest.er1 >&5
4348 rm -f conftest.er1 conftest.err
4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; }
4352 done
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4358 main ()
4362 return 0;
4364 _ACEOF
4365 ac_clean_files_save=$ac_clean_files
4366 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4367 # Try to create an executable without -o first, disregard a.out.
4368 # It will help us diagnose broken compilers, and finding out an intuition
4369 # of exeext.
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4371 $as_echo_n "checking for C compiler default output file name... " >&6; }
4372 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4374 # The possible output files:
4375 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4377 ac_rmfiles=
4378 for ac_file in $ac_files
4380 case $ac_file in
4381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4382 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4383 esac
4384 done
4385 rm -f $ac_rmfiles
4387 if { { ac_try="$ac_link_default"
4388 case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 $as_echo "$ac_try_echo"; } >&5
4394 (eval "$ac_link_default") 2>&5
4395 ac_status=$?
4396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; }; then :
4398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4399 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4400 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4401 # so that the user can short-circuit this test for compilers unknown to
4402 # Autoconf.
4403 for ac_file in $ac_files ''
4405 test -f "$ac_file" || continue
4406 case $ac_file in
4407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4409 [ab].out )
4410 # We found the default executable, but exeext='' is most
4411 # certainly right.
4412 break;;
4413 *.* )
4414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4415 then :; else
4416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4418 # We set ac_cv_exeext here because the later test for it is not
4419 # safe: cross compilers may not add the suffix if given an `-o'
4420 # argument, so we may need to know it at that point already.
4421 # Even if this section looks crufty: it has the advantage of
4422 # actually working.
4423 break;;
4425 break;;
4426 esac
4427 done
4428 test "$ac_cv_exeext" = no && ac_cv_exeext=
4430 else
4431 ac_file=''
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4434 $as_echo "$ac_file" >&6; }
4435 if test -z "$ac_file"; then :
4436 $as_echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441 { as_fn_set_status 77
4442 as_fn_error "C compiler cannot create executables
4443 See \`config.log' for more details." "$LINENO" 5; }; }
4445 ac_exeext=$ac_cv_exeext
4447 # Check that the compiler produces executables we can run. If not, either
4448 # the compiler is broken, or we cross compile.
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4450 $as_echo_n "checking whether the C compiler works... " >&6; }
4451 # If not cross compiling, check that we can run a simple program.
4452 if test "$cross_compiling" != yes; then
4453 if { ac_try='./$ac_file'
4454 { { case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457 esac
4458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459 $as_echo "$ac_try_echo"; } >&5
4460 (eval "$ac_try") 2>&5
4461 ac_status=$?
4462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4463 test $ac_status = 0; }; }; then
4464 cross_compiling=no
4465 else
4466 if test "$cross_compiling" = maybe; then
4467 cross_compiling=yes
4468 else
4469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4471 as_fn_error "cannot run C compiled programs.
4472 If you meant to cross compile, use \`--host'.
4473 See \`config.log' for more details." "$LINENO" 5; }
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4478 $as_echo "yes" >&6; }
4480 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4481 ac_clean_files=$ac_clean_files_save
4482 # Check that the compiler produces executables we can run. If not, either
4483 # the compiler is broken, or we cross compile.
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4485 $as_echo_n "checking whether we are cross compiling... " >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4487 $as_echo "$cross_compiling" >&6; }
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4490 $as_echo_n "checking for suffix of executables... " >&6; }
4491 if { { ac_try="$ac_link"
4492 case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4497 $as_echo "$ac_try_echo"; } >&5
4498 (eval "$ac_link") 2>&5
4499 ac_status=$?
4500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4501 test $ac_status = 0; }; then :
4502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4504 # work properly (i.e., refer to `conftest.exe'), while it won't with
4505 # `rm'.
4506 for ac_file in conftest.exe conftest conftest.*; do
4507 test -f "$ac_file" || continue
4508 case $ac_file in
4509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4510 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4511 break;;
4512 * ) break;;
4513 esac
4514 done
4515 else
4516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4518 as_fn_error "cannot compute suffix of executables: cannot compile and link
4519 See \`config.log' for more details." "$LINENO" 5; }
4521 rm -f conftest$ac_cv_exeext
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4523 $as_echo "$ac_cv_exeext" >&6; }
4525 rm -f conftest.$ac_ext
4526 EXEEXT=$ac_cv_exeext
4527 ac_exeext=$EXEEXT
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4529 $as_echo_n "checking for suffix of object files... " >&6; }
4530 if test "${ac_cv_objext+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4537 main ()
4541 return 0;
4543 _ACEOF
4544 rm -f conftest.o conftest.obj
4545 if { { ac_try="$ac_compile"
4546 case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4551 $as_echo "$ac_try_echo"; } >&5
4552 (eval "$ac_compile") 2>&5
4553 ac_status=$?
4554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555 test $ac_status = 0; }; then :
4556 for ac_file in conftest.o conftest.obj conftest.*; do
4557 test -f "$ac_file" || continue;
4558 case $ac_file in
4559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4560 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4561 break;;
4562 esac
4563 done
4564 else
4565 $as_echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4570 as_fn_error "cannot compute suffix of object files: cannot compile
4571 See \`config.log' for more details." "$LINENO" 5; }
4573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4576 $as_echo "$ac_cv_objext" >&6; }
4577 OBJEXT=$ac_cv_objext
4578 ac_objext=$OBJEXT
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4580 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4581 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4588 main ()
4590 #ifndef __GNUC__
4591 choke me
4592 #endif
4595 return 0;
4597 _ACEOF
4598 if ac_fn_c_try_compile "$LINENO"; then :
4599 ac_compiler_gnu=yes
4600 else
4601 ac_compiler_gnu=no
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4608 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4609 if test $ac_compiler_gnu = yes; then
4610 GCC=yes
4611 else
4612 GCC=
4614 ac_test_CFLAGS=${CFLAGS+set}
4615 ac_save_CFLAGS=$CFLAGS
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4617 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4618 if test "${ac_cv_prog_cc_g+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 ac_save_c_werror_flag=$ac_c_werror_flag
4622 ac_c_werror_flag=yes
4623 ac_cv_prog_cc_g=no
4624 CFLAGS="-g"
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4629 main ()
4633 return 0;
4635 _ACEOF
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637 ac_cv_prog_cc_g=yes
4638 else
4639 CFLAGS=""
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4644 main ()
4648 return 0;
4650 _ACEOF
4651 if ac_fn_c_try_compile "$LINENO"; then :
4653 else
4654 ac_c_werror_flag=$ac_save_c_werror_flag
4655 CFLAGS="-g"
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4660 main ()
4664 return 0;
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668 ac_cv_prog_cc_g=yes
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_c_werror_flag=$ac_save_c_werror_flag
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4678 $as_echo "$ac_cv_prog_cc_g" >&6; }
4679 if test "$ac_test_CFLAGS" = set; then
4680 CFLAGS=$ac_save_CFLAGS
4681 elif test $ac_cv_prog_cc_g = yes; then
4682 if test "$GCC" = yes; then
4683 CFLAGS="-g -O2"
4684 else
4685 CFLAGS="-g"
4687 else
4688 if test "$GCC" = yes; then
4689 CFLAGS="-O2"
4690 else
4691 CFLAGS=
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4695 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4696 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 ac_cv_prog_cc_c89=no
4700 ac_save_CC=$CC
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703 #include <stdarg.h>
4704 #include <stdio.h>
4705 #include <sys/types.h>
4706 #include <sys/stat.h>
4707 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4708 struct buf { int x; };
4709 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4710 static char *e (p, i)
4711 char **p;
4712 int i;
4714 return p[i];
4716 static char *f (char * (*g) (char **, int), char **p, ...)
4718 char *s;
4719 va_list v;
4720 va_start (v,p);
4721 s = g (p, va_arg (v,int));
4722 va_end (v);
4723 return s;
4726 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4727 function prototypes and stuff, but not '\xHH' hex character constants.
4728 These don't provoke an error unfortunately, instead are silently treated
4729 as 'x'. The following induces an error, until -std is added to get
4730 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4731 array size at least. It's necessary to write '\x00'==0 to get something
4732 that's true only with -std. */
4733 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4735 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4736 inside strings and character constants. */
4737 #define FOO(x) 'x'
4738 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4740 int test (int i, double x);
4741 struct s1 {int (*f) (int a);};
4742 struct s2 {int (*f) (double a);};
4743 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4744 int argc;
4745 char **argv;
4747 main ()
4749 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4751 return 0;
4753 _ACEOF
4754 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4755 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4757 CC="$ac_save_CC $ac_arg"
4758 if ac_fn_c_try_compile "$LINENO"; then :
4759 ac_cv_prog_cc_c89=$ac_arg
4761 rm -f core conftest.err conftest.$ac_objext
4762 test "x$ac_cv_prog_cc_c89" != "xno" && break
4763 done
4764 rm -f conftest.$ac_ext
4765 CC=$ac_save_CC
4768 # AC_CACHE_VAL
4769 case "x$ac_cv_prog_cc_c89" in
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4772 $as_echo "none needed" >&6; } ;;
4773 xno)
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4775 $as_echo "unsupported" >&6; } ;;
4777 CC="$CC $ac_cv_prog_cc_c89"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4779 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4780 esac
4781 if test "x$ac_cv_prog_cc_c89" != xno; then :
4785 ac_ext=c
4786 ac_cpp='$CPP $CPPFLAGS'
4787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 ac_ext=cpp
4792 ac_cpp='$CXXCPP $CPPFLAGS'
4793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796 if test -z "$CXX"; then
4797 if test -n "$CCC"; then
4798 CXX=$CCC
4799 else
4800 if test -n "$ac_tool_prefix"; then
4801 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_CXX+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$CXX"; then
4811 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4824 done
4825 done
4826 IFS=$as_save_IFS
4830 CXX=$ac_cv_prog_CXX
4831 if test -n "$CXX"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4833 $as_echo "$CXX" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4840 test -n "$CXX" && break
4841 done
4843 if test -z "$CXX"; then
4844 ac_ct_CXX=$CXX
4845 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4847 # Extract the first word of "$ac_prog", so it can be a program name with args.
4848 set dummy $ac_prog; ac_word=$2
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4851 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 if test -n "$ac_ct_CXX"; then
4855 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 ac_cv_prog_ac_ct_CXX="$ac_prog"
4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4868 done
4869 done
4870 IFS=$as_save_IFS
4874 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4875 if test -n "$ac_ct_CXX"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4877 $as_echo "$ac_ct_CXX" >&6; }
4878 else
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4884 test -n "$ac_ct_CXX" && break
4885 done
4887 if test "x$ac_ct_CXX" = x; then
4888 CXX="g++"
4889 else
4890 case $cross_compiling:$ac_tool_warned in
4891 yes:)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894 ac_tool_warned=yes ;;
4895 esac
4896 CXX=$ac_ct_CXX
4902 # Provide some information about the compiler.
4903 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4904 set X $ac_compile
4905 ac_compiler=$2
4906 for ac_option in --version -v -V -qversion; do
4907 { { ac_try="$ac_compiler $ac_option >&5"
4908 case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911 esac
4912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913 $as_echo "$ac_try_echo"; } >&5
4914 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4915 ac_status=$?
4916 if test -s conftest.err; then
4917 sed '10a\
4918 ... rest of stderr output deleted ...
4919 10q' conftest.err >conftest.er1
4920 cat conftest.er1 >&5
4921 rm -f conftest.er1 conftest.err
4923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }
4925 done
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4928 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4936 main ()
4938 #ifndef __GNUC__
4939 choke me
4940 #endif
4943 return 0;
4945 _ACEOF
4946 if ac_fn_cxx_try_compile "$LINENO"; then :
4947 ac_compiler_gnu=yes
4948 else
4949 ac_compiler_gnu=no
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4956 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4957 if test $ac_compiler_gnu = yes; then
4958 GXX=yes
4959 else
4960 GXX=
4962 ac_test_CXXFLAGS=${CXXFLAGS+set}
4963 ac_save_CXXFLAGS=$CXXFLAGS
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4965 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4966 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4970 ac_cxx_werror_flag=yes
4971 ac_cv_prog_cxx_g=no
4972 CXXFLAGS="-g"
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4977 main ()
4981 return 0;
4983 _ACEOF
4984 if ac_fn_cxx_try_compile "$LINENO"; then :
4985 ac_cv_prog_cxx_g=yes
4986 else
4987 CXXFLAGS=""
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4992 main ()
4996 return 0;
4998 _ACEOF
4999 if ac_fn_cxx_try_compile "$LINENO"; then :
5001 else
5002 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5003 CXXFLAGS="-g"
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5008 main ()
5012 return 0;
5014 _ACEOF
5015 if ac_fn_cxx_try_compile "$LINENO"; then :
5016 ac_cv_prog_cxx_g=yes
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5026 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5027 if test "$ac_test_CXXFLAGS" = set; then
5028 CXXFLAGS=$ac_save_CXXFLAGS
5029 elif test $ac_cv_prog_cxx_g = yes; then
5030 if test "$GXX" = yes; then
5031 CXXFLAGS="-g -O2"
5032 else
5033 CXXFLAGS="-g"
5035 else
5036 if test "$GXX" = yes; then
5037 CXXFLAGS="-O2"
5038 else
5039 CXXFLAGS=
5042 ac_ext=c
5043 ac_cpp='$CPP $CPPFLAGS'
5044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049 # We must set the default linker to the linker used by gcc for the correct
5050 # operation of libtool. If LD is not defined and we are using gcc, try to
5051 # set the LD default to the ld used by gcc.
5052 if test -z "$LD"; then
5053 if test "$GCC" = yes; then
5054 case $build in
5055 *-*-mingw*)
5056 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5058 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5059 esac
5060 case $gcc_prog_ld in
5061 # Accept absolute paths.
5062 [\\/]* | [A-Za-z]:[\\/]*)
5063 LD="$gcc_prog_ld" ;;
5064 esac
5068 # Check whether -static-libstdc++ -static-libgcc is supported.
5069 have_static_libs=no
5070 if test "$GCC" = yes; then
5071 saved_LDFLAGS="$LDFLAGS"
5073 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5075 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5076 ac_ext=cpp
5077 ac_cpp='$CXXCPP $CPPFLAGS'
5078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5086 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5087 #error -static-libstdc++ not implemented
5088 #endif
5089 int main() {}
5090 _ACEOF
5091 if ac_fn_cxx_try_link "$LINENO"; then :
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5093 $as_echo "yes" >&6; }; have_static_libs=yes
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5098 rm -f core conftest.err conftest.$ac_objext \
5099 conftest$ac_exeext conftest.$ac_ext
5100 ac_ext=c
5101 ac_cpp='$CPP $CPPFLAGS'
5102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107 LDFLAGS="$saved_LDFLAGS"
5113 if test -n "$ac_tool_prefix"; then
5114 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5115 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 if test -n "$GNATBIND"; then
5122 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5135 done
5136 done
5137 IFS=$as_save_IFS
5141 GNATBIND=$ac_cv_prog_GNATBIND
5142 if test -n "$GNATBIND"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5144 $as_echo "$GNATBIND" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5152 if test -z "$ac_cv_prog_GNATBIND"; then
5153 ac_ct_GNATBIND=$GNATBIND
5154 # Extract the first word of "gnatbind", so it can be a program name with args.
5155 set dummy gnatbind; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$ac_ct_GNATBIND"; then
5162 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5175 done
5176 done
5177 IFS=$as_save_IFS
5181 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5182 if test -n "$ac_ct_GNATBIND"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5184 $as_echo "$ac_ct_GNATBIND" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5190 if test "x$ac_ct_GNATBIND" = x; then
5191 GNATBIND="no"
5192 else
5193 case $cross_compiling:$ac_tool_warned in
5194 yes:)
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5197 ac_tool_warned=yes ;;
5198 esac
5199 GNATBIND=$ac_ct_GNATBIND
5201 else
5202 GNATBIND="$ac_cv_prog_GNATBIND"
5205 if test -n "$ac_tool_prefix"; then
5206 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5207 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$GNATMAKE"; then
5214 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5227 done
5228 done
5229 IFS=$as_save_IFS
5233 GNATMAKE=$ac_cv_prog_GNATMAKE
5234 if test -n "$GNATMAKE"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5236 $as_echo "$GNATMAKE" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5244 if test -z "$ac_cv_prog_GNATMAKE"; then
5245 ac_ct_GNATMAKE=$GNATMAKE
5246 # Extract the first word of "gnatmake", so it can be a program name with args.
5247 set dummy gnatmake; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$ac_ct_GNATMAKE"; then
5254 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5267 done
5268 done
5269 IFS=$as_save_IFS
5273 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5274 if test -n "$ac_ct_GNATMAKE"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5276 $as_echo "$ac_ct_GNATMAKE" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5282 if test "x$ac_ct_GNATMAKE" = x; then
5283 GNATMAKE="no"
5284 else
5285 case $cross_compiling:$ac_tool_warned in
5286 yes:)
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289 ac_tool_warned=yes ;;
5290 esac
5291 GNATMAKE=$ac_ct_GNATMAKE
5293 else
5294 GNATMAKE="$ac_cv_prog_GNATMAKE"
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5298 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5299 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 cat >conftest.adb <<EOF
5303 procedure conftest is begin null; end conftest;
5305 acx_cv_cc_gcc_supports_ada=no
5306 # There is a bug in old released versions of GCC which causes the
5307 # driver to exit successfully when the appropriate language module
5308 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5309 # Therefore we must check for the error message as well as an
5310 # unsuccessful exit.
5311 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5312 # given a .adb file, but produce no object file. So we must check
5313 # if an object file was really produced to guard against this.
5314 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5315 if test x"$errors" = x && test -f conftest.$ac_objext; then
5316 acx_cv_cc_gcc_supports_ada=yes
5318 rm -f conftest.*
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5321 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5323 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5324 have_gnat=yes
5325 else
5326 have_gnat=no
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5330 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5331 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 echo abfoo >t1
5335 echo cdfoo >t2
5336 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5337 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5338 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5340 else
5341 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5344 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5345 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5347 else
5348 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5351 rm t1 t2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5355 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5356 do_compare="$gcc_cv_prog_cmp_skip"
5360 # Check whether --enable-bootstrap was given.
5361 if test "${enable_bootstrap+set}" = set; then :
5362 enableval=$enable_bootstrap;
5363 else
5364 enable_bootstrap=default
5368 # Issue errors and warnings for invalid/strange bootstrap combinations.
5369 if test -r $srcdir/gcc/configure; then
5370 have_compiler=yes
5371 else
5372 have_compiler=no
5375 case "$have_compiler:$host:$target:$enable_bootstrap" in
5376 *:*:*:no) ;;
5378 # Default behavior. Enable bootstrap if we have a compiler
5379 # and we are in a native configuration.
5380 yes:$build:$build:default)
5381 enable_bootstrap=yes ;;
5383 *:*:*:default)
5384 enable_bootstrap=no ;;
5386 # We have a compiler and we are in a native configuration, bootstrap is ok
5387 yes:$build:$build:yes)
5390 # Other configurations, but we have a compiler. Assume the user knows
5391 # what he's doing.
5392 yes:*:*:yes)
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5394 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5397 # No compiler: if they passed --enable-bootstrap explicitly, fail
5398 no:*:*:yes)
5399 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5401 # Fail if wrong command line
5403 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5405 esac
5407 # Used for setting $lt_cv_objdir
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5409 $as_echo_n "checking for objdir... " >&6; }
5410 if test "${lt_cv_objdir+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 rm -f .libs 2>/dev/null
5414 mkdir .libs 2>/dev/null
5415 if test -d .libs; then
5416 lt_cv_objdir=.libs
5417 else
5418 # MS-DOS does not allow filenames that begin with a dot.
5419 lt_cv_objdir=_libs
5421 rmdir .libs 2>/dev/null
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5424 $as_echo "$lt_cv_objdir" >&6; }
5425 objdir=$lt_cv_objdir
5431 cat >>confdefs.h <<_ACEOF
5432 #define LT_OBJDIR "$lt_cv_objdir/"
5433 _ACEOF
5437 # Check for GMP, MPFR and MPC
5438 gmplibs="-lmpc -lmpfr -lgmp"
5439 gmpinc=
5440 have_gmp=no
5442 # Specify a location for mpc
5443 # check for this first so it ends up on the link line before mpfr.
5445 # Check whether --with-mpc was given.
5446 if test "${with_mpc+set}" = set; then :
5447 withval=$with_mpc;
5451 # Check whether --with-mpc-include was given.
5452 if test "${with_mpc_include+set}" = set; then :
5453 withval=$with_mpc_include;
5457 # Check whether --with-mpc-lib was given.
5458 if test "${with_mpc_lib+set}" = set; then :
5459 withval=$with_mpc_lib;
5463 if test "x$with_mpc" != x; then
5464 gmplibs="-L$with_mpc/lib $gmplibs"
5465 gmpinc="-I$with_mpc/include $gmpinc"
5467 if test "x$with_mpc_include" != x; then
5468 gmpinc="-I$with_mpc_include $gmpinc"
5470 if test "x$with_mpc_lib" != x; then
5471 gmplibs="-L$with_mpc_lib $gmplibs"
5473 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5474 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5475 gmpinc='-I$$s/mpc/src '"$gmpinc"
5476 # Do not test the mpc version. Assume that it is sufficient, since
5477 # it is in the source tree, and the library has not been built yet
5478 # but it would be included on the link line in the version check below
5479 # hence making the test fail.
5480 have_gmp=yes
5483 # Specify a location for mpfr
5484 # check for this first so it ends up on the link line before gmp.
5486 # Check whether --with-mpfr-dir was given.
5487 if test "${with_mpfr_dir+set}" = set; then :
5488 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5489 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5494 # Check whether --with-mpfr was given.
5495 if test "${with_mpfr+set}" = set; then :
5496 withval=$with_mpfr;
5500 # Check whether --with-mpfr-include was given.
5501 if test "${with_mpfr_include+set}" = set; then :
5502 withval=$with_mpfr_include;
5506 # Check whether --with-mpfr-lib was given.
5507 if test "${with_mpfr_lib+set}" = set; then :
5508 withval=$with_mpfr_lib;
5512 if test "x$with_mpfr" != x; then
5513 gmplibs="-L$with_mpfr/lib $gmplibs"
5514 gmpinc="-I$with_mpfr/include $gmpinc"
5516 if test "x$with_mpfr_include" != x; then
5517 gmpinc="-I$with_mpfr_include $gmpinc"
5519 if test "x$with_mpfr_lib" != x; then
5520 gmplibs="-L$with_mpfr_lib $gmplibs"
5522 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5523 # MPFR v3.1.0 moved the sources into a src sub-directory.
5524 if test -d ${srcdir}/mpfr/src; then
5525 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5526 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5527 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5528 else
5529 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5530 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5531 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5533 # Do not test the mpfr version. Assume that it is sufficient, since
5534 # it is in the source tree, and the library has not been built yet
5535 # but it would be included on the link line in the version check below
5536 # hence making the test fail.
5537 have_gmp=yes
5540 # Specify a location for gmp
5542 # Check whether --with-gmp-dir was given.
5543 if test "${with_gmp_dir+set}" = set; then :
5544 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5545 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5550 # Check whether --with-gmp was given.
5551 if test "${with_gmp+set}" = set; then :
5552 withval=$with_gmp;
5556 # Check whether --with-gmp-include was given.
5557 if test "${with_gmp_include+set}" = set; then :
5558 withval=$with_gmp_include;
5562 # Check whether --with-gmp-lib was given.
5563 if test "${with_gmp_lib+set}" = set; then :
5564 withval=$with_gmp_lib;
5569 if test "x$with_gmp" != x; then
5570 gmplibs="-L$with_gmp/lib $gmplibs"
5571 gmpinc="-I$with_gmp/include $gmpinc"
5573 if test "x$with_gmp_include" != x; then
5574 gmpinc="-I$with_gmp_include $gmpinc"
5576 if test "x$with_gmp_lib" != x; then
5577 gmplibs="-L$with_gmp_lib $gmplibs"
5579 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5580 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5581 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5582 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5583 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5584 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5585 # Do not test the gmp version. Assume that it is sufficient, since
5586 # it is in the source tree, and the library has not been built yet
5587 # but it would be included on the link line in the version check below
5588 # hence making the test fail.
5589 have_gmp=yes
5592 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5593 have_gmp=yes
5594 saved_CFLAGS="$CFLAGS"
5595 CFLAGS="$CFLAGS $gmpinc"
5596 # Check for the recommended and required versions of GMP.
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5598 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #include "gmp.h"
5604 main ()
5607 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5608 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5609 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5610 choke me
5611 #endif
5614 return 0;
5616 _ACEOF
5617 if ac_fn_c_try_compile "$LINENO"; then :
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #include <gmp.h>
5622 main ()
5625 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5626 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5627 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5628 choke me
5629 #endif
5632 return 0;
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5637 $as_echo "yes" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5640 $as_echo "buggy but acceptable" >&6; }
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }; have_gmp=no
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 # If we have GMP, check the MPFR version.
5650 if test x"$have_gmp" = xyes; then
5651 # Check for the recommended and required versions of MPFR.
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5653 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #include <gmp.h>
5657 #include <mpfr.h>
5659 main ()
5662 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5663 choke me
5664 #endif
5667 return 0;
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"; then :
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <gmp.h>
5674 #include <mpfr.h>
5676 main ()
5679 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5680 choke me
5681 #endif
5684 return 0;
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"; then :
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5689 $as_echo "yes" >&6; }
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5692 $as_echo "buggy but acceptable" >&6; }
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }; have_gmp=no
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 # Check for the MPC header version.
5703 if test x"$have_gmp" = xyes ; then
5704 # Check for the recommended and required versions of MPC.
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5706 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 #include <mpc.h>
5711 main ()
5714 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5715 choke me
5716 #endif
5719 return 0;
5721 _ACEOF
5722 if ac_fn_c_try_compile "$LINENO"; then :
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 #include <mpc.h>
5727 main ()
5730 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5731 choke me
5732 #endif
5735 return 0;
5737 _ACEOF
5738 if ac_fn_c_try_compile "$LINENO"; then :
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5740 $as_echo "yes" >&6; }
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5743 $as_echo "buggy but acceptable" >&6; }
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }; have_gmp=no
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 # Now check the MPFR library.
5754 if test x"$have_gmp" = xyes; then
5755 saved_LIBS="$LIBS"
5756 LIBS="$LIBS $gmplibs"
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5758 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #include <mpc.h>
5763 main ()
5766 mpfr_t n;
5767 mpfr_t x;
5768 mpc_t c;
5769 int t;
5770 mpfr_init (n);
5771 mpfr_init (x);
5772 mpfr_atan2 (n, n, x, GMP_RNDN);
5773 mpfr_erfc (n, x, GMP_RNDN);
5774 mpfr_subnormalize (x, t, GMP_RNDN);
5775 mpfr_clear(n);
5776 mpfr_clear(x);
5777 mpc_init2 (c, 53);
5778 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5779 mpc_cosh (c, c, MPC_RNDNN);
5780 mpc_pow (c, c, c, MPC_RNDNN);
5781 mpc_acosh (c, c, MPC_RNDNN);
5782 mpc_clear (c);
5785 return 0;
5787 _ACEOF
5788 if ac_fn_c_try_link "$LINENO"; then :
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5790 $as_echo "yes" >&6; }
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }; have_gmp=no
5795 rm -f core conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
5797 LIBS="$saved_LIBS"
5800 CFLAGS="$saved_CFLAGS"
5802 # The library versions listed in the error message below should match
5803 # the HARD-minimums enforced above.
5804 if test x$have_gmp != xyes; then
5805 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5806 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5807 their locations. Source code for these libraries can be found at
5808 their respective hosting sites as well as at
5809 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5810 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5811 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5812 make sure that you have installed both the libraries and the header
5813 files. They may be located in separate packages." "$LINENO" 5
5817 # Flags needed for both GMP, MPFR and/or MPC.
5825 # Allow host libstdc++ to be specified for static linking with PPL.
5827 # Check whether --with-host-libstdcxx was given.
5828 if test "${with_host_libstdcxx+set}" = set; then :
5829 withval=$with_host_libstdcxx;
5833 case $with_host_libstdcxx in
5834 no|yes)
5835 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5837 esac
5839 # Libraries to use for stage1 or when not bootstrapping.
5841 # Check whether --with-stage1-libs was given.
5842 if test "${with_stage1_libs+set}" = set; then :
5843 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5844 stage1_libs=
5845 else
5846 stage1_libs=$withval
5848 else
5849 stage1_libs=$with_host_libstdcxx
5854 # Linker flags to use for stage1 or when not bootstrapping.
5856 # Check whether --with-stage1-ldflags was given.
5857 if test "${with_stage1_ldflags+set}" = set; then :
5858 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5859 stage1_ldflags=
5860 else
5861 stage1_ldflags=$withval
5863 else
5864 stage1_ldflags=
5865 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5866 # if supported. But if the user explicitly specified the libraries to use,
5867 # trust that they are doing what they want.
5868 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5869 stage1_ldflags="-static-libstdc++ -static-libgcc"
5875 # Libraries to use for stage2 and later builds. This defaults to the
5876 # argument passed to --with-host-libstdcxx.
5878 # Check whether --with-boot-libs was given.
5879 if test "${with_boot_libs+set}" = set; then :
5880 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5881 poststage1_libs=
5882 else
5883 poststage1_libs=$withval
5885 else
5886 poststage1_libs=$with_host_libstdcxx
5891 # Linker flags to use for stage2 and later builds.
5893 # Check whether --with-boot-ldflags was given.
5894 if test "${with_boot_ldflags+set}" = set; then :
5895 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5896 poststage1_ldflags=
5897 else
5898 poststage1_ldflags=$withval
5900 else
5901 poststage1_ldflags=
5902 # In stages 2 and 3, default to linking libstdc++ and libgcc
5903 # statically. But if the user explicitly specified the libraries to
5904 # use, trust that they are doing what they want.
5905 if test "$poststage1_libs" = ""; then
5906 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5912 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5913 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5914 # config/isl.m4
5917 # Check whether --with-cloog was given.
5918 if test "${with_cloog+set}" = set; then :
5919 withval=$with_cloog;
5923 # Check whether --with-isl was given.
5924 if test "${with_isl+set}" = set; then :
5925 withval=$with_isl;
5929 # Treat either --without-cloog or --without-isl as a request to disable
5930 # GRAPHITE support and skip all following checks.
5931 if test "x$with_isl" != "xno" &&
5932 test "x$with_cloog" != "xno"; then
5933 # Check for ISL
5936 # Check whether --with-isl-include was given.
5937 if test "${with_isl_include+set}" = set; then :
5938 withval=$with_isl_include;
5942 # Check whether --with-isl-lib was given.
5943 if test "${with_isl_lib+set}" = set; then :
5944 withval=$with_isl_lib;
5948 # Check whether --enable-isl-version-check was given.
5949 if test "${enable_isl_version_check+set}" = set; then :
5950 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5951 else
5952 ENABLE_ISL_CHECK=yes
5956 # Initialize isllibs and islinc.
5957 case $with_isl in
5959 isllibs=
5960 islinc=
5962 "" | yes)
5965 isllibs="-L$with_isl/lib"
5966 islinc="-I$with_isl/include"
5968 esac
5969 if test "x${with_isl_include}" != x ; then
5970 islinc="-I$with_isl_include"
5972 if test "x${with_isl_lib}" != x; then
5973 isllibs="-L$with_isl_lib"
5975 if test "x${islinc}" = x && test "x${isllibs}" = x \
5976 && test -d ${srcdir}/isl; then
5977 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5978 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5979 ENABLE_ISL_CHECK=no
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5981 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5986 if test "${ENABLE_ISL_CHECK}" = yes ; then
5987 _isl_saved_CFLAGS=$CFLAGS
5988 _isl_saved_LDFLAGS=$LDFLAGS
5989 _isl_saved_LIBS=$LIBS
5991 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5992 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5993 LIBS="${_isl_saved_LIBS} -lisl"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5996 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5997 if test "$cross_compiling" = yes; then :
5998 gcc_cv_isl=yes
5999 else
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6002 #include <isl/version.h>
6003 #include <string.h>
6005 main ()
6007 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
6008 return 1;
6011 return 0;
6013 _ACEOF
6014 if ac_fn_c_try_run "$LINENO"; then :
6015 gcc_cv_isl=yes
6016 else
6017 gcc_cv_isl=no
6019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6020 conftest.$ac_objext conftest.beam conftest.$ac_ext
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6024 $as_echo "$gcc_cv_isl" >&6; }
6026 CFLAGS=$_isl_saved_CFLAGS
6027 LDFLAGS=$_isl_saved_LDFLAGS
6028 LIBS=$_isl_saved_LIBS
6032 if test "${gcc_cv_isl}" = no ; then
6034 if test "${ENABLE_ISL_CHECK}" = yes ; then
6035 _isl_saved_CFLAGS=$CFLAGS
6036 _isl_saved_LDFLAGS=$LDFLAGS
6037 _isl_saved_LIBS=$LIBS
6039 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6040 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6041 LIBS="${_isl_saved_LIBS} -lisl"
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
6044 $as_echo_n "checking for version 0.11 of ISL... " >&6; }
6045 if test "$cross_compiling" = yes; then :
6046 gcc_cv_isl=yes
6047 else
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 #include <isl/version.h>
6051 #include <string.h>
6053 main ()
6055 if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
6056 return 1;
6059 return 0;
6061 _ACEOF
6062 if ac_fn_c_try_run "$LINENO"; then :
6063 gcc_cv_isl=yes
6064 else
6065 gcc_cv_isl=no
6067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6068 conftest.$ac_objext conftest.beam conftest.$ac_ext
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6072 $as_echo "$gcc_cv_isl" >&6; }
6074 CFLAGS=$_isl_saved_CFLAGS
6075 LDFLAGS=$_isl_saved_LDFLAGS
6076 LIBS=$_isl_saved_LIBS
6080 if test "${gcc_cv_isl}" = no ; then
6082 if test "${ENABLE_ISL_CHECK}" = yes ; then
6083 _isl_saved_CFLAGS=$CFLAGS
6084 _isl_saved_LDFLAGS=$LDFLAGS
6085 _isl_saved_LIBS=$LIBS
6087 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6088 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6089 LIBS="${_isl_saved_LIBS} -lisl"
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
6092 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
6093 if test "$cross_compiling" = yes; then :
6094 gcc_cv_isl=yes
6095 else
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098 #include <isl/version.h>
6099 #include <string.h>
6101 main ()
6103 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6104 return 1;
6107 return 0;
6109 _ACEOF
6110 if ac_fn_c_try_run "$LINENO"; then :
6111 gcc_cv_isl=yes
6112 else
6113 gcc_cv_isl=no
6115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6116 conftest.$ac_objext conftest.beam conftest.$ac_ext
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6120 $as_echo "$gcc_cv_isl" >&6; }
6122 CFLAGS=$_isl_saved_CFLAGS
6123 LDFLAGS=$_isl_saved_LDFLAGS
6124 LIBS=$_isl_saved_LIBS
6134 if test "x${with_isl}" = xno; then
6135 graphite_requested=no
6136 elif test "x${with_isl}" != x \
6137 || test "x${with_isl_include}" != x \
6138 || test "x${with_isl_lib}" != x ; then
6139 graphite_requested=yes
6140 else
6141 graphite_requested=no
6146 if test "${gcc_cv_isl}" = no ; then
6147 isllibs=
6148 islinc=
6151 if test "${graphite_requested}" = yes \
6152 && test "x${isllibs}" = x \
6153 && test "x${islinc}" = x ; then
6155 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6160 if test "x$gcc_cv_isl" != "xno"; then
6161 # Check for CLOOG
6164 # Check whether --with-cloog-include was given.
6165 if test "${with_cloog_include+set}" = set; then :
6166 withval=$with_cloog_include;
6170 # Check whether --with-cloog-lib was given.
6171 if test "${with_cloog_lib+set}" = set; then :
6172 withval=$with_cloog_lib;
6176 # Check whether --enable-cloog-version-check was given.
6177 if test "${enable_cloog_version_check+set}" = set; then :
6178 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6179 else
6180 ENABLE_CLOOG_CHECK=yes
6184 # Initialize clooglibs and clooginc.
6185 case $with_cloog in
6187 clooglibs=
6188 clooginc=
6190 "" | yes)
6193 clooglibs="-L$with_cloog/lib"
6194 clooginc="-I$with_cloog/include"
6196 esac
6197 if test "x${with_cloog_include}" != x ; then
6198 clooginc="-I$with_cloog_include"
6200 if test "x${with_cloog_lib}" != x; then
6201 clooglibs="-L$with_cloog_lib"
6203 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6204 && test -d ${srcdir}/cloog; then
6205 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6206 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6207 ENABLE_CLOOG_CHECK=no
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6209 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6212 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6213 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6219 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6220 _cloog_saved_CFLAGS=$CFLAGS
6221 _cloog_saved_LDFLAGS=$LDFLAGS
6223 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6224 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6227 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6230 #include "cloog/version.h"
6232 main ()
6234 #if CLOOG_VERSION_MAJOR != 0 \
6235 || CLOOG_VERSION_MINOR != 17 \
6236 || CLOOG_VERSION_REVISION < 0
6237 choke me
6238 #endif
6240 return 0;
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244 gcc_cv_cloog=yes
6245 else
6246 gcc_cv_cloog=no
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6250 $as_echo "$gcc_cv_cloog" >&6; }
6252 CFLAGS=$_cloog_saved_CFLAGS
6253 LDFLAGS=$_cloog_saved_LDFLAGS
6257 if test "${gcc_cv_cloog}" = no ; then
6261 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6262 _cloog_saved_CFLAGS=$CFLAGS
6263 _cloog_saved_LDFLAGS=$LDFLAGS
6265 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6266 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6269 $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6272 #include "cloog/version.h"
6274 main ()
6276 #if CLOOG_VERSION_MAJOR != 0 \
6277 || CLOOG_VERSION_MINOR != 18 \
6278 || CLOOG_VERSION_REVISION < 0
6279 choke me
6280 #endif
6282 return 0;
6284 _ACEOF
6285 if ac_fn_c_try_compile "$LINENO"; then :
6286 gcc_cv_cloog=yes
6287 else
6288 gcc_cv_cloog=no
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6292 $as_echo "$gcc_cv_cloog" >&6; }
6294 CFLAGS=$_cloog_saved_CFLAGS
6295 LDFLAGS=$_cloog_saved_LDFLAGS
6305 if test "x${with_cloog}" = xno; then
6306 graphite_requested=no
6307 elif test "x${with_cloog}" != x \
6308 || test "x${with_cloog_include}" != x \
6309 || test "x${with_cloog_lib}" != x ; then
6310 graphite_requested=yes
6311 else
6312 graphite_requested=no
6317 if test "${gcc_cv_cloog}" = no ; then
6318 clooglibs=
6319 clooginc=
6322 if test "${graphite_requested}" = yes \
6323 && test "x${clooglibs}" = x \
6324 && test "x${clooginc}" = x ; then
6326 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6333 # If either the ISL or the CLooG check failed, disable builds of in-tree
6334 # variants of both
6335 if test "x$with_isl" = xno ||
6336 test "x$with_cloog" = xno ||
6337 test "x$gcc_cv_cloog" = xno ||
6338 test "x$gcc_cv_isl" = xno; then
6339 noconfigdirs="$noconfigdirs cloog isl"
6340 islinc=
6341 clooginc=
6342 clooglibs=
6350 # Check for LTO support.
6351 # Check whether --enable-lto was given.
6352 if test "${enable_lto+set}" = set; then :
6353 enableval=$enable_lto; enable_lto=$enableval
6354 else
6355 enable_lto=yes; default_enable_lto=yes
6362 target_elf=no
6363 case $target in
6364 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6365 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6366 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6367 target_elf=no
6370 target_elf=yes
6372 esac
6374 if test $target_elf = yes; then :
6375 # ELF platforms build the lto-plugin always.
6376 build_lto_plugin=yes
6378 else
6379 if test x"$default_enable_lto" = x"yes" ; then
6380 case $target in
6381 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6382 # On other non-ELF platforms, LTO has yet to be validated.
6383 *) enable_lto=no ;;
6384 esac
6385 else
6386 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6387 # It would also be nice to check the binutils support, but we don't
6388 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6389 # warn during gcc/ subconfigure; unless you're bootstrapping with
6390 # -flto it won't be needed until after installation anyway.
6391 case $target in
6392 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6393 *) if test x"$enable_lto" = x"yes"; then
6394 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6397 esac
6399 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6400 # Build it unless LTO was explicitly disabled.
6401 case $target in
6402 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6403 *) ;;
6404 esac
6409 # Check whether --enable-linker-plugin-configure-flags was given.
6410 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6411 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6412 else
6413 extra_linker_plugin_configure_flags=
6417 # Check whether --enable-linker-plugin-flags was given.
6418 if test "${enable_linker_plugin_flags+set}" = set; then :
6419 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6420 else
6421 extra_linker_plugin_flags=
6427 # By default, C and C++ are the only stage 1 languages.
6428 stage1_languages=,c,
6430 # Target libraries that we bootstrap.
6431 bootstrap_target_libs=,target-libgcc,
6433 # Figure out what language subdirectories are present.
6434 # Look if the user specified --enable-languages="..."; if not, use
6435 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6436 # go away some day.
6437 # NB: embedded tabs in this IF block -- do not untabify
6438 if test -d ${srcdir}/gcc; then
6439 if test x"${enable_languages+set}" != xset; then
6440 if test x"${LANGUAGES+set}" = xset; then
6441 enable_languages="${LANGUAGES}"
6442 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6443 else
6444 enable_languages=all
6446 else
6447 if test x"${enable_languages}" = x ||
6448 test x"${enable_languages}" = xyes;
6449 then
6450 echo configure.in: --enable-languages needs at least one language argument 1>&2
6451 exit 1
6454 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6456 # 'f95' is the old name for the 'fortran' language. We issue a warning
6457 # and make the substitution.
6458 case ,${enable_languages}, in
6459 *,f95,*)
6460 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6461 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6463 esac
6465 # If bootstrapping, C++ must be enabled.
6466 case ",$enable_languages,:$enable_bootstrap" in
6467 *,c++,*:*) ;;
6468 *:yes)
6469 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6470 enable_languages="${enable_languages},c++"
6471 else
6472 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6475 esac
6477 # First scan to see if an enabled language requires some other language.
6478 # We assume that a given config-lang.in will list all the language
6479 # front ends it requires, even if some are required indirectly.
6480 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6481 case ${lang_frag} in
6482 ..) ;;
6483 # The odd quoting in the next line works around
6484 # an apparent bug in bash 1.12 on linux.
6485 ${srcdir}/gcc/[*]/config-lang.in) ;;
6487 # From the config-lang.in, get $language, $lang_requires, and
6488 # $lang_requires_boot_languages.
6489 language=
6490 lang_requires=
6491 lang_requires_boot_languages=
6492 . ${lang_frag}
6493 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6494 case ,${enable_languages}, in
6495 *,$other,*) ;;
6496 *,all,*) ;;
6497 *,$language,*)
6498 echo " \`$other' language required by \`$language'; enabling" 1>&2
6499 enable_languages="${enable_languages},${other}"
6501 esac
6502 done
6503 for other in ${lang_requires_boot_languages} ; do
6504 if test "$other" != "c"; then
6505 case ,${enable_stage1_languages}, in
6506 *,$other,*) ;;
6507 *,all,*) ;;
6509 case ,${enable_languages}, in
6510 *,$language,*)
6511 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6512 enable_stage1_languages="$enable_stage1_languages,${other}"
6514 esac
6516 esac
6518 done
6520 esac
6521 done
6523 new_enable_languages=,c,
6525 # If LTO is enabled, add the LTO front end.
6526 extra_host_libiberty_configure_flags=
6527 if test "$enable_lto" = "yes" ; then
6528 case ,${enable_languages}, in
6529 *,lto,*) ;;
6530 *) enable_languages="${enable_languages},lto" ;;
6531 esac
6532 if test "${build_lto_plugin}" = "yes" ; then
6533 configdirs="$configdirs lto-plugin"
6534 extra_host_libiberty_configure_flags=--enable-shared
6539 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6540 potential_languages=,c,
6542 enabled_target_libs=
6543 disabled_target_libs=
6545 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6546 case ${lang_frag} in
6547 ..) ;;
6548 # The odd quoting in the next line works around
6549 # an apparent bug in bash 1.12 on linux.
6550 ${srcdir}/gcc/[*]/config-lang.in) ;;
6552 # From the config-lang.in, get $language, $target_libs,
6553 # $lang_dirs, $boot_language, and $build_by_default
6554 language=
6555 target_libs=
6556 lang_dirs=
6557 subdir_requires=
6558 boot_language=no
6559 build_by_default=yes
6560 . ${lang_frag}
6561 if test x${language} = x; then
6562 echo "${lang_frag} doesn't set \$language." 1>&2
6563 exit 1
6566 if test "$language" = "c++"; then
6567 boot_language=yes
6570 add_this_lang=no
6571 case ,${enable_languages}, in
6572 *,${language},*)
6573 # Language was explicitly selected; include it
6574 # unless it is C, which is enabled by default.
6575 if test "$language" != "c"; then
6576 add_this_lang=yes
6579 *,all,*)
6580 # 'all' was selected, select it if it is a default language
6581 if test "$language" != "c"; then
6582 add_this_lang=${build_by_default}
6585 esac
6587 # Disable languages that need other directories if these aren't available.
6588 for i in $subdir_requires; do
6589 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6590 case ,${enable_languages}, in
6591 *,${language},*)
6592 # Specifically requested language; tell them.
6593 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6596 # Silently disable.
6597 add_this_lang=unsupported
6599 esac
6600 done
6602 # Disable Ada if no preexisting GNAT is available.
6603 case ,${enable_languages},:${language}:${have_gnat} in
6604 *,${language},*:ada:no)
6605 # Specifically requested language; tell them.
6606 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6608 *:ada:no)
6609 # Silently disable.
6610 add_this_lang=unsupported
6612 esac
6614 # Disable a language that is unsupported by the target.
6615 case " $unsupported_languages " in
6616 *" $language "*)
6617 add_this_lang=unsupported
6619 esac
6621 case $add_this_lang in
6622 unsupported)
6623 # Remove language-dependent dirs.
6624 disabled_target_libs="$disabled_target_libs $target_libs"
6625 noconfigdirs="$noconfigdirs $lang_dirs"
6628 # Remove language-dependent dirs; still show language as supported.
6629 disabled_target_libs="$disabled_target_libs $target_libs"
6630 noconfigdirs="$noconfigdirs $lang_dirs"
6631 potential_languages="${potential_languages}${language},"
6633 yes)
6634 new_enable_languages="${new_enable_languages}${language},"
6635 potential_languages="${potential_languages}${language},"
6636 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6637 enabled_target_libs="$enabled_target_libs $target_libs"
6638 case "${boot_language}:,$enable_stage1_languages," in
6639 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6640 # Add to (comma-separated) list of stage 1 languages.
6641 case ",$stage1_languages," in
6642 *,$language,* | ,yes, | ,all,) ;;
6643 *) stage1_languages="${stage1_languages}${language}," ;;
6644 esac
6645 # We need to bootstrap any supporting libraries.
6646 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6648 esac
6650 esac
6652 esac
6653 done
6655 # Add target libraries which are only needed for disabled languages
6656 # to noconfigdirs.
6657 if test -n "$disabled_target_libs"; then
6658 for dir in $disabled_target_libs; do
6659 case " $enabled_target_libs " in
6660 *" ${dir} "*) ;;
6661 *) noconfigdirs="$noconfigdirs $dir" ;;
6662 esac
6663 done
6666 # Check whether --enable-stage1-languages was given.
6667 if test "${enable_stage1_languages+set}" = set; then :
6668 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6669 ,no,|,,)
6670 # Set it to something that will have no effect in the loop below
6671 enable_stage1_languages=c ;;
6672 ,yes,)
6673 enable_stage1_languages=`echo $new_enable_languages | \
6674 sed -e "s/^,//" -e "s/,$//" ` ;;
6675 *,all,*)
6676 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6677 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6678 esac
6680 # Add "good" languages from enable_stage1_languages to stage1_languages,
6681 # while "bad" languages go in missing_languages. Leave no duplicates.
6682 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6683 case $potential_languages in
6684 *,$i,*)
6685 case $stage1_languages in
6686 *,$i,*) ;;
6687 *) stage1_languages="$stage1_languages$i," ;;
6688 esac ;;
6690 case $missing_languages in
6691 *,$i,*) ;;
6692 *) missing_languages="$missing_languages$i," ;;
6693 esac ;;
6694 esac
6695 done
6699 # Remove leading/trailing commas that were added for simplicity
6700 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6701 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6702 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6703 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6705 if test "x$missing_languages" != x; then
6706 as_fn_error "
6707 The following requested languages could not be built: ${missing_languages}
6708 Supported languages are: ${potential_languages}" "$LINENO" 5
6710 if test "x$new_enable_languages" != "x$enable_languages"; then
6711 echo The following languages will be built: ${new_enable_languages}
6712 enable_languages="$new_enable_languages"
6716 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6719 # Handle --disable-<component> generically.
6720 for dir in $configdirs $build_configdirs $target_configdirs ; do
6721 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6722 varname=`echo $dirname | sed -e s/+/_/g`
6723 if eval test x\${enable_${varname}} "=" xno ; then
6724 noconfigdirs="$noconfigdirs $dir"
6726 done
6728 # Check for Boehm's garbage collector
6729 # Check whether --enable-objc-gc was given.
6730 if test "${enable_objc_gc+set}" = set; then :
6731 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6732 *,objc,*:*:yes:*target-boehm-gc*)
6733 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6735 esac
6739 # Make sure we only build Boehm's garbage collector if required.
6740 case ,${enable_languages},:${enable_objc_gc} in
6741 *,objc,*:yes)
6742 # Keep target-boehm-gc if requested for Objective-C.
6745 # Otherwise remove target-boehm-gc depending on target-libjava.
6746 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6747 noconfigdirs="$noconfigdirs target-boehm-gc"
6750 esac
6752 # Disable libcilkrts, libitm, libsanitizer, libvtv if we're not building C++
6753 case ,${enable_languages}, in
6754 *,c++,*)
6755 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6756 case "${noconfigdirs}" in
6757 *target-libstdc++-v3*)
6758 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6760 *) ;;
6761 esac
6764 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6766 esac
6768 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6769 # $build_configdirs and $target_configdirs.
6770 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6772 notsupp=""
6773 for dir in . $skipdirs $noconfigdirs ; do
6774 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6775 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6776 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6777 if test -r $srcdir/$dirname/configure ; then
6778 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6779 true
6780 else
6781 notsupp="$notsupp $dir"
6785 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6786 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6787 if test -r $srcdir/$dirname/configure ; then
6788 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6789 true
6790 else
6791 notsupp="$notsupp $dir"
6795 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6796 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6797 if test -r $srcdir/$dirname/configure ; then
6798 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6799 true
6800 else
6801 notsupp="$notsupp $dir"
6805 done
6807 # Quietly strip out all directories which aren't configurable in this tree.
6808 # This relies on all configurable subdirectories being autoconfiscated, which
6809 # is now the case.
6810 build_configdirs_all="$build_configdirs"
6811 build_configdirs=
6812 for i in ${build_configdirs_all} ; do
6813 j=`echo $i | sed -e s/build-//g`
6814 if test -f ${srcdir}/$j/configure ; then
6815 build_configdirs="${build_configdirs} $i"
6817 done
6819 configdirs_all="$configdirs"
6820 configdirs=
6821 for i in ${configdirs_all} ; do
6822 case $i in
6823 accel-gcc)
6824 confsrcdir=gcc
6827 confsrcdir=$i
6829 esac
6830 if test -f ${srcdir}/${confsrcdir}/configure ; then
6831 configdirs="${configdirs} $i"
6833 done
6835 target_configdirs_all="$target_configdirs"
6836 target_configdirs=
6837 for i in ${target_configdirs_all} ; do
6838 j=`echo $i | sed -e s/target-//g`
6839 if test -f ${srcdir}/$j/configure ; then
6840 target_configdirs="${target_configdirs} $i"
6842 done
6844 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6845 # so we have to add it after the preceding checks.
6846 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6847 then
6848 case " $configdirs " in
6849 *" libiberty "*)
6850 # If we can build libiberty, we can also build libiberty-linker-plugin.
6851 configdirs="$configdirs libiberty-linker-plugin"
6852 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6853 --with-libiberty=../libiberty-linker-plugin";;
6855 as_fn_error "libiberty missing" "$LINENO" 5;;
6856 esac
6859 # Produce a warning message for the subdirs we can't configure.
6860 # This isn't especially interesting in the Cygnus tree, but in the individual
6861 # FSF releases, it's important to let people know when their machine isn't
6862 # supported by the one or two programs in a package.
6864 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6865 # If $appdirs is non-empty, at least one of those directories must still
6866 # be configured, or we error out. (E.g., if the gas release supports a
6867 # specified target in some subdirs but not the gas subdir, we shouldn't
6868 # pretend that all is well.)
6869 if test -n "$appdirs" ; then
6870 for dir in $appdirs ; do
6871 if test -r $dir/Makefile.in ; then
6872 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6873 appdirs=""
6874 break
6876 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6877 appdirs=""
6878 break
6881 done
6882 if test -n "$appdirs" ; then
6883 echo "*** This configuration is not supported by this package." 1>&2
6884 exit 1
6887 # Okay, some application will build, or we don't care to check. Still
6888 # notify of subdirs not getting built.
6889 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6890 echo " ${notsupp}" 1>&2
6891 echo " (Any other directories should still work fine.)" 1>&2
6894 case "$host" in
6895 *msdosdjgpp*)
6896 enable_gdbtk=no ;;
6897 esac
6899 # To find our prefix, in gcc_cv_tool_prefix.
6901 # The user is always right.
6902 if test "${PATH_SEPARATOR+set}" != set; then
6903 echo "#! /bin/sh" >conf$$.sh
6904 echo "exit 0" >>conf$$.sh
6905 chmod +x conf$$.sh
6906 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6907 PATH_SEPARATOR=';'
6908 else
6909 PATH_SEPARATOR=:
6911 rm -f conf$$.sh
6916 if test "x$exec_prefix" = xNONE; then
6917 if test "x$prefix" = xNONE; then
6918 gcc_cv_tool_prefix=$ac_default_prefix
6919 else
6920 gcc_cv_tool_prefix=$prefix
6922 else
6923 gcc_cv_tool_prefix=$exec_prefix
6926 # If there is no compiler in the tree, use the PATH only. In any
6927 # case, if there is no compiler in the tree nobody should use
6928 # AS_FOR_TARGET and LD_FOR_TARGET.
6929 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6930 gcc_version=`cat $srcdir/gcc/BASE-VER`
6931 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6932 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6933 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6934 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6935 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6936 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6937 else
6938 gcc_cv_tool_dirs=
6941 if test x$build = x$target && test -n "$md_exec_prefix"; then
6942 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6947 copy_dirs=
6950 # Check whether --with-build-sysroot was given.
6951 if test "${with_build_sysroot+set}" = set; then :
6952 withval=$with_build_sysroot; if test x"$withval" != x ; then
6953 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6955 else
6956 SYSROOT_CFLAGS_FOR_TARGET=
6962 # Check whether --with-debug-prefix-map was given.
6963 if test "${with_debug_prefix_map+set}" = set; then :
6964 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6965 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6966 for debug_map in $withval; do
6967 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6968 done
6970 else
6971 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6976 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6977 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6978 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6979 # We want to ensure that TARGET libraries (which we know are built with
6980 # gcc) are built with "-O2 -g", so include those options when setting
6981 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6982 if test "x$CFLAGS_FOR_TARGET" = x; then
6983 CFLAGS_FOR_TARGET=$CFLAGS
6984 case " $CFLAGS " in
6985 *" -O2 "*) ;;
6986 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6987 esac
6988 case " $CFLAGS " in
6989 *" -g "* | *" -g3 "*) ;;
6990 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6991 esac
6995 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6996 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6997 case " $CXXFLAGS " in
6998 *" -O2 "*) ;;
6999 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7000 esac
7001 case " $CXXFLAGS " in
7002 *" -g "* | *" -g3 "*) ;;
7003 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7004 esac
7010 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7011 # the named directory are copied to $(tooldir)/sys-include.
7012 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7013 if test x${is_cross_compiler} = xno ; then
7014 echo 1>&2 '***' --with-headers is only supported when cross compiling
7015 exit 1
7017 if test x"${with_headers}" != xyes ; then
7018 x=${gcc_cv_tool_prefix}
7019 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7023 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7024 # the name directories are copied to $(tooldir)/lib. Multiple directories
7025 # are permitted.
7026 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7027 if test x${is_cross_compiler} = xno ; then
7028 echo 1>&2 '***' --with-libs is only supported when cross compiling
7029 exit 1
7031 if test x"${with_libs}" != xyes ; then
7032 # Copy the libraries in reverse order, so that files in the first named
7033 # library override files in subsequent libraries.
7034 x=${gcc_cv_tool_prefix}
7035 for l in ${with_libs}; do
7036 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7037 done
7041 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7043 # This is done by determining whether or not the appropriate directory
7044 # is available, and by checking whether or not specific configurations
7045 # have requested that this magic not happen.
7047 # The command line options always override the explicit settings in
7048 # configure.in, and the settings in configure.in override this magic.
7050 # If the default for a toolchain is to use GNU as and ld, and you don't
7051 # want to do that, then you should use the --without-gnu-as and
7052 # --without-gnu-ld options for the configure script. Similarly, if
7053 # the default is to use the included zlib and you don't want to do that,
7054 # you should use the --with-system-zlib option for the configure script.
7056 if test x${use_gnu_as} = x &&
7057 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7058 with_gnu_as=yes
7059 extra_host_args="$extra_host_args --with-gnu-as"
7062 if test x${use_gnu_ld} = x &&
7063 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7064 with_gnu_ld=yes
7065 extra_host_args="$extra_host_args --with-gnu-ld"
7068 if test x${use_included_zlib} = x &&
7069 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7071 else
7072 with_system_zlib=yes
7073 extra_host_args="$extra_host_args --with-system-zlib"
7076 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7077 # can detect this case.
7079 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7080 with_newlib=yes
7081 extra_host_args="$extra_host_args --with-newlib"
7084 # Handle ${copy_dirs}
7085 set fnord ${copy_dirs}
7086 shift
7087 while test $# != 0 ; do
7088 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7090 else
7091 echo Copying $1 to $2
7093 # Use the install script to create the directory and all required
7094 # parent directories.
7095 if test -d $2 ; then
7097 else
7098 echo >config.temp
7099 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7102 # Copy the directory, assuming we have tar.
7103 # FIXME: Should we use B in the second tar? Not all systems support it.
7104 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7106 # It is the responsibility of the user to correctly adjust all
7107 # symlinks. If somebody can figure out how to handle them correctly
7108 # here, feel free to add the code.
7110 echo $1 > $2/COPIED
7112 shift; shift
7113 done
7115 # Determine a target-dependent exec_prefix that the installed
7116 # gcc will search in. Keep this list sorted by triplet, with
7117 # the *-*-osname triplets last.
7118 md_exec_prefix=
7119 case "${target}" in
7120 i[34567]86-pc-msdosdjgpp*)
7121 md_exec_prefix=/dev/env/DJDIR/bin
7123 *-*-hpux* | \
7124 *-*-nto-qnx* | \
7125 *-*-solaris2*)
7126 md_exec_prefix=/usr/ccs/bin
7128 esac
7130 extra_arflags_for_target=
7131 extra_nmflags_for_target=
7132 extra_ranlibflags_for_target=
7133 target_makefile_frag=/dev/null
7134 case "${target}" in
7135 spu-*-*)
7136 target_makefile_frag="config/mt-spu"
7138 mips*-sde-elf* | mips*-mti-elf*)
7139 target_makefile_frag="config/mt-sde"
7141 mipsisa*-*-elfoabi*)
7142 target_makefile_frag="config/mt-mips-elfoabi"
7144 mips*-*-*linux* | mips*-*-gnu*)
7145 target_makefile_frag="config/mt-mips-gnu"
7147 nios2-*-elf*)
7148 target_makefile_frag="config/mt-nios2-elf"
7150 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7151 target_makefile_frag="config/mt-gnu"
7153 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7154 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7155 # commands to handle both 32-bit and 64-bit objects. These flags are
7156 # harmless if we're using GNU nm or ar.
7157 extra_arflags_for_target=" -X32_64"
7158 extra_nmflags_for_target=" -B -X32_64"
7160 esac
7162 alphaieee_frag=/dev/null
7163 case $target in
7164 alpha*-*-*)
7165 # This just makes sure to use the -mieee option to build target libs.
7166 # This should probably be set individually by each library.
7167 alphaieee_frag="config/mt-alphaieee"
7169 esac
7171 # If --enable-target-optspace always use -Os instead of -O2 to build
7172 # the target libraries, similarly if it is not specified, use -Os
7173 # on selected platforms.
7174 ospace_frag=/dev/null
7175 case "${enable_target_optspace}:${target}" in
7176 yes:*)
7177 ospace_frag="config/mt-ospace"
7179 :d30v-*)
7180 ospace_frag="config/mt-d30v"
7182 :m32r-* | :d10v-* | :fr30-*)
7183 ospace_frag="config/mt-ospace"
7185 no:* | :*)
7188 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7190 esac
7192 # Some systems (e.g., one of the i386-aix systems the gas testers are
7193 # using) don't handle "\$" correctly, so don't use it here.
7194 tooldir='${exec_prefix}'/${target_noncanonical}
7195 build_tooldir=${tooldir}
7197 # Create a .gdbinit file which runs the one in srcdir
7198 # and tells GDB to look there for source files.
7200 if test -r ${srcdir}/.gdbinit ; then
7201 case ${srcdir} in
7202 .) ;;
7203 *) cat > ./.gdbinit <<EOF
7204 # ${NO_EDIT}
7205 dir ${srcdir}
7206 dir .
7207 source ${srcdir}/.gdbinit
7210 esac
7213 # Make sure that the compiler is able to generate an executable. If it
7214 # can't, we are probably in trouble. We don't care whether we can run the
7215 # executable--we might be using a cross compiler--we only care whether it
7216 # can be created. At this point the main configure script has set CC.
7217 we_are_ok=no
7218 echo "int main () { return 0; }" > conftest.c
7219 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7220 if test $? = 0 ; then
7221 if test -s conftest || test -s conftest.exe ; then
7222 we_are_ok=yes
7225 case $we_are_ok in
7227 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7228 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7229 rm -f conftest*
7230 exit 1
7232 esac
7233 rm -f conftest*
7235 # Decide which environment variable is used to find dynamic libraries.
7236 case "${host}" in
7237 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7238 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7239 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7240 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7241 esac
7243 # On systems where the dynamic library environment variable is PATH,
7244 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7245 # built executables to PATH.
7246 if test "$RPATH_ENVVAR" = PATH; then
7247 GCC_SHLIB_SUBDIR=/shlib
7248 else
7249 GCC_SHLIB_SUBDIR=
7252 # Adjust the toplevel makefile according to whether bootstrap was selected.
7253 case $enable_bootstrap in
7254 yes)
7255 bootstrap_suffix=bootstrap
7256 BUILD_CONFIG=bootstrap-debug
7259 bootstrap_suffix=no-bootstrap
7260 BUILD_CONFIG=
7262 esac
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7265 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7268 # Check whether --with-build-config was given.
7269 if test "${with_build_config+set}" = set; then :
7270 withval=$with_build_config; case $with_build_config in
7271 yes) with_build_config= ;;
7272 no) with_build_config= BUILD_CONFIG= ;;
7273 esac
7277 if test "x${with_build_config}" != x; then
7278 BUILD_CONFIG=$with_build_config
7279 else
7280 case $BUILD_CONFIG in
7281 bootstrap-debug)
7282 if echo "int f (void) { return 0; }" > conftest.c &&
7283 ${CC} -c conftest.c &&
7284 mv conftest.o conftest.o.g0 &&
7285 ${CC} -c -g conftest.c &&
7286 mv conftest.o conftest.o.g &&
7287 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7289 else
7290 BUILD_CONFIG=
7292 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7294 esac
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7297 $as_echo "$BUILD_CONFIG" >&6; }
7300 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7302 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7303 # Check whether --enable-vtable-verify was given.
7304 if test "${enable_vtable_verify+set}" = set; then :
7305 enableval=$enable_vtable_verify; case "$enableval" in
7306 yes) enable_vtable_verify=yes ;;
7307 no) enable_vtable_verify=no ;;
7308 *) enable_vtable_verify=no;;
7309 esac
7310 else
7311 enable_vtable_verify=no
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7315 $as_echo "$enable_vtable_verify" >&6; }
7317 # Record target_configdirs and the configure arguments for target and
7318 # build configuration in Makefile.
7319 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7320 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7321 bootstrap_fixincludes=no
7323 # If we are building libgomp, bootstrap it.
7324 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7325 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7328 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7329 # or bootstrap-ubsan, bootstrap it.
7330 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7331 case "$BUILD_CONFIG" in
7332 *bootstrap-asan* | *bootstrap-ubsan* )
7333 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7334 bootstrap_fixincludes=yes
7336 esac
7339 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7340 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7341 test "$enable_vtable_verify" != no; then
7342 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7345 # Determine whether gdb needs tk/tcl or not.
7346 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7347 # and in that case we want gdb to be built without tk. Ugh!
7348 # In fact I believe gdb is the *only* package directly dependent on tk,
7349 # so we should be able to put the 'maybe's in unconditionally and
7350 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7351 # 100% sure that that's safe though.
7353 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7354 case "$enable_gdbtk" in
7356 GDB_TK="" ;;
7357 yes)
7358 GDB_TK="${gdb_tk}" ;;
7360 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7361 # distro. Eventually someone will fix this and move Insight, nee
7362 # gdbtk to a separate directory.
7363 if test -d ${srcdir}/gdb/gdbtk ; then
7364 GDB_TK="${gdb_tk}"
7365 else
7366 GDB_TK=""
7369 esac
7370 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7371 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7373 # Strip out unwanted targets.
7375 # While at that, we remove Makefiles if we were started for recursive
7376 # configuration, so that the top-level Makefile reconfigures them,
7377 # like we used to do when configure itself was recursive.
7379 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7380 # but now we're fixing up the Makefile ourselves with the additional
7381 # commands passed to AC_CONFIG_FILES. Use separate variables
7382 # extrasub-{build,host,target} not because there is any reason to split
7383 # the substitutions up that way, but only to remain below the limit of
7384 # 99 commands in a script, for HP-UX sed.
7385 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7387 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7388 yes:yes:*\ gold\ *:*,c++,*) ;;
7389 yes:yes:*\ gold\ *:*)
7390 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7392 esac
7394 extrasub_build=
7395 for module in ${build_configdirs} ; do
7396 if test -z "${no_recursion}" \
7397 && test -f ${build_subdir}/${module}/Makefile; then
7398 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7399 rm -f ${build_subdir}/${module}/Makefile
7401 extrasub_build="$extrasub_build
7402 /^@if build-$module\$/d
7403 /^@endif build-$module\$/d
7404 /^@if build-$module-$bootstrap_suffix\$/d
7405 /^@endif build-$module-$bootstrap_suffix\$/d"
7406 done
7407 extrasub_host=
7408 for module in ${configdirs} ; do
7409 if test -z "${no_recursion}"; then
7410 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7411 if test -f ${file}; then
7412 echo 1>&2 "*** removing ${file} to force reconfigure"
7413 rm -f ${file}
7415 done
7417 case ${module},${bootstrap_fixincludes} in
7418 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7419 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7420 esac
7421 extrasub_host="$extrasub_host
7422 /^@if $module\$/d
7423 /^@endif $module\$/d
7424 /^@if $module-$host_bootstrap_suffix\$/d
7425 /^@endif $module-$host_bootstrap_suffix\$/d"
7426 done
7427 extrasub_target=
7428 for module in ${target_configdirs} ; do
7429 if test -z "${no_recursion}" \
7430 && test -f ${target_subdir}/${module}/Makefile; then
7431 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7432 rm -f ${target_subdir}/${module}/Makefile
7435 # We only bootstrap target libraries listed in bootstrap_target_libs.
7436 case $bootstrap_target_libs in
7437 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7438 *) target_bootstrap_suffix=no-bootstrap ;;
7439 esac
7441 extrasub_target="$extrasub_target
7442 /^@if target-$module\$/d
7443 /^@endif target-$module\$/d
7444 /^@if target-$module-$target_bootstrap_suffix\$/d
7445 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7446 done
7448 # Do the final fixup along with target modules.
7449 extrasub_target="$extrasub_target
7450 /^@if /,/^@endif /d"
7452 # Create the serialization dependencies. This uses a temporary file.
7454 # Check whether --enable-serial-configure was given.
7455 if test "${enable_serial_configure+set}" = set; then :
7456 enableval=$enable_serial_configure;
7460 case ${enable_serial_configure} in
7461 yes)
7462 enable_serial_build_configure=yes
7463 enable_serial_host_configure=yes
7464 enable_serial_target_configure=yes
7466 esac
7468 # These force 'configure's to be done one at a time, to avoid problems
7469 # with contention over a shared config.cache.
7470 rm -f serdep.tmp
7471 echo '# serdep.tmp' > serdep.tmp
7472 olditem=
7473 test "x${enable_serial_build_configure}" = xyes &&
7474 for item in ${build_configdirs} ; do
7475 case ${olditem} in
7476 "") ;;
7477 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7478 esac
7479 olditem=${item}
7480 done
7481 olditem=
7482 test "x${enable_serial_host_configure}" = xyes &&
7483 for item in ${configdirs} ; do
7484 case ${olditem} in
7485 "") ;;
7486 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7487 esac
7488 olditem=${item}
7489 done
7490 olditem=
7491 test "x${enable_serial_target_configure}" = xyes &&
7492 for item in ${target_configdirs} ; do
7493 case ${olditem} in
7494 "") ;;
7495 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7496 esac
7497 olditem=${item}
7498 done
7499 serialization_dependencies=serdep.tmp
7502 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7503 # target, nonopt, and variable assignments. These are the ones we
7504 # might not want to pass down to subconfigures. The exception being
7505 # --cache-file=/dev/null, which is used to turn off the use of cache
7506 # files altogether, and which should be passed on to subconfigures.
7507 # Also strip program-prefix, program-suffix, and program-transform-name,
7508 # so that we can pass down a consistent program-transform-name.
7509 baseargs=
7510 tbaseargs=
7511 keep_next=no
7512 skip_next=no
7513 eval "set -- $ac_configure_args"
7514 for ac_arg
7516 if test X"$skip_next" = X"yes"; then
7517 skip_next=no
7518 continue
7520 if test X"$keep_next" = X"yes"; then
7521 case $ac_arg in
7522 *\'*)
7523 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7524 esac
7525 baseargs="$baseargs '$ac_arg'"
7526 tbaseargs="$tbaseargs '$ac_arg'"
7527 keep_next=no
7528 continue
7531 # Handle separated arguments. Based on the logic generated by
7532 # autoconf 2.59.
7533 case $ac_arg in
7534 *=* | --config-cache | -C | -disable-* | --disable-* \
7535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7537 | -with-* | --with-* | -without-* | --without-* | --x)
7538 separate_arg=no
7541 separate_arg=yes
7544 separate_arg=no
7546 esac
7548 skip_targ=no
7549 case $ac_arg in
7551 --with-* | --without-*)
7552 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7554 case $libopt in
7555 *[-_]include)
7556 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7558 *[-_]lib)
7559 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7562 lib=$libopt
7564 esac
7567 case $lib in
7568 mpc | mpfr | gmp | cloog)
7569 # If we're processing --with-$lib, --with-$lib-include or
7570 # --with-$lib-lib, for one of the libs above, and target is
7571 # different from host, don't pass the current argument to any
7572 # target library's configure.
7573 if test x$is_cross_compiler = xyes; then
7574 skip_targ=yes
7577 esac
7579 esac
7581 case "$ac_arg" in
7582 --cache-file=/dev/null | \
7583 -cache-file=/dev/null )
7584 # Handled here to avoid the test to skip args below.
7585 baseargs="$baseargs '$ac_arg'"
7586 tbaseargs="$tbaseargs '$ac_arg'"
7587 # Assert: $separate_arg should always be no.
7588 keep_next=$separate_arg
7590 --no*)
7591 continue
7593 --c* | \
7594 --sr* | \
7595 --ho* | \
7596 --bu* | \
7597 --t* | \
7598 --program-* | \
7599 -cache_file* | \
7600 -srcdir* | \
7601 -host* | \
7602 -build* | \
7603 -target* | \
7604 -program-prefix* | \
7605 -program-suffix* | \
7606 -program-transform-name* )
7607 skip_next=$separate_arg
7608 continue
7611 # An option. Add it.
7612 case $ac_arg in
7613 *\'*)
7614 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7615 esac
7616 baseargs="$baseargs '$ac_arg'"
7617 if test X"$skip_targ" = Xno; then
7618 tbaseargs="$tbaseargs '$ac_arg'"
7620 keep_next=$separate_arg
7623 # Either a variable assignment, or a nonopt (triplet). Don't
7624 # pass it down; let the Makefile handle this.
7625 continue
7627 esac
7628 done
7629 # Remove the initial space we just introduced and, as these will be
7630 # expanded by make, quote '$'.
7631 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7633 # Add in --program-transform-name, after --program-prefix and
7634 # --program-suffix have been applied to it. Autoconf has already
7635 # doubled dollar signs and backslashes in program_transform_name; we want
7636 # the backslashes un-doubled, and then the entire thing wrapped in single
7637 # quotes, because this will be expanded first by make and then by the shell.
7638 # Also, because we want to override the logic in subdir configure scripts to
7639 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7640 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7641 ${program_transform_name}
7642 EOF_SED
7643 gcc_transform_name=`cat conftestsed.out`
7644 rm -f conftestsed.out
7645 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7646 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7647 if test "$silent" = yes; then
7648 baseargs="$baseargs --silent"
7649 tbaseargs="$tbaseargs --silent"
7651 baseargs="$baseargs --disable-option-checking"
7652 tbaseargs="$tbaseargs --disable-option-checking"
7654 # Record and document user additions to sub configure arguments.
7659 # For the build-side libraries, we just need to pretend we're native,
7660 # and not use the same cache file. Multilibs are neither needed nor
7661 # desired.
7662 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7664 # For host modules, accept cache file option, or specification as blank.
7665 case "${cache_file}" in
7666 "") # empty
7667 cache_file_option="" ;;
7668 /* | [A-Za-z]:[\\/]* ) # absolute path
7669 cache_file_option="--cache-file=${cache_file}" ;;
7670 *) # relative path
7671 cache_file_option="--cache-file=../${cache_file}" ;;
7672 esac
7674 # Host dirs don't like to share a cache file either, horribly enough.
7675 # This seems to be due to autoconf 2.5x stupidity.
7676 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7678 target_configargs="$target_configargs ${tbaseargs}"
7680 # Passing a --with-cross-host argument lets the target libraries know
7681 # whether they are being built with a cross-compiler or being built
7682 # native. However, it would be better to use other mechanisms to make the
7683 # sorts of decisions they want to make on this basis. Please consider
7684 # this option to be deprecated. FIXME.
7685 if test x${is_cross_compiler} = xyes ; then
7686 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7689 # Special user-friendly check for native x86_64-linux build, if
7690 # multilib is not explicitly enabled.
7691 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7692 x86_64-*linux*:yes:$build:$build:)
7693 # Make sure we have a developement environment that handles 32-bit
7694 dev64=no
7695 echo "int main () { return 0; }" > conftest.c
7696 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7697 if test $? = 0 ; then
7698 if test -s conftest || test -s conftest.exe ; then
7699 dev64=yes
7702 rm -f conftest*
7703 if test x${dev64} != xyes ; then
7704 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
7707 esac
7709 # Default to --enable-multilib.
7710 if test x${enable_multilib} = x ; then
7711 target_configargs="--enable-multilib ${target_configargs}"
7714 # Pass --with-newlib if appropriate. Note that target_configdirs has
7715 # changed from the earlier setting of with_newlib.
7716 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7717 target_configargs="--with-newlib ${target_configargs}"
7720 # Different target subdirs use different values of certain variables
7721 # (notably CXX). Worse, multilibs use *lots* of different values.
7722 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7723 # it doesn't automatically accept command-line overrides of them.
7724 # This means it's not safe for target subdirs to share a cache file,
7725 # which is disgusting, but there you have it. Hopefully this can be
7726 # fixed in future. It's still worthwhile to use a cache file for each
7727 # directory. I think.
7729 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7730 # We need to pass --target, as newer autoconf's requires consistency
7731 # for target_alias and gcc doesn't manage it consistently.
7732 target_configargs="--cache-file=./config.cache ${target_configargs}"
7734 FLAGS_FOR_TARGET=
7735 case " $target_configdirs " in
7736 *" newlib "*)
7737 case " $target_configargs " in
7738 *" --with-newlib "*)
7739 case "$target" in
7740 *-cygwin*)
7741 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7743 esac
7745 # If we're not building GCC, don't discard standard headers.
7746 if test -d ${srcdir}/gcc; then
7747 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7749 if test "${build}" != "${host}"; then
7750 # On Canadian crosses, CC_FOR_TARGET will have already been set
7751 # by `configure', so we won't have an opportunity to add -Bgcc/
7752 # to it. This is right: we don't want to search that directory
7753 # for binaries, but we want the header files in there, so add
7754 # them explicitly.
7755 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7757 # Someone might think of using the pre-installed headers on
7758 # Canadian crosses, in case the installed compiler is not fully
7759 # compatible with the compiler being built. In this case, it
7760 # would be better to flag an error than risking having
7761 # incompatible object files being constructed. We can't
7762 # guarantee that an error will be flagged, but let's hope the
7763 # compiler will do it, when presented with incompatible header
7764 # files.
7768 case "${target}-${is_cross_compiler}" in
7769 i[3456789]86-*-linux*-no)
7770 # Here host == target, so we don't need to build gcc,
7771 # so we don't want to discard standard headers.
7772 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7775 # If we're building newlib, use its generic headers last, but search
7776 # for any libc-related directories first (so make it the last -B
7777 # switch).
7778 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7780 # If we're building libgloss, find the startup file, simulator library
7781 # and linker script.
7782 case " $target_configdirs " in
7783 *" libgloss "*)
7784 # Look for startup file, simulator library and maybe linker script.
7785 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7786 # Look for libnosys.a in case the target needs it.
7787 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7788 # Most targets have the linker script in the source directory.
7789 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7791 esac
7793 esac
7795 esac
7797 esac
7799 case "$target" in
7800 x86_64-*mingw* | *-w64-mingw*)
7801 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7802 # however, use a symlink named 'mingw' in ${prefix} .
7803 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7805 *-mingw*)
7806 # MinGW can't be handled as Cygwin above since it does not use newlib.
7807 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'
7809 esac
7811 # Allow the user to override the flags for
7812 # our build compiler if desired.
7813 if test x"${build}" = x"${host}" ; then
7814 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7815 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7816 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7819 # On Canadian crosses, we'll be searching the right directories for
7820 # the previously-installed cross compiler, so don't bother to add
7821 # flags for directories within the install tree of the compiler
7822 # being built; programs in there won't even run.
7823 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7824 # Search for pre-installed headers if nothing else fits.
7825 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7828 if test "x${use_gnu_ld}" = x &&
7829 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7830 # Arrange for us to find uninstalled linker scripts.
7831 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7834 # Search for other target-specific linker scripts and such.
7835 case "${target}" in
7836 mep*)
7837 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7839 esac
7841 # Makefile fragments.
7842 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7844 eval fragval=\$$frag
7845 if test $fragval != /dev/null; then
7846 eval $frag=${srcdir}/$fragval
7848 done
7854 # Miscellanea: directories, flags, etc.
7863 # Build module lists & subconfigure args.
7867 # Host module lists & subconfigure args.
7872 # Target module lists & subconfigure args.
7876 # Build tools.
7894 # Generate default definitions for YACC, M4, LEX and other programs that run
7895 # on the build machine. These are used if the Makefile can't locate these
7896 # programs in objdir.
7897 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7899 for ac_prog in 'bison -y' byacc yacc
7901 # Extract the first word of "$ac_prog", so it can be a program name with args.
7902 set dummy $ac_prog; ac_word=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if test "${ac_cv_prog_YACC+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 if test -n "$YACC"; then
7909 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7918 ac_cv_prog_YACC="$ac_prog"
7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7922 done
7923 done
7924 IFS=$as_save_IFS
7928 YACC=$ac_cv_prog_YACC
7929 if test -n "$YACC"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7931 $as_echo "$YACC" >&6; }
7932 else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7938 test -n "$YACC" && break
7939 done
7940 test -n "$YACC" || YACC="$MISSING bison -y"
7942 case " $build_configdirs " in
7943 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7944 esac
7946 for ac_prog in bison
7948 # Extract the first word of "$ac_prog", so it can be a program name with args.
7949 set dummy $ac_prog; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if test "${ac_cv_prog_BISON+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 if test -n "$BISON"; then
7956 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_prog_BISON="$ac_prog"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7969 done
7970 done
7971 IFS=$as_save_IFS
7975 BISON=$ac_cv_prog_BISON
7976 if test -n "$BISON"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7978 $as_echo "$BISON" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7985 test -n "$BISON" && break
7986 done
7987 test -n "$BISON" || BISON="$MISSING bison"
7989 case " $build_configdirs " in
7990 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7991 esac
7993 for ac_prog in gm4 gnum4 m4
7995 # Extract the first word of "$ac_prog", so it can be a program name with args.
7996 set dummy $ac_prog; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_M4+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 if test -n "$M4"; then
8003 ac_cv_prog_M4="$M4" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 ac_cv_prog_M4="$ac_prog"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8016 done
8017 done
8018 IFS=$as_save_IFS
8022 M4=$ac_cv_prog_M4
8023 if test -n "$M4"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8025 $as_echo "$M4" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8032 test -n "$M4" && break
8033 done
8034 test -n "$M4" || M4="$MISSING m4"
8036 case " $build_configdirs " in
8037 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8038 esac
8040 for ac_prog in flex lex
8042 # Extract the first word of "$ac_prog", so it can be a program name with args.
8043 set dummy $ac_prog; ac_word=$2
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045 $as_echo_n "checking for $ac_word... " >&6; }
8046 if test "${ac_cv_prog_LEX+set}" = set; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 if test -n "$LEX"; then
8050 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8051 else
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053 for as_dir in $PATH
8055 IFS=$as_save_IFS
8056 test -z "$as_dir" && as_dir=.
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8059 ac_cv_prog_LEX="$ac_prog"
8060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 break 2
8063 done
8064 done
8065 IFS=$as_save_IFS
8069 LEX=$ac_cv_prog_LEX
8070 if test -n "$LEX"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8072 $as_echo "$LEX" >&6; }
8073 else
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8079 test -n "$LEX" && break
8080 done
8081 test -n "$LEX" || LEX="$MISSING flex"
8083 case " $build_configdirs " in
8084 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8085 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8086 esac
8088 for ac_prog in flex
8090 # Extract the first word of "$ac_prog", so it can be a program name with args.
8091 set dummy $ac_prog; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if test "${ac_cv_prog_FLEX+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 if test -n "$FLEX"; then
8098 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_prog_FLEX="$ac_prog"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8111 done
8112 done
8113 IFS=$as_save_IFS
8117 FLEX=$ac_cv_prog_FLEX
8118 if test -n "$FLEX"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8120 $as_echo "$FLEX" >&6; }
8121 else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8127 test -n "$FLEX" && break
8128 done
8129 test -n "$FLEX" || FLEX="$MISSING flex"
8131 case " $build_configdirs " in
8132 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8133 esac
8135 for ac_prog in makeinfo
8137 # Extract the first word of "$ac_prog", so it can be a program name with args.
8138 set dummy $ac_prog; ac_word=$2
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 $as_echo_n "checking for $ac_word... " >&6; }
8141 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8142 $as_echo_n "(cached) " >&6
8143 else
8144 if test -n "$MAKEINFO"; then
8145 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8146 else
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8154 ac_cv_prog_MAKEINFO="$ac_prog"
8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 break 2
8158 done
8159 done
8160 IFS=$as_save_IFS
8164 MAKEINFO=$ac_cv_prog_MAKEINFO
8165 if test -n "$MAKEINFO"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8167 $as_echo "$MAKEINFO" >&6; }
8168 else
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8174 test -n "$MAKEINFO" && break
8175 done
8176 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8178 case " $build_configdirs " in
8179 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8182 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8183 # higher, else we use the "missing" dummy.
8184 if ${MAKEINFO} --version \
8185 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8187 else
8188 MAKEINFO="$MISSING makeinfo"
8192 esac
8194 # FIXME: expect and dejagnu may become build tools?
8196 for ac_prog in expect
8198 # Extract the first word of "$ac_prog", so it can be a program name with args.
8199 set dummy $ac_prog; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 if test -n "$EXPECT"; then
8206 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8207 else
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 for as_dir in $PATH
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8215 ac_cv_prog_EXPECT="$ac_prog"
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 break 2
8219 done
8220 done
8221 IFS=$as_save_IFS
8225 EXPECT=$ac_cv_prog_EXPECT
8226 if test -n "$EXPECT"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8228 $as_echo "$EXPECT" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8235 test -n "$EXPECT" && break
8236 done
8237 test -n "$EXPECT" || EXPECT="expect"
8239 case " $configdirs " in
8240 *" expect "*)
8241 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8243 esac
8245 for ac_prog in runtest
8247 # Extract the first word of "$ac_prog", so it can be a program name with args.
8248 set dummy $ac_prog; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$RUNTEST"; then
8255 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_RUNTEST="$ac_prog"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8268 done
8269 done
8270 IFS=$as_save_IFS
8274 RUNTEST=$ac_cv_prog_RUNTEST
8275 if test -n "$RUNTEST"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8277 $as_echo "$RUNTEST" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8284 test -n "$RUNTEST" && break
8285 done
8286 test -n "$RUNTEST" || RUNTEST="runtest"
8288 case " $configdirs " in
8289 *" dejagnu "*)
8290 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8292 esac
8294 # Host tools.
8295 ncn_tool_prefix=
8296 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8297 ncn_target_tool_prefix=
8298 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8302 if test -n "$AR"; then
8303 ac_cv_prog_AR=$AR
8304 elif test -n "$ac_cv_prog_AR"; then
8305 AR=$ac_cv_prog_AR
8308 if test -n "$ac_cv_prog_AR"; then
8309 for ncn_progname in ar; do
8310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8311 set dummy ${ncn_progname}; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if test "${ac_cv_prog_AR+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 if test -n "$AR"; then
8318 ac_cv_prog_AR="$AR" # Let the user override the test.
8319 else
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8327 ac_cv_prog_AR="${ncn_progname}"
8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8331 done
8332 done
8333 IFS=$as_save_IFS
8337 AR=$ac_cv_prog_AR
8338 if test -n "$AR"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8340 $as_echo "$AR" >&6; }
8341 else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8347 done
8350 for ncn_progname in ar; do
8351 if test -n "$ncn_tool_prefix"; then
8352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8353 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if test "${ac_cv_prog_AR+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 if test -n "$AR"; then
8360 ac_cv_prog_AR="$AR" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8373 done
8374 done
8375 IFS=$as_save_IFS
8379 AR=$ac_cv_prog_AR
8380 if test -n "$AR"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8382 $as_echo "$AR" >&6; }
8383 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8390 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8392 set dummy ${ncn_progname}; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if test "${ac_cv_prog_AR+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 if test -n "$AR"; then
8399 ac_cv_prog_AR="$AR" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 ac_cv_prog_AR="${ncn_progname}"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8412 done
8413 done
8414 IFS=$as_save_IFS
8418 AR=$ac_cv_prog_AR
8419 if test -n "$AR"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8421 $as_echo "$AR" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8429 test -n "$ac_cv_prog_AR" && break
8430 done
8432 if test -z "$ac_cv_prog_AR" ; then
8433 set dummy ar
8434 if test $build = $host ; then
8435 AR="$2"
8436 else
8437 AR="${ncn_tool_prefix}$2"
8443 if test -n "$AS"; then
8444 ac_cv_prog_AS=$AS
8445 elif test -n "$ac_cv_prog_AS"; then
8446 AS=$ac_cv_prog_AS
8449 if test -n "$ac_cv_prog_AS"; then
8450 for ncn_progname in as; do
8451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8452 set dummy ${ncn_progname}; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_AS+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 if test -n "$AS"; then
8459 ac_cv_prog_AS="$AS" # Let the user override the test.
8460 else
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_prog_AS="${ncn_progname}"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 break 2
8472 done
8473 done
8474 IFS=$as_save_IFS
8478 AS=$ac_cv_prog_AS
8479 if test -n "$AS"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8481 $as_echo "$AS" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8488 done
8491 for ncn_progname in as; do
8492 if test -n "$ncn_tool_prefix"; then
8493 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8494 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_prog_AS+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 if test -n "$AS"; then
8501 ac_cv_prog_AS="$AS" # Let the user override the test.
8502 else
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 for as_dir in $PATH
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8514 done
8515 done
8516 IFS=$as_save_IFS
8520 AS=$ac_cv_prog_AS
8521 if test -n "$AS"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8523 $as_echo "$AS" >&6; }
8524 else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8531 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8533 set dummy ${ncn_progname}; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if test "${ac_cv_prog_AS+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 if test -n "$AS"; then
8540 ac_cv_prog_AS="$AS" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8549 ac_cv_prog_AS="${ncn_progname}"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8553 done
8554 done
8555 IFS=$as_save_IFS
8559 AS=$ac_cv_prog_AS
8560 if test -n "$AS"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8562 $as_echo "$AS" >&6; }
8563 else
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8570 test -n "$ac_cv_prog_AS" && break
8571 done
8573 if test -z "$ac_cv_prog_AS" ; then
8574 set dummy as
8575 if test $build = $host ; then
8576 AS="$2"
8577 else
8578 AS="${ncn_tool_prefix}$2"
8584 if test -n "$DLLTOOL"; then
8585 ac_cv_prog_DLLTOOL=$DLLTOOL
8586 elif test -n "$ac_cv_prog_DLLTOOL"; then
8587 DLLTOOL=$ac_cv_prog_DLLTOOL
8590 if test -n "$ac_cv_prog_DLLTOOL"; then
8591 for ncn_progname in dlltool; do
8592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8593 set dummy ${ncn_progname}; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 if test -n "$DLLTOOL"; then
8600 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8609 ac_cv_prog_DLLTOOL="${ncn_progname}"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8613 done
8614 done
8615 IFS=$as_save_IFS
8619 DLLTOOL=$ac_cv_prog_DLLTOOL
8620 if test -n "$DLLTOOL"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8622 $as_echo "$DLLTOOL" >&6; }
8623 else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8629 done
8632 for ncn_progname in dlltool; do
8633 if test -n "$ncn_tool_prefix"; then
8634 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8635 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 if test -n "$DLLTOOL"; then
8642 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8643 else
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8651 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 break 2
8655 done
8656 done
8657 IFS=$as_save_IFS
8661 DLLTOOL=$ac_cv_prog_DLLTOOL
8662 if test -n "$DLLTOOL"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8664 $as_echo "$DLLTOOL" >&6; }
8665 else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8672 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8674 set dummy ${ncn_progname}; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8678 $as_echo_n "(cached) " >&6
8679 else
8680 if test -n "$DLLTOOL"; then
8681 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8690 ac_cv_prog_DLLTOOL="${ncn_progname}"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8694 done
8695 done
8696 IFS=$as_save_IFS
8700 DLLTOOL=$ac_cv_prog_DLLTOOL
8701 if test -n "$DLLTOOL"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8703 $as_echo "$DLLTOOL" >&6; }
8704 else
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8711 test -n "$ac_cv_prog_DLLTOOL" && break
8712 done
8714 if test -z "$ac_cv_prog_DLLTOOL" ; then
8715 set dummy dlltool
8716 if test $build = $host ; then
8717 DLLTOOL="$2"
8718 else
8719 DLLTOOL="${ncn_tool_prefix}$2"
8725 if test -n "$LD"; then
8726 ac_cv_prog_LD=$LD
8727 elif test -n "$ac_cv_prog_LD"; then
8728 LD=$ac_cv_prog_LD
8731 if test -n "$ac_cv_prog_LD"; then
8732 for ncn_progname in ld; do
8733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8734 set dummy ${ncn_progname}; ac_word=$2
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736 $as_echo_n "checking for $ac_word... " >&6; }
8737 if test "${ac_cv_prog_LD+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 if test -n "$LD"; then
8741 ac_cv_prog_LD="$LD" # Let the user override the test.
8742 else
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in $PATH
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_prog_LD="${ncn_progname}"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8754 done
8755 done
8756 IFS=$as_save_IFS
8760 LD=$ac_cv_prog_LD
8761 if test -n "$LD"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8763 $as_echo "$LD" >&6; }
8764 else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8770 done
8773 for ncn_progname in ld; do
8774 if test -n "$ncn_tool_prefix"; then
8775 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8776 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if test "${ac_cv_prog_LD+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 if test -n "$LD"; then
8783 ac_cv_prog_LD="$LD" # Let the user override the test.
8784 else
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8796 done
8797 done
8798 IFS=$as_save_IFS
8802 LD=$ac_cv_prog_LD
8803 if test -n "$LD"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8805 $as_echo "$LD" >&6; }
8806 else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8813 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8815 set dummy ${ncn_progname}; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if test "${ac_cv_prog_LD+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 if test -n "$LD"; then
8822 ac_cv_prog_LD="$LD" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831 ac_cv_prog_LD="${ncn_progname}"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8835 done
8836 done
8837 IFS=$as_save_IFS
8841 LD=$ac_cv_prog_LD
8842 if test -n "$LD"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8844 $as_echo "$LD" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8852 test -n "$ac_cv_prog_LD" && break
8853 done
8855 if test -z "$ac_cv_prog_LD" ; then
8856 set dummy ld
8857 if test $build = $host ; then
8858 LD="$2"
8859 else
8860 LD="${ncn_tool_prefix}$2"
8866 if test -n "$LIPO"; then
8867 ac_cv_prog_LIPO=$LIPO
8868 elif test -n "$ac_cv_prog_LIPO"; then
8869 LIPO=$ac_cv_prog_LIPO
8872 if test -n "$ac_cv_prog_LIPO"; then
8873 for ncn_progname in lipo; do
8874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8875 set dummy ${ncn_progname}; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if test "${ac_cv_prog_LIPO+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 if test -n "$LIPO"; then
8882 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8883 else
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891 ac_cv_prog_LIPO="${ncn_progname}"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8895 done
8896 done
8897 IFS=$as_save_IFS
8901 LIPO=$ac_cv_prog_LIPO
8902 if test -n "$LIPO"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8904 $as_echo "$LIPO" >&6; }
8905 else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8911 done
8914 for ncn_progname in lipo; do
8915 if test -n "$ncn_tool_prefix"; then
8916 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8917 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if test "${ac_cv_prog_LIPO+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 if test -n "$LIPO"; then
8924 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8933 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8937 done
8938 done
8939 IFS=$as_save_IFS
8943 LIPO=$ac_cv_prog_LIPO
8944 if test -n "$LIPO"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8946 $as_echo "$LIPO" >&6; }
8947 else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8954 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8956 set dummy ${ncn_progname}; ac_word=$2
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958 $as_echo_n "checking for $ac_word... " >&6; }
8959 if test "${ac_cv_prog_LIPO+set}" = set; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 if test -n "$LIPO"; then
8963 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8964 else
8965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 for as_dir in $PATH
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972 ac_cv_prog_LIPO="${ncn_progname}"
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 break 2
8976 done
8977 done
8978 IFS=$as_save_IFS
8982 LIPO=$ac_cv_prog_LIPO
8983 if test -n "$LIPO"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8985 $as_echo "$LIPO" >&6; }
8986 else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8993 test -n "$ac_cv_prog_LIPO" && break
8994 done
8996 if test -z "$ac_cv_prog_LIPO" ; then
8997 set dummy lipo
8998 if test $build = $host ; then
8999 LIPO="$2"
9000 else
9001 LIPO="${ncn_tool_prefix}$2"
9007 if test -n "$NM"; then
9008 ac_cv_prog_NM=$NM
9009 elif test -n "$ac_cv_prog_NM"; then
9010 NM=$ac_cv_prog_NM
9013 if test -n "$ac_cv_prog_NM"; then
9014 for ncn_progname in nm; do
9015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9016 set dummy ${ncn_progname}; ac_word=$2
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018 $as_echo_n "checking for $ac_word... " >&6; }
9019 if test "${ac_cv_prog_NM+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 if test -n "$NM"; then
9023 ac_cv_prog_NM="$NM" # Let the user override the test.
9024 else
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032 ac_cv_prog_NM="${ncn_progname}"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9036 done
9037 done
9038 IFS=$as_save_IFS
9042 NM=$ac_cv_prog_NM
9043 if test -n "$NM"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9045 $as_echo "$NM" >&6; }
9046 else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9052 done
9055 for ncn_progname in nm; do
9056 if test -n "$ncn_tool_prefix"; then
9057 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9058 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060 $as_echo_n "checking for $ac_word... " >&6; }
9061 if test "${ac_cv_prog_NM+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 if test -n "$NM"; then
9065 ac_cv_prog_NM="$NM" # Let the user override the test.
9066 else
9067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 for as_dir in $PATH
9070 IFS=$as_save_IFS
9071 test -z "$as_dir" && as_dir=.
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9074 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9076 break 2
9078 done
9079 done
9080 IFS=$as_save_IFS
9084 NM=$ac_cv_prog_NM
9085 if test -n "$NM"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9087 $as_echo "$NM" >&6; }
9088 else
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9095 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9097 set dummy ${ncn_progname}; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if test "${ac_cv_prog_NM+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 if test -n "$NM"; then
9104 ac_cv_prog_NM="$NM" # Let the user override the test.
9105 else
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9113 ac_cv_prog_NM="${ncn_progname}"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9117 done
9118 done
9119 IFS=$as_save_IFS
9123 NM=$ac_cv_prog_NM
9124 if test -n "$NM"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9126 $as_echo "$NM" >&6; }
9127 else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9134 test -n "$ac_cv_prog_NM" && break
9135 done
9137 if test -z "$ac_cv_prog_NM" ; then
9138 set dummy nm
9139 if test $build = $host ; then
9140 NM="$2"
9141 else
9142 NM="${ncn_tool_prefix}$2"
9148 if test -n "$RANLIB"; then
9149 ac_cv_prog_RANLIB=$RANLIB
9150 elif test -n "$ac_cv_prog_RANLIB"; then
9151 RANLIB=$ac_cv_prog_RANLIB
9154 if test -n "$ac_cv_prog_RANLIB"; then
9155 for ncn_progname in ranlib; do
9156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9157 set dummy ${ncn_progname}; ac_word=$2
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9159 $as_echo_n "checking for $ac_word... " >&6; }
9160 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
9162 else
9163 if test -n "$RANLIB"; then
9164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9165 else
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 for as_dir in $PATH
9169 IFS=$as_save_IFS
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9173 ac_cv_prog_RANLIB="${ncn_progname}"
9174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 break 2
9177 done
9178 done
9179 IFS=$as_save_IFS
9183 RANLIB=$ac_cv_prog_RANLIB
9184 if test -n "$RANLIB"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9186 $as_echo "$RANLIB" >&6; }
9187 else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9193 done
9196 for ncn_progname in ranlib; do
9197 if test -n "$ncn_tool_prefix"; then
9198 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9199 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 if test -n "$RANLIB"; then
9206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9207 else
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9215 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217 break 2
9219 done
9220 done
9221 IFS=$as_save_IFS
9225 RANLIB=$ac_cv_prog_RANLIB
9226 if test -n "$RANLIB"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9228 $as_echo "$RANLIB" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9236 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9238 set dummy ${ncn_progname}; ac_word=$2
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9240 $as_echo_n "checking for $ac_word... " >&6; }
9241 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 if test -n "$RANLIB"; then
9245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9246 else
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254 ac_cv_prog_RANLIB="${ncn_progname}"
9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9258 done
9259 done
9260 IFS=$as_save_IFS
9264 RANLIB=$ac_cv_prog_RANLIB
9265 if test -n "$RANLIB"; then
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9267 $as_echo "$RANLIB" >&6; }
9268 else
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9275 test -n "$ac_cv_prog_RANLIB" && break
9276 done
9278 if test -z "$ac_cv_prog_RANLIB" ; then
9279 RANLIB="true"
9284 if test -n "$STRIP"; then
9285 ac_cv_prog_STRIP=$STRIP
9286 elif test -n "$ac_cv_prog_STRIP"; then
9287 STRIP=$ac_cv_prog_STRIP
9290 if test -n "$ac_cv_prog_STRIP"; then
9291 for ncn_progname in strip; do
9292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9293 set dummy ${ncn_progname}; ac_word=$2
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9295 $as_echo_n "checking for $ac_word... " >&6; }
9296 if test "${ac_cv_prog_STRIP+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9298 else
9299 if test -n "$STRIP"; then
9300 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9301 else
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303 for as_dir in $PATH
9305 IFS=$as_save_IFS
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9309 ac_cv_prog_STRIP="${ncn_progname}"
9310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 break 2
9313 done
9314 done
9315 IFS=$as_save_IFS
9319 STRIP=$ac_cv_prog_STRIP
9320 if test -n "$STRIP"; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9322 $as_echo "$STRIP" >&6; }
9323 else
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9329 done
9332 for ncn_progname in strip; do
9333 if test -n "$ncn_tool_prefix"; then
9334 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9335 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9337 $as_echo_n "checking for $ac_word... " >&6; }
9338 if test "${ac_cv_prog_STRIP+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 if test -n "$STRIP"; then
9342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9343 else
9344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 for as_dir in $PATH
9347 IFS=$as_save_IFS
9348 test -z "$as_dir" && as_dir=.
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9351 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9353 break 2
9355 done
9356 done
9357 IFS=$as_save_IFS
9361 STRIP=$ac_cv_prog_STRIP
9362 if test -n "$STRIP"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9364 $as_echo "$STRIP" >&6; }
9365 else
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9372 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9374 set dummy ${ncn_progname}; ac_word=$2
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9376 $as_echo_n "checking for $ac_word... " >&6; }
9377 if test "${ac_cv_prog_STRIP+set}" = set; then :
9378 $as_echo_n "(cached) " >&6
9379 else
9380 if test -n "$STRIP"; then
9381 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9382 else
9383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 for as_dir in $PATH
9386 IFS=$as_save_IFS
9387 test -z "$as_dir" && as_dir=.
9388 for ac_exec_ext in '' $ac_executable_extensions; do
9389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9390 ac_cv_prog_STRIP="${ncn_progname}"
9391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9392 break 2
9394 done
9395 done
9396 IFS=$as_save_IFS
9400 STRIP=$ac_cv_prog_STRIP
9401 if test -n "$STRIP"; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9403 $as_echo "$STRIP" >&6; }
9404 else
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 $as_echo "no" >&6; }
9411 test -n "$ac_cv_prog_STRIP" && break
9412 done
9414 if test -z "$ac_cv_prog_STRIP" ; then
9415 STRIP="true"
9420 if test -n "$WINDRES"; then
9421 ac_cv_prog_WINDRES=$WINDRES
9422 elif test -n "$ac_cv_prog_WINDRES"; then
9423 WINDRES=$ac_cv_prog_WINDRES
9426 if test -n "$ac_cv_prog_WINDRES"; then
9427 for ncn_progname in windres; do
9428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9429 set dummy ${ncn_progname}; ac_word=$2
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 $as_echo_n "checking for $ac_word... " >&6; }
9432 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 if test -n "$WINDRES"; then
9436 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9437 else
9438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439 for as_dir in $PATH
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9445 ac_cv_prog_WINDRES="${ncn_progname}"
9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9447 break 2
9449 done
9450 done
9451 IFS=$as_save_IFS
9455 WINDRES=$ac_cv_prog_WINDRES
9456 if test -n "$WINDRES"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9458 $as_echo "$WINDRES" >&6; }
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9465 done
9468 for ncn_progname in windres; do
9469 if test -n "$ncn_tool_prefix"; then
9470 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9471 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 if test -n "$WINDRES"; then
9478 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9479 else
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 for as_dir in $PATH
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9491 done
9492 done
9493 IFS=$as_save_IFS
9497 WINDRES=$ac_cv_prog_WINDRES
9498 if test -n "$WINDRES"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9500 $as_echo "$WINDRES" >&6; }
9501 else
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9508 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9510 set dummy ${ncn_progname}; ac_word=$2
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9512 $as_echo_n "checking for $ac_word... " >&6; }
9513 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 if test -n "$WINDRES"; then
9517 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9518 else
9519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 for as_dir in $PATH
9522 IFS=$as_save_IFS
9523 test -z "$as_dir" && as_dir=.
9524 for ac_exec_ext in '' $ac_executable_extensions; do
9525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9526 ac_cv_prog_WINDRES="${ncn_progname}"
9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528 break 2
9530 done
9531 done
9532 IFS=$as_save_IFS
9536 WINDRES=$ac_cv_prog_WINDRES
9537 if test -n "$WINDRES"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9539 $as_echo "$WINDRES" >&6; }
9540 else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9547 test -n "$ac_cv_prog_WINDRES" && break
9548 done
9550 if test -z "$ac_cv_prog_WINDRES" ; then
9551 set dummy windres
9552 if test $build = $host ; then
9553 WINDRES="$2"
9554 else
9555 WINDRES="${ncn_tool_prefix}$2"
9561 if test -n "$WINDMC"; then
9562 ac_cv_prog_WINDMC=$WINDMC
9563 elif test -n "$ac_cv_prog_WINDMC"; then
9564 WINDMC=$ac_cv_prog_WINDMC
9567 if test -n "$ac_cv_prog_WINDMC"; then
9568 for ncn_progname in windmc; do
9569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9570 set dummy ${ncn_progname}; ac_word=$2
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572 $as_echo_n "checking for $ac_word... " >&6; }
9573 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 if test -n "$WINDMC"; then
9577 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9578 else
9579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580 for as_dir in $PATH
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9586 ac_cv_prog_WINDMC="${ncn_progname}"
9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9588 break 2
9590 done
9591 done
9592 IFS=$as_save_IFS
9596 WINDMC=$ac_cv_prog_WINDMC
9597 if test -n "$WINDMC"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9599 $as_echo "$WINDMC" >&6; }
9600 else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9606 done
9609 for ncn_progname in windmc; do
9610 if test -n "$ncn_tool_prefix"; then
9611 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9612 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614 $as_echo_n "checking for $ac_word... " >&6; }
9615 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
9617 else
9618 if test -n "$WINDMC"; then
9619 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9620 else
9621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622 for as_dir in $PATH
9624 IFS=$as_save_IFS
9625 test -z "$as_dir" && as_dir=.
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9628 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9630 break 2
9632 done
9633 done
9634 IFS=$as_save_IFS
9638 WINDMC=$ac_cv_prog_WINDMC
9639 if test -n "$WINDMC"; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9641 $as_echo "$WINDMC" >&6; }
9642 else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9649 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9651 set dummy ${ncn_progname}; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 if test -n "$WINDMC"; then
9658 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9659 else
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9667 ac_cv_prog_WINDMC="${ncn_progname}"
9668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 break 2
9671 done
9672 done
9673 IFS=$as_save_IFS
9677 WINDMC=$ac_cv_prog_WINDMC
9678 if test -n "$WINDMC"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9680 $as_echo "$WINDMC" >&6; }
9681 else
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9688 test -n "$ac_cv_prog_WINDMC" && break
9689 done
9691 if test -z "$ac_cv_prog_WINDMC" ; then
9692 set dummy windmc
9693 if test $build = $host ; then
9694 WINDMC="$2"
9695 else
9696 WINDMC="${ncn_tool_prefix}$2"
9702 if test -n "$OBJCOPY"; then
9703 ac_cv_prog_OBJCOPY=$OBJCOPY
9704 elif test -n "$ac_cv_prog_OBJCOPY"; then
9705 OBJCOPY=$ac_cv_prog_OBJCOPY
9708 if test -n "$ac_cv_prog_OBJCOPY"; then
9709 for ncn_progname in objcopy; do
9710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9711 set dummy ${ncn_progname}; ac_word=$2
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713 $as_echo_n "checking for $ac_word... " >&6; }
9714 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 if test -n "$OBJCOPY"; then
9718 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9719 else
9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 for as_dir in $PATH
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9727 ac_cv_prog_OBJCOPY="${ncn_progname}"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9731 done
9732 done
9733 IFS=$as_save_IFS
9737 OBJCOPY=$ac_cv_prog_OBJCOPY
9738 if test -n "$OBJCOPY"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9740 $as_echo "$OBJCOPY" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9747 done
9750 for ncn_progname in objcopy; do
9751 if test -n "$ncn_tool_prefix"; then
9752 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9753 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755 $as_echo_n "checking for $ac_word... " >&6; }
9756 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
9758 else
9759 if test -n "$OBJCOPY"; then
9760 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9761 else
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 for as_dir in $PATH
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9769 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9771 break 2
9773 done
9774 done
9775 IFS=$as_save_IFS
9779 OBJCOPY=$ac_cv_prog_OBJCOPY
9780 if test -n "$OBJCOPY"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9782 $as_echo "$OBJCOPY" >&6; }
9783 else
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 $as_echo "no" >&6; }
9790 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9792 set dummy ${ncn_progname}; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 if test -n "$OBJCOPY"; then
9799 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9800 else
9801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 for as_dir in $PATH
9804 IFS=$as_save_IFS
9805 test -z "$as_dir" && as_dir=.
9806 for ac_exec_ext in '' $ac_executable_extensions; do
9807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9808 ac_cv_prog_OBJCOPY="${ncn_progname}"
9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 break 2
9812 done
9813 done
9814 IFS=$as_save_IFS
9818 OBJCOPY=$ac_cv_prog_OBJCOPY
9819 if test -n "$OBJCOPY"; then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9821 $as_echo "$OBJCOPY" >&6; }
9822 else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9829 test -n "$ac_cv_prog_OBJCOPY" && break
9830 done
9832 if test -z "$ac_cv_prog_OBJCOPY" ; then
9833 set dummy objcopy
9834 if test $build = $host ; then
9835 OBJCOPY="$2"
9836 else
9837 OBJCOPY="${ncn_tool_prefix}$2"
9843 if test -n "$OBJDUMP"; then
9844 ac_cv_prog_OBJDUMP=$OBJDUMP
9845 elif test -n "$ac_cv_prog_OBJDUMP"; then
9846 OBJDUMP=$ac_cv_prog_OBJDUMP
9849 if test -n "$ac_cv_prog_OBJDUMP"; then
9850 for ncn_progname in objdump; do
9851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9852 set dummy ${ncn_progname}; ac_word=$2
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854 $as_echo_n "checking for $ac_word... " >&6; }
9855 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 if test -n "$OBJDUMP"; then
9859 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9860 else
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9864 IFS=$as_save_IFS
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9868 ac_cv_prog_OBJDUMP="${ncn_progname}"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870 break 2
9872 done
9873 done
9874 IFS=$as_save_IFS
9878 OBJDUMP=$ac_cv_prog_OBJDUMP
9879 if test -n "$OBJDUMP"; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9881 $as_echo "$OBJDUMP" >&6; }
9882 else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 $as_echo "no" >&6; }
9888 done
9891 for ncn_progname in objdump; do
9892 if test -n "$ncn_tool_prefix"; then
9893 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9894 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896 $as_echo_n "checking for $ac_word... " >&6; }
9897 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 if test -n "$OBJDUMP"; then
9901 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9902 else
9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 for as_dir in $PATH
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9914 done
9915 done
9916 IFS=$as_save_IFS
9920 OBJDUMP=$ac_cv_prog_OBJDUMP
9921 if test -n "$OBJDUMP"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9923 $as_echo "$OBJDUMP" >&6; }
9924 else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9931 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9933 set dummy ${ncn_progname}; ac_word=$2
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 $as_echo_n "checking for $ac_word... " >&6; }
9936 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 if test -n "$OBJDUMP"; then
9940 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9941 else
9942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 for as_dir in $PATH
9945 IFS=$as_save_IFS
9946 test -z "$as_dir" && as_dir=.
9947 for ac_exec_ext in '' $ac_executable_extensions; do
9948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9949 ac_cv_prog_OBJDUMP="${ncn_progname}"
9950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9951 break 2
9953 done
9954 done
9955 IFS=$as_save_IFS
9959 OBJDUMP=$ac_cv_prog_OBJDUMP
9960 if test -n "$OBJDUMP"; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9962 $as_echo "$OBJDUMP" >&6; }
9963 else
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965 $as_echo "no" >&6; }
9970 test -n "$ac_cv_prog_OBJDUMP" && break
9971 done
9973 if test -z "$ac_cv_prog_OBJDUMP" ; then
9974 set dummy objdump
9975 if test $build = $host ; then
9976 OBJDUMP="$2"
9977 else
9978 OBJDUMP="${ncn_tool_prefix}$2"
9984 if test -n "$READELF"; then
9985 ac_cv_prog_READELF=$READELF
9986 elif test -n "$ac_cv_prog_READELF"; then
9987 READELF=$ac_cv_prog_READELF
9990 if test -n "$ac_cv_prog_READELF"; then
9991 for ncn_progname in readelf; do
9992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9993 set dummy ${ncn_progname}; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if test "${ac_cv_prog_READELF+set}" = set; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 if test -n "$READELF"; then
10000 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10001 else
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009 ac_cv_prog_READELF="${ncn_progname}"
10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10013 done
10014 done
10015 IFS=$as_save_IFS
10019 READELF=$ac_cv_prog_READELF
10020 if test -n "$READELF"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10022 $as_echo "$READELF" >&6; }
10023 else
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10029 done
10032 for ncn_progname in readelf; do
10033 if test -n "$ncn_tool_prefix"; then
10034 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10035 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037 $as_echo_n "checking for $ac_word... " >&6; }
10038 if test "${ac_cv_prog_READELF+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041 if test -n "$READELF"; then
10042 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10043 else
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10047 IFS=$as_save_IFS
10048 test -z "$as_dir" && as_dir=.
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10051 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10053 break 2
10055 done
10056 done
10057 IFS=$as_save_IFS
10061 READELF=$ac_cv_prog_READELF
10062 if test -n "$READELF"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10064 $as_echo "$READELF" >&6; }
10065 else
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10072 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10074 set dummy ${ncn_progname}; ac_word=$2
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 $as_echo_n "checking for $ac_word... " >&6; }
10077 if test "${ac_cv_prog_READELF+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 if test -n "$READELF"; then
10081 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10082 else
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10090 ac_cv_prog_READELF="${ncn_progname}"
10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10094 done
10095 done
10096 IFS=$as_save_IFS
10100 READELF=$ac_cv_prog_READELF
10101 if test -n "$READELF"; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10103 $as_echo "$READELF" >&6; }
10104 else
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106 $as_echo "no" >&6; }
10111 test -n "$ac_cv_prog_READELF" && break
10112 done
10114 if test -z "$ac_cv_prog_READELF" ; then
10115 set dummy readelf
10116 if test $build = $host ; then
10117 READELF="$2"
10118 else
10119 READELF="${ncn_tool_prefix}$2"
10128 # Target tools.
10130 # Check whether --with-build-time-tools was given.
10131 if test "${with_build_time_tools+set}" = set; then :
10132 withval=$with_build_time_tools; case x"$withval" in
10133 x/*) ;;
10135 with_build_time_tools=
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10137 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10139 esac
10140 else
10141 with_build_time_tools=
10147 if test -n "$CC_FOR_TARGET"; then
10148 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10149 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10150 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10153 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10154 for ncn_progname in cc gcc; do
10155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10156 set dummy ${ncn_progname}; ac_word=$2
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10158 $as_echo_n "checking for $ac_word... " >&6; }
10159 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162 if test -n "$CC_FOR_TARGET"; then
10163 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10164 else
10165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10166 for as_dir in $PATH
10168 IFS=$as_save_IFS
10169 test -z "$as_dir" && as_dir=.
10170 for ac_exec_ext in '' $ac_executable_extensions; do
10171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10172 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10174 break 2
10176 done
10177 done
10178 IFS=$as_save_IFS
10182 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10183 if test -n "$CC_FOR_TARGET"; then
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10185 $as_echo "$CC_FOR_TARGET" >&6; }
10186 else
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10192 done
10195 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10196 for ncn_progname in cc gcc; do
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10198 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10199 if test -x $with_build_time_tools/${ncn_progname}; then
10200 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10202 $as_echo "yes" >&6; }
10203 break
10204 else
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206 $as_echo "no" >&6; }
10208 done
10211 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10212 for ncn_progname in cc gcc; do
10213 if test -n "$ncn_target_tool_prefix"; then
10214 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10215 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 if test -n "$CC_FOR_TARGET"; then
10222 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10223 else
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10231 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10235 done
10236 done
10237 IFS=$as_save_IFS
10241 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10242 if test -n "$CC_FOR_TARGET"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10244 $as_echo "$CC_FOR_TARGET" >&6; }
10245 else
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10252 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10254 set dummy ${ncn_progname}; ac_word=$2
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256 $as_echo_n "checking for $ac_word... " >&6; }
10257 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 if test -n "$CC_FOR_TARGET"; then
10261 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10262 else
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10270 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10274 done
10275 done
10276 IFS=$as_save_IFS
10280 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10281 if test -n "$CC_FOR_TARGET"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10283 $as_echo "$CC_FOR_TARGET" >&6; }
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286 $as_echo "no" >&6; }
10291 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10292 done
10295 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10296 set dummy cc gcc
10297 if test $build = $target ; then
10298 CC_FOR_TARGET="$2"
10299 else
10300 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10302 else
10303 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10308 if test -n "$CXX_FOR_TARGET"; then
10309 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10310 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10311 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10314 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10315 for ncn_progname in c++ g++ cxx gxx; do
10316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10317 set dummy ${ncn_progname}; ac_word=$2
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10319 $as_echo_n "checking for $ac_word... " >&6; }
10320 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10321 $as_echo_n "(cached) " >&6
10322 else
10323 if test -n "$CXX_FOR_TARGET"; then
10324 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10325 else
10326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327 for as_dir in $PATH
10329 IFS=$as_save_IFS
10330 test -z "$as_dir" && as_dir=.
10331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10333 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 break 2
10337 done
10338 done
10339 IFS=$as_save_IFS
10343 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10344 if test -n "$CXX_FOR_TARGET"; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10346 $as_echo "$CXX_FOR_TARGET" >&6; }
10347 else
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 $as_echo "no" >&6; }
10353 done
10356 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10357 for ncn_progname in c++ g++ cxx gxx; do
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10359 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10360 if test -x $with_build_time_tools/${ncn_progname}; then
10361 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10363 $as_echo "yes" >&6; }
10364 break
10365 else
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10367 $as_echo "no" >&6; }
10369 done
10372 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10373 for ncn_progname in c++ g++ cxx gxx; do
10374 if test -n "$ncn_target_tool_prefix"; then
10375 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10376 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378 $as_echo_n "checking for $ac_word... " >&6; }
10379 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 if test -n "$CXX_FOR_TARGET"; then
10383 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10384 else
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
10390 for ac_exec_ext in '' $ac_executable_extensions; do
10391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10392 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 break 2
10396 done
10397 done
10398 IFS=$as_save_IFS
10402 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10403 if test -n "$CXX_FOR_TARGET"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10405 $as_echo "$CXX_FOR_TARGET" >&6; }
10406 else
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10413 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10415 set dummy ${ncn_progname}; ac_word=$2
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417 $as_echo_n "checking for $ac_word... " >&6; }
10418 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 if test -n "$CXX_FOR_TARGET"; then
10422 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10423 else
10424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425 for as_dir in $PATH
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10431 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10433 break 2
10435 done
10436 done
10437 IFS=$as_save_IFS
10441 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10442 if test -n "$CXX_FOR_TARGET"; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10444 $as_echo "$CXX_FOR_TARGET" >&6; }
10445 else
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10452 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10453 done
10456 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10457 set dummy c++ g++ cxx gxx
10458 if test $build = $target ; then
10459 CXX_FOR_TARGET="$2"
10460 else
10461 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10463 else
10464 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10469 if test -n "$GCC_FOR_TARGET"; then
10470 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10471 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10472 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10475 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10476 for ncn_progname in gcc; do
10477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10478 set dummy ${ncn_progname}; ac_word=$2
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480 $as_echo_n "checking for $ac_word... " >&6; }
10481 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 if test -n "$GCC_FOR_TARGET"; then
10485 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10486 else
10487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488 for as_dir in $PATH
10490 IFS=$as_save_IFS
10491 test -z "$as_dir" && as_dir=.
10492 for ac_exec_ext in '' $ac_executable_extensions; do
10493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10494 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10496 break 2
10498 done
10499 done
10500 IFS=$as_save_IFS
10504 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10505 if test -n "$GCC_FOR_TARGET"; then
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10507 $as_echo "$GCC_FOR_TARGET" >&6; }
10508 else
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510 $as_echo "no" >&6; }
10514 done
10517 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10518 for ncn_progname in gcc; do
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10520 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10521 if test -x $with_build_time_tools/${ncn_progname}; then
10522 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10524 $as_echo "yes" >&6; }
10525 break
10526 else
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10530 done
10533 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10534 for ncn_progname in gcc; do
10535 if test -n "$ncn_target_tool_prefix"; then
10536 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10537 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 $as_echo_n "checking for $ac_word... " >&6; }
10540 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 if test -n "$GCC_FOR_TARGET"; then
10544 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10545 else
10546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547 for as_dir in $PATH
10549 IFS=$as_save_IFS
10550 test -z "$as_dir" && as_dir=.
10551 for ac_exec_ext in '' $ac_executable_extensions; do
10552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10553 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10555 break 2
10557 done
10558 done
10559 IFS=$as_save_IFS
10563 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10564 if test -n "$GCC_FOR_TARGET"; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10566 $as_echo "$GCC_FOR_TARGET" >&6; }
10567 else
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; }
10574 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10576 set dummy ${ncn_progname}; ac_word=$2
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10578 $as_echo_n "checking for $ac_word... " >&6; }
10579 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10580 $as_echo_n "(cached) " >&6
10581 else
10582 if test -n "$GCC_FOR_TARGET"; then
10583 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10584 else
10585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10592 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10596 done
10597 done
10598 IFS=$as_save_IFS
10602 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10603 if test -n "$GCC_FOR_TARGET"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10605 $as_echo "$GCC_FOR_TARGET" >&6; }
10606 else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 $as_echo "no" >&6; }
10613 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10614 done
10617 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10618 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10619 else
10620 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10625 if test -n "$GCJ_FOR_TARGET"; then
10626 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10627 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10628 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10631 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10632 for ncn_progname in gcj; do
10633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10634 set dummy ${ncn_progname}; ac_word=$2
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10636 $as_echo_n "checking for $ac_word... " >&6; }
10637 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10638 $as_echo_n "(cached) " >&6
10639 else
10640 if test -n "$GCJ_FOR_TARGET"; then
10641 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10642 else
10643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10646 IFS=$as_save_IFS
10647 test -z "$as_dir" && as_dir=.
10648 for ac_exec_ext in '' $ac_executable_extensions; do
10649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10650 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 break 2
10654 done
10655 done
10656 IFS=$as_save_IFS
10660 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10661 if test -n "$GCJ_FOR_TARGET"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10663 $as_echo "$GCJ_FOR_TARGET" >&6; }
10664 else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10670 done
10673 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10674 for ncn_progname in gcj; do
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10676 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10677 if test -x $with_build_time_tools/${ncn_progname}; then
10678 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10680 $as_echo "yes" >&6; }
10681 break
10682 else
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; }
10686 done
10689 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10690 for ncn_progname in gcj; do
10691 if test -n "$ncn_target_tool_prefix"; then
10692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10693 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 if test -n "$GCJ_FOR_TARGET"; then
10700 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10701 else
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10711 break 2
10713 done
10714 done
10715 IFS=$as_save_IFS
10719 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10720 if test -n "$GCJ_FOR_TARGET"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10722 $as_echo "$GCJ_FOR_TARGET" >&6; }
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10730 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10732 set dummy ${ncn_progname}; ac_word=$2
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734 $as_echo_n "checking for $ac_word... " >&6; }
10735 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 if test -n "$GCJ_FOR_TARGET"; then
10739 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10740 else
10741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742 for as_dir in $PATH
10744 IFS=$as_save_IFS
10745 test -z "$as_dir" && as_dir=.
10746 for ac_exec_ext in '' $ac_executable_extensions; do
10747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10748 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750 break 2
10752 done
10753 done
10754 IFS=$as_save_IFS
10758 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10759 if test -n "$GCJ_FOR_TARGET"; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10761 $as_echo "$GCJ_FOR_TARGET" >&6; }
10762 else
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 $as_echo "no" >&6; }
10769 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10770 done
10773 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10774 set dummy gcj
10775 if test $build = $target ; then
10776 GCJ_FOR_TARGET="$2"
10777 else
10778 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10780 else
10781 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10786 if test -n "$GFORTRAN_FOR_TARGET"; then
10787 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10788 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10789 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10792 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10793 for ncn_progname in gfortran; do
10794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10795 set dummy ${ncn_progname}; ac_word=$2
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797 $as_echo_n "checking for $ac_word... " >&6; }
10798 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 if test -n "$GFORTRAN_FOR_TARGET"; then
10802 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10803 else
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $PATH
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10811 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10815 done
10816 done
10817 IFS=$as_save_IFS
10821 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10822 if test -n "$GFORTRAN_FOR_TARGET"; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10824 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10825 else
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; }
10831 done
10834 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10835 for ncn_progname in gfortran; do
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10837 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10838 if test -x $with_build_time_tools/${ncn_progname}; then
10839 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10841 $as_echo "yes" >&6; }
10842 break
10843 else
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845 $as_echo "no" >&6; }
10847 done
10850 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10851 for ncn_progname in gfortran; do
10852 if test -n "$ncn_target_tool_prefix"; then
10853 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10854 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856 $as_echo_n "checking for $ac_word... " >&6; }
10857 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 if test -n "$GFORTRAN_FOR_TARGET"; then
10861 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10862 else
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10874 done
10875 done
10876 IFS=$as_save_IFS
10880 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10881 if test -n "$GFORTRAN_FOR_TARGET"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10883 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; }
10891 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10893 set dummy ${ncn_progname}; ac_word=$2
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10895 $as_echo_n "checking for $ac_word... " >&6; }
10896 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 if test -n "$GFORTRAN_FOR_TARGET"; then
10900 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10901 else
10902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903 for as_dir in $PATH
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10909 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 break 2
10913 done
10914 done
10915 IFS=$as_save_IFS
10919 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10920 if test -n "$GFORTRAN_FOR_TARGET"; then
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10922 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10923 else
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 $as_echo "no" >&6; }
10930 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10931 done
10934 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10935 set dummy gfortran
10936 if test $build = $target ; then
10937 GFORTRAN_FOR_TARGET="$2"
10938 else
10939 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10941 else
10942 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10947 if test -n "$GOC_FOR_TARGET"; then
10948 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10949 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10950 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10953 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10954 for ncn_progname in gccgo; do
10955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10956 set dummy ${ncn_progname}; ac_word=$2
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10958 $as_echo_n "checking for $ac_word... " >&6; }
10959 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 if test -n "$GOC_FOR_TARGET"; then
10963 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10964 else
10965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966 for as_dir in $PATH
10968 IFS=$as_save_IFS
10969 test -z "$as_dir" && as_dir=.
10970 for ac_exec_ext in '' $ac_executable_extensions; do
10971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10972 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10974 break 2
10976 done
10977 done
10978 IFS=$as_save_IFS
10982 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10983 if test -n "$GOC_FOR_TARGET"; then
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10985 $as_echo "$GOC_FOR_TARGET" >&6; }
10986 else
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10988 $as_echo "no" >&6; }
10992 done
10995 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10996 for ncn_progname in gccgo; do
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10998 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10999 if test -x $with_build_time_tools/${ncn_progname}; then
11000 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11002 $as_echo "yes" >&6; }
11003 break
11004 else
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11008 done
11011 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11012 for ncn_progname in gccgo; do
11013 if test -n "$ncn_target_tool_prefix"; then
11014 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11015 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 if test -n "$GOC_FOR_TARGET"; then
11022 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11023 else
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11031 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11033 break 2
11035 done
11036 done
11037 IFS=$as_save_IFS
11041 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11042 if test -n "$GOC_FOR_TARGET"; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11044 $as_echo "$GOC_FOR_TARGET" >&6; }
11045 else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11052 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11054 set dummy ${ncn_progname}; ac_word=$2
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11056 $as_echo_n "checking for $ac_word... " >&6; }
11057 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 if test -n "$GOC_FOR_TARGET"; then
11061 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11062 else
11063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064 for as_dir in $PATH
11066 IFS=$as_save_IFS
11067 test -z "$as_dir" && as_dir=.
11068 for ac_exec_ext in '' $ac_executable_extensions; do
11069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11070 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11072 break 2
11074 done
11075 done
11076 IFS=$as_save_IFS
11080 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11081 if test -n "$GOC_FOR_TARGET"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11083 $as_echo "$GOC_FOR_TARGET" >&6; }
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11091 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11092 done
11095 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11096 set dummy gccgo
11097 if test $build = $target ; then
11098 GOC_FOR_TARGET="$2"
11099 else
11100 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11102 else
11103 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11108 cat > conftest.c << \EOF
11109 #ifdef __GNUC__
11110 gcc_yay;
11111 #endif
11113 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11114 have_gcc_for_target=yes
11115 else
11116 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11117 have_gcc_for_target=no
11119 rm conftest.c
11124 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11125 if test -n "$with_build_time_tools"; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11127 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11128 if test -x $with_build_time_tools/ar; then
11129 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11130 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11132 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11133 else
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; }
11137 elif test $build != $host && test $have_gcc_for_target = yes; then
11138 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11139 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11140 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11143 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11144 # Extract the first word of "ar", so it can be a program name with args.
11145 set dummy ar; ac_word=$2
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11147 $as_echo_n "checking for $ac_word... " >&6; }
11148 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 case $AR_FOR_TARGET in
11152 [\\/]* | ?:[\\/]*)
11153 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in $gcc_cv_tool_dirs
11159 IFS=$as_save_IFS
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
11162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11163 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 break 2
11167 done
11168 done
11169 IFS=$as_save_IFS
11172 esac
11174 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11175 if test -n "$AR_FOR_TARGET"; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11177 $as_echo "$AR_FOR_TARGET" >&6; }
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11185 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11188 if test -n "$AR_FOR_TARGET"; then
11189 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11190 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11191 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11194 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11195 for ncn_progname in ar; do
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_AR_FOR_TARGET+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 if test -n "$AR_FOR_TARGET"; then
11204 ac_cv_prog_AR_FOR_TARGET="$AR_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_AR_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 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11224 if test -n "$AR_FOR_TARGET"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11226 $as_echo "$AR_FOR_TARGET" >&6; }
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11233 done
11236 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11237 for ncn_progname in ar; do
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11239 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11240 if test -x $with_build_time_tools/${ncn_progname}; then
11241 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11243 $as_echo "yes" >&6; }
11244 break
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11249 done
11252 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11253 for ncn_progname in ar; do
11254 if test -n "$ncn_target_tool_prefix"; then
11255 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11256 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11258 $as_echo_n "checking for $ac_word... " >&6; }
11259 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11262 if test -n "$AR_FOR_TARGET"; then
11263 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11264 else
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11268 IFS=$as_save_IFS
11269 test -z "$as_dir" && as_dir=.
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11272 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11274 break 2
11276 done
11277 done
11278 IFS=$as_save_IFS
11282 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11283 if test -n "$AR_FOR_TARGET"; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11285 $as_echo "$AR_FOR_TARGET" >&6; }
11286 else
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11293 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11295 set dummy ${ncn_progname}; ac_word=$2
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11297 $as_echo_n "checking for $ac_word... " >&6; }
11298 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 if test -n "$AR_FOR_TARGET"; then
11302 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11303 else
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11307 IFS=$as_save_IFS
11308 test -z "$as_dir" && as_dir=.
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11311 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11313 break 2
11315 done
11316 done
11317 IFS=$as_save_IFS
11321 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11322 if test -n "$AR_FOR_TARGET"; then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11324 $as_echo "$AR_FOR_TARGET" >&6; }
11325 else
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; }
11332 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11333 done
11336 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11337 set dummy ar
11338 if test $build = $target ; then
11339 AR_FOR_TARGET="$2"
11340 else
11341 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11343 else
11344 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11347 else
11348 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11354 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11355 if test -n "$with_build_time_tools"; then
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11357 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11358 if test -x $with_build_time_tools/as; then
11359 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11360 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11362 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11363 else
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11367 elif test $build != $host && test $have_gcc_for_target = yes; then
11368 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11369 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11370 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11373 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11374 # Extract the first word of "as", so it can be a program name with args.
11375 set dummy as; ac_word=$2
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11377 $as_echo_n "checking for $ac_word... " >&6; }
11378 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11379 $as_echo_n "(cached) " >&6
11380 else
11381 case $AS_FOR_TARGET in
11382 [\\/]* | ?:[\\/]*)
11383 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11387 for as_dir in $gcc_cv_tool_dirs
11389 IFS=$as_save_IFS
11390 test -z "$as_dir" && as_dir=.
11391 for ac_exec_ext in '' $ac_executable_extensions; do
11392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11393 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11395 break 2
11397 done
11398 done
11399 IFS=$as_save_IFS
11402 esac
11404 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11405 if test -n "$AS_FOR_TARGET"; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11407 $as_echo "$AS_FOR_TARGET" >&6; }
11408 else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11415 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11418 if test -n "$AS_FOR_TARGET"; then
11419 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11420 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11421 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11424 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11425 for ncn_progname in as; do
11426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11427 set dummy ${ncn_progname}; ac_word=$2
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11429 $as_echo_n "checking for $ac_word... " >&6; }
11430 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11431 $as_echo_n "(cached) " >&6
11432 else
11433 if test -n "$AS_FOR_TARGET"; then
11434 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11435 else
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in $PATH
11439 IFS=$as_save_IFS
11440 test -z "$as_dir" && as_dir=.
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11443 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11445 break 2
11447 done
11448 done
11449 IFS=$as_save_IFS
11453 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11454 if test -n "$AS_FOR_TARGET"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11456 $as_echo "$AS_FOR_TARGET" >&6; }
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11463 done
11466 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11467 for ncn_progname in as; do
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11469 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11470 if test -x $with_build_time_tools/${ncn_progname}; then
11471 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11473 $as_echo "yes" >&6; }
11474 break
11475 else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11479 done
11482 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11483 for ncn_progname in as; do
11484 if test -n "$ncn_target_tool_prefix"; then
11485 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11486 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488 $as_echo_n "checking for $ac_word... " >&6; }
11489 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 if test -n "$AS_FOR_TARGET"; then
11493 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11494 else
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11502 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 break 2
11506 done
11507 done
11508 IFS=$as_save_IFS
11512 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11513 if test -n "$AS_FOR_TARGET"; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11515 $as_echo "$AS_FOR_TARGET" >&6; }
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11523 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11525 set dummy ${ncn_progname}; ac_word=$2
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527 $as_echo_n "checking for $ac_word... " >&6; }
11528 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 if test -n "$AS_FOR_TARGET"; then
11532 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11533 else
11534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535 for as_dir in $PATH
11537 IFS=$as_save_IFS
11538 test -z "$as_dir" && as_dir=.
11539 for ac_exec_ext in '' $ac_executable_extensions; do
11540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11541 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11543 break 2
11545 done
11546 done
11547 IFS=$as_save_IFS
11551 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11552 if test -n "$AS_FOR_TARGET"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11554 $as_echo "$AS_FOR_TARGET" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11562 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11563 done
11566 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11567 set dummy as
11568 if test $build = $target ; then
11569 AS_FOR_TARGET="$2"
11570 else
11571 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11573 else
11574 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11577 else
11578 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11584 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11585 if test -n "$with_build_time_tools"; then
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11587 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11588 if test -x $with_build_time_tools/dlltool; then
11589 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11590 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11592 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11597 elif test $build != $host && test $have_gcc_for_target = yes; then
11598 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11599 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11600 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11603 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11604 # Extract the first word of "dlltool", so it can be a program name with args.
11605 set dummy dlltool; ac_word=$2
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 $as_echo_n "checking for $ac_word... " >&6; }
11608 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11609 $as_echo_n "(cached) " >&6
11610 else
11611 case $DLLTOOL_FOR_TARGET in
11612 [\\/]* | ?:[\\/]*)
11613 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617 for as_dir in $gcc_cv_tool_dirs
11619 IFS=$as_save_IFS
11620 test -z "$as_dir" && as_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11623 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11625 break 2
11627 done
11628 done
11629 IFS=$as_save_IFS
11632 esac
11634 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11635 if test -n "$DLLTOOL_FOR_TARGET"; then
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11637 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11638 else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11645 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11648 if test -n "$DLLTOOL_FOR_TARGET"; then
11649 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11650 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11651 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11654 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11655 for ncn_progname in dlltool; do
11656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11657 set dummy ${ncn_progname}; ac_word=$2
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11659 $as_echo_n "checking for $ac_word... " >&6; }
11660 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11661 $as_echo_n "(cached) " >&6
11662 else
11663 if test -n "$DLLTOOL_FOR_TARGET"; then
11664 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11665 else
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11673 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11675 break 2
11677 done
11678 done
11679 IFS=$as_save_IFS
11683 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11684 if test -n "$DLLTOOL_FOR_TARGET"; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11686 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11687 else
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 $as_echo "no" >&6; }
11693 done
11696 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11697 for ncn_progname in dlltool; do
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11699 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11700 if test -x $with_build_time_tools/${ncn_progname}; then
11701 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11703 $as_echo "yes" >&6; }
11704 break
11705 else
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11709 done
11712 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11713 for ncn_progname in dlltool; do
11714 if test -n "$ncn_target_tool_prefix"; then
11715 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11716 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 $as_echo_n "checking for $ac_word... " >&6; }
11719 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 if test -n "$DLLTOOL_FOR_TARGET"; then
11723 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11724 else
11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in $PATH
11728 IFS=$as_save_IFS
11729 test -z "$as_dir" && as_dir=.
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11732 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734 break 2
11736 done
11737 done
11738 IFS=$as_save_IFS
11742 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11743 if test -n "$DLLTOOL_FOR_TARGET"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11745 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11746 else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11753 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11755 set dummy ${ncn_progname}; ac_word=$2
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11757 $as_echo_n "checking for $ac_word... " >&6; }
11758 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11759 $as_echo_n "(cached) " >&6
11760 else
11761 if test -n "$DLLTOOL_FOR_TARGET"; then
11762 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11763 else
11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765 for as_dir in $PATH
11767 IFS=$as_save_IFS
11768 test -z "$as_dir" && as_dir=.
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11771 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 break 2
11775 done
11776 done
11777 IFS=$as_save_IFS
11781 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11782 if test -n "$DLLTOOL_FOR_TARGET"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11784 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11785 else
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787 $as_echo "no" >&6; }
11792 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11793 done
11796 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11797 set dummy dlltool
11798 if test $build = $target ; then
11799 DLLTOOL_FOR_TARGET="$2"
11800 else
11801 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11803 else
11804 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11807 else
11808 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11814 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11815 if test -n "$with_build_time_tools"; then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11817 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11818 if test -x $with_build_time_tools/ld; then
11819 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11820 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11822 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11823 else
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11827 elif test $build != $host && test $have_gcc_for_target = yes; then
11828 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11829 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11830 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11833 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11834 # Extract the first word of "ld", so it can be a program name with args.
11835 set dummy ld; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 case $LD_FOR_TARGET in
11842 [\\/]* | ?:[\\/]*)
11843 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $gcc_cv_tool_dirs
11849 IFS=$as_save_IFS
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11853 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 break 2
11857 done
11858 done
11859 IFS=$as_save_IFS
11862 esac
11864 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11865 if test -n "$LD_FOR_TARGET"; then
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11867 $as_echo "$LD_FOR_TARGET" >&6; }
11868 else
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11875 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11878 if test -n "$LD_FOR_TARGET"; then
11879 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11880 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11881 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11884 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11885 for ncn_progname in ld; do
11886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11887 set dummy ${ncn_progname}; ac_word=$2
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889 $as_echo_n "checking for $ac_word... " >&6; }
11890 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11891 $as_echo_n "(cached) " >&6
11892 else
11893 if test -n "$LD_FOR_TARGET"; then
11894 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11895 else
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897 for as_dir in $PATH
11899 IFS=$as_save_IFS
11900 test -z "$as_dir" && as_dir=.
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11903 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11905 break 2
11907 done
11908 done
11909 IFS=$as_save_IFS
11913 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11914 if test -n "$LD_FOR_TARGET"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11916 $as_echo "$LD_FOR_TARGET" >&6; }
11917 else
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 $as_echo "no" >&6; }
11923 done
11926 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11927 for ncn_progname in ld; do
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11929 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11930 if test -x $with_build_time_tools/${ncn_progname}; then
11931 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11933 $as_echo "yes" >&6; }
11934 break
11935 else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937 $as_echo "no" >&6; }
11939 done
11942 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11943 for ncn_progname in ld; do
11944 if test -n "$ncn_target_tool_prefix"; then
11945 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11946 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948 $as_echo_n "checking for $ac_word... " >&6; }
11949 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 if test -n "$LD_FOR_TARGET"; then
11953 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11954 else
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11962 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 break 2
11966 done
11967 done
11968 IFS=$as_save_IFS
11972 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11973 if test -n "$LD_FOR_TARGET"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11975 $as_echo "$LD_FOR_TARGET" >&6; }
11976 else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11983 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11985 set dummy ${ncn_progname}; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 if test -n "$LD_FOR_TARGET"; then
11992 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11993 else
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12001 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 break 2
12005 done
12006 done
12007 IFS=$as_save_IFS
12011 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12012 if test -n "$LD_FOR_TARGET"; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12014 $as_echo "$LD_FOR_TARGET" >&6; }
12015 else
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12022 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12023 done
12026 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12027 set dummy ld
12028 if test $build = $target ; then
12029 LD_FOR_TARGET="$2"
12030 else
12031 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12033 else
12034 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12037 else
12038 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12044 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12045 if test -n "$with_build_time_tools"; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12047 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12048 if test -x $with_build_time_tools/lipo; then
12049 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12050 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12052 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12053 else
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12057 elif test $build != $host && test $have_gcc_for_target = yes; then
12058 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12059 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12060 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12063 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12064 # Extract the first word of "lipo", so it can be a program name with args.
12065 set dummy lipo; ac_word=$2
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12067 $as_echo_n "checking for $ac_word... " >&6; }
12068 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 case $LIPO_FOR_TARGET in
12072 [\\/]* | ?:[\\/]*)
12073 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12077 for as_dir in $gcc_cv_tool_dirs
12079 IFS=$as_save_IFS
12080 test -z "$as_dir" && as_dir=.
12081 for ac_exec_ext in '' $ac_executable_extensions; do
12082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12083 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12085 break 2
12087 done
12088 done
12089 IFS=$as_save_IFS
12092 esac
12094 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12095 if test -n "$LIPO_FOR_TARGET"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12097 $as_echo "$LIPO_FOR_TARGET" >&6; }
12098 else
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12105 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12108 if test -n "$LIPO_FOR_TARGET"; then
12109 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12110 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12111 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12114 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12115 for ncn_progname in lipo; do
12116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12117 set dummy ${ncn_progname}; ac_word=$2
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119 $as_echo_n "checking for $ac_word... " >&6; }
12120 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 if test -n "$LIPO_FOR_TARGET"; then
12124 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12125 else
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $PATH
12129 IFS=$as_save_IFS
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12133 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12135 break 2
12137 done
12138 done
12139 IFS=$as_save_IFS
12143 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12144 if test -n "$LIPO_FOR_TARGET"; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12146 $as_echo "$LIPO_FOR_TARGET" >&6; }
12147 else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149 $as_echo "no" >&6; }
12153 done
12156 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12157 for ncn_progname in lipo; do
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12159 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12160 if test -x $with_build_time_tools/${ncn_progname}; then
12161 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12163 $as_echo "yes" >&6; }
12164 break
12165 else
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12169 done
12172 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12173 for ncn_progname in lipo; do
12174 if test -n "$ncn_target_tool_prefix"; then
12175 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12176 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 if test -n "$LIPO_FOR_TARGET"; then
12183 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12184 else
12185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186 for as_dir in $PATH
12188 IFS=$as_save_IFS
12189 test -z "$as_dir" && as_dir=.
12190 for ac_exec_ext in '' $ac_executable_extensions; do
12191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12192 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12194 break 2
12196 done
12197 done
12198 IFS=$as_save_IFS
12202 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12203 if test -n "$LIPO_FOR_TARGET"; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12205 $as_echo "$LIPO_FOR_TARGET" >&6; }
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 $as_echo "no" >&6; }
12213 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12215 set dummy ${ncn_progname}; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217 $as_echo_n "checking for $ac_word... " >&6; }
12218 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 if test -n "$LIPO_FOR_TARGET"; then
12222 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12223 else
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12227 IFS=$as_save_IFS
12228 test -z "$as_dir" && as_dir=.
12229 for ac_exec_ext in '' $ac_executable_extensions; do
12230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12231 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233 break 2
12235 done
12236 done
12237 IFS=$as_save_IFS
12241 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12242 if test -n "$LIPO_FOR_TARGET"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12244 $as_echo "$LIPO_FOR_TARGET" >&6; }
12245 else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12252 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12253 done
12256 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12257 set dummy lipo
12258 if test $build = $target ; then
12259 LIPO_FOR_TARGET="$2"
12260 else
12261 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12263 else
12264 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12267 else
12268 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12274 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12275 if test -n "$with_build_time_tools"; then
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12277 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12278 if test -x $with_build_time_tools/nm; then
12279 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12280 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12282 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12287 elif test $build != $host && test $have_gcc_for_target = yes; then
12288 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12289 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12290 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12293 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12294 # Extract the first word of "nm", so it can be a program name with args.
12295 set dummy nm; ac_word=$2
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297 $as_echo_n "checking for $ac_word... " >&6; }
12298 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301 case $NM_FOR_TARGET in
12302 [\\/]* | ?:[\\/]*)
12303 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307 for as_dir in $gcc_cv_tool_dirs
12309 IFS=$as_save_IFS
12310 test -z "$as_dir" && as_dir=.
12311 for ac_exec_ext in '' $ac_executable_extensions; do
12312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12313 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12315 break 2
12317 done
12318 done
12319 IFS=$as_save_IFS
12322 esac
12324 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12325 if test -n "$NM_FOR_TARGET"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12327 $as_echo "$NM_FOR_TARGET" >&6; }
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12335 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12338 if test -n "$NM_FOR_TARGET"; then
12339 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12340 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12341 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12344 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12345 for ncn_progname in nm; do
12346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12347 set dummy ${ncn_progname}; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 if test -n "$NM_FOR_TARGET"; then
12354 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12355 else
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12359 IFS=$as_save_IFS
12360 test -z "$as_dir" && as_dir=.
12361 for ac_exec_ext in '' $ac_executable_extensions; do
12362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365 break 2
12367 done
12368 done
12369 IFS=$as_save_IFS
12373 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12374 if test -n "$NM_FOR_TARGET"; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12376 $as_echo "$NM_FOR_TARGET" >&6; }
12377 else
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12383 done
12386 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12387 for ncn_progname in nm; do
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12389 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12390 if test -x $with_build_time_tools/${ncn_progname}; then
12391 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12393 $as_echo "yes" >&6; }
12394 break
12395 else
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12399 done
12402 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12403 for ncn_progname in nm; do
12404 if test -n "$ncn_target_tool_prefix"; then
12405 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12406 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408 $as_echo_n "checking for $ac_word... " >&6; }
12409 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
12411 else
12412 if test -n "$NM_FOR_TARGET"; then
12413 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12414 else
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416 for as_dir in $PATH
12418 IFS=$as_save_IFS
12419 test -z "$as_dir" && as_dir=.
12420 for ac_exec_ext in '' $ac_executable_extensions; do
12421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12422 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12424 break 2
12426 done
12427 done
12428 IFS=$as_save_IFS
12432 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12433 if test -n "$NM_FOR_TARGET"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12435 $as_echo "$NM_FOR_TARGET" >&6; }
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12443 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12445 set dummy ${ncn_progname}; ac_word=$2
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447 $as_echo_n "checking for $ac_word... " >&6; }
12448 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 if test -n "$NM_FOR_TARGET"; then
12452 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12453 else
12454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455 for as_dir in $PATH
12457 IFS=$as_save_IFS
12458 test -z "$as_dir" && as_dir=.
12459 for ac_exec_ext in '' $ac_executable_extensions; do
12460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12461 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463 break 2
12465 done
12466 done
12467 IFS=$as_save_IFS
12471 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12472 if test -n "$NM_FOR_TARGET"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12474 $as_echo "$NM_FOR_TARGET" >&6; }
12475 else
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12482 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12483 done
12486 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12487 set dummy nm
12488 if test $build = $target ; then
12489 NM_FOR_TARGET="$2"
12490 else
12491 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12493 else
12494 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12497 else
12498 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12504 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12505 if test -n "$with_build_time_tools"; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12507 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12508 if test -x $with_build_time_tools/objdump; then
12509 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12510 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12512 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12513 else
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12517 elif test $build != $host && test $have_gcc_for_target = yes; then
12518 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12519 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12520 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12523 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12524 # Extract the first word of "objdump", so it can be a program name with args.
12525 set dummy objdump; ac_word=$2
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12527 $as_echo_n "checking for $ac_word... " >&6; }
12528 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12529 $as_echo_n "(cached) " >&6
12530 else
12531 case $OBJDUMP_FOR_TARGET in
12532 [\\/]* | ?:[\\/]*)
12533 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $gcc_cv_tool_dirs
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 for ac_exec_ext in '' $ac_executable_extensions; do
12542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12543 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12545 break 2
12547 done
12548 done
12549 IFS=$as_save_IFS
12552 esac
12554 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12555 if test -n "$OBJDUMP_FOR_TARGET"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12557 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12558 else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12565 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12568 if test -n "$OBJDUMP_FOR_TARGET"; then
12569 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12570 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12571 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12574 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12575 for ncn_progname in objdump; do
12576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12577 set dummy ${ncn_progname}; ac_word=$2
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12579 $as_echo_n "checking for $ac_word... " >&6; }
12580 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 if test -n "$OBJDUMP_FOR_TARGET"; then
12584 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12585 else
12586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587 for as_dir in $PATH
12589 IFS=$as_save_IFS
12590 test -z "$as_dir" && as_dir=.
12591 for ac_exec_ext in '' $ac_executable_extensions; do
12592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12593 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12595 break 2
12597 done
12598 done
12599 IFS=$as_save_IFS
12603 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12604 if test -n "$OBJDUMP_FOR_TARGET"; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12606 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12607 else
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609 $as_echo "no" >&6; }
12613 done
12616 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12617 for ncn_progname in objdump; do
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12619 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12620 if test -x $with_build_time_tools/${ncn_progname}; then
12621 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12623 $as_echo "yes" >&6; }
12624 break
12625 else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627 $as_echo "no" >&6; }
12629 done
12632 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12633 for ncn_progname in objdump; do
12634 if test -n "$ncn_target_tool_prefix"; then
12635 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12636 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638 $as_echo_n "checking for $ac_word... " >&6; }
12639 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
12641 else
12642 if test -n "$OBJDUMP_FOR_TARGET"; then
12643 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12644 else
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2
12656 done
12657 done
12658 IFS=$as_save_IFS
12662 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12663 if test -n "$OBJDUMP_FOR_TARGET"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12665 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12666 else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12673 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12675 set dummy ${ncn_progname}; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 if test -n "$OBJDUMP_FOR_TARGET"; then
12682 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12683 else
12684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12685 for as_dir in $PATH
12687 IFS=$as_save_IFS
12688 test -z "$as_dir" && as_dir=.
12689 for ac_exec_ext in '' $ac_executable_extensions; do
12690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12691 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12693 break 2
12695 done
12696 done
12697 IFS=$as_save_IFS
12701 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12702 if test -n "$OBJDUMP_FOR_TARGET"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12704 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12705 else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12712 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12713 done
12716 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12717 set dummy objdump
12718 if test $build = $target ; then
12719 OBJDUMP_FOR_TARGET="$2"
12720 else
12721 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12723 else
12724 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12727 else
12728 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12734 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12735 if test -n "$with_build_time_tools"; then
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12737 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12738 if test -x $with_build_time_tools/ranlib; then
12739 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12740 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12742 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12743 else
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12747 elif test $build != $host && test $have_gcc_for_target = yes; then
12748 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12749 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12750 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12753 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12754 # Extract the first word of "ranlib", so it can be a program name with args.
12755 set dummy ranlib; ac_word=$2
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12757 $as_echo_n "checking for $ac_word... " >&6; }
12758 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 case $RANLIB_FOR_TARGET in
12762 [\\/]* | ?:[\\/]*)
12763 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767 for as_dir in $gcc_cv_tool_dirs
12769 IFS=$as_save_IFS
12770 test -z "$as_dir" && as_dir=.
12771 for ac_exec_ext in '' $ac_executable_extensions; do
12772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12773 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12775 break 2
12777 done
12778 done
12779 IFS=$as_save_IFS
12782 esac
12784 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12785 if test -n "$RANLIB_FOR_TARGET"; then
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12787 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12788 else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12795 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12798 if test -n "$RANLIB_FOR_TARGET"; then
12799 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12800 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12801 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12804 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12805 for ncn_progname in ranlib; do
12806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12807 set dummy ${ncn_progname}; ac_word=$2
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809 $as_echo_n "checking for $ac_word... " >&6; }
12810 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12811 $as_echo_n "(cached) " >&6
12812 else
12813 if test -n "$RANLIB_FOR_TARGET"; then
12814 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12815 else
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in $PATH
12819 IFS=$as_save_IFS
12820 test -z "$as_dir" && as_dir=.
12821 for ac_exec_ext in '' $ac_executable_extensions; do
12822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12823 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825 break 2
12827 done
12828 done
12829 IFS=$as_save_IFS
12833 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12834 if test -n "$RANLIB_FOR_TARGET"; then
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12836 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12837 else
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 $as_echo "no" >&6; }
12843 done
12846 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12847 for ncn_progname in ranlib; do
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12849 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12850 if test -x $with_build_time_tools/${ncn_progname}; then
12851 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12853 $as_echo "yes" >&6; }
12854 break
12855 else
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857 $as_echo "no" >&6; }
12859 done
12862 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12863 for ncn_progname in ranlib; do
12864 if test -n "$ncn_target_tool_prefix"; then
12865 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12866 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868 $as_echo_n "checking for $ac_word... " >&6; }
12869 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12870 $as_echo_n "(cached) " >&6
12871 else
12872 if test -n "$RANLIB_FOR_TARGET"; then
12873 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12874 else
12875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876 for as_dir in $PATH
12878 IFS=$as_save_IFS
12879 test -z "$as_dir" && as_dir=.
12880 for ac_exec_ext in '' $ac_executable_extensions; do
12881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12882 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12884 break 2
12886 done
12887 done
12888 IFS=$as_save_IFS
12892 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12893 if test -n "$RANLIB_FOR_TARGET"; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12895 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12896 else
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898 $as_echo "no" >&6; }
12903 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12905 set dummy ${ncn_progname}; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 if test -n "$RANLIB_FOR_TARGET"; then
12912 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12913 else
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12917 IFS=$as_save_IFS
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12921 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923 break 2
12925 done
12926 done
12927 IFS=$as_save_IFS
12931 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12932 if test -n "$RANLIB_FOR_TARGET"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12934 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12935 else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12942 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12943 done
12946 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12947 set dummy ranlib
12948 if test $build = $target ; then
12949 RANLIB_FOR_TARGET="$2"
12950 else
12951 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12953 else
12954 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12957 else
12958 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12964 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12965 if test -n "$with_build_time_tools"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12967 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12968 if test -x $with_build_time_tools/readelf; then
12969 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12970 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12972 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12973 else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12977 elif test $build != $host && test $have_gcc_for_target = yes; then
12978 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12979 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12980 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12983 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12984 # Extract the first word of "readelf", so it can be a program name with args.
12985 set dummy readelf; ac_word=$2
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987 $as_echo_n "checking for $ac_word... " >&6; }
12988 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12989 $as_echo_n "(cached) " >&6
12990 else
12991 case $READELF_FOR_TARGET in
12992 [\\/]* | ?:[\\/]*)
12993 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12997 for as_dir in $gcc_cv_tool_dirs
12999 IFS=$as_save_IFS
13000 test -z "$as_dir" && as_dir=.
13001 for ac_exec_ext in '' $ac_executable_extensions; do
13002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13003 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13005 break 2
13007 done
13008 done
13009 IFS=$as_save_IFS
13012 esac
13014 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13015 if test -n "$READELF_FOR_TARGET"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13017 $as_echo "$READELF_FOR_TARGET" >&6; }
13018 else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13025 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13028 if test -n "$READELF_FOR_TARGET"; then
13029 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13030 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13031 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13034 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13035 for ncn_progname in readelf; do
13036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13037 set dummy ${ncn_progname}; ac_word=$2
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039 $as_echo_n "checking for $ac_word... " >&6; }
13040 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 if test -n "$READELF_FOR_TARGET"; then
13044 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13045 else
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $PATH
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13053 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 break 2
13057 done
13058 done
13059 IFS=$as_save_IFS
13063 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13064 if test -n "$READELF_FOR_TARGET"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13066 $as_echo "$READELF_FOR_TARGET" >&6; }
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13073 done
13076 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13077 for ncn_progname in readelf; do
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13079 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13080 if test -x $with_build_time_tools/${ncn_progname}; then
13081 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13083 $as_echo "yes" >&6; }
13084 break
13085 else
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 $as_echo "no" >&6; }
13089 done
13092 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13093 for ncn_progname in readelf; do
13094 if test -n "$ncn_target_tool_prefix"; then
13095 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13096 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13098 $as_echo_n "checking for $ac_word... " >&6; }
13099 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102 if test -n "$READELF_FOR_TARGET"; then
13103 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13104 else
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13108 IFS=$as_save_IFS
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13112 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13114 break 2
13116 done
13117 done
13118 IFS=$as_save_IFS
13122 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13123 if test -n "$READELF_FOR_TARGET"; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13125 $as_echo "$READELF_FOR_TARGET" >&6; }
13126 else
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13133 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13135 set dummy ${ncn_progname}; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 if test -n "$READELF_FOR_TARGET"; then
13142 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13143 else
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13147 IFS=$as_save_IFS
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 break 2
13155 done
13156 done
13157 IFS=$as_save_IFS
13161 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13162 if test -n "$READELF_FOR_TARGET"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13164 $as_echo "$READELF_FOR_TARGET" >&6; }
13165 else
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13172 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13173 done
13176 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13177 set dummy readelf
13178 if test $build = $target ; then
13179 READELF_FOR_TARGET="$2"
13180 else
13181 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13183 else
13184 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13187 else
13188 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13194 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13195 if test -n "$with_build_time_tools"; then
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13197 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13198 if test -x $with_build_time_tools/strip; then
13199 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13200 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13202 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13203 else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205 $as_echo "no" >&6; }
13207 elif test $build != $host && test $have_gcc_for_target = yes; then
13208 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13209 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13210 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13213 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13214 # Extract the first word of "strip", so it can be a program name with args.
13215 set dummy strip; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13217 $as_echo_n "checking for $ac_word... " >&6; }
13218 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13219 $as_echo_n "(cached) " >&6
13220 else
13221 case $STRIP_FOR_TARGET in
13222 [\\/]* | ?:[\\/]*)
13223 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $gcc_cv_tool_dirs
13229 IFS=$as_save_IFS
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
13232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13233 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235 break 2
13237 done
13238 done
13239 IFS=$as_save_IFS
13242 esac
13244 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13245 if test -n "$STRIP_FOR_TARGET"; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13247 $as_echo "$STRIP_FOR_TARGET" >&6; }
13248 else
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13255 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13258 if test -n "$STRIP_FOR_TARGET"; then
13259 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13260 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13261 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13264 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13265 for ncn_progname in strip; do
13266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13267 set dummy ${ncn_progname}; ac_word=$2
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13269 $as_echo_n "checking for $ac_word... " >&6; }
13270 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 if test -n "$STRIP_FOR_TARGET"; then
13274 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13275 else
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13279 IFS=$as_save_IFS
13280 test -z "$as_dir" && as_dir=.
13281 for ac_exec_ext in '' $ac_executable_extensions; do
13282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13283 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13285 break 2
13287 done
13288 done
13289 IFS=$as_save_IFS
13293 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13294 if test -n "$STRIP_FOR_TARGET"; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13296 $as_echo "$STRIP_FOR_TARGET" >&6; }
13297 else
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13303 done
13306 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13307 for ncn_progname in strip; do
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13309 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13310 if test -x $with_build_time_tools/${ncn_progname}; then
13311 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13313 $as_echo "yes" >&6; }
13314 break
13315 else
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 $as_echo "no" >&6; }
13319 done
13322 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13323 for ncn_progname in strip; do
13324 if test -n "$ncn_target_tool_prefix"; then
13325 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13326 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328 $as_echo_n "checking for $ac_word... " >&6; }
13329 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13330 $as_echo_n "(cached) " >&6
13331 else
13332 if test -n "$STRIP_FOR_TARGET"; then
13333 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13334 else
13335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336 for as_dir in $PATH
13338 IFS=$as_save_IFS
13339 test -z "$as_dir" && as_dir=.
13340 for ac_exec_ext in '' $ac_executable_extensions; do
13341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13342 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13344 break 2
13346 done
13347 done
13348 IFS=$as_save_IFS
13352 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13353 if test -n "$STRIP_FOR_TARGET"; then
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13355 $as_echo "$STRIP_FOR_TARGET" >&6; }
13356 else
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358 $as_echo "no" >&6; }
13363 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13365 set dummy ${ncn_progname}; ac_word=$2
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13367 $as_echo_n "checking for $ac_word... " >&6; }
13368 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13369 $as_echo_n "(cached) " >&6
13370 else
13371 if test -n "$STRIP_FOR_TARGET"; then
13372 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13373 else
13374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13375 for as_dir in $PATH
13377 IFS=$as_save_IFS
13378 test -z "$as_dir" && as_dir=.
13379 for ac_exec_ext in '' $ac_executable_extensions; do
13380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13381 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13383 break 2
13385 done
13386 done
13387 IFS=$as_save_IFS
13391 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13392 if test -n "$STRIP_FOR_TARGET"; then
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13394 $as_echo "$STRIP_FOR_TARGET" >&6; }
13395 else
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13397 $as_echo "no" >&6; }
13402 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13403 done
13406 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13407 set dummy strip
13408 if test $build = $target ; then
13409 STRIP_FOR_TARGET="$2"
13410 else
13411 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13413 else
13414 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13417 else
13418 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13424 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13425 if test -n "$with_build_time_tools"; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13427 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13428 if test -x $with_build_time_tools/windres; then
13429 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13430 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13432 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13433 else
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435 $as_echo "no" >&6; }
13437 elif test $build != $host && test $have_gcc_for_target = yes; then
13438 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13439 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13440 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13443 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13444 # Extract the first word of "windres", so it can be a program name with args.
13445 set dummy windres; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 $as_echo_n "checking for $ac_word... " >&6; }
13448 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 case $WINDRES_FOR_TARGET in
13452 [\\/]* | ?:[\\/]*)
13453 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $gcc_cv_tool_dirs
13459 IFS=$as_save_IFS
13460 test -z "$as_dir" && as_dir=.
13461 for ac_exec_ext in '' $ac_executable_extensions; do
13462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13463 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465 break 2
13467 done
13468 done
13469 IFS=$as_save_IFS
13472 esac
13474 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13475 if test -n "$WINDRES_FOR_TARGET"; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13477 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13478 else
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13485 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13488 if test -n "$WINDRES_FOR_TARGET"; then
13489 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13490 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13491 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13494 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13495 for ncn_progname in windres; do
13496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13497 set dummy ${ncn_progname}; ac_word=$2
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13499 $as_echo_n "checking for $ac_word... " >&6; }
13500 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 if test -n "$WINDRES_FOR_TARGET"; then
13504 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13505 else
13506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13507 for as_dir in $PATH
13509 IFS=$as_save_IFS
13510 test -z "$as_dir" && as_dir=.
13511 for ac_exec_ext in '' $ac_executable_extensions; do
13512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13513 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13515 break 2
13517 done
13518 done
13519 IFS=$as_save_IFS
13523 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13524 if test -n "$WINDRES_FOR_TARGET"; then
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13526 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13527 else
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13533 done
13536 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13537 for ncn_progname in windres; do
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13539 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13540 if test -x $with_build_time_tools/${ncn_progname}; then
13541 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13543 $as_echo "yes" >&6; }
13544 break
13545 else
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547 $as_echo "no" >&6; }
13549 done
13552 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13553 for ncn_progname in windres; do
13554 if test -n "$ncn_target_tool_prefix"; then
13555 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13556 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558 $as_echo_n "checking for $ac_word... " >&6; }
13559 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 if test -n "$WINDRES_FOR_TARGET"; then
13563 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13564 else
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13568 IFS=$as_save_IFS
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13572 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574 break 2
13576 done
13577 done
13578 IFS=$as_save_IFS
13582 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13583 if test -n "$WINDRES_FOR_TARGET"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13585 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13586 else
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13593 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13595 set dummy ${ncn_progname}; ac_word=$2
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13597 $as_echo_n "checking for $ac_word... " >&6; }
13598 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13599 $as_echo_n "(cached) " >&6
13600 else
13601 if test -n "$WINDRES_FOR_TARGET"; then
13602 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13603 else
13604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13605 for as_dir in $PATH
13607 IFS=$as_save_IFS
13608 test -z "$as_dir" && as_dir=.
13609 for ac_exec_ext in '' $ac_executable_extensions; do
13610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13611 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13613 break 2
13615 done
13616 done
13617 IFS=$as_save_IFS
13621 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13622 if test -n "$WINDRES_FOR_TARGET"; then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13624 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13625 else
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13627 $as_echo "no" >&6; }
13632 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13633 done
13636 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13637 set dummy windres
13638 if test $build = $target ; then
13639 WINDRES_FOR_TARGET="$2"
13640 else
13641 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13643 else
13644 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13647 else
13648 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13654 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13655 if test -n "$with_build_time_tools"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13657 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13658 if test -x $with_build_time_tools/windmc; then
13659 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13660 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13662 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13663 else
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665 $as_echo "no" >&6; }
13667 elif test $build != $host && test $have_gcc_for_target = yes; then
13668 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13669 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13670 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13673 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13674 # Extract the first word of "windmc", so it can be a program name with args.
13675 set dummy windmc; ac_word=$2
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13677 $as_echo_n "checking for $ac_word... " >&6; }
13678 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13679 $as_echo_n "(cached) " >&6
13680 else
13681 case $WINDMC_FOR_TARGET in
13682 [\\/]* | ?:[\\/]*)
13683 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13687 for as_dir in $gcc_cv_tool_dirs
13689 IFS=$as_save_IFS
13690 test -z "$as_dir" && as_dir=.
13691 for ac_exec_ext in '' $ac_executable_extensions; do
13692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13693 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13695 break 2
13697 done
13698 done
13699 IFS=$as_save_IFS
13702 esac
13704 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13705 if test -n "$WINDMC_FOR_TARGET"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13707 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13708 else
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710 $as_echo "no" >&6; }
13715 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13718 if test -n "$WINDMC_FOR_TARGET"; then
13719 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13720 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13721 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13724 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13725 for ncn_progname in windmc; do
13726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13727 set dummy ${ncn_progname}; ac_word=$2
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13729 $as_echo_n "checking for $ac_word... " >&6; }
13730 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 if test -n "$WINDMC_FOR_TARGET"; then
13734 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13735 else
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in $PATH
13739 IFS=$as_save_IFS
13740 test -z "$as_dir" && as_dir=.
13741 for ac_exec_ext in '' $ac_executable_extensions; do
13742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13743 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13745 break 2
13747 done
13748 done
13749 IFS=$as_save_IFS
13753 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13754 if test -n "$WINDMC_FOR_TARGET"; then
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13756 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13757 else
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759 $as_echo "no" >&6; }
13763 done
13766 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13767 for ncn_progname in windmc; do
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13769 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13770 if test -x $with_build_time_tools/${ncn_progname}; then
13771 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13773 $as_echo "yes" >&6; }
13774 break
13775 else
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13779 done
13782 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13783 for ncn_progname in windmc; do
13784 if test -n "$ncn_target_tool_prefix"; then
13785 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13786 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788 $as_echo_n "checking for $ac_word... " >&6; }
13789 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 if test -n "$WINDMC_FOR_TARGET"; then
13793 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13794 else
13795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796 for as_dir in $PATH
13798 IFS=$as_save_IFS
13799 test -z "$as_dir" && as_dir=.
13800 for ac_exec_ext in '' $ac_executable_extensions; do
13801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13802 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13804 break 2
13806 done
13807 done
13808 IFS=$as_save_IFS
13812 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13813 if test -n "$WINDMC_FOR_TARGET"; then
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13815 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13816 else
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818 $as_echo "no" >&6; }
13823 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13825 set dummy ${ncn_progname}; ac_word=$2
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13827 $as_echo_n "checking for $ac_word... " >&6; }
13828 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13829 $as_echo_n "(cached) " >&6
13830 else
13831 if test -n "$WINDMC_FOR_TARGET"; then
13832 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13833 else
13834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13835 for as_dir in $PATH
13837 IFS=$as_save_IFS
13838 test -z "$as_dir" && as_dir=.
13839 for ac_exec_ext in '' $ac_executable_extensions; do
13840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13841 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13843 break 2
13845 done
13846 done
13847 IFS=$as_save_IFS
13851 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13852 if test -n "$WINDMC_FOR_TARGET"; then
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13854 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13855 else
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13857 $as_echo "no" >&6; }
13862 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13863 done
13866 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13867 set dummy windmc
13868 if test $build = $target ; then
13869 WINDMC_FOR_TARGET="$2"
13870 else
13871 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13873 else
13874 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13877 else
13878 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13882 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13885 $as_echo_n "checking where to find the target ar... " >&6; }
13886 if test "x${build}" != "x${host}" ; then
13887 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13888 # We already found the complete path
13889 ac_dir=`dirname $AR_FOR_TARGET`
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13891 $as_echo "pre-installed in $ac_dir" >&6; }
13892 else
13893 # Canadian cross, just use what we found
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13895 $as_echo "pre-installed" >&6; }
13897 else
13898 ok=yes
13899 case " ${configdirs} " in
13900 *" binutils "*) ;;
13901 *) ok=no ;;
13902 esac
13904 if test $ok = yes; then
13905 # An in-tree tool is available and we can use it
13906 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13908 $as_echo "just compiled" >&6; }
13909 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13910 # We already found the complete path
13911 ac_dir=`dirname $AR_FOR_TARGET`
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13913 $as_echo "pre-installed in $ac_dir" >&6; }
13914 elif test "x$target" = "x$host"; then
13915 # We can use an host tool
13916 AR_FOR_TARGET='$(AR)'
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13918 $as_echo "host tool" >&6; }
13919 else
13920 # We need a cross tool
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13922 $as_echo "pre-installed" >&6; }
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13927 $as_echo_n "checking where to find the target as... " >&6; }
13928 if test "x${build}" != "x${host}" ; then
13929 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13930 # We already found the complete path
13931 ac_dir=`dirname $AS_FOR_TARGET`
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13933 $as_echo "pre-installed in $ac_dir" >&6; }
13934 else
13935 # Canadian cross, just use what we found
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13937 $as_echo "pre-installed" >&6; }
13939 else
13940 ok=yes
13941 case " ${configdirs} " in
13942 *" gas "*) ;;
13943 *) ok=no ;;
13944 esac
13946 if test $ok = yes; then
13947 # An in-tree tool is available and we can use it
13948 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13950 $as_echo "just compiled" >&6; }
13951 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13952 # We already found the complete path
13953 ac_dir=`dirname $AS_FOR_TARGET`
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13955 $as_echo "pre-installed in $ac_dir" >&6; }
13956 elif test "x$target" = "x$host"; then
13957 # We can use an host tool
13958 AS_FOR_TARGET='$(AS)'
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13960 $as_echo "host tool" >&6; }
13961 else
13962 # We need a cross tool
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13964 $as_echo "pre-installed" >&6; }
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13969 $as_echo_n "checking where to find the target cc... " >&6; }
13970 if test "x${build}" != "x${host}" ; then
13971 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13972 # We already found the complete path
13973 ac_dir=`dirname $CC_FOR_TARGET`
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13975 $as_echo "pre-installed in $ac_dir" >&6; }
13976 else
13977 # Canadian cross, just use what we found
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13979 $as_echo "pre-installed" >&6; }
13981 else
13982 ok=yes
13983 case " ${configdirs} " in
13984 *" gcc "*) ;;
13985 *) ok=no ;;
13986 esac
13988 if test $ok = yes; then
13989 # An in-tree tool is available and we can use it
13990 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13992 $as_echo "just compiled" >&6; }
13993 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13994 # We already found the complete path
13995 ac_dir=`dirname $CC_FOR_TARGET`
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13997 $as_echo "pre-installed in $ac_dir" >&6; }
13998 elif test "x$target" = "x$host"; then
13999 # We can use an host tool
14000 CC_FOR_TARGET='$(CC)'
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14002 $as_echo "host tool" >&6; }
14003 else
14004 # We need a cross tool
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006 $as_echo "pre-installed" >&6; }
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14011 $as_echo_n "checking where to find the target c++... " >&6; }
14012 if test "x${build}" != "x${host}" ; then
14013 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14014 # We already found the complete path
14015 ac_dir=`dirname $CXX_FOR_TARGET`
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14017 $as_echo "pre-installed in $ac_dir" >&6; }
14018 else
14019 # Canadian cross, just use what we found
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021 $as_echo "pre-installed" >&6; }
14023 else
14024 ok=yes
14025 case " ${configdirs} " in
14026 *" gcc "*) ;;
14027 *) ok=no ;;
14028 esac
14029 case ,${enable_languages}, in
14030 *,c++,*) ;;
14031 *) ok=no ;;
14032 esac
14033 if test $ok = yes; then
14034 # An in-tree tool is available and we can use it
14035 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'
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14037 $as_echo "just compiled" >&6; }
14038 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14039 # We already found the complete path
14040 ac_dir=`dirname $CXX_FOR_TARGET`
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14042 $as_echo "pre-installed in $ac_dir" >&6; }
14043 elif test "x$target" = "x$host"; then
14044 # We can use an host tool
14045 CXX_FOR_TARGET='$(CXX)'
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14047 $as_echo "host tool" >&6; }
14048 else
14049 # We need a cross tool
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14051 $as_echo "pre-installed" >&6; }
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14056 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14057 if test "x${build}" != "x${host}" ; then
14058 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14059 # We already found the complete path
14060 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14062 $as_echo "pre-installed in $ac_dir" >&6; }
14063 else
14064 # Canadian cross, just use what we found
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066 $as_echo "pre-installed" >&6; }
14068 else
14069 ok=yes
14070 case " ${configdirs} " in
14071 *" gcc "*) ;;
14072 *) ok=no ;;
14073 esac
14074 case ,${enable_languages}, in
14075 *,c++,*) ;;
14076 *) ok=no ;;
14077 esac
14078 if test $ok = yes; then
14079 # An in-tree tool is available and we can use it
14080 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'
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14082 $as_echo "just compiled" >&6; }
14083 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14084 # We already found the complete path
14085 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14087 $as_echo "pre-installed in $ac_dir" >&6; }
14088 elif test "x$target" = "x$host"; then
14089 # We can use an host tool
14090 RAW_CXX_FOR_TARGET='$(CXX)'
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14092 $as_echo "host tool" >&6; }
14093 else
14094 # We need a cross tool
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14096 $as_echo "pre-installed" >&6; }
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14101 $as_echo_n "checking where to find the target dlltool... " >&6; }
14102 if test "x${build}" != "x${host}" ; then
14103 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14104 # We already found the complete path
14105 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14107 $as_echo "pre-installed in $ac_dir" >&6; }
14108 else
14109 # Canadian cross, just use what we found
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14111 $as_echo "pre-installed" >&6; }
14113 else
14114 ok=yes
14115 case " ${configdirs} " in
14116 *" binutils "*) ;;
14117 *) ok=no ;;
14118 esac
14120 if test $ok = yes; then
14121 # An in-tree tool is available and we can use it
14122 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14124 $as_echo "just compiled" >&6; }
14125 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14126 # We already found the complete path
14127 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14129 $as_echo "pre-installed in $ac_dir" >&6; }
14130 elif test "x$target" = "x$host"; then
14131 # We can use an host tool
14132 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14134 $as_echo "host tool" >&6; }
14135 else
14136 # We need a cross tool
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14138 $as_echo "pre-installed" >&6; }
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14143 $as_echo_n "checking where to find the target gcc... " >&6; }
14144 if test "x${build}" != "x${host}" ; then
14145 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14146 # We already found the complete path
14147 ac_dir=`dirname $GCC_FOR_TARGET`
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14149 $as_echo "pre-installed in $ac_dir" >&6; }
14150 else
14151 # Canadian cross, just use what we found
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14153 $as_echo "pre-installed" >&6; }
14155 else
14156 ok=yes
14157 case " ${configdirs} " in
14158 *" gcc "*) ;;
14159 *) ok=no ;;
14160 esac
14162 if test $ok = yes; then
14163 # An in-tree tool is available and we can use it
14164 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14166 $as_echo "just compiled" >&6; }
14167 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14168 # We already found the complete path
14169 ac_dir=`dirname $GCC_FOR_TARGET`
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14171 $as_echo "pre-installed in $ac_dir" >&6; }
14172 elif test "x$target" = "x$host"; then
14173 # We can use an host tool
14174 GCC_FOR_TARGET='$()'
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14176 $as_echo "host tool" >&6; }
14177 else
14178 # We need a cross tool
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14180 $as_echo "pre-installed" >&6; }
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14185 $as_echo_n "checking where to find the target gcj... " >&6; }
14186 if test "x${build}" != "x${host}" ; then
14187 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14188 # We already found the complete path
14189 ac_dir=`dirname $GCJ_FOR_TARGET`
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14191 $as_echo "pre-installed in $ac_dir" >&6; }
14192 else
14193 # Canadian cross, just use what we found
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14195 $as_echo "pre-installed" >&6; }
14197 else
14198 ok=yes
14199 case " ${configdirs} " in
14200 *" gcc "*) ;;
14201 *) ok=no ;;
14202 esac
14203 case ,${enable_languages}, in
14204 *,java,*) ;;
14205 *) ok=no ;;
14206 esac
14207 if test $ok = yes; then
14208 # An in-tree tool is available and we can use it
14209 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14211 $as_echo "just compiled" >&6; }
14212 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
14214 ac_dir=`dirname $GCJ_FOR_TARGET`
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216 $as_echo "pre-installed in $ac_dir" >&6; }
14217 elif test "x$target" = "x$host"; then
14218 # We can use an host tool
14219 GCJ_FOR_TARGET='$(GCJ)'
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14221 $as_echo "host tool" >&6; }
14222 else
14223 # We need a cross tool
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14225 $as_echo "pre-installed" >&6; }
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14230 $as_echo_n "checking where to find the target gfortran... " >&6; }
14231 if test "x${build}" != "x${host}" ; then
14232 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14233 # We already found the complete path
14234 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14236 $as_echo "pre-installed in $ac_dir" >&6; }
14237 else
14238 # Canadian cross, just use what we found
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14240 $as_echo "pre-installed" >&6; }
14242 else
14243 ok=yes
14244 case " ${configdirs} " in
14245 *" gcc "*) ;;
14246 *) ok=no ;;
14247 esac
14248 case ,${enable_languages}, in
14249 *,fortran,*) ;;
14250 *) ok=no ;;
14251 esac
14252 if test $ok = yes; then
14253 # An in-tree tool is available and we can use it
14254 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14256 $as_echo "just compiled" >&6; }
14257 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14258 # We already found the complete path
14259 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14261 $as_echo "pre-installed in $ac_dir" >&6; }
14262 elif test "x$target" = "x$host"; then
14263 # We can use an host tool
14264 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14266 $as_echo "host tool" >&6; }
14267 else
14268 # We need a cross tool
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14270 $as_echo "pre-installed" >&6; }
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14275 $as_echo_n "checking where to find the target gccgo... " >&6; }
14276 if test "x${build}" != "x${host}" ; then
14277 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14278 # We already found the complete path
14279 ac_dir=`dirname $GOC_FOR_TARGET`
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14281 $as_echo "pre-installed in $ac_dir" >&6; }
14282 else
14283 # Canadian cross, just use what we found
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14285 $as_echo "pre-installed" >&6; }
14287 else
14288 ok=yes
14289 case " ${configdirs} " in
14290 *" gcc "*) ;;
14291 *) ok=no ;;
14292 esac
14293 case ,${enable_languages}, in
14294 *,go,*) ;;
14295 *) ok=no ;;
14296 esac
14297 if test $ok = yes; then
14298 # An in-tree tool is available and we can use it
14299 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14301 $as_echo "just compiled" >&6; }
14302 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14303 # We already found the complete path
14304 ac_dir=`dirname $GOC_FOR_TARGET`
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14306 $as_echo "pre-installed in $ac_dir" >&6; }
14307 elif test "x$target" = "x$host"; then
14308 # We can use an host tool
14309 GOC_FOR_TARGET='$(GOC)'
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14311 $as_echo "host tool" >&6; }
14312 else
14313 # We need a cross tool
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14315 $as_echo "pre-installed" >&6; }
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14320 $as_echo_n "checking where to find the target ld... " >&6; }
14321 if test "x${build}" != "x${host}" ; then
14322 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14323 # We already found the complete path
14324 ac_dir=`dirname $LD_FOR_TARGET`
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14326 $as_echo "pre-installed in $ac_dir" >&6; }
14327 else
14328 # Canadian cross, just use what we found
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14330 $as_echo "pre-installed" >&6; }
14332 else
14333 ok=yes
14334 case " ${configdirs} " in
14335 *" ld "*) ;;
14336 *) ok=no ;;
14337 esac
14339 if test $ok = yes; then
14340 # An in-tree tool is available and we can use it
14341 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14343 $as_echo "just compiled" >&6; }
14344 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14345 # We already found the complete path
14346 ac_dir=`dirname $LD_FOR_TARGET`
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14348 $as_echo "pre-installed in $ac_dir" >&6; }
14349 elif test "x$target" = "x$host"; then
14350 # We can use an host tool
14351 LD_FOR_TARGET='$(LD)'
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14353 $as_echo "host tool" >&6; }
14354 else
14355 # We need a cross tool
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14357 $as_echo "pre-installed" >&6; }
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14362 $as_echo_n "checking where to find the target lipo... " >&6; }
14363 if test "x${build}" != "x${host}" ; then
14364 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14365 # We already found the complete path
14366 ac_dir=`dirname $LIPO_FOR_TARGET`
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14368 $as_echo "pre-installed in $ac_dir" >&6; }
14369 else
14370 # Canadian cross, just use what we found
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14372 $as_echo "pre-installed" >&6; }
14374 else
14375 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14376 # We already found the complete path
14377 ac_dir=`dirname $LIPO_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 elif test "x$target" = "x$host"; then
14381 # We can use an host tool
14382 LIPO_FOR_TARGET='$(LIPO)'
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14384 $as_echo "host tool" >&6; }
14385 else
14386 # We need a cross tool
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388 $as_echo "pre-installed" >&6; }
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14393 $as_echo_n "checking where to find the target nm... " >&6; }
14394 if test "x${build}" != "x${host}" ; then
14395 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14396 # We already found the complete path
14397 ac_dir=`dirname $NM_FOR_TARGET`
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14399 $as_echo "pre-installed in $ac_dir" >&6; }
14400 else
14401 # Canadian cross, just use what we found
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14403 $as_echo "pre-installed" >&6; }
14405 else
14406 ok=yes
14407 case " ${configdirs} " in
14408 *" binutils "*) ;;
14409 *) ok=no ;;
14410 esac
14412 if test $ok = yes; then
14413 # An in-tree tool is available and we can use it
14414 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14416 $as_echo "just compiled" >&6; }
14417 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14418 # We already found the complete path
14419 ac_dir=`dirname $NM_FOR_TARGET`
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14421 $as_echo "pre-installed in $ac_dir" >&6; }
14422 elif test "x$target" = "x$host"; then
14423 # We can use an host tool
14424 NM_FOR_TARGET='$(NM)'
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14426 $as_echo "host tool" >&6; }
14427 else
14428 # We need a cross tool
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14430 $as_echo "pre-installed" >&6; }
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14435 $as_echo_n "checking where to find the target objdump... " >&6; }
14436 if test "x${build}" != "x${host}" ; then
14437 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14438 # We already found the complete path
14439 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14441 $as_echo "pre-installed in $ac_dir" >&6; }
14442 else
14443 # Canadian cross, just use what we found
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14445 $as_echo "pre-installed" >&6; }
14447 else
14448 ok=yes
14449 case " ${configdirs} " in
14450 *" binutils "*) ;;
14451 *) ok=no ;;
14452 esac
14454 if test $ok = yes; then
14455 # An in-tree tool is available and we can use it
14456 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14458 $as_echo "just compiled" >&6; }
14459 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14460 # We already found the complete path
14461 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14463 $as_echo "pre-installed in $ac_dir" >&6; }
14464 elif test "x$target" = "x$host"; then
14465 # We can use an host tool
14466 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14468 $as_echo "host tool" >&6; }
14469 else
14470 # We need a cross tool
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14472 $as_echo "pre-installed" >&6; }
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14477 $as_echo_n "checking where to find the target ranlib... " >&6; }
14478 if test "x${build}" != "x${host}" ; then
14479 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14480 # We already found the complete path
14481 ac_dir=`dirname $RANLIB_FOR_TARGET`
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14483 $as_echo "pre-installed in $ac_dir" >&6; }
14484 else
14485 # Canadian cross, just use what we found
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14487 $as_echo "pre-installed" >&6; }
14489 else
14490 ok=yes
14491 case " ${configdirs} " in
14492 *" binutils "*) ;;
14493 *) ok=no ;;
14494 esac
14496 if test $ok = yes; then
14497 # An in-tree tool is available and we can use it
14498 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14500 $as_echo "just compiled" >&6; }
14501 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14502 # We already found the complete path
14503 ac_dir=`dirname $RANLIB_FOR_TARGET`
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14505 $as_echo "pre-installed in $ac_dir" >&6; }
14506 elif test "x$target" = "x$host"; then
14507 # We can use an host tool
14508 RANLIB_FOR_TARGET='$(RANLIB)'
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14510 $as_echo "host tool" >&6; }
14511 else
14512 # We need a cross tool
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14514 $as_echo "pre-installed" >&6; }
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14519 $as_echo_n "checking where to find the target readelf... " >&6; }
14520 if test "x${build}" != "x${host}" ; then
14521 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14522 # We already found the complete path
14523 ac_dir=`dirname $READELF_FOR_TARGET`
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14525 $as_echo "pre-installed in $ac_dir" >&6; }
14526 else
14527 # Canadian cross, just use what we found
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14529 $as_echo "pre-installed" >&6; }
14531 else
14532 ok=yes
14533 case " ${configdirs} " in
14534 *" binutils "*) ;;
14535 *) ok=no ;;
14536 esac
14538 if test $ok = yes; then
14539 # An in-tree tool is available and we can use it
14540 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14542 $as_echo "just compiled" >&6; }
14543 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14544 # We already found the complete path
14545 ac_dir=`dirname $READELF_FOR_TARGET`
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14547 $as_echo "pre-installed in $ac_dir" >&6; }
14548 elif test "x$target" = "x$host"; then
14549 # We can use an host tool
14550 READELF_FOR_TARGET='$(READELF)'
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14552 $as_echo "host tool" >&6; }
14553 else
14554 # We need a cross tool
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14556 $as_echo "pre-installed" >&6; }
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14561 $as_echo_n "checking where to find the target strip... " >&6; }
14562 if test "x${build}" != "x${host}" ; then
14563 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14564 # We already found the complete path
14565 ac_dir=`dirname $STRIP_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 else
14569 # Canadian cross, just use what we found
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14571 $as_echo "pre-installed" >&6; }
14573 else
14574 ok=yes
14575 case " ${configdirs} " in
14576 *" binutils "*) ;;
14577 *) ok=no ;;
14578 esac
14580 if test $ok = yes; then
14581 # An in-tree tool is available and we can use it
14582 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14584 $as_echo "just compiled" >&6; }
14585 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14586 # We already found the complete path
14587 ac_dir=`dirname $STRIP_FOR_TARGET`
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14589 $as_echo "pre-installed in $ac_dir" >&6; }
14590 elif test "x$target" = "x$host"; then
14591 # We can use an host tool
14592 STRIP_FOR_TARGET='$(STRIP)'
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14594 $as_echo "host tool" >&6; }
14595 else
14596 # We need a cross tool
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14598 $as_echo "pre-installed" >&6; }
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14603 $as_echo_n "checking where to find the target windres... " >&6; }
14604 if test "x${build}" != "x${host}" ; then
14605 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14606 # We already found the complete path
14607 ac_dir=`dirname $WINDRES_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 else
14611 # Canadian cross, just use what we found
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14613 $as_echo "pre-installed" >&6; }
14615 else
14616 ok=yes
14617 case " ${configdirs} " in
14618 *" binutils "*) ;;
14619 *) ok=no ;;
14620 esac
14622 if test $ok = yes; then
14623 # An in-tree tool is available and we can use it
14624 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14626 $as_echo "just compiled" >&6; }
14627 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14628 # We already found the complete path
14629 ac_dir=`dirname $WINDRES_FOR_TARGET`
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14631 $as_echo "pre-installed in $ac_dir" >&6; }
14632 elif test "x$target" = "x$host"; then
14633 # We can use an host tool
14634 WINDRES_FOR_TARGET='$(WINDRES)'
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14636 $as_echo "host tool" >&6; }
14637 else
14638 # We need a cross tool
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14640 $as_echo "pre-installed" >&6; }
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14645 $as_echo_n "checking where to find the target windmc... " >&6; }
14646 if test "x${build}" != "x${host}" ; then
14647 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14648 # We already found the complete path
14649 ac_dir=`dirname $WINDMC_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 else
14653 # Canadian cross, just use what we found
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14655 $as_echo "pre-installed" >&6; }
14657 else
14658 ok=yes
14659 case " ${configdirs} " in
14660 *" binutils "*) ;;
14661 *) ok=no ;;
14662 esac
14664 if test $ok = yes; then
14665 # An in-tree tool is available and we can use it
14666 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14668 $as_echo "just compiled" >&6; }
14669 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14670 # We already found the complete path
14671 ac_dir=`dirname $WINDMC_FOR_TARGET`
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14673 $as_echo "pre-installed in $ac_dir" >&6; }
14674 elif test "x$target" = "x$host"; then
14675 # We can use an host tool
14676 WINDMC_FOR_TARGET='$(WINDMC)'
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14678 $as_echo "host tool" >&6; }
14679 else
14680 # We need a cross tool
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14682 $as_echo "pre-installed" >&6; }
14690 # Certain tools may need extra flags.
14691 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14692 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14693 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14695 # When building target libraries, except in a Canadian cross, we use
14696 # the same toolchain as the compiler we just built.
14697 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14698 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14699 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14700 if test $host = $build; then
14701 case " $configdirs " in
14702 *" gcc "*)
14703 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14704 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14705 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14707 esac
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14715 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14716 # Check whether --enable-maintainer-mode was given.
14717 if test "${enable_maintainer_mode+set}" = set; then :
14718 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14719 else
14720 USE_MAINTAINER_MODE=no
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14724 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14727 if test "$USE_MAINTAINER_MODE" = yes; then
14728 MAINTAINER_MODE_TRUE=
14729 MAINTAINER_MODE_FALSE='#'
14730 else
14731 MAINTAINER_MODE_TRUE='#'
14732 MAINTAINER_MODE_FALSE=
14734 MAINT=$MAINTAINER_MODE_TRUE
14736 # ---------------------
14737 # GCC bootstrap support
14738 # ---------------------
14740 # Stage specific cflags for build.
14741 stage1_cflags="-g"
14742 case $build in
14743 vax-*-*)
14744 case ${GCC} in
14745 yes) stage1_cflags="-g -Wa,-J" ;;
14746 *) stage1_cflags="-g -J" ;;
14747 esac ;;
14748 esac
14752 # Enable --enable-checking in stage1 of the compiler.
14753 # Check whether --enable-stage1-checking was given.
14754 if test "${enable_stage1_checking+set}" = set; then :
14755 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14756 else
14757 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14758 stage1_checking=--enable-checking=yes,types
14759 else
14760 stage1_checking=--enable-checking=$enable_checking,types
14766 # Enable -Werror in bootstrap stage2 and later.
14767 # Check whether --enable-werror was given.
14768 if test "${enable_werror+set}" = set; then :
14769 enableval=$enable_werror;
14770 else
14771 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14772 enable_werror=yes
14773 else
14774 enable_werror=no
14778 case ${enable_werror} in
14779 yes) stage2_werror_flag="--enable-werror-always" ;;
14780 *) stage2_werror_flag="" ;;
14781 esac
14784 # Enable --enable-host-shared.
14785 # Check whether --enable-host-shared was given.
14786 if test "${enable_host_shared+set}" = set; then :
14787 enableval=$enable_host_shared; host_shared=$enableval
14788 else
14789 host_shared=no
14794 # Specify what files to not compare during bootstrap.
14796 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14797 case "$target" in
14798 hppa*64*-*-hpux*) ;;
14799 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14800 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14801 esac
14804 ac_config_files="$ac_config_files Makefile"
14806 cat >confcache <<\_ACEOF
14807 # This file is a shell script that caches the results of configure
14808 # tests run on this system so they can be shared between configure
14809 # scripts and configure runs, see configure's option --config-cache.
14810 # It is not useful on other systems. If it contains results you don't
14811 # want to keep, you may remove or edit it.
14813 # config.status only pays attention to the cache file if you give it
14814 # the --recheck option to rerun configure.
14816 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14818 # following values.
14820 _ACEOF
14822 # The following way of writing the cache mishandles newlines in values,
14823 # but we know of no workaround that is simple, portable, and efficient.
14824 # So, we kill variables containing newlines.
14825 # Ultrix sh set writes to stderr and can't be redirected directly,
14826 # and sets the high bit in the cache file unless we assign to the vars.
14828 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14829 eval ac_val=\$$ac_var
14830 case $ac_val in #(
14831 *${as_nl}*)
14832 case $ac_var in #(
14833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14835 esac
14836 case $ac_var in #(
14837 _ | IFS | as_nl) ;; #(
14838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14839 *) { eval $ac_var=; unset $ac_var;} ;;
14840 esac ;;
14841 esac
14842 done
14844 (set) 2>&1 |
14845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14846 *${as_nl}ac_space=\ *)
14847 # `set' does not quote correctly, so add quotes: double-quote
14848 # substitution turns \\\\ into \\, and sed turns \\ into \.
14849 sed -n \
14850 "s/'/'\\\\''/g;
14851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14852 ;; #(
14854 # `set' quotes correctly as required by POSIX, so do not add quotes.
14855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14857 esac |
14858 sort
14860 sed '
14861 /^ac_cv_env_/b end
14862 t clear
14863 :clear
14864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14865 t end
14866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14867 :end' >>confcache
14868 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14869 if test -w "$cache_file"; then
14870 test "x$cache_file" != "x/dev/null" &&
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14872 $as_echo "$as_me: updating cache $cache_file" >&6;}
14873 cat confcache >$cache_file
14874 else
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14876 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14879 rm -f confcache
14881 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14882 # Let make expand exec_prefix.
14883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14885 # Transform confdefs.h into DEFS.
14886 # Protect against shell expansion while executing Makefile rules.
14887 # Protect against Makefile macro expansion.
14889 # If the first sed substitution is executed (which looks for macros that
14890 # take arguments), then branch to the quote section. Otherwise,
14891 # look for a macro that doesn't take arguments.
14892 ac_script='
14893 :mline
14894 /\\$/{
14896 s,\\\n,,
14897 b mline
14899 t clear
14900 :clear
14901 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14902 t quote
14903 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14904 t quote
14905 b any
14906 :quote
14907 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14908 s/\[/\\&/g
14909 s/\]/\\&/g
14910 s/\$/$$/g
14912 :any
14915 s/^\n//
14916 s/\n/ /g
14920 DEFS=`sed -n "$ac_script" confdefs.h`
14923 ac_libobjs=
14924 ac_ltlibobjs=
14925 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14926 # 1. Remove the extension, and $U if already installed.
14927 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14928 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14929 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14930 # will be set to the directory where LIBOBJS objects are built.
14931 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14932 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14933 done
14934 LIBOBJS=$ac_libobjs
14936 LTLIBOBJS=$ac_ltlibobjs
14940 : ${CONFIG_STATUS=./config.status}
14941 ac_write_fail=0
14942 ac_clean_files_save=$ac_clean_files
14943 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14945 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14946 as_write_fail=0
14947 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14948 #! $SHELL
14949 # Generated by $as_me.
14950 # Run this file to recreate the current configuration.
14951 # Compiler output produced by configure, useful for debugging
14952 # configure, is in config.log if it exists.
14954 debug=false
14955 ac_cs_recheck=false
14956 ac_cs_silent=false
14958 SHELL=\${CONFIG_SHELL-$SHELL}
14959 export SHELL
14960 _ASEOF
14961 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14962 ## -------------------- ##
14963 ## M4sh Initialization. ##
14964 ## -------------------- ##
14966 # Be more Bourne compatible
14967 DUALCASE=1; export DUALCASE # for MKS sh
14968 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14969 emulate sh
14970 NULLCMD=:
14971 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14972 # is contrary to our usage. Disable this feature.
14973 alias -g '${1+"$@"}'='"$@"'
14974 setopt NO_GLOB_SUBST
14975 else
14976 case `(set -o) 2>/dev/null` in #(
14977 *posix*) :
14978 set -o posix ;; #(
14979 *) :
14981 esac
14985 as_nl='
14987 export as_nl
14988 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14989 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14990 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14991 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14992 # Prefer a ksh shell builtin over an external printf program on Solaris,
14993 # but without wasting forks for bash or zsh.
14994 if test -z "$BASH_VERSION$ZSH_VERSION" \
14995 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14996 as_echo='print -r --'
14997 as_echo_n='print -rn --'
14998 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14999 as_echo='printf %s\n'
15000 as_echo_n='printf %s'
15001 else
15002 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15003 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15004 as_echo_n='/usr/ucb/echo -n'
15005 else
15006 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15007 as_echo_n_body='eval
15008 arg=$1;
15009 case $arg in #(
15010 *"$as_nl"*)
15011 expr "X$arg" : "X\\(.*\\)$as_nl";
15012 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15013 esac;
15014 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15016 export as_echo_n_body
15017 as_echo_n='sh -c $as_echo_n_body as_echo'
15019 export as_echo_body
15020 as_echo='sh -c $as_echo_body as_echo'
15023 # The user is always right.
15024 if test "${PATH_SEPARATOR+set}" != set; then
15025 PATH_SEPARATOR=:
15026 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15027 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15028 PATH_SEPARATOR=';'
15033 # IFS
15034 # We need space, tab and new line, in precisely that order. Quoting is
15035 # there to prevent editors from complaining about space-tab.
15036 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15037 # splitting by setting IFS to empty value.)
15038 IFS=" "" $as_nl"
15040 # Find who we are. Look in the path if we contain no directory separator.
15041 case $0 in #((
15042 *[\\/]* ) as_myself=$0 ;;
15043 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15044 for as_dir in $PATH
15046 IFS=$as_save_IFS
15047 test -z "$as_dir" && as_dir=.
15048 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15049 done
15050 IFS=$as_save_IFS
15053 esac
15054 # We did not find ourselves, most probably we were run as `sh COMMAND'
15055 # in which case we are not to be found in the path.
15056 if test "x$as_myself" = x; then
15057 as_myself=$0
15059 if test ! -f "$as_myself"; then
15060 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15061 exit 1
15064 # Unset variables that we do not need and which cause bugs (e.g. in
15065 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15066 # suppresses any "Segmentation fault" message there. '((' could
15067 # trigger a bug in pdksh 5.2.14.
15068 for as_var in BASH_ENV ENV MAIL MAILPATH
15069 do eval test x\${$as_var+set} = xset \
15070 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15071 done
15072 PS1='$ '
15073 PS2='> '
15074 PS4='+ '
15076 # NLS nuisances.
15077 LC_ALL=C
15078 export LC_ALL
15079 LANGUAGE=C
15080 export LANGUAGE
15082 # CDPATH.
15083 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15086 # as_fn_error ERROR [LINENO LOG_FD]
15087 # ---------------------------------
15088 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15089 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15090 # script with status $?, using 1 if that was 0.
15091 as_fn_error ()
15093 as_status=$?; test $as_status -eq 0 && as_status=1
15094 if test "$3"; then
15095 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15096 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15098 $as_echo "$as_me: error: $1" >&2
15099 as_fn_exit $as_status
15100 } # as_fn_error
15103 # as_fn_set_status STATUS
15104 # -----------------------
15105 # Set $? to STATUS, without forking.
15106 as_fn_set_status ()
15108 return $1
15109 } # as_fn_set_status
15111 # as_fn_exit STATUS
15112 # -----------------
15113 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15114 as_fn_exit ()
15116 set +e
15117 as_fn_set_status $1
15118 exit $1
15119 } # as_fn_exit
15121 # as_fn_unset VAR
15122 # ---------------
15123 # Portably unset VAR.
15124 as_fn_unset ()
15126 { eval $1=; unset $1;}
15128 as_unset=as_fn_unset
15129 # as_fn_append VAR VALUE
15130 # ----------------------
15131 # Append the text in VALUE to the end of the definition contained in VAR. Take
15132 # advantage of any shell optimizations that allow amortized linear growth over
15133 # repeated appends, instead of the typical quadratic growth present in naive
15134 # implementations.
15135 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15136 eval 'as_fn_append ()
15138 eval $1+=\$2
15140 else
15141 as_fn_append ()
15143 eval $1=\$$1\$2
15145 fi # as_fn_append
15147 # as_fn_arith ARG...
15148 # ------------------
15149 # Perform arithmetic evaluation on the ARGs, and store the result in the
15150 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15151 # must be portable across $(()) and expr.
15152 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15153 eval 'as_fn_arith ()
15155 as_val=$(( $* ))
15157 else
15158 as_fn_arith ()
15160 as_val=`expr "$@" || test $? -eq 1`
15162 fi # as_fn_arith
15165 if expr a : '\(a\)' >/dev/null 2>&1 &&
15166 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15167 as_expr=expr
15168 else
15169 as_expr=false
15172 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15173 as_basename=basename
15174 else
15175 as_basename=false
15178 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15179 as_dirname=dirname
15180 else
15181 as_dirname=false
15184 as_me=`$as_basename -- "$0" ||
15185 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15186 X"$0" : 'X\(//\)$' \| \
15187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15188 $as_echo X/"$0" |
15189 sed '/^.*\/\([^/][^/]*\)\/*$/{
15190 s//\1/
15193 /^X\/\(\/\/\)$/{
15194 s//\1/
15197 /^X\/\(\/\).*/{
15198 s//\1/
15201 s/.*/./; q'`
15203 # Avoid depending upon Character Ranges.
15204 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15205 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15206 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15207 as_cr_digits='0123456789'
15208 as_cr_alnum=$as_cr_Letters$as_cr_digits
15210 ECHO_C= ECHO_N= ECHO_T=
15211 case `echo -n x` in #(((((
15212 -n*)
15213 case `echo 'xy\c'` in
15214 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15215 xy) ECHO_C='\c';;
15216 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15217 ECHO_T=' ';;
15218 esac;;
15220 ECHO_N='-n';;
15221 esac
15223 rm -f conf$$ conf$$.exe conf$$.file
15224 if test -d conf$$.dir; then
15225 rm -f conf$$.dir/conf$$.file
15226 else
15227 rm -f conf$$.dir
15228 mkdir conf$$.dir 2>/dev/null
15230 if (echo >conf$$.file) 2>/dev/null; then
15231 if ln -s conf$$.file conf$$ 2>/dev/null; then
15232 as_ln_s='ln -s'
15233 # ... but there are two gotchas:
15234 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15235 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15236 # In both cases, we have to default to `cp -p'.
15237 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15238 as_ln_s='cp -p'
15239 elif ln conf$$.file conf$$ 2>/dev/null; then
15240 as_ln_s=ln
15241 else
15242 as_ln_s='cp -p'
15244 else
15245 as_ln_s='cp -p'
15247 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15248 rmdir conf$$.dir 2>/dev/null
15251 # as_fn_mkdir_p
15252 # -------------
15253 # Create "$as_dir" as a directory, including parents if necessary.
15254 as_fn_mkdir_p ()
15257 case $as_dir in #(
15258 -*) as_dir=./$as_dir;;
15259 esac
15260 test -d "$as_dir" || eval $as_mkdir_p || {
15261 as_dirs=
15262 while :; do
15263 case $as_dir in #(
15264 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15265 *) as_qdir=$as_dir;;
15266 esac
15267 as_dirs="'$as_qdir' $as_dirs"
15268 as_dir=`$as_dirname -- "$as_dir" ||
15269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15270 X"$as_dir" : 'X\(//\)[^/]' \| \
15271 X"$as_dir" : 'X\(//\)$' \| \
15272 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15273 $as_echo X"$as_dir" |
15274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15275 s//\1/
15278 /^X\(\/\/\)[^/].*/{
15279 s//\1/
15282 /^X\(\/\/\)$/{
15283 s//\1/
15286 /^X\(\/\).*/{
15287 s//\1/
15290 s/.*/./; q'`
15291 test -d "$as_dir" && break
15292 done
15293 test -z "$as_dirs" || eval "mkdir $as_dirs"
15294 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15297 } # as_fn_mkdir_p
15298 if mkdir -p . 2>/dev/null; then
15299 as_mkdir_p='mkdir -p "$as_dir"'
15300 else
15301 test -d ./-p && rmdir ./-p
15302 as_mkdir_p=false
15305 if test -x / >/dev/null 2>&1; then
15306 as_test_x='test -x'
15307 else
15308 if ls -dL / >/dev/null 2>&1; then
15309 as_ls_L_option=L
15310 else
15311 as_ls_L_option=
15313 as_test_x='
15314 eval sh -c '\''
15315 if test -d "$1"; then
15316 test -d "$1/.";
15317 else
15318 case $1 in #(
15319 -*)set "./$1";;
15320 esac;
15321 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15322 ???[sx]*):;;*)false;;esac;fi
15323 '\'' sh
15326 as_executable_p=$as_test_x
15328 # Sed expression to map a string onto a valid CPP name.
15329 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15331 # Sed expression to map a string onto a valid variable name.
15332 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15335 exec 6>&1
15336 ## ----------------------------------- ##
15337 ## Main body of $CONFIG_STATUS script. ##
15338 ## ----------------------------------- ##
15339 _ASEOF
15340 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15343 # Save the log message, to keep $0 and so on meaningful, and to
15344 # report actual input values of CONFIG_FILES etc. instead of their
15345 # values after options handling.
15346 ac_log="
15347 This file was extended by $as_me, which was
15348 generated by GNU Autoconf 2.64. Invocation command line was
15350 CONFIG_FILES = $CONFIG_FILES
15351 CONFIG_HEADERS = $CONFIG_HEADERS
15352 CONFIG_LINKS = $CONFIG_LINKS
15353 CONFIG_COMMANDS = $CONFIG_COMMANDS
15354 $ $0 $@
15356 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15359 _ACEOF
15361 case $ac_config_files in *"
15362 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15363 esac
15367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15368 # Files that config.status was made for.
15369 config_files="$ac_config_files"
15371 _ACEOF
15373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15374 ac_cs_usage="\
15375 \`$as_me' instantiates files and other configuration actions
15376 from templates according to the current configuration. Unless the files
15377 and actions are specified as TAGs, all are instantiated by default.
15379 Usage: $0 [OPTION]... [TAG]...
15381 -h, --help print this help, then exit
15382 -V, --version print version number and configuration settings, then exit
15383 -q, --quiet, --silent
15384 do not print progress messages
15385 -d, --debug don't remove temporary files
15386 --recheck update $as_me by reconfiguring in the same conditions
15387 --file=FILE[:TEMPLATE]
15388 instantiate the configuration file FILE
15390 Configuration files:
15391 $config_files
15393 Report bugs to the package provider."
15395 _ACEOF
15396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15397 ac_cs_version="\\
15398 config.status
15399 configured by $0, generated by GNU Autoconf 2.64,
15400 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15402 Copyright (C) 2009 Free Software Foundation, Inc.
15403 This config.status script is free software; the Free Software Foundation
15404 gives unlimited permission to copy, distribute and modify it."
15406 ac_pwd='$ac_pwd'
15407 srcdir='$srcdir'
15408 INSTALL='$INSTALL'
15409 AWK='$AWK'
15410 test -n "\$AWK" || AWK=awk
15411 _ACEOF
15413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15414 # The default lists apply if the user does not specify any file.
15415 ac_need_defaults=:
15416 while test $# != 0
15418 case $1 in
15419 --*=*)
15420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15421 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15422 ac_shift=:
15425 ac_option=$1
15426 ac_optarg=$2
15427 ac_shift=shift
15429 esac
15431 case $ac_option in
15432 # Handling of the options.
15433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15434 ac_cs_recheck=: ;;
15435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15436 $as_echo "$ac_cs_version"; exit ;;
15437 --debug | --debu | --deb | --de | --d | -d )
15438 debug=: ;;
15439 --file | --fil | --fi | --f )
15440 $ac_shift
15441 case $ac_optarg in
15442 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15443 esac
15444 as_fn_append CONFIG_FILES " '$ac_optarg'"
15445 ac_need_defaults=false;;
15446 --he | --h | --help | --hel | -h )
15447 $as_echo "$ac_cs_usage"; exit ;;
15448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15449 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15450 ac_cs_silent=: ;;
15452 # This is an error.
15453 -*) as_fn_error "unrecognized option: \`$1'
15454 Try \`$0 --help' for more information." ;;
15456 *) as_fn_append ac_config_targets " $1"
15457 ac_need_defaults=false ;;
15459 esac
15460 shift
15461 done
15463 ac_configure_extra_args=
15465 if $ac_cs_silent; then
15466 exec 6>/dev/null
15467 ac_configure_extra_args="$ac_configure_extra_args --silent"
15470 _ACEOF
15471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15472 if \$ac_cs_recheck; then
15473 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15474 shift
15475 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15476 CONFIG_SHELL='$SHELL'
15477 export CONFIG_SHELL
15478 exec "\$@"
15481 _ACEOF
15482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15483 exec 5>>config.log
15485 echo
15486 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15487 ## Running $as_me. ##
15488 _ASBOX
15489 $as_echo "$ac_log"
15490 } >&5
15492 _ACEOF
15493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495 # INIT-COMMANDS
15497 extrasub_build="$extrasub_build"
15498 extrasub_host="$extrasub_host"
15499 extrasub_target="$extrasub_target"
15501 _ACEOF
15503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15505 # Handling of arguments.
15506 for ac_config_target in $ac_config_targets
15508 case $ac_config_target in
15509 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15511 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15512 esac
15513 done
15516 # If the user did not use the arguments to specify the items to instantiate,
15517 # then the envvar interface is used. Set only those that are not.
15518 # We use the long form for the default assignment because of an extremely
15519 # bizarre bug on SunOS 4.1.3.
15520 if $ac_need_defaults; then
15521 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15524 # Have a temporary directory for convenience. Make it in the build tree
15525 # simply because there is no reason against having it here, and in addition,
15526 # creating and moving files from /tmp can sometimes cause problems.
15527 # Hook for its removal unless debugging.
15528 # Note that there is a small window in which the directory will not be cleaned:
15529 # after its creation but before its name has been assigned to `$tmp'.
15530 $debug ||
15532 tmp=
15533 trap 'exit_status=$?
15534 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15536 trap 'as_fn_exit 1' 1 2 13 15
15538 # Create a (secure) tmp directory for tmp files.
15541 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15542 test -n "$tmp" && test -d "$tmp"
15543 } ||
15545 tmp=./conf$$-$RANDOM
15546 (umask 077 && mkdir "$tmp")
15547 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15549 # Set up the scripts for CONFIG_FILES section.
15550 # No need to generate them if there are no CONFIG_FILES.
15551 # This happens for instance with `./config.status config.h'.
15552 if test -n "$CONFIG_FILES"; then
15554 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15555 ac_cs_awk_getline=:
15556 ac_cs_awk_pipe_init=
15557 ac_cs_awk_read_file='
15558 while ((getline aline < (F[key])) > 0)
15559 print(aline)
15560 close(F[key])'
15561 ac_cs_awk_pipe_fini=
15562 else
15563 ac_cs_awk_getline=false
15564 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15565 ac_cs_awk_read_file='
15566 print "|#_!!_#|"
15567 print "cat " F[key] " &&"
15568 '$ac_cs_awk_pipe_init
15569 # The final `:' finishes the AND list.
15570 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15572 ac_cr=`echo X | tr X '\015'`
15573 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15574 # But we know of no other shell where ac_cr would be empty at this
15575 # point, so we can use a bashism as a fallback.
15576 if test "x$ac_cr" = x; then
15577 eval ac_cr=\$\'\\r\'
15579 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15580 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15581 ac_cs_awk_cr='\r'
15582 else
15583 ac_cs_awk_cr=$ac_cr
15586 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15587 _ACEOF
15589 # Create commands to substitute file output variables.
15591 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15592 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15593 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15594 echo "_ACAWK" &&
15595 echo "_ACEOF"
15596 } >conf$$files.sh &&
15597 . ./conf$$files.sh ||
15598 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15599 rm -f conf$$files.sh
15602 echo "cat >conf$$subs.awk <<_ACEOF" &&
15603 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15604 echo "_ACEOF"
15605 } >conf$$subs.sh ||
15606 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15607 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15608 ac_delim='%!_!# '
15609 for ac_last_try in false false false false false :; do
15610 . ./conf$$subs.sh ||
15611 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15613 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15614 if test $ac_delim_n = $ac_delim_num; then
15615 break
15616 elif $ac_last_try; then
15617 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15618 else
15619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15621 done
15622 rm -f conf$$subs.sh
15624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15625 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15626 _ACEOF
15627 sed -n '
15629 s/^/S["/; s/!.*/"]=/
15632 s/^[^!]*!//
15633 :repl
15634 t repl
15635 s/'"$ac_delim"'$//
15636 t delim
15639 s/\(.\{148\}\).*/\1/
15640 t more1
15641 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15644 b repl
15645 :more1
15646 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15649 s/.\{148\}//
15650 t nl
15651 :delim
15653 s/\(.\{148\}\).*/\1/
15654 t more2
15655 s/["\\]/\\&/g; s/^/"/; s/$/"/
15658 :more2
15659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15662 s/.\{148\}//
15663 t delim
15664 ' <conf$$subs.awk | sed '
15665 /^[^""]/{
15667 s/\n//
15669 ' >>$CONFIG_STATUS || ac_write_fail=1
15670 rm -f conf$$subs.awk
15671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15672 _ACAWK
15673 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15674 for (key in S) S_is_set[key] = 1
15675 FS = "\a"
15676 \$ac_cs_awk_pipe_init
15679 line = $ 0
15680 nfields = split(line, field, "@")
15681 substed = 0
15682 len = length(field[1])
15683 for (i = 2; i < nfields; i++) {
15684 key = field[i]
15685 keylen = length(key)
15686 if (S_is_set[key]) {
15687 value = S[key]
15688 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15689 len += length(value) + length(field[++i])
15690 substed = 1
15691 } else
15692 len += 1 + keylen
15694 if (nfields == 3 && !substed) {
15695 key = field[2]
15696 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15697 \$ac_cs_awk_read_file
15698 next
15701 print line
15703 \$ac_cs_awk_pipe_fini
15704 _ACAWK
15705 _ACEOF
15706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15707 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15708 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15709 else
15711 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15712 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15713 _ACEOF
15715 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15716 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15717 # trailing colons and then remove the whole line if VPATH becomes empty
15718 # (actually we leave an empty line to preserve line numbers).
15719 if test "x$srcdir" = x.; then
15720 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15721 s/:*\$(srcdir):*/:/
15722 s/:*\${srcdir}:*/:/
15723 s/:*@srcdir@:*/:/
15724 s/^\([^=]*=[ ]*\):*/\1/
15725 s/:*$//
15726 s/^[^=]*=[ ]*$//
15730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15731 fi # test -n "$CONFIG_FILES"
15734 eval set X " :F $CONFIG_FILES "
15735 shift
15736 for ac_tag
15738 case $ac_tag in
15739 :[FHLC]) ac_mode=$ac_tag; continue;;
15740 esac
15741 case $ac_mode$ac_tag in
15742 :[FHL]*:*);;
15743 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15744 :[FH]-) ac_tag=-:-;;
15745 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15746 esac
15747 ac_save_IFS=$IFS
15748 IFS=:
15749 set x $ac_tag
15750 IFS=$ac_save_IFS
15751 shift
15752 ac_file=$1
15753 shift
15755 case $ac_mode in
15756 :L) ac_source=$1;;
15757 :[FH])
15758 ac_file_inputs=
15759 for ac_f
15761 case $ac_f in
15762 -) ac_f="$tmp/stdin";;
15763 *) # Look for the file first in the build tree, then in the source tree
15764 # (if the path is not absolute). The absolute path cannot be DOS-style,
15765 # because $ac_f cannot contain `:'.
15766 test -f "$ac_f" ||
15767 case $ac_f in
15768 [\\/$]*) false;;
15769 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15770 esac ||
15771 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15772 esac
15773 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15774 as_fn_append ac_file_inputs " '$ac_f'"
15775 done
15777 # Let's still pretend it is `configure' which instantiates (i.e., don't
15778 # use $as_me), people would be surprised to read:
15779 # /* config.h. Generated by config.status. */
15780 configure_input='Generated from '`
15781 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15782 `' by configure.'
15783 if test x"$ac_file" != x-; then
15784 configure_input="$ac_file. $configure_input"
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15786 $as_echo "$as_me: creating $ac_file" >&6;}
15788 # Neutralize special characters interpreted by sed in replacement strings.
15789 case $configure_input in #(
15790 *\&* | *\|* | *\\* )
15791 ac_sed_conf_input=`$as_echo "$configure_input" |
15792 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15793 *) ac_sed_conf_input=$configure_input;;
15794 esac
15796 case $ac_tag in
15797 *:-:* | *:-) cat >"$tmp/stdin" \
15798 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15799 esac
15801 esac
15803 ac_dir=`$as_dirname -- "$ac_file" ||
15804 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15805 X"$ac_file" : 'X\(//\)[^/]' \| \
15806 X"$ac_file" : 'X\(//\)$' \| \
15807 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15808 $as_echo X"$ac_file" |
15809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15810 s//\1/
15813 /^X\(\/\/\)[^/].*/{
15814 s//\1/
15817 /^X\(\/\/\)$/{
15818 s//\1/
15821 /^X\(\/\).*/{
15822 s//\1/
15825 s/.*/./; q'`
15826 as_dir="$ac_dir"; as_fn_mkdir_p
15827 ac_builddir=.
15829 case "$ac_dir" in
15830 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15832 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15833 # A ".." for each directory in $ac_dir_suffix.
15834 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15835 case $ac_top_builddir_sub in
15836 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15837 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15838 esac ;;
15839 esac
15840 ac_abs_top_builddir=$ac_pwd
15841 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15842 # for backward compatibility:
15843 ac_top_builddir=$ac_top_build_prefix
15845 case $srcdir in
15846 .) # We are building in place.
15847 ac_srcdir=.
15848 ac_top_srcdir=$ac_top_builddir_sub
15849 ac_abs_top_srcdir=$ac_pwd ;;
15850 [\\/]* | ?:[\\/]* ) # Absolute name.
15851 ac_srcdir=$srcdir$ac_dir_suffix;
15852 ac_top_srcdir=$srcdir
15853 ac_abs_top_srcdir=$srcdir ;;
15854 *) # Relative name.
15855 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15856 ac_top_srcdir=$ac_top_build_prefix$srcdir
15857 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15858 esac
15859 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15862 case $ac_mode in
15865 # CONFIG_FILE
15868 case $INSTALL in
15869 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15870 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15871 esac
15872 _ACEOF
15874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15875 # If the template does not know about datarootdir, expand it.
15876 # FIXME: This hack should be removed a few years after 2.60.
15877 ac_datarootdir_hack=; ac_datarootdir_seen=
15878 ac_sed_dataroot='
15879 /datarootdir/ {
15883 /@datadir@/p
15884 /@docdir@/p
15885 /@infodir@/p
15886 /@localedir@/p
15887 /@mandir@/p'
15888 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15889 *datarootdir*) ac_datarootdir_seen=yes;;
15890 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15892 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15893 _ACEOF
15894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15895 ac_datarootdir_hack='
15896 s&@datadir@&$datadir&g
15897 s&@docdir@&$docdir&g
15898 s&@infodir@&$infodir&g
15899 s&@localedir@&$localedir&g
15900 s&@mandir@&$mandir&g
15901 s&\\\${datarootdir}&$datarootdir&g' ;;
15902 esac
15903 _ACEOF
15905 # Neutralize VPATH when `$srcdir' = `.'.
15906 # Shell code in configure.ac might set extrasub.
15907 # FIXME: do we really want to maintain this feature?
15908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15909 ac_sed_extra="$ac_vpsub
15910 $extrasub
15911 _ACEOF
15912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15914 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15915 s|@configure_input@|$ac_sed_conf_input|;t t
15916 s&@top_builddir@&$ac_top_builddir_sub&;t t
15917 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15918 s&@srcdir@&$ac_srcdir&;t t
15919 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15920 s&@top_srcdir@&$ac_top_srcdir&;t t
15921 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15922 s&@builddir@&$ac_builddir&;t t
15923 s&@abs_builddir@&$ac_abs_builddir&;t t
15924 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15925 s&@INSTALL@&$ac_INSTALL&;t t
15926 $ac_datarootdir_hack
15928 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15929 if $ac_cs_awk_getline; then
15930 $AWK -f "$tmp/subs.awk"
15931 else
15932 $AWK -f "$tmp/subs.awk" | $SHELL
15933 fi >$tmp/out \
15934 || as_fn_error "could not create $ac_file" "$LINENO" 5
15936 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15937 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15938 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15940 which seems to be undefined. Please make sure it is defined." >&5
15941 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15942 which seems to be undefined. Please make sure it is defined." >&2;}
15944 rm -f "$tmp/stdin"
15945 case $ac_file in
15946 -) cat "$tmp/out" && rm -f "$tmp/out";;
15947 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15948 esac \
15949 || as_fn_error "could not create $ac_file" "$LINENO" 5
15954 esac
15957 case $ac_file$ac_mode in
15958 "Makefile":F) sed "$extrasub_build" Makefile |
15959 sed "$extrasub_host" |
15960 sed "$extrasub_target" > mf$$
15961 mv -f mf$$ Makefile ;;
15963 esac
15964 done # for ac_tag
15967 as_fn_exit 0
15968 _ACEOF
15969 ac_clean_files=$ac_clean_files_save
15971 test $ac_write_fail = 0 ||
15972 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15975 # configure is writing to config.log, and then calls config.status.
15976 # config.status does its own redirection, appending to config.log.
15977 # Unfortunately, on DOS this fails, as config.log is still kept open
15978 # by configure, so config.status won't be able to write to it; its
15979 # output is simply discarded. So we exec the FD to /dev/null,
15980 # effectively closing config.log, so it can be properly (re)opened and
15981 # appended to by config.status. When coming back to configure, we
15982 # need to make the FD available again.
15983 if test "$no_create" != yes; then
15984 ac_cs_success=:
15985 ac_config_status_args=
15986 test "$silent" = yes &&
15987 ac_config_status_args="$ac_config_status_args --quiet"
15988 exec 5>/dev/null
15989 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15990 exec 5>>config.log
15991 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15992 # would make configure fail if this is the last instruction.
15993 $ac_cs_success || as_fn_exit $?
15995 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15997 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}