PR rtl-optimization/59278
[official-gcc.git] / configure
blob9e6684ce7cd44631fd0b30380598dcf6e772c163
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 extra_host_libiberty_configure_flags
646 stage1_languages
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 islinc
650 isllibs
651 poststage1_ldflags
652 poststage1_libs
653 stage1_ldflags
654 stage1_libs
655 extra_isl_gmp_configure_flags
656 extra_mpc_mpfr_configure_flags
657 extra_mpc_gmp_configure_flags
658 extra_mpfr_configure_flags
659 gmpinc
660 gmplibs
661 do_compare
662 GNATMAKE
663 GNATBIND
664 ac_ct_CXX
665 CXXFLAGS
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
674 EXTRA_CONFIGARGS_LIBJAVA
675 extra_liboffloadmic_configure_flags
676 target_subdir
677 host_subdir
678 build_subdir
679 build_libsubdir
682 LN_S
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 target_noncanonical
696 host_noncanonical
697 build_noncanonical
698 build_os
699 build_vendor
700 build_cpu
701 build
702 TOPLEVEL_CONFIGURE_ARGUMENTS
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_URL
734 PACKAGE_BUGREPORT
735 PACKAGE_STRING
736 PACKAGE_VERSION
737 PACKAGE_TARNAME
738 PACKAGE_NAME
739 PATH_SEPARATOR
740 SHELL'
741 ac_subst_files='serialization_dependencies
742 host_makefile_frag
743 target_makefile_frag
744 alphaieee_frag
745 ospace_frag'
746 ac_user_opts='
747 enable_option_checking
748 with_build_libsubdir
749 enable_as_accelerator_for
750 enable_offload_targets
751 enable_gold
752 enable_ld
753 enable_libquadmath
754 enable_libquadmath_support
755 enable_libada
756 enable_libssp
757 enable_libstdcxx
758 enable_liboffloadmic
759 enable_static_libjava
760 enable_bootstrap
761 with_mpc
762 with_mpc_include
763 with_mpc_lib
764 with_mpfr_dir
765 with_mpfr
766 with_mpfr_include
767 with_mpfr_lib
768 with_gmp_dir
769 with_gmp
770 with_gmp_include
771 with_gmp_lib
772 with_host_libstdcxx
773 with_stage1_libs
774 with_stage1_ldflags
775 with_boot_libs
776 with_boot_ldflags
777 with_isl
778 with_isl_include
779 with_isl_lib
780 enable_isl_version_check
781 enable_lto
782 enable_linker_plugin_configure_flags
783 enable_linker_plugin_flags
784 enable_stage1_languages
785 enable_objc_gc
786 with_build_sysroot
787 with_debug_prefix_map
788 with_build_config
789 enable_vtable_verify
790 enable_serial_configure
791 with_build_time_tools
792 enable_maintainer_mode
793 enable_stage1_checking
794 enable_werror
795 enable_host_shared
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
806 CXXFLAGS
808 build_configargs
809 host_configargs
810 target_configargs
813 DLLTOOL
815 LIPO
817 RANLIB
818 STRIP
819 WINDRES
820 WINDMC
821 OBJCOPY
822 OBJDUMP
823 READELF
824 CC_FOR_TARGET
825 CXX_FOR_TARGET
826 GCC_FOR_TARGET
827 GCJ_FOR_TARGET
828 GFORTRAN_FOR_TARGET
829 GOC_FOR_TARGET
830 AR_FOR_TARGET
831 AS_FOR_TARGET
832 DLLTOOL_FOR_TARGET
833 LD_FOR_TARGET
834 LIPO_FOR_TARGET
835 NM_FOR_TARGET
836 OBJDUMP_FOR_TARGET
837 RANLIB_FOR_TARGET
838 READELF_FOR_TARGET
839 STRIP_FOR_TARGET
840 WINDRES_FOR_TARGET
841 WINDMC_FOR_TARGET'
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
892 ac_prev=
893 ac_dashdash=
894 for ac_option
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) as_fn_error "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information."
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 esac
1249 done
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error "missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used." >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1335 /^X\(\/\/\)$/{
1336 s//\1/
1339 /^X\(\/\).*/{
1340 s//\1/
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1348 else
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 case $srcdir in
1370 *" "*)
1371 as_fn_error "path to source, $srcdir, contains spaces"
1373 esac
1374 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1384 # Report the --help message.
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 \`configure' configures this package to adapt to many kinds of systems.
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1397 Defaults for the options are specified in brackets.
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1421 For better control, use the options below.
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443 _ACEOF
1445 cat <<\_ACEOF
1447 Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452 System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 --target=TARGET configure for building compilers for TARGET [HOST]
1456 _ACEOF
1459 if test -n "$ac_init_help"; then
1461 cat <<\_ACEOF
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-as-accelerator-for=ARG
1468 build as offload target compiler. Specify offload
1469 host triple by ARG
1470 --enable-offload-targets=LIST
1471 enable offloading to devices from comma-separated
1472 LIST of TARGET[=DIR]. Use optional path to find
1473 offload target compiler during the build
1474 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1475 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1476 --disable-libquadmath do not build libquadmath directory
1477 --disable-libquadmath-support
1478 disable libquadmath support for Fortran
1479 --enable-libada build libada directory
1480 --enable-libssp build libssp directory
1481 --disable-libstdcxx do not build libstdc++-v3 directory
1482 --enable-liboffloadmic=ARG
1483 build liboffloadmic [ARG={no,host,target}]
1484 --enable-static-libjava[=ARG]
1485 build static libjava [default=no]
1486 --enable-bootstrap enable bootstrapping [yes if native build]
1487 --disable-isl-version-check
1488 disable check for ISL version
1489 --enable-lto enable link time optimization support
1490 --enable-linker-plugin-configure-flags=FLAGS
1491 additional flags for configuring linker plugins
1492 [none]
1493 --enable-linker-plugin-flags=FLAGS
1494 additional flags for configuring and building linker
1495 plugins [none]
1496 --enable-stage1-languages[=all]
1497 choose additional languages to build during stage1.
1498 Mostly useful for compiler development
1499 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1500 Objective-C runtime
1501 --enable-vtable-verify Enable vtable verification feature
1502 --enable-serial-[{host,target,build}-]configure
1503 force sequential configuration of sub-packages for
1504 the host, target or build machine, or all
1505 sub-packages
1506 --enable-maintainer-mode
1507 enable make rules and dependencies not useful (and
1508 sometimes confusing) to the casual installer
1509 --enable-stage1-checking[=all]
1510 choose additional checking for stage1 of the
1511 compiler
1512 --enable-werror enable -Werror in bootstrap stage2 and later
1513 --enable-host-shared build host code as shared libraries
1515 Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-build-libsubdir=DIR Directory where to find libraries for build system
1519 --with-mpc=PATH specify prefix directory for installed MPC package.
1520 Equivalent to --with-mpc-include=PATH/include plus
1521 --with-mpc-lib=PATH/lib
1522 --with-mpc-include=PATH specify directory for installed MPC include files
1523 --with-mpc-lib=PATH specify directory for the installed MPC library
1524 --with-mpfr-dir=PATH this option has been REMOVED
1525 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1526 Equivalent to --with-mpfr-include=PATH/include plus
1527 --with-mpfr-lib=PATH/lib
1528 --with-mpfr-include=PATH
1529 specify directory for installed MPFR include files
1530 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1531 --with-gmp-dir=PATH this option has been REMOVED
1532 --with-gmp=PATH specify prefix directory for the installed GMP
1533 package. Equivalent to
1534 --with-gmp-include=PATH/include plus
1535 --with-gmp-lib=PATH/lib
1536 --with-gmp-include=PATH specify directory for installed GMP include files
1537 --with-gmp-lib=PATH specify directory for the installed GMP library
1538 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1539 linking with PPL
1540 --with-stage1-libs=LIBS libraries for stage1
1541 --with-stage1-ldflags=FLAGS
1542 linker flags for stage1
1543 --with-boot-libs=LIBS libraries for stage2 and later
1544 --with-boot-ldflags=FLAGS
1545 linker flags for stage2 and later
1546 --with-isl=PATH Specify prefix directory for the installed ISL
1547 package. Equivalent to
1548 --with-isl-include=PATH/include plus
1549 --with-isl-lib=PATH/lib
1550 --with-isl-include=PATH Specify directory for installed ISL include files
1551 --with-isl-lib=PATH Specify the directory for the installed ISL library
1552 --with-build-sysroot=SYSROOT
1553 use sysroot as the system root during the build
1554 --with-debug-prefix-map='A=B C=D ...'
1555 map A to B, C to D ... in debug information
1556 --with-build-config='NAME NAME2...'
1557 use config/NAME.mk build configuration
1558 --with-build-time-tools=PATH
1559 use given path to find target tools during the build
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
1571 build_configargs
1572 additional configure arguments for build directories
1573 host_configargs
1574 additional configure arguments for host directories
1575 target_configargs
1576 additional configure arguments for target directories
1577 AR AR for the host
1578 AS AS for the host
1579 DLLTOOL DLLTOOL for the host
1580 LD LD for the host
1581 LIPO LIPO for the host
1582 NM NM for the host
1583 RANLIB RANLIB for the host
1584 STRIP STRIP for the host
1585 WINDRES WINDRES for the host
1586 WINDMC WINDMC for the host
1587 OBJCOPY OBJCOPY for the host
1588 OBJDUMP OBJDUMP for the host
1589 READELF READELF for the host
1590 CC_FOR_TARGET
1591 CC for the target
1592 CXX_FOR_TARGET
1593 CXX for the target
1594 GCC_FOR_TARGET
1595 GCC for the target
1596 GCJ_FOR_TARGET
1597 GCJ for the target
1598 GFORTRAN_FOR_TARGET
1599 GFORTRAN for the target
1600 GOC_FOR_TARGET
1601 GOC for the target
1602 AR_FOR_TARGET
1603 AR for the target
1604 AS_FOR_TARGET
1605 AS for the target
1606 DLLTOOL_FOR_TARGET
1607 DLLTOOL for the target
1608 LD_FOR_TARGET
1609 LD for the target
1610 LIPO_FOR_TARGET
1611 LIPO for the target
1612 NM_FOR_TARGET
1613 NM for the target
1614 OBJDUMP_FOR_TARGET
1615 OBJDUMP for the target
1616 RANLIB_FOR_TARGET
1617 RANLIB for the target
1618 READELF_FOR_TARGET
1619 READELF for the target
1620 STRIP_FOR_TARGET
1621 STRIP for the target
1622 WINDRES_FOR_TARGET
1623 WINDRES for the target
1624 WINDMC_FOR_TARGET
1625 WINDMC for the target
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1630 Report bugs to the package provider.
1631 _ACEOF
1632 ac_status=$?
1635 if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 continue
1641 ac_builddir=.
1643 case "$ac_dir" in
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 esac ;;
1653 esac
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1659 case $srcdir in
1660 .) # We are building in place.
1661 ac_srcdir=.
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1665 ac_srcdir=$srcdir$ac_dir_suffix;
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1668 *) # Relative name.
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 esac
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1683 else
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 fi || ac_status=$?
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1687 done
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1692 cat <<\_ACEOF
1693 configure
1694 generated by GNU Autoconf 2.64
1696 Copyright (C) 2009 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700 exit
1703 ## ------------------------ ##
1704 ## Autoconf initialization. ##
1705 ## ------------------------ ##
1707 # ac_fn_c_try_compile LINENO
1708 # --------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 ac_retval=1
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1743 } # ac_fn_c_try_compile
1745 # ac_fn_cxx_try_compile LINENO
1746 # ----------------------------
1747 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_cxx_try_compile ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext
1752 if { { ac_try="$ac_compile"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_cxx_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=1
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1781 } # ac_fn_cxx_try_compile
1783 # ac_fn_cxx_try_link LINENO
1784 # -------------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_cxx_try_link ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_cxx_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 $as_test_x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1817 ac_retval=1
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 return $ac_retval
1827 } # ac_fn_cxx_try_link
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_link ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 $as_test_x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1873 } # ac_fn_c_try_link
1874 cat >config.log <<_ACEOF
1875 This file contains any messages produced by compilers while
1876 running configure, to aid debugging if configure makes a mistake.
1878 It was created by $as_me, which was
1879 generated by GNU Autoconf 2.64. Invocation command line was
1881 $ $0 $@
1883 _ACEOF
1884 exec 5>>config.log
1886 cat <<_ASUNAME
1887 ## --------- ##
1888 ## Platform. ##
1889 ## --------- ##
1891 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1897 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1900 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1901 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1902 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1904 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1905 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1906 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1908 _ASUNAME
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 $as_echo "PATH: $as_dir"
1916 done
1917 IFS=$as_save_IFS
1919 } >&5
1921 cat >&5 <<_ACEOF
1924 ## ----------- ##
1925 ## Core tests. ##
1926 ## ----------- ##
1928 _ACEOF
1931 # Keep a trace of the command line.
1932 # Strip out --no-create and --no-recursion so they do not pile up.
1933 # Strip out --silent because we don't want to record it for future runs.
1934 # Also quote any args containing shell meta-characters.
1935 # Make two passes to allow for proper duplicate-argument suppression.
1936 ac_configure_args=
1937 ac_configure_args0=
1938 ac_configure_args1=
1939 ac_must_keep_next=false
1940 for ac_pass in 1 2
1942 for ac_arg
1944 case $ac_arg in
1945 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947 | -silent | --silent | --silen | --sile | --sil)
1948 continue ;;
1949 *\'*)
1950 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1951 esac
1952 case $ac_pass in
1953 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1955 as_fn_append ac_configure_args1 " '$ac_arg'"
1956 if test $ac_must_keep_next = true; then
1957 ac_must_keep_next=false # Got value, back to normal.
1958 else
1959 case $ac_arg in
1960 *=* | --config-cache | -C | -disable-* | --disable-* \
1961 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963 | -with-* | --with-* | -without-* | --without-* | --x)
1964 case "$ac_configure_args0 " in
1965 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966 esac
1968 -* ) ac_must_keep_next=true ;;
1969 esac
1971 as_fn_append ac_configure_args " '$ac_arg'"
1973 esac
1974 done
1975 done
1976 { ac_configure_args0=; unset ac_configure_args0;}
1977 { ac_configure_args1=; unset ac_configure_args1;}
1979 # When interrupted or exit'd, cleanup temporary files, and complete
1980 # config.log. We remove comments because anyway the quotes in there
1981 # would cause problems or look ugly.
1982 # WARNING: Use '\'' to represent an apostrophe within the trap.
1983 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1984 trap 'exit_status=$?
1985 # Save into config.log some information that might help in debugging.
1987 echo
1989 cat <<\_ASBOX
1990 ## ---------------- ##
1991 ## Cache variables. ##
1992 ## ---------------- ##
1993 _ASBOX
1994 echo
1995 # The following way of writing the cache mishandles newlines in values,
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in #(
2000 *${as_nl}*)
2001 case $ac_var in #(
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004 esac
2005 case $ac_var in #(
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2009 esac ;;
2010 esac
2011 done
2012 (set) 2>&1 |
2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
2015 sed -n \
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018 ;; #(
2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2022 esac |
2023 sort
2025 echo
2027 cat <<\_ASBOX
2028 ## ----------------- ##
2029 ## Output variables. ##
2030 ## ----------------- ##
2031 _ASBOX
2032 echo
2033 for ac_var in $ac_subst_vars
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
2040 done | sort
2041 echo
2043 if test -n "$ac_subst_files"; then
2044 cat <<\_ASBOX
2045 ## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##
2048 _ASBOX
2049 echo
2050 for ac_var in $ac_subst_files
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2061 if test -s confdefs.h; then
2062 cat <<\_ASBOX
2063 ## ----------- ##
2064 ## confdefs.h. ##
2065 ## ----------- ##
2066 _ASBOX
2067 echo
2068 cat confdefs.h
2069 echo
2071 test "$ac_signal" != 0 &&
2072 $as_echo "$as_me: caught signal $ac_signal"
2073 $as_echo "$as_me: exit $exit_status"
2074 } >&5
2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077 exit $exit_status
2079 for ac_signal in 1 2 13 15; do
2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081 done
2082 ac_signal=0
2084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2085 rm -f -r conftest* confdefs.h
2087 $as_echo "/* confdefs.h */" > confdefs.h
2089 # Predefined preprocessor variables.
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_NAME "$PACKAGE_NAME"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097 _ACEOF
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2101 _ACEOF
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_STRING "$PACKAGE_STRING"
2105 _ACEOF
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109 _ACEOF
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_URL "$PACKAGE_URL"
2113 _ACEOF
2116 # Let the site file select an alternate cache file if it wants to.
2117 # Prefer an explicitly selected file to automatically selected ones.
2118 ac_site_file1=NONE
2119 ac_site_file2=NONE
2120 if test -n "$CONFIG_SITE"; then
2121 ac_site_file1=$CONFIG_SITE
2122 elif test "x$prefix" != xNONE; then
2123 ac_site_file1=$prefix/share/config.site
2124 ac_site_file2=$prefix/etc/config.site
2125 else
2126 ac_site_file1=$ac_default_prefix/share/config.site
2127 ac_site_file2=$ac_default_prefix/etc/config.site
2129 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2131 test "x$ac_site_file" = xNONE && continue
2132 if test -r "$ac_site_file"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2135 sed 's/^/| /' "$ac_site_file" >&5
2136 . "$ac_site_file"
2138 done
2140 if test -r "$cache_file"; then
2141 # Some versions of bash will fail to source /dev/null (special
2142 # files actually), so we avoid doing that.
2143 if test -f "$cache_file"; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2145 $as_echo "$as_me: loading cache $cache_file" >&6;}
2146 case $cache_file in
2147 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2148 *) . "./$cache_file";;
2149 esac
2151 else
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2153 $as_echo "$as_me: creating cache $cache_file" >&6;}
2154 >$cache_file
2157 # Check that the precious variables saved in the cache have kept the same
2158 # value.
2159 ac_cache_corrupted=false
2160 for ac_var in $ac_precious_vars; do
2161 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2162 eval ac_new_set=\$ac_env_${ac_var}_set
2163 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2164 eval ac_new_val=\$ac_env_${ac_var}_value
2165 case $ac_old_set,$ac_new_set in
2166 set,)
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2168 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2169 ac_cache_corrupted=: ;;
2170 ,set)
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2172 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2173 ac_cache_corrupted=: ;;
2174 ,);;
2176 if test "x$ac_old_val" != "x$ac_new_val"; then
2177 # differences in whitespace do not lead to failure.
2178 ac_old_val_w=`echo x $ac_old_val`
2179 ac_new_val_w=`echo x $ac_new_val`
2180 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2182 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2183 ac_cache_corrupted=:
2184 else
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2186 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2187 eval $ac_var=\$ac_old_val
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2190 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2192 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2193 fi;;
2194 esac
2195 # Pass precious variables to config.status.
2196 if test "$ac_new_set" = set; then
2197 case $ac_new_val in
2198 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2199 *) ac_arg=$ac_var=$ac_new_val ;;
2200 esac
2201 case " $ac_configure_args " in
2202 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2203 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2204 esac
2206 done
2207 if $ac_cache_corrupted; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2211 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2212 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2214 ## -------------------- ##
2215 ## Main body of script. ##
2216 ## -------------------- ##
2218 ac_ext=c
2219 ac_cpp='$CPP $CPPFLAGS'
2220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232 progname=$0
2233 # if PWD already has a value, it is probably wrong.
2234 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2236 # Export original configure arguments for use by sub-configures.
2237 # Quote arguments with shell meta charatcers.
2238 TOPLEVEL_CONFIGURE_ARGUMENTS=
2239 set -- "$progname" "$@"
2240 for ac_arg
2242 case "$ac_arg" in
2243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2245 # if the argument is of the form -foo=baz, quote the baz part only
2246 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2247 *) ;;
2248 esac
2249 # Add the quoted argument to the list.
2250 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2251 done
2252 if test "$silent" = yes; then
2253 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2255 # Remove the initial space we just introduced and, as these will be
2256 # expanded by make, quote '$'.
2257 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2260 # Find the build, host, and target systems.
2261 ac_aux_dir=
2262 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2263 for ac_t in install-sh install.sh shtool; do
2264 if test -f "$ac_dir/$ac_t"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/$ac_t -c"
2267 break 2
2269 done
2270 done
2271 if test -z "$ac_aux_dir"; then
2272 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2275 # These three variables are undocumented and unsupported,
2276 # and are intended to be withdrawn in a future Autoconf release.
2277 # They can cause serious problems if a builder's source tree is in a directory
2278 # whose full name contains unusual characters.
2279 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2280 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2281 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2284 # Make sure we can run config.sub.
2285 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2286 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2289 $as_echo_n "checking build system type... " >&6; }
2290 if test "${ac_cv_build+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 ac_build_alias=$build_alias
2294 test "x$ac_build_alias" = x &&
2295 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2296 test "x$ac_build_alias" = x &&
2297 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2298 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2303 $as_echo "$ac_cv_build" >&6; }
2304 case $ac_cv_build in
2305 *-*-*) ;;
2306 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2307 esac
2308 build=$ac_cv_build
2309 ac_save_IFS=$IFS; IFS='-'
2310 set x $ac_cv_build
2311 shift
2312 build_cpu=$1
2313 build_vendor=$2
2314 shift; shift
2315 # Remember, the first character of IFS is used to create $*,
2316 # except with old shells:
2317 build_os=$*
2318 IFS=$ac_save_IFS
2319 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2322 case ${build_alias} in
2323 "") build_noncanonical=${build} ;;
2324 *) build_noncanonical=${build_alias} ;;
2325 esac
2329 case ${host_alias} in
2330 "") host_noncanonical=${build_noncanonical} ;;
2331 *) host_noncanonical=${host_alias} ;;
2332 esac
2336 case ${target_alias} in
2337 "") target_noncanonical=${host_noncanonical} ;;
2338 *) target_noncanonical=${target_alias} ;;
2339 esac
2344 test "$host_noncanonical" = "$target_noncanonical" &&
2345 test "$program_prefix$program_suffix$program_transform_name" = \
2346 NONENONEs,x,x, &&
2347 program_transform_name=s,y,y,
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2350 $as_echo_n "checking host system type... " >&6; }
2351 if test "${ac_cv_host+set}" = set; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 if test "x$host_alias" = x; then
2355 ac_cv_host=$ac_cv_build
2356 else
2357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2358 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2363 $as_echo "$ac_cv_host" >&6; }
2364 case $ac_cv_host in
2365 *-*-*) ;;
2366 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2367 esac
2368 host=$ac_cv_host
2369 ac_save_IFS=$IFS; IFS='-'
2370 set x $ac_cv_host
2371 shift
2372 host_cpu=$1
2373 host_vendor=$2
2374 shift; shift
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2377 host_os=$*
2378 IFS=$ac_save_IFS
2379 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2383 $as_echo_n "checking target system type... " >&6; }
2384 if test "${ac_cv_target+set}" = set; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test "x$target_alias" = x; then
2388 ac_cv_target=$ac_cv_host
2389 else
2390 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2391 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2396 $as_echo "$ac_cv_target" >&6; }
2397 case $ac_cv_target in
2398 *-*-*) ;;
2399 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2400 esac
2401 target=$ac_cv_target
2402 ac_save_IFS=$IFS; IFS='-'
2403 set x $ac_cv_target
2404 shift
2405 target_cpu=$1
2406 target_vendor=$2
2407 shift; shift
2408 # Remember, the first character of IFS is used to create $*,
2409 # except with old shells:
2410 target_os=$*
2411 IFS=$ac_save_IFS
2412 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2415 # The aliases save the names the user supplied, while $host etc.
2416 # will get canonicalized.
2417 test -n "$target_alias" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_prefix=${target_alias}-
2422 test "$program_prefix" != NONE &&
2423 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2424 # Use a double $ so make ignores it.
2425 test "$program_suffix" != NONE &&
2426 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2427 # Double any \ or $.
2428 # By default was `s,x,x', remove it if useless.
2429 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2430 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2434 # Get 'install' or 'install-sh' and its variants.
2435 # Find a good install program. We prefer a C program (faster),
2436 # so one script is as good as another. But avoid the broken or
2437 # incompatible versions:
2438 # SysV /etc/install, /usr/sbin/install
2439 # SunOS /usr/etc/install
2440 # IRIX /sbin/install
2441 # AIX /bin/install
2442 # AmigaOS /C/install, which installs bootblocks on floppy discs
2443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2446 # OS/2's system install, which has a completely different semantic
2447 # ./install, which can be erroneously created by make from ./install.sh.
2448 # Reject install programs that cannot install multiple files.
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2450 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2451 if test -z "$INSTALL"; then
2452 if test "${ac_cv_path_install+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 # Account for people who put trailing slashes in PATH elements.
2461 case $as_dir/ in #((
2462 ./ | .// | /[cC]/* | \
2463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2464 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2465 /usr/ucb/* ) ;;
2467 # OSF1 and SCO ODT 3.0 have their own names for install.
2468 # Don't use installbsd from OSF since it installs stuff as root
2469 # by default.
2470 for ac_prog in ginstall scoinst install; do
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2473 if test $ac_prog = install &&
2474 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475 # AIX install. It has an incompatible calling convention.
2477 elif test $ac_prog = install &&
2478 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # program-specific install script used by HP pwplus--don't use.
2481 else
2482 rm -rf conftest.one conftest.two conftest.dir
2483 echo one > conftest.one
2484 echo two > conftest.two
2485 mkdir conftest.dir
2486 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2487 test -s conftest.one && test -s conftest.two &&
2488 test -s conftest.dir/conftest.one &&
2489 test -s conftest.dir/conftest.two
2490 then
2491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2492 break 3
2496 done
2497 done
2499 esac
2501 done
2502 IFS=$as_save_IFS
2504 rm -rf conftest.one conftest.two conftest.dir
2507 if test "${ac_cv_path_install+set}" = set; then
2508 INSTALL=$ac_cv_path_install
2509 else
2510 # As a last resort, use the slow shell script. Don't cache a
2511 # value for INSTALL within a source directory, because that will
2512 # break other packages using the cache if that directory is
2513 # removed, or if the value is a relative name.
2514 INSTALL=$ac_install_sh
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2518 $as_echo "$INSTALL" >&6; }
2520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521 # It thinks the first close brace ends the variable substitution.
2522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2524 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2529 $as_echo_n "checking whether ln works... " >&6; }
2530 if test "${acx_cv_prog_LN+set}" = set; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 rm -f conftestdata_t
2534 echo >conftestdata_f
2535 if ln conftestdata_f conftestdata_t 2>/dev/null
2536 then
2537 acx_cv_prog_LN=ln
2538 else
2539 acx_cv_prog_LN=no
2541 rm -f conftestdata_f conftestdata_t
2544 if test $acx_cv_prog_LN = no; then
2545 LN="cp"
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2547 $as_echo "no, using $LN" >&6; }
2548 else
2549 LN="$acx_cv_prog_LN"
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2551 $as_echo "yes" >&6; }
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2555 $as_echo_n "checking whether ln -s works... " >&6; }
2556 LN_S=$as_ln_s
2557 if test "$LN_S" = "ln -s"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559 $as_echo "yes" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2562 $as_echo "no, using $LN_S" >&6; }
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2566 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2567 if test "${ac_cv_path_SED+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2571 for ac_i in 1 2 3 4 5 6 7; do
2572 ac_script="$ac_script$as_nl$ac_script"
2573 done
2574 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2575 { ac_script=; unset ac_script;}
2576 if test -z "$SED"; then
2577 ac_path_SED_found=false
2578 # Loop through the user's path and test for each of PROGNAME-LIST
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_prog in sed gsed; do
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2587 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2588 # Check for GNU ac_path_SED and select it if it is found.
2589 # Check for GNU $ac_path_SED
2590 case `"$ac_path_SED" --version 2>&1` in
2591 *GNU*)
2592 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2594 ac_count=0
2595 $as_echo_n 0123456789 >"conftest.in"
2596 while :
2598 cat "conftest.in" "conftest.in" >"conftest.tmp"
2599 mv "conftest.tmp" "conftest.in"
2600 cp "conftest.in" "conftest.nl"
2601 $as_echo '' >> "conftest.nl"
2602 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2604 as_fn_arith $ac_count + 1 && ac_count=$as_val
2605 if test $ac_count -gt ${ac_path_SED_max-0}; then
2606 # Best one so far, save it but keep looking for a better one
2607 ac_cv_path_SED="$ac_path_SED"
2608 ac_path_SED_max=$ac_count
2610 # 10*(2^10) chars as input seems more than enough
2611 test $ac_count -gt 10 && break
2612 done
2613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2614 esac
2616 $ac_path_SED_found && break 3
2617 done
2618 done
2619 done
2620 IFS=$as_save_IFS
2621 if test -z "$ac_cv_path_SED"; then
2622 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2624 else
2625 ac_cv_path_SED=$SED
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2630 $as_echo "$ac_cv_path_SED" >&6; }
2631 SED="$ac_cv_path_SED"
2632 rm -f conftest.sed
2634 for ac_prog in gawk mawk nawk awk
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_prog_AWK+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test -n "$AWK"; then
2644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_AWK="$ac_prog"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2657 done
2658 done
2659 IFS=$as_save_IFS
2663 AWK=$ac_cv_prog_AWK
2664 if test -n "$AWK"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666 $as_echo "$AWK" >&6; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2673 test -n "$AWK" && break
2674 done
2677 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2679 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2680 # a relative path.
2681 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2682 INSTALL="${srcpwd}/install-sh -c"
2685 # Set srcdir to "." if that's what it is.
2686 # This is important for multilib support.
2687 pwd=`${PWDCMD-pwd}`
2688 if test "${pwd}" = "${srcpwd}" ; then
2689 srcdir=.
2692 topsrcdir=$srcpwd
2694 extra_host_args=
2696 ### To add a new directory to the tree, first choose whether it is a target
2697 ### or a host dependent tool. Then put it into the appropriate list
2698 ### (library or tools, host or target), doing a dependency sort.
2700 # Subdirs will be configured in the order listed in build_configdirs,
2701 # configdirs, or target_configdirs; see the serialization section below.
2703 # Dependency sorting is only needed when *configuration* must be done in
2704 # a particular order. In all cases a dependency should be specified in
2705 # the Makefile, whether or not it's implicitly specified here.
2707 # Double entries in build_configdirs, configdirs, or target_configdirs may
2708 # cause circular dependencies and break everything horribly.
2710 # these library is used by various programs built for the build
2711 # environment
2713 build_libs="build-libiberty build-libcpp"
2715 # these tools are built for the build environment
2716 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2718 # these libraries are used by various programs built for the host environment
2720 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2722 # these tools are built for the host environment
2723 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2724 # know that we are building the simulator.
2725 # binutils, gas and ld appear in that order because it makes sense to run
2726 # "make check" in that particular order.
2727 # If --enable-gold is used, "gold" may replace "ld".
2728 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
2730 # libgcj represents the runtime libraries only used by gcj.
2731 libgcj="target-libffi \
2732 target-zlib \
2733 target-libjava"
2735 # these libraries are built for the target environment, and are built after
2736 # the host libraries and the host tools (which may be a cross compiler)
2737 # Note that libiberty is not a target library.
2738 target_libraries="target-libgcc \
2739 target-libbacktrace \
2740 target-libgloss \
2741 target-newlib \
2742 target-libgomp \
2743 target-libcilkrts \
2744 target-liboffloadmic \
2745 target-libatomic \
2746 target-libitm \
2747 target-libstdc++-v3 \
2748 target-libsanitizer \
2749 target-libvtv \
2750 target-libssp \
2751 target-libquadmath \
2752 target-libgfortran \
2753 target-boehm-gc \
2754 ${libgcj} \
2755 target-libobjc \
2756 target-libada \
2757 target-libgo"
2759 # these tools are built using the target libraries, and are intended to
2760 # run only in the target environment
2762 # note: any program that *uses* libraries that are in the "target_libraries"
2763 # list belongs in this list.
2765 target_tools="target-rda"
2767 ################################################################################
2769 ## All tools belong in one of the four categories, and are assigned above
2770 ## We assign ${configdirs} this way to remove all embedded newlines. This
2771 ## is important because configure will choke if they ever get through.
2772 ## ${configdirs} is directories we build using the host tools.
2773 ## ${target_configdirs} is directories we build using the target tools.
2774 configdirs=`echo ${host_libs} ${host_tools}`
2775 target_configdirs=`echo ${target_libraries} ${target_tools}`
2776 build_configdirs=`echo ${build_libs} ${build_tools}`
2780 ################################################################################
2782 srcname="gnu development package"
2784 # This gets set non-empty for some net releases of packages.
2785 appdirs=""
2787 # Define is_cross_compiler to save on calls to 'test'.
2788 is_cross_compiler=
2789 if test x"${host}" = x"${target}" ; then
2790 is_cross_compiler=no
2791 else
2792 is_cross_compiler=yes
2795 # Find the build and target subdir names.
2797 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2798 # have matching libraries, they should use host libraries: Makefile.tpl
2799 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2800 # However, they still use the build modules, because the corresponding
2801 # host modules (e.g. bison) are only built for the host when bootstrap
2802 # finishes. So:
2803 # - build_subdir is where we find build modules, and never changes.
2804 # - build_libsubdir is where we find build libraries, and can be overridden.
2806 # Prefix 'build-' so this never conflicts with target_subdir.
2807 build_subdir="build-${build_noncanonical}"
2809 # Check whether --with-build-libsubdir was given.
2810 if test "${with_build_libsubdir+set}" = set; then :
2811 withval=$with_build_libsubdir; build_libsubdir="$withval"
2812 else
2813 build_libsubdir="$build_subdir"
2816 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2817 if ( test $srcdir = . && test -d gcc ) \
2818 || test -d $srcdir/../host-${host_noncanonical}; then
2819 host_subdir="host-${host_noncanonical}"
2820 else
2821 host_subdir=.
2823 # No prefix.
2824 target_subdir=${target_noncanonical}
2826 # Be sure to cover against remnants of an in-tree build.
2827 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2828 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2829 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2832 # Skipdirs are removed silently.
2833 skipdirs=
2834 # Noconfigdirs are removed loudly.
2835 noconfigdirs=""
2837 use_gnu_ld=
2838 # Make sure we don't let GNU ld be added if we didn't want it.
2839 if test x$with_gnu_ld = xno ; then
2840 use_gnu_ld=no
2841 noconfigdirs="$noconfigdirs ld gold"
2844 use_gnu_as=
2845 # Make sure we don't let GNU as be added if we didn't want it.
2846 if test x$with_gnu_as = xno ; then
2847 use_gnu_as=no
2848 noconfigdirs="$noconfigdirs gas"
2851 use_included_zlib=
2852 # Make sure we don't let ZLIB be added if we didn't want it.
2853 if test x$with_system_zlib = xyes ; then
2854 use_included_zlib=no
2855 noconfigdirs="$noconfigdirs zlib"
2858 # some tools are so dependent upon X11 that if we're not building with X,
2859 # it's not even worth trying to configure, much less build, that tool.
2861 case ${with_x} in
2862 yes | "") ;; # the default value for this tree is that X11 is available
2864 skipdirs="${skipdirs} tk itcl libgui"
2865 # We won't be able to build gdbtk without X.
2866 enable_gdbtk=no
2868 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2869 esac
2871 # Some are only suitable for cross toolchains.
2872 # Remove these if host=target.
2873 cross_only="target-libgloss target-newlib target-opcodes"
2875 case $is_cross_compiler in
2876 no) skipdirs="${skipdirs} ${cross_only}" ;;
2877 esac
2879 # If both --with-headers and --with-libs are specified, default to
2880 # --without-newlib.
2881 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2882 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2883 if test x"${with_newlib}" = x ; then
2884 with_newlib=no
2888 # Recognize --with-newlib/--without-newlib.
2889 case ${with_newlib} in
2890 no) skipdirs="${skipdirs} target-newlib" ;;
2891 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2892 esac
2894 # Check whether --enable-as-accelerator-for was given.
2895 if test "${enable_as_accelerator_for+set}" = set; then :
2896 enableval=$enable_as_accelerator_for; ENABLE_AS_ACCELERATOR_FOR=$enableval
2897 else
2898 ENABLE_AS_ACCELERATOR_FOR=no
2902 # Check whether --enable-offload-targets was given.
2903 if test "${enable_offload_targets+set}" = set; then :
2904 enableval=$enable_offload_targets;
2905 if test x"$enable_offload_targets" = x; then
2906 as_fn_error "no offload targets specified" "$LINENO" 5
2909 else
2910 enable_offload_targets=
2914 # Handle --enable-gold, --enable-ld.
2915 # --disable-gold [--enable-ld]
2916 # Build only ld. Default option.
2917 # --enable-gold [--enable-ld]
2918 # Build both gold and ld. Install gold as "ld.gold", install ld
2919 # as "ld.bfd" and "ld".
2920 # --enable-gold=default [--enable-ld]
2921 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2922 # install ld as "ld.bfd".
2923 # --enable-gold[=default] --disable-ld
2924 # Build only gold, which is then installed as both "ld.gold" and "ld".
2925 # --enable-gold --enable-ld=default
2926 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2927 # and ld.bfd).
2928 # In other words, ld is default
2929 # --enable-gold=default --enable-ld=default
2930 # Error.
2932 default_ld=
2933 # Check whether --enable-gold was given.
2934 if test "${enable_gold+set}" = set; then :
2935 enableval=$enable_gold; ENABLE_GOLD=$enableval
2936 else
2937 ENABLE_GOLD=no
2940 case "${ENABLE_GOLD}" in
2941 yes|default)
2942 # Check for ELF target.
2943 is_elf=no
2944 case "${target}" in
2945 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2946 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2947 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2948 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2949 case "${target}" in
2950 *-*-linux*aout* | *-*-linux*oldld*)
2953 is_elf=yes
2955 esac
2956 esac
2958 if test "$is_elf" = "yes"; then
2959 # Check for target supported by gold.
2960 case "${target}" in
2961 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2962 | aarch64*-*-* | tilegx*-*-*)
2963 configdirs="$configdirs gold"
2964 if test x${ENABLE_GOLD} = xdefault; then
2965 default_ld=gold
2967 ENABLE_GOLD=yes
2969 esac
2975 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2977 esac
2979 # Check whether --enable-ld was given.
2980 if test "${enable_ld+set}" = set; then :
2981 enableval=$enable_ld; ENABLE_LD=$enableval
2982 else
2983 ENABLE_LD=yes
2987 case "${ENABLE_LD}" in
2988 default)
2989 if test x${default_ld} != x; then
2990 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2993 yes)
2996 if test x${ENABLE_GOLD} != xyes; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2998 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3000 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3003 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3005 esac
3007 # Configure extra directories which are host specific
3009 case "${host}" in
3010 *-cygwin*)
3011 configdirs="$configdirs libtermcap" ;;
3012 esac
3014 # A target can indicate whether a language isn't supported for some reason.
3015 # Only spaces may be used in this macro; not newlines or tabs.
3016 unsupported_languages=
3018 # Remove more programs from consideration, based on the host or
3019 # target this usually means that a port of the program doesn't
3020 # exist yet.
3022 case "${host}" in
3023 i[3456789]86-*-msdosdjgpp*)
3024 noconfigdirs="$noconfigdirs tcl tk itcl"
3026 esac
3029 # Check whether --enable-libquadmath was given.
3030 if test "${enable_libquadmath+set}" = set; then :
3031 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3032 else
3033 ENABLE_LIBQUADMATH=yes
3036 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3037 noconfigdirs="$noconfigdirs target-libquadmath"
3041 # Check whether --enable-libquadmath-support was given.
3042 if test "${enable_libquadmath_support+set}" = set; then :
3043 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3044 else
3045 ENABLE_LIBQUADMATH_SUPPORT=yes
3048 enable_libquadmath_support=
3049 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3050 enable_libquadmath_support=no
3054 # Check whether --enable-libada was given.
3055 if test "${enable_libada+set}" = set; then :
3056 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3057 else
3058 ENABLE_LIBADA=yes
3061 if test "${ENABLE_LIBADA}" != "yes" ; then
3062 noconfigdirs="$noconfigdirs gnattools"
3065 # Check whether --enable-libssp was given.
3066 if test "${enable_libssp+set}" = set; then :
3067 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3068 else
3069 ENABLE_LIBSSP=yes
3073 # Check whether --enable-libstdcxx was given.
3074 if test "${enable_libstdcxx+set}" = set; then :
3075 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3076 else
3077 ENABLE_LIBSTDCXX=default
3080 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3081 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3084 # If this is accelerator compiler and its target is intelmic we enable
3085 # target liboffloadmic by default. If this is compiler with offloading
3086 # for intelmic we enable host liboffloadmic by default. Otherwise
3087 # liboffloadmic is disabled by default.
3088 # Check whether --enable-liboffloadmic was given.
3089 if test "${enable_liboffloadmic+set}" = set; then :
3090 enableval=$enable_liboffloadmic; case "$enableval" in
3091 no | host | target)
3092 enable_liboffloadmic=$enableval ;;
3094 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3095 esac
3096 else
3097 if test "${ENABLE_AS_ACCELERATOR_FOR}" != "no"; then
3098 case "${target}" in
3099 *-intelmic-* | *-intelmicemul-*)
3100 enable_liboffloadmic=target
3101 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3104 enable_liboffloadmic=no
3106 esac
3107 else
3108 case "${enable_offload_targets}" in
3109 *-intelmic-* | *-intelmicemul-*)
3110 enable_liboffloadmic=host
3111 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3114 enable_liboffloadmic=no
3116 esac
3122 # Save it here so that, even in case of --enable-libgcj, if the Java
3123 # front-end isn't enabled, we still get libgcj disabled.
3124 libgcj_saved=$libgcj
3125 case $enable_libgcj in
3126 yes)
3127 # If we reset it here, it won't get added to noconfigdirs in the
3128 # target-specific build rules, so it will be forcibly enabled
3129 # (unless the Java language itself isn't enabled).
3130 libgcj=
3133 # Make sure we get it printed in the list of not supported target libs.
3134 # Don't disable libffi, though, other languages use it.
3135 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3136 # Clear libgcj_saved so that even if java is enabled libffi won't be
3137 # built.
3138 libgcj_saved=
3140 esac
3142 # Check whether --enable-static-libjava was given.
3143 if test "${enable_static_libjava+set}" = set; then :
3144 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3145 else
3146 ENABLE_STATIC_LIBJAVA=no
3149 enable_static_libjava=
3150 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3151 enable_static_libjava=yes
3154 if test x$enable_static_libjava != xyes ; then
3155 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3159 # Disable libgomp on non POSIX hosted systems.
3160 if test x$enable_libgomp = x ; then
3161 # Enable libgomp by default on hosted POSIX systems.
3162 case "${target}" in
3163 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3165 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3167 *-*-solaris2* | *-*-hpux11*)
3169 *-*-darwin* | *-*-aix*)
3172 noconfigdirs="$noconfigdirs target-libgomp"
3174 esac
3177 # Disable libatomic on unsupported systems.
3178 if test -d ${srcdir}/libatomic; then
3179 if test x$enable_libatomic = x; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3181 $as_echo_n "checking for libatomic support... " >&6; }
3182 if (srcdir=${srcdir}/libatomic; \
3183 . ${srcdir}/configure.tgt; \
3184 test -n "$UNSUPPORTED")
3185 then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 noconfigdirs="$noconfigdirs target-libatomic"
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3196 # Disable libcilkrts on unsupported systems.
3197 if test -d ${srcdir}/libcilkrts; then
3198 if test x$enable_libcilkrts = x; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3200 $as_echo_n "checking for libcilkrts support... " >&6; }
3201 if (srcdir=${srcdir}/libcilkrts; \
3202 . ${srcdir}/configure.tgt; \
3203 test -n "$UNSUPPORTED")
3204 then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 noconfigdirs="$noconfigdirs target-libcilkrts"
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3210 $as_echo "yes" >&6; }
3215 # Disable liboffloadmic on unsupported systems.
3216 if test -d ${srcdir}/liboffloadmic; then
3217 if test x$enable_liboffloadmic != xno; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3219 $as_echo_n "checking for liboffloadmic support... " >&6; }
3220 if (srcdir=${srcdir}/liboffloadmic; \
3221 . ${srcdir}/configure.tgt; \
3222 test -n "$UNSUPPORTED")
3223 then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 noconfigdirs="$noconfigdirs target-liboffloadmic"
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3229 $as_echo "yes" >&6; }
3234 # Disable libitm on unsupported systems.
3235 if test -d ${srcdir}/libitm; then
3236 if test x$enable_libitm = x; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3238 $as_echo_n "checking for libitm support... " >&6; }
3239 if (srcdir=${srcdir}/libitm; \
3240 . ${srcdir}/configure.tgt; \
3241 test -n "$UNSUPPORTED")
3242 then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 noconfigdirs="$noconfigdirs target-libitm"
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248 $as_echo "yes" >&6; }
3253 # Disable libsanitizer on unsupported systems.
3254 if test -d ${srcdir}/libsanitizer; then
3255 if test x$enable_libsanitizer = x; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3257 $as_echo_n "checking for libsanitizer support... " >&6; }
3258 if (srcdir=${srcdir}/libsanitizer; \
3259 . ${srcdir}/configure.tgt; \
3260 test -n "$UNSUPPORTED")
3261 then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 noconfigdirs="$noconfigdirs target-libsanitizer"
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 $as_echo "yes" >&6; }
3272 # Disable libvtv on unsupported systems.
3273 if test -d ${srcdir}/libvtv; then
3274 if test x$enable_libvtv = x; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3276 $as_echo_n "checking for libvtv support... " >&6; }
3277 if (srcdir=${srcdir}/libvtv; \
3278 . ${srcdir}/configure.tgt; \
3279 test "$VTV_SUPPORTED" != "yes")
3280 then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 noconfigdirs="$noconfigdirs target-libvtv"
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3291 # Disable libquadmath for some systems.
3292 case "${target}" in
3293 avr-*-*)
3294 noconfigdirs="$noconfigdirs target-libquadmath"
3296 # libquadmath is unused on AIX and libquadmath build process use of
3297 # LD_LIBRARY_PATH can break AIX bootstrap.
3298 powerpc-*-aix* | rs6000-*-aix*)
3299 noconfigdirs="$noconfigdirs target-libquadmath"
3301 esac
3303 # Disable libssp for some systems.
3304 case "${target}" in
3305 avr-*-*)
3306 # No hosted I/O support.
3307 noconfigdirs="$noconfigdirs target-libssp"
3309 powerpc-*-aix* | rs6000-*-aix*)
3310 noconfigdirs="$noconfigdirs target-libssp"
3312 rl78-*-*)
3313 # libssp uses a misaligned load to trigger a fault, but the RL78
3314 # doesn't fault for those - instead, it gives a build-time error
3315 # for explicit misaligned loads.
3316 noconfigdirs="$noconfigdirs target-libssp"
3318 esac
3320 # Disable libstdc++-v3 for some systems.
3321 # Allow user to override this if they pass --enable-libstdc++-v3
3322 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3323 case "${target}" in
3324 *-*-vxworks*)
3325 # VxWorks uses the Dinkumware C++ library.
3326 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3328 arm*-wince-pe*)
3329 # the C++ libraries don't build on top of CE's C libraries
3330 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3332 avr-*-*)
3333 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3335 esac
3338 # Disable Fortran for some systems.
3339 case "${target}" in
3340 mmix-*-*)
3341 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3342 unsupported_languages="$unsupported_languages fortran"
3344 esac
3346 # Disable Java if libffi is not supported.
3347 case "${target}" in
3348 aarch64-*-*)
3350 alpha*-*-*)
3352 arm*-*-*)
3354 cris-*-*)
3356 frv-*-*)
3358 hppa*-*-linux*)
3360 hppa*-*-hpux*)
3362 i?86-*-*)
3364 ia64*-*-*)
3366 m32r*-*-*)
3368 m68k-*-*)
3370 mips*-*-rtems*)
3372 mips*-*-linux*)
3374 powerpc*-*-linux*)
3376 powerpc-*-darwin*)
3378 powerpc-*-aix* | rs6000-*-aix*)
3380 powerpc-*-freebsd*)
3382 powerpc64-*-freebsd*)
3384 powerpc*-*-rtems*)
3386 s390-*-* | s390x-*-*)
3388 sh-*-* | sh[34]*-*-*)
3390 sh64-*-* | sh5*-*-*)
3392 sparc*-*-*)
3394 x86_64-*-*)
3396 *-*-*)
3397 unsupported_languages="$unsupported_languages java"
3399 esac
3401 # Disable Java, libgcj or related libraries for some systems.
3402 case "${target}" in
3403 powerpc-*-darwin*)
3405 i[3456789]86-*-darwin*)
3407 x86_64-*-darwin[912]*)
3409 *-*-darwin*)
3410 noconfigdirs="$noconfigdirs ${libgcj}"
3412 *-*-netware*)
3413 noconfigdirs="$noconfigdirs ${libgcj}"
3415 *-*-rtems*)
3416 noconfigdirs="$noconfigdirs ${libgcj}"
3418 *-*-tpf*)
3419 noconfigdirs="$noconfigdirs ${libgcj}"
3421 *-*-uclinux*)
3422 noconfigdirs="$noconfigdirs ${libgcj}"
3424 *-*-vxworks*)
3425 noconfigdirs="$noconfigdirs ${libgcj}"
3427 alpha*-*-*vms*)
3428 noconfigdirs="$noconfigdirs ${libgcj}"
3430 arm-wince-pe)
3431 noconfigdirs="$noconfigdirs ${libgcj}"
3433 arm*-*-symbianelf*)
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3436 bfin-*-*)
3437 noconfigdirs="$noconfigdirs target-boehm-gc"
3439 cris-*-* | crisv32-*-*)
3440 unsupported_languages="$unsupported_languages java"
3441 case "${target}" in
3442 *-*-linux*)
3444 *) # See PR46792 regarding target-libffi.
3445 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3446 esac
3448 hppa*64*-*-linux*)
3449 # In this case, it's because the hppa64-linux target is for
3450 # the kernel only at this point and has no libc, and thus no
3451 # headers, crt*.o, etc., all of which are needed by these.
3452 unsupported_languages="$unsupported_languages java"
3454 hppa*64*-*-hpux*)
3455 noconfigdirs="$noconfigdirs ${libgcj}"
3457 hppa*-hp-hpux11*)
3459 hppa*-*-hpux*)
3460 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3461 # build on HP-UX 10.20.
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3464 ia64*-*-*vms*)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3467 i[3456789]86-w64-mingw*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3470 i[3456789]86-*-mingw*)
3471 noconfigdirs="$noconfigdirs ${libgcj}"
3473 x86_64-*-mingw*)
3474 noconfigdirs="$noconfigdirs ${libgcj}"
3476 mmix-*-*)
3477 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3479 powerpc-*-aix*)
3480 # copied from rs6000-*-* entry
3481 noconfigdirs="$noconfigdirs ${libgcj}"
3483 rs6000-*-aix*)
3484 noconfigdirs="$noconfigdirs ${libgcj}"
3486 *-*-lynxos*)
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3489 esac
3491 # Disable the go frontend on systems where it is known to not work. Please keep
3492 # this in sync with contrib/config-list.mk.
3493 case "${target}" in
3494 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3495 unsupported_languages="$unsupported_languages go"
3497 esac
3499 # Disable libgo for some systems where it is known to not work.
3500 # For testing, you can easily override this with --enable-libgo.
3501 if test x$enable_libgo = x; then
3502 case "${target}" in
3503 *-*-darwin*)
3504 # PR 46986
3505 noconfigdirs="$noconfigdirs target-libgo"
3507 *-*-cygwin* | *-*-mingw*)
3508 noconfigdirs="$noconfigdirs target-libgo"
3510 *-*-aix*)
3511 noconfigdirs="$noconfigdirs target-libgo"
3513 esac
3516 # Default libgloss CPU subdirectory.
3517 libgloss_dir="$target_cpu"
3519 case "${target}" in
3520 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3521 libgloss_dir=wince
3523 aarch64*-*-* )
3524 libgloss_dir=aarch64
3526 arm*-*-*)
3527 libgloss_dir=arm
3529 cris-*-* | crisv32-*-*)
3530 libgloss_dir=cris
3532 hppa*-*-*)
3533 libgloss_dir=pa
3535 i[3456789]86-*-*)
3536 libgloss_dir=i386
3538 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3539 libgloss_dir=m68hc11
3541 m68*-*-* | fido-*-*)
3542 libgloss_dir=m68k
3544 mips*-*-*)
3545 libgloss_dir=mips
3547 powerpc*-*-*)
3548 libgloss_dir=rs6000
3550 sparc*-*-*)
3551 libgloss_dir=sparc
3553 esac
3555 # Disable newlib and libgloss for various target OSes.
3556 case "${target}" in
3557 alpha*-dec-osf*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 i[3456789]86-*-linux*)
3561 # This section makes it possible to build newlib natively on linux.
3562 # If we are using a cross compiler then don't configure newlib.
3563 if test x${is_cross_compiler} != xno ; then
3564 noconfigdirs="$noconfigdirs target-newlib"
3566 noconfigdirs="$noconfigdirs target-libgloss"
3567 # If we are not using a cross compiler, do configure newlib.
3568 # Note however, that newlib will only be configured in this situation
3569 # if the --with-newlib option has been given, because otherwise
3570 # 'target-newlib' will appear in skipdirs.
3572 i[3456789]86-*-rdos*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 sparc-*-sunos4*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 *-*-aix*)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 *-*-beos*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 *-*-chorusos)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 *-*-dragonfly*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 *-*-freebsd*)
3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 *-*-lynxos*)
3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 *-*-mingw*)
3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 *-*-netbsd*)
3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 *-*-netware*)
3609 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 *-*-tpf*)
3612 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 *-*-uclinux*)
3615 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 *-*-vxworks*)
3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 esac
3622 case "${target}" in
3623 *-*-chorusos)
3625 powerpc-*-darwin*)
3626 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3627 noconfigdirs="$noconfigdirs sim target-rda"
3629 i[3456789]86-*-darwin*)
3630 noconfigdirs="$noconfigdirs ld gprof"
3631 noconfigdirs="$noconfigdirs sim target-rda"
3633 x86_64-*-darwin[912]*)
3634 noconfigdirs="$noconfigdirs ld gas gprof"
3635 noconfigdirs="$noconfigdirs sim target-rda"
3637 *-*-darwin*)
3638 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3639 noconfigdirs="$noconfigdirs sim target-rda"
3641 *-*-dragonfly*)
3643 *-*-freebsd*)
3644 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3645 && test -f /usr/local/include/gmp.h; then
3646 with_gmp=/usr/local
3649 *-*-kaos*)
3650 # Remove unsupported stuff on all kaOS configurations.
3651 noconfigdirs="$noconfigdirs target-libgloss"
3653 *-*-netbsd*)
3655 *-*-netware*)
3657 *-*-rtems*)
3658 noconfigdirs="$noconfigdirs target-libgloss"
3659 # this is not caught below because this stanza matches earlier
3660 case $target in
3661 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3662 esac
3664 # The tpf target doesn't support gdb yet.
3665 *-*-tpf*)
3666 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3668 *-*-uclinux*)
3669 noconfigdirs="$noconfigdirs target-rda"
3671 *-*-vxworks*)
3673 alpha*-dec-osf*)
3674 # ld works, but does not support shared libraries.
3675 # gas doesn't generate exception information.
3676 noconfigdirs="$noconfigdirs gas ld"
3678 alpha*-*-*vms*)
3679 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3681 alpha*-*-*)
3682 # newlib is not 64 bit ready
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3686 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3688 arc-*-*|arceb-*-*)
3689 noconfigdirs="$noconfigdirs target-libgloss"
3691 arm-*-pe*)
3692 noconfigdirs="$noconfigdirs target-libgloss"
3694 arm-*-riscix*)
3695 noconfigdirs="$noconfigdirs ld target-libgloss"
3697 avr-*-rtems*)
3699 avr-*-*)
3700 if test x${with_avrlibc} != xno; then
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 c4x-*-* | tic4x-*-*)
3705 noconfigdirs="$noconfigdirs target-libgloss"
3707 tic54x-*-*)
3708 noconfigdirs="$noconfigdirs target-libgloss gdb"
3710 d10v-*-*)
3711 noconfigdirs="$noconfigdirs target-libgloss"
3713 d30v-*-*)
3714 noconfigdirs="$noconfigdirs gdb"
3716 fr30-*-elf*)
3717 noconfigdirs="$noconfigdirs gdb"
3719 moxie-*-*)
3720 noconfigdirs="$noconfigdirs gprof"
3722 h8300*-*-*)
3723 noconfigdirs="$noconfigdirs target-libgloss"
3725 h8500-*-*)
3726 noconfigdirs="$noconfigdirs target-libgloss"
3728 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3730 hppa*64*-*-linux*)
3732 hppa*-*-linux*)
3734 hppa*-*-*elf* | \
3735 hppa*-*-lites* | \
3736 hppa*-*-openbsd* | \
3737 hppa*64*-*-*)
3739 hppa*-hp-hpux11*)
3740 noconfigdirs="$noconfigdirs ld"
3742 hppa*-*-pro*)
3744 hppa*-*-*)
3745 noconfigdirs="$noconfigdirs ld"
3747 i960-*-*)
3748 noconfigdirs="$noconfigdirs gdb"
3750 ia64*-*-elf*)
3751 # No gdb support yet.
3752 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3754 ia64*-**-hpux*)
3755 # No ld support yet.
3756 noconfigdirs="$noconfigdirs libgui itcl ld"
3758 ia64*-*-*vms*)
3759 # No ld support yet.
3760 noconfigdirs="$noconfigdirs libgui itcl ld"
3762 i[3456789]86-w64-mingw*)
3764 i[3456789]86-*-mingw*)
3765 target_configdirs="$target_configdirs target-winsup"
3767 *-*-cygwin*)
3768 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3769 noconfigdirs="$noconfigdirs target-libgloss"
3770 # always build newlib if winsup directory is present.
3771 if test -d "$srcdir/winsup/cygwin"; then
3772 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3773 elif test -d "$srcdir/newlib"; then
3774 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3777 i[3456789]86-*-pe)
3778 noconfigdirs="$noconfigdirs target-libgloss"
3780 i[3456789]86-*-sco3.2v5*)
3781 # The linker does not yet know about weak symbols in COFF,
3782 # and is not configured to handle mixed ELF and COFF.
3783 noconfigdirs="$noconfigdirs ld target-libgloss"
3785 i[3456789]86-*-sco*)
3786 noconfigdirs="$noconfigdirs gprof target-libgloss"
3788 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3789 noconfigdirs="$noconfigdirs target-libgloss"
3791 i[3456789]86-*-sysv4*)
3792 noconfigdirs="$noconfigdirs target-libgloss"
3794 i[3456789]86-*-beos*)
3795 noconfigdirs="$noconfigdirs gdb"
3797 i[3456789]86-*-rdos*)
3798 noconfigdirs="$noconfigdirs gdb"
3800 mmix-*-*)
3801 noconfigdirs="$noconfigdirs gdb"
3803 mt-*-*)
3804 noconfigdirs="$noconfigdirs sim"
3806 powerpc-*-aix*)
3807 # copied from rs6000-*-* entry
3808 noconfigdirs="$noconfigdirs gprof"
3810 powerpc*-*-winnt* | powerpc*-*-pe*)
3811 target_configdirs="$target_configdirs target-winsup"
3812 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3813 # always build newlib.
3814 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3816 # This is temporary until we can link against shared libraries
3817 powerpcle-*-solaris*)
3818 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3820 powerpc-*-beos*)
3821 noconfigdirs="$noconfigdirs gdb"
3823 rs6000-*-lynxos*)
3824 noconfigdirs="$noconfigdirs gprof"
3826 rs6000-*-aix*)
3827 noconfigdirs="$noconfigdirs gprof"
3829 rs6000-*-*)
3830 noconfigdirs="$noconfigdirs gprof"
3832 m68k-apollo-*)
3833 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3835 microblaze*)
3836 noconfigdirs="$noconfigdirs gprof"
3838 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3839 if test x$with_newlib = xyes; then
3840 noconfigdirs="$noconfigdirs gprof"
3843 mips*-*-irix5*)
3844 noconfigdirs="$noconfigdirs gprof target-libgloss"
3846 mips*-*-irix6*)
3847 noconfigdirs="$noconfigdirs gprof target-libgloss"
3849 mips*-*-bsd*)
3850 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3852 mips*-*-linux*)
3854 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3855 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3856 noconfigdirs="$noconfigdirs ld gas gprof"
3858 mips*-*-*)
3859 noconfigdirs="$noconfigdirs gprof"
3861 nds32*-*-*)
3862 noconfigdirs="$noconfigdirs gdb"
3864 nvptx*-*-*)
3865 # nvptx is just a compiler
3866 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3868 or1k*-*-*)
3869 noconfigdirs="$noconfigdirs gdb"
3871 sh-*-* | sh64-*-*)
3872 case "${target}" in
3873 sh*-*-elf)
3876 noconfigdirs="$noconfigdirs target-libgloss" ;;
3877 esac
3879 sparc-*-sunos4*)
3880 if test x${is_cross_compiler} = xno ; then
3881 use_gnu_ld=no
3884 tic6x-*-*)
3885 noconfigdirs="$noconfigdirs sim"
3887 tilepro*-*-* | tilegx*-*-*)
3888 noconfigdirs="$noconfigdirs sim"
3890 v810-*-*)
3891 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3893 vax-*-*)
3894 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3896 esac
3898 # If we aren't building newlib, then don't build libgloss, since libgloss
3899 # depends upon some newlib header files.
3900 case "${noconfigdirs}" in
3901 *target-libgloss*) ;;
3902 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3903 esac
3905 # Work in distributions that contain no compiler tools, like Autoconf.
3906 host_makefile_frag=/dev/null
3907 if test -d ${srcdir}/config ; then
3908 case "${host}" in
3909 i[3456789]86-*-msdosdjgpp*)
3910 host_makefile_frag="config/mh-djgpp"
3912 *-cygwin*)
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3915 $as_echo_n "checking to see if cat works as expected... " >&6; }
3916 echo a >cygwin-cat-check
3917 if test `cat cygwin-cat-check` = a ; then
3918 rm cygwin-cat-check
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920 $as_echo "yes" >&6; }
3921 else
3922 rm cygwin-cat-check
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 as_fn_error "The cat command does not ignore carriage return characters.
3926 Please either mount the build directory in binary mode or run the following
3927 commands before running any configure script:
3928 set -o igncr
3929 export SHELLOPTS
3930 " "$LINENO" 5
3933 host_makefile_frag="config/mh-cygwin"
3935 *-mingw*)
3936 host_makefile_frag="config/mh-mingw"
3938 alpha*-*-linux*)
3939 host_makefile_frag="config/mh-alpha-linux"
3941 hppa*-hp-hpux10*)
3942 host_makefile_frag="config/mh-pa-hpux10"
3944 hppa*-hp-hpux*)
3945 host_makefile_frag="config/mh-pa"
3947 hppa*-*)
3948 host_makefile_frag="config/mh-pa"
3950 *-*-darwin*)
3951 host_makefile_frag="config/mh-darwin"
3953 powerpc-*-aix*)
3954 host_makefile_frag="config/mh-ppc-aix"
3956 rs6000-*-aix*)
3957 host_makefile_frag="config/mh-ppc-aix"
3959 esac
3962 if test "${build}" != "${host}" ; then
3963 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3964 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3965 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3966 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3967 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3968 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3969 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3970 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3971 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3972 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3973 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3974 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3975 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3976 else
3977 AR_FOR_BUILD="\$(AR)"
3978 AS_FOR_BUILD="\$(AS)"
3979 CC_FOR_BUILD="\$(CC)"
3980 CXX_FOR_BUILD="\$(CXX)"
3981 GCJ_FOR_BUILD="\$(GCJ)"
3982 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3983 GOC_FOR_BUILD="\$(GOC)"
3984 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3985 LD_FOR_BUILD="\$(LD)"
3986 NM_FOR_BUILD="\$(NM)"
3987 RANLIB_FOR_BUILD="\$(RANLIB)"
3988 WINDRES_FOR_BUILD="\$(WINDRES)"
3989 WINDMC_FOR_BUILD="\$(WINDMC)"
3992 ac_ext=c
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if test "${ac_cv_prog_CC+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 if test -n "$CC"; then
4006 ac_cv_prog_CC="$CC" # Let the user override the test.
4007 else
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4019 done
4020 done
4021 IFS=$as_save_IFS
4025 CC=$ac_cv_prog_CC
4026 if test -n "$CC"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4028 $as_echo "$CC" >&6; }
4029 else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4036 if test -z "$ac_cv_prog_CC"; then
4037 ac_ct_CC=$CC
4038 # Extract the first word of "gcc", so it can be a program name with args.
4039 set dummy gcc; ac_word=$2
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041 $as_echo_n "checking for $ac_word... " >&6; }
4042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 if test -n "$ac_ct_CC"; then
4046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4055 ac_cv_prog_ac_ct_CC="gcc"
4056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 break 2
4059 done
4060 done
4061 IFS=$as_save_IFS
4065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4066 if test -n "$ac_ct_CC"; then
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4068 $as_echo "$ac_ct_CC" >&6; }
4069 else
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071 $as_echo "no" >&6; }
4074 if test "x$ac_ct_CC" = x; then
4075 CC=""
4076 else
4077 case $cross_compiling:$ac_tool_warned in
4078 yes:)
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4081 ac_tool_warned=yes ;;
4082 esac
4083 CC=$ac_ct_CC
4085 else
4086 CC="$ac_cv_prog_CC"
4089 if test -z "$CC"; then
4090 if test -n "$ac_tool_prefix"; then
4091 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4092 set dummy ${ac_tool_prefix}cc; ac_word=$2
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094 $as_echo_n "checking for $ac_word... " >&6; }
4095 if test "${ac_cv_prog_CC+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 if test -n "$CC"; then
4099 ac_cv_prog_CC="$CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4108 ac_cv_prog_CC="${ac_tool_prefix}cc"
4109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4112 done
4113 done
4114 IFS=$as_save_IFS
4118 CC=$ac_cv_prog_CC
4119 if test -n "$CC"; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4121 $as_echo "$CC" >&6; }
4122 else
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4130 if test -z "$CC"; then
4131 # Extract the first word of "cc", so it can be a program name with args.
4132 set dummy cc; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if test "${ac_cv_prog_CC+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -n "$CC"; then
4139 ac_cv_prog_CC="$CC" # Let the user override the test.
4140 else
4141 ac_prog_rejected=no
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4149 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4150 ac_prog_rejected=yes
4151 continue
4153 ac_cv_prog_CC="cc"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4157 done
4158 done
4159 IFS=$as_save_IFS
4161 if test $ac_prog_rejected = yes; then
4162 # We found a bogon in the path, so make sure we never use it.
4163 set dummy $ac_cv_prog_CC
4164 shift
4165 if test $# != 0; then
4166 # We chose a different compiler from the bogus one.
4167 # However, it has the same basename, so the bogon will be chosen
4168 # first if we set CC to just the basename; use the full file name.
4169 shift
4170 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4175 CC=$ac_cv_prog_CC
4176 if test -n "$CC"; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4178 $as_echo "$CC" >&6; }
4179 else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4186 if test -z "$CC"; then
4187 if test -n "$ac_tool_prefix"; then
4188 for ac_prog in cl.exe
4190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if test "${ac_cv_prog_CC+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 if test -n "$CC"; then
4198 ac_cv_prog_CC="$CC" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4211 done
4212 done
4213 IFS=$as_save_IFS
4217 CC=$ac_cv_prog_CC
4218 if test -n "$CC"; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4220 $as_echo "$CC" >&6; }
4221 else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4227 test -n "$CC" && break
4228 done
4230 if test -z "$CC"; then
4231 ac_ct_CC=$CC
4232 for ac_prog in cl.exe
4234 # Extract the first word of "$ac_prog", so it can be a program name with args.
4235 set dummy $ac_prog; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$ac_ct_CC"; then
4242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_ac_ct_CC="$ac_prog"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4255 done
4256 done
4257 IFS=$as_save_IFS
4261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4262 if test -n "$ac_ct_CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4264 $as_echo "$ac_ct_CC" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4271 test -n "$ac_ct_CC" && break
4272 done
4274 if test "x$ac_ct_CC" = x; then
4275 CC=""
4276 else
4277 case $cross_compiling:$ac_tool_warned in
4278 yes:)
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4281 ac_tool_warned=yes ;;
4282 esac
4283 CC=$ac_ct_CC
4290 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error "no acceptable C compiler found in \$PATH
4293 See \`config.log' for more details." "$LINENO" 5; }
4295 # Provide some information about the compiler.
4296 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4297 set X $ac_compile
4298 ac_compiler=$2
4299 for ac_option in --version -v -V -qversion; do
4300 { { ac_try="$ac_compiler $ac_option >&5"
4301 case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4308 ac_status=$?
4309 if test -s conftest.err; then
4310 sed '10a\
4311 ... rest of stderr output deleted ...
4312 10q' conftest.err >conftest.er1
4313 cat conftest.er1 >&5
4314 rm -f conftest.er1 conftest.err
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }
4318 done
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4324 main ()
4328 return 0;
4330 _ACEOF
4331 ac_clean_files_save=$ac_clean_files
4332 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4333 # Try to create an executable without -o first, disregard a.out.
4334 # It will help us diagnose broken compilers, and finding out an intuition
4335 # of exeext.
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4337 $as_echo_n "checking for C compiler default output file name... " >&6; }
4338 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4340 # The possible output files:
4341 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4343 ac_rmfiles=
4344 for ac_file in $ac_files
4346 case $ac_file in
4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4348 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4349 esac
4350 done
4351 rm -f $ac_rmfiles
4353 if { { ac_try="$ac_link_default"
4354 case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357 esac
4358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359 $as_echo "$ac_try_echo"; } >&5
4360 (eval "$ac_link_default") 2>&5
4361 ac_status=$?
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; }; then :
4364 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4365 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4366 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4367 # so that the user can short-circuit this test for compilers unknown to
4368 # Autoconf.
4369 for ac_file in $ac_files ''
4371 test -f "$ac_file" || continue
4372 case $ac_file in
4373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4375 [ab].out )
4376 # We found the default executable, but exeext='' is most
4377 # certainly right.
4378 break;;
4379 *.* )
4380 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4381 then :; else
4382 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4384 # We set ac_cv_exeext here because the later test for it is not
4385 # safe: cross compilers may not add the suffix if given an `-o'
4386 # argument, so we may need to know it at that point already.
4387 # Even if this section looks crufty: it has the advantage of
4388 # actually working.
4389 break;;
4391 break;;
4392 esac
4393 done
4394 test "$ac_cv_exeext" = no && ac_cv_exeext=
4396 else
4397 ac_file=''
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4400 $as_echo "$ac_file" >&6; }
4401 if test -z "$ac_file"; then :
4402 $as_echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407 { as_fn_set_status 77
4408 as_fn_error "C compiler cannot create executables
4409 See \`config.log' for more details." "$LINENO" 5; }; }
4411 ac_exeext=$ac_cv_exeext
4413 # Check that the compiler produces executables we can run. If not, either
4414 # the compiler is broken, or we cross compile.
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4416 $as_echo_n "checking whether the C compiler works... " >&6; }
4417 # If not cross compiling, check that we can run a simple program.
4418 if test "$cross_compiling" != yes; then
4419 if { ac_try='./$ac_file'
4420 { { case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_try") 2>&5
4427 ac_status=$?
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; }; then
4430 cross_compiling=no
4431 else
4432 if test "$cross_compiling" = maybe; then
4433 cross_compiling=yes
4434 else
4435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437 as_fn_error "cannot run C compiled programs.
4438 If you meant to cross compile, use \`--host'.
4439 See \`config.log' for more details." "$LINENO" 5; }
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444 $as_echo "yes" >&6; }
4446 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4447 ac_clean_files=$ac_clean_files_save
4448 # Check that the compiler produces executables we can run. If not, either
4449 # the compiler is broken, or we cross compile.
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4451 $as_echo_n "checking whether we are cross compiling... " >&6; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4453 $as_echo "$cross_compiling" >&6; }
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4456 $as_echo_n "checking for suffix of executables... " >&6; }
4457 if { { ac_try="$ac_link"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463 $as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_link") 2>&5
4465 ac_status=$?
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }; then :
4468 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4469 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4470 # work properly (i.e., refer to `conftest.exe'), while it won't with
4471 # `rm'.
4472 for ac_file in conftest.exe conftest conftest.*; do
4473 test -f "$ac_file" || continue
4474 case $ac_file in
4475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4476 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4477 break;;
4478 * ) break;;
4479 esac
4480 done
4481 else
4482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484 as_fn_error "cannot compute suffix of executables: cannot compile and link
4485 See \`config.log' for more details." "$LINENO" 5; }
4487 rm -f conftest$ac_cv_exeext
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4489 $as_echo "$ac_cv_exeext" >&6; }
4491 rm -f conftest.$ac_ext
4492 EXEEXT=$ac_cv_exeext
4493 ac_exeext=$EXEEXT
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4495 $as_echo_n "checking for suffix of object files... " >&6; }
4496 if test "${ac_cv_objext+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4503 main ()
4507 return 0;
4509 _ACEOF
4510 rm -f conftest.o conftest.obj
4511 if { { ac_try="$ac_compile"
4512 case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515 esac
4516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517 $as_echo "$ac_try_echo"; } >&5
4518 (eval "$ac_compile") 2>&5
4519 ac_status=$?
4520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }; then :
4522 for ac_file in conftest.o conftest.obj conftest.*; do
4523 test -f "$ac_file" || continue;
4524 case $ac_file in
4525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4527 break;;
4528 esac
4529 done
4530 else
4531 $as_echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error "cannot compute suffix of object files: cannot compile
4537 See \`config.log' for more details." "$LINENO" 5; }
4539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4542 $as_echo "$ac_cv_objext" >&6; }
4543 OBJEXT=$ac_cv_objext
4544 ac_objext=$OBJEXT
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4547 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4554 main ()
4556 #ifndef __GNUC__
4557 choke me
4558 #endif
4561 return 0;
4563 _ACEOF
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565 ac_compiler_gnu=yes
4566 else
4567 ac_compiler_gnu=no
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4574 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4575 if test $ac_compiler_gnu = yes; then
4576 GCC=yes
4577 else
4578 GCC=
4580 ac_test_CFLAGS=${CFLAGS+set}
4581 ac_save_CFLAGS=$CFLAGS
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4583 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4584 if test "${ac_cv_prog_cc_g+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 ac_save_c_werror_flag=$ac_c_werror_flag
4588 ac_c_werror_flag=yes
4589 ac_cv_prog_cc_g=no
4590 CFLAGS="-g"
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4595 main ()
4599 return 0;
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_prog_cc_g=yes
4604 else
4605 CFLAGS=""
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4610 main ()
4614 return 0;
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4619 else
4620 ac_c_werror_flag=$ac_save_c_werror_flag
4621 CFLAGS="-g"
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4626 main ()
4630 return 0;
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"; then :
4634 ac_cv_prog_cc_g=yes
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 ac_c_werror_flag=$ac_save_c_werror_flag
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4644 $as_echo "$ac_cv_prog_cc_g" >&6; }
4645 if test "$ac_test_CFLAGS" = set; then
4646 CFLAGS=$ac_save_CFLAGS
4647 elif test $ac_cv_prog_cc_g = yes; then
4648 if test "$GCC" = yes; then
4649 CFLAGS="-g -O2"
4650 else
4651 CFLAGS="-g"
4653 else
4654 if test "$GCC" = yes; then
4655 CFLAGS="-O2"
4656 else
4657 CFLAGS=
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4662 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 ac_cv_prog_cc_c89=no
4666 ac_save_CC=$CC
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4669 #include <stdarg.h>
4670 #include <stdio.h>
4671 #include <sys/types.h>
4672 #include <sys/stat.h>
4673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4674 struct buf { int x; };
4675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4676 static char *e (p, i)
4677 char **p;
4678 int i;
4680 return p[i];
4682 static char *f (char * (*g) (char **, int), char **p, ...)
4684 char *s;
4685 va_list v;
4686 va_start (v,p);
4687 s = g (p, va_arg (v,int));
4688 va_end (v);
4689 return s;
4692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4693 function prototypes and stuff, but not '\xHH' hex character constants.
4694 These don't provoke an error unfortunately, instead are silently treated
4695 as 'x'. The following induces an error, until -std is added to get
4696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4697 array size at least. It's necessary to write '\x00'==0 to get something
4698 that's true only with -std. */
4699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4702 inside strings and character constants. */
4703 #define FOO(x) 'x'
4704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4706 int test (int i, double x);
4707 struct s1 {int (*f) (int a);};
4708 struct s2 {int (*f) (double a);};
4709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4710 int argc;
4711 char **argv;
4713 main ()
4715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4717 return 0;
4719 _ACEOF
4720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4723 CC="$ac_save_CC $ac_arg"
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 ac_cv_prog_cc_c89=$ac_arg
4727 rm -f core conftest.err conftest.$ac_objext
4728 test "x$ac_cv_prog_cc_c89" != "xno" && break
4729 done
4730 rm -f conftest.$ac_ext
4731 CC=$ac_save_CC
4734 # AC_CACHE_VAL
4735 case "x$ac_cv_prog_cc_c89" in
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4738 $as_echo "none needed" >&6; } ;;
4739 xno)
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741 $as_echo "unsupported" >&6; } ;;
4743 CC="$CC $ac_cv_prog_cc_c89"
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4745 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4746 esac
4747 if test "x$ac_cv_prog_cc_c89" != xno; then :
4751 ac_ext=c
4752 ac_cpp='$CPP $CPPFLAGS'
4753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 ac_ext=cpp
4758 ac_cpp='$CXXCPP $CPPFLAGS'
4759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4762 if test -z "$CXX"; then
4763 if test -n "$CCC"; then
4764 CXX=$CCC
4765 else
4766 if test -n "$ac_tool_prefix"; then
4767 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_CXX+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$CXX"; then
4777 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4790 done
4791 done
4792 IFS=$as_save_IFS
4796 CXX=$ac_cv_prog_CXX
4797 if test -n "$CXX"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4799 $as_echo "$CXX" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4806 test -n "$CXX" && break
4807 done
4809 if test -z "$CXX"; then
4810 ac_ct_CXX=$CXX
4811 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4813 # Extract the first word of "$ac_prog", so it can be a program name with args.
4814 set dummy $ac_prog; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$ac_ct_CXX"; then
4821 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_ac_ct_CXX="$ac_prog"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4834 done
4835 done
4836 IFS=$as_save_IFS
4840 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4841 if test -n "$ac_ct_CXX"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4843 $as_echo "$ac_ct_CXX" >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4850 test -n "$ac_ct_CXX" && break
4851 done
4853 if test "x$ac_ct_CXX" = x; then
4854 CXX="g++"
4855 else
4856 case $cross_compiling:$ac_tool_warned in
4857 yes:)
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860 ac_tool_warned=yes ;;
4861 esac
4862 CXX=$ac_ct_CXX
4868 # Provide some information about the compiler.
4869 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4870 set X $ac_compile
4871 ac_compiler=$2
4872 for ac_option in --version -v -V -qversion; do
4873 { { ac_try="$ac_compiler $ac_option >&5"
4874 case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877 esac
4878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4879 $as_echo "$ac_try_echo"; } >&5
4880 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4881 ac_status=$?
4882 if test -s conftest.err; then
4883 sed '10a\
4884 ... rest of stderr output deleted ...
4885 10q' conftest.err >conftest.er1
4886 cat conftest.er1 >&5
4887 rm -f conftest.er1 conftest.err
4889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4890 test $ac_status = 0; }
4891 done
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4894 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4895 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4902 main ()
4904 #ifndef __GNUC__
4905 choke me
4906 #endif
4909 return 0;
4911 _ACEOF
4912 if ac_fn_cxx_try_compile "$LINENO"; then :
4913 ac_compiler_gnu=yes
4914 else
4915 ac_compiler_gnu=no
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4922 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4923 if test $ac_compiler_gnu = yes; then
4924 GXX=yes
4925 else
4926 GXX=
4928 ac_test_CXXFLAGS=${CXXFLAGS+set}
4929 ac_save_CXXFLAGS=$CXXFLAGS
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4931 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4932 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4936 ac_cxx_werror_flag=yes
4937 ac_cv_prog_cxx_g=no
4938 CXXFLAGS="-g"
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4943 main ()
4947 return 0;
4949 _ACEOF
4950 if ac_fn_cxx_try_compile "$LINENO"; then :
4951 ac_cv_prog_cxx_g=yes
4952 else
4953 CXXFLAGS=""
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4958 main ()
4962 return 0;
4964 _ACEOF
4965 if ac_fn_cxx_try_compile "$LINENO"; then :
4967 else
4968 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4969 CXXFLAGS="-g"
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4974 main ()
4978 return 0;
4980 _ACEOF
4981 if ac_fn_cxx_try_compile "$LINENO"; then :
4982 ac_cv_prog_cxx_g=yes
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4992 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4993 if test "$ac_test_CXXFLAGS" = set; then
4994 CXXFLAGS=$ac_save_CXXFLAGS
4995 elif test $ac_cv_prog_cxx_g = yes; then
4996 if test "$GXX" = yes; then
4997 CXXFLAGS="-g -O2"
4998 else
4999 CXXFLAGS="-g"
5001 else
5002 if test "$GXX" = yes; then
5003 CXXFLAGS="-O2"
5004 else
5005 CXXFLAGS=
5008 ac_ext=c
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015 # We must set the default linker to the linker used by gcc for the correct
5016 # operation of libtool. If LD is not defined and we are using gcc, try to
5017 # set the LD default to the ld used by gcc.
5018 if test -z "$LD"; then
5019 if test "$GCC" = yes; then
5020 case $build in
5021 *-*-mingw*)
5022 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5024 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5025 esac
5026 case $gcc_prog_ld in
5027 # Accept absolute paths.
5028 [\\/]* | [A-Za-z]:[\\/]*)
5029 LD="$gcc_prog_ld" ;;
5030 esac
5034 # Check whether -static-libstdc++ -static-libgcc is supported.
5035 have_static_libs=no
5036 if test "$GCC" = yes; then
5037 saved_LDFLAGS="$LDFLAGS"
5039 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5041 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5042 ac_ext=cpp
5043 ac_cpp='$CXXCPP $CPPFLAGS'
5044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5052 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5053 #error -static-libstdc++ not implemented
5054 #endif
5055 int main() {}
5056 _ACEOF
5057 if ac_fn_cxx_try_link "$LINENO"; then :
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5059 $as_echo "yes" >&6; }; have_static_libs=yes
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5064 rm -f core conftest.err conftest.$ac_objext \
5065 conftest$ac_exeext conftest.$ac_ext
5066 ac_ext=c
5067 ac_cpp='$CPP $CPPFLAGS'
5068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073 LDFLAGS="$saved_LDFLAGS"
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$GNATBIND"; then
5088 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5101 done
5102 done
5103 IFS=$as_save_IFS
5107 GNATBIND=$ac_cv_prog_GNATBIND
5108 if test -n "$GNATBIND"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5110 $as_echo "$GNATBIND" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5118 if test -z "$ac_cv_prog_GNATBIND"; then
5119 ac_ct_GNATBIND=$GNATBIND
5120 # Extract the first word of "gnatbind", so it can be a program name with args.
5121 set dummy gnatbind; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$ac_ct_GNATBIND"; then
5128 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5143 IFS=$as_save_IFS
5147 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5148 if test -n "$ac_ct_GNATBIND"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5150 $as_echo "$ac_ct_GNATBIND" >&6; }
5151 else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5156 if test "x$ac_ct_GNATBIND" = x; then
5157 GNATBIND="no"
5158 else
5159 case $cross_compiling:$ac_tool_warned in
5160 yes:)
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163 ac_tool_warned=yes ;;
5164 esac
5165 GNATBIND=$ac_ct_GNATBIND
5167 else
5168 GNATBIND="$ac_cv_prog_GNATBIND"
5171 if test -n "$ac_tool_prefix"; then
5172 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5173 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$GNATMAKE"; then
5180 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 GNATMAKE=$ac_cv_prog_GNATMAKE
5200 if test -n "$GNATMAKE"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5202 $as_echo "$GNATMAKE" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5210 if test -z "$ac_cv_prog_GNATMAKE"; then
5211 ac_ct_GNATMAKE=$GNATMAKE
5212 # Extract the first word of "gnatmake", so it can be a program name with args.
5213 set dummy gnatmake; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test -n "$ac_ct_GNATMAKE"; then
5220 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5235 IFS=$as_save_IFS
5239 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5240 if test -n "$ac_ct_GNATMAKE"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5242 $as_echo "$ac_ct_GNATMAKE" >&6; }
5243 else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5248 if test "x$ac_ct_GNATMAKE" = x; then
5249 GNATMAKE="no"
5250 else
5251 case $cross_compiling:$ac_tool_warned in
5252 yes:)
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5256 esac
5257 GNATMAKE=$ac_ct_GNATMAKE
5259 else
5260 GNATMAKE="$ac_cv_prog_GNATMAKE"
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5264 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5265 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 cat >conftest.adb <<EOF
5269 procedure conftest is begin null; end conftest;
5271 acx_cv_cc_gcc_supports_ada=no
5272 # There is a bug in old released versions of GCC which causes the
5273 # driver to exit successfully when the appropriate language module
5274 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5275 # Therefore we must check for the error message as well as an
5276 # unsuccessful exit.
5277 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5278 # given a .adb file, but produce no object file. So we must check
5279 # if an object file was really produced to guard against this.
5280 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5281 if test x"$errors" = x && test -f conftest.$ac_objext; then
5282 acx_cv_cc_gcc_supports_ada=yes
5284 rm -f conftest.*
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5287 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5289 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5290 have_gnat=yes
5291 else
5292 have_gnat=no
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5296 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5297 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 echo abfoo >t1
5301 echo cdfoo >t2
5302 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5303 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5304 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5306 else
5307 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5310 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5311 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5313 else
5314 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5317 rm t1 t2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5321 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5322 do_compare="$gcc_cv_prog_cmp_skip"
5326 # Check whether --enable-bootstrap was given.
5327 if test "${enable_bootstrap+set}" = set; then :
5328 enableval=$enable_bootstrap;
5329 else
5330 enable_bootstrap=default
5334 # Issue errors and warnings for invalid/strange bootstrap combinations.
5335 if test -r $srcdir/gcc/configure; then
5336 have_compiler=yes
5337 else
5338 have_compiler=no
5341 case "$have_compiler:$host:$target:$enable_bootstrap" in
5342 *:*:*:no) ;;
5344 # Default behavior. Enable bootstrap if we have a compiler
5345 # and we are in a native configuration.
5346 yes:$build:$build:default)
5347 enable_bootstrap=yes ;;
5349 *:*:*:default)
5350 enable_bootstrap=no ;;
5352 # We have a compiler and we are in a native configuration, bootstrap is ok
5353 yes:$build:$build:yes)
5356 # Other configurations, but we have a compiler. Assume the user knows
5357 # what he's doing.
5358 yes:*:*:yes)
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5360 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5363 # No compiler: if they passed --enable-bootstrap explicitly, fail
5364 no:*:*:yes)
5365 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5367 # Fail if wrong command line
5369 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5371 esac
5373 # Used for setting $lt_cv_objdir
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5375 $as_echo_n "checking for objdir... " >&6; }
5376 if test "${lt_cv_objdir+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 rm -f .libs 2>/dev/null
5380 mkdir .libs 2>/dev/null
5381 if test -d .libs; then
5382 lt_cv_objdir=.libs
5383 else
5384 # MS-DOS does not allow filenames that begin with a dot.
5385 lt_cv_objdir=_libs
5387 rmdir .libs 2>/dev/null
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5390 $as_echo "$lt_cv_objdir" >&6; }
5391 objdir=$lt_cv_objdir
5397 cat >>confdefs.h <<_ACEOF
5398 #define LT_OBJDIR "$lt_cv_objdir/"
5399 _ACEOF
5403 # Check for GMP, MPFR and MPC
5404 gmplibs="-lmpc -lmpfr -lgmp"
5405 gmpinc=
5406 have_gmp=no
5408 # Specify a location for mpc
5409 # check for this first so it ends up on the link line before mpfr.
5411 # Check whether --with-mpc was given.
5412 if test "${with_mpc+set}" = set; then :
5413 withval=$with_mpc;
5417 # Check whether --with-mpc-include was given.
5418 if test "${with_mpc_include+set}" = set; then :
5419 withval=$with_mpc_include;
5423 # Check whether --with-mpc-lib was given.
5424 if test "${with_mpc_lib+set}" = set; then :
5425 withval=$with_mpc_lib;
5429 if test "x$with_mpc" != x; then
5430 gmplibs="-L$with_mpc/lib $gmplibs"
5431 gmpinc="-I$with_mpc/include $gmpinc"
5433 if test "x$with_mpc_include" != x; then
5434 gmpinc="-I$with_mpc_include $gmpinc"
5436 if test "x$with_mpc_lib" != x; then
5437 gmplibs="-L$with_mpc_lib $gmplibs"
5439 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5440 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5441 gmpinc='-I$$s/mpc/src '"$gmpinc"
5442 # Do not test the mpc version. Assume that it is sufficient, since
5443 # it is in the source tree, and the library has not been built yet
5444 # but it would be included on the link line in the version check below
5445 # hence making the test fail.
5446 have_gmp=yes
5449 # Specify a location for mpfr
5450 # check for this first so it ends up on the link line before gmp.
5452 # Check whether --with-mpfr-dir was given.
5453 if test "${with_mpfr_dir+set}" = set; then :
5454 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5455 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5460 # Check whether --with-mpfr was given.
5461 if test "${with_mpfr+set}" = set; then :
5462 withval=$with_mpfr;
5466 # Check whether --with-mpfr-include was given.
5467 if test "${with_mpfr_include+set}" = set; then :
5468 withval=$with_mpfr_include;
5472 # Check whether --with-mpfr-lib was given.
5473 if test "${with_mpfr_lib+set}" = set; then :
5474 withval=$with_mpfr_lib;
5478 if test "x$with_mpfr" != x; then
5479 gmplibs="-L$with_mpfr/lib $gmplibs"
5480 gmpinc="-I$with_mpfr/include $gmpinc"
5482 if test "x$with_mpfr_include" != x; then
5483 gmpinc="-I$with_mpfr_include $gmpinc"
5485 if test "x$with_mpfr_lib" != x; then
5486 gmplibs="-L$with_mpfr_lib $gmplibs"
5488 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5489 # MPFR v3.1.0 moved the sources into a src sub-directory.
5490 if test -d ${srcdir}/mpfr/src; then
5491 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5492 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5493 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5494 else
5495 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5496 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5497 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5499 # Do not test the mpfr version. Assume that it is sufficient, since
5500 # it is in the source tree, and the library has not been built yet
5501 # but it would be included on the link line in the version check below
5502 # hence making the test fail.
5503 have_gmp=yes
5506 # Specify a location for gmp
5508 # Check whether --with-gmp-dir was given.
5509 if test "${with_gmp_dir+set}" = set; then :
5510 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5511 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5516 # Check whether --with-gmp was given.
5517 if test "${with_gmp+set}" = set; then :
5518 withval=$with_gmp;
5522 # Check whether --with-gmp-include was given.
5523 if test "${with_gmp_include+set}" = set; then :
5524 withval=$with_gmp_include;
5528 # Check whether --with-gmp-lib was given.
5529 if test "${with_gmp_lib+set}" = set; then :
5530 withval=$with_gmp_lib;
5535 if test "x$with_gmp" != x; then
5536 gmplibs="-L$with_gmp/lib $gmplibs"
5537 gmpinc="-I$with_gmp/include $gmpinc"
5539 if test "x$with_gmp_include" != x; then
5540 gmpinc="-I$with_gmp_include $gmpinc"
5542 if test "x$with_gmp_lib" != x; then
5543 gmplibs="-L$with_gmp_lib $gmplibs"
5545 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5546 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5547 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5548 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5549 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5550 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5551 # Do not test the gmp version. Assume that it is sufficient, since
5552 # it is in the source tree, and the library has not been built yet
5553 # but it would be included on the link line in the version check below
5554 # hence making the test fail.
5555 have_gmp=yes
5558 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5559 have_gmp=yes
5560 saved_CFLAGS="$CFLAGS"
5561 CFLAGS="$CFLAGS $gmpinc"
5562 # Check for the recommended and required versions of GMP.
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5564 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #include "gmp.h"
5570 main ()
5573 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5574 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5575 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5576 choke me
5577 #endif
5580 return 0;
5582 _ACEOF
5583 if ac_fn_c_try_compile "$LINENO"; then :
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <gmp.h>
5588 main ()
5591 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5592 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5593 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5594 choke me
5595 #endif
5598 return 0;
5600 _ACEOF
5601 if ac_fn_c_try_compile "$LINENO"; then :
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5603 $as_echo "yes" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5606 $as_echo "buggy but acceptable" >&6; }
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }; have_gmp=no
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 # If we have GMP, check the MPFR version.
5616 if test x"$have_gmp" = xyes; then
5617 # Check for the recommended and required versions of MPFR.
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5619 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 #include <gmp.h>
5623 #include <mpfr.h>
5625 main ()
5628 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5629 choke me
5630 #endif
5633 return 0;
5635 _ACEOF
5636 if ac_fn_c_try_compile "$LINENO"; then :
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 #include <gmp.h>
5640 #include <mpfr.h>
5642 main ()
5645 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5646 choke me
5647 #endif
5650 return 0;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5655 $as_echo "yes" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5658 $as_echo "buggy but acceptable" >&6; }
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }; have_gmp=no
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 # Check for the MPC header version.
5669 if test x"$have_gmp" = xyes ; then
5670 # Check for the recommended and required versions of MPC.
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5672 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <mpc.h>
5677 main ()
5680 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5681 choke me
5682 #endif
5685 return 0;
5687 _ACEOF
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #include <mpc.h>
5693 main ()
5696 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5697 choke me
5698 #endif
5701 return 0;
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"; then :
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5706 $as_echo "yes" >&6; }
5707 else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5709 $as_echo "buggy but acceptable" >&6; }
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }; have_gmp=no
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 # Now check the MPFR library.
5720 if test x"$have_gmp" = xyes; then
5721 saved_LIBS="$LIBS"
5722 LIBS="$LIBS $gmplibs"
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5724 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <mpc.h>
5729 main ()
5732 mpfr_t n;
5733 mpfr_t x;
5734 mpc_t c;
5735 int t;
5736 mpfr_init (n);
5737 mpfr_init (x);
5738 mpfr_atan2 (n, n, x, GMP_RNDN);
5739 mpfr_erfc (n, x, GMP_RNDN);
5740 mpfr_subnormalize (x, t, GMP_RNDN);
5741 mpfr_clear(n);
5742 mpfr_clear(x);
5743 mpc_init2 (c, 53);
5744 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5745 mpc_cosh (c, c, MPC_RNDNN);
5746 mpc_pow (c, c, c, MPC_RNDNN);
5747 mpc_acosh (c, c, MPC_RNDNN);
5748 mpc_clear (c);
5751 return 0;
5753 _ACEOF
5754 if ac_fn_c_try_link "$LINENO"; then :
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756 $as_echo "yes" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }; have_gmp=no
5761 rm -f core conftest.err conftest.$ac_objext \
5762 conftest$ac_exeext conftest.$ac_ext
5763 LIBS="$saved_LIBS"
5766 CFLAGS="$saved_CFLAGS"
5768 # The library versions listed in the error message below should match
5769 # the HARD-minimums enforced above.
5770 if test x$have_gmp != xyes; then
5771 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5772 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5773 their locations. Source code for these libraries can be found at
5774 their respective hosting sites as well as at
5775 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5776 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5777 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5778 make sure that you have installed both the libraries and the header
5779 files. They may be located in separate packages." "$LINENO" 5
5783 # Flags needed for both GMP, MPFR and/or MPC.
5791 # Allow host libstdc++ to be specified for static linking with PPL.
5793 # Check whether --with-host-libstdcxx was given.
5794 if test "${with_host_libstdcxx+set}" = set; then :
5795 withval=$with_host_libstdcxx;
5799 case $with_host_libstdcxx in
5800 no|yes)
5801 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5803 esac
5805 # Libraries to use for stage1 or when not bootstrapping.
5807 # Check whether --with-stage1-libs was given.
5808 if test "${with_stage1_libs+set}" = set; then :
5809 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5810 stage1_libs=
5811 else
5812 stage1_libs=$withval
5814 else
5815 stage1_libs=$with_host_libstdcxx
5820 # Linker flags to use for stage1 or when not bootstrapping.
5822 # Check whether --with-stage1-ldflags was given.
5823 if test "${with_stage1_ldflags+set}" = set; then :
5824 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5825 stage1_ldflags=
5826 else
5827 stage1_ldflags=$withval
5829 else
5830 stage1_ldflags=
5831 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5832 # if supported. But if the user explicitly specified the libraries to use,
5833 # trust that they are doing what they want.
5834 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5835 stage1_ldflags="-static-libstdc++ -static-libgcc"
5841 # Libraries to use for stage2 and later builds. This defaults to the
5842 # argument passed to --with-host-libstdcxx.
5844 # Check whether --with-boot-libs was given.
5845 if test "${with_boot_libs+set}" = set; then :
5846 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5847 poststage1_libs=
5848 else
5849 poststage1_libs=$withval
5851 else
5852 poststage1_libs=$with_host_libstdcxx
5857 # Linker flags to use for stage2 and later builds.
5859 # Check whether --with-boot-ldflags was given.
5860 if test "${with_boot_ldflags+set}" = set; then :
5861 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5862 poststage1_ldflags=
5863 else
5864 poststage1_ldflags=$withval
5866 else
5867 poststage1_ldflags=
5868 # In stages 2 and 3, default to linking libstdc++ and libgcc
5869 # statically. But if the user explicitly specified the libraries to
5870 # use, trust that they are doing what they want.
5871 if test "$poststage1_libs" = ""; then
5872 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5878 # GCC GRAPHITE dependency ISL.
5879 # Basic setup is inlined here, actual checks are in config/isl.m4
5882 # Check whether --with-isl was given.
5883 if test "${with_isl+set}" = set; then :
5884 withval=$with_isl;
5888 # Treat --without-isl as a request to disable
5889 # GRAPHITE support and skip all following checks.
5890 if test "x$with_isl" != "xno"; then
5891 # Check for ISL
5894 # Check whether --with-isl-include was given.
5895 if test "${with_isl_include+set}" = set; then :
5896 withval=$with_isl_include;
5900 # Check whether --with-isl-lib was given.
5901 if test "${with_isl_lib+set}" = set; then :
5902 withval=$with_isl_lib;
5906 # Check whether --enable-isl-version-check was given.
5907 if test "${enable_isl_version_check+set}" = set; then :
5908 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5909 else
5910 ENABLE_ISL_CHECK=yes
5914 # Initialize isllibs and islinc.
5915 case $with_isl in
5917 isllibs=
5918 islinc=
5920 "" | yes)
5923 isllibs="-L$with_isl/lib"
5924 islinc="-I$with_isl/include"
5926 esac
5927 if test "x${with_isl_include}" != x ; then
5928 islinc="-I$with_isl_include"
5930 if test "x${with_isl_lib}" != x; then
5931 isllibs="-L$with_isl_lib"
5933 if test "x${islinc}" = x && test "x${isllibs}" = x \
5934 && test -d ${srcdir}/isl; then
5935 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5936 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5937 ENABLE_ISL_CHECK=no
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5939 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5942 islinc="-DCLOOG_INT_GMP ${islinc}"
5943 isllibs="${isllibs} -lisl"
5947 if test "${ENABLE_ISL_CHECK}" = yes ; then
5948 _isl_saved_CFLAGS=$CFLAGS
5949 _isl_saved_LDFLAGS=$LDFLAGS
5950 _isl_saved_LIBS=$LIBS
5952 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5953 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5954 LIBS="${_isl_saved_LIBS} -lisl"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5957 $as_echo_n "checking for compatible ISL... " >&6; }
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 #include <isl/val.h>
5962 main ()
5966 return 0;
5968 _ACEOF
5969 if ac_fn_c_try_link "$LINENO"; then :
5970 gcc_cv_isl=yes
5971 else
5972 gcc_cv_isl=no
5974 rm -f core conftest.err conftest.$ac_objext \
5975 conftest$ac_exeext conftest.$ac_ext
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5977 $as_echo "$gcc_cv_isl" >&6; }
5979 CFLAGS=$_isl_saved_CFLAGS
5980 LDFLAGS=$_isl_saved_LDFLAGS
5981 LIBS=$_isl_saved_LIBS
5989 if test "x${with_isl}" = xno; then
5990 graphite_requested=no
5991 elif test "x${with_isl}" != x \
5992 || test "x${with_isl_include}" != x \
5993 || test "x${with_isl_lib}" != x ; then
5994 graphite_requested=yes
5995 else
5996 graphite_requested=no
6001 if test "${gcc_cv_isl}" = no ; then
6002 isllibs=
6003 islinc=
6006 if test "${graphite_requested}" = yes \
6007 && test "x${isllibs}" = x \
6008 && test "x${islinc}" = x ; then
6010 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6016 # If the ISL check failed, disable builds of in-tree variant of ISL
6017 if test "x$with_isl" = xno ||
6018 test "x$gcc_cv_isl" = xno; then
6019 noconfigdirs="$noconfigdirs isl"
6020 islinc=
6026 # Check for LTO support.
6027 # Check whether --enable-lto was given.
6028 if test "${enable_lto+set}" = set; then :
6029 enableval=$enable_lto; enable_lto=$enableval
6030 else
6031 enable_lto=yes; default_enable_lto=yes
6038 target_elf=no
6039 case $target in
6040 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6041 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6042 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6043 target_elf=no
6046 target_elf=yes
6048 esac
6050 if test $target_elf = yes; then :
6051 # ELF platforms build the lto-plugin always.
6052 build_lto_plugin=yes
6054 else
6055 if test x"$default_enable_lto" = x"yes" ; then
6056 case $target in
6057 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6058 # On other non-ELF platforms, LTO has yet to be validated.
6059 *) enable_lto=no ;;
6060 esac
6061 else
6062 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6063 # It would also be nice to check the binutils support, but we don't
6064 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6065 # warn during gcc/ subconfigure; unless you're bootstrapping with
6066 # -flto it won't be needed until after installation anyway.
6067 case $target in
6068 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6069 *) if test x"$enable_lto" = x"yes"; then
6070 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6073 esac
6075 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6076 # Build it unless LTO was explicitly disabled.
6077 case $target in
6078 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6079 *) ;;
6080 esac
6085 # Check whether --enable-linker-plugin-configure-flags was given.
6086 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6087 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6088 else
6089 extra_linker_plugin_configure_flags=
6093 # Check whether --enable-linker-plugin-flags was given.
6094 if test "${enable_linker_plugin_flags+set}" = set; then :
6095 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6096 else
6097 extra_linker_plugin_flags=
6103 # By default, C and C++ are the only stage 1 languages.
6104 stage1_languages=,c,
6106 # Target libraries that we bootstrap.
6107 bootstrap_target_libs=,target-libgcc,
6109 # Figure out what language subdirectories are present.
6110 # Look if the user specified --enable-languages="..."; if not, use
6111 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6112 # go away some day.
6113 # NB: embedded tabs in this IF block -- do not untabify
6114 if test -d ${srcdir}/gcc; then
6115 if test x"${enable_languages+set}" != xset; then
6116 if test x"${LANGUAGES+set}" = xset; then
6117 enable_languages="${LANGUAGES}"
6118 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6119 else
6120 enable_languages=all
6122 else
6123 if test x"${enable_languages}" = x ||
6124 test x"${enable_languages}" = xyes;
6125 then
6126 echo configure.in: --enable-languages needs at least one language argument 1>&2
6127 exit 1
6130 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6132 # 'f95' is the old name for the 'fortran' language. We issue a warning
6133 # and make the substitution.
6134 case ,${enable_languages}, in
6135 *,f95,*)
6136 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6137 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6139 esac
6141 # If bootstrapping, C++ must be enabled.
6142 case ",$enable_languages,:$enable_bootstrap" in
6143 *,c++,*:*) ;;
6144 *:yes)
6145 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6146 enable_languages="${enable_languages},c++"
6147 else
6148 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6151 esac
6153 # First scan to see if an enabled language requires some other language.
6154 # We assume that a given config-lang.in will list all the language
6155 # front ends it requires, even if some are required indirectly.
6156 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6157 case ${lang_frag} in
6158 ..) ;;
6159 # The odd quoting in the next line works around
6160 # an apparent bug in bash 1.12 on linux.
6161 ${srcdir}/gcc/[*]/config-lang.in) ;;
6163 # From the config-lang.in, get $language, $lang_requires, and
6164 # $lang_requires_boot_languages.
6165 language=
6166 lang_requires=
6167 lang_requires_boot_languages=
6168 . ${lang_frag}
6169 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6170 case ,${enable_languages}, in
6171 *,$other,*) ;;
6172 *,all,*) ;;
6173 *,$language,*)
6174 echo " \`$other' language required by \`$language'; enabling" 1>&2
6175 enable_languages="${enable_languages},${other}"
6177 esac
6178 done
6179 for other in ${lang_requires_boot_languages} ; do
6180 if test "$other" != "c"; then
6181 case ,${enable_stage1_languages}, in
6182 *,$other,*) ;;
6183 *,all,*) ;;
6185 case ,${enable_languages}, in
6186 *,$language,*)
6187 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6188 enable_stage1_languages="$enable_stage1_languages,${other}"
6190 esac
6192 esac
6194 done
6196 esac
6197 done
6199 new_enable_languages=,c,
6201 # If LTO is enabled, add the LTO front end.
6202 if test "$enable_lto" = "yes" ; then
6203 case ,${enable_languages}, in
6204 *,lto,*) ;;
6205 *) enable_languages="${enable_languages},lto" ;;
6206 esac
6207 if test "${build_lto_plugin}" = "yes" ; then
6208 configdirs="$configdirs lto-plugin"
6212 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6213 potential_languages=,c,
6215 enabled_target_libs=
6216 disabled_target_libs=
6218 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6219 case ${lang_frag} in
6220 ..) ;;
6221 # The odd quoting in the next line works around
6222 # an apparent bug in bash 1.12 on linux.
6223 ${srcdir}/gcc/[*]/config-lang.in) ;;
6225 # From the config-lang.in, get $language, $target_libs,
6226 # $lang_dirs, $boot_language, and $build_by_default
6227 language=
6228 target_libs=
6229 lang_dirs=
6230 subdir_requires=
6231 boot_language=no
6232 build_by_default=yes
6233 . ${lang_frag}
6234 if test x${language} = x; then
6235 echo "${lang_frag} doesn't set \$language." 1>&2
6236 exit 1
6239 if test "$language" = "c++"; then
6240 boot_language=yes
6243 add_this_lang=no
6244 case ,${enable_languages}, in
6245 *,${language},*)
6246 # Language was explicitly selected; include it
6247 # unless it is C, which is enabled by default.
6248 if test "$language" != "c"; then
6249 add_this_lang=yes
6252 *,all,*)
6253 # 'all' was selected, select it if it is a default language
6254 if test "$language" != "c"; then
6255 add_this_lang=${build_by_default}
6258 esac
6260 # Disable languages that need other directories if these aren't available.
6261 for i in $subdir_requires; do
6262 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6263 case ,${enable_languages}, in
6264 *,${language},*)
6265 # Specifically requested language; tell them.
6266 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6269 # Silently disable.
6270 add_this_lang=unsupported
6272 esac
6273 done
6275 # Disable Ada if no preexisting GNAT is available.
6276 case ,${enable_languages},:${language}:${have_gnat} in
6277 *,${language},*:ada:no)
6278 # Specifically requested language; tell them.
6279 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6281 *:ada:no)
6282 # Silently disable.
6283 add_this_lang=unsupported
6285 esac
6287 # Disable a language that is unsupported by the target.
6288 case " $unsupported_languages " in
6289 *" $language "*)
6290 add_this_lang=unsupported
6292 esac
6294 case $add_this_lang in
6295 unsupported)
6296 # Remove language-dependent dirs.
6297 disabled_target_libs="$disabled_target_libs $target_libs"
6298 noconfigdirs="$noconfigdirs $lang_dirs"
6301 # Remove language-dependent dirs; still show language as supported.
6302 disabled_target_libs="$disabled_target_libs $target_libs"
6303 noconfigdirs="$noconfigdirs $lang_dirs"
6304 potential_languages="${potential_languages}${language},"
6306 yes)
6307 new_enable_languages="${new_enable_languages}${language},"
6308 potential_languages="${potential_languages}${language},"
6309 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6310 enabled_target_libs="$enabled_target_libs $target_libs"
6311 case "${boot_language}:,$enable_stage1_languages," in
6312 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6313 # Add to (comma-separated) list of stage 1 languages.
6314 case ",$stage1_languages," in
6315 *,$language,* | ,yes, | ,all,) ;;
6316 *) stage1_languages="${stage1_languages}${language}," ;;
6317 esac
6318 # We need to bootstrap any supporting libraries.
6319 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6321 esac
6323 esac
6325 esac
6326 done
6328 # Add target libraries which are only needed for disabled languages
6329 # to noconfigdirs.
6330 if test -n "$disabled_target_libs"; then
6331 for dir in $disabled_target_libs; do
6332 case " $enabled_target_libs " in
6333 *" ${dir} "*) ;;
6334 *) noconfigdirs="$noconfigdirs $dir" ;;
6335 esac
6336 done
6339 # Check whether --enable-stage1-languages was given.
6340 if test "${enable_stage1_languages+set}" = set; then :
6341 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6342 ,no,|,,)
6343 # Set it to something that will have no effect in the loop below
6344 enable_stage1_languages=c ;;
6345 ,yes,)
6346 enable_stage1_languages=`echo $new_enable_languages | \
6347 sed -e "s/^,//" -e "s/,$//" ` ;;
6348 *,all,*)
6349 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6350 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6351 esac
6353 # Add "good" languages from enable_stage1_languages to stage1_languages,
6354 # while "bad" languages go in missing_languages. Leave no duplicates.
6355 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6356 case $potential_languages in
6357 *,$i,*)
6358 case $stage1_languages in
6359 *,$i,*) ;;
6360 *) stage1_languages="$stage1_languages$i," ;;
6361 esac ;;
6363 case $missing_languages in
6364 *,$i,*) ;;
6365 *) missing_languages="$missing_languages$i," ;;
6366 esac ;;
6367 esac
6368 done
6372 # Remove leading/trailing commas that were added for simplicity
6373 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6374 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6375 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6376 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6378 if test "x$missing_languages" != x; then
6379 as_fn_error "
6380 The following requested languages could not be built: ${missing_languages}
6381 Supported languages are: ${potential_languages}" "$LINENO" 5
6383 if test "x$new_enable_languages" != "x$enable_languages"; then
6384 echo The following languages will be built: ${new_enable_languages}
6385 enable_languages="$new_enable_languages"
6389 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6392 # Handle --disable-<component> generically.
6393 for dir in $configdirs $build_configdirs $target_configdirs ; do
6394 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6395 varname=`echo $dirname | sed -e s/+/_/g`
6396 if eval test x\${enable_${varname}} "=" xno ; then
6397 noconfigdirs="$noconfigdirs $dir"
6399 done
6401 # Check for Boehm's garbage collector
6402 # Check whether --enable-objc-gc was given.
6403 if test "${enable_objc_gc+set}" = set; then :
6404 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6405 *,objc,*:*:yes:*target-boehm-gc*)
6406 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6408 esac
6412 # Make sure we only build Boehm's garbage collector if required.
6413 case ,${enable_languages},:${enable_objc_gc} in
6414 *,objc,*:yes)
6415 # Keep target-boehm-gc if requested for Objective-C.
6418 # Otherwise remove target-boehm-gc depending on target-libjava.
6419 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6420 noconfigdirs="$noconfigdirs target-boehm-gc"
6423 esac
6425 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6426 case ,${enable_languages}, in
6427 *,c++,*)
6428 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6429 case "${noconfigdirs}" in
6430 *target-libstdc++-v3*)
6431 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6433 *) ;;
6434 esac
6437 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6439 esac
6441 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6442 # $build_configdirs and $target_configdirs.
6443 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6445 notsupp=""
6446 for dir in . $skipdirs $noconfigdirs ; do
6447 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6448 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6449 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6450 if test -r $srcdir/$dirname/configure ; then
6451 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6452 true
6453 else
6454 notsupp="$notsupp $dir"
6458 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6459 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6460 if test -r $srcdir/$dirname/configure ; then
6461 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6462 true
6463 else
6464 notsupp="$notsupp $dir"
6468 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6469 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6470 if test -r $srcdir/$dirname/configure ; then
6471 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6472 true
6473 else
6474 notsupp="$notsupp $dir"
6478 done
6480 # Quietly strip out all directories which aren't configurable in this tree.
6481 # This relies on all configurable subdirectories being autoconfiscated, which
6482 # is now the case.
6483 build_configdirs_all="$build_configdirs"
6484 build_configdirs=
6485 for i in ${build_configdirs_all} ; do
6486 j=`echo $i | sed -e s/build-//g`
6487 if test -f ${srcdir}/$j/configure ; then
6488 build_configdirs="${build_configdirs} $i"
6490 done
6492 configdirs_all="$configdirs"
6493 configdirs=
6494 for i in ${configdirs_all} ; do
6495 if test -f ${srcdir}/$i/configure ; then
6496 configdirs="${configdirs} $i"
6498 done
6500 target_configdirs_all="$target_configdirs"
6501 target_configdirs=
6502 for i in ${target_configdirs_all} ; do
6503 j=`echo $i | sed -e s/target-//g`
6504 if test -f ${srcdir}/$j/configure ; then
6505 target_configdirs="${target_configdirs} $i"
6507 done
6509 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6510 # so we have to add it after the preceding checks.
6511 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6512 then
6513 case " $configdirs " in
6514 *" libiberty "*)
6515 # If we can build libiberty, we can also build libiberty-linker-plugin.
6516 configdirs="$configdirs libiberty-linker-plugin"
6517 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6518 --with-libiberty=../libiberty-linker-plugin";;
6520 as_fn_error "libiberty missing" "$LINENO" 5;;
6521 esac
6524 # Sometimes we have special requirements for the host libiberty.
6525 extra_host_libiberty_configure_flags=
6526 case " $configdirs " in
6527 *" lto-plugin "* | *" libcc1 "*)
6528 # When these are to be built as shared libraries, the same applies to
6529 # libiberty.
6530 extra_host_libiberty_configure_flags=--enable-shared
6532 esac
6535 # Produce a warning message for the subdirs we can't configure.
6536 # This isn't especially interesting in the Cygnus tree, but in the individual
6537 # FSF releases, it's important to let people know when their machine isn't
6538 # supported by the one or two programs in a package.
6540 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6541 # If $appdirs is non-empty, at least one of those directories must still
6542 # be configured, or we error out. (E.g., if the gas release supports a
6543 # specified target in some subdirs but not the gas subdir, we shouldn't
6544 # pretend that all is well.)
6545 if test -n "$appdirs" ; then
6546 for dir in $appdirs ; do
6547 if test -r $dir/Makefile.in ; then
6548 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6549 appdirs=""
6550 break
6552 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6553 appdirs=""
6554 break
6557 done
6558 if test -n "$appdirs" ; then
6559 echo "*** This configuration is not supported by this package." 1>&2
6560 exit 1
6563 # Okay, some application will build, or we don't care to check. Still
6564 # notify of subdirs not getting built.
6565 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6566 echo " ${notsupp}" 1>&2
6567 echo " (Any other directories should still work fine.)" 1>&2
6570 case "$host" in
6571 *msdosdjgpp*)
6572 enable_gdbtk=no ;;
6573 esac
6575 # To find our prefix, in gcc_cv_tool_prefix.
6577 # The user is always right.
6578 if test "${PATH_SEPARATOR+set}" != set; then
6579 echo "#! /bin/sh" >conf$$.sh
6580 echo "exit 0" >>conf$$.sh
6581 chmod +x conf$$.sh
6582 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6583 PATH_SEPARATOR=';'
6584 else
6585 PATH_SEPARATOR=:
6587 rm -f conf$$.sh
6592 if test "x$exec_prefix" = xNONE; then
6593 if test "x$prefix" = xNONE; then
6594 gcc_cv_tool_prefix=$ac_default_prefix
6595 else
6596 gcc_cv_tool_prefix=$prefix
6598 else
6599 gcc_cv_tool_prefix=$exec_prefix
6602 # If there is no compiler in the tree, use the PATH only. In any
6603 # case, if there is no compiler in the tree nobody should use
6604 # AS_FOR_TARGET and LD_FOR_TARGET.
6605 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6606 gcc_version=`cat $srcdir/gcc/BASE-VER`
6607 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6608 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6609 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6610 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6611 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6612 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6613 else
6614 gcc_cv_tool_dirs=
6617 if test x$build = x$target && test -n "$md_exec_prefix"; then
6618 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6623 copy_dirs=
6626 # Check whether --with-build-sysroot was given.
6627 if test "${with_build_sysroot+set}" = set; then :
6628 withval=$with_build_sysroot; if test x"$withval" != x ; then
6629 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6631 else
6632 SYSROOT_CFLAGS_FOR_TARGET=
6638 # Check whether --with-debug-prefix-map was given.
6639 if test "${with_debug_prefix_map+set}" = set; then :
6640 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6641 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6642 for debug_map in $withval; do
6643 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6644 done
6646 else
6647 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6652 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6653 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6654 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6655 # We want to ensure that TARGET libraries (which we know are built with
6656 # gcc) are built with "-O2 -g", so include those options when setting
6657 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6658 if test "x$CFLAGS_FOR_TARGET" = x; then
6659 CFLAGS_FOR_TARGET=$CFLAGS
6660 case " $CFLAGS " in
6661 *" -O2 "*) ;;
6662 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6663 esac
6664 case " $CFLAGS " in
6665 *" -g "* | *" -g3 "*) ;;
6666 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6667 esac
6671 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6672 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6673 case " $CXXFLAGS " in
6674 *" -O2 "*) ;;
6675 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6676 esac
6677 case " $CXXFLAGS " in
6678 *" -g "* | *" -g3 "*) ;;
6679 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6680 esac
6686 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6687 # the named directory are copied to $(tooldir)/sys-include.
6688 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6689 if test x${is_cross_compiler} = xno ; then
6690 echo 1>&2 '***' --with-headers is only supported when cross compiling
6691 exit 1
6693 if test x"${with_headers}" != xyes ; then
6694 x=${gcc_cv_tool_prefix}
6695 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6699 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6700 # the name directories are copied to $(tooldir)/lib. Multiple directories
6701 # are permitted.
6702 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6703 if test x${is_cross_compiler} = xno ; then
6704 echo 1>&2 '***' --with-libs is only supported when cross compiling
6705 exit 1
6707 if test x"${with_libs}" != xyes ; then
6708 # Copy the libraries in reverse order, so that files in the first named
6709 # library override files in subsequent libraries.
6710 x=${gcc_cv_tool_prefix}
6711 for l in ${with_libs}; do
6712 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6713 done
6717 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6719 # This is done by determining whether or not the appropriate directory
6720 # is available, and by checking whether or not specific configurations
6721 # have requested that this magic not happen.
6723 # The command line options always override the explicit settings in
6724 # configure.in, and the settings in configure.in override this magic.
6726 # If the default for a toolchain is to use GNU as and ld, and you don't
6727 # want to do that, then you should use the --without-gnu-as and
6728 # --without-gnu-ld options for the configure script. Similarly, if
6729 # the default is to use the included zlib and you don't want to do that,
6730 # you should use the --with-system-zlib option for the configure script.
6732 if test x${use_gnu_as} = x &&
6733 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6734 with_gnu_as=yes
6735 extra_host_args="$extra_host_args --with-gnu-as"
6738 if test x${use_gnu_ld} = x &&
6739 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6740 with_gnu_ld=yes
6741 extra_host_args="$extra_host_args --with-gnu-ld"
6744 if test x${use_included_zlib} = x &&
6745 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6747 else
6748 with_system_zlib=yes
6749 extra_host_args="$extra_host_args --with-system-zlib"
6752 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6753 # can detect this case.
6755 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6756 with_newlib=yes
6757 extra_host_args="$extra_host_args --with-newlib"
6760 # Handle ${copy_dirs}
6761 set fnord ${copy_dirs}
6762 shift
6763 while test $# != 0 ; do
6764 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6766 else
6767 echo Copying $1 to $2
6769 # Use the install script to create the directory and all required
6770 # parent directories.
6771 if test -d $2 ; then
6773 else
6774 echo >config.temp
6775 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6778 # Copy the directory, assuming we have tar.
6779 # FIXME: Should we use B in the second tar? Not all systems support it.
6780 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6782 # It is the responsibility of the user to correctly adjust all
6783 # symlinks. If somebody can figure out how to handle them correctly
6784 # here, feel free to add the code.
6786 echo $1 > $2/COPIED
6788 shift; shift
6789 done
6791 # Determine a target-dependent exec_prefix that the installed
6792 # gcc will search in. Keep this list sorted by triplet, with
6793 # the *-*-osname triplets last.
6794 md_exec_prefix=
6795 case "${target}" in
6796 i[34567]86-pc-msdosdjgpp*)
6797 md_exec_prefix=/dev/env/DJDIR/bin
6799 *-*-hpux* | \
6800 *-*-nto-qnx* | \
6801 *-*-solaris2*)
6802 md_exec_prefix=/usr/ccs/bin
6804 esac
6806 extra_arflags_for_target=
6807 extra_nmflags_for_target=
6808 extra_ranlibflags_for_target=
6809 target_makefile_frag=/dev/null
6810 case "${target}" in
6811 spu-*-*)
6812 target_makefile_frag="config/mt-spu"
6814 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6815 target_makefile_frag="config/mt-sde"
6817 mipsisa*-*-elfoabi*)
6818 target_makefile_frag="config/mt-mips-elfoabi"
6820 mips*-*-*linux* | mips*-*-gnu*)
6821 target_makefile_frag="config/mt-mips-gnu"
6823 nios2-*-elf*)
6824 target_makefile_frag="config/mt-nios2-elf"
6826 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6827 target_makefile_frag="config/mt-gnu"
6829 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6830 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6831 # commands to handle both 32-bit and 64-bit objects. These flags are
6832 # harmless if we're using GNU nm or ar.
6833 extra_arflags_for_target=" -X32_64"
6834 extra_nmflags_for_target=" -B -X32_64"
6836 esac
6838 alphaieee_frag=/dev/null
6839 case $target in
6840 alpha*-*-*)
6841 # This just makes sure to use the -mieee option to build target libs.
6842 # This should probably be set individually by each library.
6843 alphaieee_frag="config/mt-alphaieee"
6845 esac
6847 # If --enable-target-optspace always use -Os instead of -O2 to build
6848 # the target libraries, similarly if it is not specified, use -Os
6849 # on selected platforms.
6850 ospace_frag=/dev/null
6851 case "${enable_target_optspace}:${target}" in
6852 yes:*)
6853 ospace_frag="config/mt-ospace"
6855 :d30v-*)
6856 ospace_frag="config/mt-d30v"
6858 :m32r-* | :d10v-* | :fr30-*)
6859 ospace_frag="config/mt-ospace"
6861 no:* | :*)
6864 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6866 esac
6868 # Some systems (e.g., one of the i386-aix systems the gas testers are
6869 # using) don't handle "\$" correctly, so don't use it here.
6870 tooldir='${exec_prefix}'/${target_noncanonical}
6871 build_tooldir=${tooldir}
6873 # Create a .gdbinit file which runs the one in srcdir
6874 # and tells GDB to look there for source files.
6876 if test -r ${srcdir}/.gdbinit ; then
6877 case ${srcdir} in
6878 .) ;;
6879 *) cat > ./.gdbinit <<EOF
6880 # ${NO_EDIT}
6881 dir ${srcdir}
6882 dir .
6883 source ${srcdir}/.gdbinit
6886 esac
6889 # Make sure that the compiler is able to generate an executable. If it
6890 # can't, we are probably in trouble. We don't care whether we can run the
6891 # executable--we might be using a cross compiler--we only care whether it
6892 # can be created. At this point the main configure script has set CC.
6893 we_are_ok=no
6894 echo "int main () { return 0; }" > conftest.c
6895 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6896 if test $? = 0 ; then
6897 if test -s conftest || test -s conftest.exe ; then
6898 we_are_ok=yes
6901 case $we_are_ok in
6903 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6904 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6905 rm -f conftest*
6906 exit 1
6908 esac
6909 rm -f conftest*
6911 # Decide which environment variable is used to find dynamic libraries.
6912 case "${host}" in
6913 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6914 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6915 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6916 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6917 esac
6919 # On systems where the dynamic library environment variable is PATH,
6920 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6921 # built executables to PATH.
6922 if test "$RPATH_ENVVAR" = PATH; then
6923 GCC_SHLIB_SUBDIR=/shlib
6924 else
6925 GCC_SHLIB_SUBDIR=
6928 # Adjust the toplevel makefile according to whether bootstrap was selected.
6929 case $enable_bootstrap in
6930 yes)
6931 bootstrap_suffix=bootstrap
6932 BUILD_CONFIG=bootstrap-debug
6935 bootstrap_suffix=no-bootstrap
6936 BUILD_CONFIG=
6938 esac
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6941 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6944 # Check whether --with-build-config was given.
6945 if test "${with_build_config+set}" = set; then :
6946 withval=$with_build_config; case $with_build_config in
6947 yes) with_build_config= ;;
6948 no) with_build_config= BUILD_CONFIG= ;;
6949 esac
6953 if test "x${with_build_config}" != x; then
6954 BUILD_CONFIG=$with_build_config
6955 else
6956 case $BUILD_CONFIG in
6957 bootstrap-debug)
6958 if echo "int f (void) { return 0; }" > conftest.c &&
6959 ${CC} -c conftest.c &&
6960 mv conftest.o conftest.o.g0 &&
6961 ${CC} -c -g conftest.c &&
6962 mv conftest.o conftest.o.g &&
6963 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6965 else
6966 BUILD_CONFIG=
6968 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6970 esac
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6973 $as_echo "$BUILD_CONFIG" >&6; }
6976 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6978 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
6979 # Check whether --enable-vtable-verify was given.
6980 if test "${enable_vtable_verify+set}" = set; then :
6981 enableval=$enable_vtable_verify; case "$enableval" in
6982 yes) enable_vtable_verify=yes ;;
6983 no) enable_vtable_verify=no ;;
6984 *) enable_vtable_verify=no;;
6985 esac
6986 else
6987 enable_vtable_verify=no
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
6991 $as_echo "$enable_vtable_verify" >&6; }
6993 # Record target_configdirs and the configure arguments for target and
6994 # build configuration in Makefile.
6995 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6996 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6997 bootstrap_fixincludes=no
6999 # If we are building libgomp, bootstrap it.
7000 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7001 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7004 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7005 # or bootstrap-ubsan, bootstrap it.
7006 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7007 case "$BUILD_CONFIG" in
7008 *bootstrap-asan* | *bootstrap-ubsan* )
7009 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7010 bootstrap_fixincludes=yes
7012 esac
7015 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7016 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7017 test "$enable_vtable_verify" != no; then
7018 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7021 # Determine whether gdb needs tk/tcl or not.
7022 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7023 # and in that case we want gdb to be built without tk. Ugh!
7024 # In fact I believe gdb is the *only* package directly dependent on tk,
7025 # so we should be able to put the 'maybe's in unconditionally and
7026 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7027 # 100% sure that that's safe though.
7029 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7030 case "$enable_gdbtk" in
7032 GDB_TK="" ;;
7033 yes)
7034 GDB_TK="${gdb_tk}" ;;
7036 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7037 # distro. Eventually someone will fix this and move Insight, nee
7038 # gdbtk to a separate directory.
7039 if test -d ${srcdir}/gdb/gdbtk ; then
7040 GDB_TK="${gdb_tk}"
7041 else
7042 GDB_TK=""
7045 esac
7046 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7047 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7049 # Strip out unwanted targets.
7051 # While at that, we remove Makefiles if we were started for recursive
7052 # configuration, so that the top-level Makefile reconfigures them,
7053 # like we used to do when configure itself was recursive.
7055 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7056 # but now we're fixing up the Makefile ourselves with the additional
7057 # commands passed to AC_CONFIG_FILES. Use separate variables
7058 # extrasub-{build,host,target} not because there is any reason to split
7059 # the substitutions up that way, but only to remain below the limit of
7060 # 99 commands in a script, for HP-UX sed.
7061 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7063 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7064 yes:yes:*\ gold\ *:*,c++,*) ;;
7065 yes:yes:*\ gold\ *:*)
7066 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7068 esac
7070 extrasub_build=
7071 for module in ${build_configdirs} ; do
7072 if test -z "${no_recursion}" \
7073 && test -f ${build_subdir}/${module}/Makefile; then
7074 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7075 rm -f ${build_subdir}/${module}/Makefile
7077 extrasub_build="$extrasub_build
7078 /^@if build-$module\$/d
7079 /^@endif build-$module\$/d
7080 /^@if build-$module-$bootstrap_suffix\$/d
7081 /^@endif build-$module-$bootstrap_suffix\$/d"
7082 done
7083 extrasub_host=
7084 for module in ${configdirs} ; do
7085 if test -z "${no_recursion}"; then
7086 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7087 if test -f ${file}; then
7088 echo 1>&2 "*** removing ${file} to force reconfigure"
7089 rm -f ${file}
7091 done
7093 case ${module},${bootstrap_fixincludes} in
7094 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7095 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7096 esac
7097 extrasub_host="$extrasub_host
7098 /^@if $module\$/d
7099 /^@endif $module\$/d
7100 /^@if $module-$host_bootstrap_suffix\$/d
7101 /^@endif $module-$host_bootstrap_suffix\$/d"
7102 done
7103 extrasub_target=
7104 for module in ${target_configdirs} ; do
7105 if test -z "${no_recursion}" \
7106 && test -f ${target_subdir}/${module}/Makefile; then
7107 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7108 rm -f ${target_subdir}/${module}/Makefile
7111 # We only bootstrap target libraries listed in bootstrap_target_libs.
7112 case $bootstrap_target_libs in
7113 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7114 *) target_bootstrap_suffix=no-bootstrap ;;
7115 esac
7117 extrasub_target="$extrasub_target
7118 /^@if target-$module\$/d
7119 /^@endif target-$module\$/d
7120 /^@if target-$module-$target_bootstrap_suffix\$/d
7121 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7122 done
7124 # Do the final fixup along with target modules.
7125 extrasub_target="$extrasub_target
7126 /^@if /,/^@endif /d"
7128 # Create the serialization dependencies. This uses a temporary file.
7130 # Check whether --enable-serial-configure was given.
7131 if test "${enable_serial_configure+set}" = set; then :
7132 enableval=$enable_serial_configure;
7136 case ${enable_serial_configure} in
7137 yes)
7138 enable_serial_build_configure=yes
7139 enable_serial_host_configure=yes
7140 enable_serial_target_configure=yes
7142 esac
7144 # These force 'configure's to be done one at a time, to avoid problems
7145 # with contention over a shared config.cache.
7146 rm -f serdep.tmp
7147 echo '# serdep.tmp' > serdep.tmp
7148 olditem=
7149 test "x${enable_serial_build_configure}" = xyes &&
7150 for item in ${build_configdirs} ; do
7151 case ${olditem} in
7152 "") ;;
7153 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7154 esac
7155 olditem=${item}
7156 done
7157 olditem=
7158 test "x${enable_serial_host_configure}" = xyes &&
7159 for item in ${configdirs} ; do
7160 case ${olditem} in
7161 "") ;;
7162 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7163 esac
7164 olditem=${item}
7165 done
7166 olditem=
7167 test "x${enable_serial_target_configure}" = xyes &&
7168 for item in ${target_configdirs} ; do
7169 case ${olditem} in
7170 "") ;;
7171 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7172 esac
7173 olditem=${item}
7174 done
7175 serialization_dependencies=serdep.tmp
7178 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7179 # target, nonopt, and variable assignments. These are the ones we
7180 # might not want to pass down to subconfigures. The exception being
7181 # --cache-file=/dev/null, which is used to turn off the use of cache
7182 # files altogether, and which should be passed on to subconfigures.
7183 # Also strip program-prefix, program-suffix, and program-transform-name,
7184 # so that we can pass down a consistent program-transform-name.
7185 baseargs=
7186 tbaseargs=
7187 keep_next=no
7188 skip_next=no
7189 eval "set -- $ac_configure_args"
7190 for ac_arg
7192 if test X"$skip_next" = X"yes"; then
7193 skip_next=no
7194 continue
7196 if test X"$keep_next" = X"yes"; then
7197 case $ac_arg in
7198 *\'*)
7199 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7200 esac
7201 baseargs="$baseargs '$ac_arg'"
7202 tbaseargs="$tbaseargs '$ac_arg'"
7203 keep_next=no
7204 continue
7207 # Handle separated arguments. Based on the logic generated by
7208 # autoconf 2.59.
7209 case $ac_arg in
7210 *=* | --config-cache | -C | -disable-* | --disable-* \
7211 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7212 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7213 | -with-* | --with-* | -without-* | --without-* | --x)
7214 separate_arg=no
7217 separate_arg=yes
7220 separate_arg=no
7222 esac
7224 skip_targ=no
7225 case $ac_arg in
7227 --with-* | --without-*)
7228 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7230 case $libopt in
7231 *[-_]include)
7232 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7234 *[-_]lib)
7235 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7238 lib=$libopt
7240 esac
7243 case $lib in
7244 mpc | mpfr | gmp | isl)
7245 # If we're processing --with-$lib, --with-$lib-include or
7246 # --with-$lib-lib, for one of the libs above, and target is
7247 # different from host, don't pass the current argument to any
7248 # target library's configure.
7249 if test x$is_cross_compiler = xyes; then
7250 skip_targ=yes
7253 esac
7255 esac
7257 case "$ac_arg" in
7258 --cache-file=/dev/null | \
7259 -cache-file=/dev/null )
7260 # Handled here to avoid the test to skip args below.
7261 baseargs="$baseargs '$ac_arg'"
7262 tbaseargs="$tbaseargs '$ac_arg'"
7263 # Assert: $separate_arg should always be no.
7264 keep_next=$separate_arg
7266 --no*)
7267 continue
7269 --c* | \
7270 --sr* | \
7271 --ho* | \
7272 --bu* | \
7273 --t* | \
7274 --program-* | \
7275 -cache_file* | \
7276 -srcdir* | \
7277 -host* | \
7278 -build* | \
7279 -target* | \
7280 -program-prefix* | \
7281 -program-suffix* | \
7282 -program-transform-name* )
7283 skip_next=$separate_arg
7284 continue
7287 # An option. Add it.
7288 case $ac_arg in
7289 *\'*)
7290 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7291 esac
7292 baseargs="$baseargs '$ac_arg'"
7293 if test X"$skip_targ" = Xno; then
7294 tbaseargs="$tbaseargs '$ac_arg'"
7296 keep_next=$separate_arg
7299 # Either a variable assignment, or a nonopt (triplet). Don't
7300 # pass it down; let the Makefile handle this.
7301 continue
7303 esac
7304 done
7305 # Remove the initial space we just introduced and, as these will be
7306 # expanded by make, quote '$'.
7307 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7309 # Add in --program-transform-name, after --program-prefix and
7310 # --program-suffix have been applied to it. Autoconf has already
7311 # doubled dollar signs and backslashes in program_transform_name; we want
7312 # the backslashes un-doubled, and then the entire thing wrapped in single
7313 # quotes, because this will be expanded first by make and then by the shell.
7314 # Also, because we want to override the logic in subdir configure scripts to
7315 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7316 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7317 ${program_transform_name}
7318 EOF_SED
7319 gcc_transform_name=`cat conftestsed.out`
7320 rm -f conftestsed.out
7321 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7322 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7323 if test "$silent" = yes; then
7324 baseargs="$baseargs --silent"
7325 tbaseargs="$tbaseargs --silent"
7327 baseargs="$baseargs --disable-option-checking"
7328 tbaseargs="$tbaseargs --disable-option-checking"
7330 # Record and document user additions to sub configure arguments.
7335 # For the build-side libraries, we just need to pretend we're native,
7336 # and not use the same cache file. Multilibs are neither needed nor
7337 # desired. We can't even use the same cache file for all build-side
7338 # libraries, as they're compiled differently; some with C, some with
7339 # C++ or with different feature-enabling options.
7340 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7342 # For host modules, accept cache file option, or specification as blank.
7343 case "${cache_file}" in
7344 "") # empty
7345 cache_file_option="" ;;
7346 /* | [A-Za-z]:[\\/]* ) # absolute path
7347 cache_file_option="--cache-file=${cache_file}" ;;
7348 *) # relative path
7349 cache_file_option="--cache-file=../${cache_file}" ;;
7350 esac
7352 # Host dirs don't like to share a cache file either, horribly enough.
7353 # This seems to be due to autoconf 2.5x stupidity.
7354 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7356 target_configargs="$target_configargs ${tbaseargs}"
7358 # Passing a --with-cross-host argument lets the target libraries know
7359 # whether they are being built with a cross-compiler or being built
7360 # native. However, it would be better to use other mechanisms to make the
7361 # sorts of decisions they want to make on this basis. Please consider
7362 # this option to be deprecated. FIXME.
7363 if test x${is_cross_compiler} = xyes ; then
7364 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7367 # Special user-friendly check for native x86_64-linux build, if
7368 # multilib is not explicitly enabled.
7369 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7370 x86_64-*linux*:yes:$build:$build:)
7371 # Make sure we have a developement environment that handles 32-bit
7372 dev64=no
7373 echo "int main () { return 0; }" > conftest.c
7374 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7375 if test $? = 0 ; then
7376 if test -s conftest || test -s conftest.exe ; then
7377 dev64=yes
7380 rm -f conftest*
7381 if test x${dev64} != xyes ; then
7382 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
7385 esac
7387 # Default to --enable-multilib.
7388 if test x${enable_multilib} = x ; then
7389 target_configargs="--enable-multilib ${target_configargs}"
7392 # Pass --with-newlib if appropriate. Note that target_configdirs has
7393 # changed from the earlier setting of with_newlib.
7394 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7395 target_configargs="--with-newlib ${target_configargs}"
7398 # Different target subdirs use different values of certain variables
7399 # (notably CXX). Worse, multilibs use *lots* of different values.
7400 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7401 # it doesn't automatically accept command-line overrides of them.
7402 # This means it's not safe for target subdirs to share a cache file,
7403 # which is disgusting, but there you have it. Hopefully this can be
7404 # fixed in future. It's still worthwhile to use a cache file for each
7405 # directory. I think.
7407 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7408 # We need to pass --target, as newer autoconf's requires consistency
7409 # for target_alias and gcc doesn't manage it consistently.
7410 target_configargs="--cache-file=./config.cache ${target_configargs}"
7412 FLAGS_FOR_TARGET=
7413 case " $target_configdirs " in
7414 *" newlib "*)
7415 case " $target_configargs " in
7416 *" --with-newlib "*)
7417 case "$target" in
7418 *-cygwin*)
7419 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7421 esac
7423 # If we're not building GCC, don't discard standard headers.
7424 if test -d ${srcdir}/gcc; then
7425 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7427 if test "${build}" != "${host}"; then
7428 # On Canadian crosses, CC_FOR_TARGET will have already been set
7429 # by `configure', so we won't have an opportunity to add -Bgcc/
7430 # to it. This is right: we don't want to search that directory
7431 # for binaries, but we want the header files in there, so add
7432 # them explicitly.
7433 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7435 # Someone might think of using the pre-installed headers on
7436 # Canadian crosses, in case the installed compiler is not fully
7437 # compatible with the compiler being built. In this case, it
7438 # would be better to flag an error than risking having
7439 # incompatible object files being constructed. We can't
7440 # guarantee that an error will be flagged, but let's hope the
7441 # compiler will do it, when presented with incompatible header
7442 # files.
7446 case "${target}-${is_cross_compiler}" in
7447 i[3456789]86-*-linux*-no)
7448 # Here host == target, so we don't need to build gcc,
7449 # so we don't want to discard standard headers.
7450 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7453 # If we're building newlib, use its generic headers last, but search
7454 # for any libc-related directories first (so make it the last -B
7455 # switch).
7456 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7458 # If we're building libgloss, find the startup file, simulator library
7459 # and linker script.
7460 case " $target_configdirs " in
7461 *" libgloss "*)
7462 # Look for startup file, simulator library and maybe linker script.
7463 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7464 # Look for libnosys.a in case the target needs it.
7465 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7466 # Most targets have the linker script in the source directory.
7467 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7469 esac
7471 esac
7473 esac
7475 esac
7477 case "$target" in
7478 x86_64-*mingw* | *-w64-mingw*)
7479 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7480 # however, use a symlink named 'mingw' in ${prefix} .
7481 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7483 *-mingw*)
7484 # MinGW can't be handled as Cygwin above since it does not use newlib.
7485 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'
7487 esac
7489 # Allow the user to override the flags for
7490 # our build compiler if desired.
7491 if test x"${build}" = x"${host}" ; then
7492 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7493 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7494 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7497 # On Canadian crosses, we'll be searching the right directories for
7498 # the previously-installed cross compiler, so don't bother to add
7499 # flags for directories within the install tree of the compiler
7500 # being built; programs in there won't even run.
7501 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7502 # Search for pre-installed headers if nothing else fits.
7503 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7506 if test "x${use_gnu_ld}" = x &&
7507 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7508 # Arrange for us to find uninstalled linker scripts.
7509 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7512 # Search for other target-specific linker scripts and such.
7513 case "${target}" in
7514 mep*)
7515 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7517 esac
7519 # Makefile fragments.
7520 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7522 eval fragval=\$$frag
7523 if test $fragval != /dev/null; then
7524 eval $frag=${srcdir}/$fragval
7526 done
7532 # Miscellanea: directories, flags, etc.
7541 # Build module lists & subconfigure args.
7545 # Host module lists & subconfigure args.
7550 # Target module lists & subconfigure args.
7554 # Build tools.
7572 # Generate default definitions for YACC, M4, LEX and other programs that run
7573 # on the build machine. These are used if the Makefile can't locate these
7574 # programs in objdir.
7575 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7577 for ac_prog in 'bison -y' byacc yacc
7579 # Extract the first word of "$ac_prog", so it can be a program name with args.
7580 set dummy $ac_prog; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if test "${ac_cv_prog_YACC+set}" = set; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 if test -n "$YACC"; then
7587 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7588 else
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_prog_YACC="$ac_prog"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7600 done
7601 done
7602 IFS=$as_save_IFS
7606 YACC=$ac_cv_prog_YACC
7607 if test -n "$YACC"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7609 $as_echo "$YACC" >&6; }
7610 else
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7616 test -n "$YACC" && break
7617 done
7618 test -n "$YACC" || YACC="$MISSING bison -y"
7620 case " $build_configdirs " in
7621 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7622 esac
7624 for ac_prog in bison
7626 # Extract the first word of "$ac_prog", so it can be a program name with args.
7627 set dummy $ac_prog; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if test "${ac_cv_prog_BISON+set}" = set; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 if test -n "$BISON"; then
7634 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_prog_BISON="$ac_prog"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7647 done
7648 done
7649 IFS=$as_save_IFS
7653 BISON=$ac_cv_prog_BISON
7654 if test -n "$BISON"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7656 $as_echo "$BISON" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7663 test -n "$BISON" && break
7664 done
7665 test -n "$BISON" || BISON="$MISSING bison"
7667 case " $build_configdirs " in
7668 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7669 esac
7671 for ac_prog in gm4 gnum4 m4
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy $ac_prog; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if test "${ac_cv_prog_M4+set}" = set; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 if test -n "$M4"; then
7681 ac_cv_prog_M4="$M4" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 ac_cv_prog_M4="$ac_prog"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7694 done
7695 done
7696 IFS=$as_save_IFS
7700 M4=$ac_cv_prog_M4
7701 if test -n "$M4"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7703 $as_echo "$M4" >&6; }
7704 else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7710 test -n "$M4" && break
7711 done
7712 test -n "$M4" || M4="$MISSING m4"
7714 case " $build_configdirs " in
7715 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7716 esac
7718 for ac_prog in flex lex
7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy $ac_prog; ac_word=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if test "${ac_cv_prog_LEX+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 if test -n "$LEX"; then
7728 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7729 else
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7733 IFS=$as_save_IFS
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 ac_cv_prog_LEX="$ac_prog"
7738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 break 2
7741 done
7742 done
7743 IFS=$as_save_IFS
7747 LEX=$ac_cv_prog_LEX
7748 if test -n "$LEX"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7750 $as_echo "$LEX" >&6; }
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7757 test -n "$LEX" && break
7758 done
7759 test -n "$LEX" || LEX="$MISSING flex"
7761 case " $build_configdirs " in
7762 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7763 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7764 esac
7766 for ac_prog in flex
7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
7769 set dummy $ac_prog; ac_word=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if test "${ac_cv_prog_FLEX+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 if test -n "$FLEX"; then
7776 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7777 else
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 ac_cv_prog_FLEX="$ac_prog"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7789 done
7790 done
7791 IFS=$as_save_IFS
7795 FLEX=$ac_cv_prog_FLEX
7796 if test -n "$FLEX"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7798 $as_echo "$FLEX" >&6; }
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7805 test -n "$FLEX" && break
7806 done
7807 test -n "$FLEX" || FLEX="$MISSING flex"
7809 case " $build_configdirs " in
7810 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7811 esac
7813 for ac_prog in makeinfo
7815 # Extract the first word of "$ac_prog", so it can be a program name with args.
7816 set dummy $ac_prog; ac_word=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822 if test -n "$MAKEINFO"; then
7823 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7824 else
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7828 IFS=$as_save_IFS
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7832 ac_cv_prog_MAKEINFO="$ac_prog"
7833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 break 2
7836 done
7837 done
7838 IFS=$as_save_IFS
7842 MAKEINFO=$ac_cv_prog_MAKEINFO
7843 if test -n "$MAKEINFO"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7845 $as_echo "$MAKEINFO" >&6; }
7846 else
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7852 test -n "$MAKEINFO" && break
7853 done
7854 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7856 case " $build_configdirs " in
7857 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7860 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7861 # higher, else we use the "missing" dummy.
7862 if ${MAKEINFO} --version \
7863 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7865 else
7866 MAKEINFO="$MISSING makeinfo"
7870 esac
7872 # FIXME: expect and dejagnu may become build tools?
7874 for ac_prog in expect
7876 # Extract the first word of "$ac_prog", so it can be a program name with args.
7877 set dummy $ac_prog; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 if test -n "$EXPECT"; then
7884 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7893 ac_cv_prog_EXPECT="$ac_prog"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 break 2
7897 done
7898 done
7899 IFS=$as_save_IFS
7903 EXPECT=$ac_cv_prog_EXPECT
7904 if test -n "$EXPECT"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7906 $as_echo "$EXPECT" >&6; }
7907 else
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7913 test -n "$EXPECT" && break
7914 done
7915 test -n "$EXPECT" || EXPECT="expect"
7917 case " $configdirs " in
7918 *" expect "*)
7919 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7921 esac
7923 for ac_prog in runtest
7925 # Extract the first word of "$ac_prog", so it can be a program name with args.
7926 set dummy $ac_prog; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 if test -n "$RUNTEST"; then
7933 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_prog_RUNTEST="$ac_prog"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7946 done
7947 done
7948 IFS=$as_save_IFS
7952 RUNTEST=$ac_cv_prog_RUNTEST
7953 if test -n "$RUNTEST"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7955 $as_echo "$RUNTEST" >&6; }
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7962 test -n "$RUNTEST" && break
7963 done
7964 test -n "$RUNTEST" || RUNTEST="runtest"
7966 case " $configdirs " in
7967 *" dejagnu "*)
7968 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7970 esac
7973 # Host tools.
7974 ncn_tool_prefix=
7975 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7976 ncn_target_tool_prefix=
7977 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7981 if test -n "$AR"; then
7982 ac_cv_prog_AR=$AR
7983 elif test -n "$ac_cv_prog_AR"; then
7984 AR=$ac_cv_prog_AR
7987 if test -n "$ac_cv_prog_AR"; then
7988 for ncn_progname in ar; do
7989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7990 set dummy ${ncn_progname}; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if test "${ac_cv_prog_AR+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 if test -n "$AR"; then
7997 ac_cv_prog_AR="$AR" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 ac_cv_prog_AR="${ncn_progname}"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8010 done
8011 done
8012 IFS=$as_save_IFS
8016 AR=$ac_cv_prog_AR
8017 if test -n "$AR"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8019 $as_echo "$AR" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8026 done
8029 for ncn_progname in ar; do
8030 if test -n "$ncn_tool_prefix"; then
8031 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8032 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if test "${ac_cv_prog_AR+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 if test -n "$AR"; then
8039 ac_cv_prog_AR="$AR" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8052 done
8053 done
8054 IFS=$as_save_IFS
8058 AR=$ac_cv_prog_AR
8059 if test -n "$AR"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8061 $as_echo "$AR" >&6; }
8062 else
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8069 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8071 set dummy ${ncn_progname}; ac_word=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if test "${ac_cv_prog_AR+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 if test -n "$AR"; then
8078 ac_cv_prog_AR="$AR" # Let the user override the test.
8079 else
8080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 for as_dir in $PATH
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8087 ac_cv_prog_AR="${ncn_progname}"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 break 2
8091 done
8092 done
8093 IFS=$as_save_IFS
8097 AR=$ac_cv_prog_AR
8098 if test -n "$AR"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8100 $as_echo "$AR" >&6; }
8101 else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8108 test -n "$ac_cv_prog_AR" && break
8109 done
8111 if test -z "$ac_cv_prog_AR" ; then
8112 set dummy ar
8113 if test $build = $host ; then
8114 AR="$2"
8115 else
8116 AR="${ncn_tool_prefix}$2"
8122 if test -n "$AS"; then
8123 ac_cv_prog_AS=$AS
8124 elif test -n "$ac_cv_prog_AS"; then
8125 AS=$ac_cv_prog_AS
8128 if test -n "$ac_cv_prog_AS"; then
8129 for ncn_progname in as; do
8130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8131 set dummy ${ncn_progname}; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_AS+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$AS"; then
8138 ac_cv_prog_AS="$AS" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_AS="${ncn_progname}"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8151 done
8152 done
8153 IFS=$as_save_IFS
8157 AS=$ac_cv_prog_AS
8158 if test -n "$AS"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8160 $as_echo "$AS" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8167 done
8170 for ncn_progname in as; do
8171 if test -n "$ncn_tool_prefix"; then
8172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8173 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_prog_AS+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 if test -n "$AS"; then
8180 ac_cv_prog_AS="$AS" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8193 done
8194 done
8195 IFS=$as_save_IFS
8199 AS=$ac_cv_prog_AS
8200 if test -n "$AS"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8202 $as_echo "$AS" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8210 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8212 set dummy ${ncn_progname}; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if test "${ac_cv_prog_AS+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 if test -n "$AS"; then
8219 ac_cv_prog_AS="$AS" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_prog_AS="${ncn_progname}"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8232 done
8233 done
8234 IFS=$as_save_IFS
8238 AS=$ac_cv_prog_AS
8239 if test -n "$AS"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8241 $as_echo "$AS" >&6; }
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8249 test -n "$ac_cv_prog_AS" && break
8250 done
8252 if test -z "$ac_cv_prog_AS" ; then
8253 set dummy as
8254 if test $build = $host ; then
8255 AS="$2"
8256 else
8257 AS="${ncn_tool_prefix}$2"
8263 if test -n "$DLLTOOL"; then
8264 ac_cv_prog_DLLTOOL=$DLLTOOL
8265 elif test -n "$ac_cv_prog_DLLTOOL"; then
8266 DLLTOOL=$ac_cv_prog_DLLTOOL
8269 if test -n "$ac_cv_prog_DLLTOOL"; then
8270 for ncn_progname in dlltool; do
8271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8272 set dummy ${ncn_progname}; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 if test -n "$DLLTOOL"; then
8279 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_DLLTOOL="${ncn_progname}"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8292 done
8293 done
8294 IFS=$as_save_IFS
8298 DLLTOOL=$ac_cv_prog_DLLTOOL
8299 if test -n "$DLLTOOL"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8301 $as_echo "$DLLTOOL" >&6; }
8302 else
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8308 done
8311 for ncn_progname in dlltool; do
8312 if test -n "$ncn_tool_prefix"; then
8313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8314 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 if test -n "$DLLTOOL"; then
8321 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8330 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 break 2
8334 done
8335 done
8336 IFS=$as_save_IFS
8340 DLLTOOL=$ac_cv_prog_DLLTOOL
8341 if test -n "$DLLTOOL"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8343 $as_echo "$DLLTOOL" >&6; }
8344 else
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8351 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8353 set dummy ${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_DLLTOOL+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 if test -n "$DLLTOOL"; then
8360 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${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 DLLTOOL=$ac_cv_prog_DLLTOOL
8380 if test -n "$DLLTOOL"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8382 $as_echo "$DLLTOOL" >&6; }
8383 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8390 test -n "$ac_cv_prog_DLLTOOL" && break
8391 done
8393 if test -z "$ac_cv_prog_DLLTOOL" ; then
8394 set dummy dlltool
8395 if test $build = $host ; then
8396 DLLTOOL="$2"
8397 else
8398 DLLTOOL="${ncn_tool_prefix}$2"
8404 if test -n "$LD"; then
8405 ac_cv_prog_LD=$LD
8406 elif test -n "$ac_cv_prog_LD"; then
8407 LD=$ac_cv_prog_LD
8410 if test -n "$ac_cv_prog_LD"; then
8411 for ncn_progname in ld; do
8412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8413 set dummy ${ncn_progname}; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if test "${ac_cv_prog_LD+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 if test -n "$LD"; then
8420 ac_cv_prog_LD="$LD" # Let the user override the test.
8421 else
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 for as_dir in $PATH
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8429 ac_cv_prog_LD="${ncn_progname}"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 break 2
8433 done
8434 done
8435 IFS=$as_save_IFS
8439 LD=$ac_cv_prog_LD
8440 if test -n "$LD"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8442 $as_echo "$LD" >&6; }
8443 else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8449 done
8452 for ncn_progname in ld; do
8453 if test -n "$ncn_tool_prefix"; then
8454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8455 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if test "${ac_cv_prog_LD+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 if test -n "$LD"; then
8462 ac_cv_prog_LD="$LD" # Let the user override the test.
8463 else
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 for as_dir in $PATH
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8471 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 break 2
8475 done
8476 done
8477 IFS=$as_save_IFS
8481 LD=$ac_cv_prog_LD
8482 if test -n "$LD"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8484 $as_echo "$LD" >&6; }
8485 else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8492 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8494 set dummy ${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_LD+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 if test -n "$LD"; then
8501 ac_cv_prog_LD="$LD" # 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_LD="${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 LD=$ac_cv_prog_LD
8521 if test -n "$LD"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8523 $as_echo "$LD" >&6; }
8524 else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8531 test -n "$ac_cv_prog_LD" && break
8532 done
8534 if test -z "$ac_cv_prog_LD" ; then
8535 set dummy ld
8536 if test $build = $host ; then
8537 LD="$2"
8538 else
8539 LD="${ncn_tool_prefix}$2"
8545 if test -n "$LIPO"; then
8546 ac_cv_prog_LIPO=$LIPO
8547 elif test -n "$ac_cv_prog_LIPO"; then
8548 LIPO=$ac_cv_prog_LIPO
8551 if test -n "$ac_cv_prog_LIPO"; then
8552 for ncn_progname in lipo; do
8553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8554 set dummy ${ncn_progname}; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if test "${ac_cv_prog_LIPO+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 if test -n "$LIPO"; then
8561 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8570 ac_cv_prog_LIPO="${ncn_progname}"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 break 2
8574 done
8575 done
8576 IFS=$as_save_IFS
8580 LIPO=$ac_cv_prog_LIPO
8581 if test -n "$LIPO"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8583 $as_echo "$LIPO" >&6; }
8584 else
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8590 done
8593 for ncn_progname in lipo; do
8594 if test -n "$ncn_tool_prefix"; then
8595 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8596 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if test "${ac_cv_prog_LIPO+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 if test -n "$LIPO"; then
8603 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8604 else
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 for as_dir in $PATH
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8612 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614 break 2
8616 done
8617 done
8618 IFS=$as_save_IFS
8622 LIPO=$ac_cv_prog_LIPO
8623 if test -n "$LIPO"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8625 $as_echo "$LIPO" >&6; }
8626 else
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8633 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8635 set dummy ${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_LIPO+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 if test -n "$LIPO"; then
8642 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${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 LIPO=$ac_cv_prog_LIPO
8662 if test -n "$LIPO"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8664 $as_echo "$LIPO" >&6; }
8665 else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8672 test -n "$ac_cv_prog_LIPO" && break
8673 done
8675 if test -z "$ac_cv_prog_LIPO" ; then
8676 set dummy lipo
8677 if test $build = $host ; then
8678 LIPO="$2"
8679 else
8680 LIPO="${ncn_tool_prefix}$2"
8686 if test -n "$NM"; then
8687 ac_cv_prog_NM=$NM
8688 elif test -n "$ac_cv_prog_NM"; then
8689 NM=$ac_cv_prog_NM
8692 if test -n "$ac_cv_prog_NM"; then
8693 for ncn_progname in nm; do
8694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8695 set dummy ${ncn_progname}; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if test "${ac_cv_prog_NM+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 if test -n "$NM"; then
8702 ac_cv_prog_NM="$NM" # Let the user override the test.
8703 else
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 for as_dir in $PATH
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8711 ac_cv_prog_NM="${ncn_progname}"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 break 2
8715 done
8716 done
8717 IFS=$as_save_IFS
8721 NM=$ac_cv_prog_NM
8722 if test -n "$NM"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8724 $as_echo "$NM" >&6; }
8725 else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8731 done
8734 for ncn_progname in nm; do
8735 if test -n "$ncn_tool_prefix"; then
8736 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8737 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if test "${ac_cv_prog_NM+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 if test -n "$NM"; then
8744 ac_cv_prog_NM="$NM" # Let the user override the test.
8745 else
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 for as_dir in $PATH
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8753 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755 break 2
8757 done
8758 done
8759 IFS=$as_save_IFS
8763 NM=$ac_cv_prog_NM
8764 if test -n "$NM"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8766 $as_echo "$NM" >&6; }
8767 else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8774 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8776 set dummy ${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_NM+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 if test -n "$NM"; then
8783 ac_cv_prog_NM="$NM" # 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_NM="${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 NM=$ac_cv_prog_NM
8803 if test -n "$NM"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8805 $as_echo "$NM" >&6; }
8806 else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8813 test -n "$ac_cv_prog_NM" && break
8814 done
8816 if test -z "$ac_cv_prog_NM" ; then
8817 set dummy nm
8818 if test $build = $host ; then
8819 NM="$2"
8820 else
8821 NM="${ncn_tool_prefix}$2"
8827 if test -n "$RANLIB"; then
8828 ac_cv_prog_RANLIB=$RANLIB
8829 elif test -n "$ac_cv_prog_RANLIB"; then
8830 RANLIB=$ac_cv_prog_RANLIB
8833 if test -n "$ac_cv_prog_RANLIB"; then
8834 for ncn_progname in ranlib; do
8835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8836 set dummy ${ncn_progname}; ac_word=$2
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838 $as_echo_n "checking for $ac_word... " >&6; }
8839 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 if test -n "$RANLIB"; then
8843 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8844 else
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 for as_dir in $PATH
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8852 ac_cv_prog_RANLIB="${ncn_progname}"
8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 break 2
8856 done
8857 done
8858 IFS=$as_save_IFS
8862 RANLIB=$ac_cv_prog_RANLIB
8863 if test -n "$RANLIB"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8865 $as_echo "$RANLIB" >&6; }
8866 else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8872 done
8875 for ncn_progname in ranlib; do
8876 if test -n "$ncn_tool_prefix"; then
8877 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8878 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 if test -n "$RANLIB"; then
8885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8886 else
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8898 done
8899 done
8900 IFS=$as_save_IFS
8904 RANLIB=$ac_cv_prog_RANLIB
8905 if test -n "$RANLIB"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8907 $as_echo "$RANLIB" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8915 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8917 set dummy ${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_RANLIB+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 if test -n "$RANLIB"; then
8924 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${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 RANLIB=$ac_cv_prog_RANLIB
8944 if test -n "$RANLIB"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8946 $as_echo "$RANLIB" >&6; }
8947 else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8954 test -n "$ac_cv_prog_RANLIB" && break
8955 done
8957 if test -z "$ac_cv_prog_RANLIB" ; then
8958 RANLIB="true"
8963 if test -n "$STRIP"; then
8964 ac_cv_prog_STRIP=$STRIP
8965 elif test -n "$ac_cv_prog_STRIP"; then
8966 STRIP=$ac_cv_prog_STRIP
8969 if test -n "$ac_cv_prog_STRIP"; then
8970 for ncn_progname in strip; do
8971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8972 set dummy ${ncn_progname}; ac_word=$2
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974 $as_echo_n "checking for $ac_word... " >&6; }
8975 if test "${ac_cv_prog_STRIP+set}" = set; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 if test -n "$STRIP"; then
8979 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8980 else
8981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982 for as_dir in $PATH
8984 IFS=$as_save_IFS
8985 test -z "$as_dir" && as_dir=.
8986 for ac_exec_ext in '' $ac_executable_extensions; do
8987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8988 ac_cv_prog_STRIP="${ncn_progname}"
8989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 break 2
8992 done
8993 done
8994 IFS=$as_save_IFS
8998 STRIP=$ac_cv_prog_STRIP
8999 if test -n "$STRIP"; then
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9001 $as_echo "$STRIP" >&6; }
9002 else
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004 $as_echo "no" >&6; }
9008 done
9011 for ncn_progname in strip; do
9012 if test -n "$ncn_tool_prefix"; then
9013 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9014 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016 $as_echo_n "checking for $ac_word... " >&6; }
9017 if test "${ac_cv_prog_STRIP+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 if test -n "$STRIP"; then
9021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9022 else
9023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024 for as_dir in $PATH
9026 IFS=$as_save_IFS
9027 test -z "$as_dir" && as_dir=.
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9030 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9032 break 2
9034 done
9035 done
9036 IFS=$as_save_IFS
9040 STRIP=$ac_cv_prog_STRIP
9041 if test -n "$STRIP"; then
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9043 $as_echo "$STRIP" >&6; }
9044 else
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 $as_echo "no" >&6; }
9051 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9053 set dummy ${ncn_progname}; ac_word=$2
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9055 $as_echo_n "checking for $ac_word... " >&6; }
9056 if test "${ac_cv_prog_STRIP+set}" = set; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059 if test -n "$STRIP"; then
9060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9061 else
9062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9063 for as_dir in $PATH
9065 IFS=$as_save_IFS
9066 test -z "$as_dir" && as_dir=.
9067 for ac_exec_ext in '' $ac_executable_extensions; do
9068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9069 ac_cv_prog_STRIP="${ncn_progname}"
9070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9071 break 2
9073 done
9074 done
9075 IFS=$as_save_IFS
9079 STRIP=$ac_cv_prog_STRIP
9080 if test -n "$STRIP"; then
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9082 $as_echo "$STRIP" >&6; }
9083 else
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9085 $as_echo "no" >&6; }
9090 test -n "$ac_cv_prog_STRIP" && break
9091 done
9093 if test -z "$ac_cv_prog_STRIP" ; then
9094 STRIP="true"
9099 if test -n "$WINDRES"; then
9100 ac_cv_prog_WINDRES=$WINDRES
9101 elif test -n "$ac_cv_prog_WINDRES"; then
9102 WINDRES=$ac_cv_prog_WINDRES
9105 if test -n "$ac_cv_prog_WINDRES"; then
9106 for ncn_progname in windres; do
9107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9108 set dummy ${ncn_progname}; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 if test -n "$WINDRES"; then
9115 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9116 else
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 for as_dir in $PATH
9120 IFS=$as_save_IFS
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9124 ac_cv_prog_WINDRES="${ncn_progname}"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 break 2
9128 done
9129 done
9130 IFS=$as_save_IFS
9134 WINDRES=$ac_cv_prog_WINDRES
9135 if test -n "$WINDRES"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9137 $as_echo "$WINDRES" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9144 done
9147 for ncn_progname in windres; do
9148 if test -n "$ncn_tool_prefix"; then
9149 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9150 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152 $as_echo_n "checking for $ac_word... " >&6; }
9153 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156 if test -n "$WINDRES"; then
9157 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9158 else
9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 for as_dir in $PATH
9162 IFS=$as_save_IFS
9163 test -z "$as_dir" && as_dir=.
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9166 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9168 break 2
9170 done
9171 done
9172 IFS=$as_save_IFS
9176 WINDRES=$ac_cv_prog_WINDRES
9177 if test -n "$WINDRES"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9179 $as_echo "$WINDRES" >&6; }
9180 else
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9187 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9189 set dummy ${ncn_progname}; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 if test -n "$WINDRES"; then
9196 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9197 else
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199 for as_dir in $PATH
9201 IFS=$as_save_IFS
9202 test -z "$as_dir" && as_dir=.
9203 for ac_exec_ext in '' $ac_executable_extensions; do
9204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9205 ac_cv_prog_WINDRES="${ncn_progname}"
9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207 break 2
9209 done
9210 done
9211 IFS=$as_save_IFS
9215 WINDRES=$ac_cv_prog_WINDRES
9216 if test -n "$WINDRES"; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9218 $as_echo "$WINDRES" >&6; }
9219 else
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9226 test -n "$ac_cv_prog_WINDRES" && break
9227 done
9229 if test -z "$ac_cv_prog_WINDRES" ; then
9230 set dummy windres
9231 if test $build = $host ; then
9232 WINDRES="$2"
9233 else
9234 WINDRES="${ncn_tool_prefix}$2"
9240 if test -n "$WINDMC"; then
9241 ac_cv_prog_WINDMC=$WINDMC
9242 elif test -n "$ac_cv_prog_WINDMC"; then
9243 WINDMC=$ac_cv_prog_WINDMC
9246 if test -n "$ac_cv_prog_WINDMC"; then
9247 for ncn_progname in windmc; do
9248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9249 set dummy ${ncn_progname}; ac_word=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 if test -n "$WINDMC"; then
9256 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9257 else
9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9261 IFS=$as_save_IFS
9262 test -z "$as_dir" && as_dir=.
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9265 ac_cv_prog_WINDMC="${ncn_progname}"
9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 break 2
9269 done
9270 done
9271 IFS=$as_save_IFS
9275 WINDMC=$ac_cv_prog_WINDMC
9276 if test -n "$WINDMC"; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9278 $as_echo "$WINDMC" >&6; }
9279 else
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9285 done
9288 for ncn_progname in windmc; do
9289 if test -n "$ncn_tool_prefix"; then
9290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9291 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 if test -n "$WINDMC"; then
9298 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9299 else
9300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301 for as_dir in $PATH
9303 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=.
9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9307 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9309 break 2
9311 done
9312 done
9313 IFS=$as_save_IFS
9317 WINDMC=$ac_cv_prog_WINDMC
9318 if test -n "$WINDMC"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9320 $as_echo "$WINDMC" >&6; }
9321 else
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9328 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9330 set dummy ${ncn_progname}; ac_word=$2
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 $as_echo_n "checking for $ac_word... " >&6; }
9333 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 if test -n "$WINDMC"; then
9337 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9338 else
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_prog_WINDMC="${ncn_progname}"
9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 break 2
9350 done
9351 done
9352 IFS=$as_save_IFS
9356 WINDMC=$ac_cv_prog_WINDMC
9357 if test -n "$WINDMC"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9359 $as_echo "$WINDMC" >&6; }
9360 else
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; }
9367 test -n "$ac_cv_prog_WINDMC" && break
9368 done
9370 if test -z "$ac_cv_prog_WINDMC" ; then
9371 set dummy windmc
9372 if test $build = $host ; then
9373 WINDMC="$2"
9374 else
9375 WINDMC="${ncn_tool_prefix}$2"
9381 if test -n "$OBJCOPY"; then
9382 ac_cv_prog_OBJCOPY=$OBJCOPY
9383 elif test -n "$ac_cv_prog_OBJCOPY"; then
9384 OBJCOPY=$ac_cv_prog_OBJCOPY
9387 if test -n "$ac_cv_prog_OBJCOPY"; then
9388 for ncn_progname in objcopy; do
9389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9390 set dummy ${ncn_progname}; ac_word=$2
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 $as_echo_n "checking for $ac_word... " >&6; }
9393 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 if test -n "$OBJCOPY"; then
9397 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9398 else
9399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400 for as_dir in $PATH
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9406 ac_cv_prog_OBJCOPY="${ncn_progname}"
9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 break 2
9410 done
9411 done
9412 IFS=$as_save_IFS
9416 OBJCOPY=$ac_cv_prog_OBJCOPY
9417 if test -n "$OBJCOPY"; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9419 $as_echo "$OBJCOPY" >&6; }
9420 else
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422 $as_echo "no" >&6; }
9426 done
9429 for ncn_progname in objcopy; do
9430 if test -n "$ncn_tool_prefix"; then
9431 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9432 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434 $as_echo_n "checking for $ac_word... " >&6; }
9435 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 if test -n "$OBJCOPY"; then
9439 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9440 else
9441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442 for as_dir in $PATH
9444 IFS=$as_save_IFS
9445 test -z "$as_dir" && as_dir=.
9446 for ac_exec_ext in '' $ac_executable_extensions; do
9447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9448 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9450 break 2
9452 done
9453 done
9454 IFS=$as_save_IFS
9458 OBJCOPY=$ac_cv_prog_OBJCOPY
9459 if test -n "$OBJCOPY"; then
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9461 $as_echo "$OBJCOPY" >&6; }
9462 else
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 $as_echo "no" >&6; }
9469 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9471 set dummy ${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_OBJCOPY+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 if test -n "$OBJCOPY"; then
9478 ac_cv_prog_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="${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 OBJCOPY=$ac_cv_prog_OBJCOPY
9498 if test -n "$OBJCOPY"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9500 $as_echo "$OBJCOPY" >&6; }
9501 else
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9508 test -n "$ac_cv_prog_OBJCOPY" && break
9509 done
9511 if test -z "$ac_cv_prog_OBJCOPY" ; then
9512 set dummy objcopy
9513 if test $build = $host ; then
9514 OBJCOPY="$2"
9515 else
9516 OBJCOPY="${ncn_tool_prefix}$2"
9522 if test -n "$OBJDUMP"; then
9523 ac_cv_prog_OBJDUMP=$OBJDUMP
9524 elif test -n "$ac_cv_prog_OBJDUMP"; then
9525 OBJDUMP=$ac_cv_prog_OBJDUMP
9528 if test -n "$ac_cv_prog_OBJDUMP"; then
9529 for ncn_progname in objdump; do
9530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9531 set dummy ${ncn_progname}; ac_word=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 if test -n "$OBJDUMP"; then
9538 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9539 else
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9547 ac_cv_prog_OBJDUMP="${ncn_progname}"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9551 done
9552 done
9553 IFS=$as_save_IFS
9557 OBJDUMP=$ac_cv_prog_OBJDUMP
9558 if test -n "$OBJDUMP"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9560 $as_echo "$OBJDUMP" >&6; }
9561 else
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9567 done
9570 for ncn_progname in objdump; do
9571 if test -n "$ncn_tool_prefix"; then
9572 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9573 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 if test -n "$OBJDUMP"; then
9580 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9581 else
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 for as_dir in $PATH
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9589 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9591 break 2
9593 done
9594 done
9595 IFS=$as_save_IFS
9599 OBJDUMP=$ac_cv_prog_OBJDUMP
9600 if test -n "$OBJDUMP"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9602 $as_echo "$OBJDUMP" >&6; }
9603 else
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9610 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9612 set dummy ${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_OBJDUMP+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
9617 else
9618 if test -n "$OBJDUMP"; then
9619 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${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 OBJDUMP=$ac_cv_prog_OBJDUMP
9639 if test -n "$OBJDUMP"; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9641 $as_echo "$OBJDUMP" >&6; }
9642 else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9649 test -n "$ac_cv_prog_OBJDUMP" && break
9650 done
9652 if test -z "$ac_cv_prog_OBJDUMP" ; then
9653 set dummy objdump
9654 if test $build = $host ; then
9655 OBJDUMP="$2"
9656 else
9657 OBJDUMP="${ncn_tool_prefix}$2"
9663 if test -n "$READELF"; then
9664 ac_cv_prog_READELF=$READELF
9665 elif test -n "$ac_cv_prog_READELF"; then
9666 READELF=$ac_cv_prog_READELF
9669 if test -n "$ac_cv_prog_READELF"; then
9670 for ncn_progname in readelf; do
9671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9672 set dummy ${ncn_progname}; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if test "${ac_cv_prog_READELF+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 if test -n "$READELF"; then
9679 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9680 else
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9688 ac_cv_prog_READELF="${ncn_progname}"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9692 done
9693 done
9694 IFS=$as_save_IFS
9698 READELF=$ac_cv_prog_READELF
9699 if test -n "$READELF"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9701 $as_echo "$READELF" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9708 done
9711 for ncn_progname in readelf; do
9712 if test -n "$ncn_tool_prefix"; then
9713 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9714 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716 $as_echo_n "checking for $ac_word... " >&6; }
9717 if test "${ac_cv_prog_READELF+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 if test -n "$READELF"; then
9721 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9722 else
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724 for as_dir in $PATH
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9730 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9732 break 2
9734 done
9735 done
9736 IFS=$as_save_IFS
9740 READELF=$ac_cv_prog_READELF
9741 if test -n "$READELF"; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9743 $as_echo "$READELF" >&6; }
9744 else
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9751 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9753 set dummy ${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_READELF+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
9758 else
9759 if test -n "$READELF"; then
9760 ac_cv_prog_READELF="$READELF" # 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_READELF="${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 READELF=$ac_cv_prog_READELF
9780 if test -n "$READELF"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9782 $as_echo "$READELF" >&6; }
9783 else
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 $as_echo "no" >&6; }
9790 test -n "$ac_cv_prog_READELF" && break
9791 done
9793 if test -z "$ac_cv_prog_READELF" ; then
9794 set dummy readelf
9795 if test $build = $host ; then
9796 READELF="$2"
9797 else
9798 READELF="${ncn_tool_prefix}$2"
9807 # Target tools.
9809 # Check whether --with-build-time-tools was given.
9810 if test "${with_build_time_tools+set}" = set; then :
9811 withval=$with_build_time_tools; case x"$withval" in
9812 x/*) ;;
9814 with_build_time_tools=
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9816 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9818 esac
9819 else
9820 with_build_time_tools=
9826 if test -n "$CC_FOR_TARGET"; then
9827 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9828 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9829 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9832 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9833 for ncn_progname in cc gcc; do
9834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9835 set dummy ${ncn_progname}; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 if test -n "$CC_FOR_TARGET"; then
9842 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9843 else
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in $PATH
9847 IFS=$as_save_IFS
9848 test -z "$as_dir" && as_dir=.
9849 for ac_exec_ext in '' $ac_executable_extensions; do
9850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9851 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9853 break 2
9855 done
9856 done
9857 IFS=$as_save_IFS
9861 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9862 if test -n "$CC_FOR_TARGET"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9864 $as_echo "$CC_FOR_TARGET" >&6; }
9865 else
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9871 done
9874 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9875 for ncn_progname in cc gcc; do
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9877 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9878 if test -x $with_build_time_tools/${ncn_progname}; then
9879 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9881 $as_echo "yes" >&6; }
9882 break
9883 else
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885 $as_echo "no" >&6; }
9887 done
9890 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9891 for ncn_progname in cc gcc; do
9892 if test -n "$ncn_target_tool_prefix"; then
9893 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9894 set dummy ${ncn_target_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_CC_FOR_TARGET+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 if test -n "$CC_FOR_TARGET"; then
9901 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # 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_CC_FOR_TARGET="${ncn_target_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 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9921 if test -n "$CC_FOR_TARGET"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9923 $as_echo "$CC_FOR_TARGET" >&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_CC_FOR_TARGET" && test $build = $target ; 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_CC_FOR_TARGET+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 if test -n "$CC_FOR_TARGET"; then
9940 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # 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_CC_FOR_TARGET="${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 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9960 if test -n "$CC_FOR_TARGET"; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9962 $as_echo "$CC_FOR_TARGET" >&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_CC_FOR_TARGET" && break
9971 done
9974 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9975 set dummy cc gcc
9976 if test $build = $target ; then
9977 CC_FOR_TARGET="$2"
9978 else
9979 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9981 else
9982 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9987 if test -n "$CXX_FOR_TARGET"; then
9988 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9989 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9990 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9993 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9994 for ncn_progname in c++ g++ cxx gxx; do
9995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9996 set dummy ${ncn_progname}; ac_word=$2
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998 $as_echo_n "checking for $ac_word... " >&6; }
9999 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 if test -n "$CXX_FOR_TARGET"; then
10003 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10004 else
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10008 IFS=$as_save_IFS
10009 test -z "$as_dir" && as_dir=.
10010 for ac_exec_ext in '' $ac_executable_extensions; do
10011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10012 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 break 2
10016 done
10017 done
10018 IFS=$as_save_IFS
10022 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10023 if test -n "$CXX_FOR_TARGET"; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10025 $as_echo "$CXX_FOR_TARGET" >&6; }
10026 else
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10032 done
10035 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10036 for ncn_progname in c++ g++ cxx gxx; do
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10038 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10039 if test -x $with_build_time_tools/${ncn_progname}; then
10040 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10042 $as_echo "yes" >&6; }
10043 break
10044 else
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046 $as_echo "no" >&6; }
10048 done
10051 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10052 for ncn_progname in c++ g++ cxx gxx; do
10053 if test -n "$ncn_target_tool_prefix"; then
10054 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10055 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 if test -n "$CXX_FOR_TARGET"; then
10062 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10063 else
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10075 done
10076 done
10077 IFS=$as_save_IFS
10081 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10082 if test -n "$CXX_FOR_TARGET"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10084 $as_echo "$CXX_FOR_TARGET" >&6; }
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10092 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10094 set dummy ${ncn_progname}; ac_word=$2
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10096 $as_echo_n "checking for $ac_word... " >&6; }
10097 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10098 $as_echo_n "(cached) " >&6
10099 else
10100 if test -n "$CXX_FOR_TARGET"; then
10101 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10102 else
10103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10110 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10114 done
10115 done
10116 IFS=$as_save_IFS
10120 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10121 if test -n "$CXX_FOR_TARGET"; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10123 $as_echo "$CXX_FOR_TARGET" >&6; }
10124 else
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10131 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10132 done
10135 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10136 set dummy c++ g++ cxx gxx
10137 if test $build = $target ; then
10138 CXX_FOR_TARGET="$2"
10139 else
10140 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10142 else
10143 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10148 if test -n "$GCC_FOR_TARGET"; then
10149 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10150 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10151 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10154 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10155 for ncn_progname in gcc; do
10156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10157 set dummy ${ncn_progname}; ac_word=$2
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159 $as_echo_n "checking for $ac_word... " >&6; }
10160 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10161 $as_echo_n "(cached) " >&6
10162 else
10163 if test -n "$GCC_FOR_TARGET"; then
10164 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10165 else
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10173 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10175 break 2
10177 done
10178 done
10179 IFS=$as_save_IFS
10183 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10184 if test -n "$GCC_FOR_TARGET"; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10186 $as_echo "$GCC_FOR_TARGET" >&6; }
10187 else
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10193 done
10196 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10197 for ncn_progname in gcc; do
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10199 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10200 if test -x $with_build_time_tools/${ncn_progname}; then
10201 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10203 $as_echo "yes" >&6; }
10204 break
10205 else
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10209 done
10212 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10213 for ncn_progname in gcc; do
10214 if test -n "$ncn_target_tool_prefix"; then
10215 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10216 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10218 $as_echo_n "checking for $ac_word... " >&6; }
10219 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10220 $as_echo_n "(cached) " >&6
10221 else
10222 if test -n "$GCC_FOR_TARGET"; then
10223 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10224 else
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10232 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10236 done
10237 done
10238 IFS=$as_save_IFS
10242 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10243 if test -n "$GCC_FOR_TARGET"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10245 $as_echo "$GCC_FOR_TARGET" >&6; }
10246 else
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10253 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10255 set dummy ${ncn_progname}; ac_word=$2
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10257 $as_echo_n "checking for $ac_word... " >&6; }
10258 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 if test -n "$GCC_FOR_TARGET"; then
10262 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10263 else
10264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265 for as_dir in $PATH
10267 IFS=$as_save_IFS
10268 test -z "$as_dir" && as_dir=.
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10271 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10273 break 2
10275 done
10276 done
10277 IFS=$as_save_IFS
10281 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10282 if test -n "$GCC_FOR_TARGET"; then
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10284 $as_echo "$GCC_FOR_TARGET" >&6; }
10285 else
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10287 $as_echo "no" >&6; }
10292 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10293 done
10296 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10297 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10298 else
10299 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10304 if test -n "$GCJ_FOR_TARGET"; then
10305 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10306 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10307 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10310 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10311 for ncn_progname in gcj; do
10312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10313 set dummy ${ncn_progname}; ac_word=$2
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315 $as_echo_n "checking for $ac_word... " >&6; }
10316 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10317 $as_echo_n "(cached) " >&6
10318 else
10319 if test -n "$GCJ_FOR_TARGET"; then
10320 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10321 else
10322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10325 IFS=$as_save_IFS
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10329 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10331 break 2
10333 done
10334 done
10335 IFS=$as_save_IFS
10339 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10340 if test -n "$GCJ_FOR_TARGET"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10342 $as_echo "$GCJ_FOR_TARGET" >&6; }
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10349 done
10352 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10353 for ncn_progname in gcj; do
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10355 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10356 if test -x $with_build_time_tools/${ncn_progname}; then
10357 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10359 $as_echo "yes" >&6; }
10360 break
10361 else
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10365 done
10368 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10369 for ncn_progname in gcj; do
10370 if test -n "$ncn_target_tool_prefix"; then
10371 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10372 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 if test -n "$GCJ_FOR_TARGET"; then
10379 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10380 else
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390 break 2
10392 done
10393 done
10394 IFS=$as_save_IFS
10398 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10399 if test -n "$GCJ_FOR_TARGET"; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10401 $as_echo "$GCJ_FOR_TARGET" >&6; }
10402 else
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10409 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10411 set dummy ${ncn_progname}; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 if test -n "$GCJ_FOR_TARGET"; then
10418 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10419 else
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in $PATH
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10427 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10429 break 2
10431 done
10432 done
10433 IFS=$as_save_IFS
10437 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10438 if test -n "$GCJ_FOR_TARGET"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10440 $as_echo "$GCJ_FOR_TARGET" >&6; }
10441 else
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10448 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10449 done
10452 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10453 set dummy gcj
10454 if test $build = $target ; then
10455 GCJ_FOR_TARGET="$2"
10456 else
10457 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10459 else
10460 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10465 if test -n "$GFORTRAN_FOR_TARGET"; then
10466 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10467 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10468 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10471 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10472 for ncn_progname in gfortran; do
10473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10474 set dummy ${ncn_progname}; ac_word=$2
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10476 $as_echo_n "checking for $ac_word... " >&6; }
10477 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 if test -n "$GFORTRAN_FOR_TARGET"; then
10481 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10482 else
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10486 IFS=$as_save_IFS
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10490 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 break 2
10494 done
10495 done
10496 IFS=$as_save_IFS
10500 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10501 if test -n "$GFORTRAN_FOR_TARGET"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10503 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10504 else
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10510 done
10513 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10514 for ncn_progname in gfortran; do
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10516 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10517 if test -x $with_build_time_tools/${ncn_progname}; then
10518 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10520 $as_echo "yes" >&6; }
10521 break
10522 else
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524 $as_echo "no" >&6; }
10526 done
10529 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10530 for ncn_progname in gfortran; do
10531 if test -n "$ncn_target_tool_prefix"; then
10532 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10533 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10535 $as_echo_n "checking for $ac_word... " >&6; }
10536 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 if test -n "$GFORTRAN_FOR_TARGET"; then
10540 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10541 else
10542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543 for as_dir in $PATH
10545 IFS=$as_save_IFS
10546 test -z "$as_dir" && as_dir=.
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10549 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10551 break 2
10553 done
10554 done
10555 IFS=$as_save_IFS
10559 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10560 if test -n "$GFORTRAN_FOR_TARGET"; then
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10562 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10563 else
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10565 $as_echo "no" >&6; }
10570 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10572 set dummy ${ncn_progname}; ac_word=$2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574 $as_echo_n "checking for $ac_word... " >&6; }
10575 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 if test -n "$GFORTRAN_FOR_TARGET"; then
10579 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10580 else
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10588 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10592 done
10593 done
10594 IFS=$as_save_IFS
10598 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10599 if test -n "$GFORTRAN_FOR_TARGET"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10601 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
10609 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10610 done
10613 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10614 set dummy gfortran
10615 if test $build = $target ; then
10616 GFORTRAN_FOR_TARGET="$2"
10617 else
10618 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10620 else
10621 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10626 if test -n "$GOC_FOR_TARGET"; then
10627 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10628 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10629 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10632 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10633 for ncn_progname in gccgo; do
10634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10635 set dummy ${ncn_progname}; ac_word=$2
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637 $as_echo_n "checking for $ac_word... " >&6; }
10638 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10639 $as_echo_n "(cached) " >&6
10640 else
10641 if test -n "$GOC_FOR_TARGET"; then
10642 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10643 else
10644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645 for as_dir in $PATH
10647 IFS=$as_save_IFS
10648 test -z "$as_dir" && as_dir=.
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10651 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10653 break 2
10655 done
10656 done
10657 IFS=$as_save_IFS
10661 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10662 if test -n "$GOC_FOR_TARGET"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10664 $as_echo "$GOC_FOR_TARGET" >&6; }
10665 else
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10671 done
10674 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10675 for ncn_progname in gccgo; do
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10677 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10678 if test -x $with_build_time_tools/${ncn_progname}; then
10679 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681 $as_echo "yes" >&6; }
10682 break
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10687 done
10690 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10691 for ncn_progname in gccgo; do
10692 if test -n "$ncn_target_tool_prefix"; then
10693 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10694 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10696 $as_echo_n "checking for $ac_word... " >&6; }
10697 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700 if test -n "$GOC_FOR_TARGET"; then
10701 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10702 else
10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704 for as_dir in $PATH
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
10708 for ac_exec_ext in '' $ac_executable_extensions; do
10709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10710 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10712 break 2
10714 done
10715 done
10716 IFS=$as_save_IFS
10720 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10721 if test -n "$GOC_FOR_TARGET"; then
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10723 $as_echo "$GOC_FOR_TARGET" >&6; }
10724 else
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726 $as_echo "no" >&6; }
10731 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10733 set dummy ${ncn_progname}; ac_word=$2
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735 $as_echo_n "checking for $ac_word... " >&6; }
10736 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10737 $as_echo_n "(cached) " >&6
10738 else
10739 if test -n "$GOC_FOR_TARGET"; then
10740 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10741 else
10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10745 IFS=$as_save_IFS
10746 test -z "$as_dir" && as_dir=.
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10749 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10751 break 2
10753 done
10754 done
10755 IFS=$as_save_IFS
10759 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10760 if test -n "$GOC_FOR_TARGET"; then
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10762 $as_echo "$GOC_FOR_TARGET" >&6; }
10763 else
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; }
10770 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10771 done
10774 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10775 set dummy gccgo
10776 if test $build = $target ; then
10777 GOC_FOR_TARGET="$2"
10778 else
10779 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10781 else
10782 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10787 cat > conftest.c << \EOF
10788 #ifdef __GNUC__
10789 gcc_yay;
10790 #endif
10792 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10793 have_gcc_for_target=yes
10794 else
10795 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10796 have_gcc_for_target=no
10798 rm conftest.c
10803 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10804 if test -n "$with_build_time_tools"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10806 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10807 if test -x $with_build_time_tools/ar; then
10808 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10809 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10811 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10816 elif test $build != $host && test $have_gcc_for_target = yes; then
10817 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10818 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10819 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10822 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10823 # Extract the first word of "ar", so it can be a program name with args.
10824 set dummy ar; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 case $AR_FOR_TARGET in
10831 [\\/]* | ?:[\\/]*)
10832 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $gcc_cv_tool_dirs
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10842 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844 break 2
10846 done
10847 done
10848 IFS=$as_save_IFS
10851 esac
10853 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10854 if test -n "$AR_FOR_TARGET"; then
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10856 $as_echo "$AR_FOR_TARGET" >&6; }
10857 else
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; }
10864 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10867 if test -n "$AR_FOR_TARGET"; then
10868 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10869 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10870 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10873 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10874 for ncn_progname in ar; do
10875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10876 set dummy ${ncn_progname}; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878 $as_echo_n "checking for $ac_word... " >&6; }
10879 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10880 $as_echo_n "(cached) " >&6
10881 else
10882 if test -n "$AR_FOR_TARGET"; then
10883 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10884 else
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10892 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 break 2
10896 done
10897 done
10898 IFS=$as_save_IFS
10902 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10903 if test -n "$AR_FOR_TARGET"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10905 $as_echo "$AR_FOR_TARGET" >&6; }
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10912 done
10915 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10916 for ncn_progname in ar; do
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10918 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10919 if test -x $with_build_time_tools/${ncn_progname}; then
10920 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10922 $as_echo "yes" >&6; }
10923 break
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10928 done
10931 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10932 for ncn_progname in ar; do
10933 if test -n "$ncn_target_tool_prefix"; then
10934 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10935 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937 $as_echo_n "checking for $ac_word... " >&6; }
10938 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 if test -n "$AR_FOR_TARGET"; then
10942 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10943 else
10944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10955 done
10956 done
10957 IFS=$as_save_IFS
10961 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10962 if test -n "$AR_FOR_TARGET"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10964 $as_echo "$AR_FOR_TARGET" >&6; }
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967 $as_echo "no" >&6; }
10972 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10974 set dummy ${ncn_progname}; ac_word=$2
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976 $as_echo_n "checking for $ac_word... " >&6; }
10977 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 if test -n "$AR_FOR_TARGET"; then
10981 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10982 else
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10986 IFS=$as_save_IFS
10987 test -z "$as_dir" && as_dir=.
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10990 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 break 2
10994 done
10995 done
10996 IFS=$as_save_IFS
11000 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11001 if test -n "$AR_FOR_TARGET"; then
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11003 $as_echo "$AR_FOR_TARGET" >&6; }
11004 else
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11011 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11012 done
11015 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11016 set dummy ar
11017 if test $build = $target ; then
11018 AR_FOR_TARGET="$2"
11019 else
11020 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11022 else
11023 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11026 else
11027 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11033 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11034 if test -n "$with_build_time_tools"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11036 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11037 if test -x $with_build_time_tools/as; then
11038 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11039 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11041 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11046 elif test $build != $host && test $have_gcc_for_target = yes; then
11047 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11048 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11049 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11052 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11053 # Extract the first word of "as", so it can be a program name with args.
11054 set dummy as; 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_path_AS_FOR_TARGET+set}" = set; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 case $AS_FOR_TARGET in
11061 [\\/]* | ?:[\\/]*)
11062 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $gcc_cv_tool_dirs
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11072 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11074 break 2
11076 done
11077 done
11078 IFS=$as_save_IFS
11081 esac
11083 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11084 if test -n "$AS_FOR_TARGET"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11086 $as_echo "$AS_FOR_TARGET" >&6; }
11087 else
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11094 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11097 if test -n "$AS_FOR_TARGET"; then
11098 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11099 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11100 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11103 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11104 for ncn_progname in as; do
11105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11106 set dummy ${ncn_progname}; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 if test -n "$AS_FOR_TARGET"; then
11113 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11114 else
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11126 done
11127 done
11128 IFS=$as_save_IFS
11132 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11133 if test -n "$AS_FOR_TARGET"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11135 $as_echo "$AS_FOR_TARGET" >&6; }
11136 else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11142 done
11145 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11146 for ncn_progname in as; do
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11148 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11149 if test -x $with_build_time_tools/${ncn_progname}; then
11150 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11152 $as_echo "yes" >&6; }
11153 break
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11158 done
11161 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11162 for ncn_progname in as; do
11163 if test -n "$ncn_target_tool_prefix"; then
11164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11165 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 if test -n "$AS_FOR_TARGET"; then
11172 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11173 else
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11185 done
11186 done
11187 IFS=$as_save_IFS
11191 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11192 if test -n "$AS_FOR_TARGET"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11194 $as_echo "$AS_FOR_TARGET" >&6; }
11195 else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11202 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11204 set dummy ${ncn_progname}; ac_word=$2
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206 $as_echo_n "checking for $ac_word... " >&6; }
11207 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
11209 else
11210 if test -n "$AS_FOR_TARGET"; then
11211 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11212 else
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in $PATH
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11220 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11224 done
11225 done
11226 IFS=$as_save_IFS
11230 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11231 if test -n "$AS_FOR_TARGET"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11233 $as_echo "$AS_FOR_TARGET" >&6; }
11234 else
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; }
11241 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11242 done
11245 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11246 set dummy as
11247 if test $build = $target ; then
11248 AS_FOR_TARGET="$2"
11249 else
11250 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11252 else
11253 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11256 else
11257 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11263 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11264 if test -n "$with_build_time_tools"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11266 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11267 if test -x $with_build_time_tools/dlltool; then
11268 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11269 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11271 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11272 else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11276 elif test $build != $host && test $have_gcc_for_target = yes; then
11277 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11278 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11279 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11282 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11283 # Extract the first word of "dlltool", so it can be a program name with args.
11284 set dummy dlltool; ac_word=$2
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286 $as_echo_n "checking for $ac_word... " >&6; }
11287 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 case $DLLTOOL_FOR_TARGET in
11291 [\\/]* | ?:[\\/]*)
11292 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $gcc_cv_tool_dirs
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11302 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 break 2
11306 done
11307 done
11308 IFS=$as_save_IFS
11311 esac
11313 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11314 if test -n "$DLLTOOL_FOR_TARGET"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11316 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11317 else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11324 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11327 if test -n "$DLLTOOL_FOR_TARGET"; then
11328 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11329 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11330 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11333 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11334 for ncn_progname in dlltool; do
11335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11336 set dummy ${ncn_progname}; ac_word=$2
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338 $as_echo_n "checking for $ac_word... " >&6; }
11339 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 if test -n "$DLLTOOL_FOR_TARGET"; then
11343 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11344 else
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11352 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 break 2
11356 done
11357 done
11358 IFS=$as_save_IFS
11362 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11363 if test -n "$DLLTOOL_FOR_TARGET"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11365 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11372 done
11375 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11376 for ncn_progname in dlltool; do
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11378 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11379 if test -x $with_build_time_tools/${ncn_progname}; then
11380 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11382 $as_echo "yes" >&6; }
11383 break
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11388 done
11391 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11392 for ncn_progname in dlltool; do
11393 if test -n "$ncn_target_tool_prefix"; then
11394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11395 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 if test -n "$DLLTOOL_FOR_TARGET"; then
11402 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11403 else
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11411 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413 break 2
11415 done
11416 done
11417 IFS=$as_save_IFS
11421 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11422 if test -n "$DLLTOOL_FOR_TARGET"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11424 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11432 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11434 set dummy ${ncn_progname}; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 if test -n "$DLLTOOL_FOR_TARGET"; then
11441 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11442 else
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11450 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11452 break 2
11454 done
11455 done
11456 IFS=$as_save_IFS
11460 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11461 if test -n "$DLLTOOL_FOR_TARGET"; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11463 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11464 else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11471 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11472 done
11475 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11476 set dummy dlltool
11477 if test $build = $target ; then
11478 DLLTOOL_FOR_TARGET="$2"
11479 else
11480 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11482 else
11483 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11486 else
11487 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11493 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11494 if test -n "$with_build_time_tools"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11496 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11497 if test -x $with_build_time_tools/ld; then
11498 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11499 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11501 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11506 elif test $build != $host && test $have_gcc_for_target = yes; then
11507 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11508 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11509 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11512 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11513 # Extract the first word of "ld", so it can be a program name with args.
11514 set dummy ld; ac_word=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 case $LD_FOR_TARGET in
11521 [\\/]* | ?:[\\/]*)
11522 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $gcc_cv_tool_dirs
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11536 done
11537 done
11538 IFS=$as_save_IFS
11541 esac
11543 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11544 if test -n "$LD_FOR_TARGET"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11546 $as_echo "$LD_FOR_TARGET" >&6; }
11547 else
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11554 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11557 if test -n "$LD_FOR_TARGET"; then
11558 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11559 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11560 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11563 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11564 for ncn_progname in ld; do
11565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11566 set dummy ${ncn_progname}; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 if test -n "$LD_FOR_TARGET"; then
11573 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11574 else
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 break 2
11586 done
11587 done
11588 IFS=$as_save_IFS
11592 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11593 if test -n "$LD_FOR_TARGET"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11595 $as_echo "$LD_FOR_TARGET" >&6; }
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11602 done
11605 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11606 for ncn_progname in ld; do
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11608 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11609 if test -x $with_build_time_tools/${ncn_progname}; then
11610 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11612 $as_echo "yes" >&6; }
11613 break
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11618 done
11621 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11622 for ncn_progname in ld; do
11623 if test -n "$ncn_target_tool_prefix"; then
11624 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11625 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627 $as_echo_n "checking for $ac_word... " >&6; }
11628 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 if test -n "$LD_FOR_TARGET"; then
11632 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11633 else
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11641 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 break 2
11645 done
11646 done
11647 IFS=$as_save_IFS
11651 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11652 if test -n "$LD_FOR_TARGET"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11654 $as_echo "$LD_FOR_TARGET" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11662 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11664 set dummy ${ncn_progname}; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 if test -n "$LD_FOR_TARGET"; then
11671 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11672 else
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11680 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11684 done
11685 done
11686 IFS=$as_save_IFS
11690 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11691 if test -n "$LD_FOR_TARGET"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11693 $as_echo "$LD_FOR_TARGET" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11701 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11702 done
11705 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11706 set dummy ld
11707 if test $build = $target ; then
11708 LD_FOR_TARGET="$2"
11709 else
11710 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11712 else
11713 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11716 else
11717 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11723 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11724 if test -n "$with_build_time_tools"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11726 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11727 if test -x $with_build_time_tools/lipo; then
11728 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11729 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11731 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11732 else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11736 elif test $build != $host && test $have_gcc_for_target = yes; then
11737 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11738 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11739 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11742 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11743 # Extract the first word of "lipo", so it can be a program name with args.
11744 set dummy lipo; ac_word=$2
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746 $as_echo_n "checking for $ac_word... " >&6; }
11747 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 case $LIPO_FOR_TARGET in
11751 [\\/]* | ?:[\\/]*)
11752 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $gcc_cv_tool_dirs
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11762 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11766 done
11767 done
11768 IFS=$as_save_IFS
11771 esac
11773 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11774 if test -n "$LIPO_FOR_TARGET"; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11776 $as_echo "$LIPO_FOR_TARGET" >&6; }
11777 else
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11784 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11787 if test -n "$LIPO_FOR_TARGET"; then
11788 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11789 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11790 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11793 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11794 for ncn_progname in lipo; do
11795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11796 set dummy ${ncn_progname}; ac_word=$2
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798 $as_echo_n "checking for $ac_word... " >&6; }
11799 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 if test -n "$LIPO_FOR_TARGET"; then
11803 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11804 else
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11816 done
11817 done
11818 IFS=$as_save_IFS
11822 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11823 if test -n "$LIPO_FOR_TARGET"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11825 $as_echo "$LIPO_FOR_TARGET" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11832 done
11835 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11836 for ncn_progname in lipo; do
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11838 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11839 if test -x $with_build_time_tools/${ncn_progname}; then
11840 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11842 $as_echo "yes" >&6; }
11843 break
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11848 done
11851 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11852 for ncn_progname in lipo; do
11853 if test -n "$ncn_target_tool_prefix"; then
11854 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11855 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 if test -n "$LIPO_FOR_TARGET"; then
11862 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11863 else
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11871 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 break 2
11875 done
11876 done
11877 IFS=$as_save_IFS
11881 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11882 if test -n "$LIPO_FOR_TARGET"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11884 $as_echo "$LIPO_FOR_TARGET" >&6; }
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11892 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11894 set dummy ${ncn_progname}; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 if test -n "$LIPO_FOR_TARGET"; then
11901 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11902 else
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in $PATH
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11910 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912 break 2
11914 done
11915 done
11916 IFS=$as_save_IFS
11920 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11921 if test -n "$LIPO_FOR_TARGET"; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11923 $as_echo "$LIPO_FOR_TARGET" >&6; }
11924 else
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11931 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11932 done
11935 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11936 set dummy lipo
11937 if test $build = $target ; then
11938 LIPO_FOR_TARGET="$2"
11939 else
11940 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11942 else
11943 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11946 else
11947 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11953 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11954 if test -n "$with_build_time_tools"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11956 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11957 if test -x $with_build_time_tools/nm; then
11958 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11959 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11961 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11962 else
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11966 elif test $build != $host && test $have_gcc_for_target = yes; then
11967 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11968 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11969 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11972 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11973 # Extract the first word of "nm", so it can be a program name with args.
11974 set dummy nm; ac_word=$2
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976 $as_echo_n "checking for $ac_word... " >&6; }
11977 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 case $NM_FOR_TARGET in
11981 [\\/]* | ?:[\\/]*)
11982 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in $gcc_cv_tool_dirs
11988 IFS=$as_save_IFS
11989 test -z "$as_dir" && as_dir=.
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11992 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11994 break 2
11996 done
11997 done
11998 IFS=$as_save_IFS
12001 esac
12003 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12004 if test -n "$NM_FOR_TARGET"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12006 $as_echo "$NM_FOR_TARGET" >&6; }
12007 else
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12014 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12017 if test -n "$NM_FOR_TARGET"; then
12018 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12019 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12020 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12023 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12024 for ncn_progname in nm; do
12025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12026 set dummy ${ncn_progname}; ac_word=$2
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028 $as_echo_n "checking for $ac_word... " >&6; }
12029 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 if test -n "$NM_FOR_TARGET"; then
12033 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12034 else
12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036 for as_dir in $PATH
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12042 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12044 break 2
12046 done
12047 done
12048 IFS=$as_save_IFS
12052 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12053 if test -n "$NM_FOR_TARGET"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12055 $as_echo "$NM_FOR_TARGET" >&6; }
12056 else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12062 done
12065 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12066 for ncn_progname in nm; do
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12068 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12069 if test -x $with_build_time_tools/${ncn_progname}; then
12070 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072 $as_echo "yes" >&6; }
12073 break
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12078 done
12081 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12082 for ncn_progname in nm; do
12083 if test -n "$ncn_target_tool_prefix"; then
12084 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12085 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 if test -n "$NM_FOR_TARGET"; then
12092 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12093 else
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12101 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103 break 2
12105 done
12106 done
12107 IFS=$as_save_IFS
12111 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12112 if test -n "$NM_FOR_TARGET"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12114 $as_echo "$NM_FOR_TARGET" >&6; }
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12122 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12124 set dummy ${ncn_progname}; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 if test -n "$NM_FOR_TARGET"; then
12131 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12132 else
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12140 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 break 2
12144 done
12145 done
12146 IFS=$as_save_IFS
12150 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12151 if test -n "$NM_FOR_TARGET"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12153 $as_echo "$NM_FOR_TARGET" >&6; }
12154 else
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156 $as_echo "no" >&6; }
12161 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12162 done
12165 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12166 set dummy nm
12167 if test $build = $target ; then
12168 NM_FOR_TARGET="$2"
12169 else
12170 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12172 else
12173 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12176 else
12177 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12183 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12184 if test -n "$with_build_time_tools"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12186 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12187 if test -x $with_build_time_tools/objdump; then
12188 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12189 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12191 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12196 elif test $build != $host && test $have_gcc_for_target = yes; then
12197 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12198 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12199 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12202 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12203 # Extract the first word of "objdump", so it can be a program name with args.
12204 set dummy objdump; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 case $OBJDUMP_FOR_TARGET in
12211 [\\/]* | ?:[\\/]*)
12212 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $gcc_cv_tool_dirs
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12226 done
12227 done
12228 IFS=$as_save_IFS
12231 esac
12233 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12234 if test -n "$OBJDUMP_FOR_TARGET"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12236 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12237 else
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12244 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12247 if test -n "$OBJDUMP_FOR_TARGET"; then
12248 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12249 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12250 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12253 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12254 for ncn_progname in objdump; do
12255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12256 set dummy ${ncn_progname}; ac_word=$2
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12258 $as_echo_n "checking for $ac_word... " >&6; }
12259 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
12261 else
12262 if test -n "$OBJDUMP_FOR_TARGET"; then
12263 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12264 else
12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266 for as_dir in $PATH
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12272 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12274 break 2
12276 done
12277 done
12278 IFS=$as_save_IFS
12282 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12283 if test -n "$OBJDUMP_FOR_TARGET"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12285 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12292 done
12295 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12296 for ncn_progname in objdump; do
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12298 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12299 if test -x $with_build_time_tools/${ncn_progname}; then
12300 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302 $as_echo "yes" >&6; }
12303 break
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12308 done
12311 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12312 for ncn_progname in objdump; do
12313 if test -n "$ncn_target_tool_prefix"; then
12314 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12315 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 if test -n "$OBJDUMP_FOR_TARGET"; then
12322 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12323 else
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12327 IFS=$as_save_IFS
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12331 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 break 2
12335 done
12336 done
12337 IFS=$as_save_IFS
12341 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12342 if test -n "$OBJDUMP_FOR_TARGET"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12344 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12352 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12354 set dummy ${ncn_progname}; ac_word=$2
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12356 $as_echo_n "checking for $ac_word... " >&6; }
12357 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 if test -n "$OBJDUMP_FOR_TARGET"; then
12361 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12362 else
12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364 for as_dir in $PATH
12366 IFS=$as_save_IFS
12367 test -z "$as_dir" && as_dir=.
12368 for ac_exec_ext in '' $ac_executable_extensions; do
12369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12370 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12372 break 2
12374 done
12375 done
12376 IFS=$as_save_IFS
12380 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12381 if test -n "$OBJDUMP_FOR_TARGET"; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12383 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12384 else
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12391 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12392 done
12395 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12396 set dummy objdump
12397 if test $build = $target ; then
12398 OBJDUMP_FOR_TARGET="$2"
12399 else
12400 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12402 else
12403 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12406 else
12407 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12413 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12414 if test -n "$with_build_time_tools"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12416 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12417 if test -x $with_build_time_tools/ranlib; then
12418 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12419 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12421 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12422 else
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424 $as_echo "no" >&6; }
12426 elif test $build != $host && test $have_gcc_for_target = yes; then
12427 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12428 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12429 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12432 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12433 # Extract the first word of "ranlib", so it can be a program name with args.
12434 set dummy ranlib; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 $as_echo_n "checking for $ac_word... " >&6; }
12437 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 case $RANLIB_FOR_TARGET in
12441 [\\/]* | ?:[\\/]*)
12442 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in $gcc_cv_tool_dirs
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12452 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 break 2
12456 done
12457 done
12458 IFS=$as_save_IFS
12461 esac
12463 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12464 if test -n "$RANLIB_FOR_TARGET"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12466 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12474 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12477 if test -n "$RANLIB_FOR_TARGET"; then
12478 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12479 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12480 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12483 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12484 for ncn_progname in ranlib; do
12485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12486 set dummy ${ncn_progname}; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 if test -n "$RANLIB_FOR_TARGET"; then
12493 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12502 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504 break 2
12506 done
12507 done
12508 IFS=$as_save_IFS
12512 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12513 if test -n "$RANLIB_FOR_TARGET"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12515 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12522 done
12525 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12526 for ncn_progname in ranlib; do
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12528 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12529 if test -x $with_build_time_tools/${ncn_progname}; then
12530 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532 $as_echo "yes" >&6; }
12533 break
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12538 done
12541 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12542 for ncn_progname in ranlib; do
12543 if test -n "$ncn_target_tool_prefix"; then
12544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12545 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547 $as_echo_n "checking for $ac_word... " >&6; }
12548 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 if test -n "$RANLIB_FOR_TARGET"; then
12552 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12553 else
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555 for as_dir in $PATH
12557 IFS=$as_save_IFS
12558 test -z "$as_dir" && as_dir=.
12559 for ac_exec_ext in '' $ac_executable_extensions; do
12560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12561 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563 break 2
12565 done
12566 done
12567 IFS=$as_save_IFS
12571 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12572 if test -n "$RANLIB_FOR_TARGET"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12574 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12575 else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12582 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12584 set dummy ${ncn_progname}; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 if test -n "$RANLIB_FOR_TARGET"; then
12591 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12592 else
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 break 2
12604 done
12605 done
12606 IFS=$as_save_IFS
12610 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12611 if test -n "$RANLIB_FOR_TARGET"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12613 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12614 else
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12621 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12622 done
12625 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12626 set dummy ranlib
12627 if test $build = $target ; then
12628 RANLIB_FOR_TARGET="$2"
12629 else
12630 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12632 else
12633 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12636 else
12637 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12643 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12644 if test -n "$with_build_time_tools"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12646 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12647 if test -x $with_build_time_tools/readelf; then
12648 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12649 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12651 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12652 else
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12656 elif test $build != $host && test $have_gcc_for_target = yes; then
12657 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12658 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12659 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12662 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12663 # Extract the first word of "readelf", so it can be a program name with args.
12664 set dummy readelf; ac_word=$2
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12666 $as_echo_n "checking for $ac_word... " >&6; }
12667 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 case $READELF_FOR_TARGET in
12671 [\\/]* | ?:[\\/]*)
12672 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676 for as_dir in $gcc_cv_tool_dirs
12678 IFS=$as_save_IFS
12679 test -z "$as_dir" && as_dir=.
12680 for ac_exec_ext in '' $ac_executable_extensions; do
12681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12682 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12684 break 2
12686 done
12687 done
12688 IFS=$as_save_IFS
12691 esac
12693 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12694 if test -n "$READELF_FOR_TARGET"; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12696 $as_echo "$READELF_FOR_TARGET" >&6; }
12697 else
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699 $as_echo "no" >&6; }
12704 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12707 if test -n "$READELF_FOR_TARGET"; then
12708 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12709 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12710 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12713 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12714 for ncn_progname in readelf; do
12715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12716 set dummy ${ncn_progname}; ac_word=$2
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718 $as_echo_n "checking for $ac_word... " >&6; }
12719 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 if test -n "$READELF_FOR_TARGET"; then
12723 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12724 else
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12732 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 break 2
12736 done
12737 done
12738 IFS=$as_save_IFS
12742 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12743 if test -n "$READELF_FOR_TARGET"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12745 $as_echo "$READELF_FOR_TARGET" >&6; }
12746 else
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 $as_echo "no" >&6; }
12752 done
12755 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12756 for ncn_progname in readelf; do
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12758 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12759 if test -x $with_build_time_tools/${ncn_progname}; then
12760 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12762 $as_echo "yes" >&6; }
12763 break
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12768 done
12771 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12772 for ncn_progname in readelf; do
12773 if test -n "$ncn_target_tool_prefix"; then
12774 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12775 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 if test -n "$READELF_FOR_TARGET"; then
12782 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12783 else
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12795 done
12796 done
12797 IFS=$as_save_IFS
12801 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12802 if test -n "$READELF_FOR_TARGET"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12804 $as_echo "$READELF_FOR_TARGET" >&6; }
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12812 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12814 set dummy ${ncn_progname}; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 $as_echo_n "checking for $ac_word... " >&6; }
12817 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 if test -n "$READELF_FOR_TARGET"; then
12821 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12822 else
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12826 IFS=$as_save_IFS
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12830 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 break 2
12834 done
12835 done
12836 IFS=$as_save_IFS
12840 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12841 if test -n "$READELF_FOR_TARGET"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12843 $as_echo "$READELF_FOR_TARGET" >&6; }
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12851 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12852 done
12855 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12856 set dummy readelf
12857 if test $build = $target ; then
12858 READELF_FOR_TARGET="$2"
12859 else
12860 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12862 else
12863 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12866 else
12867 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12873 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12874 if test -n "$with_build_time_tools"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12876 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12877 if test -x $with_build_time_tools/strip; then
12878 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12879 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12881 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12886 elif test $build != $host && test $have_gcc_for_target = yes; then
12887 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12888 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12889 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12892 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12893 # Extract the first word of "strip", so it can be a program name with args.
12894 set dummy strip; ac_word=$2
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12896 $as_echo_n "checking for $ac_word... " >&6; }
12897 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 case $STRIP_FOR_TARGET in
12901 [\\/]* | ?:[\\/]*)
12902 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $gcc_cv_tool_dirs
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12916 done
12917 done
12918 IFS=$as_save_IFS
12921 esac
12923 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12924 if test -n "$STRIP_FOR_TARGET"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12926 $as_echo "$STRIP_FOR_TARGET" >&6; }
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12934 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12937 if test -n "$STRIP_FOR_TARGET"; then
12938 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12939 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12940 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12943 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12944 for ncn_progname in strip; do
12945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12946 set dummy ${ncn_progname}; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948 $as_echo_n "checking for $ac_word... " >&6; }
12949 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12951 else
12952 if test -n "$STRIP_FOR_TARGET"; then
12953 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12954 else
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12962 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12964 break 2
12966 done
12967 done
12968 IFS=$as_save_IFS
12972 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12973 if test -n "$STRIP_FOR_TARGET"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12975 $as_echo "$STRIP_FOR_TARGET" >&6; }
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12982 done
12985 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12986 for ncn_progname in strip; do
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12988 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12989 if test -x $with_build_time_tools/${ncn_progname}; then
12990 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12992 $as_echo "yes" >&6; }
12993 break
12994 else
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
12998 done
13001 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13002 for ncn_progname in strip; do
13003 if test -n "$ncn_target_tool_prefix"; then
13004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13005 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011 if test -n "$STRIP_FOR_TARGET"; then
13012 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13013 else
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13025 done
13026 done
13027 IFS=$as_save_IFS
13031 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13032 if test -n "$STRIP_FOR_TARGET"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13034 $as_echo "$STRIP_FOR_TARGET" >&6; }
13035 else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13042 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13044 set dummy ${ncn_progname}; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046 $as_echo_n "checking for $ac_word... " >&6; }
13047 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 if test -n "$STRIP_FOR_TARGET"; then
13051 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13052 else
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13056 IFS=$as_save_IFS
13057 test -z "$as_dir" && as_dir=.
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13062 break 2
13064 done
13065 done
13066 IFS=$as_save_IFS
13070 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13071 if test -n "$STRIP_FOR_TARGET"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13073 $as_echo "$STRIP_FOR_TARGET" >&6; }
13074 else
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13081 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13082 done
13085 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13086 set dummy strip
13087 if test $build = $target ; then
13088 STRIP_FOR_TARGET="$2"
13089 else
13090 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13092 else
13093 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13096 else
13097 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13103 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13104 if test -n "$with_build_time_tools"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13106 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13107 if test -x $with_build_time_tools/windres; then
13108 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13109 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13111 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13112 else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13116 elif test $build != $host && test $have_gcc_for_target = yes; then
13117 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13118 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13119 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13122 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13123 # Extract the first word of "windres", so it can be a program name with args.
13124 set dummy windres; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13128 $as_echo_n "(cached) " >&6
13129 else
13130 case $WINDRES_FOR_TARGET in
13131 [\\/]* | ?:[\\/]*)
13132 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $gcc_cv_tool_dirs
13138 IFS=$as_save_IFS
13139 test -z "$as_dir" && as_dir=.
13140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13142 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13144 break 2
13146 done
13147 done
13148 IFS=$as_save_IFS
13151 esac
13153 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13154 if test -n "$WINDRES_FOR_TARGET"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13156 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13157 else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13164 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13167 if test -n "$WINDRES_FOR_TARGET"; then
13168 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13169 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13170 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13173 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13174 for ncn_progname in windres; do
13175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13176 set dummy ${ncn_progname}; ac_word=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178 $as_echo_n "checking for $ac_word... " >&6; }
13179 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 if test -n "$WINDRES_FOR_TARGET"; then
13183 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13184 else
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13188 IFS=$as_save_IFS
13189 test -z "$as_dir" && as_dir=.
13190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13192 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13194 break 2
13196 done
13197 done
13198 IFS=$as_save_IFS
13202 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13203 if test -n "$WINDRES_FOR_TARGET"; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13205 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13206 else
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208 $as_echo "no" >&6; }
13212 done
13215 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13216 for ncn_progname in windres; do
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13218 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13219 if test -x $with_build_time_tools/${ncn_progname}; then
13220 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13222 $as_echo "yes" >&6; }
13223 break
13224 else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13228 done
13231 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13232 for ncn_progname in windres; do
13233 if test -n "$ncn_target_tool_prefix"; then
13234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13235 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 if test -n "$WINDRES_FOR_TARGET"; then
13242 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13243 else
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13247 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13251 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253 break 2
13255 done
13256 done
13257 IFS=$as_save_IFS
13261 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13262 if test -n "$WINDRES_FOR_TARGET"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13264 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13272 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13274 set dummy ${ncn_progname}; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 if test -n "$WINDRES_FOR_TARGET"; then
13281 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13282 else
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13290 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13294 done
13295 done
13296 IFS=$as_save_IFS
13300 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13301 if test -n "$WINDRES_FOR_TARGET"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13303 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13304 else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13311 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13312 done
13315 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13316 set dummy windres
13317 if test $build = $target ; then
13318 WINDRES_FOR_TARGET="$2"
13319 else
13320 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13322 else
13323 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13326 else
13327 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13333 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13334 if test -n "$with_build_time_tools"; then
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13336 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13337 if test -x $with_build_time_tools/windmc; then
13338 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13339 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13341 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13342 else
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 $as_echo "no" >&6; }
13346 elif test $build != $host && test $have_gcc_for_target = yes; then
13347 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13348 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13349 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13352 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13353 # Extract the first word of "windmc", so it can be a program name with args.
13354 set dummy windmc; ac_word=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13358 $as_echo_n "(cached) " >&6
13359 else
13360 case $WINDMC_FOR_TARGET in
13361 [\\/]* | ?:[\\/]*)
13362 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366 for as_dir in $gcc_cv_tool_dirs
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
13371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13372 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374 break 2
13376 done
13377 done
13378 IFS=$as_save_IFS
13381 esac
13383 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13384 if test -n "$WINDMC_FOR_TARGET"; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13386 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13387 else
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13394 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13397 if test -n "$WINDMC_FOR_TARGET"; then
13398 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13399 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13400 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13403 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13404 for ncn_progname in windmc; do
13405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13406 set dummy ${ncn_progname}; ac_word=$2
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408 $as_echo_n "checking for $ac_word... " >&6; }
13409 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 if test -n "$WINDMC_FOR_TARGET"; then
13413 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13414 else
13415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416 for as_dir in $PATH
13418 IFS=$as_save_IFS
13419 test -z "$as_dir" && as_dir=.
13420 for ac_exec_ext in '' $ac_executable_extensions; do
13421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13422 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13424 break 2
13426 done
13427 done
13428 IFS=$as_save_IFS
13432 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13433 if test -n "$WINDMC_FOR_TARGET"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13435 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13436 else
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 $as_echo "no" >&6; }
13442 done
13445 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13446 for ncn_progname in windmc; do
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13448 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13449 if test -x $with_build_time_tools/${ncn_progname}; then
13450 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13452 $as_echo "yes" >&6; }
13453 break
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13458 done
13461 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13462 for ncn_progname in windmc; do
13463 if test -n "$ncn_target_tool_prefix"; then
13464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13465 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13467 $as_echo_n "checking for $ac_word... " >&6; }
13468 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 if test -n "$WINDMC_FOR_TARGET"; then
13472 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13473 else
13474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13475 for as_dir in $PATH
13477 IFS=$as_save_IFS
13478 test -z "$as_dir" && as_dir=.
13479 for ac_exec_ext in '' $ac_executable_extensions; do
13480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13481 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13483 break 2
13485 done
13486 done
13487 IFS=$as_save_IFS
13491 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13492 if test -n "$WINDMC_FOR_TARGET"; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13494 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13495 else
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13502 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13504 set dummy ${ncn_progname}; ac_word=$2
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13506 $as_echo_n "checking for $ac_word... " >&6; }
13507 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 if test -n "$WINDMC_FOR_TARGET"; then
13511 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13512 else
13513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13514 for as_dir in $PATH
13516 IFS=$as_save_IFS
13517 test -z "$as_dir" && as_dir=.
13518 for ac_exec_ext in '' $ac_executable_extensions; do
13519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13520 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13522 break 2
13524 done
13525 done
13526 IFS=$as_save_IFS
13530 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13531 if test -n "$WINDMC_FOR_TARGET"; then
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13533 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13534 else
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536 $as_echo "no" >&6; }
13541 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13542 done
13545 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13546 set dummy windmc
13547 if test $build = $target ; then
13548 WINDMC_FOR_TARGET="$2"
13549 else
13550 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13552 else
13553 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13556 else
13557 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13561 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13564 $as_echo_n "checking where to find the target ar... " >&6; }
13565 if test "x${build}" != "x${host}" ; then
13566 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13567 # We already found the complete path
13568 ac_dir=`dirname $AR_FOR_TARGET`
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13570 $as_echo "pre-installed in $ac_dir" >&6; }
13571 else
13572 # Canadian cross, just use what we found
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13574 $as_echo "pre-installed" >&6; }
13576 else
13577 ok=yes
13578 case " ${configdirs} " in
13579 *" binutils "*) ;;
13580 *) ok=no ;;
13581 esac
13583 if test $ok = yes; then
13584 # An in-tree tool is available and we can use it
13585 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13587 $as_echo "just compiled" >&6; }
13588 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13589 # We already found the complete path
13590 ac_dir=`dirname $AR_FOR_TARGET`
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13592 $as_echo "pre-installed in $ac_dir" >&6; }
13593 elif test "x$target" = "x$host"; then
13594 # We can use an host tool
13595 AR_FOR_TARGET='$(AR)'
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13597 $as_echo "host tool" >&6; }
13598 else
13599 # We need a cross tool
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13601 $as_echo "pre-installed" >&6; }
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13606 $as_echo_n "checking where to find the target as... " >&6; }
13607 if test "x${build}" != "x${host}" ; then
13608 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13609 # We already found the complete path
13610 ac_dir=`dirname $AS_FOR_TARGET`
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13612 $as_echo "pre-installed in $ac_dir" >&6; }
13613 else
13614 # Canadian cross, just use what we found
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13616 $as_echo "pre-installed" >&6; }
13618 else
13619 ok=yes
13620 case " ${configdirs} " in
13621 *" gas "*) ;;
13622 *) ok=no ;;
13623 esac
13625 if test $ok = yes; then
13626 # An in-tree tool is available and we can use it
13627 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13629 $as_echo "just compiled" >&6; }
13630 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13631 # We already found the complete path
13632 ac_dir=`dirname $AS_FOR_TARGET`
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13634 $as_echo "pre-installed in $ac_dir" >&6; }
13635 elif test "x$target" = "x$host"; then
13636 # We can use an host tool
13637 AS_FOR_TARGET='$(AS)'
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13639 $as_echo "host tool" >&6; }
13640 else
13641 # We need a cross tool
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13643 $as_echo "pre-installed" >&6; }
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13648 $as_echo_n "checking where to find the target cc... " >&6; }
13649 if test "x${build}" != "x${host}" ; then
13650 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13651 # We already found the complete path
13652 ac_dir=`dirname $CC_FOR_TARGET`
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13654 $as_echo "pre-installed in $ac_dir" >&6; }
13655 else
13656 # Canadian cross, just use what we found
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13658 $as_echo "pre-installed" >&6; }
13660 else
13661 ok=yes
13662 case " ${configdirs} " in
13663 *" gcc "*) ;;
13664 *) ok=no ;;
13665 esac
13667 if test $ok = yes; then
13668 # An in-tree tool is available and we can use it
13669 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13671 $as_echo "just compiled" >&6; }
13672 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13673 # We already found the complete path
13674 ac_dir=`dirname $CC_FOR_TARGET`
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13676 $as_echo "pre-installed in $ac_dir" >&6; }
13677 elif test "x$target" = "x$host"; then
13678 # We can use an host tool
13679 CC_FOR_TARGET='$(CC)'
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13681 $as_echo "host tool" >&6; }
13682 else
13683 # We need a cross tool
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13685 $as_echo "pre-installed" >&6; }
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13690 $as_echo_n "checking where to find the target c++... " >&6; }
13691 if test "x${build}" != "x${host}" ; then
13692 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13693 # We already found the complete path
13694 ac_dir=`dirname $CXX_FOR_TARGET`
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13696 $as_echo "pre-installed in $ac_dir" >&6; }
13697 else
13698 # Canadian cross, just use what we found
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13700 $as_echo "pre-installed" >&6; }
13702 else
13703 ok=yes
13704 case " ${configdirs} " in
13705 *" gcc "*) ;;
13706 *) ok=no ;;
13707 esac
13708 case ,${enable_languages}, in
13709 *,c++,*) ;;
13710 *) ok=no ;;
13711 esac
13712 if test $ok = yes; then
13713 # An in-tree tool is available and we can use it
13714 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'
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13716 $as_echo "just compiled" >&6; }
13717 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13718 # We already found the complete path
13719 ac_dir=`dirname $CXX_FOR_TARGET`
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13721 $as_echo "pre-installed in $ac_dir" >&6; }
13722 elif test "x$target" = "x$host"; then
13723 # We can use an host tool
13724 CXX_FOR_TARGET='$(CXX)'
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13726 $as_echo "host tool" >&6; }
13727 else
13728 # We need a cross tool
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13730 $as_echo "pre-installed" >&6; }
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13735 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13736 if test "x${build}" != "x${host}" ; then
13737 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13738 # We already found the complete path
13739 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13741 $as_echo "pre-installed in $ac_dir" >&6; }
13742 else
13743 # Canadian cross, just use what we found
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13745 $as_echo "pre-installed" >&6; }
13747 else
13748 ok=yes
13749 case " ${configdirs} " in
13750 *" gcc "*) ;;
13751 *) ok=no ;;
13752 esac
13753 case ,${enable_languages}, in
13754 *,c++,*) ;;
13755 *) ok=no ;;
13756 esac
13757 if test $ok = yes; then
13758 # An in-tree tool is available and we can use it
13759 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'
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13761 $as_echo "just compiled" >&6; }
13762 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13763 # We already found the complete path
13764 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13766 $as_echo "pre-installed in $ac_dir" >&6; }
13767 elif test "x$target" = "x$host"; then
13768 # We can use an host tool
13769 RAW_CXX_FOR_TARGET='$(CXX)'
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13771 $as_echo "host tool" >&6; }
13772 else
13773 # We need a cross tool
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13775 $as_echo "pre-installed" >&6; }
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13780 $as_echo_n "checking where to find the target dlltool... " >&6; }
13781 if test "x${build}" != "x${host}" ; then
13782 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13783 # We already found the complete path
13784 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13786 $as_echo "pre-installed in $ac_dir" >&6; }
13787 else
13788 # Canadian cross, just use what we found
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13790 $as_echo "pre-installed" >&6; }
13792 else
13793 ok=yes
13794 case " ${configdirs} " in
13795 *" binutils "*) ;;
13796 *) ok=no ;;
13797 esac
13799 if test $ok = yes; then
13800 # An in-tree tool is available and we can use it
13801 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13803 $as_echo "just compiled" >&6; }
13804 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13805 # We already found the complete path
13806 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13808 $as_echo "pre-installed in $ac_dir" >&6; }
13809 elif test "x$target" = "x$host"; then
13810 # We can use an host tool
13811 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13813 $as_echo "host tool" >&6; }
13814 else
13815 # We need a cross tool
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817 $as_echo "pre-installed" >&6; }
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13822 $as_echo_n "checking where to find the target gcc... " >&6; }
13823 if test "x${build}" != "x${host}" ; then
13824 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13825 # We already found the complete path
13826 ac_dir=`dirname $GCC_FOR_TARGET`
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13828 $as_echo "pre-installed in $ac_dir" >&6; }
13829 else
13830 # Canadian cross, just use what we found
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13832 $as_echo "pre-installed" >&6; }
13834 else
13835 ok=yes
13836 case " ${configdirs} " in
13837 *" gcc "*) ;;
13838 *) ok=no ;;
13839 esac
13841 if test $ok = yes; then
13842 # An in-tree tool is available and we can use it
13843 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13845 $as_echo "just compiled" >&6; }
13846 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13847 # We already found the complete path
13848 ac_dir=`dirname $GCC_FOR_TARGET`
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13850 $as_echo "pre-installed in $ac_dir" >&6; }
13851 elif test "x$target" = "x$host"; then
13852 # We can use an host tool
13853 GCC_FOR_TARGET='$()'
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13855 $as_echo "host tool" >&6; }
13856 else
13857 # We need a cross tool
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13859 $as_echo "pre-installed" >&6; }
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13864 $as_echo_n "checking where to find the target gcj... " >&6; }
13865 if test "x${build}" != "x${host}" ; then
13866 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13867 # We already found the complete path
13868 ac_dir=`dirname $GCJ_FOR_TARGET`
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13870 $as_echo "pre-installed in $ac_dir" >&6; }
13871 else
13872 # Canadian cross, just use what we found
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13874 $as_echo "pre-installed" >&6; }
13876 else
13877 ok=yes
13878 case " ${configdirs} " in
13879 *" gcc "*) ;;
13880 *) ok=no ;;
13881 esac
13882 case ,${enable_languages}, in
13883 *,java,*) ;;
13884 *) ok=no ;;
13885 esac
13886 if test $ok = yes; then
13887 # An in-tree tool is available and we can use it
13888 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13890 $as_echo "just compiled" >&6; }
13891 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13892 # We already found the complete path
13893 ac_dir=`dirname $GCJ_FOR_TARGET`
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13895 $as_echo "pre-installed in $ac_dir" >&6; }
13896 elif test "x$target" = "x$host"; then
13897 # We can use an host tool
13898 GCJ_FOR_TARGET='$(GCJ)'
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13900 $as_echo "host tool" >&6; }
13901 else
13902 # We need a cross tool
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13904 $as_echo "pre-installed" >&6; }
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13909 $as_echo_n "checking where to find the target gfortran... " >&6; }
13910 if test "x${build}" != "x${host}" ; then
13911 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13912 # We already found the complete path
13913 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13915 $as_echo "pre-installed in $ac_dir" >&6; }
13916 else
13917 # Canadian cross, just use what we found
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13919 $as_echo "pre-installed" >&6; }
13921 else
13922 ok=yes
13923 case " ${configdirs} " in
13924 *" gcc "*) ;;
13925 *) ok=no ;;
13926 esac
13927 case ,${enable_languages}, in
13928 *,fortran,*) ;;
13929 *) ok=no ;;
13930 esac
13931 if test $ok = yes; then
13932 # An in-tree tool is available and we can use it
13933 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13935 $as_echo "just compiled" >&6; }
13936 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13937 # We already found the complete path
13938 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13940 $as_echo "pre-installed in $ac_dir" >&6; }
13941 elif test "x$target" = "x$host"; then
13942 # We can use an host tool
13943 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13945 $as_echo "host tool" >&6; }
13946 else
13947 # We need a cross tool
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13949 $as_echo "pre-installed" >&6; }
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13954 $as_echo_n "checking where to find the target gccgo... " >&6; }
13955 if test "x${build}" != "x${host}" ; then
13956 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13957 # We already found the complete path
13958 ac_dir=`dirname $GOC_FOR_TARGET`
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13960 $as_echo "pre-installed in $ac_dir" >&6; }
13961 else
13962 # Canadian cross, just use what we found
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13964 $as_echo "pre-installed" >&6; }
13966 else
13967 ok=yes
13968 case " ${configdirs} " in
13969 *" gcc "*) ;;
13970 *) ok=no ;;
13971 esac
13972 case ,${enable_languages}, in
13973 *,go,*) ;;
13974 *) ok=no ;;
13975 esac
13976 if test $ok = yes; then
13977 # An in-tree tool is available and we can use it
13978 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13980 $as_echo "just compiled" >&6; }
13981 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13982 # We already found the complete path
13983 ac_dir=`dirname $GOC_FOR_TARGET`
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13985 $as_echo "pre-installed in $ac_dir" >&6; }
13986 elif test "x$target" = "x$host"; then
13987 # We can use an host tool
13988 GOC_FOR_TARGET='$(GOC)'
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13990 $as_echo "host tool" >&6; }
13991 else
13992 # We need a cross tool
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13994 $as_echo "pre-installed" >&6; }
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13999 $as_echo_n "checking where to find the target ld... " >&6; }
14000 if test "x${build}" != "x${host}" ; then
14001 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
14003 ac_dir=`dirname $LD_FOR_TARGET`
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14005 $as_echo "pre-installed in $ac_dir" >&6; }
14006 else
14007 # Canadian cross, just use what we found
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14009 $as_echo "pre-installed" >&6; }
14011 else
14012 ok=yes
14013 case " ${configdirs} " in
14014 *" ld "*) ;;
14015 *) ok=no ;;
14016 esac
14018 if test $ok = yes; then
14019 # An in-tree tool is available and we can use it
14020 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14022 $as_echo "just compiled" >&6; }
14023 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14024 # We already found the complete path
14025 ac_dir=`dirname $LD_FOR_TARGET`
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027 $as_echo "pre-installed in $ac_dir" >&6; }
14028 elif test "x$target" = "x$host"; then
14029 # We can use an host tool
14030 LD_FOR_TARGET='$(LD)'
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14032 $as_echo "host tool" >&6; }
14033 else
14034 # We need a cross tool
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036 $as_echo "pre-installed" >&6; }
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14041 $as_echo_n "checking where to find the target lipo... " >&6; }
14042 if test "x${build}" != "x${host}" ; then
14043 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14044 # We already found the complete path
14045 ac_dir=`dirname $LIPO_FOR_TARGET`
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14047 $as_echo "pre-installed in $ac_dir" >&6; }
14048 else
14049 # Canadian cross, just use what we found
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14051 $as_echo "pre-installed" >&6; }
14053 else
14054 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14055 # We already found the complete path
14056 ac_dir=`dirname $LIPO_FOR_TARGET`
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14058 $as_echo "pre-installed in $ac_dir" >&6; }
14059 elif test "x$target" = "x$host"; then
14060 # We can use an host tool
14061 LIPO_FOR_TARGET='$(LIPO)'
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14063 $as_echo "host tool" >&6; }
14064 else
14065 # We need a cross tool
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14067 $as_echo "pre-installed" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14072 $as_echo_n "checking where to find the target nm... " >&6; }
14073 if test "x${build}" != "x${host}" ; then
14074 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14075 # We already found the complete path
14076 ac_dir=`dirname $NM_FOR_TARGET`
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14078 $as_echo "pre-installed in $ac_dir" >&6; }
14079 else
14080 # Canadian cross, just use what we found
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14082 $as_echo "pre-installed" >&6; }
14084 else
14085 ok=yes
14086 case " ${configdirs} " in
14087 *" binutils "*) ;;
14088 *) ok=no ;;
14089 esac
14091 if test $ok = yes; then
14092 # An in-tree tool is available and we can use it
14093 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14095 $as_echo "just compiled" >&6; }
14096 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14097 # We already found the complete path
14098 ac_dir=`dirname $NM_FOR_TARGET`
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100 $as_echo "pre-installed in $ac_dir" >&6; }
14101 elif test "x$target" = "x$host"; then
14102 # We can use an host tool
14103 NM_FOR_TARGET='$(NM)'
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14105 $as_echo "host tool" >&6; }
14106 else
14107 # We need a cross tool
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14109 $as_echo "pre-installed" >&6; }
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14114 $as_echo_n "checking where to find the target objdump... " >&6; }
14115 if test "x${build}" != "x${host}" ; then
14116 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14117 # We already found the complete path
14118 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14120 $as_echo "pre-installed in $ac_dir" >&6; }
14121 else
14122 # Canadian cross, just use what we found
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14124 $as_echo "pre-installed" >&6; }
14126 else
14127 ok=yes
14128 case " ${configdirs} " in
14129 *" binutils "*) ;;
14130 *) ok=no ;;
14131 esac
14133 if test $ok = yes; then
14134 # An in-tree tool is available and we can use it
14135 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14137 $as_echo "just compiled" >&6; }
14138 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14139 # We already found the complete path
14140 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14142 $as_echo "pre-installed in $ac_dir" >&6; }
14143 elif test "x$target" = "x$host"; then
14144 # We can use an host tool
14145 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14147 $as_echo "host tool" >&6; }
14148 else
14149 # We need a cross tool
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14151 $as_echo "pre-installed" >&6; }
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14156 $as_echo_n "checking where to find the target ranlib... " >&6; }
14157 if test "x${build}" != "x${host}" ; then
14158 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14159 # We already found the complete path
14160 ac_dir=`dirname $RANLIB_FOR_TARGET`
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14162 $as_echo "pre-installed in $ac_dir" >&6; }
14163 else
14164 # Canadian cross, just use what we found
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14166 $as_echo "pre-installed" >&6; }
14168 else
14169 ok=yes
14170 case " ${configdirs} " in
14171 *" binutils "*) ;;
14172 *) ok=no ;;
14173 esac
14175 if test $ok = yes; then
14176 # An in-tree tool is available and we can use it
14177 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14179 $as_echo "just compiled" >&6; }
14180 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14181 # We already found the complete path
14182 ac_dir=`dirname $RANLIB_FOR_TARGET`
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14184 $as_echo "pre-installed in $ac_dir" >&6; }
14185 elif test "x$target" = "x$host"; then
14186 # We can use an host tool
14187 RANLIB_FOR_TARGET='$(RANLIB)'
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14189 $as_echo "host tool" >&6; }
14190 else
14191 # We need a cross tool
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14193 $as_echo "pre-installed" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14198 $as_echo_n "checking where to find the target readelf... " >&6; }
14199 if test "x${build}" != "x${host}" ; then
14200 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14201 # We already found the complete path
14202 ac_dir=`dirname $READELF_FOR_TARGET`
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14204 $as_echo "pre-installed in $ac_dir" >&6; }
14205 else
14206 # Canadian cross, just use what we found
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14208 $as_echo "pre-installed" >&6; }
14210 else
14211 ok=yes
14212 case " ${configdirs} " in
14213 *" binutils "*) ;;
14214 *) ok=no ;;
14215 esac
14217 if test $ok = yes; then
14218 # An in-tree tool is available and we can use it
14219 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14221 $as_echo "just compiled" >&6; }
14222 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14223 # We already found the complete path
14224 ac_dir=`dirname $READELF_FOR_TARGET`
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14226 $as_echo "pre-installed in $ac_dir" >&6; }
14227 elif test "x$target" = "x$host"; then
14228 # We can use an host tool
14229 READELF_FOR_TARGET='$(READELF)'
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14231 $as_echo "host tool" >&6; }
14232 else
14233 # We need a cross tool
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14235 $as_echo "pre-installed" >&6; }
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14240 $as_echo_n "checking where to find the target strip... " >&6; }
14241 if test "x${build}" != "x${host}" ; then
14242 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14243 # We already found the complete path
14244 ac_dir=`dirname $STRIP_FOR_TARGET`
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14246 $as_echo "pre-installed in $ac_dir" >&6; }
14247 else
14248 # Canadian cross, just use what we found
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14250 $as_echo "pre-installed" >&6; }
14252 else
14253 ok=yes
14254 case " ${configdirs} " in
14255 *" binutils "*) ;;
14256 *) ok=no ;;
14257 esac
14259 if test $ok = yes; then
14260 # An in-tree tool is available and we can use it
14261 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14263 $as_echo "just compiled" >&6; }
14264 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14265 # We already found the complete path
14266 ac_dir=`dirname $STRIP_FOR_TARGET`
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14268 $as_echo "pre-installed in $ac_dir" >&6; }
14269 elif test "x$target" = "x$host"; then
14270 # We can use an host tool
14271 STRIP_FOR_TARGET='$(STRIP)'
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14273 $as_echo "host tool" >&6; }
14274 else
14275 # We need a cross tool
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14277 $as_echo "pre-installed" >&6; }
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14282 $as_echo_n "checking where to find the target windres... " >&6; }
14283 if test "x${build}" != "x${host}" ; then
14284 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14285 # We already found the complete path
14286 ac_dir=`dirname $WINDRES_FOR_TARGET`
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14288 $as_echo "pre-installed in $ac_dir" >&6; }
14289 else
14290 # Canadian cross, just use what we found
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14292 $as_echo "pre-installed" >&6; }
14294 else
14295 ok=yes
14296 case " ${configdirs} " in
14297 *" binutils "*) ;;
14298 *) ok=no ;;
14299 esac
14301 if test $ok = yes; then
14302 # An in-tree tool is available and we can use it
14303 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14305 $as_echo "just compiled" >&6; }
14306 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14307 # We already found the complete path
14308 ac_dir=`dirname $WINDRES_FOR_TARGET`
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14310 $as_echo "pre-installed in $ac_dir" >&6; }
14311 elif test "x$target" = "x$host"; then
14312 # We can use an host tool
14313 WINDRES_FOR_TARGET='$(WINDRES)'
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14315 $as_echo "host tool" >&6; }
14316 else
14317 # We need a cross tool
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14319 $as_echo "pre-installed" >&6; }
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14324 $as_echo_n "checking where to find the target windmc... " >&6; }
14325 if test "x${build}" != "x${host}" ; then
14326 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14327 # We already found the complete path
14328 ac_dir=`dirname $WINDMC_FOR_TARGET`
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14330 $as_echo "pre-installed in $ac_dir" >&6; }
14331 else
14332 # Canadian cross, just use what we found
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14334 $as_echo "pre-installed" >&6; }
14336 else
14337 ok=yes
14338 case " ${configdirs} " in
14339 *" binutils "*) ;;
14340 *) ok=no ;;
14341 esac
14343 if test $ok = yes; then
14344 # An in-tree tool is available and we can use it
14345 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14347 $as_echo "just compiled" >&6; }
14348 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14349 # We already found the complete path
14350 ac_dir=`dirname $WINDMC_FOR_TARGET`
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14352 $as_echo "pre-installed in $ac_dir" >&6; }
14353 elif test "x$target" = "x$host"; then
14354 # We can use an host tool
14355 WINDMC_FOR_TARGET='$(WINDMC)'
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14357 $as_echo "host tool" >&6; }
14358 else
14359 # We need a cross tool
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14361 $as_echo "pre-installed" >&6; }
14369 # Certain tools may need extra flags.
14370 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14371 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14372 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14374 # When building target libraries, except in a Canadian cross, we use
14375 # the same toolchain as the compiler we just built.
14376 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14377 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14378 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14379 if test $host = $build; then
14380 case " $configdirs " in
14381 *" gcc "*)
14382 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14383 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14384 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14386 esac
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14394 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14395 # Check whether --enable-maintainer-mode was given.
14396 if test "${enable_maintainer_mode+set}" = set; then :
14397 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14398 else
14399 USE_MAINTAINER_MODE=no
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14403 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14406 if test "$USE_MAINTAINER_MODE" = yes; then
14407 MAINTAINER_MODE_TRUE=
14408 MAINTAINER_MODE_FALSE='#'
14409 else
14410 MAINTAINER_MODE_TRUE='#'
14411 MAINTAINER_MODE_FALSE=
14413 MAINT=$MAINTAINER_MODE_TRUE
14415 # ---------------------
14416 # GCC bootstrap support
14417 # ---------------------
14419 # Stage specific cflags for build.
14420 stage1_cflags="-g"
14421 case $build in
14422 vax-*-*)
14423 case ${GCC} in
14424 yes) stage1_cflags="-g -Wa,-J" ;;
14425 *) stage1_cflags="-g -J" ;;
14426 esac ;;
14427 esac
14431 # Enable --enable-checking in stage1 of the compiler.
14432 # Check whether --enable-stage1-checking was given.
14433 if test "${enable_stage1_checking+set}" = set; then :
14434 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14435 else
14436 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14437 stage1_checking=--enable-checking=yes,types
14438 else
14439 stage1_checking=--enable-checking=$enable_checking,types
14445 # Enable -Werror in bootstrap stage2 and later.
14446 # Check whether --enable-werror was given.
14447 if test "${enable_werror+set}" = set; then :
14448 enableval=$enable_werror;
14449 else
14450 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14451 enable_werror=yes
14452 else
14453 enable_werror=no
14457 case ${enable_werror} in
14458 yes) stage2_werror_flag="--enable-werror-always" ;;
14459 *) stage2_werror_flag="" ;;
14460 esac
14463 # Enable --enable-host-shared.
14464 # Check whether --enable-host-shared was given.
14465 if test "${enable_host_shared+set}" = set; then :
14466 enableval=$enable_host_shared; host_shared=$enableval
14467 else
14468 host_shared=no
14473 # Specify what files to not compare during bootstrap.
14475 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14476 case "$target" in
14477 hppa*64*-*-hpux*) ;;
14478 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14479 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14480 esac
14483 ac_config_files="$ac_config_files Makefile"
14485 cat >confcache <<\_ACEOF
14486 # This file is a shell script that caches the results of configure
14487 # tests run on this system so they can be shared between configure
14488 # scripts and configure runs, see configure's option --config-cache.
14489 # It is not useful on other systems. If it contains results you don't
14490 # want to keep, you may remove or edit it.
14492 # config.status only pays attention to the cache file if you give it
14493 # the --recheck option to rerun configure.
14495 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14496 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14497 # following values.
14499 _ACEOF
14501 # The following way of writing the cache mishandles newlines in values,
14502 # but we know of no workaround that is simple, portable, and efficient.
14503 # So, we kill variables containing newlines.
14504 # Ultrix sh set writes to stderr and can't be redirected directly,
14505 # and sets the high bit in the cache file unless we assign to the vars.
14507 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14508 eval ac_val=\$$ac_var
14509 case $ac_val in #(
14510 *${as_nl}*)
14511 case $ac_var in #(
14512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14514 esac
14515 case $ac_var in #(
14516 _ | IFS | as_nl) ;; #(
14517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14518 *) { eval $ac_var=; unset $ac_var;} ;;
14519 esac ;;
14520 esac
14521 done
14523 (set) 2>&1 |
14524 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14525 *${as_nl}ac_space=\ *)
14526 # `set' does not quote correctly, so add quotes: double-quote
14527 # substitution turns \\\\ into \\, and sed turns \\ into \.
14528 sed -n \
14529 "s/'/'\\\\''/g;
14530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14531 ;; #(
14533 # `set' quotes correctly as required by POSIX, so do not add quotes.
14534 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14536 esac |
14537 sort
14539 sed '
14540 /^ac_cv_env_/b end
14541 t clear
14542 :clear
14543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14544 t end
14545 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14546 :end' >>confcache
14547 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14548 if test -w "$cache_file"; then
14549 test "x$cache_file" != "x/dev/null" &&
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14551 $as_echo "$as_me: updating cache $cache_file" >&6;}
14552 cat confcache >$cache_file
14553 else
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14555 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14558 rm -f confcache
14560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14561 # Let make expand exec_prefix.
14562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14564 # Transform confdefs.h into DEFS.
14565 # Protect against shell expansion while executing Makefile rules.
14566 # Protect against Makefile macro expansion.
14568 # If the first sed substitution is executed (which looks for macros that
14569 # take arguments), then branch to the quote section. Otherwise,
14570 # look for a macro that doesn't take arguments.
14571 ac_script='
14572 :mline
14573 /\\$/{
14575 s,\\\n,,
14576 b mline
14578 t clear
14579 :clear
14580 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14581 t quote
14582 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14583 t quote
14584 b any
14585 :quote
14586 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14587 s/\[/\\&/g
14588 s/\]/\\&/g
14589 s/\$/$$/g
14591 :any
14594 s/^\n//
14595 s/\n/ /g
14599 DEFS=`sed -n "$ac_script" confdefs.h`
14602 ac_libobjs=
14603 ac_ltlibobjs=
14604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14605 # 1. Remove the extension, and $U if already installed.
14606 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14607 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14608 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14609 # will be set to the directory where LIBOBJS objects are built.
14610 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14611 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14612 done
14613 LIBOBJS=$ac_libobjs
14615 LTLIBOBJS=$ac_ltlibobjs
14619 : ${CONFIG_STATUS=./config.status}
14620 ac_write_fail=0
14621 ac_clean_files_save=$ac_clean_files
14622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14624 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14625 as_write_fail=0
14626 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14627 #! $SHELL
14628 # Generated by $as_me.
14629 # Run this file to recreate the current configuration.
14630 # Compiler output produced by configure, useful for debugging
14631 # configure, is in config.log if it exists.
14633 debug=false
14634 ac_cs_recheck=false
14635 ac_cs_silent=false
14637 SHELL=\${CONFIG_SHELL-$SHELL}
14638 export SHELL
14639 _ASEOF
14640 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14641 ## -------------------- ##
14642 ## M4sh Initialization. ##
14643 ## -------------------- ##
14645 # Be more Bourne compatible
14646 DUALCASE=1; export DUALCASE # for MKS sh
14647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14648 emulate sh
14649 NULLCMD=:
14650 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14651 # is contrary to our usage. Disable this feature.
14652 alias -g '${1+"$@"}'='"$@"'
14653 setopt NO_GLOB_SUBST
14654 else
14655 case `(set -o) 2>/dev/null` in #(
14656 *posix*) :
14657 set -o posix ;; #(
14658 *) :
14660 esac
14664 as_nl='
14666 export as_nl
14667 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14668 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14671 # Prefer a ksh shell builtin over an external printf program on Solaris,
14672 # but without wasting forks for bash or zsh.
14673 if test -z "$BASH_VERSION$ZSH_VERSION" \
14674 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14675 as_echo='print -r --'
14676 as_echo_n='print -rn --'
14677 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14678 as_echo='printf %s\n'
14679 as_echo_n='printf %s'
14680 else
14681 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14682 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14683 as_echo_n='/usr/ucb/echo -n'
14684 else
14685 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14686 as_echo_n_body='eval
14687 arg=$1;
14688 case $arg in #(
14689 *"$as_nl"*)
14690 expr "X$arg" : "X\\(.*\\)$as_nl";
14691 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14692 esac;
14693 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14695 export as_echo_n_body
14696 as_echo_n='sh -c $as_echo_n_body as_echo'
14698 export as_echo_body
14699 as_echo='sh -c $as_echo_body as_echo'
14702 # The user is always right.
14703 if test "${PATH_SEPARATOR+set}" != set; then
14704 PATH_SEPARATOR=:
14705 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14706 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14707 PATH_SEPARATOR=';'
14712 # IFS
14713 # We need space, tab and new line, in precisely that order. Quoting is
14714 # there to prevent editors from complaining about space-tab.
14715 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14716 # splitting by setting IFS to empty value.)
14717 IFS=" "" $as_nl"
14719 # Find who we are. Look in the path if we contain no directory separator.
14720 case $0 in #((
14721 *[\\/]* ) as_myself=$0 ;;
14722 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14723 for as_dir in $PATH
14725 IFS=$as_save_IFS
14726 test -z "$as_dir" && as_dir=.
14727 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14728 done
14729 IFS=$as_save_IFS
14732 esac
14733 # We did not find ourselves, most probably we were run as `sh COMMAND'
14734 # in which case we are not to be found in the path.
14735 if test "x$as_myself" = x; then
14736 as_myself=$0
14738 if test ! -f "$as_myself"; then
14739 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14740 exit 1
14743 # Unset variables that we do not need and which cause bugs (e.g. in
14744 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14745 # suppresses any "Segmentation fault" message there. '((' could
14746 # trigger a bug in pdksh 5.2.14.
14747 for as_var in BASH_ENV ENV MAIL MAILPATH
14748 do eval test x\${$as_var+set} = xset \
14749 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14750 done
14751 PS1='$ '
14752 PS2='> '
14753 PS4='+ '
14755 # NLS nuisances.
14756 LC_ALL=C
14757 export LC_ALL
14758 LANGUAGE=C
14759 export LANGUAGE
14761 # CDPATH.
14762 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14765 # as_fn_error ERROR [LINENO LOG_FD]
14766 # ---------------------------------
14767 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14768 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14769 # script with status $?, using 1 if that was 0.
14770 as_fn_error ()
14772 as_status=$?; test $as_status -eq 0 && as_status=1
14773 if test "$3"; then
14774 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14775 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14777 $as_echo "$as_me: error: $1" >&2
14778 as_fn_exit $as_status
14779 } # as_fn_error
14782 # as_fn_set_status STATUS
14783 # -----------------------
14784 # Set $? to STATUS, without forking.
14785 as_fn_set_status ()
14787 return $1
14788 } # as_fn_set_status
14790 # as_fn_exit STATUS
14791 # -----------------
14792 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14793 as_fn_exit ()
14795 set +e
14796 as_fn_set_status $1
14797 exit $1
14798 } # as_fn_exit
14800 # as_fn_unset VAR
14801 # ---------------
14802 # Portably unset VAR.
14803 as_fn_unset ()
14805 { eval $1=; unset $1;}
14807 as_unset=as_fn_unset
14808 # as_fn_append VAR VALUE
14809 # ----------------------
14810 # Append the text in VALUE to the end of the definition contained in VAR. Take
14811 # advantage of any shell optimizations that allow amortized linear growth over
14812 # repeated appends, instead of the typical quadratic growth present in naive
14813 # implementations.
14814 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14815 eval 'as_fn_append ()
14817 eval $1+=\$2
14819 else
14820 as_fn_append ()
14822 eval $1=\$$1\$2
14824 fi # as_fn_append
14826 # as_fn_arith ARG...
14827 # ------------------
14828 # Perform arithmetic evaluation on the ARGs, and store the result in the
14829 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14830 # must be portable across $(()) and expr.
14831 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14832 eval 'as_fn_arith ()
14834 as_val=$(( $* ))
14836 else
14837 as_fn_arith ()
14839 as_val=`expr "$@" || test $? -eq 1`
14841 fi # as_fn_arith
14844 if expr a : '\(a\)' >/dev/null 2>&1 &&
14845 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14846 as_expr=expr
14847 else
14848 as_expr=false
14851 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14852 as_basename=basename
14853 else
14854 as_basename=false
14857 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14858 as_dirname=dirname
14859 else
14860 as_dirname=false
14863 as_me=`$as_basename -- "$0" ||
14864 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14865 X"$0" : 'X\(//\)$' \| \
14866 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14867 $as_echo X/"$0" |
14868 sed '/^.*\/\([^/][^/]*\)\/*$/{
14869 s//\1/
14872 /^X\/\(\/\/\)$/{
14873 s//\1/
14876 /^X\/\(\/\).*/{
14877 s//\1/
14880 s/.*/./; q'`
14882 # Avoid depending upon Character Ranges.
14883 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14884 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14885 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14886 as_cr_digits='0123456789'
14887 as_cr_alnum=$as_cr_Letters$as_cr_digits
14889 ECHO_C= ECHO_N= ECHO_T=
14890 case `echo -n x` in #(((((
14891 -n*)
14892 case `echo 'xy\c'` in
14893 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14894 xy) ECHO_C='\c';;
14895 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14896 ECHO_T=' ';;
14897 esac;;
14899 ECHO_N='-n';;
14900 esac
14902 rm -f conf$$ conf$$.exe conf$$.file
14903 if test -d conf$$.dir; then
14904 rm -f conf$$.dir/conf$$.file
14905 else
14906 rm -f conf$$.dir
14907 mkdir conf$$.dir 2>/dev/null
14909 if (echo >conf$$.file) 2>/dev/null; then
14910 if ln -s conf$$.file conf$$ 2>/dev/null; then
14911 as_ln_s='ln -s'
14912 # ... but there are two gotchas:
14913 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14914 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14915 # In both cases, we have to default to `cp -p'.
14916 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14917 as_ln_s='cp -p'
14918 elif ln conf$$.file conf$$ 2>/dev/null; then
14919 as_ln_s=ln
14920 else
14921 as_ln_s='cp -p'
14923 else
14924 as_ln_s='cp -p'
14926 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14927 rmdir conf$$.dir 2>/dev/null
14930 # as_fn_mkdir_p
14931 # -------------
14932 # Create "$as_dir" as a directory, including parents if necessary.
14933 as_fn_mkdir_p ()
14936 case $as_dir in #(
14937 -*) as_dir=./$as_dir;;
14938 esac
14939 test -d "$as_dir" || eval $as_mkdir_p || {
14940 as_dirs=
14941 while :; do
14942 case $as_dir in #(
14943 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14944 *) as_qdir=$as_dir;;
14945 esac
14946 as_dirs="'$as_qdir' $as_dirs"
14947 as_dir=`$as_dirname -- "$as_dir" ||
14948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14949 X"$as_dir" : 'X\(//\)[^/]' \| \
14950 X"$as_dir" : 'X\(//\)$' \| \
14951 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14952 $as_echo X"$as_dir" |
14953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14954 s//\1/
14957 /^X\(\/\/\)[^/].*/{
14958 s//\1/
14961 /^X\(\/\/\)$/{
14962 s//\1/
14965 /^X\(\/\).*/{
14966 s//\1/
14969 s/.*/./; q'`
14970 test -d "$as_dir" && break
14971 done
14972 test -z "$as_dirs" || eval "mkdir $as_dirs"
14973 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14976 } # as_fn_mkdir_p
14977 if mkdir -p . 2>/dev/null; then
14978 as_mkdir_p='mkdir -p "$as_dir"'
14979 else
14980 test -d ./-p && rmdir ./-p
14981 as_mkdir_p=false
14984 if test -x / >/dev/null 2>&1; then
14985 as_test_x='test -x'
14986 else
14987 if ls -dL / >/dev/null 2>&1; then
14988 as_ls_L_option=L
14989 else
14990 as_ls_L_option=
14992 as_test_x='
14993 eval sh -c '\''
14994 if test -d "$1"; then
14995 test -d "$1/.";
14996 else
14997 case $1 in #(
14998 -*)set "./$1";;
14999 esac;
15000 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15001 ???[sx]*):;;*)false;;esac;fi
15002 '\'' sh
15005 as_executable_p=$as_test_x
15007 # Sed expression to map a string onto a valid CPP name.
15008 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15010 # Sed expression to map a string onto a valid variable name.
15011 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15014 exec 6>&1
15015 ## ----------------------------------- ##
15016 ## Main body of $CONFIG_STATUS script. ##
15017 ## ----------------------------------- ##
15018 _ASEOF
15019 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15022 # Save the log message, to keep $0 and so on meaningful, and to
15023 # report actual input values of CONFIG_FILES etc. instead of their
15024 # values after options handling.
15025 ac_log="
15026 This file was extended by $as_me, which was
15027 generated by GNU Autoconf 2.64. Invocation command line was
15029 CONFIG_FILES = $CONFIG_FILES
15030 CONFIG_HEADERS = $CONFIG_HEADERS
15031 CONFIG_LINKS = $CONFIG_LINKS
15032 CONFIG_COMMANDS = $CONFIG_COMMANDS
15033 $ $0 $@
15035 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15038 _ACEOF
15040 case $ac_config_files in *"
15041 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15042 esac
15046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15047 # Files that config.status was made for.
15048 config_files="$ac_config_files"
15050 _ACEOF
15052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15053 ac_cs_usage="\
15054 \`$as_me' instantiates files and other configuration actions
15055 from templates according to the current configuration. Unless the files
15056 and actions are specified as TAGs, all are instantiated by default.
15058 Usage: $0 [OPTION]... [TAG]...
15060 -h, --help print this help, then exit
15061 -V, --version print version number and configuration settings, then exit
15062 -q, --quiet, --silent
15063 do not print progress messages
15064 -d, --debug don't remove temporary files
15065 --recheck update $as_me by reconfiguring in the same conditions
15066 --file=FILE[:TEMPLATE]
15067 instantiate the configuration file FILE
15069 Configuration files:
15070 $config_files
15072 Report bugs to the package provider."
15074 _ACEOF
15075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15076 ac_cs_version="\\
15077 config.status
15078 configured by $0, generated by GNU Autoconf 2.64,
15079 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15081 Copyright (C) 2009 Free Software Foundation, Inc.
15082 This config.status script is free software; the Free Software Foundation
15083 gives unlimited permission to copy, distribute and modify it."
15085 ac_pwd='$ac_pwd'
15086 srcdir='$srcdir'
15087 INSTALL='$INSTALL'
15088 AWK='$AWK'
15089 test -n "\$AWK" || AWK=awk
15090 _ACEOF
15092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15093 # The default lists apply if the user does not specify any file.
15094 ac_need_defaults=:
15095 while test $# != 0
15097 case $1 in
15098 --*=*)
15099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15101 ac_shift=:
15104 ac_option=$1
15105 ac_optarg=$2
15106 ac_shift=shift
15108 esac
15110 case $ac_option in
15111 # Handling of the options.
15112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15113 ac_cs_recheck=: ;;
15114 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15115 $as_echo "$ac_cs_version"; exit ;;
15116 --debug | --debu | --deb | --de | --d | -d )
15117 debug=: ;;
15118 --file | --fil | --fi | --f )
15119 $ac_shift
15120 case $ac_optarg in
15121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15122 esac
15123 as_fn_append CONFIG_FILES " '$ac_optarg'"
15124 ac_need_defaults=false;;
15125 --he | --h | --help | --hel | -h )
15126 $as_echo "$ac_cs_usage"; exit ;;
15127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15128 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15129 ac_cs_silent=: ;;
15131 # This is an error.
15132 -*) as_fn_error "unrecognized option: \`$1'
15133 Try \`$0 --help' for more information." ;;
15135 *) as_fn_append ac_config_targets " $1"
15136 ac_need_defaults=false ;;
15138 esac
15139 shift
15140 done
15142 ac_configure_extra_args=
15144 if $ac_cs_silent; then
15145 exec 6>/dev/null
15146 ac_configure_extra_args="$ac_configure_extra_args --silent"
15149 _ACEOF
15150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15151 if \$ac_cs_recheck; then
15152 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15153 shift
15154 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15155 CONFIG_SHELL='$SHELL'
15156 export CONFIG_SHELL
15157 exec "\$@"
15160 _ACEOF
15161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15162 exec 5>>config.log
15164 echo
15165 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15166 ## Running $as_me. ##
15167 _ASBOX
15168 $as_echo "$ac_log"
15169 } >&5
15171 _ACEOF
15172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15174 # INIT-COMMANDS
15176 extrasub_build="$extrasub_build"
15177 extrasub_host="$extrasub_host"
15178 extrasub_target="$extrasub_target"
15180 _ACEOF
15182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15184 # Handling of arguments.
15185 for ac_config_target in $ac_config_targets
15187 case $ac_config_target in
15188 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15190 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15191 esac
15192 done
15195 # If the user did not use the arguments to specify the items to instantiate,
15196 # then the envvar interface is used. Set only those that are not.
15197 # We use the long form for the default assignment because of an extremely
15198 # bizarre bug on SunOS 4.1.3.
15199 if $ac_need_defaults; then
15200 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15203 # Have a temporary directory for convenience. Make it in the build tree
15204 # simply because there is no reason against having it here, and in addition,
15205 # creating and moving files from /tmp can sometimes cause problems.
15206 # Hook for its removal unless debugging.
15207 # Note that there is a small window in which the directory will not be cleaned:
15208 # after its creation but before its name has been assigned to `$tmp'.
15209 $debug ||
15211 tmp=
15212 trap 'exit_status=$?
15213 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15215 trap 'as_fn_exit 1' 1 2 13 15
15217 # Create a (secure) tmp directory for tmp files.
15220 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15221 test -n "$tmp" && test -d "$tmp"
15222 } ||
15224 tmp=./conf$$-$RANDOM
15225 (umask 077 && mkdir "$tmp")
15226 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15228 # Set up the scripts for CONFIG_FILES section.
15229 # No need to generate them if there are no CONFIG_FILES.
15230 # This happens for instance with `./config.status config.h'.
15231 if test -n "$CONFIG_FILES"; then
15233 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15234 ac_cs_awk_getline=:
15235 ac_cs_awk_pipe_init=
15236 ac_cs_awk_read_file='
15237 while ((getline aline < (F[key])) > 0)
15238 print(aline)
15239 close(F[key])'
15240 ac_cs_awk_pipe_fini=
15241 else
15242 ac_cs_awk_getline=false
15243 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15244 ac_cs_awk_read_file='
15245 print "|#_!!_#|"
15246 print "cat " F[key] " &&"
15247 '$ac_cs_awk_pipe_init
15248 # The final `:' finishes the AND list.
15249 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15251 ac_cr=`echo X | tr X '\015'`
15252 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15253 # But we know of no other shell where ac_cr would be empty at this
15254 # point, so we can use a bashism as a fallback.
15255 if test "x$ac_cr" = x; then
15256 eval ac_cr=\$\'\\r\'
15258 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15259 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15260 ac_cs_awk_cr='\r'
15261 else
15262 ac_cs_awk_cr=$ac_cr
15265 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15266 _ACEOF
15268 # Create commands to substitute file output variables.
15270 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15271 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15272 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15273 echo "_ACAWK" &&
15274 echo "_ACEOF"
15275 } >conf$$files.sh &&
15276 . ./conf$$files.sh ||
15277 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15278 rm -f conf$$files.sh
15281 echo "cat >conf$$subs.awk <<_ACEOF" &&
15282 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15283 echo "_ACEOF"
15284 } >conf$$subs.sh ||
15285 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15286 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15287 ac_delim='%!_!# '
15288 for ac_last_try in false false false false false :; do
15289 . ./conf$$subs.sh ||
15290 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15292 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15293 if test $ac_delim_n = $ac_delim_num; then
15294 break
15295 elif $ac_last_try; then
15296 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15297 else
15298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15300 done
15301 rm -f conf$$subs.sh
15303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15304 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15305 _ACEOF
15306 sed -n '
15308 s/^/S["/; s/!.*/"]=/
15311 s/^[^!]*!//
15312 :repl
15313 t repl
15314 s/'"$ac_delim"'$//
15315 t delim
15318 s/\(.\{148\}\).*/\1/
15319 t more1
15320 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15323 b repl
15324 :more1
15325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15328 s/.\{148\}//
15329 t nl
15330 :delim
15332 s/\(.\{148\}\).*/\1/
15333 t more2
15334 s/["\\]/\\&/g; s/^/"/; s/$/"/
15337 :more2
15338 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15341 s/.\{148\}//
15342 t delim
15343 ' <conf$$subs.awk | sed '
15344 /^[^""]/{
15346 s/\n//
15348 ' >>$CONFIG_STATUS || ac_write_fail=1
15349 rm -f conf$$subs.awk
15350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15351 _ACAWK
15352 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15353 for (key in S) S_is_set[key] = 1
15354 FS = "\a"
15355 \$ac_cs_awk_pipe_init
15358 line = $ 0
15359 nfields = split(line, field, "@")
15360 substed = 0
15361 len = length(field[1])
15362 for (i = 2; i < nfields; i++) {
15363 key = field[i]
15364 keylen = length(key)
15365 if (S_is_set[key]) {
15366 value = S[key]
15367 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15368 len += length(value) + length(field[++i])
15369 substed = 1
15370 } else
15371 len += 1 + keylen
15373 if (nfields == 3 && !substed) {
15374 key = field[2]
15375 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15376 \$ac_cs_awk_read_file
15377 next
15380 print line
15382 \$ac_cs_awk_pipe_fini
15383 _ACAWK
15384 _ACEOF
15385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15386 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15387 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15388 else
15390 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15391 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15392 _ACEOF
15394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15396 # trailing colons and then remove the whole line if VPATH becomes empty
15397 # (actually we leave an empty line to preserve line numbers).
15398 if test "x$srcdir" = x.; then
15399 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15400 s/:*\$(srcdir):*/:/
15401 s/:*\${srcdir}:*/:/
15402 s/:*@srcdir@:*/:/
15403 s/^\([^=]*=[ ]*\):*/\1/
15404 s/:*$//
15405 s/^[^=]*=[ ]*$//
15409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15410 fi # test -n "$CONFIG_FILES"
15413 eval set X " :F $CONFIG_FILES "
15414 shift
15415 for ac_tag
15417 case $ac_tag in
15418 :[FHLC]) ac_mode=$ac_tag; continue;;
15419 esac
15420 case $ac_mode$ac_tag in
15421 :[FHL]*:*);;
15422 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15423 :[FH]-) ac_tag=-:-;;
15424 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15425 esac
15426 ac_save_IFS=$IFS
15427 IFS=:
15428 set x $ac_tag
15429 IFS=$ac_save_IFS
15430 shift
15431 ac_file=$1
15432 shift
15434 case $ac_mode in
15435 :L) ac_source=$1;;
15436 :[FH])
15437 ac_file_inputs=
15438 for ac_f
15440 case $ac_f in
15441 -) ac_f="$tmp/stdin";;
15442 *) # Look for the file first in the build tree, then in the source tree
15443 # (if the path is not absolute). The absolute path cannot be DOS-style,
15444 # because $ac_f cannot contain `:'.
15445 test -f "$ac_f" ||
15446 case $ac_f in
15447 [\\/$]*) false;;
15448 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15449 esac ||
15450 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15451 esac
15452 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15453 as_fn_append ac_file_inputs " '$ac_f'"
15454 done
15456 # Let's still pretend it is `configure' which instantiates (i.e., don't
15457 # use $as_me), people would be surprised to read:
15458 # /* config.h. Generated by config.status. */
15459 configure_input='Generated from '`
15460 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15461 `' by configure.'
15462 if test x"$ac_file" != x-; then
15463 configure_input="$ac_file. $configure_input"
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15465 $as_echo "$as_me: creating $ac_file" >&6;}
15467 # Neutralize special characters interpreted by sed in replacement strings.
15468 case $configure_input in #(
15469 *\&* | *\|* | *\\* )
15470 ac_sed_conf_input=`$as_echo "$configure_input" |
15471 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15472 *) ac_sed_conf_input=$configure_input;;
15473 esac
15475 case $ac_tag in
15476 *:-:* | *:-) cat >"$tmp/stdin" \
15477 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15478 esac
15480 esac
15482 ac_dir=`$as_dirname -- "$ac_file" ||
15483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15484 X"$ac_file" : 'X\(//\)[^/]' \| \
15485 X"$ac_file" : 'X\(//\)$' \| \
15486 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15487 $as_echo X"$ac_file" |
15488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15489 s//\1/
15492 /^X\(\/\/\)[^/].*/{
15493 s//\1/
15496 /^X\(\/\/\)$/{
15497 s//\1/
15500 /^X\(\/\).*/{
15501 s//\1/
15504 s/.*/./; q'`
15505 as_dir="$ac_dir"; as_fn_mkdir_p
15506 ac_builddir=.
15508 case "$ac_dir" in
15509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15511 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15512 # A ".." for each directory in $ac_dir_suffix.
15513 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15514 case $ac_top_builddir_sub in
15515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15517 esac ;;
15518 esac
15519 ac_abs_top_builddir=$ac_pwd
15520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15521 # for backward compatibility:
15522 ac_top_builddir=$ac_top_build_prefix
15524 case $srcdir in
15525 .) # We are building in place.
15526 ac_srcdir=.
15527 ac_top_srcdir=$ac_top_builddir_sub
15528 ac_abs_top_srcdir=$ac_pwd ;;
15529 [\\/]* | ?:[\\/]* ) # Absolute name.
15530 ac_srcdir=$srcdir$ac_dir_suffix;
15531 ac_top_srcdir=$srcdir
15532 ac_abs_top_srcdir=$srcdir ;;
15533 *) # Relative name.
15534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15535 ac_top_srcdir=$ac_top_build_prefix$srcdir
15536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15537 esac
15538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15541 case $ac_mode in
15544 # CONFIG_FILE
15547 case $INSTALL in
15548 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15549 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15550 esac
15551 _ACEOF
15553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15554 # If the template does not know about datarootdir, expand it.
15555 # FIXME: This hack should be removed a few years after 2.60.
15556 ac_datarootdir_hack=; ac_datarootdir_seen=
15557 ac_sed_dataroot='
15558 /datarootdir/ {
15562 /@datadir@/p
15563 /@docdir@/p
15564 /@infodir@/p
15565 /@localedir@/p
15566 /@mandir@/p'
15567 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15568 *datarootdir*) ac_datarootdir_seen=yes;;
15569 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15571 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15572 _ACEOF
15573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15574 ac_datarootdir_hack='
15575 s&@datadir@&$datadir&g
15576 s&@docdir@&$docdir&g
15577 s&@infodir@&$infodir&g
15578 s&@localedir@&$localedir&g
15579 s&@mandir@&$mandir&g
15580 s&\\\${datarootdir}&$datarootdir&g' ;;
15581 esac
15582 _ACEOF
15584 # Neutralize VPATH when `$srcdir' = `.'.
15585 # Shell code in configure.ac might set extrasub.
15586 # FIXME: do we really want to maintain this feature?
15587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15588 ac_sed_extra="$ac_vpsub
15589 $extrasub
15590 _ACEOF
15591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15594 s|@configure_input@|$ac_sed_conf_input|;t t
15595 s&@top_builddir@&$ac_top_builddir_sub&;t t
15596 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15597 s&@srcdir@&$ac_srcdir&;t t
15598 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15599 s&@top_srcdir@&$ac_top_srcdir&;t t
15600 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15601 s&@builddir@&$ac_builddir&;t t
15602 s&@abs_builddir@&$ac_abs_builddir&;t t
15603 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15604 s&@INSTALL@&$ac_INSTALL&;t t
15605 $ac_datarootdir_hack
15607 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15608 if $ac_cs_awk_getline; then
15609 $AWK -f "$tmp/subs.awk"
15610 else
15611 $AWK -f "$tmp/subs.awk" | $SHELL
15612 fi >$tmp/out \
15613 || as_fn_error "could not create $ac_file" "$LINENO" 5
15615 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15616 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15617 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15619 which seems to be undefined. Please make sure it is defined." >&5
15620 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15621 which seems to be undefined. Please make sure it is defined." >&2;}
15623 rm -f "$tmp/stdin"
15624 case $ac_file in
15625 -) cat "$tmp/out" && rm -f "$tmp/out";;
15626 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15627 esac \
15628 || as_fn_error "could not create $ac_file" "$LINENO" 5
15633 esac
15636 case $ac_file$ac_mode in
15637 "Makefile":F) sed "$extrasub_build" Makefile |
15638 sed "$extrasub_host" |
15639 sed "$extrasub_target" > mf$$
15640 mv -f mf$$ Makefile ;;
15642 esac
15643 done # for ac_tag
15646 as_fn_exit 0
15647 _ACEOF
15648 ac_clean_files=$ac_clean_files_save
15650 test $ac_write_fail = 0 ||
15651 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15654 # configure is writing to config.log, and then calls config.status.
15655 # config.status does its own redirection, appending to config.log.
15656 # Unfortunately, on DOS this fails, as config.log is still kept open
15657 # by configure, so config.status won't be able to write to it; its
15658 # output is simply discarded. So we exec the FD to /dev/null,
15659 # effectively closing config.log, so it can be properly (re)opened and
15660 # appended to by config.status. When coming back to configure, we
15661 # need to make the FD available again.
15662 if test "$no_create" != yes; then
15663 ac_cs_success=:
15664 ac_config_status_args=
15665 test "$silent" = yes &&
15666 ac_config_status_args="$ac_config_status_args --quiet"
15667 exec 5>/dev/null
15668 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15669 exec 5>>config.log
15670 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15671 # would make configure fail if this is the last instruction.
15672 $ac_cs_success || as_fn_exit $?
15674 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15676 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}