Makefile.def: Remove reference to boehm-gc target module.
[official-gcc.git] / configure
blobcec133e171c38c52c9b7d166aaf6d9d74d72c7c8
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 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_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 DLLTOOL_FOR_BUILD
619 CXX_FOR_BUILD
620 CXXFLAGS_FOR_BUILD
621 CFLAGS_FOR_BUILD
622 CC_FOR_BUILD
623 AS_FOR_BUILD
624 AR_FOR_BUILD
625 target_configdirs
626 configdirs
627 build_configdirs
628 INSTALL_GDB_TK
629 GDB_TK
630 CONFIGURE_GDB_TK
631 build_tooldir
632 tooldir
633 GCC_SHLIB_SUBDIR
634 RPATH_ENVVAR
635 target_configargs
636 host_configargs
637 build_configargs
638 BUILD_CONFIG
639 LDFLAGS_FOR_TARGET
640 CXXFLAGS_FOR_TARGET
641 CFLAGS_FOR_TARGET
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
644 extra_host_zlib_configure_flags
645 extra_host_libiberty_configure_flags
646 PKG_CONFIG_LIBDIR
647 PKG_CONFIG_PATH
648 PKG_CONFIG
649 stage1_languages
650 extra_linker_plugin_flags
651 extra_linker_plugin_configure_flags
652 islinc
653 isllibs
654 islver
655 poststage1_ldflags
656 poststage1_libs
657 stage1_ldflags
658 stage1_libs
659 extra_isl_gmp_configure_flags
660 extra_mpc_mpfr_configure_flags
661 extra_mpc_gmp_configure_flags
662 extra_mpfr_configure_flags
663 gmpinc
664 gmplibs
665 do_compare
666 GNATMAKE
667 GNATBIND
668 ac_ct_CXX
669 CXXFLAGS
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
678 extra_liboffloadmic_configure_flags
679 target_subdir
680 host_subdir
681 build_subdir
682 build_libsubdir
685 LN_S
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 target_noncanonical
699 host_noncanonical
700 build_noncanonical
701 build_os
702 build_vendor
703 build_cpu
704 build
705 TOPLEVEL_CONFIGURE_ARGUMENTS
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files='serialization_dependencies
745 host_makefile_frag
746 target_makefile_frag
747 alphaieee_frag
748 ospace_frag'
749 ac_user_opts='
750 enable_option_checking
751 with_build_libsubdir
752 with_system_zlib
753 enable_as_accelerator_for
754 enable_offload_targets
755 enable_gold
756 enable_ld
757 enable_compressed_debug_sections
758 enable_libquadmath
759 enable_libquadmath_support
760 enable_libada
761 enable_libssp
762 enable_libstdcxx
763 enable_liboffloadmic
764 enable_bootstrap
765 with_mpc
766 with_mpc_include
767 with_mpc_lib
768 with_mpfr_dir
769 with_mpfr
770 with_mpfr_include
771 with_mpfr_lib
772 with_gmp_dir
773 with_gmp
774 with_gmp_include
775 with_gmp_lib
776 with_stage1_libs
777 with_stage1_ldflags
778 with_boot_libs
779 with_boot_ldflags
780 with_isl
781 with_isl_include
782 with_isl_lib
783 enable_isl_version_check
784 enable_lto
785 enable_linker_plugin_configure_flags
786 enable_linker_plugin_flags
787 enable_stage1_languages
788 enable_objc_gc
789 with_target_bdw_gc
790 with_target_bdw_gc_include
791 with_target_bdw_gc_lib
792 with_build_sysroot
793 with_debug_prefix_map
794 with_build_config
795 enable_vtable_verify
796 enable_serial_configure
797 with_build_time_tools
798 enable_maintainer_mode
799 enable_stage1_checking
800 enable_werror
801 enable_host_shared
803 ac_precious_vars='build_alias
804 host_alias
805 target_alias
807 CFLAGS
808 LDFLAGS
809 LIBS
810 CPPFLAGS
812 CXXFLAGS
814 PKG_CONFIG
815 PKG_CONFIG_PATH
816 PKG_CONFIG_LIBDIR
817 build_configargs
818 host_configargs
819 target_configargs
822 DLLTOOL
824 LIPO
826 RANLIB
827 STRIP
828 WINDRES
829 WINDMC
830 OBJCOPY
831 OBJDUMP
832 READELF
833 CC_FOR_TARGET
834 CXX_FOR_TARGET
835 GCC_FOR_TARGET
836 GFORTRAN_FOR_TARGET
837 GOC_FOR_TARGET
838 AR_FOR_TARGET
839 AS_FOR_TARGET
840 DLLTOOL_FOR_TARGET
841 LD_FOR_TARGET
842 LIPO_FOR_TARGET
843 NM_FOR_TARGET
844 OBJCOPY_FOR_TARGET
845 OBJDUMP_FOR_TARGET
846 RANLIB_FOR_TARGET
847 READELF_FOR_TARGET
848 STRIP_FOR_TARGET
849 WINDRES_FOR_TARGET
850 WINDMC_FOR_TARGET'
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
901 ac_prev=
902 ac_dashdash=
903 for ac_option
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
912 case $ac_option in
913 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *) ac_optarg=yes ;;
915 esac
917 # Accept the important Cygnus configure options, so we can diagnose typos.
919 case $ac_dashdash$ac_option in
921 ac_dashdash=yes ;;
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 ac_prev=bindir ;;
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926 bindir=$ac_optarg ;;
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
940 --config-cache | -C)
941 cache_file=config.cache ;;
943 -datadir | --datadir | --datadi | --datad)
944 ac_prev=datadir ;;
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
955 -disable-* | --disable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=no ;;
971 -docdir | --docdir | --docdi | --doc | --do)
972 ac_prev=docdir ;;
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974 docdir=$ac_optarg ;;
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 ac_prev=dvidir ;;
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979 dvidir=$ac_optarg ;;
981 -enable-* | --enable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=\$ac_optarg ;;
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1008 with_gas=yes ;;
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 ac_prev=htmldir ;;
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 | --ht=*)
1026 htmldir=$ac_optarg ;;
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 ac_prev=infodir ;;
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1040 -libdir | --libdir | --libdi | --libd)
1041 ac_prev=libdir ;;
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir=$ac_optarg ;;
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 ac_prev=mandir ;;
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1071 with_fp=no ;;
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1075 no_create=yes ;;
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 no_recursion=yes ;;
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 ac_prev=prefix ;;
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 ac_prev=pdfdir ;;
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1131 -psdir | --psdir | --psdi | --psd | --ps)
1132 ac_prev=psdir ;;
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 psdir=$ac_optarg ;;
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1138 silent=yes ;;
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1185 -with-* | --with-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error "invalid package name: $ac_useropt"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1235 -*) as_fn_error "unrecognized option: \`$ac_option'
1236 Try \`$0 --help' for more information."
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1245 esac
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1250 # FIXME: should be removed in autoconf 3.0.
1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257 esac
1258 done
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error "missing argument to $ac_option"
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1273 # Check all directory arguments for consistency.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1292 done
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315 test "$silent" = yes && exec 6>/dev/null
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error "working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error "pwd does not report name of working directory"
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1344 /^X\(\/\/\)$/{
1345 s//\1/
1348 /^X\(\/\).*/{
1349 s//\1/
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1357 else
1358 ac_srcdir_defaulted=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1367 pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 case $srcdir in
1379 *" "*)
1380 as_fn_error "path to source, $srcdir, contains spaces"
1382 esac
1383 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399 \`configure' configures this package to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1408 Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1454 cat <<\_ACEOF
1456 Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 --target=TARGET configure for building compilers for TARGET [HOST]
1465 _ACEOF
1468 if test -n "$ac_init_help"; then
1470 cat <<\_ACEOF
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-as-accelerator-for=ARG
1477 build as offload target compiler. Specify offload
1478 host triple by ARG
1479 --enable-offload-targets=LIST
1480 enable offloading to devices from comma-separated
1481 LIST of TARGET[=DIR]. Use optional path to find
1482 offload target compiler during the build
1483 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1484 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1485 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1486 Enable compressed debug sections for gas, gold or ld
1487 by default
1488 --disable-libquadmath do not build libquadmath directory
1489 --disable-libquadmath-support
1490 disable libquadmath support for Fortran
1491 --enable-libada build libada directory
1492 --enable-libssp build libssp directory
1493 --disable-libstdcxx do not build libstdc++-v3 directory
1494 --enable-liboffloadmic=ARG
1495 build liboffloadmic [ARG={no,host,target}]
1496 --enable-bootstrap enable bootstrapping [yes if native build]
1497 --disable-isl-version-check
1498 disable check for isl version
1499 --enable-lto enable link time optimization support
1500 --enable-linker-plugin-configure-flags=FLAGS
1501 additional flags for configuring linker plugins
1502 [none]
1503 --enable-linker-plugin-flags=FLAGS
1504 additional flags for configuring and building linker
1505 plugins [none]
1506 --enable-stage1-languages[=all]
1507 choose additional languages to build during stage1.
1508 Mostly useful for compiler development
1509 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1510 Objective-C runtime
1511 --enable-vtable-verify Enable vtable verification feature
1512 --enable-serial-[{host,target,build}-]configure
1513 force sequential configuration of sub-packages for
1514 the host, target or build machine, or all
1515 sub-packages
1516 --enable-maintainer-mode
1517 enable make rules and dependencies not useful (and
1518 sometimes confusing) to the casual installer
1519 --enable-stage1-checking[=all]
1520 choose additional checking for stage1 of the
1521 compiler
1522 --enable-werror enable -Werror in bootstrap stage2 and later
1523 --enable-host-shared build host code as shared libraries
1525 Optional Packages:
1526 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1527 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1528 --with-build-libsubdir=DIR Directory where to find libraries for build system
1529 --with-system-zlib use installed libz
1530 --with-mpc=PATH specify prefix directory for installed MPC package.
1531 Equivalent to --with-mpc-include=PATH/include plus
1532 --with-mpc-lib=PATH/lib
1533 --with-mpc-include=PATH specify directory for installed MPC include files
1534 --with-mpc-lib=PATH specify directory for the installed MPC library
1535 --with-mpfr-dir=PATH this option has been REMOVED
1536 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1537 Equivalent to --with-mpfr-include=PATH/include plus
1538 --with-mpfr-lib=PATH/lib
1539 --with-mpfr-include=PATH
1540 specify directory for installed MPFR include files
1541 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1542 --with-gmp-dir=PATH this option has been REMOVED
1543 --with-gmp=PATH specify prefix directory for the installed GMP
1544 package. Equivalent to
1545 --with-gmp-include=PATH/include plus
1546 --with-gmp-lib=PATH/lib
1547 --with-gmp-include=PATH specify directory for installed GMP include files
1548 --with-gmp-lib=PATH specify directory for the installed GMP library
1549 --with-stage1-libs=LIBS libraries for stage1
1550 --with-stage1-ldflags=FLAGS
1551 linker flags for stage1
1552 --with-boot-libs=LIBS libraries for stage2 and later
1553 --with-boot-ldflags=FLAGS
1554 linker flags for stage2 and later
1555 --with-isl=PATH Specify prefix directory for the installed isl
1556 package. Equivalent to
1557 --with-isl-include=PATH/include plus
1558 --with-isl-lib=PATH/lib
1559 --with-isl-include=PATH Specify directory for installed isl include files
1560 --with-isl-lib=PATH Specify the directory for the installed isl library
1561 --with-target-bdw-gc=PATHLIST
1562 specify prefix directory for installed bdw-gc
1563 package. Equivalent to
1564 --with-target-bdw-gc-include=PATH/include plus
1565 --with-target-bdw-gc-lib=PATH/lib
1566 --with-target-bdw-gc-include=PATHLIST
1567 specify directories for installed bdw-gc include
1568 files
1569 --with-target-bdw-gc-lib=PATHLIST
1570 specify directories for installed bdw-gc library
1571 --with-build-sysroot=SYSROOT
1572 use sysroot as the system root during the build
1573 --with-debug-prefix-map='A=B C=D ...'
1574 map A to B, C to D ... in debug information
1575 --with-build-config='NAME NAME2...'
1576 use config/NAME.mk build configuration
1577 --with-build-time-tools=PATH
1578 use given path to find target tools during the build
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
1590 PKG_CONFIG path to pkg-config utility
1591 PKG_CONFIG_PATH
1592 directories to add to pkg-config's search path
1593 PKG_CONFIG_LIBDIR
1594 path overriding pkg-config's built-in search path
1595 build_configargs
1596 additional configure arguments for build directories
1597 host_configargs
1598 additional configure arguments for host directories
1599 target_configargs
1600 additional configure arguments for target directories
1601 AR AR for the host
1602 AS AS for the host
1603 DLLTOOL DLLTOOL for the host
1604 LD LD for the host
1605 LIPO LIPO for the host
1606 NM NM for the host
1607 RANLIB RANLIB for the host
1608 STRIP STRIP for the host
1609 WINDRES WINDRES for the host
1610 WINDMC WINDMC for the host
1611 OBJCOPY OBJCOPY for the host
1612 OBJDUMP OBJDUMP for the host
1613 READELF READELF for the host
1614 CC_FOR_TARGET
1615 CC for the target
1616 CXX_FOR_TARGET
1617 CXX for the target
1618 GCC_FOR_TARGET
1619 GCC for the target
1620 GFORTRAN_FOR_TARGET
1621 GFORTRAN for the target
1622 GOC_FOR_TARGET
1623 GOC for the target
1624 AR_FOR_TARGET
1625 AR for the target
1626 AS_FOR_TARGET
1627 AS for the target
1628 DLLTOOL_FOR_TARGET
1629 DLLTOOL for the target
1630 LD_FOR_TARGET
1631 LD for the target
1632 LIPO_FOR_TARGET
1633 LIPO for the target
1634 NM_FOR_TARGET
1635 NM for the target
1636 OBJCOPY_FOR_TARGET
1637 OBJCOPY for the target
1638 OBJDUMP_FOR_TARGET
1639 OBJDUMP for the target
1640 RANLIB_FOR_TARGET
1641 RANLIB for the target
1642 READELF_FOR_TARGET
1643 READELF for the target
1644 STRIP_FOR_TARGET
1645 STRIP for the target
1646 WINDRES_FOR_TARGET
1647 WINDRES for the target
1648 WINDMC_FOR_TARGET
1649 WINDMC for the target
1651 Use these variables to override the choices made by `configure' or to help
1652 it to find libraries and programs with nonstandard names/locations.
1654 Report bugs to the package provider.
1655 _ACEOF
1656 ac_status=$?
1659 if test "$ac_init_help" = "recursive"; then
1660 # If there are subdirs, report their specific --help.
1661 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1662 test -d "$ac_dir" ||
1663 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1664 continue
1665 ac_builddir=.
1667 case "$ac_dir" in
1668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1671 # A ".." for each directory in $ac_dir_suffix.
1672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1673 case $ac_top_builddir_sub in
1674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1676 esac ;;
1677 esac
1678 ac_abs_top_builddir=$ac_pwd
1679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1680 # for backward compatibility:
1681 ac_top_builddir=$ac_top_build_prefix
1683 case $srcdir in
1684 .) # We are building in place.
1685 ac_srcdir=.
1686 ac_top_srcdir=$ac_top_builddir_sub
1687 ac_abs_top_srcdir=$ac_pwd ;;
1688 [\\/]* | ?:[\\/]* ) # Absolute name.
1689 ac_srcdir=$srcdir$ac_dir_suffix;
1690 ac_top_srcdir=$srcdir
1691 ac_abs_top_srcdir=$srcdir ;;
1692 *) # Relative name.
1693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1694 ac_top_srcdir=$ac_top_build_prefix$srcdir
1695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1696 esac
1697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1699 cd "$ac_dir" || { ac_status=$?; continue; }
1700 # Check for guested configure.
1701 if test -f "$ac_srcdir/configure.gnu"; then
1702 echo &&
1703 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1704 elif test -f "$ac_srcdir/configure"; then
1705 echo &&
1706 $SHELL "$ac_srcdir/configure" --help=recursive
1707 else
1708 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1709 fi || ac_status=$?
1710 cd "$ac_pwd" || { ac_status=$?; break; }
1711 done
1714 test -n "$ac_init_help" && exit $ac_status
1715 if $ac_init_version; then
1716 cat <<\_ACEOF
1717 configure
1718 generated by GNU Autoconf 2.64
1720 Copyright (C) 2009 Free Software Foundation, Inc.
1721 This configure script is free software; the Free Software Foundation
1722 gives unlimited permission to copy, distribute and modify it.
1723 _ACEOF
1724 exit
1727 ## ------------------------ ##
1728 ## Autoconf initialization. ##
1729 ## ------------------------ ##
1731 # ac_fn_c_try_compile LINENO
1732 # --------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_compile ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1762 ac_retval=1
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 return $ac_retval
1767 } # ac_fn_c_try_compile
1769 # ac_fn_cxx_try_compile LINENO
1770 # ----------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_cxx_try_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_cxx_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1800 ac_retval=1
1802 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803 return $ac_retval
1805 } # ac_fn_cxx_try_compile
1807 # ac_fn_cxx_try_link LINENO
1808 # -------------------------
1809 # Try to link conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_cxx_try_link ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext conftest$ac_exeext
1814 if { { ac_try="$ac_link"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_link") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_cxx_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest$ac_exeext && {
1833 test "$cross_compiling" = yes ||
1834 $as_test_x conftest$ac_exeext
1835 }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1841 ac_retval=1
1843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845 # interfere with the next link command; also delete a directory that is
1846 # left behind by Apple's compiler. We do this before executing the actions.
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 return $ac_retval
1851 } # ac_fn_cxx_try_link
1853 # ac_fn_c_try_link LINENO
1854 # -----------------------
1855 # Try to link conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_c_try_link ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext conftest$ac_exeext
1860 if { { ac_try="$ac_link"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_link") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest$ac_exeext && {
1879 test "$cross_compiling" = yes ||
1880 $as_test_x conftest$ac_exeext
1881 }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1887 ac_retval=1
1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891 # interfere with the next link command; also delete a directory that is
1892 # left behind by Apple's compiler. We do this before executing the actions.
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895 return $ac_retval
1897 } # ac_fn_c_try_link
1898 cat >config.log <<_ACEOF
1899 This file contains any messages produced by compilers while
1900 running configure, to aid debugging if configure makes a mistake.
1902 It was created by $as_me, which was
1903 generated by GNU Autoconf 2.64. Invocation command line was
1905 $ $0 $@
1907 _ACEOF
1908 exec 5>>config.log
1910 cat <<_ASUNAME
1911 ## --------- ##
1912 ## Platform. ##
1913 ## --------- ##
1915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1927 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1932 _ASUNAME
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1937 IFS=$as_save_IFS
1938 test -z "$as_dir" && as_dir=.
1939 $as_echo "PATH: $as_dir"
1940 done
1941 IFS=$as_save_IFS
1943 } >&5
1945 cat >&5 <<_ACEOF
1948 ## ----------- ##
1949 ## Core tests. ##
1950 ## ----------- ##
1952 _ACEOF
1955 # Keep a trace of the command line.
1956 # Strip out --no-create and --no-recursion so they do not pile up.
1957 # Strip out --silent because we don't want to record it for future runs.
1958 # Also quote any args containing shell meta-characters.
1959 # Make two passes to allow for proper duplicate-argument suppression.
1960 ac_configure_args=
1961 ac_configure_args0=
1962 ac_configure_args1=
1963 ac_must_keep_next=false
1964 for ac_pass in 1 2
1966 for ac_arg
1968 case $ac_arg in
1969 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1971 | -silent | --silent | --silen | --sile | --sil)
1972 continue ;;
1973 *\'*)
1974 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1975 esac
1976 case $ac_pass in
1977 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1979 as_fn_append ac_configure_args1 " '$ac_arg'"
1980 if test $ac_must_keep_next = true; then
1981 ac_must_keep_next=false # Got value, back to normal.
1982 else
1983 case $ac_arg in
1984 *=* | --config-cache | -C | -disable-* | --disable-* \
1985 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1986 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1987 | -with-* | --with-* | -without-* | --without-* | --x)
1988 case "$ac_configure_args0 " in
1989 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1990 esac
1992 -* ) ac_must_keep_next=true ;;
1993 esac
1995 as_fn_append ac_configure_args " '$ac_arg'"
1997 esac
1998 done
1999 done
2000 { ac_configure_args0=; unset ac_configure_args0;}
2001 { ac_configure_args1=; unset ac_configure_args1;}
2003 # When interrupted or exit'd, cleanup temporary files, and complete
2004 # config.log. We remove comments because anyway the quotes in there
2005 # would cause problems or look ugly.
2006 # WARNING: Use '\'' to represent an apostrophe within the trap.
2007 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2008 trap 'exit_status=$?
2009 # Save into config.log some information that might help in debugging.
2011 echo
2013 cat <<\_ASBOX
2014 ## ---------------- ##
2015 ## Cache variables. ##
2016 ## ---------------- ##
2017 _ASBOX
2018 echo
2019 # The following way of writing the cache mishandles newlines in values,
2021 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2022 eval ac_val=\$$ac_var
2023 case $ac_val in #(
2024 *${as_nl}*)
2025 case $ac_var in #(
2026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2028 esac
2029 case $ac_var in #(
2030 _ | IFS | as_nl) ;; #(
2031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2032 *) { eval $ac_var=; unset $ac_var;} ;;
2033 esac ;;
2034 esac
2035 done
2036 (set) 2>&1 |
2037 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2038 *${as_nl}ac_space=\ *)
2039 sed -n \
2040 "s/'\''/'\''\\\\'\'''\''/g;
2041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2042 ;; #(
2044 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046 esac |
2047 sort
2049 echo
2051 cat <<\_ASBOX
2052 ## ----------------- ##
2053 ## Output variables. ##
2054 ## ----------------- ##
2055 _ASBOX
2056 echo
2057 for ac_var in $ac_subst_vars
2059 eval ac_val=\$$ac_var
2060 case $ac_val in
2061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 esac
2063 $as_echo "$ac_var='\''$ac_val'\''"
2064 done | sort
2065 echo
2067 if test -n "$ac_subst_files"; then
2068 cat <<\_ASBOX
2069 ## ------------------- ##
2070 ## File substitutions. ##
2071 ## ------------------- ##
2072 _ASBOX
2073 echo
2074 for ac_var in $ac_subst_files
2076 eval ac_val=\$$ac_var
2077 case $ac_val in
2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 esac
2080 $as_echo "$ac_var='\''$ac_val'\''"
2081 done | sort
2082 echo
2085 if test -s confdefs.h; then
2086 cat <<\_ASBOX
2087 ## ----------- ##
2088 ## confdefs.h. ##
2089 ## ----------- ##
2090 _ASBOX
2091 echo
2092 cat confdefs.h
2093 echo
2095 test "$ac_signal" != 0 &&
2096 $as_echo "$as_me: caught signal $ac_signal"
2097 $as_echo "$as_me: exit $exit_status"
2098 } >&5
2099 rm -f core *.core core.conftest.* &&
2100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2101 exit $exit_status
2103 for ac_signal in 1 2 13 15; do
2104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2105 done
2106 ac_signal=0
2108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2109 rm -f -r conftest* confdefs.h
2111 $as_echo "/* confdefs.h */" > confdefs.h
2113 # Predefined preprocessor variables.
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_NAME "$PACKAGE_NAME"
2117 _ACEOF
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2121 _ACEOF
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2125 _ACEOF
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_STRING "$PACKAGE_STRING"
2129 _ACEOF
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2133 _ACEOF
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_URL "$PACKAGE_URL"
2137 _ACEOF
2140 # Let the site file select an alternate cache file if it wants to.
2141 # Prefer an explicitly selected file to automatically selected ones.
2142 ac_site_file1=NONE
2143 ac_site_file2=NONE
2144 if test -n "$CONFIG_SITE"; then
2145 ac_site_file1=$CONFIG_SITE
2146 elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2149 else
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2153 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2155 test "x$ac_site_file" = xNONE && continue
2156 if test -r "$ac_site_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159 sed 's/^/| /' "$ac_site_file" >&5
2160 . "$ac_site_file"
2162 done
2164 if test -r "$cache_file"; then
2165 # Some versions of bash will fail to source /dev/null (special
2166 # files actually), so we avoid doing that.
2167 if test -f "$cache_file"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169 $as_echo "$as_me: loading cache $cache_file" >&6;}
2170 case $cache_file in
2171 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172 *) . "./$cache_file";;
2173 esac
2175 else
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177 $as_echo "$as_me: creating cache $cache_file" >&6;}
2178 >$cache_file
2181 # Check that the precious variables saved in the cache have kept the same
2182 # value.
2183 ac_cache_corrupted=false
2184 for ac_var in $ac_precious_vars; do
2185 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2186 eval ac_new_set=\$ac_env_${ac_var}_set
2187 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2188 eval ac_new_val=\$ac_env_${ac_var}_value
2189 case $ac_old_set,$ac_new_set in
2190 set,)
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2192 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2193 ac_cache_corrupted=: ;;
2194 ,set)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,);;
2200 if test "x$ac_old_val" != "x$ac_new_val"; then
2201 # differences in whitespace do not lead to failure.
2202 ac_old_val_w=`echo x $ac_old_val`
2203 ac_new_val_w=`echo x $ac_new_val`
2204 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2206 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2207 ac_cache_corrupted=:
2208 else
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2210 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2211 eval $ac_var=\$ac_old_val
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2214 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2216 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2217 fi;;
2218 esac
2219 # Pass precious variables to config.status.
2220 if test "$ac_new_set" = set; then
2221 case $ac_new_val in
2222 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2223 *) ac_arg=$ac_var=$ac_new_val ;;
2224 esac
2225 case " $ac_configure_args " in
2226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2227 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2228 esac
2230 done
2231 if $ac_cache_corrupted; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2235 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2236 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2238 ## -------------------- ##
2239 ## Main body of script. ##
2240 ## -------------------- ##
2242 ac_ext=c
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256 progname=$0
2257 # if PWD already has a value, it is probably wrong.
2258 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2260 # Export original configure arguments for use by sub-configures.
2261 # Quote arguments with shell meta charatcers.
2262 TOPLEVEL_CONFIGURE_ARGUMENTS=
2263 set -- "$progname" "$@"
2264 for ac_arg
2266 case "$ac_arg" in
2267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2268 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2269 # if the argument is of the form -foo=baz, quote the baz part only
2270 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2271 *) ;;
2272 esac
2273 # Add the quoted argument to the list.
2274 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2275 done
2276 if test "$silent" = yes; then
2277 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2279 # Remove the initial space we just introduced and, as these will be
2280 # expanded by make, quote '$'.
2281 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2284 # Find the build, host, and target systems.
2285 ac_aux_dir=
2286 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2287 for ac_t in install-sh install.sh shtool; do
2288 if test -f "$ac_dir/$ac_t"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/$ac_t -c"
2291 break 2
2293 done
2294 done
2295 if test -z "$ac_aux_dir"; then
2296 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2299 # These three variables are undocumented and unsupported,
2300 # and are intended to be withdrawn in a future Autoconf release.
2301 # They can cause serious problems if a builder's source tree is in a directory
2302 # whose full name contains unusual characters.
2303 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2304 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2305 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2308 # Make sure we can run config.sub.
2309 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2310 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2313 $as_echo_n "checking build system type... " >&6; }
2314 if test "${ac_cv_build+set}" = set; then :
2315 $as_echo_n "(cached) " >&6
2316 else
2317 ac_build_alias=$build_alias
2318 test "x$ac_build_alias" = x &&
2319 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2320 test "x$ac_build_alias" = x &&
2321 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2322 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2323 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2327 $as_echo "$ac_cv_build" >&6; }
2328 case $ac_cv_build in
2329 *-*-*) ;;
2330 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2331 esac
2332 build=$ac_cv_build
2333 ac_save_IFS=$IFS; IFS='-'
2334 set x $ac_cv_build
2335 shift
2336 build_cpu=$1
2337 build_vendor=$2
2338 shift; shift
2339 # Remember, the first character of IFS is used to create $*,
2340 # except with old shells:
2341 build_os=$*
2342 IFS=$ac_save_IFS
2343 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2346 case ${build_alias} in
2347 "") build_noncanonical=${build} ;;
2348 *) build_noncanonical=${build_alias} ;;
2349 esac
2353 case ${host_alias} in
2354 "") host_noncanonical=${build_noncanonical} ;;
2355 *) host_noncanonical=${host_alias} ;;
2356 esac
2360 case ${target_alias} in
2361 "") target_noncanonical=${host_noncanonical} ;;
2362 *) target_noncanonical=${target_alias} ;;
2363 esac
2368 test "$host_noncanonical" = "$target_noncanonical" &&
2369 test "$program_prefix$program_suffix$program_transform_name" = \
2370 NONENONEs,x,x, &&
2371 program_transform_name=s,y,y,
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2374 $as_echo_n "checking host system type... " >&6; }
2375 if test "${ac_cv_host+set}" = set; then :
2376 $as_echo_n "(cached) " >&6
2377 else
2378 if test "x$host_alias" = x; then
2379 ac_cv_host=$ac_cv_build
2380 else
2381 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2382 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2387 $as_echo "$ac_cv_host" >&6; }
2388 case $ac_cv_host in
2389 *-*-*) ;;
2390 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2391 esac
2392 host=$ac_cv_host
2393 ac_save_IFS=$IFS; IFS='-'
2394 set x $ac_cv_host
2395 shift
2396 host_cpu=$1
2397 host_vendor=$2
2398 shift; shift
2399 # Remember, the first character of IFS is used to create $*,
2400 # except with old shells:
2401 host_os=$*
2402 IFS=$ac_save_IFS
2403 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2407 $as_echo_n "checking target system type... " >&6; }
2408 if test "${ac_cv_target+set}" = set; then :
2409 $as_echo_n "(cached) " >&6
2410 else
2411 if test "x$target_alias" = x; then
2412 ac_cv_target=$ac_cv_host
2413 else
2414 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2415 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2420 $as_echo "$ac_cv_target" >&6; }
2421 case $ac_cv_target in
2422 *-*-*) ;;
2423 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2424 esac
2425 target=$ac_cv_target
2426 ac_save_IFS=$IFS; IFS='-'
2427 set x $ac_cv_target
2428 shift
2429 target_cpu=$1
2430 target_vendor=$2
2431 shift; shift
2432 # Remember, the first character of IFS is used to create $*,
2433 # except with old shells:
2434 target_os=$*
2435 IFS=$ac_save_IFS
2436 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2439 # The aliases save the names the user supplied, while $host etc.
2440 # will get canonicalized.
2441 test -n "$target_alias" &&
2442 test "$program_prefix$program_suffix$program_transform_name" = \
2443 NONENONEs,x,x, &&
2444 program_prefix=${target_alias}-
2446 test "$program_prefix" != NONE &&
2447 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2448 # Use a double $ so make ignores it.
2449 test "$program_suffix" != NONE &&
2450 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2451 # Double any \ or $.
2452 # By default was `s,x,x', remove it if useless.
2453 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2454 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2458 # Get 'install' or 'install-sh' and its variants.
2459 # Find a good install program. We prefer a C program (faster),
2460 # so one script is as good as another. But avoid the broken or
2461 # incompatible versions:
2462 # SysV /etc/install, /usr/sbin/install
2463 # SunOS /usr/etc/install
2464 # IRIX /sbin/install
2465 # AIX /bin/install
2466 # AmigaOS /C/install, which installs bootblocks on floppy discs
2467 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2468 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2469 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2470 # OS/2's system install, which has a completely different semantic
2471 # ./install, which can be erroneously created by make from ./install.sh.
2472 # Reject install programs that cannot install multiple files.
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2474 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2475 if test -z "$INSTALL"; then
2476 if test "${ac_cv_path_install+set}" = set; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 # Account for people who put trailing slashes in PATH elements.
2485 case $as_dir/ in #((
2486 ./ | .// | /[cC]/* | \
2487 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2488 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2489 /usr/ucb/* ) ;;
2491 # OSF1 and SCO ODT 3.0 have their own names for install.
2492 # Don't use installbsd from OSF since it installs stuff as root
2493 # by default.
2494 for ac_prog in ginstall scoinst install; do
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2497 if test $ac_prog = install &&
2498 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2499 # AIX install. It has an incompatible calling convention.
2501 elif test $ac_prog = install &&
2502 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2503 # program-specific install script used by HP pwplus--don't use.
2505 else
2506 rm -rf conftest.one conftest.two conftest.dir
2507 echo one > conftest.one
2508 echo two > conftest.two
2509 mkdir conftest.dir
2510 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2511 test -s conftest.one && test -s conftest.two &&
2512 test -s conftest.dir/conftest.one &&
2513 test -s conftest.dir/conftest.two
2514 then
2515 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2516 break 3
2520 done
2521 done
2523 esac
2525 done
2526 IFS=$as_save_IFS
2528 rm -rf conftest.one conftest.two conftest.dir
2531 if test "${ac_cv_path_install+set}" = set; then
2532 INSTALL=$ac_cv_path_install
2533 else
2534 # As a last resort, use the slow shell script. Don't cache a
2535 # value for INSTALL within a source directory, because that will
2536 # break other packages using the cache if that directory is
2537 # removed, or if the value is a relative name.
2538 INSTALL=$ac_install_sh
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2542 $as_echo "$INSTALL" >&6; }
2544 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2545 # It thinks the first close brace ends the variable substitution.
2546 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2548 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2550 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2553 $as_echo_n "checking whether ln works... " >&6; }
2554 if test "${acx_cv_prog_LN+set}" = set; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 rm -f conftestdata_t
2558 echo >conftestdata_f
2559 if ln conftestdata_f conftestdata_t 2>/dev/null
2560 then
2561 acx_cv_prog_LN=ln
2562 else
2563 acx_cv_prog_LN=no
2565 rm -f conftestdata_f conftestdata_t
2568 if test $acx_cv_prog_LN = no; then
2569 LN="cp"
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2571 $as_echo "no, using $LN" >&6; }
2572 else
2573 LN="$acx_cv_prog_LN"
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2575 $as_echo "yes" >&6; }
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2579 $as_echo_n "checking whether ln -s works... " >&6; }
2580 LN_S=$as_ln_s
2581 if test "$LN_S" = "ln -s"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583 $as_echo "yes" >&6; }
2584 else
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2586 $as_echo "no, using $LN_S" >&6; }
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2590 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2591 if test "${ac_cv_path_SED+set}" = set; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2595 for ac_i in 1 2 3 4 5 6 7; do
2596 ac_script="$ac_script$as_nl$ac_script"
2597 done
2598 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2599 { ac_script=; unset ac_script;}
2600 if test -z "$SED"; then
2601 ac_path_SED_found=false
2602 # Loop through the user's path and test for each of PROGNAME-LIST
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_prog in sed gsed; do
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2611 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2612 # Check for GNU ac_path_SED and select it if it is found.
2613 # Check for GNU $ac_path_SED
2614 case `"$ac_path_SED" --version 2>&1` in
2615 *GNU*)
2616 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2618 ac_count=0
2619 $as_echo_n 0123456789 >"conftest.in"
2620 while :
2622 cat "conftest.in" "conftest.in" >"conftest.tmp"
2623 mv "conftest.tmp" "conftest.in"
2624 cp "conftest.in" "conftest.nl"
2625 $as_echo '' >> "conftest.nl"
2626 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2627 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2628 as_fn_arith $ac_count + 1 && ac_count=$as_val
2629 if test $ac_count -gt ${ac_path_SED_max-0}; then
2630 # Best one so far, save it but keep looking for a better one
2631 ac_cv_path_SED="$ac_path_SED"
2632 ac_path_SED_max=$ac_count
2634 # 10*(2^10) chars as input seems more than enough
2635 test $ac_count -gt 10 && break
2636 done
2637 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2638 esac
2640 $ac_path_SED_found && break 3
2641 done
2642 done
2643 done
2644 IFS=$as_save_IFS
2645 if test -z "$ac_cv_path_SED"; then
2646 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2648 else
2649 ac_cv_path_SED=$SED
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2654 $as_echo "$ac_cv_path_SED" >&6; }
2655 SED="$ac_cv_path_SED"
2656 rm -f conftest.sed
2658 for ac_prog in gawk mawk nawk awk
2660 # Extract the first word of "$ac_prog", so it can be a program name with args.
2661 set dummy $ac_prog; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if test "${ac_cv_prog_AWK+set}" = set; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test -n "$AWK"; then
2668 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 ac_cv_prog_AWK="$ac_prog"
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2681 done
2682 done
2683 IFS=$as_save_IFS
2687 AWK=$ac_cv_prog_AWK
2688 if test -n "$AWK"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2690 $as_echo "$AWK" >&6; }
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2697 test -n "$AWK" && break
2698 done
2701 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2703 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2704 # a relative path.
2705 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2706 INSTALL="${srcpwd}/install-sh -c"
2709 # Set srcdir to "." if that's what it is.
2710 # This is important for multilib support.
2711 pwd=`${PWDCMD-pwd}`
2712 if test "${pwd}" = "${srcpwd}" ; then
2713 srcdir=.
2716 topsrcdir=$srcpwd
2718 extra_host_args=
2720 ### To add a new directory to the tree, first choose whether it is a target
2721 ### or a host dependent tool. Then put it into the appropriate list
2722 ### (library or tools, host or target), doing a dependency sort.
2724 # Subdirs will be configured in the order listed in build_configdirs,
2725 # configdirs, or target_configdirs; see the serialization section below.
2727 # Dependency sorting is only needed when *configuration* must be done in
2728 # a particular order. In all cases a dependency should be specified in
2729 # the Makefile, whether or not it's implicitly specified here.
2731 # Double entries in build_configdirs, configdirs, or target_configdirs may
2732 # cause circular dependencies and break everything horribly.
2734 # these library is used by various programs built for the build
2735 # environment
2737 build_libs="build-libiberty build-libcpp"
2739 # these tools are built for the build environment
2740 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2742 # these libraries are used by various programs built for the host environment
2744 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2746 # these tools are built for the host environment
2747 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2748 # know that we are building the simulator.
2749 # binutils, gas and ld appear in that order because it makes sense to run
2750 # "make check" in that particular order.
2751 # If --enable-gold is used, "gold" may replace "ld".
2752 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2754 # these libraries are built for the target environment, and are built after
2755 # the host libraries and the host tools (which may be a cross compiler)
2756 # Note that libiberty is not a target library.
2757 target_libraries="target-libgcc \
2758 target-libbacktrace \
2759 target-libgloss \
2760 target-newlib \
2761 target-libgomp \
2762 target-libcilkrts \
2763 target-liboffloadmic \
2764 target-libatomic \
2765 target-libitm \
2766 target-libstdc++-v3 \
2767 target-libsanitizer \
2768 target-libvtv \
2769 target-libmpx \
2770 target-libssp \
2771 target-libquadmath \
2772 target-libgfortran \
2773 target-libffi \
2774 target-libobjc \
2775 target-libada \
2776 target-libgo"
2778 # these tools are built using the target libraries, and are intended to
2779 # run only in the target environment
2781 # note: any program that *uses* libraries that are in the "target_libraries"
2782 # list belongs in this list.
2784 target_tools="target-rda"
2786 ################################################################################
2788 ## All tools belong in one of the four categories, and are assigned above
2789 ## We assign ${configdirs} this way to remove all embedded newlines. This
2790 ## is important because configure will choke if they ever get through.
2791 ## ${configdirs} is directories we build using the host tools.
2792 ## ${target_configdirs} is directories we build using the target tools.
2793 configdirs=`echo ${host_libs} ${host_tools}`
2794 target_configdirs=`echo ${target_libraries} ${target_tools}`
2795 build_configdirs=`echo ${build_libs} ${build_tools}`
2799 ################################################################################
2801 srcname="gnu development package"
2803 # This gets set non-empty for some net releases of packages.
2804 appdirs=""
2806 # Define is_cross_compiler to save on calls to 'test'.
2807 is_cross_compiler=
2808 if test x"${host}" = x"${target}" ; then
2809 is_cross_compiler=no
2810 else
2811 is_cross_compiler=yes
2814 # Find the build and target subdir names.
2816 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2817 # have matching libraries, they should use host libraries: Makefile.tpl
2818 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2819 # However, they still use the build modules, because the corresponding
2820 # host modules (e.g. bison) are only built for the host when bootstrap
2821 # finishes. So:
2822 # - build_subdir is where we find build modules, and never changes.
2823 # - build_libsubdir is where we find build libraries, and can be overridden.
2825 # Prefix 'build-' so this never conflicts with target_subdir.
2826 build_subdir="build-${build_noncanonical}"
2828 # Check whether --with-build-libsubdir was given.
2829 if test "${with_build_libsubdir+set}" = set; then :
2830 withval=$with_build_libsubdir; build_libsubdir="$withval"
2831 else
2832 build_libsubdir="$build_subdir"
2835 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2836 if ( test $srcdir = . && test -d gcc ) \
2837 || test -d $srcdir/../host-${host_noncanonical}; then
2838 host_subdir="host-${host_noncanonical}"
2839 else
2840 host_subdir=.
2842 # No prefix.
2843 target_subdir=${target_noncanonical}
2845 # Be sure to cover against remnants of an in-tree build.
2846 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2847 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2848 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2851 # Skipdirs are removed silently.
2852 skipdirs=
2853 # Noconfigdirs are removed loudly.
2854 noconfigdirs=""
2856 use_gnu_ld=
2857 # Make sure we don't let GNU ld be added if we didn't want it.
2858 if test x$with_gnu_ld = xno ; then
2859 use_gnu_ld=no
2860 noconfigdirs="$noconfigdirs ld gold"
2863 use_gnu_as=
2864 # Make sure we don't let GNU as be added if we didn't want it.
2865 if test x$with_gnu_as = xno ; then
2866 use_gnu_as=no
2867 noconfigdirs="$noconfigdirs gas"
2870 use_included_zlib=
2872 # Check whether --with-system-zlib was given.
2873 if test "${with_system_zlib+set}" = set; then :
2874 withval=$with_system_zlib;
2877 # Make sure we don't let ZLIB be added if we didn't want it.
2878 if test x$with_system_zlib = xyes ; then
2879 use_included_zlib=no
2880 noconfigdirs="$noconfigdirs zlib"
2883 # some tools are so dependent upon X11 that if we're not building with X,
2884 # it's not even worth trying to configure, much less build, that tool.
2886 case ${with_x} in
2887 yes | "") ;; # the default value for this tree is that X11 is available
2889 skipdirs="${skipdirs} tk itcl libgui"
2890 # We won't be able to build gdbtk without X.
2891 enable_gdbtk=no
2893 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2894 esac
2896 # Some are only suitable for cross toolchains.
2897 # Remove these if host=target.
2898 cross_only="target-libgloss target-newlib target-opcodes"
2900 case $is_cross_compiler in
2901 no) skipdirs="${skipdirs} ${cross_only}" ;;
2902 esac
2904 # If both --with-headers and --with-libs are specified, default to
2905 # --without-newlib.
2906 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2907 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2908 if test x"${with_newlib}" = x ; then
2909 with_newlib=no
2913 # Recognize --with-newlib/--without-newlib.
2914 case ${with_newlib} in
2915 no) skipdirs="${skipdirs} target-newlib" ;;
2916 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2917 esac
2919 # Check whether --enable-as-accelerator-for was given.
2920 if test "${enable_as_accelerator_for+set}" = set; then :
2921 enableval=$enable_as_accelerator_for;
2925 # Check whether --enable-offload-targets was given.
2926 if test "${enable_offload_targets+set}" = set; then :
2927 enableval=$enable_offload_targets;
2928 if test x"$enable_offload_targets" = x; then
2929 as_fn_error "no offload targets specified" "$LINENO" 5
2932 else
2933 enable_offload_targets=
2937 # Handle --enable-gold, --enable-ld.
2938 # --disable-gold [--enable-ld]
2939 # Build only ld. Default option.
2940 # --enable-gold [--enable-ld]
2941 # Build both gold and ld. Install gold as "ld.gold", install ld
2942 # as "ld.bfd" and "ld".
2943 # --enable-gold=default [--enable-ld]
2944 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2945 # install ld as "ld.bfd".
2946 # --enable-gold[=default] --disable-ld
2947 # Build only gold, which is then installed as both "ld.gold" and "ld".
2948 # --enable-gold --enable-ld=default
2949 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2950 # and ld.bfd).
2951 # In other words, ld is default
2952 # --enable-gold=default --enable-ld=default
2953 # Error.
2955 default_ld=
2956 # Check whether --enable-gold was given.
2957 if test "${enable_gold+set}" = set; then :
2958 enableval=$enable_gold; ENABLE_GOLD=$enableval
2959 else
2960 ENABLE_GOLD=no
2963 case "${ENABLE_GOLD}" in
2964 yes|default)
2965 # Check for ELF target.
2966 is_elf=no
2967 case "${target}" in
2968 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2969 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2970 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2971 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2972 case "${target}" in
2973 *-*-linux*aout* | *-*-linux*oldld*)
2976 is_elf=yes
2978 esac
2979 esac
2981 if test "$is_elf" = "yes"; then
2982 # Check for target supported by gold.
2983 case "${target}" in
2984 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2985 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2986 configdirs="$configdirs gold"
2987 if test x${ENABLE_GOLD} = xdefault; then
2988 default_ld=gold
2990 ENABLE_GOLD=yes
2992 esac
2998 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3000 esac
3002 # Check whether --enable-ld was given.
3003 if test "${enable_ld+set}" = set; then :
3004 enableval=$enable_ld; ENABLE_LD=$enableval
3005 else
3006 ENABLE_LD=yes
3010 case "${ENABLE_LD}" in
3011 default)
3012 if test x${default_ld} != x; then
3013 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3016 yes)
3019 if test x${ENABLE_GOLD} != xyes; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3021 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3023 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3026 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3028 esac
3030 # PR gas/19109
3031 # Decide the default method for compressing debug sections.
3032 # Provide a configure time option to override our default.
3033 # Check whether --enable-compressed_debug_sections was given.
3034 if test "${enable_compressed_debug_sections+set}" = set; then :
3035 enableval=$enable_compressed_debug_sections;
3036 if test x"$enable_compressed_debug_sections" = xyes; then
3037 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3040 else
3041 enable_compressed_debug_sections=
3045 # Configure extra directories which are host specific
3047 case "${host}" in
3048 *-cygwin*)
3049 configdirs="$configdirs libtermcap" ;;
3050 esac
3052 # A target can indicate whether a language isn't supported for some reason.
3053 # Only spaces may be used in this macro; not newlines or tabs.
3054 unsupported_languages=
3056 # Remove more programs from consideration, based on the host or
3057 # target this usually means that a port of the program doesn't
3058 # exist yet.
3060 case "${host}" in
3061 i[3456789]86-*-msdosdjgpp*)
3062 noconfigdirs="$noconfigdirs tcl tk itcl"
3064 esac
3067 # Check whether --enable-libquadmath was given.
3068 if test "${enable_libquadmath+set}" = set; then :
3069 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3070 else
3071 ENABLE_LIBQUADMATH=yes
3074 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3075 noconfigdirs="$noconfigdirs target-libquadmath"
3079 # Check whether --enable-libquadmath-support was given.
3080 if test "${enable_libquadmath_support+set}" = set; then :
3081 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3082 else
3083 ENABLE_LIBQUADMATH_SUPPORT=yes
3086 enable_libquadmath_support=
3087 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3088 enable_libquadmath_support=no
3092 # Check whether --enable-libada was given.
3093 if test "${enable_libada+set}" = set; then :
3094 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3095 else
3096 ENABLE_LIBADA=yes
3099 if test "${ENABLE_LIBADA}" != "yes" ; then
3100 noconfigdirs="$noconfigdirs gnattools"
3103 # Check whether --enable-libssp was given.
3104 if test "${enable_libssp+set}" = set; then :
3105 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3106 else
3107 ENABLE_LIBSSP=yes
3111 # Check whether --enable-libstdcxx was given.
3112 if test "${enable_libstdcxx+set}" = set; then :
3113 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3114 else
3115 ENABLE_LIBSTDCXX=default
3118 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3119 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3122 # If this is accelerator compiler and its target is intelmic we enable
3123 # target liboffloadmic by default. If this is compiler with offloading
3124 # for intelmic we enable host liboffloadmic by default. Otherwise
3125 # liboffloadmic is disabled by default.
3126 # Check whether --enable-liboffloadmic was given.
3127 if test "${enable_liboffloadmic+set}" = set; then :
3128 enableval=$enable_liboffloadmic; case "$enableval" in
3129 no | host | target)
3130 enable_liboffloadmic=$enableval ;;
3132 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3133 esac
3134 else
3135 if test x"$enable_as_accelerator_for" != x; then
3136 case "${target}" in
3137 *-intelmic-* | *-intelmicemul-*)
3138 enable_liboffloadmic=target
3139 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3142 enable_liboffloadmic=no
3144 esac
3145 else
3146 case "${enable_offload_targets}" in
3147 *-intelmic-* | *-intelmicemul-*)
3148 enable_liboffloadmic=host
3149 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3152 enable_liboffloadmic=no
3154 esac
3160 # Enable libgomp by default on hosted POSIX systems, and a few others.
3161 if test x$enable_libgomp = x ; then
3162 case "${target}" in
3163 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3165 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3167 *-*-solaris2* | *-*-hpux11*)
3169 *-*-darwin* | *-*-aix*)
3171 nvptx*-*-*)
3174 noconfigdirs="$noconfigdirs target-libgomp"
3176 esac
3179 # Disable libatomic on unsupported systems.
3180 if test -d ${srcdir}/libatomic; then
3181 if test x$enable_libatomic = x; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3183 $as_echo_n "checking for libatomic support... " >&6; }
3184 if (srcdir=${srcdir}/libatomic; \
3185 . ${srcdir}/configure.tgt; \
3186 test -n "$UNSUPPORTED")
3187 then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 noconfigdirs="$noconfigdirs target-libatomic"
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3193 $as_echo "yes" >&6; }
3198 # Disable libcilkrts on unsupported systems.
3199 if test -d ${srcdir}/libcilkrts; then
3200 if test x$enable_libcilkrts = x; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3202 $as_echo_n "checking for libcilkrts support... " >&6; }
3203 if (srcdir=${srcdir}/libcilkrts; \
3204 . ${srcdir}/configure.tgt; \
3205 test -n "$UNSUPPORTED")
3206 then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 noconfigdirs="$noconfigdirs target-libcilkrts"
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212 $as_echo "yes" >&6; }
3217 # Disable liboffloadmic on unsupported systems.
3218 if test -d ${srcdir}/liboffloadmic; then
3219 if test x$enable_liboffloadmic != xno; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3221 $as_echo_n "checking for liboffloadmic support... " >&6; }
3222 if (srcdir=${srcdir}/liboffloadmic; \
3223 . ${srcdir}/configure.tgt; \
3224 test -n "$UNSUPPORTED")
3225 then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 noconfigdirs="$noconfigdirs target-liboffloadmic"
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231 $as_echo "yes" >&6; }
3236 # Disable libitm on unsupported systems.
3237 if test -d ${srcdir}/libitm; then
3238 if test x$enable_libitm = x; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3240 $as_echo_n "checking for libitm support... " >&6; }
3241 if (srcdir=${srcdir}/libitm; \
3242 . ${srcdir}/configure.tgt; \
3243 test -n "$UNSUPPORTED")
3244 then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 noconfigdirs="$noconfigdirs target-libitm"
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250 $as_echo "yes" >&6; }
3255 # Disable libsanitizer on unsupported systems.
3256 if test -d ${srcdir}/libsanitizer; then
3257 if test x$enable_libsanitizer = x; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3259 $as_echo_n "checking for libsanitizer support... " >&6; }
3260 if (srcdir=${srcdir}/libsanitizer; \
3261 . ${srcdir}/configure.tgt; \
3262 test -n "$UNSUPPORTED")
3263 then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 noconfigdirs="$noconfigdirs target-libsanitizer"
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3269 $as_echo "yes" >&6; }
3274 # Disable libvtv on unsupported systems.
3275 if test -d ${srcdir}/libvtv; then
3276 if test x$enable_libvtv = x; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3278 $as_echo_n "checking for libvtv support... " >&6; }
3279 if (srcdir=${srcdir}/libvtv; \
3280 . ${srcdir}/configure.tgt; \
3281 test "$VTV_SUPPORTED" != "yes")
3282 then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 noconfigdirs="$noconfigdirs target-libvtv"
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3294 # Enable libmpx on supported systems by request.
3295 if test -d ${srcdir}/libmpx; then
3296 if test x$enable_libmpx = x; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3298 $as_echo_n "checking for libmpx support... " >&6; }
3299 if (srcdir=${srcdir}/libmpx; \
3300 . ${srcdir}/configure.tgt; \
3301 test "$LIBMPX_SUPPORTED" != "yes")
3302 then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 noconfigdirs="$noconfigdirs target-libmpx"
3306 else
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308 $as_echo "yes" >&6; }
3315 # Disable libquadmath for some systems.
3316 case "${target}" in
3317 avr-*-*)
3318 noconfigdirs="$noconfigdirs target-libquadmath"
3320 # libquadmath is unused on AIX and libquadmath build process use of
3321 # LD_LIBRARY_PATH can break AIX bootstrap.
3322 powerpc-*-aix* | rs6000-*-aix*)
3323 noconfigdirs="$noconfigdirs target-libquadmath"
3325 esac
3327 # Disable libssp for some systems.
3328 case "${target}" in
3329 avr-*-*)
3330 # No hosted I/O support.
3331 noconfigdirs="$noconfigdirs target-libssp"
3333 powerpc-*-aix* | rs6000-*-aix*)
3334 noconfigdirs="$noconfigdirs target-libssp"
3336 rl78-*-*)
3337 # libssp uses a misaligned load to trigger a fault, but the RL78
3338 # doesn't fault for those - instead, it gives a build-time error
3339 # for explicit misaligned loads.
3340 noconfigdirs="$noconfigdirs target-libssp"
3342 visium-*-*)
3343 # No hosted I/O support.
3344 noconfigdirs="$noconfigdirs target-libssp"
3346 esac
3348 # Disable libstdc++-v3 for some systems.
3349 # Allow user to override this if they pass --enable-libstdc++-v3
3350 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3351 case "${target}" in
3352 *-*-vxworks*)
3353 # VxWorks uses the Dinkumware C++ library.
3354 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3356 arm*-wince-pe*)
3357 # the C++ libraries don't build on top of CE's C libraries
3358 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3360 avr-*-*)
3361 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3363 ft32-*-*)
3364 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3366 esac
3369 # Disable Fortran for some systems.
3370 case "${target}" in
3371 mmix-*-*)
3372 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3373 unsupported_languages="$unsupported_languages fortran"
3375 esac
3377 # Disable libffi for some systems.
3378 case "${target}" in
3379 powerpc-*-darwin*)
3381 i[3456789]86-*-darwin*)
3383 x86_64-*-darwin[912]*)
3385 *-*-darwin*)
3386 noconfigdirs="$noconfigdirs target-libffi"
3388 *-*-netware*)
3389 noconfigdirs="$noconfigdirs target-libffi"
3391 *-*-phoenix*)
3392 noconfigdirs="$noconfigdirs target-libffi"
3394 *-*-rtems*)
3395 noconfigdirs="$noconfigdirs target-libffi"
3397 *-*-tpf*)
3398 noconfigdirs="$noconfigdirs target-libffi"
3400 *-*-uclinux*)
3401 noconfigdirs="$noconfigdirs target-libffi"
3403 *-*-vxworks*)
3404 noconfigdirs="$noconfigdirs target-libffi"
3406 aarch64*-*-freebsd*)
3407 noconfigdirs="$noconfigdirs target-libffi"
3409 alpha*-*-*vms*)
3410 noconfigdirs="$noconfigdirs target-libffi"
3412 arm*-*-freebsd*)
3413 noconfigdirs="$noconfigdirs target-libffi"
3415 arm-wince-pe)
3416 noconfigdirs="$noconfigdirs target-libffi"
3418 arm*-*-symbianelf*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3421 cris-*-* | crisv32-*-*)
3422 case "${target}" in
3423 *-*-linux*)
3425 *) # See PR46792 regarding target-libffi.
3426 noconfigdirs="$noconfigdirs target-libffi";;
3427 esac
3429 hppa*64*-*-hpux*)
3430 noconfigdirs="$noconfigdirs target-libffi"
3432 hppa*-hp-hpux11*)
3434 hppa*-*-hpux*)
3435 noconfigdirs="$noconfigdirs target-libffi"
3437 ia64*-*-*vms*)
3438 noconfigdirs="$noconfigdirs target-libffi"
3440 i[3456789]86-w64-mingw*)
3441 noconfigdirs="$noconfigdirs target-libffi"
3443 i[3456789]86-*-mingw*)
3444 noconfigdirs="$noconfigdirs target-libffi"
3446 x86_64-*-mingw*)
3447 noconfigdirs="$noconfigdirs target-libffi"
3449 mmix-*-*)
3450 noconfigdirs="$noconfigdirs target-libffi"
3452 powerpc-*-aix*)
3453 # copied from rs6000-*-* entry
3454 noconfigdirs="$noconfigdirs target-libffi"
3456 rs6000-*-aix*)
3457 noconfigdirs="$noconfigdirs target-libffi"
3459 ft32-*-*)
3460 noconfigdirs="$noconfigdirs target-libffi"
3462 *-*-lynxos*)
3463 noconfigdirs="$noconfigdirs target-libffi"
3465 esac
3467 # Disable the go frontend on systems where it is known to not work. Please keep
3468 # this in sync with contrib/config-list.mk.
3469 case "${target}" in
3470 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3471 unsupported_languages="$unsupported_languages go"
3473 esac
3475 # Disable libgo for some systems where it is known to not work.
3476 # For testing, you can easily override this with --enable-libgo.
3477 if test x$enable_libgo = x; then
3478 case "${target}" in
3479 *-*-darwin*)
3480 # PR 46986
3481 noconfigdirs="$noconfigdirs target-libgo"
3483 *-*-cygwin* | *-*-mingw*)
3484 noconfigdirs="$noconfigdirs target-libgo"
3486 *-*-aix*)
3487 noconfigdirs="$noconfigdirs target-libgo"
3489 esac
3492 # Default libgloss CPU subdirectory.
3493 libgloss_dir="$target_cpu"
3495 case "${target}" in
3496 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3497 libgloss_dir=wince
3499 aarch64*-*-* )
3500 libgloss_dir=aarch64
3502 arm*-*-*)
3503 libgloss_dir=arm
3505 cris-*-* | crisv32-*-*)
3506 libgloss_dir=cris
3508 hppa*-*-*)
3509 libgloss_dir=pa
3511 i[3456789]86-*-*)
3512 libgloss_dir=i386
3514 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3515 libgloss_dir=m68hc11
3517 m68*-*-* | fido-*-*)
3518 libgloss_dir=m68k
3520 mips*-*-*)
3521 libgloss_dir=mips
3523 powerpc*-*-*)
3524 libgloss_dir=rs6000
3526 sparc*-*-*)
3527 libgloss_dir=sparc
3529 esac
3531 # Disable newlib and libgloss for various target OSes.
3532 case "${target}" in
3533 alpha*-dec-osf*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3536 i[3456789]86-*-linux*)
3537 # This section makes it possible to build newlib natively on linux.
3538 # If we are using a cross compiler then don't configure newlib.
3539 if test x${is_cross_compiler} != xno ; then
3540 noconfigdirs="$noconfigdirs target-newlib"
3542 noconfigdirs="$noconfigdirs target-libgloss"
3543 # If we are not using a cross compiler, do configure newlib.
3544 # Note however, that newlib will only be configured in this situation
3545 # if the --with-newlib option has been given, because otherwise
3546 # 'target-newlib' will appear in skipdirs.
3548 i[3456789]86-*-rdos*)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 sparc-*-sunos4*)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 *-*-aix*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 *-*-beos*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 *-*-chorusos)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 *-*-dragonfly*)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 *-*-freebsd*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 *-*-lynxos*)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 *-*-mingw*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 *-*-netbsd*)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 *-*-netware*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 *-*-tpf*)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 *-*-uclinux*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 *-*-vxworks*)
3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 esac
3598 case "${target}" in
3599 *-*-chorusos)
3601 aarch64-*-darwin*)
3602 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3603 noconfigdirs="$noconfigdirs sim target-rda"
3605 arm-*-darwin*)
3606 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3607 noconfigdirs="$noconfigdirs sim target-rda"
3609 powerpc-*-darwin*)
3610 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3611 noconfigdirs="$noconfigdirs sim target-rda"
3613 i[3456789]86-*-darwin*)
3614 noconfigdirs="$noconfigdirs ld gprof"
3615 noconfigdirs="$noconfigdirs sim target-rda"
3617 x86_64-*-darwin[912]*)
3618 noconfigdirs="$noconfigdirs ld gas gprof"
3619 noconfigdirs="$noconfigdirs sim target-rda"
3621 *-*-darwin*)
3622 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3623 noconfigdirs="$noconfigdirs sim target-rda"
3625 *-*-dragonfly*)
3627 *-*-freebsd*)
3628 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3629 && test -f /usr/local/include/gmp.h; then
3630 with_gmp=/usr/local
3633 *-*-kaos*)
3634 # Remove unsupported stuff on all kaOS configurations.
3635 noconfigdirs="$noconfigdirs target-libgloss"
3637 *-*-netbsd*)
3639 *-*-netware*)
3641 *-*-phoenix*)
3642 noconfigdirs="$noconfigdirs target-libgloss"
3644 *-*-rtems*)
3645 noconfigdirs="$noconfigdirs target-libgloss"
3646 # this is not caught below because this stanza matches earlier
3647 case $target in
3648 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3649 esac
3651 # The tpf target doesn't support gdb yet.
3652 *-*-tpf*)
3653 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3655 *-*-uclinux*)
3656 noconfigdirs="$noconfigdirs target-rda"
3658 *-*-vxworks*)
3660 alpha*-dec-osf*)
3661 # ld works, but does not support shared libraries.
3662 # gas doesn't generate exception information.
3663 noconfigdirs="$noconfigdirs gas ld"
3665 alpha*-*-*vms*)
3666 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3668 alpha*-*-*)
3669 # newlib is not 64 bit ready
3670 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3673 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3675 arc*-*-*)
3676 noconfigdirs="$noconfigdirs sim"
3678 arm-*-pe*)
3679 noconfigdirs="$noconfigdirs target-libgloss"
3681 arm-*-riscix*)
3682 noconfigdirs="$noconfigdirs ld target-libgloss"
3684 avr-*-*)
3685 if test x${with_avrlibc} != xno; then
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 c4x-*-* | tic4x-*-*)
3690 noconfigdirs="$noconfigdirs target-libgloss"
3692 tic54x-*-*)
3693 noconfigdirs="$noconfigdirs target-libgloss gdb"
3695 d10v-*-*)
3696 noconfigdirs="$noconfigdirs target-libgloss"
3698 d30v-*-*)
3699 noconfigdirs="$noconfigdirs gdb"
3701 fr30-*-elf*)
3702 noconfigdirs="$noconfigdirs gdb"
3704 ft32-*-*)
3705 noconfigdirs="$noconfigdirs target-rda gprof"
3707 moxie-*-*)
3708 noconfigdirs="$noconfigdirs"
3710 h8300*-*-*)
3711 noconfigdirs="$noconfigdirs target-libgloss"
3713 h8500-*-*)
3714 noconfigdirs="$noconfigdirs target-libgloss"
3716 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3718 hppa*64*-*-hpux*)
3719 noconfigdirs="$noconfigdirs gdb"
3721 hppa*-*-hpux11*)
3722 noconfigdirs="$noconfigdirs gdb ld"
3724 hppa*64*-*-linux*)
3726 hppa*-*-linux*)
3728 hppa*-*-*elf* | \
3729 hppa*-*-lites* | \
3730 hppa*-*-openbsd* | \
3731 hppa*64*-*-*)
3733 hppa*-*-pro*)
3735 hppa*-*-*)
3736 noconfigdirs="$noconfigdirs ld"
3738 i960-*-*)
3739 noconfigdirs="$noconfigdirs gdb"
3741 ia64*-*-elf*)
3742 # No gdb support yet.
3743 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3745 ia64*-**-hpux*)
3746 # No ld support yet.
3747 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3749 ia64*-*-*vms*)
3750 # No ld support yet.
3751 noconfigdirs="$noconfigdirs libgui itcl ld"
3753 i[3456789]86-w64-mingw*)
3755 i[3456789]86-*-mingw*)
3756 target_configdirs="$target_configdirs target-winsup"
3758 *-*-cygwin*)
3759 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3760 noconfigdirs="$noconfigdirs target-libgloss"
3761 # always build newlib if winsup directory is present.
3762 if test -d "$srcdir/winsup/cygwin"; then
3763 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3764 elif test -d "$srcdir/newlib"; then
3765 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3768 i[3456789]86-*-pe)
3769 noconfigdirs="$noconfigdirs target-libgloss"
3771 i[3456789]86-*-sco3.2v5*)
3772 # The linker does not yet know about weak symbols in COFF,
3773 # and is not configured to handle mixed ELF and COFF.
3774 noconfigdirs="$noconfigdirs ld target-libgloss"
3776 i[3456789]86-*-sco*)
3777 noconfigdirs="$noconfigdirs gprof target-libgloss"
3779 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3780 noconfigdirs="$noconfigdirs target-libgloss"
3782 i[3456789]86-*-sysv4*)
3783 noconfigdirs="$noconfigdirs target-libgloss"
3785 i[3456789]86-*-beos*)
3786 noconfigdirs="$noconfigdirs gdb"
3788 i[3456789]86-*-rdos*)
3789 noconfigdirs="$noconfigdirs gdb"
3791 mmix-*-*)
3792 noconfigdirs="$noconfigdirs gdb"
3794 mt-*-*)
3795 noconfigdirs="$noconfigdirs sim"
3797 powerpc-*-aix*)
3798 # copied from rs6000-*-* entry
3799 noconfigdirs="$noconfigdirs gprof"
3801 powerpc*-*-winnt* | powerpc*-*-pe*)
3802 target_configdirs="$target_configdirs target-winsup"
3803 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3804 # always build newlib.
3805 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3807 # This is temporary until we can link against shared libraries
3808 powerpcle-*-solaris*)
3809 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3811 powerpc-*-beos*)
3812 noconfigdirs="$noconfigdirs gdb"
3814 rs6000-*-lynxos*)
3815 noconfigdirs="$noconfigdirs gprof"
3817 rs6000-*-aix*)
3818 noconfigdirs="$noconfigdirs gprof"
3820 rs6000-*-*)
3821 noconfigdirs="$noconfigdirs gprof"
3823 m68k-apollo-*)
3824 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3826 microblaze*)
3827 noconfigdirs="$noconfigdirs gprof"
3829 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3830 if test x$with_newlib = xyes; then
3831 noconfigdirs="$noconfigdirs gprof"
3834 mips*-*-irix5*)
3835 noconfigdirs="$noconfigdirs gprof target-libgloss"
3837 mips*-*-irix6*)
3838 noconfigdirs="$noconfigdirs gprof target-libgloss"
3840 mips*-*-bsd*)
3841 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3843 mips*-*-linux*)
3845 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3846 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3847 noconfigdirs="$noconfigdirs ld gas gprof"
3849 mips*-*-*)
3850 noconfigdirs="$noconfigdirs gprof"
3852 nvptx*-*-*)
3853 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3855 or1k*-*-*)
3856 noconfigdirs="$noconfigdirs gdb"
3858 sh-*-*)
3859 case "${target}" in
3860 sh*-*-elf)
3863 noconfigdirs="$noconfigdirs target-libgloss" ;;
3864 esac
3866 sparc-*-sunos4*)
3867 if test x${is_cross_compiler} = xno ; then
3868 use_gnu_ld=no
3871 tic6x-*-*)
3872 noconfigdirs="$noconfigdirs sim"
3874 tilepro*-*-* | tilegx*-*-*)
3875 noconfigdirs="$noconfigdirs sim"
3877 v810-*-*)
3878 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3880 vax-*-*)
3881 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3883 esac
3885 # If we aren't building newlib, then don't build libgloss, since libgloss
3886 # depends upon some newlib header files.
3887 case "${noconfigdirs}" in
3888 *target-libgloss*) ;;
3889 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3890 esac
3892 # Work in distributions that contain no compiler tools, like Autoconf.
3893 host_makefile_frag=/dev/null
3894 if test -d ${srcdir}/config ; then
3895 case "${host}" in
3896 i[3456789]86-*-msdosdjgpp*)
3897 host_makefile_frag="config/mh-djgpp"
3899 *-cygwin*)
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3902 $as_echo_n "checking to see if cat works as expected... " >&6; }
3903 echo a >cygwin-cat-check
3904 if test `cat cygwin-cat-check` = a ; then
3905 rm cygwin-cat-check
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3907 $as_echo "yes" >&6; }
3908 else
3909 rm cygwin-cat-check
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3912 as_fn_error "The cat command does not ignore carriage return characters.
3913 Please either mount the build directory in binary mode or run the following
3914 commands before running any configure script:
3915 set -o igncr
3916 export SHELLOPTS
3917 " "$LINENO" 5
3920 host_makefile_frag="config/mh-cygwin"
3922 *-mingw*)
3923 host_makefile_frag="config/mh-mingw"
3925 alpha*-linux*)
3926 host_makefile_frag="config/mh-alpha-linux"
3928 hppa*-hp-hpux10*)
3929 host_makefile_frag="config/mh-pa-hpux10"
3931 hppa*-hp-hpux*)
3932 host_makefile_frag="config/mh-pa"
3934 hppa*-*)
3935 host_makefile_frag="config/mh-pa"
3937 *-*-darwin*)
3938 host_makefile_frag="config/mh-darwin"
3940 powerpc-*-aix*)
3941 host_makefile_frag="config/mh-ppc-aix"
3943 rs6000-*-aix*)
3944 host_makefile_frag="config/mh-ppc-aix"
3946 esac
3949 if test "${build}" != "${host}" ; then
3950 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3951 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3952 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3953 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3954 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3955 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3956 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3957 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3958 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3959 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3960 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3961 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3962 else
3963 AR_FOR_BUILD="\$(AR)"
3964 AS_FOR_BUILD="\$(AS)"
3965 CC_FOR_BUILD="\$(CC)"
3966 CXX_FOR_BUILD="\$(CXX)"
3967 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3968 GOC_FOR_BUILD="\$(GOC)"
3969 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3970 LD_FOR_BUILD="\$(LD)"
3971 NM_FOR_BUILD="\$(NM)"
3972 RANLIB_FOR_BUILD="\$(RANLIB)"
3973 WINDRES_FOR_BUILD="\$(WINDRES)"
3974 WINDMC_FOR_BUILD="\$(WINDMC)"
3977 ac_ext=c
3978 ac_cpp='$CPP $CPPFLAGS'
3979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982 if test -n "$ac_tool_prefix"; then
3983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3984 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if test "${ac_cv_prog_CC+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if test -n "$CC"; then
3991 ac_cv_prog_CC="$CC" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4004 done
4005 done
4006 IFS=$as_save_IFS
4010 CC=$ac_cv_prog_CC
4011 if test -n "$CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4013 $as_echo "$CC" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4021 if test -z "$ac_cv_prog_CC"; then
4022 ac_ct_CC=$CC
4023 # Extract the first word of "gcc", so it can be a program name with args.
4024 set dummy gcc; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 if test -n "$ac_ct_CC"; then
4031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4040 ac_cv_prog_ac_ct_CC="gcc"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4044 done
4045 done
4046 IFS=$as_save_IFS
4050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4051 if test -n "$ac_ct_CC"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4053 $as_echo "$ac_ct_CC" >&6; }
4054 else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4059 if test "x$ac_ct_CC" = x; then
4060 CC=""
4061 else
4062 case $cross_compiling:$ac_tool_warned in
4063 yes:)
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4066 ac_tool_warned=yes ;;
4067 esac
4068 CC=$ac_ct_CC
4070 else
4071 CC="$ac_cv_prog_CC"
4074 if test -z "$CC"; then
4075 if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4077 set dummy ${ac_tool_prefix}cc; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if test "${ac_cv_prog_CC+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 if test -n "$CC"; then
4084 ac_cv_prog_CC="$CC" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_prog_CC="${ac_tool_prefix}cc"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4097 done
4098 done
4099 IFS=$as_save_IFS
4103 CC=$ac_cv_prog_CC
4104 if test -n "$CC"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106 $as_echo "$CC" >&6; }
4107 else
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4115 if test -z "$CC"; then
4116 # Extract the first word of "cc", so it can be a program name with args.
4117 set dummy cc; ac_word=$2
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 $as_echo_n "checking for $ac_word... " >&6; }
4120 if test "${ac_cv_prog_CC+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 if test -n "$CC"; then
4124 ac_cv_prog_CC="$CC" # Let the user override the test.
4125 else
4126 ac_prog_rejected=no
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4135 ac_prog_rejected=yes
4136 continue
4138 ac_cv_prog_CC="cc"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 break 2
4142 done
4143 done
4144 IFS=$as_save_IFS
4146 if test $ac_prog_rejected = yes; then
4147 # We found a bogon in the path, so make sure we never use it.
4148 set dummy $ac_cv_prog_CC
4149 shift
4150 if test $# != 0; then
4151 # We chose a different compiler from the bogus one.
4152 # However, it has the same basename, so the bogon will be chosen
4153 # first if we set CC to just the basename; use the full file name.
4154 shift
4155 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4160 CC=$ac_cv_prog_CC
4161 if test -n "$CC"; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4163 $as_echo "$CC" >&6; }
4164 else
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4171 if test -z "$CC"; then
4172 if test -n "$ac_tool_prefix"; then
4173 for ac_prog in cl.exe
4175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if test "${ac_cv_prog_CC+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 if test -n "$CC"; then
4183 ac_cv_prog_CC="$CC" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 break 2
4196 done
4197 done
4198 IFS=$as_save_IFS
4202 CC=$ac_cv_prog_CC
4203 if test -n "$CC"; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4205 $as_echo "$CC" >&6; }
4206 else
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 $as_echo "no" >&6; }
4212 test -n "$CC" && break
4213 done
4215 if test -z "$CC"; then
4216 ac_ct_CC=$CC
4217 for ac_prog in cl.exe
4219 # Extract the first word of "$ac_prog", so it can be a program name with args.
4220 set dummy $ac_prog; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 if test -n "$ac_ct_CC"; then
4227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_prog_ac_ct_CC="$ac_prog"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 break 2
4240 done
4241 done
4242 IFS=$as_save_IFS
4246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4247 if test -n "$ac_ct_CC"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4249 $as_echo "$ac_ct_CC" >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4256 test -n "$ac_ct_CC" && break
4257 done
4259 if test "x$ac_ct_CC" = x; then
4260 CC=""
4261 else
4262 case $cross_compiling:$ac_tool_warned in
4263 yes:)
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4266 ac_tool_warned=yes ;;
4267 esac
4268 CC=$ac_ct_CC
4275 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4277 as_fn_error "no acceptable C compiler found in \$PATH
4278 See \`config.log' for more details." "$LINENO" 5; }
4280 # Provide some information about the compiler.
4281 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4282 set X $ac_compile
4283 ac_compiler=$2
4284 for ac_option in --version -v -V -qversion; do
4285 { { ac_try="$ac_compiler $ac_option >&5"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4293 ac_status=$?
4294 if test -s conftest.err; then
4295 sed '10a\
4296 ... rest of stderr output deleted ...
4297 10q' conftest.err >conftest.er1
4298 cat conftest.er1 >&5
4299 rm -f conftest.er1 conftest.err
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; }
4303 done
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4309 main ()
4313 return 0;
4315 _ACEOF
4316 ac_clean_files_save=$ac_clean_files
4317 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4318 # Try to create an executable without -o first, disregard a.out.
4319 # It will help us diagnose broken compilers, and finding out an intuition
4320 # of exeext.
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4322 $as_echo_n "checking for C compiler default output file name... " >&6; }
4323 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4325 # The possible output files:
4326 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4328 ac_rmfiles=
4329 for ac_file in $ac_files
4331 case $ac_file in
4332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4333 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4334 esac
4335 done
4336 rm -f $ac_rmfiles
4338 if { { ac_try="$ac_link_default"
4339 case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342 esac
4343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344 $as_echo "$ac_try_echo"; } >&5
4345 (eval "$ac_link_default") 2>&5
4346 ac_status=$?
4347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348 test $ac_status = 0; }; then :
4349 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4350 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4351 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4352 # so that the user can short-circuit this test for compilers unknown to
4353 # Autoconf.
4354 for ac_file in $ac_files ''
4356 test -f "$ac_file" || continue
4357 case $ac_file in
4358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4360 [ab].out )
4361 # We found the default executable, but exeext='' is most
4362 # certainly right.
4363 break;;
4364 *.* )
4365 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4366 then :; else
4367 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4369 # We set ac_cv_exeext here because the later test for it is not
4370 # safe: cross compilers may not add the suffix if given an `-o'
4371 # argument, so we may need to know it at that point already.
4372 # Even if this section looks crufty: it has the advantage of
4373 # actually working.
4374 break;;
4376 break;;
4377 esac
4378 done
4379 test "$ac_cv_exeext" = no && ac_cv_exeext=
4381 else
4382 ac_file=''
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4385 $as_echo "$ac_file" >&6; }
4386 if test -z "$ac_file"; then :
4387 $as_echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392 { as_fn_set_status 77
4393 as_fn_error "C compiler cannot create executables
4394 See \`config.log' for more details." "$LINENO" 5; }; }
4396 ac_exeext=$ac_cv_exeext
4398 # Check that the compiler produces executables we can run. If not, either
4399 # the compiler is broken, or we cross compile.
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4401 $as_echo_n "checking whether the C compiler works... " >&6; }
4402 # If not cross compiling, check that we can run a simple program.
4403 if test "$cross_compiling" != yes; then
4404 if { ac_try='./$ac_file'
4405 { { case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408 esac
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 $as_echo "$ac_try_echo"; } >&5
4411 (eval "$ac_try") 2>&5
4412 ac_status=$?
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }; }; then
4415 cross_compiling=no
4416 else
4417 if test "$cross_compiling" = maybe; then
4418 cross_compiling=yes
4419 else
4420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4422 as_fn_error "cannot run C compiled programs.
4423 If you meant to cross compile, use \`--host'.
4424 See \`config.log' for more details." "$LINENO" 5; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4429 $as_echo "yes" >&6; }
4431 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4432 ac_clean_files=$ac_clean_files_save
4433 # Check that the compiler produces executables we can run. If not, either
4434 # the compiler is broken, or we cross compile.
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4436 $as_echo_n "checking whether we are cross compiling... " >&6; }
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4438 $as_echo "$cross_compiling" >&6; }
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4441 $as_echo_n "checking for suffix of executables... " >&6; }
4442 if { { ac_try="$ac_link"
4443 case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446 esac
4447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448 $as_echo "$ac_try_echo"; } >&5
4449 (eval "$ac_link") 2>&5
4450 ac_status=$?
4451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452 test $ac_status = 0; }; then :
4453 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4454 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4455 # work properly (i.e., refer to `conftest.exe'), while it won't with
4456 # `rm'.
4457 for ac_file in conftest.exe conftest conftest.*; do
4458 test -f "$ac_file" || continue
4459 case $ac_file in
4460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4462 break;;
4463 * ) break;;
4464 esac
4465 done
4466 else
4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error "cannot compute suffix of executables: cannot compile and link
4470 See \`config.log' for more details." "$LINENO" 5; }
4472 rm -f conftest$ac_cv_exeext
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4474 $as_echo "$ac_cv_exeext" >&6; }
4476 rm -f conftest.$ac_ext
4477 EXEEXT=$ac_cv_exeext
4478 ac_exeext=$EXEEXT
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4480 $as_echo_n "checking for suffix of object files... " >&6; }
4481 if test "${ac_cv_objext+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4488 main ()
4492 return 0;
4494 _ACEOF
4495 rm -f conftest.o conftest.obj
4496 if { { ac_try="$ac_compile"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_compile") 2>&5
4504 ac_status=$?
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; then :
4507 for ac_file in conftest.o conftest.obj conftest.*; do
4508 test -f "$ac_file" || continue;
4509 case $ac_file in
4510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4512 break;;
4513 esac
4514 done
4515 else
4516 $as_echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4521 as_fn_error "cannot compute suffix of object files: cannot compile
4522 See \`config.log' for more details." "$LINENO" 5; }
4524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4527 $as_echo "$ac_cv_objext" >&6; }
4528 OBJEXT=$ac_cv_objext
4529 ac_objext=$OBJEXT
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4531 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4532 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4539 main ()
4541 #ifndef __GNUC__
4542 choke me
4543 #endif
4546 return 0;
4548 _ACEOF
4549 if ac_fn_c_try_compile "$LINENO"; then :
4550 ac_compiler_gnu=yes
4551 else
4552 ac_compiler_gnu=no
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4559 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4560 if test $ac_compiler_gnu = yes; then
4561 GCC=yes
4562 else
4563 GCC=
4565 ac_test_CFLAGS=${CFLAGS+set}
4566 ac_save_CFLAGS=$CFLAGS
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4568 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4569 if test "${ac_cv_prog_cc_g+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 ac_save_c_werror_flag=$ac_c_werror_flag
4573 ac_c_werror_flag=yes
4574 ac_cv_prog_cc_g=no
4575 CFLAGS="-g"
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4580 main ()
4584 return 0;
4586 _ACEOF
4587 if ac_fn_c_try_compile "$LINENO"; then :
4588 ac_cv_prog_cc_g=yes
4589 else
4590 CFLAGS=""
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 :
4604 else
4605 ac_c_werror_flag=$ac_save_c_werror_flag
4606 CFLAGS="-g"
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4611 main ()
4615 return 0;
4617 _ACEOF
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619 ac_cv_prog_cc_g=yes
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 ac_c_werror_flag=$ac_save_c_werror_flag
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4629 $as_echo "$ac_cv_prog_cc_g" >&6; }
4630 if test "$ac_test_CFLAGS" = set; then
4631 CFLAGS=$ac_save_CFLAGS
4632 elif test $ac_cv_prog_cc_g = yes; then
4633 if test "$GCC" = yes; then
4634 CFLAGS="-g -O2"
4635 else
4636 CFLAGS="-g"
4638 else
4639 if test "$GCC" = yes; then
4640 CFLAGS="-O2"
4641 else
4642 CFLAGS=
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4646 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4647 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 ac_cv_prog_cc_c89=no
4651 ac_save_CC=$CC
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654 #include <stdarg.h>
4655 #include <stdio.h>
4656 #include <sys/types.h>
4657 #include <sys/stat.h>
4658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4659 struct buf { int x; };
4660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4661 static char *e (p, i)
4662 char **p;
4663 int i;
4665 return p[i];
4667 static char *f (char * (*g) (char **, int), char **p, ...)
4669 char *s;
4670 va_list v;
4671 va_start (v,p);
4672 s = g (p, va_arg (v,int));
4673 va_end (v);
4674 return s;
4677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4678 function prototypes and stuff, but not '\xHH' hex character constants.
4679 These don't provoke an error unfortunately, instead are silently treated
4680 as 'x'. The following induces an error, until -std is added to get
4681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4682 array size at least. It's necessary to write '\x00'==0 to get something
4683 that's true only with -std. */
4684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4687 inside strings and character constants. */
4688 #define FOO(x) 'x'
4689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4691 int test (int i, double x);
4692 struct s1 {int (*f) (int a);};
4693 struct s2 {int (*f) (double a);};
4694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4695 int argc;
4696 char **argv;
4698 main ()
4700 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4702 return 0;
4704 _ACEOF
4705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4706 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4708 CC="$ac_save_CC $ac_arg"
4709 if ac_fn_c_try_compile "$LINENO"; then :
4710 ac_cv_prog_cc_c89=$ac_arg
4712 rm -f core conftest.err conftest.$ac_objext
4713 test "x$ac_cv_prog_cc_c89" != "xno" && break
4714 done
4715 rm -f conftest.$ac_ext
4716 CC=$ac_save_CC
4719 # AC_CACHE_VAL
4720 case "x$ac_cv_prog_cc_c89" in
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4723 $as_echo "none needed" >&6; } ;;
4724 xno)
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4726 $as_echo "unsupported" >&6; } ;;
4728 CC="$CC $ac_cv_prog_cc_c89"
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4730 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4731 esac
4732 if test "x$ac_cv_prog_cc_c89" != xno; then :
4736 ac_ext=c
4737 ac_cpp='$CPP $CPPFLAGS'
4738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742 ac_ext=cpp
4743 ac_cpp='$CXXCPP $CPPFLAGS'
4744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4747 if test -z "$CXX"; then
4748 if test -n "$CCC"; then
4749 CXX=$CCC
4750 else
4751 if test -n "$ac_tool_prefix"; then
4752 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if test "${ac_cv_prog_CXX+set}" = set; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -n "$CXX"; then
4762 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4777 IFS=$as_save_IFS
4781 CXX=$ac_cv_prog_CXX
4782 if test -n "$CXX"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4784 $as_echo "$CXX" >&6; }
4785 else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 $as_echo "no" >&6; }
4791 test -n "$CXX" && break
4792 done
4794 if test -z "$CXX"; then
4795 ac_ct_CXX=$CXX
4796 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4798 # Extract the first word of "$ac_prog", so it can be a program name with args.
4799 set dummy $ac_prog; ac_word=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 if test -n "$ac_ct_CXX"; then
4806 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815 ac_cv_prog_ac_ct_CXX="$ac_prog"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4821 IFS=$as_save_IFS
4825 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4826 if test -n "$ac_ct_CXX"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4828 $as_echo "$ac_ct_CXX" >&6; }
4829 else
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4835 test -n "$ac_ct_CXX" && break
4836 done
4838 if test "x$ac_ct_CXX" = x; then
4839 CXX="g++"
4840 else
4841 case $cross_compiling:$ac_tool_warned in
4842 yes:)
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4845 ac_tool_warned=yes ;;
4846 esac
4847 CXX=$ac_ct_CXX
4853 # Provide some information about the compiler.
4854 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4855 set X $ac_compile
4856 ac_compiler=$2
4857 for ac_option in --version -v -V -qversion; do
4858 { { ac_try="$ac_compiler $ac_option >&5"
4859 case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862 esac
4863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4864 $as_echo "$ac_try_echo"; } >&5
4865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4866 ac_status=$?
4867 if test -s conftest.err; then
4868 sed '10a\
4869 ... rest of stderr output deleted ...
4870 10q' conftest.err >conftest.er1
4871 cat conftest.er1 >&5
4872 rm -f conftest.er1 conftest.err
4874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875 test $ac_status = 0; }
4876 done
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4879 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4880 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4887 main ()
4889 #ifndef __GNUC__
4890 choke me
4891 #endif
4894 return 0;
4896 _ACEOF
4897 if ac_fn_cxx_try_compile "$LINENO"; then :
4898 ac_compiler_gnu=yes
4899 else
4900 ac_compiler_gnu=no
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4907 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4908 if test $ac_compiler_gnu = yes; then
4909 GXX=yes
4910 else
4911 GXX=
4913 ac_test_CXXFLAGS=${CXXFLAGS+set}
4914 ac_save_CXXFLAGS=$CXXFLAGS
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4916 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4917 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4921 ac_cxx_werror_flag=yes
4922 ac_cv_prog_cxx_g=no
4923 CXXFLAGS="-g"
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4928 main ()
4932 return 0;
4934 _ACEOF
4935 if ac_fn_cxx_try_compile "$LINENO"; then :
4936 ac_cv_prog_cxx_g=yes
4937 else
4938 CXXFLAGS=""
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 :
4952 else
4953 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4954 CXXFLAGS="-g"
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4959 main ()
4963 return 0;
4965 _ACEOF
4966 if ac_fn_cxx_try_compile "$LINENO"; then :
4967 ac_cv_prog_cxx_g=yes
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4977 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4978 if test "$ac_test_CXXFLAGS" = set; then
4979 CXXFLAGS=$ac_save_CXXFLAGS
4980 elif test $ac_cv_prog_cxx_g = yes; then
4981 if test "$GXX" = yes; then
4982 CXXFLAGS="-g -O2"
4983 else
4984 CXXFLAGS="-g"
4986 else
4987 if test "$GXX" = yes; then
4988 CXXFLAGS="-O2"
4989 else
4990 CXXFLAGS=
4993 ac_ext=c
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000 # We must set the default linker to the linker used by gcc for the correct
5001 # operation of libtool. If LD is not defined and we are using gcc, try to
5002 # set the LD default to the ld used by gcc.
5003 if test -z "$LD"; then
5004 if test "$GCC" = yes; then
5005 case $build in
5006 *-*-mingw*)
5007 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5009 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5010 esac
5011 case $gcc_prog_ld in
5012 # Accept absolute paths.
5013 [\\/]* | [A-Za-z]:[\\/]*)
5014 LD="$gcc_prog_ld" ;;
5015 esac
5019 # Check whether -static-libstdc++ -static-libgcc is supported.
5020 have_static_libs=no
5021 if test "$GCC" = yes; then
5022 saved_LDFLAGS="$LDFLAGS"
5024 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5026 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5027 ac_ext=cpp
5028 ac_cpp='$CXXCPP $CPPFLAGS'
5029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5037 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5038 #error -static-libstdc++ not implemented
5039 #endif
5040 int main() {}
5041 _ACEOF
5042 if ac_fn_cxx_try_link "$LINENO"; then :
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5044 $as_echo "yes" >&6; }; have_static_libs=yes
5045 else
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5049 rm -f core conftest.err conftest.$ac_objext \
5050 conftest$ac_exeext conftest.$ac_ext
5051 ac_ext=c
5052 ac_cpp='$CPP $CPPFLAGS'
5053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5058 LDFLAGS="$saved_LDFLAGS"
5064 if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5066 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -n "$GNATBIND"; then
5073 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5086 done
5087 done
5088 IFS=$as_save_IFS
5092 GNATBIND=$ac_cv_prog_GNATBIND
5093 if test -n "$GNATBIND"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5095 $as_echo "$GNATBIND" >&6; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5103 if test -z "$ac_cv_prog_GNATBIND"; then
5104 ac_ct_GNATBIND=$GNATBIND
5105 # Extract the first word of "gnatbind", so it can be a program name with args.
5106 set dummy gnatbind; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$ac_ct_GNATBIND"; then
5113 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5128 IFS=$as_save_IFS
5132 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5133 if test -n "$ac_ct_GNATBIND"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5135 $as_echo "$ac_ct_GNATBIND" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5141 if test "x$ac_ct_GNATBIND" = x; then
5142 GNATBIND="no"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145 yes:)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148 ac_tool_warned=yes ;;
5149 esac
5150 GNATBIND=$ac_ct_GNATBIND
5152 else
5153 GNATBIND="$ac_cv_prog_GNATBIND"
5156 if test -n "$ac_tool_prefix"; then
5157 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5158 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 if test -n "$GNATMAKE"; then
5165 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5178 done
5179 done
5180 IFS=$as_save_IFS
5184 GNATMAKE=$ac_cv_prog_GNATMAKE
5185 if test -n "$GNATMAKE"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5187 $as_echo "$GNATMAKE" >&6; }
5188 else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5195 if test -z "$ac_cv_prog_GNATMAKE"; then
5196 ac_ct_GNATMAKE=$GNATMAKE
5197 # Extract the first word of "gnatmake", so it can be a program name with args.
5198 set dummy gnatmake; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 if test -n "$ac_ct_GNATMAKE"; then
5205 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5214 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5218 done
5219 done
5220 IFS=$as_save_IFS
5224 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5225 if test -n "$ac_ct_GNATMAKE"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5227 $as_echo "$ac_ct_GNATMAKE" >&6; }
5228 else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5233 if test "x$ac_ct_GNATMAKE" = x; then
5234 GNATMAKE="no"
5235 else
5236 case $cross_compiling:$ac_tool_warned in
5237 yes:)
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5240 ac_tool_warned=yes ;;
5241 esac
5242 GNATMAKE=$ac_ct_GNATMAKE
5244 else
5245 GNATMAKE="$ac_cv_prog_GNATMAKE"
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5249 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5250 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 cat >conftest.adb <<EOF
5254 procedure conftest is begin null; end conftest;
5256 acx_cv_cc_gcc_supports_ada=no
5257 # There is a bug in old released versions of GCC which causes the
5258 # driver to exit successfully when the appropriate language module
5259 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5260 # Therefore we must check for the error message as well as an
5261 # unsuccessful exit.
5262 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5263 # given a .adb file, but produce no object file. So we must check
5264 # if an object file was really produced to guard against this.
5265 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5266 if test x"$errors" = x && test -f conftest.$ac_objext; then
5267 acx_cv_cc_gcc_supports_ada=yes
5269 rm -f conftest.*
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5272 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5274 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5275 have_gnat=yes
5276 else
5277 have_gnat=no
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5281 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5282 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 echo abfoo >t1
5286 echo cdfoo >t2
5287 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5288 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5289 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5291 else
5292 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5295 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5296 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5298 else
5299 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5302 rm t1 t2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5306 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5307 do_compare="$gcc_cv_prog_cmp_skip"
5311 # Check whether --enable-bootstrap was given.
5312 if test "${enable_bootstrap+set}" = set; then :
5313 enableval=$enable_bootstrap;
5314 else
5315 enable_bootstrap=default
5319 # Issue errors and warnings for invalid/strange bootstrap combinations.
5320 if test -r $srcdir/gcc/configure; then
5321 have_compiler=yes
5322 else
5323 have_compiler=no
5326 case "$have_compiler:$host:$target:$enable_bootstrap" in
5327 *:*:*:no) ;;
5329 # Default behavior. Enable bootstrap if we have a compiler
5330 # and we are in a native configuration.
5331 yes:$build:$build:default)
5332 enable_bootstrap=yes ;;
5334 *:*:*:default)
5335 enable_bootstrap=no ;;
5337 # We have a compiler and we are in a native configuration, bootstrap is ok
5338 yes:$build:$build:yes)
5341 # Other configurations, but we have a compiler. Assume the user knows
5342 # what he's doing.
5343 yes:*:*:yes)
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5345 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5348 # No compiler: if they passed --enable-bootstrap explicitly, fail
5349 no:*:*:yes)
5350 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5352 # Fail if wrong command line
5354 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5356 esac
5358 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5359 # C++98 compiler can still start the bootstrap.
5360 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5361 CXX="$CXX -std=gnu++98"
5364 # Used for setting $lt_cv_objdir
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5366 $as_echo_n "checking for objdir... " >&6; }
5367 if test "${lt_cv_objdir+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 rm -f .libs 2>/dev/null
5371 mkdir .libs 2>/dev/null
5372 if test -d .libs; then
5373 lt_cv_objdir=.libs
5374 else
5375 # MS-DOS does not allow filenames that begin with a dot.
5376 lt_cv_objdir=_libs
5378 rmdir .libs 2>/dev/null
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5381 $as_echo "$lt_cv_objdir" >&6; }
5382 objdir=$lt_cv_objdir
5388 cat >>confdefs.h <<_ACEOF
5389 #define LT_OBJDIR "$lt_cv_objdir/"
5390 _ACEOF
5394 # Check for GMP, MPFR and MPC
5395 gmplibs="-lmpc -lmpfr -lgmp"
5396 gmpinc=
5397 have_gmp=no
5399 # Specify a location for mpc
5400 # check for this first so it ends up on the link line before mpfr.
5402 # Check whether --with-mpc was given.
5403 if test "${with_mpc+set}" = set; then :
5404 withval=$with_mpc;
5408 # Check whether --with-mpc-include was given.
5409 if test "${with_mpc_include+set}" = set; then :
5410 withval=$with_mpc_include;
5414 # Check whether --with-mpc-lib was given.
5415 if test "${with_mpc_lib+set}" = set; then :
5416 withval=$with_mpc_lib;
5420 if test "x$with_mpc" != x; then
5421 gmplibs="-L$with_mpc/lib $gmplibs"
5422 gmpinc="-I$with_mpc/include $gmpinc"
5424 if test "x$with_mpc_include" != x; then
5425 gmpinc="-I$with_mpc_include $gmpinc"
5427 if test "x$with_mpc_lib" != x; then
5428 gmplibs="-L$with_mpc_lib $gmplibs"
5430 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5431 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5432 gmpinc='-I$$s/mpc/src '"$gmpinc"
5433 # Do not test the mpc version. Assume that it is sufficient, since
5434 # it is in the source tree, and the library has not been built yet
5435 # but it would be included on the link line in the version check below
5436 # hence making the test fail.
5437 have_gmp=yes
5440 # Specify a location for mpfr
5441 # check for this first so it ends up on the link line before gmp.
5443 # Check whether --with-mpfr-dir was given.
5444 if test "${with_mpfr_dir+set}" = set; then :
5445 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5446 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5451 # Check whether --with-mpfr was given.
5452 if test "${with_mpfr+set}" = set; then :
5453 withval=$with_mpfr;
5457 # Check whether --with-mpfr-include was given.
5458 if test "${with_mpfr_include+set}" = set; then :
5459 withval=$with_mpfr_include;
5463 # Check whether --with-mpfr-lib was given.
5464 if test "${with_mpfr_lib+set}" = set; then :
5465 withval=$with_mpfr_lib;
5469 if test "x$with_mpfr" != x; then
5470 gmplibs="-L$with_mpfr/lib $gmplibs"
5471 gmpinc="-I$with_mpfr/include $gmpinc"
5473 if test "x$with_mpfr_include" != x; then
5474 gmpinc="-I$with_mpfr_include $gmpinc"
5476 if test "x$with_mpfr_lib" != x; then
5477 gmplibs="-L$with_mpfr_lib $gmplibs"
5479 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5480 # MPFR v3.1.0 moved the sources into a src sub-directory.
5481 if ! test -d ${srcdir}/mpfr/src; then
5482 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5484 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5485 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5486 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5487 # Do not test the mpfr version. Assume that it is sufficient, since
5488 # it is in the source tree, and the library has not been built yet
5489 # but it would be included on the link line in the version check below
5490 # hence making the test fail.
5491 have_gmp=yes
5494 # Specify a location for gmp
5496 # Check whether --with-gmp-dir was given.
5497 if test "${with_gmp_dir+set}" = set; then :
5498 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5499 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5504 # Check whether --with-gmp was given.
5505 if test "${with_gmp+set}" = set; then :
5506 withval=$with_gmp;
5510 # Check whether --with-gmp-include was given.
5511 if test "${with_gmp_include+set}" = set; then :
5512 withval=$with_gmp_include;
5516 # Check whether --with-gmp-lib was given.
5517 if test "${with_gmp_lib+set}" = set; then :
5518 withval=$with_gmp_lib;
5523 if test "x$with_gmp" != x; then
5524 gmplibs="-L$with_gmp/lib $gmplibs"
5525 gmpinc="-I$with_gmp/include $gmpinc"
5527 if test "x$with_gmp_include" != x; then
5528 gmpinc="-I$with_gmp_include $gmpinc"
5530 if test "x$with_gmp_lib" != x; then
5531 gmplibs="-L$with_gmp_lib $gmplibs"
5533 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5534 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5535 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5536 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5537 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5538 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5539 # Do not test the gmp version. Assume that it is sufficient, since
5540 # it is in the source tree, and the library has not been built yet
5541 # but it would be included on the link line in the version check below
5542 # hence making the test fail.
5543 have_gmp=yes
5546 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5547 have_gmp=yes
5548 saved_CFLAGS="$CFLAGS"
5549 CFLAGS="$CFLAGS $gmpinc"
5550 # Check for the recommended and required versions of GMP.
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5552 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include "gmp.h"
5558 main ()
5561 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5562 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5563 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5564 choke me
5565 #endif
5568 return 0;
5570 _ACEOF
5571 if ac_fn_c_try_compile "$LINENO"; then :
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #include <gmp.h>
5576 main ()
5579 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5580 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5581 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5582 choke me
5583 #endif
5586 return 0;
5588 _ACEOF
5589 if ac_fn_c_try_compile "$LINENO"; then :
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5591 $as_echo "yes" >&6; }
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5594 $as_echo "buggy but acceptable" >&6; }
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }; have_gmp=no
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 # If we have GMP, check the MPFR version.
5604 if test x"$have_gmp" = xyes; then
5605 # Check for the recommended and required versions of MPFR.
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5607 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #include <gmp.h>
5611 #include <mpfr.h>
5613 main ()
5616 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5617 choke me
5618 #endif
5621 return 0;
5623 _ACEOF
5624 if ac_fn_c_try_compile "$LINENO"; then :
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <gmp.h>
5628 #include <mpfr.h>
5630 main ()
5633 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5634 choke me
5635 #endif
5638 return 0;
5640 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5643 $as_echo "yes" >&6; }
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5646 $as_echo "buggy but acceptable" >&6; }
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }; have_gmp=no
5653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 # Check for the MPC header version.
5657 if test x"$have_gmp" = xyes ; then
5658 # Check for the recommended and required versions of MPC.
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5660 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 #include <mpc.h>
5665 main ()
5668 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5669 choke me
5670 #endif
5673 return 0;
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 #include <mpc.h>
5681 main ()
5684 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5685 choke me
5686 #endif
5689 return 0;
5691 _ACEOF
5692 if ac_fn_c_try_compile "$LINENO"; then :
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5694 $as_echo "yes" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5697 $as_echo "buggy but acceptable" >&6; }
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }; have_gmp=no
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 # Now check the MPFR library.
5708 if test x"$have_gmp" = xyes; then
5709 saved_LIBS="$LIBS"
5710 LIBS="$LIBS $gmplibs"
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5712 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #include <mpc.h>
5717 main ()
5720 mpfr_t n;
5721 mpfr_t x;
5722 mpc_t c;
5723 int t;
5724 mpfr_init (n);
5725 mpfr_init (x);
5726 mpfr_atan2 (n, n, x, GMP_RNDN);
5727 mpfr_erfc (n, x, GMP_RNDN);
5728 mpfr_subnormalize (x, t, GMP_RNDN);
5729 mpfr_clear(n);
5730 mpfr_clear(x);
5731 mpc_init2 (c, 53);
5732 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5733 mpc_cosh (c, c, MPC_RNDNN);
5734 mpc_pow (c, c, c, MPC_RNDNN);
5735 mpc_acosh (c, c, MPC_RNDNN);
5736 mpc_clear (c);
5739 return 0;
5741 _ACEOF
5742 if ac_fn_c_try_link "$LINENO"; then :
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5744 $as_echo "yes" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }; have_gmp=no
5749 rm -f core conftest.err conftest.$ac_objext \
5750 conftest$ac_exeext conftest.$ac_ext
5751 LIBS="$saved_LIBS"
5754 CFLAGS="$saved_CFLAGS"
5756 # The library versions listed in the error message below should match
5757 # the HARD-minimums enforced above.
5758 if test x$have_gmp != xyes; then
5759 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5760 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5761 their locations. Source code for these libraries can be found at
5762 their respective hosting sites as well as at
5763 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5764 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5765 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5766 make sure that you have installed both the libraries and the header
5767 files. They may be located in separate packages." "$LINENO" 5
5771 # Flags needed for both GMP, MPFR and/or MPC.
5779 # Libraries to use for stage1 or when not bootstrapping.
5781 # Check whether --with-stage1-libs was given.
5782 if test "${with_stage1_libs+set}" = set; then :
5783 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5784 stage1_libs=
5785 else
5786 stage1_libs=$withval
5788 else
5789 stage1_libs=
5794 # Linker flags to use for stage1 or when not bootstrapping.
5796 # Check whether --with-stage1-ldflags was given.
5797 if test "${with_stage1_ldflags+set}" = set; then :
5798 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5799 stage1_ldflags=
5800 else
5801 stage1_ldflags=$withval
5803 else
5804 stage1_ldflags=
5805 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5806 # if supported. But if the user explicitly specified the libraries to use,
5807 # trust that they are doing what they want.
5808 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5809 stage1_ldflags="-static-libstdc++ -static-libgcc"
5815 # Libraries to use for stage2 and later builds.
5817 # Check whether --with-boot-libs was given.
5818 if test "${with_boot_libs+set}" = set; then :
5819 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5820 poststage1_libs=
5821 else
5822 poststage1_libs=$withval
5824 else
5825 poststage1_libs=
5830 # Linker flags to use for stage2 and later builds.
5832 # Check whether --with-boot-ldflags was given.
5833 if test "${with_boot_ldflags+set}" = set; then :
5834 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5835 poststage1_ldflags=
5836 else
5837 poststage1_ldflags=$withval
5839 else
5840 poststage1_ldflags=
5841 # In stages 2 and 3, default to linking libstdc++ and libgcc
5842 # statically. But if the user explicitly specified the libraries to
5843 # use, trust that they are doing what they want.
5844 if test "$poststage1_libs" = ""; then
5845 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5851 # GCC GRAPHITE dependency isl.
5852 # Basic setup is inlined here, actual checks are in config/isl.m4
5855 # Check whether --with-isl was given.
5856 if test "${with_isl+set}" = set; then :
5857 withval=$with_isl;
5861 # Treat --without-isl as a request to disable
5862 # GRAPHITE support and skip all following checks.
5863 if test "x$with_isl" != "xno"; then
5864 # Check for isl
5867 # Check whether --with-isl-include was given.
5868 if test "${with_isl_include+set}" = set; then :
5869 withval=$with_isl_include;
5873 # Check whether --with-isl-lib was given.
5874 if test "${with_isl_lib+set}" = set; then :
5875 withval=$with_isl_lib;
5879 # Check whether --enable-isl-version-check was given.
5880 if test "${enable_isl_version_check+set}" = set; then :
5881 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5882 else
5883 ENABLE_ISL_CHECK=yes
5887 # Initialize isllibs and islinc.
5888 case $with_isl in
5890 isllibs=
5891 islinc=
5893 "" | yes)
5896 isllibs="-L$with_isl/lib"
5897 islinc="-I$with_isl/include"
5899 esac
5900 if test "x${with_isl_include}" != x ; then
5901 islinc="-I$with_isl_include"
5903 if test "x${with_isl_lib}" != x; then
5904 isllibs="-L$with_isl_lib"
5906 if test "x${islinc}" = x && test "x${isllibs}" = x \
5907 && test -d ${srcdir}/isl; then
5908 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5909 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5910 ENABLE_ISL_CHECK=no
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5912 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5915 isllibs="${isllibs} -lisl"
5919 if test "${ENABLE_ISL_CHECK}" = yes ; then
5920 _isl_saved_CFLAGS=$CFLAGS
5921 _isl_saved_LDFLAGS=$LDFLAGS
5922 _isl_saved_LIBS=$LIBS
5924 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5925 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5926 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5929 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932 #include <isl/ctx.h>
5934 main ()
5936 isl_ctx_get_max_operations (isl_ctx_alloc ());
5938 return 0;
5940 _ACEOF
5941 if ac_fn_c_try_link "$LINENO"; then :
5942 gcc_cv_isl=yes
5943 else
5944 gcc_cv_isl=no
5946 rm -f core conftest.err conftest.$ac_objext \
5947 conftest$ac_exeext conftest.$ac_ext
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5949 $as_echo "$gcc_cv_isl" >&6; }
5951 if test "${gcc_cv_isl}" = no ; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5953 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5957 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 #include <isl/schedule.h>
5962 main ()
5964 isl_options_set_schedule_serialize_sccs (NULL, 0);
5966 return 0;
5968 _ACEOF
5969 if ac_fn_c_try_link "$LINENO"; then :
5970 ac_has_isl_options_set_schedule_serialize_sccs=yes
5971 else
5972 ac_has_isl_options_set_schedule_serialize_sccs=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: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5977 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5979 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5980 islver="0.15"
5984 CFLAGS=$_isl_saved_CFLAGS
5985 LDFLAGS=$_isl_saved_LDFLAGS
5986 LIBS=$_isl_saved_LIBS
5994 if test "x${with_isl}" = xno; then
5995 graphite_requested=no
5996 elif test "x${with_isl}" != x \
5997 || test "x${with_isl_include}" != x \
5998 || test "x${with_isl_lib}" != x ; then
5999 graphite_requested=yes
6000 else
6001 graphite_requested=no
6006 if test "${gcc_cv_isl}" = no ; then
6007 isllibs=
6008 islinc=
6011 if test "${graphite_requested}" = yes \
6012 && test "x${isllibs}" = x \
6013 && test "x${islinc}" = x ; then
6015 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6021 # If the isl check failed, disable builds of in-tree variant of isl
6022 if test "x$with_isl" = xno ||
6023 test "x$gcc_cv_isl" = xno; then
6024 noconfigdirs="$noconfigdirs isl"
6025 islinc=
6031 # Check for LTO support.
6032 # Check whether --enable-lto was given.
6033 if test "${enable_lto+set}" = set; then :
6034 enableval=$enable_lto; enable_lto=$enableval
6035 else
6036 enable_lto=yes; default_enable_lto=yes
6043 target_elf=no
6044 case $target in
6045 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6046 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6047 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
6048 nvptx-*-none)
6049 target_elf=no
6052 target_elf=yes
6054 esac
6056 if test $target_elf = yes; then :
6057 # ELF platforms build the lto-plugin always.
6058 build_lto_plugin=yes
6060 else
6061 if test x"$default_enable_lto" = x"yes" ; then
6062 case $target in
6063 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6064 # On other non-ELF platforms, LTO has yet to be validated.
6065 *) enable_lto=no ;;
6066 esac
6067 else
6068 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6069 # It would also be nice to check the binutils support, but we don't
6070 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6071 # warn during gcc/ subconfigure; unless you're bootstrapping with
6072 # -flto it won't be needed until after installation anyway.
6073 case $target in
6074 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6075 *) if test x"$enable_lto" = x"yes"; then
6076 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6079 esac
6081 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6082 # Build it unless LTO was explicitly disabled.
6083 case $target in
6084 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6085 *) ;;
6086 esac
6091 # Check whether --enable-linker-plugin-configure-flags was given.
6092 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6093 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6094 else
6095 extra_linker_plugin_configure_flags=
6099 # Check whether --enable-linker-plugin-flags was given.
6100 if test "${enable_linker_plugin_flags+set}" = set; then :
6101 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6102 else
6103 extra_linker_plugin_flags=
6109 # By default, C and C++ are the only stage 1 languages.
6110 stage1_languages=,c,
6112 # Target libraries that we bootstrap.
6113 bootstrap_target_libs=,target-libgcc,
6115 # Figure out what language subdirectories are present.
6116 # Look if the user specified --enable-languages="..."; if not, use
6117 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6118 # go away some day.
6119 # NB: embedded tabs in this IF block -- do not untabify
6120 if test -d ${srcdir}/gcc; then
6121 if test x"${enable_languages+set}" != xset; then
6122 if test x"${LANGUAGES+set}" = xset; then
6123 enable_languages="${LANGUAGES}"
6124 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6125 else
6126 enable_languages=all
6128 else
6129 if test x"${enable_languages}" = x ||
6130 test x"${enable_languages}" = xyes;
6131 then
6132 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6133 exit 1
6136 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6138 # 'f95' is the old name for the 'fortran' language. We issue a warning
6139 # and make the substitution.
6140 case ,${enable_languages}, in
6141 *,f95,*)
6142 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6143 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6145 esac
6147 # If bootstrapping, C++ must be enabled.
6148 case ",$enable_languages,:$enable_bootstrap" in
6149 *,c++,*:*) ;;
6150 *:yes)
6151 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6152 enable_languages="${enable_languages},c++"
6153 else
6154 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6157 esac
6159 # First scan to see if an enabled language requires some other language.
6160 # We assume that a given config-lang.in will list all the language
6161 # front ends it requires, even if some are required indirectly.
6162 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6163 case ${lang_frag} in
6164 ..) ;;
6165 # The odd quoting in the next line works around
6166 # an apparent bug in bash 1.12 on linux.
6167 ${srcdir}/gcc/[*]/config-lang.in) ;;
6169 # From the config-lang.in, get $language, $lang_requires, and
6170 # $lang_requires_boot_languages.
6171 language=
6172 lang_requires=
6173 lang_requires_boot_languages=
6174 . ${lang_frag}
6175 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6176 case ,${enable_languages}, in
6177 *,$other,*) ;;
6178 *,all,*) ;;
6179 *,$language,*)
6180 echo " \`$other' language required by \`$language'; enabling" 1>&2
6181 enable_languages="${enable_languages},${other}"
6183 esac
6184 done
6185 for other in ${lang_requires_boot_languages} ; do
6186 if test "$other" != "c"; then
6187 case ,${enable_stage1_languages}, in
6188 *,$other,*) ;;
6189 *,all,*) ;;
6191 case ,${enable_languages}, in
6192 *,$language,*)
6193 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6194 enable_stage1_languages="$enable_stage1_languages,${other}"
6196 esac
6198 esac
6200 done
6202 esac
6203 done
6205 new_enable_languages=,c,
6207 # If LTO is enabled, add the LTO front end.
6208 if test "$enable_lto" = "yes" ; then
6209 case ,${enable_languages}, in
6210 *,lto,*) ;;
6211 *) enable_languages="${enable_languages},lto" ;;
6212 esac
6213 if test "${build_lto_plugin}" = "yes" ; then
6214 configdirs="$configdirs lto-plugin"
6218 # If we're building an offloading compiler, add the LTO front end.
6219 if test x"$enable_as_accelerator_for" != x ; then
6220 case ,${enable_languages}, in
6221 *,lto,*) ;;
6222 *) enable_languages="${enable_languages},lto" ;;
6223 esac
6226 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6227 potential_languages=,c,
6229 enabled_target_libs=
6230 disabled_target_libs=
6232 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6233 case ${lang_frag} in
6234 ..) ;;
6235 # The odd quoting in the next line works around
6236 # an apparent bug in bash 1.12 on linux.
6237 ${srcdir}/gcc/[*]/config-lang.in) ;;
6239 # From the config-lang.in, get $language, $target_libs,
6240 # $lang_dirs, $boot_language, and $build_by_default
6241 language=
6242 target_libs=
6243 lang_dirs=
6244 subdir_requires=
6245 boot_language=no
6246 build_by_default=yes
6247 . ${lang_frag}
6248 if test x${language} = x; then
6249 echo "${lang_frag} doesn't set \$language." 1>&2
6250 exit 1
6253 if test "$language" = "c++"; then
6254 boot_language=yes
6257 add_this_lang=no
6258 case ,${enable_languages}, in
6259 *,${language},*)
6260 # Language was explicitly selected; include it
6261 # unless it is C, which is enabled by default.
6262 if test "$language" != "c"; then
6263 add_this_lang=yes
6266 *,all,*)
6267 # 'all' was selected, select it if it is a default language
6268 if test "$language" != "c"; then
6269 add_this_lang=${build_by_default}
6272 esac
6274 # Disable languages that need other directories if these aren't available.
6275 for i in $subdir_requires; do
6276 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6277 case ,${enable_languages}, in
6278 *,${language},*)
6279 # Specifically requested language; tell them.
6280 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6283 # Silently disable.
6284 add_this_lang=unsupported
6286 esac
6287 done
6289 # Disable Ada if no preexisting GNAT is available.
6290 case ,${enable_languages},:${language}:${have_gnat} in
6291 *,${language},*:ada:no)
6292 # Specifically requested language; tell them.
6293 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6295 *:ada:no)
6296 # Silently disable.
6297 add_this_lang=unsupported
6299 esac
6301 # Disable a language that is unsupported by the target.
6302 case " $unsupported_languages " in
6303 *" $language "*)
6304 add_this_lang=unsupported
6306 esac
6308 case $add_this_lang in
6309 unsupported)
6310 # Remove language-dependent dirs.
6311 disabled_target_libs="$disabled_target_libs $target_libs"
6312 noconfigdirs="$noconfigdirs $lang_dirs"
6315 # Remove language-dependent dirs; still show language as supported.
6316 disabled_target_libs="$disabled_target_libs $target_libs"
6317 noconfigdirs="$noconfigdirs $lang_dirs"
6318 potential_languages="${potential_languages}${language},"
6320 yes)
6321 new_enable_languages="${new_enable_languages}${language},"
6322 potential_languages="${potential_languages}${language},"
6323 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6324 enabled_target_libs="$enabled_target_libs $target_libs"
6325 case "${boot_language}:,$enable_stage1_languages," in
6326 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6327 # Add to (comma-separated) list of stage 1 languages.
6328 case ",$stage1_languages," in
6329 *,$language,* | ,yes, | ,all,) ;;
6330 *) stage1_languages="${stage1_languages}${language}," ;;
6331 esac
6332 # We need to bootstrap any supporting libraries.
6333 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6335 esac
6337 esac
6339 esac
6340 done
6342 # Add target libraries which are only needed for disabled languages
6343 # to noconfigdirs.
6344 if test -n "$disabled_target_libs"; then
6345 for dir in $disabled_target_libs; do
6346 case " $enabled_target_libs " in
6347 *" ${dir} "*) ;;
6348 *) noconfigdirs="$noconfigdirs $dir" ;;
6349 esac
6350 done
6353 # Check whether --enable-stage1-languages was given.
6354 if test "${enable_stage1_languages+set}" = set; then :
6355 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6356 ,no,|,,)
6357 # Set it to something that will have no effect in the loop below
6358 enable_stage1_languages=c ;;
6359 ,yes,)
6360 enable_stage1_languages=`echo $new_enable_languages | \
6361 sed -e "s/^,//" -e "s/,$//" ` ;;
6362 *,all,*)
6363 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6364 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6365 esac
6367 # Add "good" languages from enable_stage1_languages to stage1_languages,
6368 # while "bad" languages go in missing_languages. Leave no duplicates.
6369 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6370 case $potential_languages in
6371 *,$i,*)
6372 case $stage1_languages in
6373 *,$i,*) ;;
6374 *) stage1_languages="$stage1_languages$i," ;;
6375 esac ;;
6377 case $missing_languages in
6378 *,$i,*) ;;
6379 *) missing_languages="$missing_languages$i," ;;
6380 esac ;;
6381 esac
6382 done
6386 # Remove leading/trailing commas that were added for simplicity
6387 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6388 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6389 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6390 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6392 if test "x$missing_languages" != x; then
6393 as_fn_error "
6394 The following requested languages could not be built: ${missing_languages}
6395 Supported languages are: ${potential_languages}" "$LINENO" 5
6397 if test "x$new_enable_languages" != "x$enable_languages"; then
6398 echo The following languages will be built: ${new_enable_languages}
6399 enable_languages="$new_enable_languages"
6403 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6406 # Handle --disable-<component> generically.
6407 for dir in $configdirs $build_configdirs $target_configdirs ; do
6408 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6409 varname=`echo $dirname | sed -e s/+/_/g`
6410 if eval test x\${enable_${varname}} "=" xno ; then
6411 noconfigdirs="$noconfigdirs $dir"
6413 done
6415 # Check for Boehm's garbage collector
6416 # Check whether --enable-objc-gc was given.
6417 if test "${enable_objc_gc+set}" = set; then :
6418 enableval=$enable_objc_gc;
6422 # Check whether --with-target-bdw-gc was given.
6423 if test "${with_target_bdw_gc+set}" = set; then :
6424 withval=$with_target_bdw_gc;
6428 # Check whether --with-target-bdw-gc-include was given.
6429 if test "${with_target_bdw_gc_include+set}" = set; then :
6430 withval=$with_target_bdw_gc_include;
6434 # Check whether --with-target-bdw-gc-lib was given.
6435 if test "${with_target_bdw_gc_lib+set}" = set; then :
6436 withval=$with_target_bdw_gc_lib;
6440 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6442 $as_echo_n "checking for bdw garbage collector... " >&6; }
6443 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6451 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6452 if test -n "$ac_tool_prefix"; then
6453 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6454 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 case $PKG_CONFIG in
6461 [\\/]* | ?:[\\/]*)
6462 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6476 done
6477 done
6478 IFS=$as_save_IFS
6481 esac
6483 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6484 if test -n "$PKG_CONFIG"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6486 $as_echo "$PKG_CONFIG" >&6; }
6487 else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6494 if test -z "$ac_cv_path_PKG_CONFIG"; then
6495 ac_pt_PKG_CONFIG=$PKG_CONFIG
6496 # Extract the first word of "pkg-config", so it can be a program name with args.
6497 set dummy pkg-config; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 case $ac_pt_PKG_CONFIG in
6504 [\\/]* | ?:[\\/]*)
6505 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6519 done
6520 done
6521 IFS=$as_save_IFS
6524 esac
6526 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6527 if test -n "$ac_pt_PKG_CONFIG"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6529 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6530 else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6535 if test "x$ac_pt_PKG_CONFIG" = x; then
6536 PKG_CONFIG=""
6537 else
6538 case $cross_compiling:$ac_tool_warned in
6539 yes:)
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6543 esac
6544 PKG_CONFIG=$ac_pt_PKG_CONFIG
6546 else
6547 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6551 if test -n "$PKG_CONFIG"; then
6552 _pkg_min_version=0.9.0
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6554 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6555 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6557 $as_echo "yes" >&6; }
6558 else
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 $as_echo "no" >&6; }
6561 PKG_CONFIG=""
6564 if test -n "$PKG_CONFIG" && \
6565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bdw-gc\""; } >&5
6566 ($PKG_CONFIG --exists --print-errors "bdw-gc") 2>&5
6567 ac_status=$?
6568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6569 test $ac_status = 0; }; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc pkg-config module" >&5
6571 $as_echo "using bdw-gc pkg-config module" >&6; }
6572 else
6573 as_fn_error "no --with-target-bdw-gc options and no bdw-gc pkg-config module found" "$LINENO" 5
6575 else
6576 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6577 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6578 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6579 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6580 else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6582 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6585 esac
6587 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6588 case ,${enable_languages}, in
6589 *,c++,*)
6590 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6591 case "${noconfigdirs}" in
6592 *target-libstdc++-v3*)
6593 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6595 *) ;;
6596 esac
6599 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6601 esac
6603 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6604 # $build_configdirs and $target_configdirs.
6605 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6607 notsupp=""
6608 for dir in . $skipdirs $noconfigdirs ; do
6609 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6610 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6611 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6612 if test -r $srcdir/$dirname/configure ; then
6613 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6614 true
6615 else
6616 notsupp="$notsupp $dir"
6620 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6621 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6622 if test -r $srcdir/$dirname/configure ; then
6623 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6624 true
6625 else
6626 notsupp="$notsupp $dir"
6630 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6631 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6632 if test -r $srcdir/$dirname/configure ; then
6633 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6634 true
6635 else
6636 notsupp="$notsupp $dir"
6640 done
6642 # Quietly strip out all directories which aren't configurable in this tree.
6643 # This relies on all configurable subdirectories being autoconfiscated, which
6644 # is now the case.
6645 build_configdirs_all="$build_configdirs"
6646 build_configdirs=
6647 for i in ${build_configdirs_all} ; do
6648 j=`echo $i | sed -e s/build-//g`
6649 if test -f ${srcdir}/$j/configure ; then
6650 build_configdirs="${build_configdirs} $i"
6652 done
6654 configdirs_all="$configdirs"
6655 configdirs=
6656 for i in ${configdirs_all} ; do
6657 if test -f ${srcdir}/$i/configure ; then
6658 configdirs="${configdirs} $i"
6660 done
6662 target_configdirs_all="$target_configdirs"
6663 target_configdirs=
6664 for i in ${target_configdirs_all} ; do
6665 j=`echo $i | sed -e s/target-//g`
6666 if test -f ${srcdir}/$j/configure ; then
6667 target_configdirs="${target_configdirs} $i"
6669 done
6671 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6672 # so we have to add it after the preceding checks.
6673 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6674 then
6675 case " $configdirs " in
6676 *" libiberty "*)
6677 # If we can build libiberty, we can also build libiberty-linker-plugin.
6678 configdirs="$configdirs libiberty-linker-plugin"
6679 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6680 --with-libiberty=../libiberty-linker-plugin";;
6682 as_fn_error "libiberty missing" "$LINENO" 5;;
6683 esac
6686 # Sometimes we have special requirements for the host libiberty.
6687 extra_host_libiberty_configure_flags=
6688 extra_host_zlib_configure_flags=
6689 case " $configdirs " in
6690 *" lto-plugin "* | *" libcc1 "*)
6691 # When these are to be built as shared libraries, the same applies to
6692 # libiberty.
6693 extra_host_libiberty_configure_flags=--enable-shared
6695 *" bfd "*)
6696 # When bfd is to be built as a shared library, the same applies to
6697 # zlib.
6698 if test "$enable_shared" = "yes"; then
6699 extra_host_zlib_configure_flags=--enable-host-shared
6702 esac
6706 # Produce a warning message for the subdirs we can't configure.
6707 # This isn't especially interesting in the Cygnus tree, but in the individual
6708 # FSF releases, it's important to let people know when their machine isn't
6709 # supported by the one or two programs in a package.
6711 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6712 # If $appdirs is non-empty, at least one of those directories must still
6713 # be configured, or we error out. (E.g., if the gas release supports a
6714 # specified target in some subdirs but not the gas subdir, we shouldn't
6715 # pretend that all is well.)
6716 if test -n "$appdirs" ; then
6717 for dir in $appdirs ; do
6718 if test -r $dir/Makefile.in ; then
6719 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6720 appdirs=""
6721 break
6723 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6724 appdirs=""
6725 break
6728 done
6729 if test -n "$appdirs" ; then
6730 echo "*** This configuration is not supported by this package." 1>&2
6731 exit 1
6734 # Okay, some application will build, or we don't care to check. Still
6735 # notify of subdirs not getting built.
6736 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6737 echo " ${notsupp}" 1>&2
6738 echo " (Any other directories should still work fine.)" 1>&2
6741 case "$host" in
6742 *msdosdjgpp*)
6743 enable_gdbtk=no ;;
6744 esac
6746 # To find our prefix, in gcc_cv_tool_prefix.
6748 # The user is always right.
6749 if test "${PATH_SEPARATOR+set}" != set; then
6750 echo "#! /bin/sh" >conf$$.sh
6751 echo "exit 0" >>conf$$.sh
6752 chmod +x conf$$.sh
6753 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6754 PATH_SEPARATOR=';'
6755 else
6756 PATH_SEPARATOR=:
6758 rm -f conf$$.sh
6763 if test "x$exec_prefix" = xNONE; then
6764 if test "x$prefix" = xNONE; then
6765 gcc_cv_tool_prefix=$ac_default_prefix
6766 else
6767 gcc_cv_tool_prefix=$prefix
6769 else
6770 gcc_cv_tool_prefix=$exec_prefix
6773 # If there is no compiler in the tree, use the PATH only. In any
6774 # case, if there is no compiler in the tree nobody should use
6775 # AS_FOR_TARGET and LD_FOR_TARGET.
6776 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6777 gcc_version=`cat $srcdir/gcc/BASE-VER`
6778 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6779 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6780 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6781 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6782 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6783 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6784 else
6785 gcc_cv_tool_dirs=
6788 if test x$build = x$target && test -n "$md_exec_prefix"; then
6789 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6794 copy_dirs=
6797 # Check whether --with-build-sysroot was given.
6798 if test "${with_build_sysroot+set}" = set; then :
6799 withval=$with_build_sysroot; if test x"$withval" != x ; then
6800 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6802 else
6803 SYSROOT_CFLAGS_FOR_TARGET=
6809 # Check whether --with-debug-prefix-map was given.
6810 if test "${with_debug_prefix_map+set}" = set; then :
6811 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6812 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6813 for debug_map in $withval; do
6814 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6815 done
6817 else
6818 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6823 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6824 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6825 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6826 # We want to ensure that TARGET libraries (which we know are built with
6827 # gcc) are built with "-O2 -g", so include those options when setting
6828 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6829 if test "x$CFLAGS_FOR_TARGET" = x; then
6830 if test "x${is_cross_compiler}" = xyes; then
6831 CFLAGS_FOR_TARGET="-g -O2"
6832 else
6833 CFLAGS_FOR_TARGET=$CFLAGS
6834 case " $CFLAGS " in
6835 *" -O2 "*) ;;
6836 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6837 esac
6838 case " $CFLAGS " in
6839 *" -g "* | *" -g3 "*) ;;
6840 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6841 esac
6846 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6847 if test "x${is_cross_compiler}" = xyes; then
6848 CXXFLAGS_FOR_TARGET="-g -O2"
6849 else
6850 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6851 case " $CXXFLAGS " in
6852 *" -O2 "*) ;;
6853 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6854 esac
6855 case " $CXXFLAGS " in
6856 *" -g "* | *" -g3 "*) ;;
6857 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6858 esac
6865 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6866 # the named directory are copied to $(tooldir)/sys-include.
6867 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6868 if test x${is_cross_compiler} = xno ; then
6869 echo 1>&2 '***' --with-headers is only supported when cross compiling
6870 exit 1
6872 if test x"${with_headers}" != xyes ; then
6873 x=${gcc_cv_tool_prefix}
6874 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6878 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6879 # the name directories are copied to $(tooldir)/lib. Multiple directories
6880 # are permitted.
6881 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6882 if test x${is_cross_compiler} = xno ; then
6883 echo 1>&2 '***' --with-libs is only supported when cross compiling
6884 exit 1
6886 if test x"${with_libs}" != xyes ; then
6887 # Copy the libraries in reverse order, so that files in the first named
6888 # library override files in subsequent libraries.
6889 x=${gcc_cv_tool_prefix}
6890 for l in ${with_libs}; do
6891 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6892 done
6896 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6898 # This is done by determining whether or not the appropriate directory
6899 # is available, and by checking whether or not specific configurations
6900 # have requested that this magic not happen.
6902 # The command line options always override the explicit settings in
6903 # configure.ac, and the settings in configure.ac override this magic.
6905 # If the default for a toolchain is to use GNU as and ld, and you don't
6906 # want to do that, then you should use the --without-gnu-as and
6907 # --without-gnu-ld options for the configure script. Similarly, if
6908 # the default is to use the included zlib and you don't want to do that,
6909 # you should use the --with-system-zlib option for the configure script.
6911 if test x${use_gnu_as} = x &&
6912 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6913 with_gnu_as=yes
6914 extra_host_args="$extra_host_args --with-gnu-as"
6917 if test x${use_gnu_ld} = x &&
6918 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6919 with_gnu_ld=yes
6920 extra_host_args="$extra_host_args --with-gnu-ld"
6923 if test x${use_included_zlib} = x &&
6924 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6926 else
6927 with_system_zlib=yes
6928 extra_host_args="$extra_host_args --with-system-zlib"
6931 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6932 # can detect this case.
6934 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6935 with_newlib=yes
6936 extra_host_args="$extra_host_args --with-newlib"
6939 # Handle ${copy_dirs}
6940 set fnord ${copy_dirs}
6941 shift
6942 while test $# != 0 ; do
6943 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6945 else
6946 echo Copying $1 to $2
6948 # Use the install script to create the directory and all required
6949 # parent directories.
6950 if test -d $2 ; then
6952 else
6953 echo >config.temp
6954 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6957 # Copy the directory, assuming we have tar.
6958 # FIXME: Should we use B in the second tar? Not all systems support it.
6959 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6961 # It is the responsibility of the user to correctly adjust all
6962 # symlinks. If somebody can figure out how to handle them correctly
6963 # here, feel free to add the code.
6965 echo $1 > $2/COPIED
6967 shift; shift
6968 done
6970 # Determine a target-dependent exec_prefix that the installed
6971 # gcc will search in. Keep this list sorted by triplet, with
6972 # the *-*-osname triplets last.
6973 md_exec_prefix=
6974 case "${target}" in
6975 i[34567]86-pc-msdosdjgpp*)
6976 md_exec_prefix=/dev/env/DJDIR/bin
6978 *-*-hpux* | \
6979 *-*-nto-qnx* | \
6980 *-*-solaris2*)
6981 md_exec_prefix=/usr/ccs/bin
6983 esac
6985 extra_arflags_for_target=
6986 extra_nmflags_for_target=
6987 extra_ranlibflags_for_target=
6988 target_makefile_frag=/dev/null
6989 case "${target}" in
6990 spu-*-*)
6991 target_makefile_frag="config/mt-spu"
6993 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6994 target_makefile_frag="config/mt-sde"
6996 mipsisa*-*-elfoabi*)
6997 target_makefile_frag="config/mt-mips-elfoabi"
6999 mips*-*-*linux* | mips*-*-gnu*)
7000 target_makefile_frag="config/mt-mips-gnu"
7002 nios2-*-elf*)
7003 target_makefile_frag="config/mt-nios2-elf"
7005 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7006 target_makefile_frag="config/mt-gnu"
7008 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7009 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7010 # commands to handle both 32-bit and 64-bit objects. These flags are
7011 # harmless if we're using GNU nm or ar.
7012 extra_arflags_for_target=" -X32_64"
7013 extra_nmflags_for_target=" -B -X32_64"
7015 esac
7017 alphaieee_frag=/dev/null
7018 case $target in
7019 alpha*-*-*)
7020 # This just makes sure to use the -mieee option to build target libs.
7021 # This should probably be set individually by each library.
7022 alphaieee_frag="config/mt-alphaieee"
7024 esac
7026 # If --enable-target-optspace always use -Os instead of -O2 to build
7027 # the target libraries, similarly if it is not specified, use -Os
7028 # on selected platforms.
7029 ospace_frag=/dev/null
7030 case "${enable_target_optspace}:${target}" in
7031 yes:*)
7032 ospace_frag="config/mt-ospace"
7034 :d30v-*)
7035 ospace_frag="config/mt-d30v"
7037 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7038 ospace_frag="config/mt-ospace"
7040 no:* | :*)
7043 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7045 esac
7047 # Some systems (e.g., one of the i386-aix systems the gas testers are
7048 # using) don't handle "\$" correctly, so don't use it here.
7049 tooldir='${exec_prefix}'/${target_noncanonical}
7050 build_tooldir=${tooldir}
7052 # Create a .gdbinit file which runs the one in srcdir
7053 # and tells GDB to look there for source files.
7055 if test -r ${srcdir}/.gdbinit ; then
7056 case ${srcdir} in
7057 .) ;;
7058 *) cat > ./.gdbinit <<EOF
7059 # ${NO_EDIT}
7060 dir ${srcdir}
7061 dir .
7062 source ${srcdir}/.gdbinit
7065 esac
7068 # Make sure that the compiler is able to generate an executable. If it
7069 # can't, we are probably in trouble. We don't care whether we can run the
7070 # executable--we might be using a cross compiler--we only care whether it
7071 # can be created. At this point the main configure script has set CC.
7072 we_are_ok=no
7073 echo "int main () { return 0; }" > conftest.c
7074 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7075 if test $? = 0 ; then
7076 if test -s conftest || test -s conftest.exe ; then
7077 we_are_ok=yes
7080 case $we_are_ok in
7082 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7083 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7084 rm -f conftest*
7085 exit 1
7087 esac
7088 rm -f conftest*
7090 # Decide which environment variable is used to find dynamic libraries.
7091 case "${host}" in
7092 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7093 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7094 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7095 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7096 esac
7098 # On systems where the dynamic library environment variable is PATH,
7099 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7100 # built executables to PATH.
7101 if test "$RPATH_ENVVAR" = PATH; then
7102 GCC_SHLIB_SUBDIR=/shlib
7103 else
7104 GCC_SHLIB_SUBDIR=
7107 # Adjust the toplevel makefile according to whether bootstrap was selected.
7108 case $enable_bootstrap in
7109 yes)
7110 bootstrap_suffix=bootstrap
7111 BUILD_CONFIG=bootstrap-debug
7114 bootstrap_suffix=no-bootstrap
7115 BUILD_CONFIG=
7117 esac
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7120 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7123 # Check whether --with-build-config was given.
7124 if test "${with_build_config+set}" = set; then :
7125 withval=$with_build_config; case $with_build_config in
7126 yes) with_build_config= ;;
7127 no) with_build_config= BUILD_CONFIG= ;;
7128 esac
7132 if test "x${with_build_config}" != x; then
7133 BUILD_CONFIG=$with_build_config
7134 else
7135 case $BUILD_CONFIG in
7136 bootstrap-debug)
7137 if echo "int f (void) { return 0; }" > conftest.c &&
7138 ${CC} -c conftest.c &&
7139 mv conftest.o conftest.o.g0 &&
7140 ${CC} -c -g conftest.c &&
7141 mv conftest.o conftest.o.g &&
7142 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7144 else
7145 BUILD_CONFIG=
7147 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7149 esac
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7152 $as_echo "$BUILD_CONFIG" >&6; }
7155 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7157 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7158 # Check whether --enable-vtable-verify was given.
7159 if test "${enable_vtable_verify+set}" = set; then :
7160 enableval=$enable_vtable_verify; case "$enableval" in
7161 yes) enable_vtable_verify=yes ;;
7162 no) enable_vtable_verify=no ;;
7163 *) enable_vtable_verify=no;;
7164 esac
7165 else
7166 enable_vtable_verify=no
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7170 $as_echo "$enable_vtable_verify" >&6; }
7172 # Record target_configdirs and the configure arguments for target and
7173 # build configuration in Makefile.
7174 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7175 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7176 bootstrap_fixincludes=no
7178 # If we are building libgomp, bootstrap it.
7179 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7180 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7183 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7184 # or bootstrap-ubsan, bootstrap it.
7185 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7186 case "$BUILD_CONFIG" in
7187 *bootstrap-asan* | *bootstrap-ubsan* )
7188 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7189 bootstrap_fixincludes=yes
7191 esac
7194 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7195 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7196 test "$enable_vtable_verify" != no; then
7197 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7200 # If we are building libmpx, bootstrap it.
7201 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7202 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7205 # Determine whether gdb needs tk/tcl or not.
7206 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7207 # and in that case we want gdb to be built without tk. Ugh!
7208 # In fact I believe gdb is the *only* package directly dependent on tk,
7209 # so we should be able to put the 'maybe's in unconditionally and
7210 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7211 # 100% sure that that's safe though.
7213 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7214 case "$enable_gdbtk" in
7216 GDB_TK="" ;;
7217 yes)
7218 GDB_TK="${gdb_tk}" ;;
7220 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7221 # distro. Eventually someone will fix this and move Insight, nee
7222 # gdbtk to a separate directory.
7223 if test -d ${srcdir}/gdb/gdbtk ; then
7224 GDB_TK="${gdb_tk}"
7225 else
7226 GDB_TK=""
7229 esac
7230 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7231 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7233 # Strip out unwanted targets.
7235 # While at that, we remove Makefiles if we were started for recursive
7236 # configuration, so that the top-level Makefile reconfigures them,
7237 # like we used to do when configure itself was recursive.
7239 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7240 # but now we're fixing up the Makefile ourselves with the additional
7241 # commands passed to AC_CONFIG_FILES. Use separate variables
7242 # extrasub-{build,host,target} not because there is any reason to split
7243 # the substitutions up that way, but only to remain below the limit of
7244 # 99 commands in a script, for HP-UX sed.
7245 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7247 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7248 yes:yes:*\ gold\ *:*,c++,*) ;;
7249 yes:yes:*\ gold\ *:*)
7250 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7252 esac
7254 extrasub_build=
7255 for module in ${build_configdirs} ; do
7256 if test -z "${no_recursion}" \
7257 && test -f ${build_subdir}/${module}/Makefile; then
7258 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7259 rm -f ${build_subdir}/${module}/Makefile
7261 extrasub_build="$extrasub_build
7262 /^@if build-$module\$/d
7263 /^@endif build-$module\$/d
7264 /^@if build-$module-$bootstrap_suffix\$/d
7265 /^@endif build-$module-$bootstrap_suffix\$/d"
7266 done
7267 extrasub_host=
7268 for module in ${configdirs} ; do
7269 if test -z "${no_recursion}"; then
7270 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7271 if test -f ${file}; then
7272 echo 1>&2 "*** removing ${file} to force reconfigure"
7273 rm -f ${file}
7275 done
7277 case ${module},${bootstrap_fixincludes} in
7278 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7279 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7280 esac
7281 extrasub_host="$extrasub_host
7282 /^@if $module\$/d
7283 /^@endif $module\$/d
7284 /^@if $module-$host_bootstrap_suffix\$/d
7285 /^@endif $module-$host_bootstrap_suffix\$/d"
7286 done
7287 extrasub_target=
7288 for module in ${target_configdirs} ; do
7289 if test -z "${no_recursion}" \
7290 && test -f ${target_subdir}/${module}/Makefile; then
7291 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7292 rm -f ${target_subdir}/${module}/Makefile
7295 # We only bootstrap target libraries listed in bootstrap_target_libs.
7296 case $bootstrap_target_libs in
7297 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7298 *) target_bootstrap_suffix=no-bootstrap ;;
7299 esac
7301 extrasub_target="$extrasub_target
7302 /^@if target-$module\$/d
7303 /^@endif target-$module\$/d
7304 /^@if target-$module-$target_bootstrap_suffix\$/d
7305 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7306 done
7308 # Do the final fixup along with target modules.
7309 extrasub_target="$extrasub_target
7310 /^@if /,/^@endif /d"
7312 # Create the serialization dependencies. This uses a temporary file.
7314 # Check whether --enable-serial-configure was given.
7315 if test "${enable_serial_configure+set}" = set; then :
7316 enableval=$enable_serial_configure;
7320 case ${enable_serial_configure} in
7321 yes)
7322 enable_serial_build_configure=yes
7323 enable_serial_host_configure=yes
7324 enable_serial_target_configure=yes
7326 esac
7328 # These force 'configure's to be done one at a time, to avoid problems
7329 # with contention over a shared config.cache.
7330 rm -f serdep.tmp
7331 echo '# serdep.tmp' > serdep.tmp
7332 olditem=
7333 test "x${enable_serial_build_configure}" = xyes &&
7334 for item in ${build_configdirs} ; do
7335 case ${olditem} in
7336 "") ;;
7337 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7338 esac
7339 olditem=${item}
7340 done
7341 olditem=
7342 test "x${enable_serial_host_configure}" = xyes &&
7343 for item in ${configdirs} ; do
7344 case ${olditem} in
7345 "") ;;
7346 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7347 esac
7348 olditem=${item}
7349 done
7350 olditem=
7351 test "x${enable_serial_target_configure}" = xyes &&
7352 for item in ${target_configdirs} ; do
7353 case ${olditem} in
7354 "") ;;
7355 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7356 esac
7357 olditem=${item}
7358 done
7359 serialization_dependencies=serdep.tmp
7362 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7363 # target, nonopt, and variable assignments. These are the ones we
7364 # might not want to pass down to subconfigures. The exception being
7365 # --cache-file=/dev/null, which is used to turn off the use of cache
7366 # files altogether, and which should be passed on to subconfigures.
7367 # Also strip program-prefix, program-suffix, and program-transform-name,
7368 # so that we can pass down a consistent program-transform-name.
7369 baseargs=
7370 tbaseargs=
7371 keep_next=no
7372 skip_next=no
7373 eval "set -- $ac_configure_args"
7374 for ac_arg
7376 if test X"$skip_next" = X"yes"; then
7377 skip_next=no
7378 continue
7380 if test X"$keep_next" = X"yes"; then
7381 case $ac_arg in
7382 *\'*)
7383 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7384 esac
7385 baseargs="$baseargs '$ac_arg'"
7386 tbaseargs="$tbaseargs '$ac_arg'"
7387 keep_next=no
7388 continue
7391 # Handle separated arguments. Based on the logic generated by
7392 # autoconf 2.59.
7393 case $ac_arg in
7394 *=* | --config-cache | -C | -disable-* | --disable-* \
7395 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7396 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7397 | -with-* | --with-* | -without-* | --without-* | --x)
7398 separate_arg=no
7401 separate_arg=yes
7404 separate_arg=no
7406 esac
7408 skip_targ=no
7409 case $ac_arg in
7411 --with-* | --without-*)
7412 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7414 case $libopt in
7415 *[-_]include)
7416 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7418 *[-_]lib)
7419 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7422 lib=$libopt
7424 esac
7427 case $lib in
7428 mpc | mpfr | gmp | isl)
7429 # If we're processing --with-$lib, --with-$lib-include or
7430 # --with-$lib-lib, for one of the libs above, and target is
7431 # different from host, don't pass the current argument to any
7432 # target library's configure.
7433 if test x$is_cross_compiler = xyes; then
7434 skip_targ=yes
7437 esac
7439 esac
7441 case "$ac_arg" in
7442 --cache-file=/dev/null | \
7443 -cache-file=/dev/null )
7444 # Handled here to avoid the test to skip args below.
7445 baseargs="$baseargs '$ac_arg'"
7446 tbaseargs="$tbaseargs '$ac_arg'"
7447 # Assert: $separate_arg should always be no.
7448 keep_next=$separate_arg
7450 --no*)
7451 continue
7453 --c* | \
7454 --sr* | \
7455 --ho* | \
7456 --bu* | \
7457 --t* | \
7458 --program-* | \
7459 -cache_file* | \
7460 -srcdir* | \
7461 -host* | \
7462 -build* | \
7463 -target* | \
7464 -program-prefix* | \
7465 -program-suffix* | \
7466 -program-transform-name* )
7467 skip_next=$separate_arg
7468 continue
7471 # An option. Add it.
7472 case $ac_arg in
7473 *\'*)
7474 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7475 esac
7476 baseargs="$baseargs '$ac_arg'"
7477 if test X"$skip_targ" = Xno; then
7478 tbaseargs="$tbaseargs '$ac_arg'"
7480 keep_next=$separate_arg
7483 # Either a variable assignment, or a nonopt (triplet). Don't
7484 # pass it down; let the Makefile handle this.
7485 continue
7487 esac
7488 done
7489 # Remove the initial space we just introduced and, as these will be
7490 # expanded by make, quote '$'.
7491 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7493 # Add in --program-transform-name, after --program-prefix and
7494 # --program-suffix have been applied to it. Autoconf has already
7495 # doubled dollar signs and backslashes in program_transform_name; we want
7496 # the backslashes un-doubled, and then the entire thing wrapped in single
7497 # quotes, because this will be expanded first by make and then by the shell.
7498 # Also, because we want to override the logic in subdir configure scripts to
7499 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7500 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7501 ${program_transform_name}
7502 EOF_SED
7503 gcc_transform_name=`cat conftestsed.out`
7504 rm -f conftestsed.out
7505 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7506 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7507 if test "$silent" = yes; then
7508 baseargs="$baseargs --silent"
7509 tbaseargs="$tbaseargs --silent"
7511 baseargs="$baseargs --disable-option-checking"
7512 tbaseargs="$tbaseargs --disable-option-checking"
7514 # Record and document user additions to sub configure arguments.
7519 # For the build-side libraries, we just need to pretend we're native,
7520 # and not use the same cache file. Multilibs are neither needed nor
7521 # desired. We can't even use the same cache file for all build-side
7522 # libraries, as they're compiled differently; some with C, some with
7523 # C++ or with different feature-enabling options.
7524 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7526 # For host modules, accept cache file option, or specification as blank.
7527 case "${cache_file}" in
7528 "") # empty
7529 cache_file_option="" ;;
7530 /* | [A-Za-z]:[\\/]* ) # absolute path
7531 cache_file_option="--cache-file=${cache_file}" ;;
7532 *) # relative path
7533 cache_file_option="--cache-file=../${cache_file}" ;;
7534 esac
7536 # Host dirs don't like to share a cache file either, horribly enough.
7537 # This seems to be due to autoconf 2.5x stupidity.
7538 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7540 target_configargs="$target_configargs ${tbaseargs}"
7542 # Passing a --with-cross-host argument lets the target libraries know
7543 # whether they are being built with a cross-compiler or being built
7544 # native. However, it would be better to use other mechanisms to make the
7545 # sorts of decisions they want to make on this basis. Please consider
7546 # this option to be deprecated. FIXME.
7547 if test x${is_cross_compiler} = xyes ; then
7548 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7551 # Special user-friendly check for native x86_64-linux build, if
7552 # multilib is not explicitly enabled.
7553 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7554 x86_64-*linux*:yes:$build:$build:)
7555 # Make sure we have a development environment that handles 32-bit
7556 dev64=no
7557 echo "int main () { return 0; }" > conftest.c
7558 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7559 if test $? = 0 ; then
7560 if test -s conftest || test -s conftest.exe ; then
7561 dev64=yes
7564 rm -f conftest*
7565 if test x${dev64} != xyes ; then
7566 as_fn_error "I suspect your system does not have 32-bit development 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
7569 esac
7571 # Default to --enable-multilib.
7572 if test x${enable_multilib} = x ; then
7573 target_configargs="--enable-multilib ${target_configargs}"
7576 # Pass --with-newlib if appropriate. Note that target_configdirs has
7577 # changed from the earlier setting of with_newlib.
7578 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7579 target_configargs="--with-newlib ${target_configargs}"
7582 # Different target subdirs use different values of certain variables
7583 # (notably CXX). Worse, multilibs use *lots* of different values.
7584 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7585 # it doesn't automatically accept command-line overrides of them.
7586 # This means it's not safe for target subdirs to share a cache file,
7587 # which is disgusting, but there you have it. Hopefully this can be
7588 # fixed in future. It's still worthwhile to use a cache file for each
7589 # directory. I think.
7591 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7592 # We need to pass --target, as newer autoconf's requires consistency
7593 # for target_alias and gcc doesn't manage it consistently.
7594 target_configargs="--cache-file=./config.cache ${target_configargs}"
7596 FLAGS_FOR_TARGET=
7597 case " $target_configdirs " in
7598 *" newlib "*)
7599 case " $target_configargs " in
7600 *" --with-newlib "*)
7601 case "$target" in
7602 *-cygwin*)
7603 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7605 esac
7607 # If we're not building GCC, don't discard standard headers.
7608 if test -d ${srcdir}/gcc; then
7609 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7611 if test "${build}" != "${host}"; then
7612 # On Canadian crosses, CC_FOR_TARGET will have already been set
7613 # by `configure', so we won't have an opportunity to add -Bgcc/
7614 # to it. This is right: we don't want to search that directory
7615 # for binaries, but we want the header files in there, so add
7616 # them explicitly.
7617 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7619 # Someone might think of using the pre-installed headers on
7620 # Canadian crosses, in case the installed compiler is not fully
7621 # compatible with the compiler being built. In this case, it
7622 # would be better to flag an error than risking having
7623 # incompatible object files being constructed. We can't
7624 # guarantee that an error will be flagged, but let's hope the
7625 # compiler will do it, when presented with incompatible header
7626 # files.
7630 case "${target}-${is_cross_compiler}" in
7631 i[3456789]86-*-linux*-no)
7632 # Here host == target, so we don't need to build gcc,
7633 # so we don't want to discard standard headers.
7634 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7637 # If we're building newlib, use its generic headers last, but search
7638 # for any libc-related directories first (so make it the last -B
7639 # switch).
7640 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7642 # If we're building libgloss, find the startup file, simulator library
7643 # and linker script.
7644 case " $target_configdirs " in
7645 *" libgloss "*)
7646 # Look for startup file, simulator library and maybe linker script.
7647 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7648 # Look for libnosys.a in case the target needs it.
7649 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7650 # Most targets have the linker script in the source directory.
7651 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7653 esac
7655 esac
7657 esac
7659 esac
7661 case "$target" in
7662 x86_64-*mingw* | *-w64-mingw*)
7663 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7664 # however, use a symlink named 'mingw' in ${prefix} .
7665 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7667 *-mingw*)
7668 # MinGW can't be handled as Cygwin above since it does not use newlib.
7669 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'
7671 esac
7673 # Allow the user to override the flags for
7674 # our build compiler if desired.
7675 if test x"${build}" = x"${host}" ; then
7676 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7677 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7678 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7681 # On Canadian crosses, we'll be searching the right directories for
7682 # the previously-installed cross compiler, so don't bother to add
7683 # flags for directories within the install tree of the compiler
7684 # being built; programs in there won't even run.
7685 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7686 # Search for pre-installed headers if nothing else fits.
7687 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7690 if test "x${use_gnu_ld}" = x &&
7691 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7692 # Arrange for us to find uninstalled linker scripts.
7693 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7696 # Search for other target-specific linker scripts and such.
7697 case "${target}" in
7698 mep*)
7699 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7701 esac
7703 # Makefile fragments.
7704 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7706 eval fragval=\$$frag
7707 if test $fragval != /dev/null; then
7708 eval $frag=${srcdir}/$fragval
7710 done
7716 # Miscellanea: directories, flags, etc.
7725 # Build module lists & subconfigure args.
7729 # Host module lists & subconfigure args.
7734 # Target module lists & subconfigure args.
7738 # Build tools.
7755 # Generate default definitions for YACC, M4, LEX and other programs that run
7756 # on the build machine. These are used if the Makefile can't locate these
7757 # programs in objdir.
7758 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7760 for ac_prog in 'bison -y' byacc yacc
7762 # Extract the first word of "$ac_prog", so it can be a program name with args.
7763 set dummy $ac_prog; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if test "${ac_cv_prog_YACC+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 if test -n "$YACC"; then
7770 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_prog_YACC="$ac_prog"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7783 done
7784 done
7785 IFS=$as_save_IFS
7789 YACC=$ac_cv_prog_YACC
7790 if test -n "$YACC"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7792 $as_echo "$YACC" >&6; }
7793 else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7799 test -n "$YACC" && break
7800 done
7801 test -n "$YACC" || YACC="$MISSING bison -y"
7803 case " $build_configdirs " in
7804 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7805 esac
7807 for ac_prog in bison
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_BISON+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 if test -n "$BISON"; then
7817 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_BISON="$ac_prog"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7830 done
7831 done
7832 IFS=$as_save_IFS
7836 BISON=$ac_cv_prog_BISON
7837 if test -n "$BISON"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7839 $as_echo "$BISON" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7846 test -n "$BISON" && break
7847 done
7848 test -n "$BISON" || BISON="$MISSING bison"
7850 case " $build_configdirs " in
7851 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7852 esac
7854 for ac_prog in gm4 gnum4 m4
7856 # Extract the first word of "$ac_prog", so it can be a program name with args.
7857 set dummy $ac_prog; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if test "${ac_cv_prog_M4+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 if test -n "$M4"; then
7864 ac_cv_prog_M4="$M4" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7873 ac_cv_prog_M4="$ac_prog"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7877 done
7878 done
7879 IFS=$as_save_IFS
7883 M4=$ac_cv_prog_M4
7884 if test -n "$M4"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7886 $as_echo "$M4" >&6; }
7887 else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7893 test -n "$M4" && break
7894 done
7895 test -n "$M4" || M4="$MISSING m4"
7897 case " $build_configdirs " in
7898 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7899 esac
7901 for ac_prog in flex lex
7903 # Extract the first word of "$ac_prog", so it can be a program name with args.
7904 set dummy $ac_prog; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if test "${ac_cv_prog_LEX+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 if test -n "$LEX"; then
7911 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7912 else
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7920 ac_cv_prog_LEX="$ac_prog"
7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 break 2
7924 done
7925 done
7926 IFS=$as_save_IFS
7930 LEX=$ac_cv_prog_LEX
7931 if test -n "$LEX"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7933 $as_echo "$LEX" >&6; }
7934 else
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7940 test -n "$LEX" && break
7941 done
7942 test -n "$LEX" || LEX="$MISSING flex"
7944 case " $build_configdirs " in
7945 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7946 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7947 esac
7949 for ac_prog in flex
7951 # Extract the first word of "$ac_prog", so it can be a program name with args.
7952 set dummy $ac_prog; ac_word=$2
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 $as_echo_n "checking for $ac_word... " >&6; }
7955 if test "${ac_cv_prog_FLEX+set}" = set; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 if test -n "$FLEX"; then
7959 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7960 else
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7968 ac_cv_prog_FLEX="$ac_prog"
7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7972 done
7973 done
7974 IFS=$as_save_IFS
7978 FLEX=$ac_cv_prog_FLEX
7979 if test -n "$FLEX"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7981 $as_echo "$FLEX" >&6; }
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7988 test -n "$FLEX" && break
7989 done
7990 test -n "$FLEX" || FLEX="$MISSING flex"
7992 case " $build_configdirs " in
7993 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7994 esac
7996 for ac_prog in makeinfo
7998 # Extract the first word of "$ac_prog", so it can be a program name with args.
7999 set dummy $ac_prog; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$MAKEINFO"; then
8006 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_MAKEINFO="$ac_prog"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8019 done
8020 done
8021 IFS=$as_save_IFS
8025 MAKEINFO=$ac_cv_prog_MAKEINFO
8026 if test -n "$MAKEINFO"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8028 $as_echo "$MAKEINFO" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8035 test -n "$MAKEINFO" && break
8036 done
8037 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8039 case " $build_configdirs " in
8040 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8043 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8044 # higher, else we use the "missing" dummy.
8045 if ${MAKEINFO} --version \
8046 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8048 else
8049 MAKEINFO="$MISSING makeinfo"
8053 esac
8055 # FIXME: expect and dejagnu may become build tools?
8057 for ac_prog in expect
8059 # Extract the first word of "$ac_prog", so it can be a program name with args.
8060 set dummy $ac_prog; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 if test -n "$EXPECT"; then
8067 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_prog_EXPECT="$ac_prog"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8080 done
8081 done
8082 IFS=$as_save_IFS
8086 EXPECT=$ac_cv_prog_EXPECT
8087 if test -n "$EXPECT"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8089 $as_echo "$EXPECT" >&6; }
8090 else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8096 test -n "$EXPECT" && break
8097 done
8098 test -n "$EXPECT" || EXPECT="expect"
8100 case " $configdirs " in
8101 *" expect "*)
8102 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8104 esac
8106 for ac_prog in runtest
8108 # Extract the first word of "$ac_prog", so it can be a program name with args.
8109 set dummy $ac_prog; ac_word=$2
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111 $as_echo_n "checking for $ac_word... " >&6; }
8112 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8115 if test -n "$RUNTEST"; then
8116 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8117 else
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8125 ac_cv_prog_RUNTEST="$ac_prog"
8126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 break 2
8129 done
8130 done
8131 IFS=$as_save_IFS
8135 RUNTEST=$ac_cv_prog_RUNTEST
8136 if test -n "$RUNTEST"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8138 $as_echo "$RUNTEST" >&6; }
8139 else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8145 test -n "$RUNTEST" && break
8146 done
8147 test -n "$RUNTEST" || RUNTEST="runtest"
8149 case " $configdirs " in
8150 *" dejagnu "*)
8151 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8153 esac
8156 # Host tools.
8157 ncn_tool_prefix=
8158 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8159 ncn_target_tool_prefix=
8160 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8164 if test -n "$AR"; then
8165 ac_cv_prog_AR=$AR
8166 elif test -n "$ac_cv_prog_AR"; then
8167 AR=$ac_cv_prog_AR
8170 if test -n "$ac_cv_prog_AR"; then
8171 for ncn_progname in ar; do
8172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8173 set dummy ${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_AR+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 if test -n "$AR"; then
8180 ac_cv_prog_AR="$AR" # 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_AR="${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 AR=$ac_cv_prog_AR
8200 if test -n "$AR"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8202 $as_echo "$AR" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8209 done
8212 for ncn_progname in ar; do
8213 if test -n "$ncn_tool_prefix"; then
8214 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8215 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_prog_AR+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 if test -n "$AR"; then
8222 ac_cv_prog_AR="$AR" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8235 done
8236 done
8237 IFS=$as_save_IFS
8241 AR=$ac_cv_prog_AR
8242 if test -n "$AR"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8244 $as_echo "$AR" >&6; }
8245 else
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8252 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8254 set dummy ${ncn_progname}; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if test "${ac_cv_prog_AR+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if test -n "$AR"; then
8261 ac_cv_prog_AR="$AR" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8270 ac_cv_prog_AR="${ncn_progname}"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8274 done
8275 done
8276 IFS=$as_save_IFS
8280 AR=$ac_cv_prog_AR
8281 if test -n "$AR"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8283 $as_echo "$AR" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8291 test -n "$ac_cv_prog_AR" && break
8292 done
8294 if test -z "$ac_cv_prog_AR" ; then
8295 set dummy ar
8296 if test $build = $host ; then
8297 AR="$2"
8298 else
8299 AR="${ncn_tool_prefix}$2"
8305 if test -n "$AS"; then
8306 ac_cv_prog_AS=$AS
8307 elif test -n "$ac_cv_prog_AS"; then
8308 AS=$ac_cv_prog_AS
8311 if test -n "$ac_cv_prog_AS"; then
8312 for ncn_progname in as; do
8313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8314 set dummy ${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_AS+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 if test -n "$AS"; then
8321 ac_cv_prog_AS="$AS" # 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_AS="${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 AS=$ac_cv_prog_AS
8341 if test -n "$AS"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8343 $as_echo "$AS" >&6; }
8344 else
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8350 done
8353 for ncn_progname in as; do
8354 if test -n "$ncn_tool_prefix"; then
8355 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8356 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_AS+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 if test -n "$AS"; then
8363 ac_cv_prog_AS="$AS" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8376 done
8377 done
8378 IFS=$as_save_IFS
8382 AS=$ac_cv_prog_AS
8383 if test -n "$AS"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8385 $as_echo "$AS" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8393 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8395 set dummy ${ncn_progname}; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if test "${ac_cv_prog_AS+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 if test -n "$AS"; then
8402 ac_cv_prog_AS="$AS" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411 ac_cv_prog_AS="${ncn_progname}"
8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8415 done
8416 done
8417 IFS=$as_save_IFS
8421 AS=$ac_cv_prog_AS
8422 if test -n "$AS"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8424 $as_echo "$AS" >&6; }
8425 else
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8432 test -n "$ac_cv_prog_AS" && break
8433 done
8435 if test -z "$ac_cv_prog_AS" ; then
8436 set dummy as
8437 if test $build = $host ; then
8438 AS="$2"
8439 else
8440 AS="${ncn_tool_prefix}$2"
8446 if test -n "$DLLTOOL"; then
8447 ac_cv_prog_DLLTOOL=$DLLTOOL
8448 elif test -n "$ac_cv_prog_DLLTOOL"; then
8449 DLLTOOL=$ac_cv_prog_DLLTOOL
8452 if test -n "$ac_cv_prog_DLLTOOL"; then
8453 for ncn_progname in dlltool; do
8454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8455 set dummy ${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_DLLTOOL+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 if test -n "$DLLTOOL"; then
8462 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${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 DLLTOOL=$ac_cv_prog_DLLTOOL
8482 if test -n "$DLLTOOL"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8484 $as_echo "$DLLTOOL" >&6; }
8485 else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8491 done
8494 for ncn_progname in dlltool; do
8495 if test -n "$ncn_tool_prefix"; then
8496 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8497 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 if test -n "$DLLTOOL"; then
8504 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8505 else
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8513 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8517 done
8518 done
8519 IFS=$as_save_IFS
8523 DLLTOOL=$ac_cv_prog_DLLTOOL
8524 if test -n "$DLLTOOL"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8526 $as_echo "$DLLTOOL" >&6; }
8527 else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8534 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8536 set dummy ${ncn_progname}; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 if test -n "$DLLTOOL"; then
8543 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8544 else
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8552 ac_cv_prog_DLLTOOL="${ncn_progname}"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 break 2
8556 done
8557 done
8558 IFS=$as_save_IFS
8562 DLLTOOL=$ac_cv_prog_DLLTOOL
8563 if test -n "$DLLTOOL"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8565 $as_echo "$DLLTOOL" >&6; }
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8573 test -n "$ac_cv_prog_DLLTOOL" && break
8574 done
8576 if test -z "$ac_cv_prog_DLLTOOL" ; then
8577 set dummy dlltool
8578 if test $build = $host ; then
8579 DLLTOOL="$2"
8580 else
8581 DLLTOOL="${ncn_tool_prefix}$2"
8587 if test -n "$LD"; then
8588 ac_cv_prog_LD=$LD
8589 elif test -n "$ac_cv_prog_LD"; then
8590 LD=$ac_cv_prog_LD
8593 if test -n "$ac_cv_prog_LD"; then
8594 for ncn_progname in ld; do
8595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8596 set dummy ${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_LD+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 if test -n "$LD"; then
8603 ac_cv_prog_LD="$LD" # 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_LD="${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 LD=$ac_cv_prog_LD
8623 if test -n "$LD"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8625 $as_echo "$LD" >&6; }
8626 else
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8632 done
8635 for ncn_progname in ld; do
8636 if test -n "$ncn_tool_prefix"; then
8637 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8638 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if test "${ac_cv_prog_LD+set}" = set; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 if test -n "$LD"; then
8645 ac_cv_prog_LD="$LD" # Let the user override the test.
8646 else
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8658 done
8659 done
8660 IFS=$as_save_IFS
8664 LD=$ac_cv_prog_LD
8665 if test -n "$LD"; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8667 $as_echo "$LD" >&6; }
8668 else
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8675 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8677 set dummy ${ncn_progname}; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if test "${ac_cv_prog_LD+set}" = set; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 if test -n "$LD"; then
8684 ac_cv_prog_LD="$LD" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_prog_LD="${ncn_progname}"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 break 2
8697 done
8698 done
8699 IFS=$as_save_IFS
8703 LD=$ac_cv_prog_LD
8704 if test -n "$LD"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8706 $as_echo "$LD" >&6; }
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8714 test -n "$ac_cv_prog_LD" && break
8715 done
8717 if test -z "$ac_cv_prog_LD" ; then
8718 set dummy ld
8719 if test $build = $host ; then
8720 LD="$2"
8721 else
8722 LD="${ncn_tool_prefix}$2"
8728 if test -n "$LIPO"; then
8729 ac_cv_prog_LIPO=$LIPO
8730 elif test -n "$ac_cv_prog_LIPO"; then
8731 LIPO=$ac_cv_prog_LIPO
8734 if test -n "$ac_cv_prog_LIPO"; then
8735 for ncn_progname in lipo; do
8736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8737 set dummy ${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_LIPO+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 if test -n "$LIPO"; then
8744 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${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 LIPO=$ac_cv_prog_LIPO
8764 if test -n "$LIPO"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8766 $as_echo "$LIPO" >&6; }
8767 else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8773 done
8776 for ncn_progname in lipo; do
8777 if test -n "$ncn_tool_prefix"; then
8778 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8779 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if test "${ac_cv_prog_LIPO+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 if test -n "$LIPO"; then
8786 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8787 else
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8795 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8799 done
8800 done
8801 IFS=$as_save_IFS
8805 LIPO=$ac_cv_prog_LIPO
8806 if test -n "$LIPO"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8808 $as_echo "$LIPO" >&6; }
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8816 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8818 set dummy ${ncn_progname}; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if test "${ac_cv_prog_LIPO+set}" = set; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 if test -n "$LIPO"; then
8825 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8826 else
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8830 IFS=$as_save_IFS
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8834 ac_cv_prog_LIPO="${ncn_progname}"
8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 break 2
8838 done
8839 done
8840 IFS=$as_save_IFS
8844 LIPO=$ac_cv_prog_LIPO
8845 if test -n "$LIPO"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8847 $as_echo "$LIPO" >&6; }
8848 else
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8855 test -n "$ac_cv_prog_LIPO" && break
8856 done
8858 if test -z "$ac_cv_prog_LIPO" ; then
8859 set dummy lipo
8860 if test $build = $host ; then
8861 LIPO="$2"
8862 else
8863 LIPO="${ncn_tool_prefix}$2"
8869 if test -n "$NM"; then
8870 ac_cv_prog_NM=$NM
8871 elif test -n "$ac_cv_prog_NM"; then
8872 NM=$ac_cv_prog_NM
8875 if test -n "$ac_cv_prog_NM"; then
8876 for ncn_progname in nm; do
8877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8878 set dummy ${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_NM+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 if test -n "$NM"; then
8885 ac_cv_prog_NM="$NM" # 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_NM="${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 NM=$ac_cv_prog_NM
8905 if test -n "$NM"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8907 $as_echo "$NM" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8914 done
8917 for ncn_progname in nm; do
8918 if test -n "$ncn_tool_prefix"; then
8919 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8920 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if test "${ac_cv_prog_NM+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 if test -n "$NM"; then
8927 ac_cv_prog_NM="$NM" # Let the user override the test.
8928 else
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 break 2
8940 done
8941 done
8942 IFS=$as_save_IFS
8946 NM=$ac_cv_prog_NM
8947 if test -n "$NM"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8949 $as_echo "$NM" >&6; }
8950 else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8957 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8959 set dummy ${ncn_progname}; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if test "${ac_cv_prog_NM+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 if test -n "$NM"; then
8966 ac_cv_prog_NM="$NM" # Let the user override the test.
8967 else
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8975 ac_cv_prog_NM="${ncn_progname}"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8979 done
8980 done
8981 IFS=$as_save_IFS
8985 NM=$ac_cv_prog_NM
8986 if test -n "$NM"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8988 $as_echo "$NM" >&6; }
8989 else
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8996 test -n "$ac_cv_prog_NM" && break
8997 done
8999 if test -z "$ac_cv_prog_NM" ; then
9000 set dummy nm
9001 if test $build = $host ; then
9002 NM="$2"
9003 else
9004 NM="${ncn_tool_prefix}$2"
9010 if test -n "$RANLIB"; then
9011 ac_cv_prog_RANLIB=$RANLIB
9012 elif test -n "$ac_cv_prog_RANLIB"; then
9013 RANLIB=$ac_cv_prog_RANLIB
9016 if test -n "$ac_cv_prog_RANLIB"; then
9017 for ncn_progname in ranlib; do
9018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9019 set dummy ${ncn_progname}; ac_word=$2
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021 $as_echo_n "checking for $ac_word... " >&6; }
9022 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 if test -n "$RANLIB"; then
9026 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9027 else
9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029 for as_dir in $PATH
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9035 ac_cv_prog_RANLIB="${ncn_progname}"
9036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9037 break 2
9039 done
9040 done
9041 IFS=$as_save_IFS
9045 RANLIB=$ac_cv_prog_RANLIB
9046 if test -n "$RANLIB"; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9048 $as_echo "$RANLIB" >&6; }
9049 else
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 $as_echo "no" >&6; }
9055 done
9058 for ncn_progname in ranlib; do
9059 if test -n "$ncn_tool_prefix"; then
9060 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9061 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063 $as_echo_n "checking for $ac_word... " >&6; }
9064 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 if test -n "$RANLIB"; then
9068 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9069 else
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071 for as_dir in $PATH
9073 IFS=$as_save_IFS
9074 test -z "$as_dir" && as_dir=.
9075 for ac_exec_ext in '' $ac_executable_extensions; do
9076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9077 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9079 break 2
9081 done
9082 done
9083 IFS=$as_save_IFS
9087 RANLIB=$ac_cv_prog_RANLIB
9088 if test -n "$RANLIB"; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9090 $as_echo "$RANLIB" >&6; }
9091 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9098 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9100 set dummy ${ncn_progname}; ac_word=$2
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9102 $as_echo_n "checking for $ac_word... " >&6; }
9103 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 if test -n "$RANLIB"; then
9107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9108 else
9109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110 for as_dir in $PATH
9112 IFS=$as_save_IFS
9113 test -z "$as_dir" && as_dir=.
9114 for ac_exec_ext in '' $ac_executable_extensions; do
9115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9116 ac_cv_prog_RANLIB="${ncn_progname}"
9117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9118 break 2
9120 done
9121 done
9122 IFS=$as_save_IFS
9126 RANLIB=$ac_cv_prog_RANLIB
9127 if test -n "$RANLIB"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9129 $as_echo "$RANLIB" >&6; }
9130 else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9137 test -n "$ac_cv_prog_RANLIB" && break
9138 done
9140 if test -z "$ac_cv_prog_RANLIB" ; then
9141 RANLIB="true"
9146 if test -n "$STRIP"; then
9147 ac_cv_prog_STRIP=$STRIP
9148 elif test -n "$ac_cv_prog_STRIP"; then
9149 STRIP=$ac_cv_prog_STRIP
9152 if test -n "$ac_cv_prog_STRIP"; then
9153 for ncn_progname in strip; do
9154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9155 set dummy ${ncn_progname}; ac_word=$2
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 if test "${ac_cv_prog_STRIP+set}" = set; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 if test -n "$STRIP"; then
9162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9163 else
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9171 ac_cv_prog_STRIP="${ncn_progname}"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9175 done
9176 done
9177 IFS=$as_save_IFS
9181 STRIP=$ac_cv_prog_STRIP
9182 if test -n "$STRIP"; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9184 $as_echo "$STRIP" >&6; }
9185 else
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 $as_echo "no" >&6; }
9191 done
9194 for ncn_progname in strip; do
9195 if test -n "$ncn_tool_prefix"; then
9196 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9197 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9199 $as_echo_n "checking for $ac_word... " >&6; }
9200 if test "${ac_cv_prog_STRIP+set}" = set; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 if test -n "$STRIP"; then
9204 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9205 else
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 for as_dir in $PATH
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9213 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9217 done
9218 done
9219 IFS=$as_save_IFS
9223 STRIP=$ac_cv_prog_STRIP
9224 if test -n "$STRIP"; then
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9226 $as_echo "$STRIP" >&6; }
9227 else
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 $as_echo "no" >&6; }
9234 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9236 set dummy ${ncn_progname}; ac_word=$2
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if test "${ac_cv_prog_STRIP+set}" = set; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 if test -n "$STRIP"; then
9243 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9244 else
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 for as_dir in $PATH
9248 IFS=$as_save_IFS
9249 test -z "$as_dir" && as_dir=.
9250 for ac_exec_ext in '' $ac_executable_extensions; do
9251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9252 ac_cv_prog_STRIP="${ncn_progname}"
9253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254 break 2
9256 done
9257 done
9258 IFS=$as_save_IFS
9262 STRIP=$ac_cv_prog_STRIP
9263 if test -n "$STRIP"; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9265 $as_echo "$STRIP" >&6; }
9266 else
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268 $as_echo "no" >&6; }
9273 test -n "$ac_cv_prog_STRIP" && break
9274 done
9276 if test -z "$ac_cv_prog_STRIP" ; then
9277 STRIP="true"
9282 if test -n "$WINDRES"; then
9283 ac_cv_prog_WINDRES=$WINDRES
9284 elif test -n "$ac_cv_prog_WINDRES"; then
9285 WINDRES=$ac_cv_prog_WINDRES
9288 if test -n "$ac_cv_prog_WINDRES"; then
9289 for ncn_progname in windres; do
9290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9291 set dummy ${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_WINDRES+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 if test -n "$WINDRES"; then
9298 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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 WINDRES=$ac_cv_prog_WINDRES
9318 if test -n "$WINDRES"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9320 $as_echo "$WINDRES" >&6; }
9321 else
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9327 done
9330 for ncn_progname in windres; do
9331 if test -n "$ncn_tool_prefix"; then
9332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 if test -n "$WINDRES"; then
9340 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9341 else
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9353 done
9354 done
9355 IFS=$as_save_IFS
9359 WINDRES=$ac_cv_prog_WINDRES
9360 if test -n "$WINDRES"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9362 $as_echo "$WINDRES" >&6; }
9363 else
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9370 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9372 set dummy ${ncn_progname}; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 if test -n "$WINDRES"; then
9379 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9380 else
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9384 IFS=$as_save_IFS
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9388 ac_cv_prog_WINDRES="${ncn_progname}"
9389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390 break 2
9392 done
9393 done
9394 IFS=$as_save_IFS
9398 WINDRES=$ac_cv_prog_WINDRES
9399 if test -n "$WINDRES"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9401 $as_echo "$WINDRES" >&6; }
9402 else
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9409 test -n "$ac_cv_prog_WINDRES" && break
9410 done
9412 if test -z "$ac_cv_prog_WINDRES" ; then
9413 set dummy windres
9414 if test $build = $host ; then
9415 WINDRES="$2"
9416 else
9417 WINDRES="${ncn_tool_prefix}$2"
9423 if test -n "$WINDMC"; then
9424 ac_cv_prog_WINDMC=$WINDMC
9425 elif test -n "$ac_cv_prog_WINDMC"; then
9426 WINDMC=$ac_cv_prog_WINDMC
9429 if test -n "$ac_cv_prog_WINDMC"; then
9430 for ncn_progname in windmc; do
9431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9432 set dummy ${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_WINDMC+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 if test -n "$WINDMC"; then
9439 ac_cv_prog_WINDMC="$WINDMC" # 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_WINDMC="${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 WINDMC=$ac_cv_prog_WINDMC
9459 if test -n "$WINDMC"; then
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9461 $as_echo "$WINDMC" >&6; }
9462 else
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 $as_echo "no" >&6; }
9468 done
9471 for ncn_progname in windmc; do
9472 if test -n "$ncn_tool_prefix"; then
9473 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9474 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9476 $as_echo_n "checking for $ac_word... " >&6; }
9477 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 if test -n "$WINDMC"; then
9481 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9482 else
9483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9484 for as_dir in $PATH
9486 IFS=$as_save_IFS
9487 test -z "$as_dir" && as_dir=.
9488 for ac_exec_ext in '' $ac_executable_extensions; do
9489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9490 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9492 break 2
9494 done
9495 done
9496 IFS=$as_save_IFS
9500 WINDMC=$ac_cv_prog_WINDMC
9501 if test -n "$WINDMC"; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9503 $as_echo "$WINDMC" >&6; }
9504 else
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9506 $as_echo "no" >&6; }
9511 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9513 set dummy ${ncn_progname}; ac_word=$2
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515 $as_echo_n "checking for $ac_word... " >&6; }
9516 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 if test -n "$WINDMC"; then
9520 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9521 else
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9525 IFS=$as_save_IFS
9526 test -z "$as_dir" && as_dir=.
9527 for ac_exec_ext in '' $ac_executable_extensions; do
9528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9529 ac_cv_prog_WINDMC="${ncn_progname}"
9530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531 break 2
9533 done
9534 done
9535 IFS=$as_save_IFS
9539 WINDMC=$ac_cv_prog_WINDMC
9540 if test -n "$WINDMC"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9542 $as_echo "$WINDMC" >&6; }
9543 else
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9550 test -n "$ac_cv_prog_WINDMC" && break
9551 done
9553 if test -z "$ac_cv_prog_WINDMC" ; then
9554 set dummy windmc
9555 if test $build = $host ; then
9556 WINDMC="$2"
9557 else
9558 WINDMC="${ncn_tool_prefix}$2"
9564 if test -n "$OBJCOPY"; then
9565 ac_cv_prog_OBJCOPY=$OBJCOPY
9566 elif test -n "$ac_cv_prog_OBJCOPY"; then
9567 OBJCOPY=$ac_cv_prog_OBJCOPY
9570 if test -n "$ac_cv_prog_OBJCOPY"; then
9571 for ncn_progname in objcopy; do
9572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9573 set dummy ${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_OBJCOPY+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 if test -n "$OBJCOPY"; then
9580 ac_cv_prog_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="${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 OBJCOPY=$ac_cv_prog_OBJCOPY
9600 if test -n "$OBJCOPY"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9602 $as_echo "$OBJCOPY" >&6; }
9603 else
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9609 done
9612 for ncn_progname in objcopy; do
9613 if test -n "$ncn_tool_prefix"; then
9614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9615 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9617 $as_echo_n "checking for $ac_word... " >&6; }
9618 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 if test -n "$OBJCOPY"; then
9622 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9623 else
9624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625 for as_dir in $PATH
9627 IFS=$as_save_IFS
9628 test -z "$as_dir" && as_dir=.
9629 for ac_exec_ext in '' $ac_executable_extensions; do
9630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9631 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9633 break 2
9635 done
9636 done
9637 IFS=$as_save_IFS
9641 OBJCOPY=$ac_cv_prog_OBJCOPY
9642 if test -n "$OBJCOPY"; then
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9644 $as_echo "$OBJCOPY" >&6; }
9645 else
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9647 $as_echo "no" >&6; }
9652 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9654 set dummy ${ncn_progname}; ac_word=$2
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 $as_echo_n "checking for $ac_word... " >&6; }
9657 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 if test -n "$OBJCOPY"; then
9661 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9662 else
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664 for as_dir in $PATH
9666 IFS=$as_save_IFS
9667 test -z "$as_dir" && as_dir=.
9668 for ac_exec_ext in '' $ac_executable_extensions; do
9669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9670 ac_cv_prog_OBJCOPY="${ncn_progname}"
9671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9672 break 2
9674 done
9675 done
9676 IFS=$as_save_IFS
9680 OBJCOPY=$ac_cv_prog_OBJCOPY
9681 if test -n "$OBJCOPY"; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9683 $as_echo "$OBJCOPY" >&6; }
9684 else
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686 $as_echo "no" >&6; }
9691 test -n "$ac_cv_prog_OBJCOPY" && break
9692 done
9694 if test -z "$ac_cv_prog_OBJCOPY" ; then
9695 set dummy objcopy
9696 if test $build = $host ; then
9697 OBJCOPY="$2"
9698 else
9699 OBJCOPY="${ncn_tool_prefix}$2"
9705 if test -n "$OBJDUMP"; then
9706 ac_cv_prog_OBJDUMP=$OBJDUMP
9707 elif test -n "$ac_cv_prog_OBJDUMP"; then
9708 OBJDUMP=$ac_cv_prog_OBJDUMP
9711 if test -n "$ac_cv_prog_OBJDUMP"; then
9712 for ncn_progname in objdump; do
9713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9714 set dummy ${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_OBJDUMP+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 if test -n "$OBJDUMP"; then
9721 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${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 OBJDUMP=$ac_cv_prog_OBJDUMP
9741 if test -n "$OBJDUMP"; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9743 $as_echo "$OBJDUMP" >&6; }
9744 else
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9750 done
9753 for ncn_progname in objdump; do
9754 if test -n "$ncn_tool_prefix"; then
9755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9756 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 if test -n "$OBJDUMP"; then
9763 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9764 else
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 for as_dir in $PATH
9768 IFS=$as_save_IFS
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9772 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9774 break 2
9776 done
9777 done
9778 IFS=$as_save_IFS
9782 OBJDUMP=$ac_cv_prog_OBJDUMP
9783 if test -n "$OBJDUMP"; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9785 $as_echo "$OBJDUMP" >&6; }
9786 else
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9793 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9795 set dummy ${ncn_progname}; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 if test -n "$OBJDUMP"; then
9802 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9811 ac_cv_prog_OBJDUMP="${ncn_progname}"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9815 done
9816 done
9817 IFS=$as_save_IFS
9821 OBJDUMP=$ac_cv_prog_OBJDUMP
9822 if test -n "$OBJDUMP"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9824 $as_echo "$OBJDUMP" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9832 test -n "$ac_cv_prog_OBJDUMP" && break
9833 done
9835 if test -z "$ac_cv_prog_OBJDUMP" ; then
9836 set dummy objdump
9837 if test $build = $host ; then
9838 OBJDUMP="$2"
9839 else
9840 OBJDUMP="${ncn_tool_prefix}$2"
9846 if test -n "$READELF"; then
9847 ac_cv_prog_READELF=$READELF
9848 elif test -n "$ac_cv_prog_READELF"; then
9849 READELF=$ac_cv_prog_READELF
9852 if test -n "$ac_cv_prog_READELF"; then
9853 for ncn_progname in readelf; do
9854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9855 set dummy ${ncn_progname}; ac_word=$2
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 $as_echo_n "checking for $ac_word... " >&6; }
9858 if test "${ac_cv_prog_READELF+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9860 else
9861 if test -n "$READELF"; then
9862 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9863 else
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 for as_dir in $PATH
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871 ac_cv_prog_READELF="${ncn_progname}"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9875 done
9876 done
9877 IFS=$as_save_IFS
9881 READELF=$ac_cv_prog_READELF
9882 if test -n "$READELF"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9884 $as_echo "$READELF" >&6; }
9885 else
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887 $as_echo "no" >&6; }
9891 done
9894 for ncn_progname in readelf; do
9895 if test -n "$ncn_tool_prefix"; then
9896 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9897 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9899 $as_echo_n "checking for $ac_word... " >&6; }
9900 if test "${ac_cv_prog_READELF+set}" = set; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 if test -n "$READELF"; then
9904 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9905 else
9906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907 for as_dir in $PATH
9909 IFS=$as_save_IFS
9910 test -z "$as_dir" && as_dir=.
9911 for ac_exec_ext in '' $ac_executable_extensions; do
9912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9913 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9915 break 2
9917 done
9918 done
9919 IFS=$as_save_IFS
9923 READELF=$ac_cv_prog_READELF
9924 if test -n "$READELF"; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9926 $as_echo "$READELF" >&6; }
9927 else
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929 $as_echo "no" >&6; }
9934 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9936 set dummy ${ncn_progname}; ac_word=$2
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 $as_echo_n "checking for $ac_word... " >&6; }
9939 if test "${ac_cv_prog_READELF+set}" = set; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 if test -n "$READELF"; then
9943 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9944 else
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9952 ac_cv_prog_READELF="${ncn_progname}"
9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9956 done
9957 done
9958 IFS=$as_save_IFS
9962 READELF=$ac_cv_prog_READELF
9963 if test -n "$READELF"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9965 $as_echo "$READELF" >&6; }
9966 else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9973 test -n "$ac_cv_prog_READELF" && break
9974 done
9976 if test -z "$ac_cv_prog_READELF" ; then
9977 set dummy readelf
9978 if test $build = $host ; then
9979 READELF="$2"
9980 else
9981 READELF="${ncn_tool_prefix}$2"
9990 # Target tools.
9992 # Check whether --with-build-time-tools was given.
9993 if test "${with_build_time_tools+set}" = set; then :
9994 withval=$with_build_time_tools; case x"$withval" in
9995 x/*) ;;
9997 with_build_time_tools=
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9999 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10001 esac
10002 else
10003 with_build_time_tools=
10009 if test -n "$CC_FOR_TARGET"; then
10010 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10011 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10012 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10015 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10016 for ncn_progname in cc gcc; do
10017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10018 set dummy ${ncn_progname}; ac_word=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 if test -n "$CC_FOR_TARGET"; then
10025 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10026 else
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10038 done
10039 done
10040 IFS=$as_save_IFS
10044 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10045 if test -n "$CC_FOR_TARGET"; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10047 $as_echo "$CC_FOR_TARGET" >&6; }
10048 else
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050 $as_echo "no" >&6; }
10054 done
10057 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10058 for ncn_progname in cc gcc; do
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10060 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10061 if test -x $with_build_time_tools/${ncn_progname}; then
10062 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10064 $as_echo "yes" >&6; }
10065 break
10066 else
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068 $as_echo "no" >&6; }
10070 done
10073 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10074 for ncn_progname in cc gcc; do
10075 if test -n "$ncn_target_tool_prefix"; then
10076 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10077 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 if test -n "$CC_FOR_TARGET"; then
10084 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10085 else
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10093 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 break 2
10097 done
10098 done
10099 IFS=$as_save_IFS
10103 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10104 if test -n "$CC_FOR_TARGET"; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10106 $as_echo "$CC_FOR_TARGET" >&6; }
10107 else
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10114 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10116 set dummy ${ncn_progname}; ac_word=$2
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10118 $as_echo_n "checking for $ac_word... " >&6; }
10119 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10120 $as_echo_n "(cached) " >&6
10121 else
10122 if test -n "$CC_FOR_TARGET"; then
10123 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10124 else
10125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10126 for as_dir in $PATH
10128 IFS=$as_save_IFS
10129 test -z "$as_dir" && as_dir=.
10130 for ac_exec_ext in '' $ac_executable_extensions; do
10131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10132 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10134 break 2
10136 done
10137 done
10138 IFS=$as_save_IFS
10142 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10143 if test -n "$CC_FOR_TARGET"; then
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10145 $as_echo "$CC_FOR_TARGET" >&6; }
10146 else
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10148 $as_echo "no" >&6; }
10153 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10154 done
10157 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10158 set dummy cc gcc
10159 if test $build = $target ; then
10160 CC_FOR_TARGET="$2"
10161 else
10162 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10164 else
10165 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10170 if test -n "$CXX_FOR_TARGET"; then
10171 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10172 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10173 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10176 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10177 for ncn_progname in c++ g++ cxx gxx; do
10178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10179 set dummy ${ncn_progname}; ac_word=$2
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10181 $as_echo_n "checking for $ac_word... " >&6; }
10182 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 if test -n "$CXX_FOR_TARGET"; then
10186 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10187 else
10188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189 for as_dir in $PATH
10191 IFS=$as_save_IFS
10192 test -z "$as_dir" && as_dir=.
10193 for ac_exec_ext in '' $ac_executable_extensions; do
10194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10195 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10197 break 2
10199 done
10200 done
10201 IFS=$as_save_IFS
10205 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10206 if test -n "$CXX_FOR_TARGET"; then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10208 $as_echo "$CXX_FOR_TARGET" >&6; }
10209 else
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10215 done
10218 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10219 for ncn_progname in c++ g++ cxx gxx; do
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10221 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10222 if test -x $with_build_time_tools/${ncn_progname}; then
10223 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10225 $as_echo "yes" >&6; }
10226 break
10227 else
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229 $as_echo "no" >&6; }
10231 done
10234 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10235 for ncn_progname in c++ g++ cxx gxx; do
10236 if test -n "$ncn_target_tool_prefix"; then
10237 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10238 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10240 $as_echo_n "checking for $ac_word... " >&6; }
10241 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 if test -n "$CXX_FOR_TARGET"; then
10245 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10246 else
10247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10256 break 2
10258 done
10259 done
10260 IFS=$as_save_IFS
10264 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10265 if test -n "$CXX_FOR_TARGET"; then
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10267 $as_echo "$CXX_FOR_TARGET" >&6; }
10268 else
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10275 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10277 set dummy ${ncn_progname}; ac_word=$2
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 $as_echo_n "checking for $ac_word... " >&6; }
10280 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283 if test -n "$CXX_FOR_TARGET"; then
10284 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10285 else
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10293 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 break 2
10297 done
10298 done
10299 IFS=$as_save_IFS
10303 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10304 if test -n "$CXX_FOR_TARGET"; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10306 $as_echo "$CXX_FOR_TARGET" >&6; }
10307 else
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309 $as_echo "no" >&6; }
10314 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10315 done
10318 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10319 set dummy c++ g++ cxx gxx
10320 if test $build = $target ; then
10321 CXX_FOR_TARGET="$2"
10322 else
10323 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10325 else
10326 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10331 if test -n "$GCC_FOR_TARGET"; then
10332 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10333 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10334 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10337 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10338 for ncn_progname in gcc; do
10339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10340 set dummy ${ncn_progname}; ac_word=$2
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342 $as_echo_n "checking for $ac_word... " >&6; }
10343 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 if test -n "$GCC_FOR_TARGET"; then
10347 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10348 else
10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10356 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10358 break 2
10360 done
10361 done
10362 IFS=$as_save_IFS
10366 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10367 if test -n "$GCC_FOR_TARGET"; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10369 $as_echo "$GCC_FOR_TARGET" >&6; }
10370 else
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; }
10376 done
10379 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10380 for ncn_progname in gcc; do
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10382 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10383 if test -x $with_build_time_tools/${ncn_progname}; then
10384 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10386 $as_echo "yes" >&6; }
10387 break
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10392 done
10395 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10396 for ncn_progname in gcc; do
10397 if test -n "$ncn_target_tool_prefix"; then
10398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10399 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 if test -n "$GCC_FOR_TARGET"; then
10406 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10407 else
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409 for as_dir in $PATH
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10415 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 break 2
10419 done
10420 done
10421 IFS=$as_save_IFS
10425 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10426 if test -n "$GCC_FOR_TARGET"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10428 $as_echo "$GCC_FOR_TARGET" >&6; }
10429 else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10436 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10438 set dummy ${ncn_progname}; ac_word=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440 $as_echo_n "checking for $ac_word... " >&6; }
10441 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 if test -n "$GCC_FOR_TARGET"; then
10445 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10446 else
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in $PATH
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10454 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10458 done
10459 done
10460 IFS=$as_save_IFS
10464 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10465 if test -n "$GCC_FOR_TARGET"; then
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10467 $as_echo "$GCC_FOR_TARGET" >&6; }
10468 else
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470 $as_echo "no" >&6; }
10475 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10476 done
10479 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10480 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10481 else
10482 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10487 if test -n "$GFORTRAN_FOR_TARGET"; then
10488 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10489 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10490 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10493 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10494 for ncn_progname in gfortran; do
10495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10496 set dummy ${ncn_progname}; ac_word=$2
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10498 $as_echo_n "checking for $ac_word... " >&6; }
10499 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10502 if test -n "$GFORTRAN_FOR_TARGET"; then
10503 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10504 else
10505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506 for as_dir in $PATH
10508 IFS=$as_save_IFS
10509 test -z "$as_dir" && as_dir=.
10510 for ac_exec_ext in '' $ac_executable_extensions; do
10511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10512 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10514 break 2
10516 done
10517 done
10518 IFS=$as_save_IFS
10522 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10523 if test -n "$GFORTRAN_FOR_TARGET"; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10525 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10526 else
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10532 done
10535 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10536 for ncn_progname in gfortran; do
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10538 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10539 if test -x $with_build_time_tools/${ncn_progname}; then
10540 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10542 $as_echo "yes" >&6; }
10543 break
10544 else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10548 done
10551 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10552 for ncn_progname in gfortran; do
10553 if test -n "$ncn_target_tool_prefix"; then
10554 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10555 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557 $as_echo_n "checking for $ac_word... " >&6; }
10558 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 if test -n "$GFORTRAN_FOR_TARGET"; then
10562 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10563 else
10564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565 for as_dir in $PATH
10567 IFS=$as_save_IFS
10568 test -z "$as_dir" && as_dir=.
10569 for ac_exec_ext in '' $ac_executable_extensions; do
10570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10571 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573 break 2
10575 done
10576 done
10577 IFS=$as_save_IFS
10581 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10582 if test -n "$GFORTRAN_FOR_TARGET"; then
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10584 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10585 else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587 $as_echo "no" >&6; }
10592 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10594 set dummy ${ncn_progname}; ac_word=$2
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10596 $as_echo_n "checking for $ac_word... " >&6; }
10597 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10598 $as_echo_n "(cached) " >&6
10599 else
10600 if test -n "$GFORTRAN_FOR_TARGET"; then
10601 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10602 else
10603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10604 for as_dir in $PATH
10606 IFS=$as_save_IFS
10607 test -z "$as_dir" && as_dir=.
10608 for ac_exec_ext in '' $ac_executable_extensions; do
10609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10610 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10612 break 2
10614 done
10615 done
10616 IFS=$as_save_IFS
10620 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10621 if test -n "$GFORTRAN_FOR_TARGET"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10623 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10624 else
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10631 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10632 done
10635 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10636 set dummy gfortran
10637 if test $build = $target ; then
10638 GFORTRAN_FOR_TARGET="$2"
10639 else
10640 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10642 else
10643 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10648 if test -n "$GOC_FOR_TARGET"; then
10649 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10650 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10651 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10654 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10655 for ncn_progname in gccgo; do
10656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10657 set dummy ${ncn_progname}; ac_word=$2
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10659 $as_echo_n "checking for $ac_word... " >&6; }
10660 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 if test -n "$GOC_FOR_TARGET"; then
10664 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10665 else
10666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10669 IFS=$as_save_IFS
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10673 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10675 break 2
10677 done
10678 done
10679 IFS=$as_save_IFS
10683 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10684 if test -n "$GOC_FOR_TARGET"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10686 $as_echo "$GOC_FOR_TARGET" >&6; }
10687 else
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10693 done
10696 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10697 for ncn_progname in gccgo; do
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10699 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10700 if test -x $with_build_time_tools/${ncn_progname}; then
10701 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10703 $as_echo "yes" >&6; }
10704 break
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10709 done
10712 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10713 for ncn_progname in gccgo; do
10714 if test -n "$ncn_target_tool_prefix"; then
10715 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10716 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718 $as_echo_n "checking for $ac_word... " >&6; }
10719 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 if test -n "$GOC_FOR_TARGET"; then
10723 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10724 else
10725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726 for as_dir in $PATH
10728 IFS=$as_save_IFS
10729 test -z "$as_dir" && as_dir=.
10730 for ac_exec_ext in '' $ac_executable_extensions; do
10731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10732 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10734 break 2
10736 done
10737 done
10738 IFS=$as_save_IFS
10742 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10743 if test -n "$GOC_FOR_TARGET"; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10745 $as_echo "$GOC_FOR_TARGET" >&6; }
10746 else
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748 $as_echo "no" >&6; }
10753 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10755 set dummy ${ncn_progname}; ac_word=$2
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757 $as_echo_n "checking for $ac_word... " >&6; }
10758 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 if test -n "$GOC_FOR_TARGET"; then
10762 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10763 else
10764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765 for as_dir in $PATH
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10771 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10773 break 2
10775 done
10776 done
10777 IFS=$as_save_IFS
10781 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10782 if test -n "$GOC_FOR_TARGET"; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10784 $as_echo "$GOC_FOR_TARGET" >&6; }
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10792 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10793 done
10796 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10797 set dummy gccgo
10798 if test $build = $target ; then
10799 GOC_FOR_TARGET="$2"
10800 else
10801 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10803 else
10804 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10809 cat > conftest.c << \EOF
10810 #ifdef __GNUC__
10811 gcc_yay;
10812 #endif
10814 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10815 have_gcc_for_target=yes
10816 else
10817 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10818 have_gcc_for_target=no
10820 rm conftest.c
10825 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10826 if test -n "$with_build_time_tools"; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10828 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10829 if test -x $with_build_time_tools/ar; then
10830 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10831 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10833 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10834 else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836 $as_echo "no" >&6; }
10838 elif test $build != $host && test $have_gcc_for_target = yes; then
10839 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10840 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10841 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10844 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10845 # Extract the first word of "ar", so it can be a program name with args.
10846 set dummy ar; ac_word=$2
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848 $as_echo_n "checking for $ac_word... " >&6; }
10849 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 case $AR_FOR_TARGET in
10853 [\\/]* | ?:[\\/]*)
10854 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858 for as_dir in $gcc_cv_tool_dirs
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10864 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10868 done
10869 done
10870 IFS=$as_save_IFS
10873 esac
10875 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10876 if test -n "$AR_FOR_TARGET"; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10878 $as_echo "$AR_FOR_TARGET" >&6; }
10879 else
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881 $as_echo "no" >&6; }
10886 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10889 if test -n "$AR_FOR_TARGET"; then
10890 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10891 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10892 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10895 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10896 for ncn_progname in ar; do
10897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10898 set dummy ${ncn_progname}; ac_word=$2
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900 $as_echo_n "checking for $ac_word... " >&6; }
10901 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 if test -n "$AR_FOR_TARGET"; then
10905 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10906 else
10907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908 for as_dir in $PATH
10910 IFS=$as_save_IFS
10911 test -z "$as_dir" && as_dir=.
10912 for ac_exec_ext in '' $ac_executable_extensions; do
10913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10914 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10916 break 2
10918 done
10919 done
10920 IFS=$as_save_IFS
10924 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10925 if test -n "$AR_FOR_TARGET"; then
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10927 $as_echo "$AR_FOR_TARGET" >&6; }
10928 else
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10930 $as_echo "no" >&6; }
10934 done
10937 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10938 for ncn_progname in ar; do
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10940 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10941 if test -x $with_build_time_tools/${ncn_progname}; then
10942 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10944 $as_echo "yes" >&6; }
10945 break
10946 else
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948 $as_echo "no" >&6; }
10950 done
10953 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10954 for ncn_progname in ar; do
10955 if test -n "$ncn_target_tool_prefix"; then
10956 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10957 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 if test -n "$AR_FOR_TARGET"; then
10964 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10965 else
10966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967 for as_dir in $PATH
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
10971 for ac_exec_ext in '' $ac_executable_extensions; do
10972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10973 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 break 2
10977 done
10978 done
10979 IFS=$as_save_IFS
10983 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10984 if test -n "$AR_FOR_TARGET"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10986 $as_echo "$AR_FOR_TARGET" >&6; }
10987 else
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989 $as_echo "no" >&6; }
10994 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10996 set dummy ${ncn_progname}; ac_word=$2
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10998 $as_echo_n "checking for $ac_word... " >&6; }
10999 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 if test -n "$AR_FOR_TARGET"; then
11003 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11004 else
11005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006 for as_dir in $PATH
11008 IFS=$as_save_IFS
11009 test -z "$as_dir" && as_dir=.
11010 for ac_exec_ext in '' $ac_executable_extensions; do
11011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11012 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11014 break 2
11016 done
11017 done
11018 IFS=$as_save_IFS
11022 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11023 if test -n "$AR_FOR_TARGET"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11025 $as_echo "$AR_FOR_TARGET" >&6; }
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; }
11033 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11034 done
11037 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11038 set dummy ar
11039 if test $build = $target ; then
11040 AR_FOR_TARGET="$2"
11041 else
11042 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11044 else
11045 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11048 else
11049 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11055 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11056 if test -n "$with_build_time_tools"; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11058 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11059 if test -x $with_build_time_tools/as; then
11060 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11061 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11063 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11068 elif test $build != $host && test $have_gcc_for_target = yes; then
11069 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11070 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11071 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11074 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11075 # Extract the first word of "as", so it can be a program name with args.
11076 set dummy as; ac_word=$2
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078 $as_echo_n "checking for $ac_word... " >&6; }
11079 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11082 case $AS_FOR_TARGET in
11083 [\\/]* | ?:[\\/]*)
11084 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11088 for as_dir in $gcc_cv_tool_dirs
11090 IFS=$as_save_IFS
11091 test -z "$as_dir" && as_dir=.
11092 for ac_exec_ext in '' $ac_executable_extensions; do
11093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11094 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11096 break 2
11098 done
11099 done
11100 IFS=$as_save_IFS
11103 esac
11105 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11106 if test -n "$AS_FOR_TARGET"; then
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11108 $as_echo "$AS_FOR_TARGET" >&6; }
11109 else
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 $as_echo "no" >&6; }
11116 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11119 if test -n "$AS_FOR_TARGET"; then
11120 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11121 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11122 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11125 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11126 for ncn_progname in as; do
11127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11128 set dummy ${ncn_progname}; ac_word=$2
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 $as_echo_n "checking for $ac_word... " >&6; }
11131 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 if test -n "$AS_FOR_TARGET"; then
11135 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11136 else
11137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138 for as_dir in $PATH
11140 IFS=$as_save_IFS
11141 test -z "$as_dir" && as_dir=.
11142 for ac_exec_ext in '' $ac_executable_extensions; do
11143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11144 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11146 break 2
11148 done
11149 done
11150 IFS=$as_save_IFS
11154 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11155 if test -n "$AS_FOR_TARGET"; then
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11157 $as_echo "$AS_FOR_TARGET" >&6; }
11158 else
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11164 done
11167 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11168 for ncn_progname in as; do
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11170 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11171 if test -x $with_build_time_tools/${ncn_progname}; then
11172 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11174 $as_echo "yes" >&6; }
11175 break
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11180 done
11183 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11184 for ncn_progname in as; do
11185 if test -n "$ncn_target_tool_prefix"; then
11186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11187 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189 $as_echo_n "checking for $ac_word... " >&6; }
11190 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 if test -n "$AS_FOR_TARGET"; then
11194 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11195 else
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11199 IFS=$as_save_IFS
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11203 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 break 2
11207 done
11208 done
11209 IFS=$as_save_IFS
11213 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11214 if test -n "$AS_FOR_TARGET"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11216 $as_echo "$AS_FOR_TARGET" >&6; }
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11224 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11226 set dummy ${ncn_progname}; ac_word=$2
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11228 $as_echo_n "checking for $ac_word... " >&6; }
11229 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 if test -n "$AS_FOR_TARGET"; then
11233 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11234 else
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11238 IFS=$as_save_IFS
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11242 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 break 2
11246 done
11247 done
11248 IFS=$as_save_IFS
11252 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11253 if test -n "$AS_FOR_TARGET"; then
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11255 $as_echo "$AS_FOR_TARGET" >&6; }
11256 else
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 $as_echo "no" >&6; }
11263 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11264 done
11267 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11268 set dummy as
11269 if test $build = $target ; then
11270 AS_FOR_TARGET="$2"
11271 else
11272 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11274 else
11275 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11278 else
11279 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11285 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11286 if test -n "$with_build_time_tools"; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11288 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11289 if test -x $with_build_time_tools/dlltool; then
11290 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11291 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11293 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296 $as_echo "no" >&6; }
11298 elif test $build != $host && test $have_gcc_for_target = yes; then
11299 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11300 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11301 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11304 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11305 # Extract the first word of "dlltool", so it can be a program name with args.
11306 set dummy dlltool; ac_word=$2
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308 $as_echo_n "checking for $ac_word... " >&6; }
11309 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 case $DLLTOOL_FOR_TARGET in
11313 [\\/]* | ?:[\\/]*)
11314 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318 for as_dir in $gcc_cv_tool_dirs
11320 IFS=$as_save_IFS
11321 test -z "$as_dir" && as_dir=.
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11324 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 break 2
11328 done
11329 done
11330 IFS=$as_save_IFS
11333 esac
11335 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11336 if test -n "$DLLTOOL_FOR_TARGET"; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11338 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11339 else
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11346 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11349 if test -n "$DLLTOOL_FOR_TARGET"; then
11350 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11351 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11352 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11355 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11356 for ncn_progname in dlltool; do
11357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11358 set dummy ${ncn_progname}; ac_word=$2
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360 $as_echo_n "checking for $ac_word... " >&6; }
11361 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 if test -n "$DLLTOOL_FOR_TARGET"; then
11365 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11366 else
11367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368 for as_dir in $PATH
11370 IFS=$as_save_IFS
11371 test -z "$as_dir" && as_dir=.
11372 for ac_exec_ext in '' $ac_executable_extensions; do
11373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11374 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11376 break 2
11378 done
11379 done
11380 IFS=$as_save_IFS
11384 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11385 if test -n "$DLLTOOL_FOR_TARGET"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11387 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11388 else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11394 done
11397 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11398 for ncn_progname in dlltool; do
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11400 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11401 if test -x $with_build_time_tools/${ncn_progname}; then
11402 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11404 $as_echo "yes" >&6; }
11405 break
11406 else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11410 done
11413 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11414 for ncn_progname in dlltool; do
11415 if test -n "$ncn_target_tool_prefix"; then
11416 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11417 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419 $as_echo_n "checking for $ac_word... " >&6; }
11420 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 if test -n "$DLLTOOL_FOR_TARGET"; then
11424 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11425 else
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11433 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11435 break 2
11437 done
11438 done
11439 IFS=$as_save_IFS
11443 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11444 if test -n "$DLLTOOL_FOR_TARGET"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11446 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 $as_echo "no" >&6; }
11454 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11456 set dummy ${ncn_progname}; ac_word=$2
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11458 $as_echo_n "checking for $ac_word... " >&6; }
11459 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 if test -n "$DLLTOOL_FOR_TARGET"; then
11463 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11464 else
11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466 for as_dir in $PATH
11468 IFS=$as_save_IFS
11469 test -z "$as_dir" && as_dir=.
11470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11472 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11474 break 2
11476 done
11477 done
11478 IFS=$as_save_IFS
11482 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11483 if test -n "$DLLTOOL_FOR_TARGET"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11485 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 $as_echo "no" >&6; }
11493 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11494 done
11497 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11498 set dummy dlltool
11499 if test $build = $target ; then
11500 DLLTOOL_FOR_TARGET="$2"
11501 else
11502 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11504 else
11505 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11508 else
11509 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11515 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11516 if test -n "$with_build_time_tools"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11518 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11519 if test -x $with_build_time_tools/ld; then
11520 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11521 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11523 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11528 elif test $build != $host && test $have_gcc_for_target = yes; then
11529 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11530 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11531 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11534 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11535 # Extract the first word of "ld", so it can be a program name with args.
11536 set dummy ld; ac_word=$2
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538 $as_echo_n "checking for $ac_word... " >&6; }
11539 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 case $LD_FOR_TARGET in
11543 [\\/]* | ?:[\\/]*)
11544 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $gcc_cv_tool_dirs
11550 IFS=$as_save_IFS
11551 test -z "$as_dir" && as_dir=.
11552 for ac_exec_ext in '' $ac_executable_extensions; do
11553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11554 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11556 break 2
11558 done
11559 done
11560 IFS=$as_save_IFS
11563 esac
11565 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11566 if test -n "$LD_FOR_TARGET"; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11568 $as_echo "$LD_FOR_TARGET" >&6; }
11569 else
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11576 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11579 if test -n "$LD_FOR_TARGET"; then
11580 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11581 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11582 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11585 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11586 for ncn_progname in ld; do
11587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11588 set dummy ${ncn_progname}; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 if test -n "$LD_FOR_TARGET"; then
11595 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11596 else
11597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598 for as_dir in $PATH
11600 IFS=$as_save_IFS
11601 test -z "$as_dir" && as_dir=.
11602 for ac_exec_ext in '' $ac_executable_extensions; do
11603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11604 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 break 2
11608 done
11609 done
11610 IFS=$as_save_IFS
11614 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11615 if test -n "$LD_FOR_TARGET"; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11617 $as_echo "$LD_FOR_TARGET" >&6; }
11618 else
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620 $as_echo "no" >&6; }
11624 done
11627 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11628 for ncn_progname in ld; do
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11630 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11631 if test -x $with_build_time_tools/${ncn_progname}; then
11632 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634 $as_echo "yes" >&6; }
11635 break
11636 else
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11638 $as_echo "no" >&6; }
11640 done
11643 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11644 for ncn_progname in ld; do
11645 if test -n "$ncn_target_tool_prefix"; then
11646 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11647 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11649 $as_echo_n "checking for $ac_word... " >&6; }
11650 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 if test -n "$LD_FOR_TARGET"; then
11654 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11655 else
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
11662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11663 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 break 2
11667 done
11668 done
11669 IFS=$as_save_IFS
11673 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11674 if test -n "$LD_FOR_TARGET"; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11676 $as_echo "$LD_FOR_TARGET" >&6; }
11677 else
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11684 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11686 set dummy ${ncn_progname}; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 if test -n "$LD_FOR_TARGET"; then
11693 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11694 else
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
11701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11702 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 break 2
11706 done
11707 done
11708 IFS=$as_save_IFS
11712 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11713 if test -n "$LD_FOR_TARGET"; then
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11715 $as_echo "$LD_FOR_TARGET" >&6; }
11716 else
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718 $as_echo "no" >&6; }
11723 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11724 done
11727 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11728 set dummy ld
11729 if test $build = $target ; then
11730 LD_FOR_TARGET="$2"
11731 else
11732 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11734 else
11735 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11738 else
11739 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11745 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11746 if test -n "$with_build_time_tools"; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11748 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11749 if test -x $with_build_time_tools/lipo; then
11750 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11751 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11753 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11758 elif test $build != $host && test $have_gcc_for_target = yes; then
11759 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11760 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11761 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11764 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11765 # Extract the first word of "lipo", so it can be a program name with args.
11766 set dummy lipo; ac_word=$2
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768 $as_echo_n "checking for $ac_word... " >&6; }
11769 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11770 $as_echo_n "(cached) " >&6
11771 else
11772 case $LIPO_FOR_TARGET in
11773 [\\/]* | ?:[\\/]*)
11774 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $gcc_cv_tool_dirs
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11784 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11788 done
11789 done
11790 IFS=$as_save_IFS
11793 esac
11795 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11796 if test -n "$LIPO_FOR_TARGET"; then
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11798 $as_echo "$LIPO_FOR_TARGET" >&6; }
11799 else
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11806 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11809 if test -n "$LIPO_FOR_TARGET"; then
11810 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11811 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11812 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11815 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11816 for ncn_progname in lipo; do
11817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11818 set dummy ${ncn_progname}; ac_word=$2
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820 $as_echo_n "checking for $ac_word... " >&6; }
11821 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 if test -n "$LIPO_FOR_TARGET"; then
11825 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11826 else
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11830 IFS=$as_save_IFS
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11834 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 break 2
11838 done
11839 done
11840 IFS=$as_save_IFS
11844 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11845 if test -n "$LIPO_FOR_TARGET"; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11847 $as_echo "$LIPO_FOR_TARGET" >&6; }
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11854 done
11857 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11858 for ncn_progname in lipo; do
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11860 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11861 if test -x $with_build_time_tools/${ncn_progname}; then
11862 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11864 $as_echo "yes" >&6; }
11865 break
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11870 done
11873 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11874 for ncn_progname in lipo; do
11875 if test -n "$ncn_target_tool_prefix"; then
11876 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11877 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879 $as_echo_n "checking for $ac_word... " >&6; }
11880 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 if test -n "$LIPO_FOR_TARGET"; then
11884 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11885 else
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11893 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 break 2
11897 done
11898 done
11899 IFS=$as_save_IFS
11903 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11904 if test -n "$LIPO_FOR_TARGET"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11906 $as_echo "$LIPO_FOR_TARGET" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11914 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11916 set dummy ${ncn_progname}; ac_word=$2
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918 $as_echo_n "checking for $ac_word... " >&6; }
11919 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 if test -n "$LIPO_FOR_TARGET"; then
11923 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11924 else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11932 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 break 2
11936 done
11937 done
11938 IFS=$as_save_IFS
11942 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11943 if test -n "$LIPO_FOR_TARGET"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11945 $as_echo "$LIPO_FOR_TARGET" >&6; }
11946 else
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11953 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11954 done
11957 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11958 set dummy lipo
11959 if test $build = $target ; then
11960 LIPO_FOR_TARGET="$2"
11961 else
11962 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11964 else
11965 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11968 else
11969 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11975 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11976 if test -n "$with_build_time_tools"; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11978 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11979 if test -x $with_build_time_tools/nm; then
11980 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11981 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11983 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11988 elif test $build != $host && test $have_gcc_for_target = yes; then
11989 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11990 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11991 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11994 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11995 # Extract the first word of "nm", so it can be a program name with args.
11996 set dummy nm; ac_word=$2
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998 $as_echo_n "checking for $ac_word... " >&6; }
11999 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 case $NM_FOR_TARGET in
12003 [\\/]* | ?:[\\/]*)
12004 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $gcc_cv_tool_dirs
12010 IFS=$as_save_IFS
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12014 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 break 2
12018 done
12019 done
12020 IFS=$as_save_IFS
12023 esac
12025 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12026 if test -n "$NM_FOR_TARGET"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12028 $as_echo "$NM_FOR_TARGET" >&6; }
12029 else
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12036 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12039 if test -n "$NM_FOR_TARGET"; then
12040 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12041 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12042 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12045 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12046 for ncn_progname in nm; do
12047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12048 set dummy ${ncn_progname}; ac_word=$2
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050 $as_echo_n "checking for $ac_word... " >&6; }
12051 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12052 $as_echo_n "(cached) " >&6
12053 else
12054 if test -n "$NM_FOR_TARGET"; then
12055 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12056 else
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12060 IFS=$as_save_IFS
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12064 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12066 break 2
12068 done
12069 done
12070 IFS=$as_save_IFS
12074 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12075 if test -n "$NM_FOR_TARGET"; then
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12077 $as_echo "$NM_FOR_TARGET" >&6; }
12078 else
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080 $as_echo "no" >&6; }
12084 done
12087 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12088 for ncn_progname in nm; do
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12090 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12091 if test -x $with_build_time_tools/${ncn_progname}; then
12092 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12094 $as_echo "yes" >&6; }
12095 break
12096 else
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 $as_echo "no" >&6; }
12100 done
12103 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12104 for ncn_progname in nm; do
12105 if test -n "$ncn_target_tool_prefix"; then
12106 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12107 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12109 $as_echo_n "checking for $ac_word... " >&6; }
12110 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 if test -n "$NM_FOR_TARGET"; then
12114 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12115 else
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in $PATH
12119 IFS=$as_save_IFS
12120 test -z "$as_dir" && as_dir=.
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12123 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12125 break 2
12127 done
12128 done
12129 IFS=$as_save_IFS
12133 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12134 if test -n "$NM_FOR_TARGET"; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12136 $as_echo "$NM_FOR_TARGET" >&6; }
12137 else
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12144 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12146 set dummy ${ncn_progname}; ac_word=$2
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 if test -n "$NM_FOR_TARGET"; then
12153 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12154 else
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12162 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12166 done
12167 done
12168 IFS=$as_save_IFS
12172 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12173 if test -n "$NM_FOR_TARGET"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12175 $as_echo "$NM_FOR_TARGET" >&6; }
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12183 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12184 done
12187 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12188 set dummy nm
12189 if test $build = $target ; then
12190 NM_FOR_TARGET="$2"
12191 else
12192 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12194 else
12195 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12198 else
12199 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12205 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12206 if test -n "$with_build_time_tools"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12208 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12209 if test -x $with_build_time_tools/objcopy; then
12210 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12211 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12213 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12218 elif test $build != $host && test $have_gcc_for_target = yes; then
12219 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12220 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12221 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12224 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12225 # Extract the first word of "objcopy", so it can be a program name with args.
12226 set dummy objcopy; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 case $OBJCOPY_FOR_TARGET in
12233 [\\/]* | ?:[\\/]*)
12234 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $gcc_cv_tool_dirs
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12244 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12246 break 2
12248 done
12249 done
12250 IFS=$as_save_IFS
12253 esac
12255 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12256 if test -n "$OBJCOPY_FOR_TARGET"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12258 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12266 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12269 if test -n "$OBJCOPY_FOR_TARGET"; then
12270 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12271 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12272 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12275 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12276 for ncn_progname in objcopy; do
12277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12278 set dummy ${ncn_progname}; ac_word=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12283 else
12284 if test -n "$OBJCOPY_FOR_TARGET"; then
12285 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12286 else
12287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288 for as_dir in $PATH
12290 IFS=$as_save_IFS
12291 test -z "$as_dir" && as_dir=.
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12294 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12296 break 2
12298 done
12299 done
12300 IFS=$as_save_IFS
12304 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12305 if test -n "$OBJCOPY_FOR_TARGET"; then
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12307 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12308 else
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12314 done
12317 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12318 for ncn_progname in objcopy; do
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12320 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12321 if test -x $with_build_time_tools/${ncn_progname}; then
12322 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12324 $as_echo "yes" >&6; }
12325 break
12326 else
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12330 done
12333 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12334 for ncn_progname in objcopy; do
12335 if test -n "$ncn_target_tool_prefix"; then
12336 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12337 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12339 $as_echo_n "checking for $ac_word... " >&6; }
12340 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 if test -n "$OBJCOPY_FOR_TARGET"; then
12344 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12345 else
12346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12347 for as_dir in $PATH
12349 IFS=$as_save_IFS
12350 test -z "$as_dir" && as_dir=.
12351 for ac_exec_ext in '' $ac_executable_extensions; do
12352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12353 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12355 break 2
12357 done
12358 done
12359 IFS=$as_save_IFS
12363 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12364 if test -n "$OBJCOPY_FOR_TARGET"; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12366 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12367 else
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 $as_echo "no" >&6; }
12374 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12376 set dummy ${ncn_progname}; ac_word=$2
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378 $as_echo_n "checking for $ac_word... " >&6; }
12379 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12380 $as_echo_n "(cached) " >&6
12381 else
12382 if test -n "$OBJCOPY_FOR_TARGET"; then
12383 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12384 else
12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 for as_dir in $PATH
12388 IFS=$as_save_IFS
12389 test -z "$as_dir" && as_dir=.
12390 for ac_exec_ext in '' $ac_executable_extensions; do
12391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12392 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394 break 2
12396 done
12397 done
12398 IFS=$as_save_IFS
12402 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12403 if test -n "$OBJCOPY_FOR_TARGET"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12405 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12406 else
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408 $as_echo "no" >&6; }
12413 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12414 done
12417 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12418 set dummy objcopy
12419 if test $build = $target ; then
12420 OBJCOPY_FOR_TARGET="$2"
12421 else
12422 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12424 else
12425 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12428 else
12429 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12435 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12436 if test -n "$with_build_time_tools"; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12438 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12439 if test -x $with_build_time_tools/objdump; then
12440 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12441 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12443 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12444 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12448 elif test $build != $host && test $have_gcc_for_target = yes; then
12449 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12450 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12451 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12454 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12455 # Extract the first word of "objdump", so it can be a program name with args.
12456 set dummy objdump; ac_word=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12460 $as_echo_n "(cached) " >&6
12461 else
12462 case $OBJDUMP_FOR_TARGET in
12463 [\\/]* | ?:[\\/]*)
12464 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12468 for as_dir in $gcc_cv_tool_dirs
12470 IFS=$as_save_IFS
12471 test -z "$as_dir" && as_dir=.
12472 for ac_exec_ext in '' $ac_executable_extensions; do
12473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12474 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12476 break 2
12478 done
12479 done
12480 IFS=$as_save_IFS
12483 esac
12485 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12486 if test -n "$OBJDUMP_FOR_TARGET"; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12488 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12489 else
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12496 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12499 if test -n "$OBJDUMP_FOR_TARGET"; then
12500 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12501 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12502 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12505 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12506 for ncn_progname in objdump; do
12507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12508 set dummy ${ncn_progname}; ac_word=$2
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510 $as_echo_n "checking for $ac_word... " >&6; }
12511 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514 if test -n "$OBJDUMP_FOR_TARGET"; then
12515 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12516 else
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
12522 for ac_exec_ext in '' $ac_executable_extensions; do
12523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12524 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12526 break 2
12528 done
12529 done
12530 IFS=$as_save_IFS
12534 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12535 if test -n "$OBJDUMP_FOR_TARGET"; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12537 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12538 else
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12544 done
12547 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12548 for ncn_progname in objdump; do
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12550 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12551 if test -x $with_build_time_tools/${ncn_progname}; then
12552 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12554 $as_echo "yes" >&6; }
12555 break
12556 else
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12560 done
12563 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12564 for ncn_progname in objdump; do
12565 if test -n "$ncn_target_tool_prefix"; then
12566 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12567 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12569 $as_echo_n "checking for $ac_word... " >&6; }
12570 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12571 $as_echo_n "(cached) " >&6
12572 else
12573 if test -n "$OBJDUMP_FOR_TARGET"; then
12574 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12575 else
12576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12577 for as_dir in $PATH
12579 IFS=$as_save_IFS
12580 test -z "$as_dir" && as_dir=.
12581 for ac_exec_ext in '' $ac_executable_extensions; do
12582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12583 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12585 break 2
12587 done
12588 done
12589 IFS=$as_save_IFS
12593 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12594 if test -n "$OBJDUMP_FOR_TARGET"; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12596 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12597 else
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12599 $as_echo "no" >&6; }
12604 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12606 set dummy ${ncn_progname}; ac_word=$2
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608 $as_echo_n "checking for $ac_word... " >&6; }
12609 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 if test -n "$OBJDUMP_FOR_TARGET"; then
12613 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12614 else
12615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616 for as_dir in $PATH
12618 IFS=$as_save_IFS
12619 test -z "$as_dir" && as_dir=.
12620 for ac_exec_ext in '' $ac_executable_extensions; do
12621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12622 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624 break 2
12626 done
12627 done
12628 IFS=$as_save_IFS
12632 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12633 if test -n "$OBJDUMP_FOR_TARGET"; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12635 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12636 else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12643 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12644 done
12647 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12648 set dummy objdump
12649 if test $build = $target ; then
12650 OBJDUMP_FOR_TARGET="$2"
12651 else
12652 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12654 else
12655 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12658 else
12659 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12665 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12666 if test -n "$with_build_time_tools"; then
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12668 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12669 if test -x $with_build_time_tools/ranlib; then
12670 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12671 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12673 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12678 elif test $build != $host && test $have_gcc_for_target = yes; then
12679 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12680 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12681 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12684 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12685 # Extract the first word of "ranlib", so it can be a program name with args.
12686 set dummy ranlib; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 case $RANLIB_FOR_TARGET in
12693 [\\/]* | ?:[\\/]*)
12694 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $gcc_cv_tool_dirs
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12704 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12708 done
12709 done
12710 IFS=$as_save_IFS
12713 esac
12715 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12716 if test -n "$RANLIB_FOR_TARGET"; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12718 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12719 else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12726 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12729 if test -n "$RANLIB_FOR_TARGET"; then
12730 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12731 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12732 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12735 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12736 for ncn_progname in ranlib; do
12737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12738 set dummy ${ncn_progname}; ac_word=$2
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740 $as_echo_n "checking for $ac_word... " >&6; }
12741 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12742 $as_echo_n "(cached) " >&6
12743 else
12744 if test -n "$RANLIB_FOR_TARGET"; then
12745 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12746 else
12747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748 for as_dir in $PATH
12750 IFS=$as_save_IFS
12751 test -z "$as_dir" && as_dir=.
12752 for ac_exec_ext in '' $ac_executable_extensions; do
12753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12754 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756 break 2
12758 done
12759 done
12760 IFS=$as_save_IFS
12764 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12765 if test -n "$RANLIB_FOR_TARGET"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12767 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12774 done
12777 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12778 for ncn_progname in ranlib; do
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12780 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12781 if test -x $with_build_time_tools/${ncn_progname}; then
12782 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12784 $as_echo "yes" >&6; }
12785 break
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12790 done
12793 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12794 for ncn_progname in ranlib; do
12795 if test -n "$ncn_target_tool_prefix"; then
12796 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12797 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799 $as_echo_n "checking for $ac_word... " >&6; }
12800 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 if test -n "$RANLIB_FOR_TARGET"; then
12804 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12805 else
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12809 IFS=$as_save_IFS
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
12812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12813 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815 break 2
12817 done
12818 done
12819 IFS=$as_save_IFS
12823 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12824 if test -n "$RANLIB_FOR_TARGET"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12826 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12827 else
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12834 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12836 set dummy ${ncn_progname}; ac_word=$2
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12838 $as_echo_n "checking for $ac_word... " >&6; }
12839 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12840 $as_echo_n "(cached) " >&6
12841 else
12842 if test -n "$RANLIB_FOR_TARGET"; then
12843 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12844 else
12845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846 for as_dir in $PATH
12848 IFS=$as_save_IFS
12849 test -z "$as_dir" && as_dir=.
12850 for ac_exec_ext in '' $ac_executable_extensions; do
12851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12852 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12854 break 2
12856 done
12857 done
12858 IFS=$as_save_IFS
12862 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12863 if test -n "$RANLIB_FOR_TARGET"; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12865 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12866 else
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868 $as_echo "no" >&6; }
12873 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12874 done
12877 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12878 set dummy ranlib
12879 if test $build = $target ; then
12880 RANLIB_FOR_TARGET="$2"
12881 else
12882 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12884 else
12885 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12888 else
12889 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12895 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12896 if test -n "$with_build_time_tools"; then
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12898 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12899 if test -x $with_build_time_tools/readelf; then
12900 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12901 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12903 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12908 elif test $build != $host && test $have_gcc_for_target = yes; then
12909 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12910 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12911 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12914 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12915 # Extract the first word of "readelf", so it can be a program name with args.
12916 set dummy readelf; ac_word=$2
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918 $as_echo_n "checking for $ac_word... " >&6; }
12919 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 case $READELF_FOR_TARGET in
12923 [\\/]* | ?:[\\/]*)
12924 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928 for as_dir in $gcc_cv_tool_dirs
12930 IFS=$as_save_IFS
12931 test -z "$as_dir" && as_dir=.
12932 for ac_exec_ext in '' $ac_executable_extensions; do
12933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12934 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12936 break 2
12938 done
12939 done
12940 IFS=$as_save_IFS
12943 esac
12945 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12946 if test -n "$READELF_FOR_TARGET"; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12948 $as_echo "$READELF_FOR_TARGET" >&6; }
12949 else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12956 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12959 if test -n "$READELF_FOR_TARGET"; then
12960 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12961 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12962 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12965 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12966 for ncn_progname in readelf; do
12967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12968 set dummy ${ncn_progname}; ac_word=$2
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970 $as_echo_n "checking for $ac_word... " >&6; }
12971 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 if test -n "$READELF_FOR_TARGET"; then
12975 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12976 else
12977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978 for as_dir in $PATH
12980 IFS=$as_save_IFS
12981 test -z "$as_dir" && as_dir=.
12982 for ac_exec_ext in '' $ac_executable_extensions; do
12983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12984 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12986 break 2
12988 done
12989 done
12990 IFS=$as_save_IFS
12994 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12995 if test -n "$READELF_FOR_TARGET"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12997 $as_echo "$READELF_FOR_TARGET" >&6; }
12998 else
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13004 done
13007 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13008 for ncn_progname in readelf; do
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13010 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13011 if test -x $with_build_time_tools/${ncn_progname}; then
13012 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13014 $as_echo "yes" >&6; }
13015 break
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13020 done
13023 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13024 for ncn_progname in readelf; do
13025 if test -n "$ncn_target_tool_prefix"; then
13026 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13027 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029 $as_echo_n "checking for $ac_word... " >&6; }
13030 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 if test -n "$READELF_FOR_TARGET"; then
13034 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13035 else
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13039 IFS=$as_save_IFS
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13043 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 break 2
13047 done
13048 done
13049 IFS=$as_save_IFS
13053 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13054 if test -n "$READELF_FOR_TARGET"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13056 $as_echo "$READELF_FOR_TARGET" >&6; }
13057 else
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13064 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13066 set dummy ${ncn_progname}; ac_word=$2
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13068 $as_echo_n "checking for $ac_word... " >&6; }
13069 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 if test -n "$READELF_FOR_TARGET"; then
13073 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13074 else
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13078 IFS=$as_save_IFS
13079 test -z "$as_dir" && as_dir=.
13080 for ac_exec_ext in '' $ac_executable_extensions; do
13081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13082 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13084 break 2
13086 done
13087 done
13088 IFS=$as_save_IFS
13092 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13093 if test -n "$READELF_FOR_TARGET"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13095 $as_echo "$READELF_FOR_TARGET" >&6; }
13096 else
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13103 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13104 done
13107 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13108 set dummy readelf
13109 if test $build = $target ; then
13110 READELF_FOR_TARGET="$2"
13111 else
13112 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13114 else
13115 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13118 else
13119 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13125 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13126 if test -n "$with_build_time_tools"; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13128 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13129 if test -x $with_build_time_tools/strip; then
13130 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13131 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13133 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13138 elif test $build != $host && test $have_gcc_for_target = yes; then
13139 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13140 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13141 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13144 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13145 # Extract the first word of "strip", so it can be a program name with args.
13146 set dummy strip; ac_word=$2
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148 $as_echo_n "checking for $ac_word... " >&6; }
13149 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13150 $as_echo_n "(cached) " >&6
13151 else
13152 case $STRIP_FOR_TARGET in
13153 [\\/]* | ?:[\\/]*)
13154 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158 for as_dir in $gcc_cv_tool_dirs
13160 IFS=$as_save_IFS
13161 test -z "$as_dir" && as_dir=.
13162 for ac_exec_ext in '' $ac_executable_extensions; do
13163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13164 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13166 break 2
13168 done
13169 done
13170 IFS=$as_save_IFS
13173 esac
13175 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13176 if test -n "$STRIP_FOR_TARGET"; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13178 $as_echo "$STRIP_FOR_TARGET" >&6; }
13179 else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13186 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13189 if test -n "$STRIP_FOR_TARGET"; then
13190 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13191 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13192 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13195 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13196 for ncn_progname in strip; do
13197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13198 set dummy ${ncn_progname}; ac_word=$2
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13200 $as_echo_n "checking for $ac_word... " >&6; }
13201 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 if test -n "$STRIP_FOR_TARGET"; then
13205 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13206 else
13207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13208 for as_dir in $PATH
13210 IFS=$as_save_IFS
13211 test -z "$as_dir" && as_dir=.
13212 for ac_exec_ext in '' $ac_executable_extensions; do
13213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13214 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13216 break 2
13218 done
13219 done
13220 IFS=$as_save_IFS
13224 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13225 if test -n "$STRIP_FOR_TARGET"; then
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13227 $as_echo "$STRIP_FOR_TARGET" >&6; }
13228 else
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13234 done
13237 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13238 for ncn_progname in strip; do
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13240 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13241 if test -x $with_build_time_tools/${ncn_progname}; then
13242 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13244 $as_echo "yes" >&6; }
13245 break
13246 else
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248 $as_echo "no" >&6; }
13250 done
13253 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13254 for ncn_progname in strip; do
13255 if test -n "$ncn_target_tool_prefix"; then
13256 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13257 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259 $as_echo_n "checking for $ac_word... " >&6; }
13260 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13261 $as_echo_n "(cached) " >&6
13262 else
13263 if test -n "$STRIP_FOR_TARGET"; then
13264 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13265 else
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13269 IFS=$as_save_IFS
13270 test -z "$as_dir" && as_dir=.
13271 for ac_exec_ext in '' $ac_executable_extensions; do
13272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13273 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275 break 2
13277 done
13278 done
13279 IFS=$as_save_IFS
13283 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13284 if test -n "$STRIP_FOR_TARGET"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13286 $as_echo "$STRIP_FOR_TARGET" >&6; }
13287 else
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 $as_echo "no" >&6; }
13294 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13296 set dummy ${ncn_progname}; ac_word=$2
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298 $as_echo_n "checking for $ac_word... " >&6; }
13299 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13302 if test -n "$STRIP_FOR_TARGET"; then
13303 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13304 else
13305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13306 for as_dir in $PATH
13308 IFS=$as_save_IFS
13309 test -z "$as_dir" && as_dir=.
13310 for ac_exec_ext in '' $ac_executable_extensions; do
13311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13312 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13314 break 2
13316 done
13317 done
13318 IFS=$as_save_IFS
13322 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13323 if test -n "$STRIP_FOR_TARGET"; then
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13325 $as_echo "$STRIP_FOR_TARGET" >&6; }
13326 else
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 $as_echo "no" >&6; }
13333 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13334 done
13337 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13338 set dummy strip
13339 if test $build = $target ; then
13340 STRIP_FOR_TARGET="$2"
13341 else
13342 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13344 else
13345 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13348 else
13349 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13355 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13356 if test -n "$with_build_time_tools"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13358 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13359 if test -x $with_build_time_tools/windres; then
13360 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13361 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13363 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13364 else
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13368 elif test $build != $host && test $have_gcc_for_target = yes; then
13369 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13370 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13371 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13374 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13375 # Extract the first word of "windres", so it can be a program name with args.
13376 set dummy windres; ac_word=$2
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378 $as_echo_n "checking for $ac_word... " >&6; }
13379 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
13381 else
13382 case $WINDRES_FOR_TARGET in
13383 [\\/]* | ?:[\\/]*)
13384 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $gcc_cv_tool_dirs
13390 IFS=$as_save_IFS
13391 test -z "$as_dir" && as_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
13393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13394 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13396 break 2
13398 done
13399 done
13400 IFS=$as_save_IFS
13403 esac
13405 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13406 if test -n "$WINDRES_FOR_TARGET"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13408 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13409 else
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13416 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13419 if test -n "$WINDRES_FOR_TARGET"; then
13420 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13421 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13422 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13425 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13426 for ncn_progname in windres; do
13427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13428 set dummy ${ncn_progname}; ac_word=$2
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430 $as_echo_n "checking for $ac_word... " >&6; }
13431 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 if test -n "$WINDRES_FOR_TARGET"; then
13435 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13436 else
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13440 IFS=$as_save_IFS
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13444 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13446 break 2
13448 done
13449 done
13450 IFS=$as_save_IFS
13454 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13455 if test -n "$WINDRES_FOR_TARGET"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13457 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13458 else
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 $as_echo "no" >&6; }
13464 done
13467 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13468 for ncn_progname in windres; do
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13470 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13471 if test -x $with_build_time_tools/${ncn_progname}; then
13472 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13474 $as_echo "yes" >&6; }
13475 break
13476 else
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 $as_echo "no" >&6; }
13480 done
13483 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13484 for ncn_progname in windres; do
13485 if test -n "$ncn_target_tool_prefix"; then
13486 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13487 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13489 $as_echo_n "checking for $ac_word... " >&6; }
13490 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 if test -n "$WINDRES_FOR_TARGET"; then
13494 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13495 else
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13499 IFS=$as_save_IFS
13500 test -z "$as_dir" && as_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
13502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13503 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505 break 2
13507 done
13508 done
13509 IFS=$as_save_IFS
13513 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13514 if test -n "$WINDRES_FOR_TARGET"; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13516 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13517 else
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519 $as_echo "no" >&6; }
13524 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13526 set dummy ${ncn_progname}; ac_word=$2
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528 $as_echo_n "checking for $ac_word... " >&6; }
13529 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13530 $as_echo_n "(cached) " >&6
13531 else
13532 if test -n "$WINDRES_FOR_TARGET"; then
13533 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13534 else
13535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536 for as_dir in $PATH
13538 IFS=$as_save_IFS
13539 test -z "$as_dir" && as_dir=.
13540 for ac_exec_ext in '' $ac_executable_extensions; do
13541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13542 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544 break 2
13546 done
13547 done
13548 IFS=$as_save_IFS
13552 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13553 if test -n "$WINDRES_FOR_TARGET"; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13555 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13556 else
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558 $as_echo "no" >&6; }
13563 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13564 done
13567 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13568 set dummy windres
13569 if test $build = $target ; then
13570 WINDRES_FOR_TARGET="$2"
13571 else
13572 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13574 else
13575 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13578 else
13579 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13585 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13586 if test -n "$with_build_time_tools"; then
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13588 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13589 if test -x $with_build_time_tools/windmc; then
13590 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13591 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13593 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13594 else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13598 elif test $build != $host && test $have_gcc_for_target = yes; then
13599 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13600 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13601 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13604 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13605 # Extract the first word of "windmc", so it can be a program name with args.
13606 set dummy windmc; ac_word=$2
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 $as_echo_n "checking for $ac_word... " >&6; }
13609 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 case $WINDMC_FOR_TARGET in
13613 [\\/]* | ?:[\\/]*)
13614 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618 for as_dir in $gcc_cv_tool_dirs
13620 IFS=$as_save_IFS
13621 test -z "$as_dir" && as_dir=.
13622 for ac_exec_ext in '' $ac_executable_extensions; do
13623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13624 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 break 2
13628 done
13629 done
13630 IFS=$as_save_IFS
13633 esac
13635 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13636 if test -n "$WINDMC_FOR_TARGET"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13638 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13639 else
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13646 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13649 if test -n "$WINDMC_FOR_TARGET"; then
13650 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13651 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13652 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13655 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13656 for ncn_progname in windmc; do
13657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13658 set dummy ${ncn_progname}; ac_word=$2
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13660 $as_echo_n "checking for $ac_word... " >&6; }
13661 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 if test -n "$WINDMC_FOR_TARGET"; then
13665 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13666 else
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13670 IFS=$as_save_IFS
13671 test -z "$as_dir" && as_dir=.
13672 for ac_exec_ext in '' $ac_executable_extensions; do
13673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13674 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 break 2
13678 done
13679 done
13680 IFS=$as_save_IFS
13684 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13685 if test -n "$WINDMC_FOR_TARGET"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13687 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13688 else
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690 $as_echo "no" >&6; }
13694 done
13697 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13698 for ncn_progname in windmc; do
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13700 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13701 if test -x $with_build_time_tools/${ncn_progname}; then
13702 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13704 $as_echo "yes" >&6; }
13705 break
13706 else
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13710 done
13713 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13714 for ncn_progname in windmc; do
13715 if test -n "$ncn_target_tool_prefix"; then
13716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13717 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13719 $as_echo_n "checking for $ac_word... " >&6; }
13720 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723 if test -n "$WINDMC_FOR_TARGET"; then
13724 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13725 else
13726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727 for as_dir in $PATH
13729 IFS=$as_save_IFS
13730 test -z "$as_dir" && as_dir=.
13731 for ac_exec_ext in '' $ac_executable_extensions; do
13732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13733 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13735 break 2
13737 done
13738 done
13739 IFS=$as_save_IFS
13743 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13744 if test -n "$WINDMC_FOR_TARGET"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13746 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13747 else
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749 $as_echo "no" >&6; }
13754 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13756 set dummy ${ncn_progname}; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 $as_echo_n "checking for $ac_word... " >&6; }
13759 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 if test -n "$WINDMC_FOR_TARGET"; then
13763 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13764 else
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13768 IFS=$as_save_IFS
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13772 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13774 break 2
13776 done
13777 done
13778 IFS=$as_save_IFS
13782 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13783 if test -n "$WINDMC_FOR_TARGET"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13785 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13786 else
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13793 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13794 done
13797 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13798 set dummy windmc
13799 if test $build = $target ; then
13800 WINDMC_FOR_TARGET="$2"
13801 else
13802 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13804 else
13805 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13808 else
13809 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13813 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13816 $as_echo_n "checking where to find the target ar... " >&6; }
13817 if test "x${build}" != "x${host}" ; then
13818 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13819 # We already found the complete path
13820 ac_dir=`dirname $AR_FOR_TARGET`
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13822 $as_echo "pre-installed in $ac_dir" >&6; }
13823 else
13824 # Canadian cross, just use what we found
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13826 $as_echo "pre-installed" >&6; }
13828 else
13829 ok=yes
13830 case " ${configdirs} " in
13831 *" binutils "*) ;;
13832 *) ok=no ;;
13833 esac
13835 if test $ok = yes; then
13836 # An in-tree tool is available and we can use it
13837 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13839 $as_echo "just compiled" >&6; }
13840 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13841 # We already found the complete path
13842 ac_dir=`dirname $AR_FOR_TARGET`
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13844 $as_echo "pre-installed in $ac_dir" >&6; }
13845 elif test "x$target" = "x$host"; then
13846 # We can use an host tool
13847 AR_FOR_TARGET='$(AR)'
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13849 $as_echo "host tool" >&6; }
13850 else
13851 # We need a cross tool
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13853 $as_echo "pre-installed" >&6; }
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13858 $as_echo_n "checking where to find the target as... " >&6; }
13859 if test "x${build}" != "x${host}" ; then
13860 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13861 # We already found the complete path
13862 ac_dir=`dirname $AS_FOR_TARGET`
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13864 $as_echo "pre-installed in $ac_dir" >&6; }
13865 else
13866 # Canadian cross, just use what we found
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13868 $as_echo "pre-installed" >&6; }
13870 else
13871 ok=yes
13872 case " ${configdirs} " in
13873 *" gas "*) ;;
13874 *) ok=no ;;
13875 esac
13877 if test $ok = yes; then
13878 # An in-tree tool is available and we can use it
13879 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13881 $as_echo "just compiled" >&6; }
13882 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13883 # We already found the complete path
13884 ac_dir=`dirname $AS_FOR_TARGET`
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13886 $as_echo "pre-installed in $ac_dir" >&6; }
13887 elif test "x$target" = "x$host"; then
13888 # We can use an host tool
13889 AS_FOR_TARGET='$(AS)'
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13891 $as_echo "host tool" >&6; }
13892 else
13893 # We need a cross tool
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13895 $as_echo "pre-installed" >&6; }
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13900 $as_echo_n "checking where to find the target cc... " >&6; }
13901 if test "x${build}" != "x${host}" ; then
13902 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13903 # We already found the complete path
13904 ac_dir=`dirname $CC_FOR_TARGET`
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13906 $as_echo "pre-installed in $ac_dir" >&6; }
13907 else
13908 # Canadian cross, just use what we found
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13910 $as_echo "pre-installed" >&6; }
13912 else
13913 ok=yes
13914 case " ${configdirs} " in
13915 *" gcc "*) ;;
13916 *) ok=no ;;
13917 esac
13919 if test $ok = yes; then
13920 # An in-tree tool is available and we can use it
13921 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13923 $as_echo "just compiled" >&6; }
13924 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13925 # We already found the complete path
13926 ac_dir=`dirname $CC_FOR_TARGET`
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13928 $as_echo "pre-installed in $ac_dir" >&6; }
13929 elif test "x$target" = "x$host"; then
13930 # We can use an host tool
13931 CC_FOR_TARGET='$(CC)'
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13933 $as_echo "host tool" >&6; }
13934 else
13935 # We need a cross tool
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13937 $as_echo "pre-installed" >&6; }
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13942 $as_echo_n "checking where to find the target c++... " >&6; }
13943 if test "x${build}" != "x${host}" ; then
13944 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13945 # We already found the complete path
13946 ac_dir=`dirname $CXX_FOR_TARGET`
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13948 $as_echo "pre-installed in $ac_dir" >&6; }
13949 else
13950 # Canadian cross, just use what we found
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13952 $as_echo "pre-installed" >&6; }
13954 else
13955 ok=yes
13956 case " ${configdirs} " in
13957 *" gcc "*) ;;
13958 *) ok=no ;;
13959 esac
13960 case ,${enable_languages}, in
13961 *,c++,*) ;;
13962 *) ok=no ;;
13963 esac
13964 if test $ok = yes; then
13965 # An in-tree tool is available and we can use it
13966 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'
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13968 $as_echo "just compiled" >&6; }
13969 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13970 # We already found the complete path
13971 ac_dir=`dirname $CXX_FOR_TARGET`
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13973 $as_echo "pre-installed in $ac_dir" >&6; }
13974 elif test "x$target" = "x$host"; then
13975 # We can use an host tool
13976 CXX_FOR_TARGET='$(CXX)'
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13978 $as_echo "host tool" >&6; }
13979 else
13980 # We need a cross tool
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13982 $as_echo "pre-installed" >&6; }
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13987 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13988 if test "x${build}" != "x${host}" ; then
13989 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13990 # We already found the complete path
13991 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13993 $as_echo "pre-installed in $ac_dir" >&6; }
13994 else
13995 # Canadian cross, just use what we found
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13997 $as_echo "pre-installed" >&6; }
13999 else
14000 ok=yes
14001 case " ${configdirs} " in
14002 *" gcc "*) ;;
14003 *) ok=no ;;
14004 esac
14005 case ,${enable_languages}, in
14006 *,c++,*) ;;
14007 *) ok=no ;;
14008 esac
14009 if test $ok = yes; then
14010 # An in-tree tool is available and we can use it
14011 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'
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14013 $as_echo "just compiled" >&6; }
14014 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14015 # We already found the complete path
14016 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14018 $as_echo "pre-installed in $ac_dir" >&6; }
14019 elif test "x$target" = "x$host"; then
14020 # We can use an host tool
14021 RAW_CXX_FOR_TARGET='$(CXX)'
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14023 $as_echo "host tool" >&6; }
14024 else
14025 # We need a cross tool
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14027 $as_echo "pre-installed" >&6; }
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14032 $as_echo_n "checking where to find the target dlltool... " >&6; }
14033 if test "x${build}" != "x${host}" ; then
14034 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14035 # We already found the complete path
14036 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14038 $as_echo "pre-installed in $ac_dir" >&6; }
14039 else
14040 # Canadian cross, just use what we found
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14042 $as_echo "pre-installed" >&6; }
14044 else
14045 ok=yes
14046 case " ${configdirs} " in
14047 *" binutils "*) ;;
14048 *) ok=no ;;
14049 esac
14051 if test $ok = yes; then
14052 # An in-tree tool is available and we can use it
14053 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14055 $as_echo "just compiled" >&6; }
14056 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14057 # We already found the complete path
14058 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14060 $as_echo "pre-installed in $ac_dir" >&6; }
14061 elif test "x$target" = "x$host"; then
14062 # We can use an host tool
14063 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14065 $as_echo "host tool" >&6; }
14066 else
14067 # We need a cross tool
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14069 $as_echo "pre-installed" >&6; }
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14074 $as_echo_n "checking where to find the target gcc... " >&6; }
14075 if test "x${build}" != "x${host}" ; then
14076 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14077 # We already found the complete path
14078 ac_dir=`dirname $GCC_FOR_TARGET`
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14080 $as_echo "pre-installed in $ac_dir" >&6; }
14081 else
14082 # Canadian cross, just use what we found
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14084 $as_echo "pre-installed" >&6; }
14086 else
14087 ok=yes
14088 case " ${configdirs} " in
14089 *" gcc "*) ;;
14090 *) ok=no ;;
14091 esac
14093 if test $ok = yes; then
14094 # An in-tree tool is available and we can use it
14095 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14097 $as_echo "just compiled" >&6; }
14098 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14099 # We already found the complete path
14100 ac_dir=`dirname $GCC_FOR_TARGET`
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14102 $as_echo "pre-installed in $ac_dir" >&6; }
14103 elif test "x$target" = "x$host"; then
14104 # We can use an host tool
14105 GCC_FOR_TARGET='$()'
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14107 $as_echo "host tool" >&6; }
14108 else
14109 # We need a cross tool
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14111 $as_echo "pre-installed" >&6; }
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14116 $as_echo_n "checking where to find the target gfortran... " >&6; }
14117 if test "x${build}" != "x${host}" ; then
14118 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14119 # We already found the complete path
14120 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14122 $as_echo "pre-installed in $ac_dir" >&6; }
14123 else
14124 # Canadian cross, just use what we found
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14126 $as_echo "pre-installed" >&6; }
14128 else
14129 ok=yes
14130 case " ${configdirs} " in
14131 *" gcc "*) ;;
14132 *) ok=no ;;
14133 esac
14134 case ,${enable_languages}, in
14135 *,fortran,*) ;;
14136 *) ok=no ;;
14137 esac
14138 if test $ok = yes; then
14139 # An in-tree tool is available and we can use it
14140 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14142 $as_echo "just compiled" >&6; }
14143 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14144 # We already found the complete path
14145 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14147 $as_echo "pre-installed in $ac_dir" >&6; }
14148 elif test "x$target" = "x$host"; then
14149 # We can use an host tool
14150 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14152 $as_echo "host tool" >&6; }
14153 else
14154 # We need a cross tool
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14156 $as_echo "pre-installed" >&6; }
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14161 $as_echo_n "checking where to find the target gccgo... " >&6; }
14162 if test "x${build}" != "x${host}" ; then
14163 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14164 # We already found the complete path
14165 ac_dir=`dirname $GOC_FOR_TARGET`
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14167 $as_echo "pre-installed in $ac_dir" >&6; }
14168 else
14169 # Canadian cross, just use what we found
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14171 $as_echo "pre-installed" >&6; }
14173 else
14174 ok=yes
14175 case " ${configdirs} " in
14176 *" gcc "*) ;;
14177 *) ok=no ;;
14178 esac
14179 case ,${enable_languages}, in
14180 *,go,*) ;;
14181 *) ok=no ;;
14182 esac
14183 if test $ok = yes; then
14184 # An in-tree tool is available and we can use it
14185 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14187 $as_echo "just compiled" >&6; }
14188 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14189 # We already found the complete path
14190 ac_dir=`dirname $GOC_FOR_TARGET`
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14192 $as_echo "pre-installed in $ac_dir" >&6; }
14193 elif test "x$target" = "x$host"; then
14194 # We can use an host tool
14195 GOC_FOR_TARGET='$(GOC)'
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14197 $as_echo "host tool" >&6; }
14198 else
14199 # We need a cross tool
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14201 $as_echo "pre-installed" >&6; }
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14206 $as_echo_n "checking where to find the target ld... " >&6; }
14207 if test "x${build}" != "x${host}" ; then
14208 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14209 # We already found the complete path
14210 ac_dir=`dirname $LD_FOR_TARGET`
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14212 $as_echo "pre-installed in $ac_dir" >&6; }
14213 else
14214 # Canadian cross, just use what we found
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216 $as_echo "pre-installed" >&6; }
14218 else
14219 ok=yes
14220 case " ${configdirs} " in
14221 *" ld "*) ;;
14222 *) ok=no ;;
14223 esac
14225 if test $ok = yes; then
14226 # An in-tree tool is available and we can use it
14227 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14229 $as_echo "just compiled" >&6; }
14230 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14231 # We already found the complete path
14232 ac_dir=`dirname $LD_FOR_TARGET`
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14234 $as_echo "pre-installed in $ac_dir" >&6; }
14235 elif test "x$target" = "x$host"; then
14236 # We can use an host tool
14237 LD_FOR_TARGET='$(LD)'
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14239 $as_echo "host tool" >&6; }
14240 else
14241 # We need a cross tool
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14243 $as_echo "pre-installed" >&6; }
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14248 $as_echo_n "checking where to find the target lipo... " >&6; }
14249 if test "x${build}" != "x${host}" ; then
14250 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14251 # We already found the complete path
14252 ac_dir=`dirname $LIPO_FOR_TARGET`
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14254 $as_echo "pre-installed in $ac_dir" >&6; }
14255 else
14256 # Canadian cross, just use what we found
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14258 $as_echo "pre-installed" >&6; }
14260 else
14261 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14262 # We already found the complete path
14263 ac_dir=`dirname $LIPO_FOR_TARGET`
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14265 $as_echo "pre-installed in $ac_dir" >&6; }
14266 elif test "x$target" = "x$host"; then
14267 # We can use an host tool
14268 LIPO_FOR_TARGET='$(LIPO)'
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14270 $as_echo "host tool" >&6; }
14271 else
14272 # We need a cross tool
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14274 $as_echo "pre-installed" >&6; }
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14279 $as_echo_n "checking where to find the target nm... " >&6; }
14280 if test "x${build}" != "x${host}" ; then
14281 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14282 # We already found the complete path
14283 ac_dir=`dirname $NM_FOR_TARGET`
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14285 $as_echo "pre-installed in $ac_dir" >&6; }
14286 else
14287 # Canadian cross, just use what we found
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289 $as_echo "pre-installed" >&6; }
14291 else
14292 ok=yes
14293 case " ${configdirs} " in
14294 *" binutils "*) ;;
14295 *) ok=no ;;
14296 esac
14298 if test $ok = yes; then
14299 # An in-tree tool is available and we can use it
14300 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14302 $as_echo "just compiled" >&6; }
14303 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14304 # We already found the complete path
14305 ac_dir=`dirname $NM_FOR_TARGET`
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14307 $as_echo "pre-installed in $ac_dir" >&6; }
14308 elif test "x$target" = "x$host"; then
14309 # We can use an host tool
14310 NM_FOR_TARGET='$(NM)'
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14312 $as_echo "host tool" >&6; }
14313 else
14314 # We need a cross tool
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14316 $as_echo "pre-installed" >&6; }
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14321 $as_echo_n "checking where to find the target objcopy... " >&6; }
14322 if test "x${build}" != "x${host}" ; then
14323 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14324 # We already found the complete path
14325 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14327 $as_echo "pre-installed in $ac_dir" >&6; }
14328 else
14329 # Canadian cross, just use what we found
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331 $as_echo "pre-installed" >&6; }
14333 else
14334 ok=yes
14335 case " ${configdirs} " in
14336 *" binutils "*) ;;
14337 *) ok=no ;;
14338 esac
14340 if test $ok = yes; then
14341 # An in-tree tool is available and we can use it
14342 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14344 $as_echo "just compiled" >&6; }
14345 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14346 # We already found the complete path
14347 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14349 $as_echo "pre-installed in $ac_dir" >&6; }
14350 elif test "x$target" = "x$host"; then
14351 # We can use an host tool
14352 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14354 $as_echo "host tool" >&6; }
14355 else
14356 # We need a cross tool
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14358 $as_echo "pre-installed" >&6; }
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14363 $as_echo_n "checking where to find the target objdump... " >&6; }
14364 if test "x${build}" != "x${host}" ; then
14365 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14366 # We already found the complete path
14367 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14369 $as_echo "pre-installed in $ac_dir" >&6; }
14370 else
14371 # Canadian cross, just use what we found
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373 $as_echo "pre-installed" >&6; }
14375 else
14376 ok=yes
14377 case " ${configdirs} " in
14378 *" binutils "*) ;;
14379 *) ok=no ;;
14380 esac
14382 if test $ok = yes; then
14383 # An in-tree tool is available and we can use it
14384 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14386 $as_echo "just compiled" >&6; }
14387 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14388 # We already found the complete path
14389 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14391 $as_echo "pre-installed in $ac_dir" >&6; }
14392 elif test "x$target" = "x$host"; then
14393 # We can use an host tool
14394 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14396 $as_echo "host tool" >&6; }
14397 else
14398 # We need a cross tool
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14400 $as_echo "pre-installed" >&6; }
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14405 $as_echo_n "checking where to find the target ranlib... " >&6; }
14406 if test "x${build}" != "x${host}" ; then
14407 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14408 # We already found the complete path
14409 ac_dir=`dirname $RANLIB_FOR_TARGET`
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14411 $as_echo "pre-installed in $ac_dir" >&6; }
14412 else
14413 # Canadian cross, just use what we found
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14415 $as_echo "pre-installed" >&6; }
14417 else
14418 ok=yes
14419 case " ${configdirs} " in
14420 *" binutils "*) ;;
14421 *) ok=no ;;
14422 esac
14424 if test $ok = yes; then
14425 # An in-tree tool is available and we can use it
14426 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14428 $as_echo "just compiled" >&6; }
14429 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14430 # We already found the complete path
14431 ac_dir=`dirname $RANLIB_FOR_TARGET`
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14433 $as_echo "pre-installed in $ac_dir" >&6; }
14434 elif test "x$target" = "x$host"; then
14435 # We can use an host tool
14436 RANLIB_FOR_TARGET='$(RANLIB)'
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14438 $as_echo "host tool" >&6; }
14439 else
14440 # We need a cross tool
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14442 $as_echo "pre-installed" >&6; }
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14447 $as_echo_n "checking where to find the target readelf... " >&6; }
14448 if test "x${build}" != "x${host}" ; then
14449 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14450 # We already found the complete path
14451 ac_dir=`dirname $READELF_FOR_TARGET`
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14453 $as_echo "pre-installed in $ac_dir" >&6; }
14454 else
14455 # Canadian cross, just use what we found
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14457 $as_echo "pre-installed" >&6; }
14459 else
14460 ok=yes
14461 case " ${configdirs} " in
14462 *" binutils "*) ;;
14463 *) ok=no ;;
14464 esac
14466 if test $ok = yes; then
14467 # An in-tree tool is available and we can use it
14468 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14470 $as_echo "just compiled" >&6; }
14471 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14472 # We already found the complete path
14473 ac_dir=`dirname $READELF_FOR_TARGET`
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14475 $as_echo "pre-installed in $ac_dir" >&6; }
14476 elif test "x$target" = "x$host"; then
14477 # We can use an host tool
14478 READELF_FOR_TARGET='$(READELF)'
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14480 $as_echo "host tool" >&6; }
14481 else
14482 # We need a cross tool
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14484 $as_echo "pre-installed" >&6; }
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14489 $as_echo_n "checking where to find the target strip... " >&6; }
14490 if test "x${build}" != "x${host}" ; then
14491 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14492 # We already found the complete path
14493 ac_dir=`dirname $STRIP_FOR_TARGET`
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14495 $as_echo "pre-installed in $ac_dir" >&6; }
14496 else
14497 # Canadian cross, just use what we found
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14499 $as_echo "pre-installed" >&6; }
14501 else
14502 ok=yes
14503 case " ${configdirs} " in
14504 *" binutils "*) ;;
14505 *) ok=no ;;
14506 esac
14508 if test $ok = yes; then
14509 # An in-tree tool is available and we can use it
14510 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14512 $as_echo "just compiled" >&6; }
14513 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14514 # We already found the complete path
14515 ac_dir=`dirname $STRIP_FOR_TARGET`
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14517 $as_echo "pre-installed in $ac_dir" >&6; }
14518 elif test "x$target" = "x$host"; then
14519 # We can use an host tool
14520 STRIP_FOR_TARGET='$(STRIP)'
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14522 $as_echo "host tool" >&6; }
14523 else
14524 # We need a cross tool
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14526 $as_echo "pre-installed" >&6; }
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14531 $as_echo_n "checking where to find the target windres... " >&6; }
14532 if test "x${build}" != "x${host}" ; then
14533 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14534 # We already found the complete path
14535 ac_dir=`dirname $WINDRES_FOR_TARGET`
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14537 $as_echo "pre-installed in $ac_dir" >&6; }
14538 else
14539 # Canadian cross, just use what we found
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14541 $as_echo "pre-installed" >&6; }
14543 else
14544 ok=yes
14545 case " ${configdirs} " in
14546 *" binutils "*) ;;
14547 *) ok=no ;;
14548 esac
14550 if test $ok = yes; then
14551 # An in-tree tool is available and we can use it
14552 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14554 $as_echo "just compiled" >&6; }
14555 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14556 # We already found the complete path
14557 ac_dir=`dirname $WINDRES_FOR_TARGET`
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14559 $as_echo "pre-installed in $ac_dir" >&6; }
14560 elif test "x$target" = "x$host"; then
14561 # We can use an host tool
14562 WINDRES_FOR_TARGET='$(WINDRES)'
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14564 $as_echo "host tool" >&6; }
14565 else
14566 # We need a cross tool
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14568 $as_echo "pre-installed" >&6; }
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14573 $as_echo_n "checking where to find the target windmc... " >&6; }
14574 if test "x${build}" != "x${host}" ; then
14575 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14576 # We already found the complete path
14577 ac_dir=`dirname $WINDMC_FOR_TARGET`
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14579 $as_echo "pre-installed in $ac_dir" >&6; }
14580 else
14581 # Canadian cross, just use what we found
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14583 $as_echo "pre-installed" >&6; }
14585 else
14586 ok=yes
14587 case " ${configdirs} " in
14588 *" binutils "*) ;;
14589 *) ok=no ;;
14590 esac
14592 if test $ok = yes; then
14593 # An in-tree tool is available and we can use it
14594 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14596 $as_echo "just compiled" >&6; }
14597 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14598 # We already found the complete path
14599 ac_dir=`dirname $WINDMC_FOR_TARGET`
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14601 $as_echo "pre-installed in $ac_dir" >&6; }
14602 elif test "x$target" = "x$host"; then
14603 # We can use an host tool
14604 WINDMC_FOR_TARGET='$(WINDMC)'
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14606 $as_echo "host tool" >&6; }
14607 else
14608 # We need a cross tool
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14610 $as_echo "pre-installed" >&6; }
14618 # Certain tools may need extra flags.
14619 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14620 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14621 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14623 # When building target libraries, except in a Canadian cross, we use
14624 # the same toolchain as the compiler we just built.
14625 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14626 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14627 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14628 if test $host = $build; then
14629 case " $configdirs " in
14630 *" gcc "*)
14631 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14632 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14633 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14635 esac
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14643 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14644 # Check whether --enable-maintainer-mode was given.
14645 if test "${enable_maintainer_mode+set}" = set; then :
14646 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14647 else
14648 USE_MAINTAINER_MODE=no
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14652 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14655 if test "$USE_MAINTAINER_MODE" = yes; then
14656 MAINTAINER_MODE_TRUE=
14657 MAINTAINER_MODE_FALSE='#'
14658 else
14659 MAINTAINER_MODE_TRUE='#'
14660 MAINTAINER_MODE_FALSE=
14662 MAINT=$MAINTAINER_MODE_TRUE
14664 # ---------------------
14665 # GCC bootstrap support
14666 # ---------------------
14668 # Stage specific cflags for build.
14669 stage1_cflags="-g"
14670 case $build in
14671 vax-*-*)
14672 case ${GCC} in
14673 yes) stage1_cflags="-g -Wa,-J" ;;
14674 *) stage1_cflags="-g -J" ;;
14675 esac ;;
14676 esac
14680 # Enable --enable-checking in stage1 of the compiler.
14681 # Check whether --enable-stage1-checking was given.
14682 if test "${enable_stage1_checking+set}" = set; then :
14683 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14684 else
14685 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14686 # For --disable-checking or implicit --enable-checking=release, avoid
14687 # setting --enable-checking=gc in the default stage1 checking for LTO
14688 # bootstraps. See PR62077.
14689 case $BUILD_CONFIG in
14690 *lto*)
14691 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14693 stage1_checking=--enable-checking=yes,types;;
14694 esac
14695 if test "x$enable_checking" = x && \
14696 test -d ${srcdir}/gcc && \
14697 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14698 stage1_checking=--enable-checking=yes,types,extra
14700 else
14701 stage1_checking=--enable-checking=$enable_checking,types
14707 # Enable -Werror in bootstrap stage2 and later.
14708 # Check whether --enable-werror was given.
14709 if test "${enable_werror+set}" = set; then :
14710 enableval=$enable_werror;
14711 else
14712 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14713 enable_werror=yes
14714 else
14715 enable_werror=no
14719 case ${enable_werror} in
14720 yes) stage2_werror_flag="--enable-werror-always" ;;
14721 *) stage2_werror_flag="" ;;
14722 esac
14725 # Enable --enable-host-shared.
14726 # Check whether --enable-host-shared was given.
14727 if test "${enable_host_shared+set}" = set; then :
14728 enableval=$enable_host_shared; host_shared=$enableval
14729 else
14730 host_shared=no
14735 # PR jit/64780: Require the user to explicitly specify
14736 # --enable-host-shared if the jit is enabled, hinting
14737 # that they might want to do a separate configure/build of
14738 # the jit, to avoid users from slowing down the rest of the
14739 # compiler by enabling the jit.
14740 if test ${host_shared} = "no" ; then
14741 case "${enable_languages}" in
14742 *jit*)
14743 as_fn_error "
14744 Enabling language \"jit\" requires --enable-host-shared.
14746 --enable-host-shared typically slows the rest of the compiler down by
14747 a few %, so you must explicitly enable it.
14749 If you want to build both the jit and the regular compiler, it is often
14750 best to do this via two separate configure/builds, in separate
14751 directories, to avoid imposing the performance cost of
14752 --enable-host-shared on the regular compiler." "$LINENO" 5
14756 esac
14759 # Specify what files to not compare during bootstrap.
14761 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14762 case "$target" in
14763 hppa*64*-*-hpux*) ;;
14764 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14765 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14766 esac
14769 ac_config_files="$ac_config_files Makefile"
14771 cat >confcache <<\_ACEOF
14772 # This file is a shell script that caches the results of configure
14773 # tests run on this system so they can be shared between configure
14774 # scripts and configure runs, see configure's option --config-cache.
14775 # It is not useful on other systems. If it contains results you don't
14776 # want to keep, you may remove or edit it.
14778 # config.status only pays attention to the cache file if you give it
14779 # the --recheck option to rerun configure.
14781 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14782 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14783 # following values.
14785 _ACEOF
14787 # The following way of writing the cache mishandles newlines in values,
14788 # but we know of no workaround that is simple, portable, and efficient.
14789 # So, we kill variables containing newlines.
14790 # Ultrix sh set writes to stderr and can't be redirected directly,
14791 # and sets the high bit in the cache file unless we assign to the vars.
14793 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14794 eval ac_val=\$$ac_var
14795 case $ac_val in #(
14796 *${as_nl}*)
14797 case $ac_var in #(
14798 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14800 esac
14801 case $ac_var in #(
14802 _ | IFS | as_nl) ;; #(
14803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14804 *) { eval $ac_var=; unset $ac_var;} ;;
14805 esac ;;
14806 esac
14807 done
14809 (set) 2>&1 |
14810 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14811 *${as_nl}ac_space=\ *)
14812 # `set' does not quote correctly, so add quotes: double-quote
14813 # substitution turns \\\\ into \\, and sed turns \\ into \.
14814 sed -n \
14815 "s/'/'\\\\''/g;
14816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14817 ;; #(
14819 # `set' quotes correctly as required by POSIX, so do not add quotes.
14820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14822 esac |
14823 sort
14825 sed '
14826 /^ac_cv_env_/b end
14827 t clear
14828 :clear
14829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14830 t end
14831 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14832 :end' >>confcache
14833 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14834 if test -w "$cache_file"; then
14835 test "x$cache_file" != "x/dev/null" &&
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14837 $as_echo "$as_me: updating cache $cache_file" >&6;}
14838 cat confcache >$cache_file
14839 else
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14841 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14844 rm -f confcache
14846 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14847 # Let make expand exec_prefix.
14848 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14850 # Transform confdefs.h into DEFS.
14851 # Protect against shell expansion while executing Makefile rules.
14852 # Protect against Makefile macro expansion.
14854 # If the first sed substitution is executed (which looks for macros that
14855 # take arguments), then branch to the quote section. Otherwise,
14856 # look for a macro that doesn't take arguments.
14857 ac_script='
14858 :mline
14859 /\\$/{
14861 s,\\\n,,
14862 b mline
14864 t clear
14865 :clear
14866 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14867 t quote
14868 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14869 t quote
14870 b any
14871 :quote
14872 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14873 s/\[/\\&/g
14874 s/\]/\\&/g
14875 s/\$/$$/g
14877 :any
14880 s/^\n//
14881 s/\n/ /g
14885 DEFS=`sed -n "$ac_script" confdefs.h`
14888 ac_libobjs=
14889 ac_ltlibobjs=
14890 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14891 # 1. Remove the extension, and $U if already installed.
14892 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14893 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14894 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14895 # will be set to the directory where LIBOBJS objects are built.
14896 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14897 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14898 done
14899 LIBOBJS=$ac_libobjs
14901 LTLIBOBJS=$ac_ltlibobjs
14905 : ${CONFIG_STATUS=./config.status}
14906 ac_write_fail=0
14907 ac_clean_files_save=$ac_clean_files
14908 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14910 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14911 as_write_fail=0
14912 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14913 #! $SHELL
14914 # Generated by $as_me.
14915 # Run this file to recreate the current configuration.
14916 # Compiler output produced by configure, useful for debugging
14917 # configure, is in config.log if it exists.
14919 debug=false
14920 ac_cs_recheck=false
14921 ac_cs_silent=false
14923 SHELL=\${CONFIG_SHELL-$SHELL}
14924 export SHELL
14925 _ASEOF
14926 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14927 ## -------------------- ##
14928 ## M4sh Initialization. ##
14929 ## -------------------- ##
14931 # Be more Bourne compatible
14932 DUALCASE=1; export DUALCASE # for MKS sh
14933 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14934 emulate sh
14935 NULLCMD=:
14936 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14937 # is contrary to our usage. Disable this feature.
14938 alias -g '${1+"$@"}'='"$@"'
14939 setopt NO_GLOB_SUBST
14940 else
14941 case `(set -o) 2>/dev/null` in #(
14942 *posix*) :
14943 set -o posix ;; #(
14944 *) :
14946 esac
14950 as_nl='
14952 export as_nl
14953 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14954 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14955 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14956 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14957 # Prefer a ksh shell builtin over an external printf program on Solaris,
14958 # but without wasting forks for bash or zsh.
14959 if test -z "$BASH_VERSION$ZSH_VERSION" \
14960 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14961 as_echo='print -r --'
14962 as_echo_n='print -rn --'
14963 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14964 as_echo='printf %s\n'
14965 as_echo_n='printf %s'
14966 else
14967 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14968 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14969 as_echo_n='/usr/ucb/echo -n'
14970 else
14971 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14972 as_echo_n_body='eval
14973 arg=$1;
14974 case $arg in #(
14975 *"$as_nl"*)
14976 expr "X$arg" : "X\\(.*\\)$as_nl";
14977 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14978 esac;
14979 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14981 export as_echo_n_body
14982 as_echo_n='sh -c $as_echo_n_body as_echo'
14984 export as_echo_body
14985 as_echo='sh -c $as_echo_body as_echo'
14988 # The user is always right.
14989 if test "${PATH_SEPARATOR+set}" != set; then
14990 PATH_SEPARATOR=:
14991 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14992 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14993 PATH_SEPARATOR=';'
14998 # IFS
14999 # We need space, tab and new line, in precisely that order. Quoting is
15000 # there to prevent editors from complaining about space-tab.
15001 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15002 # splitting by setting IFS to empty value.)
15003 IFS=" "" $as_nl"
15005 # Find who we are. Look in the path if we contain no directory separator.
15006 case $0 in #((
15007 *[\\/]* ) as_myself=$0 ;;
15008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15009 for as_dir in $PATH
15011 IFS=$as_save_IFS
15012 test -z "$as_dir" && as_dir=.
15013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15014 done
15015 IFS=$as_save_IFS
15018 esac
15019 # We did not find ourselves, most probably we were run as `sh COMMAND'
15020 # in which case we are not to be found in the path.
15021 if test "x$as_myself" = x; then
15022 as_myself=$0
15024 if test ! -f "$as_myself"; then
15025 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15026 exit 1
15029 # Unset variables that we do not need and which cause bugs (e.g. in
15030 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15031 # suppresses any "Segmentation fault" message there. '((' could
15032 # trigger a bug in pdksh 5.2.14.
15033 for as_var in BASH_ENV ENV MAIL MAILPATH
15034 do eval test x\${$as_var+set} = xset \
15035 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15036 done
15037 PS1='$ '
15038 PS2='> '
15039 PS4='+ '
15041 # NLS nuisances.
15042 LC_ALL=C
15043 export LC_ALL
15044 LANGUAGE=C
15045 export LANGUAGE
15047 # CDPATH.
15048 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15051 # as_fn_error ERROR [LINENO LOG_FD]
15052 # ---------------------------------
15053 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15054 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15055 # script with status $?, using 1 if that was 0.
15056 as_fn_error ()
15058 as_status=$?; test $as_status -eq 0 && as_status=1
15059 if test "$3"; then
15060 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15061 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15063 $as_echo "$as_me: error: $1" >&2
15064 as_fn_exit $as_status
15065 } # as_fn_error
15068 # as_fn_set_status STATUS
15069 # -----------------------
15070 # Set $? to STATUS, without forking.
15071 as_fn_set_status ()
15073 return $1
15074 } # as_fn_set_status
15076 # as_fn_exit STATUS
15077 # -----------------
15078 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15079 as_fn_exit ()
15081 set +e
15082 as_fn_set_status $1
15083 exit $1
15084 } # as_fn_exit
15086 # as_fn_unset VAR
15087 # ---------------
15088 # Portably unset VAR.
15089 as_fn_unset ()
15091 { eval $1=; unset $1;}
15093 as_unset=as_fn_unset
15094 # as_fn_append VAR VALUE
15095 # ----------------------
15096 # Append the text in VALUE to the end of the definition contained in VAR. Take
15097 # advantage of any shell optimizations that allow amortized linear growth over
15098 # repeated appends, instead of the typical quadratic growth present in naive
15099 # implementations.
15100 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15101 eval 'as_fn_append ()
15103 eval $1+=\$2
15105 else
15106 as_fn_append ()
15108 eval $1=\$$1\$2
15110 fi # as_fn_append
15112 # as_fn_arith ARG...
15113 # ------------------
15114 # Perform arithmetic evaluation on the ARGs, and store the result in the
15115 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15116 # must be portable across $(()) and expr.
15117 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15118 eval 'as_fn_arith ()
15120 as_val=$(( $* ))
15122 else
15123 as_fn_arith ()
15125 as_val=`expr "$@" || test $? -eq 1`
15127 fi # as_fn_arith
15130 if expr a : '\(a\)' >/dev/null 2>&1 &&
15131 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15132 as_expr=expr
15133 else
15134 as_expr=false
15137 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15138 as_basename=basename
15139 else
15140 as_basename=false
15143 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15144 as_dirname=dirname
15145 else
15146 as_dirname=false
15149 as_me=`$as_basename -- "$0" ||
15150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15151 X"$0" : 'X\(//\)$' \| \
15152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15153 $as_echo X/"$0" |
15154 sed '/^.*\/\([^/][^/]*\)\/*$/{
15155 s//\1/
15158 /^X\/\(\/\/\)$/{
15159 s//\1/
15162 /^X\/\(\/\).*/{
15163 s//\1/
15166 s/.*/./; q'`
15168 # Avoid depending upon Character Ranges.
15169 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15172 as_cr_digits='0123456789'
15173 as_cr_alnum=$as_cr_Letters$as_cr_digits
15175 ECHO_C= ECHO_N= ECHO_T=
15176 case `echo -n x` in #(((((
15177 -n*)
15178 case `echo 'xy\c'` in
15179 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15180 xy) ECHO_C='\c';;
15181 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15182 ECHO_T=' ';;
15183 esac;;
15185 ECHO_N='-n';;
15186 esac
15188 rm -f conf$$ conf$$.exe conf$$.file
15189 if test -d conf$$.dir; then
15190 rm -f conf$$.dir/conf$$.file
15191 else
15192 rm -f conf$$.dir
15193 mkdir conf$$.dir 2>/dev/null
15195 if (echo >conf$$.file) 2>/dev/null; then
15196 if ln -s conf$$.file conf$$ 2>/dev/null; then
15197 as_ln_s='ln -s'
15198 # ... but there are two gotchas:
15199 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15200 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15201 # In both cases, we have to default to `cp -p'.
15202 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15203 as_ln_s='cp -p'
15204 elif ln conf$$.file conf$$ 2>/dev/null; then
15205 as_ln_s=ln
15206 else
15207 as_ln_s='cp -p'
15209 else
15210 as_ln_s='cp -p'
15212 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15213 rmdir conf$$.dir 2>/dev/null
15216 # as_fn_mkdir_p
15217 # -------------
15218 # Create "$as_dir" as a directory, including parents if necessary.
15219 as_fn_mkdir_p ()
15222 case $as_dir in #(
15223 -*) as_dir=./$as_dir;;
15224 esac
15225 test -d "$as_dir" || eval $as_mkdir_p || {
15226 as_dirs=
15227 while :; do
15228 case $as_dir in #(
15229 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15230 *) as_qdir=$as_dir;;
15231 esac
15232 as_dirs="'$as_qdir' $as_dirs"
15233 as_dir=`$as_dirname -- "$as_dir" ||
15234 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15235 X"$as_dir" : 'X\(//\)[^/]' \| \
15236 X"$as_dir" : 'X\(//\)$' \| \
15237 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15238 $as_echo X"$as_dir" |
15239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15240 s//\1/
15243 /^X\(\/\/\)[^/].*/{
15244 s//\1/
15247 /^X\(\/\/\)$/{
15248 s//\1/
15251 /^X\(\/\).*/{
15252 s//\1/
15255 s/.*/./; q'`
15256 test -d "$as_dir" && break
15257 done
15258 test -z "$as_dirs" || eval "mkdir $as_dirs"
15259 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15262 } # as_fn_mkdir_p
15263 if mkdir -p . 2>/dev/null; then
15264 as_mkdir_p='mkdir -p "$as_dir"'
15265 else
15266 test -d ./-p && rmdir ./-p
15267 as_mkdir_p=false
15270 if test -x / >/dev/null 2>&1; then
15271 as_test_x='test -x'
15272 else
15273 if ls -dL / >/dev/null 2>&1; then
15274 as_ls_L_option=L
15275 else
15276 as_ls_L_option=
15278 as_test_x='
15279 eval sh -c '\''
15280 if test -d "$1"; then
15281 test -d "$1/.";
15282 else
15283 case $1 in #(
15284 -*)set "./$1";;
15285 esac;
15286 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15287 ???[sx]*):;;*)false;;esac;fi
15288 '\'' sh
15291 as_executable_p=$as_test_x
15293 # Sed expression to map a string onto a valid CPP name.
15294 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15296 # Sed expression to map a string onto a valid variable name.
15297 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15300 exec 6>&1
15301 ## ----------------------------------- ##
15302 ## Main body of $CONFIG_STATUS script. ##
15303 ## ----------------------------------- ##
15304 _ASEOF
15305 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15308 # Save the log message, to keep $0 and so on meaningful, and to
15309 # report actual input values of CONFIG_FILES etc. instead of their
15310 # values after options handling.
15311 ac_log="
15312 This file was extended by $as_me, which was
15313 generated by GNU Autoconf 2.64. Invocation command line was
15315 CONFIG_FILES = $CONFIG_FILES
15316 CONFIG_HEADERS = $CONFIG_HEADERS
15317 CONFIG_LINKS = $CONFIG_LINKS
15318 CONFIG_COMMANDS = $CONFIG_COMMANDS
15319 $ $0 $@
15321 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15324 _ACEOF
15326 case $ac_config_files in *"
15327 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15328 esac
15332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15333 # Files that config.status was made for.
15334 config_files="$ac_config_files"
15336 _ACEOF
15338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15339 ac_cs_usage="\
15340 \`$as_me' instantiates files and other configuration actions
15341 from templates according to the current configuration. Unless the files
15342 and actions are specified as TAGs, all are instantiated by default.
15344 Usage: $0 [OPTION]... [TAG]...
15346 -h, --help print this help, then exit
15347 -V, --version print version number and configuration settings, then exit
15348 -q, --quiet, --silent
15349 do not print progress messages
15350 -d, --debug don't remove temporary files
15351 --recheck update $as_me by reconfiguring in the same conditions
15352 --file=FILE[:TEMPLATE]
15353 instantiate the configuration file FILE
15355 Configuration files:
15356 $config_files
15358 Report bugs to the package provider."
15360 _ACEOF
15361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15362 ac_cs_version="\\
15363 config.status
15364 configured by $0, generated by GNU Autoconf 2.64,
15365 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15367 Copyright (C) 2009 Free Software Foundation, Inc.
15368 This config.status script is free software; the Free Software Foundation
15369 gives unlimited permission to copy, distribute and modify it."
15371 ac_pwd='$ac_pwd'
15372 srcdir='$srcdir'
15373 INSTALL='$INSTALL'
15374 AWK='$AWK'
15375 test -n "\$AWK" || AWK=awk
15376 _ACEOF
15378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15379 # The default lists apply if the user does not specify any file.
15380 ac_need_defaults=:
15381 while test $# != 0
15383 case $1 in
15384 --*=*)
15385 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15386 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15387 ac_shift=:
15390 ac_option=$1
15391 ac_optarg=$2
15392 ac_shift=shift
15394 esac
15396 case $ac_option in
15397 # Handling of the options.
15398 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15399 ac_cs_recheck=: ;;
15400 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15401 $as_echo "$ac_cs_version"; exit ;;
15402 --debug | --debu | --deb | --de | --d | -d )
15403 debug=: ;;
15404 --file | --fil | --fi | --f )
15405 $ac_shift
15406 case $ac_optarg in
15407 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15408 esac
15409 as_fn_append CONFIG_FILES " '$ac_optarg'"
15410 ac_need_defaults=false;;
15411 --he | --h | --help | --hel | -h )
15412 $as_echo "$ac_cs_usage"; exit ;;
15413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15414 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15415 ac_cs_silent=: ;;
15417 # This is an error.
15418 -*) as_fn_error "unrecognized option: \`$1'
15419 Try \`$0 --help' for more information." ;;
15421 *) as_fn_append ac_config_targets " $1"
15422 ac_need_defaults=false ;;
15424 esac
15425 shift
15426 done
15428 ac_configure_extra_args=
15430 if $ac_cs_silent; then
15431 exec 6>/dev/null
15432 ac_configure_extra_args="$ac_configure_extra_args --silent"
15435 _ACEOF
15436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15437 if \$ac_cs_recheck; then
15438 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15439 shift
15440 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15441 CONFIG_SHELL='$SHELL'
15442 export CONFIG_SHELL
15443 exec "\$@"
15446 _ACEOF
15447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15448 exec 5>>config.log
15450 echo
15451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15452 ## Running $as_me. ##
15453 _ASBOX
15454 $as_echo "$ac_log"
15455 } >&5
15457 _ACEOF
15458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15460 # INIT-COMMANDS
15462 extrasub_build="$extrasub_build"
15463 extrasub_host="$extrasub_host"
15464 extrasub_target="$extrasub_target"
15466 _ACEOF
15468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15470 # Handling of arguments.
15471 for ac_config_target in $ac_config_targets
15473 case $ac_config_target in
15474 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15476 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15477 esac
15478 done
15481 # If the user did not use the arguments to specify the items to instantiate,
15482 # then the envvar interface is used. Set only those that are not.
15483 # We use the long form for the default assignment because of an extremely
15484 # bizarre bug on SunOS 4.1.3.
15485 if $ac_need_defaults; then
15486 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15489 # Have a temporary directory for convenience. Make it in the build tree
15490 # simply because there is no reason against having it here, and in addition,
15491 # creating and moving files from /tmp can sometimes cause problems.
15492 # Hook for its removal unless debugging.
15493 # Note that there is a small window in which the directory will not be cleaned:
15494 # after its creation but before its name has been assigned to `$tmp'.
15495 $debug ||
15497 tmp=
15498 trap 'exit_status=$?
15499 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15501 trap 'as_fn_exit 1' 1 2 13 15
15503 # Create a (secure) tmp directory for tmp files.
15506 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15507 test -n "$tmp" && test -d "$tmp"
15508 } ||
15510 tmp=./conf$$-$RANDOM
15511 (umask 077 && mkdir "$tmp")
15512 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15514 # Set up the scripts for CONFIG_FILES section.
15515 # No need to generate them if there are no CONFIG_FILES.
15516 # This happens for instance with `./config.status config.h'.
15517 if test -n "$CONFIG_FILES"; then
15519 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15520 ac_cs_awk_getline=:
15521 ac_cs_awk_pipe_init=
15522 ac_cs_awk_read_file='
15523 while ((getline aline < (F[key])) > 0)
15524 print(aline)
15525 close(F[key])'
15526 ac_cs_awk_pipe_fini=
15527 else
15528 ac_cs_awk_getline=false
15529 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15530 ac_cs_awk_read_file='
15531 print "|#_!!_#|"
15532 print "cat " F[key] " &&"
15533 '$ac_cs_awk_pipe_init
15534 # The final `:' finishes the AND list.
15535 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15537 ac_cr=`echo X | tr X '\015'`
15538 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15539 # But we know of no other shell where ac_cr would be empty at this
15540 # point, so we can use a bashism as a fallback.
15541 if test "x$ac_cr" = x; then
15542 eval ac_cr=\$\'\\r\'
15544 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15545 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15546 ac_cs_awk_cr='\r'
15547 else
15548 ac_cs_awk_cr=$ac_cr
15551 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15552 _ACEOF
15554 # Create commands to substitute file output variables.
15556 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15557 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15558 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15559 echo "_ACAWK" &&
15560 echo "_ACEOF"
15561 } >conf$$files.sh &&
15562 . ./conf$$files.sh ||
15563 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15564 rm -f conf$$files.sh
15567 echo "cat >conf$$subs.awk <<_ACEOF" &&
15568 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15569 echo "_ACEOF"
15570 } >conf$$subs.sh ||
15571 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15572 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15573 ac_delim='%!_!# '
15574 for ac_last_try in false false false false false :; do
15575 . ./conf$$subs.sh ||
15576 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15578 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15579 if test $ac_delim_n = $ac_delim_num; then
15580 break
15581 elif $ac_last_try; then
15582 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15583 else
15584 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15586 done
15587 rm -f conf$$subs.sh
15589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15590 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15591 _ACEOF
15592 sed -n '
15594 s/^/S["/; s/!.*/"]=/
15597 s/^[^!]*!//
15598 :repl
15599 t repl
15600 s/'"$ac_delim"'$//
15601 t delim
15604 s/\(.\{148\}\).*/\1/
15605 t more1
15606 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15609 b repl
15610 :more1
15611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15614 s/.\{148\}//
15615 t nl
15616 :delim
15618 s/\(.\{148\}\).*/\1/
15619 t more2
15620 s/["\\]/\\&/g; s/^/"/; s/$/"/
15623 :more2
15624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15627 s/.\{148\}//
15628 t delim
15629 ' <conf$$subs.awk | sed '
15630 /^[^""]/{
15632 s/\n//
15634 ' >>$CONFIG_STATUS || ac_write_fail=1
15635 rm -f conf$$subs.awk
15636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15637 _ACAWK
15638 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15639 for (key in S) S_is_set[key] = 1
15640 FS = "\a"
15641 \$ac_cs_awk_pipe_init
15644 line = $ 0
15645 nfields = split(line, field, "@")
15646 substed = 0
15647 len = length(field[1])
15648 for (i = 2; i < nfields; i++) {
15649 key = field[i]
15650 keylen = length(key)
15651 if (S_is_set[key]) {
15652 value = S[key]
15653 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15654 len += length(value) + length(field[++i])
15655 substed = 1
15656 } else
15657 len += 1 + keylen
15659 if (nfields == 3 && !substed) {
15660 key = field[2]
15661 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15662 \$ac_cs_awk_read_file
15663 next
15666 print line
15668 \$ac_cs_awk_pipe_fini
15669 _ACAWK
15670 _ACEOF
15671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15672 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15673 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15674 else
15676 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15677 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15678 _ACEOF
15680 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15681 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15682 # trailing colons and then remove the whole line if VPATH becomes empty
15683 # (actually we leave an empty line to preserve line numbers).
15684 if test "x$srcdir" = x.; then
15685 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15686 s/:*\$(srcdir):*/:/
15687 s/:*\${srcdir}:*/:/
15688 s/:*@srcdir@:*/:/
15689 s/^\([^=]*=[ ]*\):*/\1/
15690 s/:*$//
15691 s/^[^=]*=[ ]*$//
15695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15696 fi # test -n "$CONFIG_FILES"
15699 eval set X " :F $CONFIG_FILES "
15700 shift
15701 for ac_tag
15703 case $ac_tag in
15704 :[FHLC]) ac_mode=$ac_tag; continue;;
15705 esac
15706 case $ac_mode$ac_tag in
15707 :[FHL]*:*);;
15708 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15709 :[FH]-) ac_tag=-:-;;
15710 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15711 esac
15712 ac_save_IFS=$IFS
15713 IFS=:
15714 set x $ac_tag
15715 IFS=$ac_save_IFS
15716 shift
15717 ac_file=$1
15718 shift
15720 case $ac_mode in
15721 :L) ac_source=$1;;
15722 :[FH])
15723 ac_file_inputs=
15724 for ac_f
15726 case $ac_f in
15727 -) ac_f="$tmp/stdin";;
15728 *) # Look for the file first in the build tree, then in the source tree
15729 # (if the path is not absolute). The absolute path cannot be DOS-style,
15730 # because $ac_f cannot contain `:'.
15731 test -f "$ac_f" ||
15732 case $ac_f in
15733 [\\/$]*) false;;
15734 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15735 esac ||
15736 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15737 esac
15738 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15739 as_fn_append ac_file_inputs " '$ac_f'"
15740 done
15742 # Let's still pretend it is `configure' which instantiates (i.e., don't
15743 # use $as_me), people would be surprised to read:
15744 # /* config.h. Generated by config.status. */
15745 configure_input='Generated from '`
15746 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15747 `' by configure.'
15748 if test x"$ac_file" != x-; then
15749 configure_input="$ac_file. $configure_input"
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15751 $as_echo "$as_me: creating $ac_file" >&6;}
15753 # Neutralize special characters interpreted by sed in replacement strings.
15754 case $configure_input in #(
15755 *\&* | *\|* | *\\* )
15756 ac_sed_conf_input=`$as_echo "$configure_input" |
15757 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15758 *) ac_sed_conf_input=$configure_input;;
15759 esac
15761 case $ac_tag in
15762 *:-:* | *:-) cat >"$tmp/stdin" \
15763 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15764 esac
15766 esac
15768 ac_dir=`$as_dirname -- "$ac_file" ||
15769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15770 X"$ac_file" : 'X\(//\)[^/]' \| \
15771 X"$ac_file" : 'X\(//\)$' \| \
15772 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15773 $as_echo X"$ac_file" |
15774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15775 s//\1/
15778 /^X\(\/\/\)[^/].*/{
15779 s//\1/
15782 /^X\(\/\/\)$/{
15783 s//\1/
15786 /^X\(\/\).*/{
15787 s//\1/
15790 s/.*/./; q'`
15791 as_dir="$ac_dir"; as_fn_mkdir_p
15792 ac_builddir=.
15794 case "$ac_dir" in
15795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15797 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15798 # A ".." for each directory in $ac_dir_suffix.
15799 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15800 case $ac_top_builddir_sub in
15801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15803 esac ;;
15804 esac
15805 ac_abs_top_builddir=$ac_pwd
15806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15807 # for backward compatibility:
15808 ac_top_builddir=$ac_top_build_prefix
15810 case $srcdir in
15811 .) # We are building in place.
15812 ac_srcdir=.
15813 ac_top_srcdir=$ac_top_builddir_sub
15814 ac_abs_top_srcdir=$ac_pwd ;;
15815 [\\/]* | ?:[\\/]* ) # Absolute name.
15816 ac_srcdir=$srcdir$ac_dir_suffix;
15817 ac_top_srcdir=$srcdir
15818 ac_abs_top_srcdir=$srcdir ;;
15819 *) # Relative name.
15820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15821 ac_top_srcdir=$ac_top_build_prefix$srcdir
15822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15823 esac
15824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15827 case $ac_mode in
15830 # CONFIG_FILE
15833 case $INSTALL in
15834 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15835 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15836 esac
15837 _ACEOF
15839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15840 # If the template does not know about datarootdir, expand it.
15841 # FIXME: This hack should be removed a few years after 2.60.
15842 ac_datarootdir_hack=; ac_datarootdir_seen=
15843 ac_sed_dataroot='
15844 /datarootdir/ {
15848 /@datadir@/p
15849 /@docdir@/p
15850 /@infodir@/p
15851 /@localedir@/p
15852 /@mandir@/p'
15853 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15854 *datarootdir*) ac_datarootdir_seen=yes;;
15855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15857 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15858 _ACEOF
15859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15860 ac_datarootdir_hack='
15861 s&@datadir@&$datadir&g
15862 s&@docdir@&$docdir&g
15863 s&@infodir@&$infodir&g
15864 s&@localedir@&$localedir&g
15865 s&@mandir@&$mandir&g
15866 s&\\\${datarootdir}&$datarootdir&g' ;;
15867 esac
15868 _ACEOF
15870 # Neutralize VPATH when `$srcdir' = `.'.
15871 # Shell code in configure.ac might set extrasub.
15872 # FIXME: do we really want to maintain this feature?
15873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15874 ac_sed_extra="$ac_vpsub
15875 $extrasub
15876 _ACEOF
15877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15880 s|@configure_input@|$ac_sed_conf_input|;t t
15881 s&@top_builddir@&$ac_top_builddir_sub&;t t
15882 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15883 s&@srcdir@&$ac_srcdir&;t t
15884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15885 s&@top_srcdir@&$ac_top_srcdir&;t t
15886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15887 s&@builddir@&$ac_builddir&;t t
15888 s&@abs_builddir@&$ac_abs_builddir&;t t
15889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15890 s&@INSTALL@&$ac_INSTALL&;t t
15891 $ac_datarootdir_hack
15893 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15894 if $ac_cs_awk_getline; then
15895 $AWK -f "$tmp/subs.awk"
15896 else
15897 $AWK -f "$tmp/subs.awk" | $SHELL
15898 fi >$tmp/out \
15899 || as_fn_error "could not create $ac_file" "$LINENO" 5
15901 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15902 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15903 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15905 which seems to be undefined. Please make sure it is defined." >&5
15906 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15907 which seems to be undefined. Please make sure it is defined." >&2;}
15909 rm -f "$tmp/stdin"
15910 case $ac_file in
15911 -) cat "$tmp/out" && rm -f "$tmp/out";;
15912 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15913 esac \
15914 || as_fn_error "could not create $ac_file" "$LINENO" 5
15919 esac
15922 case $ac_file$ac_mode in
15923 "Makefile":F) sed "$extrasub_build" Makefile |
15924 sed "$extrasub_host" |
15925 sed "$extrasub_target" > mf$$
15926 mv -f mf$$ Makefile ;;
15928 esac
15929 done # for ac_tag
15932 as_fn_exit 0
15933 _ACEOF
15934 ac_clean_files=$ac_clean_files_save
15936 test $ac_write_fail = 0 ||
15937 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15940 # configure is writing to config.log, and then calls config.status.
15941 # config.status does its own redirection, appending to config.log.
15942 # Unfortunately, on DOS this fails, as config.log is still kept open
15943 # by configure, so config.status won't be able to write to it; its
15944 # output is simply discarded. So we exec the FD to /dev/null,
15945 # effectively closing config.log, so it can be properly (re)opened and
15946 # appended to by config.status. When coming back to configure, we
15947 # need to make the FD available again.
15948 if test "$no_create" != yes; then
15949 ac_cs_success=:
15950 ac_config_status_args=
15951 test "$silent" = yes &&
15952 ac_config_status_args="$ac_config_status_args --quiet"
15953 exec 5>/dev/null
15954 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15955 exec 5>>config.log
15956 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15957 # would make configure fail if this is the last instruction.
15958 $ac_cs_success || as_fn_exit $?
15960 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15962 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}