* testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
[official-gcc.git] / configure
blob7dcaa2424784b20c16a1272a8b67e703013f3b9b
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 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
598 LIPO
600 DLLTOOL
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_zlib_configure_flags
647 extra_host_libiberty_configure_flags
648 stage1_languages
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
651 islinc
652 isllibs
653 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
676 EXTRA_CONFIGARGS_LIBJAVA
677 extra_liboffloadmic_configure_flags
678 target_subdir
679 host_subdir
680 build_subdir
681 build_libsubdir
684 LN_S
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 target_noncanonical
698 host_noncanonical
699 build_noncanonical
700 build_os
701 build_vendor
702 build_cpu
703 build
704 TOPLEVEL_CONFIGURE_ARGUMENTS
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files='serialization_dependencies
744 host_makefile_frag
745 target_makefile_frag
746 alphaieee_frag
747 ospace_frag'
748 ac_user_opts='
749 enable_option_checking
750 with_build_libsubdir
751 with_system_zlib
752 enable_as_accelerator_for
753 enable_offload_targets
754 enable_gold
755 enable_ld
756 enable_compressed_debug_sections
757 enable_libquadmath
758 enable_libquadmath_support
759 enable_libada
760 enable_libssp
761 enable_libstdcxx
762 enable_liboffloadmic
763 enable_static_libjava
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_build_sysroot
790 with_debug_prefix_map
791 with_build_config
792 enable_vtable_verify
793 enable_serial_configure
794 with_build_time_tools
795 enable_maintainer_mode
796 enable_stage1_checking
797 enable_werror
798 enable_host_shared
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
809 CXXFLAGS
811 build_configargs
812 host_configargs
813 target_configargs
816 DLLTOOL
818 LIPO
820 RANLIB
821 STRIP
822 WINDRES
823 WINDMC
824 OBJCOPY
825 OBJDUMP
826 READELF
827 CC_FOR_TARGET
828 CXX_FOR_TARGET
829 GCC_FOR_TARGET
830 GCJ_FOR_TARGET
831 GFORTRAN_FOR_TARGET
832 GOC_FOR_TARGET
833 AR_FOR_TARGET
834 AS_FOR_TARGET
835 DLLTOOL_FOR_TARGET
836 LD_FOR_TARGET
837 LIPO_FOR_TARGET
838 NM_FOR_TARGET
839 OBJCOPY_FOR_TARGET
840 OBJDUMP_FOR_TARGET
841 RANLIB_FOR_TARGET
842 READELF_FOR_TARGET
843 STRIP_FOR_TARGET
844 WINDRES_FOR_TARGET
845 WINDMC_FOR_TARGET'
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 ac_unrecognized_opts=
852 ac_unrecognized_sep=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
855 cache_file=/dev/null
856 exec_prefix=NONE
857 no_create=
858 no_recursion=
859 prefix=NONE
860 program_prefix=NONE
861 program_suffix=NONE
862 program_transform_name=s,x,x,
863 silent=
864 site=
865 srcdir=
866 verbose=
867 x_includes=NONE
868 x_libraries=NONE
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
896 ac_prev=
897 ac_dashdash=
898 for ac_option
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
903 ac_prev=
904 continue
907 case $ac_option in
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *) ac_optarg=yes ;;
910 esac
912 # Accept the important Cygnus configure options, so we can diagnose typos.
914 case $ac_dashdash$ac_option in
916 ac_dashdash=yes ;;
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
935 --config-cache | -C)
936 cache_file=config.cache ;;
938 -datadir | --datadir | --datadi | --datad)
939 ac_prev=datadir ;;
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) as_fn_error "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information."
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 esac
1253 done
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error "missing argument to $ac_option"
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error "pwd does not report name of working directory"
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1339 /^X\(\/\/\)$/{
1340 s//\1/
1343 /^X\(\/\).*/{
1344 s//\1/
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1352 else
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 case $srcdir in
1374 *" "*)
1375 as_fn_error "path to source, $srcdir, contains spaces"
1377 esac
1378 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394 \`configure' configures this package to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1403 Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447 _ACEOF
1449 cat <<\_ACEOF
1451 Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1460 _ACEOF
1463 if test -n "$ac_init_help"; then
1465 cat <<\_ACEOF
1467 Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-as-accelerator-for=ARG
1472 build as offload target compiler. Specify offload
1473 host triple by ARG
1474 --enable-offload-targets=LIST
1475 enable offloading to devices from comma-separated
1476 LIST of TARGET[=DIR]. Use optional path to find
1477 offload target compiler during the build
1478 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1479 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1480 --enable-compressed-debug-sections={all,gas,gold,ld}
1481 Enable compressed debug sections for gas, gold or ld
1482 by default
1483 --disable-libquadmath do not build libquadmath directory
1484 --disable-libquadmath-support
1485 disable libquadmath support for Fortran
1486 --enable-libada build libada directory
1487 --enable-libssp build libssp directory
1488 --disable-libstdcxx do not build libstdc++-v3 directory
1489 --enable-liboffloadmic=ARG
1490 build liboffloadmic [ARG={no,host,target}]
1491 --enable-static-libjava[=ARG]
1492 build static libjava [default=no]
1493 --enable-bootstrap enable bootstrapping [yes if native build]
1494 --disable-isl-version-check
1495 disable check for ISL version
1496 --enable-lto enable link time optimization support
1497 --enable-linker-plugin-configure-flags=FLAGS
1498 additional flags for configuring linker plugins
1499 [none]
1500 --enable-linker-plugin-flags=FLAGS
1501 additional flags for configuring and building linker
1502 plugins [none]
1503 --enable-stage1-languages[=all]
1504 choose additional languages to build during stage1.
1505 Mostly useful for compiler development
1506 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1507 Objective-C runtime
1508 --enable-vtable-verify Enable vtable verification feature
1509 --enable-serial-[{host,target,build}-]configure
1510 force sequential configuration of sub-packages for
1511 the host, target or build machine, or all
1512 sub-packages
1513 --enable-maintainer-mode
1514 enable make rules and dependencies not useful (and
1515 sometimes confusing) to the casual installer
1516 --enable-stage1-checking[=all]
1517 choose additional checking for stage1 of the
1518 compiler
1519 --enable-werror enable -Werror in bootstrap stage2 and later
1520 --enable-host-shared build host code as shared libraries
1522 Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-build-libsubdir=DIR Directory where to find libraries for build system
1526 --with-system-zlib use installed libz
1527 --with-mpc=PATH specify prefix directory for installed MPC package.
1528 Equivalent to --with-mpc-include=PATH/include plus
1529 --with-mpc-lib=PATH/lib
1530 --with-mpc-include=PATH specify directory for installed MPC include files
1531 --with-mpc-lib=PATH specify directory for the installed MPC library
1532 --with-mpfr-dir=PATH this option has been REMOVED
1533 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1534 Equivalent to --with-mpfr-include=PATH/include plus
1535 --with-mpfr-lib=PATH/lib
1536 --with-mpfr-include=PATH
1537 specify directory for installed MPFR include files
1538 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1539 --with-gmp-dir=PATH this option has been REMOVED
1540 --with-gmp=PATH specify prefix directory for the installed GMP
1541 package. Equivalent to
1542 --with-gmp-include=PATH/include plus
1543 --with-gmp-lib=PATH/lib
1544 --with-gmp-include=PATH specify directory for installed GMP include files
1545 --with-gmp-lib=PATH specify directory for the installed GMP library
1546 --with-stage1-libs=LIBS libraries for stage1
1547 --with-stage1-ldflags=FLAGS
1548 linker flags for stage1
1549 --with-boot-libs=LIBS libraries for stage2 and later
1550 --with-boot-ldflags=FLAGS
1551 linker flags for stage2 and later
1552 --with-isl=PATH Specify prefix directory for the installed ISL
1553 package. Equivalent to
1554 --with-isl-include=PATH/include plus
1555 --with-isl-lib=PATH/lib
1556 --with-isl-include=PATH Specify directory for installed ISL include files
1557 --with-isl-lib=PATH Specify the directory for the installed ISL library
1558 --with-build-sysroot=SYSROOT
1559 use sysroot as the system root during the build
1560 --with-debug-prefix-map='A=B C=D ...'
1561 map A to B, C to D ... in debug information
1562 --with-build-config='NAME NAME2...'
1563 use config/NAME.mk build configuration
1564 --with-build-time-tools=PATH
1565 use given path to find target tools during the build
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1575 CXX C++ compiler command
1576 CXXFLAGS C++ compiler flags
1577 build_configargs
1578 additional configure arguments for build directories
1579 host_configargs
1580 additional configure arguments for host directories
1581 target_configargs
1582 additional configure arguments for target directories
1583 AR AR for the host
1584 AS AS for the host
1585 DLLTOOL DLLTOOL for the host
1586 LD LD for the host
1587 LIPO LIPO for the host
1588 NM NM for the host
1589 RANLIB RANLIB for the host
1590 STRIP STRIP for the host
1591 WINDRES WINDRES for the host
1592 WINDMC WINDMC for the host
1593 OBJCOPY OBJCOPY for the host
1594 OBJDUMP OBJDUMP for the host
1595 READELF READELF for the host
1596 CC_FOR_TARGET
1597 CC for the target
1598 CXX_FOR_TARGET
1599 CXX for the target
1600 GCC_FOR_TARGET
1601 GCC for the target
1602 GCJ_FOR_TARGET
1603 GCJ for the target
1604 GFORTRAN_FOR_TARGET
1605 GFORTRAN for the target
1606 GOC_FOR_TARGET
1607 GOC for the target
1608 AR_FOR_TARGET
1609 AR for the target
1610 AS_FOR_TARGET
1611 AS for the target
1612 DLLTOOL_FOR_TARGET
1613 DLLTOOL for the target
1614 LD_FOR_TARGET
1615 LD for the target
1616 LIPO_FOR_TARGET
1617 LIPO for the target
1618 NM_FOR_TARGET
1619 NM for the target
1620 OBJCOPY_FOR_TARGET
1621 OBJCOPY for the target
1622 OBJDUMP_FOR_TARGET
1623 OBJDUMP for the target
1624 RANLIB_FOR_TARGET
1625 RANLIB for the target
1626 READELF_FOR_TARGET
1627 READELF for the target
1628 STRIP_FOR_TARGET
1629 STRIP for the target
1630 WINDRES_FOR_TARGET
1631 WINDRES for the target
1632 WINDMC_FOR_TARGET
1633 WINDMC for the target
1635 Use these variables to override the choices made by `configure' or to help
1636 it to find libraries and programs with nonstandard names/locations.
1638 Report bugs to the package provider.
1639 _ACEOF
1640 ac_status=$?
1643 if test "$ac_init_help" = "recursive"; then
1644 # If there are subdirs, report their specific --help.
1645 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1646 test -d "$ac_dir" ||
1647 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1648 continue
1649 ac_builddir=.
1651 case "$ac_dir" in
1652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1655 # A ".." for each directory in $ac_dir_suffix.
1656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1657 case $ac_top_builddir_sub in
1658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1660 esac ;;
1661 esac
1662 ac_abs_top_builddir=$ac_pwd
1663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1664 # for backward compatibility:
1665 ac_top_builddir=$ac_top_build_prefix
1667 case $srcdir in
1668 .) # We are building in place.
1669 ac_srcdir=.
1670 ac_top_srcdir=$ac_top_builddir_sub
1671 ac_abs_top_srcdir=$ac_pwd ;;
1672 [\\/]* | ?:[\\/]* ) # Absolute name.
1673 ac_srcdir=$srcdir$ac_dir_suffix;
1674 ac_top_srcdir=$srcdir
1675 ac_abs_top_srcdir=$srcdir ;;
1676 *) # Relative name.
1677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1678 ac_top_srcdir=$ac_top_build_prefix$srcdir
1679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1680 esac
1681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683 cd "$ac_dir" || { ac_status=$?; continue; }
1684 # Check for guested configure.
1685 if test -f "$ac_srcdir/configure.gnu"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1688 elif test -f "$ac_srcdir/configure"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure" --help=recursive
1691 else
1692 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1693 fi || ac_status=$?
1694 cd "$ac_pwd" || { ac_status=$?; break; }
1695 done
1698 test -n "$ac_init_help" && exit $ac_status
1699 if $ac_init_version; then
1700 cat <<\_ACEOF
1701 configure
1702 generated by GNU Autoconf 2.64
1704 Copyright (C) 2009 Free Software Foundation, Inc.
1705 This configure script is free software; the Free Software Foundation
1706 gives unlimited permission to copy, distribute and modify it.
1707 _ACEOF
1708 exit
1711 ## ------------------------ ##
1712 ## Autoconf initialization. ##
1713 ## ------------------------ ##
1715 # ac_fn_c_try_compile LINENO
1716 # --------------------------
1717 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_compile ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext
1722 if { { ac_try="$ac_compile"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_compile") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest.$ac_objext; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 ac_retval=1
1748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1749 return $ac_retval
1751 } # ac_fn_c_try_compile
1753 # ac_fn_cxx_try_compile LINENO
1754 # ----------------------------
1755 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_cxx_try_compile ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext
1760 if { { ac_try="$ac_compile"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_compile") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_cxx_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest.$ac_objext; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=1
1786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 return $ac_retval
1789 } # ac_fn_cxx_try_compile
1791 # ac_fn_cxx_try_link LINENO
1792 # -------------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_cxx_try_link ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest$ac_exeext
1798 if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_cxx_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest$ac_exeext && {
1817 test "$cross_compiling" = yes ||
1818 $as_test_x conftest$ac_exeext
1819 }; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1825 ac_retval=1
1827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829 # interfere with the next link command; also delete a directory that is
1830 # left behind by Apple's compiler. We do this before executing the actions.
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 return $ac_retval
1835 } # ac_fn_cxx_try_link
1837 # ac_fn_c_try_link LINENO
1838 # -----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_c_try_link ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext conftest$ac_exeext
1844 if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest$ac_exeext && {
1863 test "$cross_compiling" = yes ||
1864 $as_test_x conftest$ac_exeext
1865 }; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=1
1873 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875 # interfere with the next link command; also delete a directory that is
1876 # left behind by Apple's compiler. We do this before executing the actions.
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 return $ac_retval
1881 } # ac_fn_c_try_link
1882 cat >config.log <<_ACEOF
1883 This file contains any messages produced by compilers while
1884 running configure, to aid debugging if configure makes a mistake.
1886 It was created by $as_me, which was
1887 generated by GNU Autoconf 2.64. Invocation command line was
1889 $ $0 $@
1891 _ACEOF
1892 exec 5>>config.log
1894 cat <<_ASUNAME
1895 ## --------- ##
1896 ## Platform. ##
1897 ## --------- ##
1899 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1909 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1910 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1912 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1913 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1914 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916 _ASUNAME
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 $as_echo "PATH: $as_dir"
1924 done
1925 IFS=$as_save_IFS
1927 } >&5
1929 cat >&5 <<_ACEOF
1932 ## ----------- ##
1933 ## Core tests. ##
1934 ## ----------- ##
1936 _ACEOF
1939 # Keep a trace of the command line.
1940 # Strip out --no-create and --no-recursion so they do not pile up.
1941 # Strip out --silent because we don't want to record it for future runs.
1942 # Also quote any args containing shell meta-characters.
1943 # Make two passes to allow for proper duplicate-argument suppression.
1944 ac_configure_args=
1945 ac_configure_args0=
1946 ac_configure_args1=
1947 ac_must_keep_next=false
1948 for ac_pass in 1 2
1950 for ac_arg
1952 case $ac_arg in
1953 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955 | -silent | --silent | --silen | --sile | --sil)
1956 continue ;;
1957 *\'*)
1958 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 esac
1960 case $ac_pass in
1961 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963 as_fn_append ac_configure_args1 " '$ac_arg'"
1964 if test $ac_must_keep_next = true; then
1965 ac_must_keep_next=false # Got value, back to normal.
1966 else
1967 case $ac_arg in
1968 *=* | --config-cache | -C | -disable-* | --disable-* \
1969 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971 | -with-* | --with-* | -without-* | --without-* | --x)
1972 case "$ac_configure_args0 " in
1973 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974 esac
1976 -* ) ac_must_keep_next=true ;;
1977 esac
1979 as_fn_append ac_configure_args " '$ac_arg'"
1981 esac
1982 done
1983 done
1984 { ac_configure_args0=; unset ac_configure_args0;}
1985 { ac_configure_args1=; unset ac_configure_args1;}
1987 # When interrupted or exit'd, cleanup temporary files, and complete
1988 # config.log. We remove comments because anyway the quotes in there
1989 # would cause problems or look ugly.
1990 # WARNING: Use '\'' to represent an apostrophe within the trap.
1991 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992 trap 'exit_status=$?
1993 # Save into config.log some information that might help in debugging.
1995 echo
1997 cat <<\_ASBOX
1998 ## ---------------- ##
1999 ## Cache variables. ##
2000 ## ---------------- ##
2001 _ASBOX
2002 echo
2003 # The following way of writing the cache mishandles newlines in values,
2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006 eval ac_val=\$$ac_var
2007 case $ac_val in #(
2008 *${as_nl}*)
2009 case $ac_var in #(
2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012 esac
2013 case $ac_var in #(
2014 _ | IFS | as_nl) ;; #(
2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016 *) { eval $ac_var=; unset $ac_var;} ;;
2017 esac ;;
2018 esac
2019 done
2020 (set) 2>&1 |
2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022 *${as_nl}ac_space=\ *)
2023 sed -n \
2024 "s/'\''/'\''\\\\'\'''\''/g;
2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026 ;; #(
2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2030 esac |
2031 sort
2033 echo
2035 cat <<\_ASBOX
2036 ## ----------------- ##
2037 ## Output variables. ##
2038 ## ----------------- ##
2039 _ASBOX
2040 echo
2041 for ac_var in $ac_subst_vars
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 $as_echo "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2051 if test -n "$ac_subst_files"; then
2052 cat <<\_ASBOX
2053 ## ------------------- ##
2054 ## File substitutions. ##
2055 ## ------------------- ##
2056 _ASBOX
2057 echo
2058 for ac_var in $ac_subst_files
2060 eval ac_val=\$$ac_var
2061 case $ac_val in
2062 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063 esac
2064 $as_echo "$ac_var='\''$ac_val'\''"
2065 done | sort
2066 echo
2069 if test -s confdefs.h; then
2070 cat <<\_ASBOX
2071 ## ----------- ##
2072 ## confdefs.h. ##
2073 ## ----------- ##
2074 _ASBOX
2075 echo
2076 cat confdefs.h
2077 echo
2079 test "$ac_signal" != 0 &&
2080 $as_echo "$as_me: caught signal $ac_signal"
2081 $as_echo "$as_me: exit $exit_status"
2082 } >&5
2083 rm -f core *.core core.conftest.* &&
2084 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085 exit $exit_status
2087 for ac_signal in 1 2 13 15; do
2088 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2089 done
2090 ac_signal=0
2092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2093 rm -f -r conftest* confdefs.h
2095 $as_echo "/* confdefs.h */" > confdefs.h
2097 # Predefined preprocessor variables.
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_NAME "$PACKAGE_NAME"
2101 _ACEOF
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105 _ACEOF
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2109 _ACEOF
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_STRING "$PACKAGE_STRING"
2113 _ACEOF
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117 _ACEOF
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_URL "$PACKAGE_URL"
2121 _ACEOF
2124 # Let the site file select an alternate cache file if it wants to.
2125 # Prefer an explicitly selected file to automatically selected ones.
2126 ac_site_file1=NONE
2127 ac_site_file2=NONE
2128 if test -n "$CONFIG_SITE"; then
2129 ac_site_file1=$CONFIG_SITE
2130 elif test "x$prefix" != xNONE; then
2131 ac_site_file1=$prefix/share/config.site
2132 ac_site_file2=$prefix/etc/config.site
2133 else
2134 ac_site_file1=$ac_default_prefix/share/config.site
2135 ac_site_file2=$ac_default_prefix/etc/config.site
2137 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2139 test "x$ac_site_file" = xNONE && continue
2140 if test -r "$ac_site_file"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2142 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2143 sed 's/^/| /' "$ac_site_file" >&5
2144 . "$ac_site_file"
2146 done
2148 if test -r "$cache_file"; then
2149 # Some versions of bash will fail to source /dev/null (special
2150 # files actually), so we avoid doing that.
2151 if test -f "$cache_file"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153 $as_echo "$as_me: loading cache $cache_file" >&6;}
2154 case $cache_file in
2155 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156 *) . "./$cache_file";;
2157 esac
2159 else
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161 $as_echo "$as_me: creating cache $cache_file" >&6;}
2162 >$cache_file
2165 # Check that the precious variables saved in the cache have kept the same
2166 # value.
2167 ac_cache_corrupted=false
2168 for ac_var in $ac_precious_vars; do
2169 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170 eval ac_new_set=\$ac_env_${ac_var}_set
2171 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172 eval ac_new_val=\$ac_env_${ac_var}_value
2173 case $ac_old_set,$ac_new_set in
2174 set,)
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177 ac_cache_corrupted=: ;;
2178 ,set)
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181 ac_cache_corrupted=: ;;
2182 ,);;
2184 if test "x$ac_old_val" != "x$ac_new_val"; then
2185 # differences in whitespace do not lead to failure.
2186 ac_old_val_w=`echo x $ac_old_val`
2187 ac_new_val_w=`echo x $ac_new_val`
2188 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191 ac_cache_corrupted=:
2192 else
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195 eval $ac_var=\$ac_old_val
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2198 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2200 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2201 fi;;
2202 esac
2203 # Pass precious variables to config.status.
2204 if test "$ac_new_set" = set; then
2205 case $ac_new_val in
2206 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 *) ac_arg=$ac_var=$ac_new_val ;;
2208 esac
2209 case " $ac_configure_args " in
2210 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2211 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212 esac
2214 done
2215 if $ac_cache_corrupted; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2222 ## -------------------- ##
2223 ## Main body of script. ##
2224 ## -------------------- ##
2226 ac_ext=c
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240 progname=$0
2241 # if PWD already has a value, it is probably wrong.
2242 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2244 # Export original configure arguments for use by sub-configures.
2245 # Quote arguments with shell meta charatcers.
2246 TOPLEVEL_CONFIGURE_ARGUMENTS=
2247 set -- "$progname" "$@"
2248 for ac_arg
2250 case "$ac_arg" in
2251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2252 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2253 # if the argument is of the form -foo=baz, quote the baz part only
2254 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2255 *) ;;
2256 esac
2257 # Add the quoted argument to the list.
2258 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2259 done
2260 if test "$silent" = yes; then
2261 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2263 # Remove the initial space we just introduced and, as these will be
2264 # expanded by make, quote '$'.
2265 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2268 # Find the build, host, and target systems.
2269 ac_aux_dir=
2270 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2271 for ac_t in install-sh install.sh shtool; do
2272 if test -f "$ac_dir/$ac_t"; then
2273 ac_aux_dir=$ac_dir
2274 ac_install_sh="$ac_aux_dir/$ac_t -c"
2275 break 2
2277 done
2278 done
2279 if test -z "$ac_aux_dir"; then
2280 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2283 # These three variables are undocumented and unsupported,
2284 # and are intended to be withdrawn in a future Autoconf release.
2285 # They can cause serious problems if a builder's source tree is in a directory
2286 # whose full name contains unusual characters.
2287 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2288 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2289 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2292 # Make sure we can run config.sub.
2293 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2294 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2297 $as_echo_n "checking build system type... " >&6; }
2298 if test "${ac_cv_build+set}" = set; then :
2299 $as_echo_n "(cached) " >&6
2300 else
2301 ac_build_alias=$build_alias
2302 test "x$ac_build_alias" = x &&
2303 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2304 test "x$ac_build_alias" = x &&
2305 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2306 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2307 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2311 $as_echo "$ac_cv_build" >&6; }
2312 case $ac_cv_build in
2313 *-*-*) ;;
2314 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2315 esac
2316 build=$ac_cv_build
2317 ac_save_IFS=$IFS; IFS='-'
2318 set x $ac_cv_build
2319 shift
2320 build_cpu=$1
2321 build_vendor=$2
2322 shift; shift
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2325 build_os=$*
2326 IFS=$ac_save_IFS
2327 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2330 case ${build_alias} in
2331 "") build_noncanonical=${build} ;;
2332 *) build_noncanonical=${build_alias} ;;
2333 esac
2337 case ${host_alias} in
2338 "") host_noncanonical=${build_noncanonical} ;;
2339 *) host_noncanonical=${host_alias} ;;
2340 esac
2344 case ${target_alias} in
2345 "") target_noncanonical=${host_noncanonical} ;;
2346 *) target_noncanonical=${target_alias} ;;
2347 esac
2352 test "$host_noncanonical" = "$target_noncanonical" &&
2353 test "$program_prefix$program_suffix$program_transform_name" = \
2354 NONENONEs,x,x, &&
2355 program_transform_name=s,y,y,
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2358 $as_echo_n "checking host system type... " >&6; }
2359 if test "${ac_cv_host+set}" = set; then :
2360 $as_echo_n "(cached) " >&6
2361 else
2362 if test "x$host_alias" = x; then
2363 ac_cv_host=$ac_cv_build
2364 else
2365 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2366 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2371 $as_echo "$ac_cv_host" >&6; }
2372 case $ac_cv_host in
2373 *-*-*) ;;
2374 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2375 esac
2376 host=$ac_cv_host
2377 ac_save_IFS=$IFS; IFS='-'
2378 set x $ac_cv_host
2379 shift
2380 host_cpu=$1
2381 host_vendor=$2
2382 shift; shift
2383 # Remember, the first character of IFS is used to create $*,
2384 # except with old shells:
2385 host_os=$*
2386 IFS=$ac_save_IFS
2387 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2391 $as_echo_n "checking target system type... " >&6; }
2392 if test "${ac_cv_target+set}" = set; then :
2393 $as_echo_n "(cached) " >&6
2394 else
2395 if test "x$target_alias" = x; then
2396 ac_cv_target=$ac_cv_host
2397 else
2398 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2399 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2404 $as_echo "$ac_cv_target" >&6; }
2405 case $ac_cv_target in
2406 *-*-*) ;;
2407 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2408 esac
2409 target=$ac_cv_target
2410 ac_save_IFS=$IFS; IFS='-'
2411 set x $ac_cv_target
2412 shift
2413 target_cpu=$1
2414 target_vendor=$2
2415 shift; shift
2416 # Remember, the first character of IFS is used to create $*,
2417 # except with old shells:
2418 target_os=$*
2419 IFS=$ac_save_IFS
2420 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2423 # The aliases save the names the user supplied, while $host etc.
2424 # will get canonicalized.
2425 test -n "$target_alias" &&
2426 test "$program_prefix$program_suffix$program_transform_name" = \
2427 NONENONEs,x,x, &&
2428 program_prefix=${target_alias}-
2430 test "$program_prefix" != NONE &&
2431 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2432 # Use a double $ so make ignores it.
2433 test "$program_suffix" != NONE &&
2434 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2435 # Double any \ or $.
2436 # By default was `s,x,x', remove it if useless.
2437 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2438 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2442 # Get 'install' or 'install-sh' and its variants.
2443 # Find a good install program. We prefer a C program (faster),
2444 # so one script is as good as another. But avoid the broken or
2445 # incompatible versions:
2446 # SysV /etc/install, /usr/sbin/install
2447 # SunOS /usr/etc/install
2448 # IRIX /sbin/install
2449 # AIX /bin/install
2450 # AmigaOS /C/install, which installs bootblocks on floppy discs
2451 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2452 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2453 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2454 # OS/2's system install, which has a completely different semantic
2455 # ./install, which can be erroneously created by make from ./install.sh.
2456 # Reject install programs that cannot install multiple files.
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2458 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2459 if test -z "$INSTALL"; then
2460 if test "${ac_cv_path_install+set}" = set; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 # Account for people who put trailing slashes in PATH elements.
2469 case $as_dir/ in #((
2470 ./ | .// | /[cC]/* | \
2471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2472 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2473 /usr/ucb/* ) ;;
2475 # OSF1 and SCO ODT 3.0 have their own names for install.
2476 # Don't use installbsd from OSF since it installs stuff as root
2477 # by default.
2478 for ac_prog in ginstall scoinst install; do
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2481 if test $ac_prog = install &&
2482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483 # AIX install. It has an incompatible calling convention.
2485 elif test $ac_prog = install &&
2486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # program-specific install script used by HP pwplus--don't use.
2489 else
2490 rm -rf conftest.one conftest.two conftest.dir
2491 echo one > conftest.one
2492 echo two > conftest.two
2493 mkdir conftest.dir
2494 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2495 test -s conftest.one && test -s conftest.two &&
2496 test -s conftest.dir/conftest.one &&
2497 test -s conftest.dir/conftest.two
2498 then
2499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2500 break 3
2504 done
2505 done
2507 esac
2509 done
2510 IFS=$as_save_IFS
2512 rm -rf conftest.one conftest.two conftest.dir
2515 if test "${ac_cv_path_install+set}" = set; then
2516 INSTALL=$ac_cv_path_install
2517 else
2518 # As a last resort, use the slow shell script. Don't cache a
2519 # value for INSTALL within a source directory, because that will
2520 # break other packages using the cache if that directory is
2521 # removed, or if the value is a relative name.
2522 INSTALL=$ac_install_sh
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2526 $as_echo "$INSTALL" >&6; }
2528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2529 # It thinks the first close brace ends the variable substitution.
2530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2537 $as_echo_n "checking whether ln works... " >&6; }
2538 if test "${acx_cv_prog_LN+set}" = set; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 rm -f conftestdata_t
2542 echo >conftestdata_f
2543 if ln conftestdata_f conftestdata_t 2>/dev/null
2544 then
2545 acx_cv_prog_LN=ln
2546 else
2547 acx_cv_prog_LN=no
2549 rm -f conftestdata_f conftestdata_t
2552 if test $acx_cv_prog_LN = no; then
2553 LN="cp"
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2555 $as_echo "no, using $LN" >&6; }
2556 else
2557 LN="$acx_cv_prog_LN"
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559 $as_echo "yes" >&6; }
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2563 $as_echo_n "checking whether ln -s works... " >&6; }
2564 LN_S=$as_ln_s
2565 if test "$LN_S" = "ln -s"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2567 $as_echo "yes" >&6; }
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2570 $as_echo "no, using $LN_S" >&6; }
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2574 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2575 if test "${ac_cv_path_SED+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2579 for ac_i in 1 2 3 4 5 6 7; do
2580 ac_script="$ac_script$as_nl$ac_script"
2581 done
2582 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2583 { ac_script=; unset ac_script;}
2584 if test -z "$SED"; then
2585 ac_path_SED_found=false
2586 # Loop through the user's path and test for each of PROGNAME-LIST
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_prog in sed gsed; do
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2595 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2596 # Check for GNU ac_path_SED and select it if it is found.
2597 # Check for GNU $ac_path_SED
2598 case `"$ac_path_SED" --version 2>&1` in
2599 *GNU*)
2600 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2602 ac_count=0
2603 $as_echo_n 0123456789 >"conftest.in"
2604 while :
2606 cat "conftest.in" "conftest.in" >"conftest.tmp"
2607 mv "conftest.tmp" "conftest.in"
2608 cp "conftest.in" "conftest.nl"
2609 $as_echo '' >> "conftest.nl"
2610 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2612 as_fn_arith $ac_count + 1 && ac_count=$as_val
2613 if test $ac_count -gt ${ac_path_SED_max-0}; then
2614 # Best one so far, save it but keep looking for a better one
2615 ac_cv_path_SED="$ac_path_SED"
2616 ac_path_SED_max=$ac_count
2618 # 10*(2^10) chars as input seems more than enough
2619 test $ac_count -gt 10 && break
2620 done
2621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2622 esac
2624 $ac_path_SED_found && break 3
2625 done
2626 done
2627 done
2628 IFS=$as_save_IFS
2629 if test -z "$ac_cv_path_SED"; then
2630 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2632 else
2633 ac_cv_path_SED=$SED
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2638 $as_echo "$ac_cv_path_SED" >&6; }
2639 SED="$ac_cv_path_SED"
2640 rm -f conftest.sed
2642 for ac_prog in gawk mawk nawk awk
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_AWK+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$AWK"; then
2652 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_AWK="$ac_prog"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2665 done
2666 done
2667 IFS=$as_save_IFS
2671 AWK=$ac_cv_prog_AWK
2672 if test -n "$AWK"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2674 $as_echo "$AWK" >&6; }
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2681 test -n "$AWK" && break
2682 done
2685 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2687 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2688 # a relative path.
2689 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2690 INSTALL="${srcpwd}/install-sh -c"
2693 # Set srcdir to "." if that's what it is.
2694 # This is important for multilib support.
2695 pwd=`${PWDCMD-pwd}`
2696 if test "${pwd}" = "${srcpwd}" ; then
2697 srcdir=.
2700 topsrcdir=$srcpwd
2702 extra_host_args=
2704 ### To add a new directory to the tree, first choose whether it is a target
2705 ### or a host dependent tool. Then put it into the appropriate list
2706 ### (library or tools, host or target), doing a dependency sort.
2708 # Subdirs will be configured in the order listed in build_configdirs,
2709 # configdirs, or target_configdirs; see the serialization section below.
2711 # Dependency sorting is only needed when *configuration* must be done in
2712 # a particular order. In all cases a dependency should be specified in
2713 # the Makefile, whether or not it's implicitly specified here.
2715 # Double entries in build_configdirs, configdirs, or target_configdirs may
2716 # cause circular dependencies and break everything horribly.
2718 # these library is used by various programs built for the build
2719 # environment
2721 build_libs="build-libiberty build-libcpp"
2723 # these tools are built for the build environment
2724 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2726 # these libraries are used by various programs built for the host environment
2728 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2730 # these tools are built for the host environment
2731 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2732 # know that we are building the simulator.
2733 # binutils, gas and ld appear in that order because it makes sense to run
2734 # "make check" in that particular order.
2735 # If --enable-gold is used, "gold" may replace "ld".
2736 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"
2738 # libgcj represents the runtime libraries only used by gcj.
2739 libgcj="target-libffi \
2740 target-zlib \
2741 target-libjava"
2743 # these libraries are built for the target environment, and are built after
2744 # the host libraries and the host tools (which may be a cross compiler)
2745 # Note that libiberty is not a target library.
2746 target_libraries="target-libgcc \
2747 target-libbacktrace \
2748 target-libgloss \
2749 target-newlib \
2750 target-libgomp \
2751 target-libcilkrts \
2752 target-liboffloadmic \
2753 target-libatomic \
2754 target-libitm \
2755 target-libstdc++-v3 \
2756 target-libsanitizer \
2757 target-libvtv \
2758 target-libmpx \
2759 target-libssp \
2760 target-libquadmath \
2761 target-libgfortran \
2762 target-boehm-gc \
2763 ${libgcj} \
2764 target-libobjc \
2765 target-libada \
2766 target-libgo"
2768 # these tools are built using the target libraries, and are intended to
2769 # run only in the target environment
2771 # note: any program that *uses* libraries that are in the "target_libraries"
2772 # list belongs in this list.
2774 target_tools="target-rda"
2776 ################################################################################
2778 ## All tools belong in one of the four categories, and are assigned above
2779 ## We assign ${configdirs} this way to remove all embedded newlines. This
2780 ## is important because configure will choke if they ever get through.
2781 ## ${configdirs} is directories we build using the host tools.
2782 ## ${target_configdirs} is directories we build using the target tools.
2783 configdirs=`echo ${host_libs} ${host_tools}`
2784 target_configdirs=`echo ${target_libraries} ${target_tools}`
2785 build_configdirs=`echo ${build_libs} ${build_tools}`
2789 ################################################################################
2791 srcname="gnu development package"
2793 # This gets set non-empty for some net releases of packages.
2794 appdirs=""
2796 # Define is_cross_compiler to save on calls to 'test'.
2797 is_cross_compiler=
2798 if test x"${host}" = x"${target}" ; then
2799 is_cross_compiler=no
2800 else
2801 is_cross_compiler=yes
2804 # Find the build and target subdir names.
2806 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2807 # have matching libraries, they should use host libraries: Makefile.tpl
2808 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2809 # However, they still use the build modules, because the corresponding
2810 # host modules (e.g. bison) are only built for the host when bootstrap
2811 # finishes. So:
2812 # - build_subdir is where we find build modules, and never changes.
2813 # - build_libsubdir is where we find build libraries, and can be overridden.
2815 # Prefix 'build-' so this never conflicts with target_subdir.
2816 build_subdir="build-${build_noncanonical}"
2818 # Check whether --with-build-libsubdir was given.
2819 if test "${with_build_libsubdir+set}" = set; then :
2820 withval=$with_build_libsubdir; build_libsubdir="$withval"
2821 else
2822 build_libsubdir="$build_subdir"
2825 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2826 if ( test $srcdir = . && test -d gcc ) \
2827 || test -d $srcdir/../host-${host_noncanonical}; then
2828 host_subdir="host-${host_noncanonical}"
2829 else
2830 host_subdir=.
2832 # No prefix.
2833 target_subdir=${target_noncanonical}
2835 # Be sure to cover against remnants of an in-tree build.
2836 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2837 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2838 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2841 # Skipdirs are removed silently.
2842 skipdirs=
2843 # Noconfigdirs are removed loudly.
2844 noconfigdirs=""
2846 use_gnu_ld=
2847 # Make sure we don't let GNU ld be added if we didn't want it.
2848 if test x$with_gnu_ld = xno ; then
2849 use_gnu_ld=no
2850 noconfigdirs="$noconfigdirs ld gold"
2853 use_gnu_as=
2854 # Make sure we don't let GNU as be added if we didn't want it.
2855 if test x$with_gnu_as = xno ; then
2856 use_gnu_as=no
2857 noconfigdirs="$noconfigdirs gas"
2860 use_included_zlib=
2862 # Check whether --with-system-zlib was given.
2863 if test "${with_system_zlib+set}" = set; then :
2864 withval=$with_system_zlib;
2867 # Make sure we don't let ZLIB be added if we didn't want it.
2868 if test x$with_system_zlib = xyes ; then
2869 use_included_zlib=no
2870 noconfigdirs="$noconfigdirs zlib"
2873 # some tools are so dependent upon X11 that if we're not building with X,
2874 # it's not even worth trying to configure, much less build, that tool.
2876 case ${with_x} in
2877 yes | "") ;; # the default value for this tree is that X11 is available
2879 skipdirs="${skipdirs} tk itcl libgui"
2880 # We won't be able to build gdbtk without X.
2881 enable_gdbtk=no
2883 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2884 esac
2886 # Some are only suitable for cross toolchains.
2887 # Remove these if host=target.
2888 cross_only="target-libgloss target-newlib target-opcodes"
2890 case $is_cross_compiler in
2891 no) skipdirs="${skipdirs} ${cross_only}" ;;
2892 esac
2894 # If both --with-headers and --with-libs are specified, default to
2895 # --without-newlib.
2896 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2897 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2898 if test x"${with_newlib}" = x ; then
2899 with_newlib=no
2903 # Recognize --with-newlib/--without-newlib.
2904 case ${with_newlib} in
2905 no) skipdirs="${skipdirs} target-newlib" ;;
2906 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2907 esac
2909 # Check whether --enable-as-accelerator-for was given.
2910 if test "${enable_as_accelerator_for+set}" = set; then :
2911 enableval=$enable_as_accelerator_for;
2915 # Check whether --enable-offload-targets was given.
2916 if test "${enable_offload_targets+set}" = set; then :
2917 enableval=$enable_offload_targets;
2918 if test x"$enable_offload_targets" = x; then
2919 as_fn_error "no offload targets specified" "$LINENO" 5
2922 else
2923 enable_offload_targets=
2927 # Handle --enable-gold, --enable-ld.
2928 # --disable-gold [--enable-ld]
2929 # Build only ld. Default option.
2930 # --enable-gold [--enable-ld]
2931 # Build both gold and ld. Install gold as "ld.gold", install ld
2932 # as "ld.bfd" and "ld".
2933 # --enable-gold=default [--enable-ld]
2934 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2935 # install ld as "ld.bfd".
2936 # --enable-gold[=default] --disable-ld
2937 # Build only gold, which is then installed as both "ld.gold" and "ld".
2938 # --enable-gold --enable-ld=default
2939 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2940 # and ld.bfd).
2941 # In other words, ld is default
2942 # --enable-gold=default --enable-ld=default
2943 # Error.
2945 default_ld=
2946 # Check whether --enable-gold was given.
2947 if test "${enable_gold+set}" = set; then :
2948 enableval=$enable_gold; ENABLE_GOLD=$enableval
2949 else
2950 ENABLE_GOLD=no
2953 case "${ENABLE_GOLD}" in
2954 yes|default)
2955 # Check for ELF target.
2956 is_elf=no
2957 case "${target}" in
2958 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2959 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2960 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2961 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2962 case "${target}" in
2963 *-*-linux*aout* | *-*-linux*oldld*)
2966 is_elf=yes
2968 esac
2969 esac
2971 if test "$is_elf" = "yes"; then
2972 # Check for target supported by gold.
2973 case "${target}" in
2974 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2975 | aarch64*-*-* | tilegx*-*-*)
2976 configdirs="$configdirs gold"
2977 if test x${ENABLE_GOLD} = xdefault; then
2978 default_ld=gold
2980 ENABLE_GOLD=yes
2982 esac
2988 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2990 esac
2992 # Check whether --enable-ld was given.
2993 if test "${enable_ld+set}" = set; then :
2994 enableval=$enable_ld; ENABLE_LD=$enableval
2995 else
2996 ENABLE_LD=yes
3000 case "${ENABLE_LD}" in
3001 default)
3002 if test x${default_ld} != x; then
3003 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3006 yes)
3009 if test x${ENABLE_GOLD} != xyes; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3011 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3013 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3016 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3018 esac
3020 # PR gas/19109
3021 # Decide the default method for compressing debug sections.
3022 # Provide a configure time option to override our default.
3023 # Check whether --enable-compressed_debug_sections was given.
3024 if test "${enable_compressed_debug_sections+set}" = set; then :
3025 enableval=$enable_compressed_debug_sections;
3026 if test x"$enable_compressed_debug_sections" = xyes; then
3027 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3030 else
3031 enable_compressed_debug_sections=
3035 # Configure extra directories which are host specific
3037 case "${host}" in
3038 *-cygwin*)
3039 configdirs="$configdirs libtermcap" ;;
3040 esac
3042 # A target can indicate whether a language isn't supported for some reason.
3043 # Only spaces may be used in this macro; not newlines or tabs.
3044 unsupported_languages=
3046 # Remove more programs from consideration, based on the host or
3047 # target this usually means that a port of the program doesn't
3048 # exist yet.
3050 case "${host}" in
3051 i[3456789]86-*-msdosdjgpp*)
3052 noconfigdirs="$noconfigdirs tcl tk itcl"
3054 esac
3057 # Check whether --enable-libquadmath was given.
3058 if test "${enable_libquadmath+set}" = set; then :
3059 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3060 else
3061 ENABLE_LIBQUADMATH=yes
3064 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3065 noconfigdirs="$noconfigdirs target-libquadmath"
3069 # Check whether --enable-libquadmath-support was given.
3070 if test "${enable_libquadmath_support+set}" = set; then :
3071 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3072 else
3073 ENABLE_LIBQUADMATH_SUPPORT=yes
3076 enable_libquadmath_support=
3077 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3078 enable_libquadmath_support=no
3082 # Check whether --enable-libada was given.
3083 if test "${enable_libada+set}" = set; then :
3084 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3085 else
3086 ENABLE_LIBADA=yes
3089 if test "${ENABLE_LIBADA}" != "yes" ; then
3090 noconfigdirs="$noconfigdirs gnattools"
3093 # Check whether --enable-libssp was given.
3094 if test "${enable_libssp+set}" = set; then :
3095 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3096 else
3097 ENABLE_LIBSSP=yes
3101 # Check whether --enable-libstdcxx was given.
3102 if test "${enable_libstdcxx+set}" = set; then :
3103 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3104 else
3105 ENABLE_LIBSTDCXX=default
3108 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3109 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3112 # If this is accelerator compiler and its target is intelmic we enable
3113 # target liboffloadmic by default. If this is compiler with offloading
3114 # for intelmic we enable host liboffloadmic by default. Otherwise
3115 # liboffloadmic is disabled by default.
3116 # Check whether --enable-liboffloadmic was given.
3117 if test "${enable_liboffloadmic+set}" = set; then :
3118 enableval=$enable_liboffloadmic; case "$enableval" in
3119 no | host | target)
3120 enable_liboffloadmic=$enableval ;;
3122 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3123 esac
3124 else
3125 if test x"$enable_as_accelerator_for" != x; then
3126 case "${target}" in
3127 *-intelmic-* | *-intelmicemul-*)
3128 enable_liboffloadmic=target
3129 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3132 enable_liboffloadmic=no
3134 esac
3135 else
3136 case "${enable_offload_targets}" in
3137 *-intelmic-* | *-intelmicemul-*)
3138 enable_liboffloadmic=host
3139 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3142 enable_liboffloadmic=no
3144 esac
3150 # Save it here so that, even in case of --enable-libgcj, if the Java
3151 # front-end isn't enabled, we still get libgcj disabled.
3152 libgcj_saved=$libgcj
3153 case $enable_libgcj in
3154 yes)
3155 # If we reset it here, it won't get added to noconfigdirs in the
3156 # target-specific build rules, so it will be forcibly enabled
3157 # (unless the Java language itself isn't enabled).
3158 libgcj=
3161 # Make sure we get it printed in the list of not supported target libs.
3162 # Don't disable libffi, though, other languages use it.
3163 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3164 # Clear libgcj_saved so that even if java is enabled libffi won't be
3165 # built.
3166 libgcj_saved=
3168 esac
3170 # Check whether --enable-static-libjava was given.
3171 if test "${enable_static_libjava+set}" = set; then :
3172 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3173 else
3174 ENABLE_STATIC_LIBJAVA=no
3177 enable_static_libjava=
3178 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3179 enable_static_libjava=yes
3182 if test x$enable_static_libjava != xyes ; then
3183 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3187 # Enable libgomp by default on hosted POSIX systems, and a few others.
3188 if test x$enable_libgomp = x ; then
3189 case "${target}" in
3190 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3192 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3194 *-*-solaris2* | *-*-hpux11*)
3196 *-*-darwin* | *-*-aix*)
3198 nvptx*-*-*)
3201 noconfigdirs="$noconfigdirs target-libgomp"
3203 esac
3206 # Disable libatomic on unsupported systems.
3207 if test -d ${srcdir}/libatomic; then
3208 if test x$enable_libatomic = x; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3210 $as_echo_n "checking for libatomic support... " >&6; }
3211 if (srcdir=${srcdir}/libatomic; \
3212 . ${srcdir}/configure.tgt; \
3213 test -n "$UNSUPPORTED")
3214 then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 noconfigdirs="$noconfigdirs target-libatomic"
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3225 # Disable libcilkrts on unsupported systems.
3226 if test -d ${srcdir}/libcilkrts; then
3227 if test x$enable_libcilkrts = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3229 $as_echo_n "checking for libcilkrts support... " >&6; }
3230 if (srcdir=${srcdir}/libcilkrts; \
3231 . ${srcdir}/configure.tgt; \
3232 test -n "$UNSUPPORTED")
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 noconfigdirs="$noconfigdirs target-libcilkrts"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3244 # Disable liboffloadmic on unsupported systems.
3245 if test -d ${srcdir}/liboffloadmic; then
3246 if test x$enable_liboffloadmic != xno; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3248 $as_echo_n "checking for liboffloadmic support... " >&6; }
3249 if (srcdir=${srcdir}/liboffloadmic; \
3250 . ${srcdir}/configure.tgt; \
3251 test -n "$UNSUPPORTED")
3252 then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 noconfigdirs="$noconfigdirs target-liboffloadmic"
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3263 # Disable libitm on unsupported systems.
3264 if test -d ${srcdir}/libitm; then
3265 if test x$enable_libitm = x; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3267 $as_echo_n "checking for libitm support... " >&6; }
3268 if (srcdir=${srcdir}/libitm; \
3269 . ${srcdir}/configure.tgt; \
3270 test -n "$UNSUPPORTED")
3271 then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 noconfigdirs="$noconfigdirs target-libitm"
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277 $as_echo "yes" >&6; }
3282 # Disable libsanitizer on unsupported systems.
3283 if test -d ${srcdir}/libsanitizer; then
3284 if test x$enable_libsanitizer = x; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3286 $as_echo_n "checking for libsanitizer support... " >&6; }
3287 if (srcdir=${srcdir}/libsanitizer; \
3288 . ${srcdir}/configure.tgt; \
3289 test -n "$UNSUPPORTED")
3290 then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 noconfigdirs="$noconfigdirs target-libsanitizer"
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296 $as_echo "yes" >&6; }
3301 # Disable libvtv on unsupported systems.
3302 if test -d ${srcdir}/libvtv; then
3303 if test x$enable_libvtv = x; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3305 $as_echo_n "checking for libvtv support... " >&6; }
3306 if (srcdir=${srcdir}/libvtv; \
3307 . ${srcdir}/configure.tgt; \
3308 test "$VTV_SUPPORTED" != "yes")
3309 then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 noconfigdirs="$noconfigdirs target-libvtv"
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315 $as_echo "yes" >&6; }
3321 # Enable libmpx on supported systems by request.
3322 if test -d ${srcdir}/libmpx; then
3323 if test x$enable_libmpx = x; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3325 $as_echo_n "checking for libmpx support... " >&6; }
3326 if (srcdir=${srcdir}/libmpx; \
3327 . ${srcdir}/configure.tgt; \
3328 test "$LIBMPX_SUPPORTED" != "yes")
3329 then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 noconfigdirs="$noconfigdirs target-libmpx"
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3342 # Disable libquadmath for some systems.
3343 case "${target}" in
3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-*-aix* | rs6000-*-aix*)
3350 noconfigdirs="$noconfigdirs target-libquadmath"
3352 esac
3354 # Disable libssp for some systems.
3355 case "${target}" in
3356 avr-*-*)
3357 # No hosted I/O support.
3358 noconfigdirs="$noconfigdirs target-libssp"
3360 powerpc-*-aix* | rs6000-*-aix*)
3361 noconfigdirs="$noconfigdirs target-libssp"
3363 rl78-*-*)
3364 # libssp uses a misaligned load to trigger a fault, but the RL78
3365 # doesn't fault for those - instead, it gives a build-time error
3366 # for explicit misaligned loads.
3367 noconfigdirs="$noconfigdirs target-libssp"
3369 visium-*-*)
3370 # No hosted I/O support.
3371 noconfigdirs="$noconfigdirs target-libssp"
3373 esac
3375 # Disable libstdc++-v3 for some systems.
3376 # Allow user to override this if they pass --enable-libstdc++-v3
3377 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3378 case "${target}" in
3379 *-*-vxworks*)
3380 # VxWorks uses the Dinkumware C++ library.
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383 arm*-wince-pe*)
3384 # the C++ libraries don't build on top of CE's C libraries
3385 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3387 avr-*-*)
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3390 ft32-*-*)
3391 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 esac
3396 # Disable Fortran for some systems.
3397 case "${target}" in
3398 mmix-*-*)
3399 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3400 unsupported_languages="$unsupported_languages fortran"
3402 esac
3404 # Disable Java if libffi is not supported.
3405 case "${target}" in
3406 aarch64-*-*)
3408 alpha*-*-*)
3410 arm*-*-*)
3412 cris-*-*)
3414 frv-*-*)
3416 hppa*-*-linux*)
3418 hppa*-*-hpux*)
3420 i?86-*-*)
3422 ia64*-*-*)
3424 m32r*-*-*)
3426 m68k-*-*)
3428 mips*-*-rtems*)
3430 mips*-*-linux*)
3432 powerpc*-*-linux*)
3434 powerpc-*-darwin*)
3436 powerpc-*-aix* | rs6000-*-aix*)
3438 powerpc-*-freebsd*)
3440 powerpc64-*-freebsd*)
3442 powerpc*-*-rtems*)
3444 s390-*-* | s390x-*-*)
3446 sh-*-* | sh[34]*-*-*)
3448 sh64-*-* | sh5*-*-*)
3450 sparc*-*-*)
3452 x86_64-*-*)
3454 *-*-*)
3455 unsupported_languages="$unsupported_languages java"
3457 esac
3459 # Disable Java, libgcj or related libraries for some systems.
3460 case "${target}" in
3461 powerpc-*-darwin*)
3463 i[3456789]86-*-darwin*)
3465 x86_64-*-darwin[912]*)
3467 *-*-darwin*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3470 *-*-netware*)
3471 noconfigdirs="$noconfigdirs ${libgcj}"
3473 *-*-rtems*)
3474 noconfigdirs="$noconfigdirs ${libgcj}"
3476 *-*-tpf*)
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3479 *-*-uclinux*)
3480 noconfigdirs="$noconfigdirs ${libgcj}"
3482 *-*-vxworks*)
3483 noconfigdirs="$noconfigdirs ${libgcj}"
3485 alpha*-*-*vms*)
3486 noconfigdirs="$noconfigdirs ${libgcj}"
3488 arm*-*-freebsd*)
3489 noconfigdirs="$noconfigdirs ${libgcj}"
3491 arm-wince-pe)
3492 noconfigdirs="$noconfigdirs ${libgcj}"
3494 arm*-*-symbianelf*)
3495 noconfigdirs="$noconfigdirs ${libgcj}"
3497 bfin-*-*)
3498 noconfigdirs="$noconfigdirs target-boehm-gc"
3500 cris-*-* | crisv32-*-*)
3501 unsupported_languages="$unsupported_languages java"
3502 case "${target}" in
3503 *-*-linux*)
3505 *) # See PR46792 regarding target-libffi.
3506 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3507 esac
3509 hppa*64*-*-linux*)
3510 # In this case, it's because the hppa64-linux target is for
3511 # the kernel only at this point and has no libc, and thus no
3512 # headers, crt*.o, etc., all of which are needed by these.
3513 unsupported_languages="$unsupported_languages java"
3515 hppa*64*-*-hpux*)
3516 noconfigdirs="$noconfigdirs ${libgcj}"
3518 hppa*-hp-hpux11*)
3520 hppa*-*-hpux*)
3521 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3522 # build on HP-UX 10.20.
3523 noconfigdirs="$noconfigdirs ${libgcj}"
3525 ia64*-*-*vms*)
3526 noconfigdirs="$noconfigdirs ${libgcj}"
3528 i[3456789]86-w64-mingw*)
3529 noconfigdirs="$noconfigdirs ${libgcj}"
3531 i[3456789]86-*-mingw*)
3532 noconfigdirs="$noconfigdirs ${libgcj}"
3534 x86_64-*-mingw*)
3535 noconfigdirs="$noconfigdirs ${libgcj}"
3537 mmix-*-*)
3538 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3540 powerpc-*-aix*)
3541 # copied from rs6000-*-* entry
3542 noconfigdirs="$noconfigdirs ${libgcj}"
3544 rs6000-*-aix*)
3545 noconfigdirs="$noconfigdirs ${libgcj}"
3547 ft32-*-*)
3548 noconfigdirs="$noconfigdirs ${libgcj}"
3550 *-*-lynxos*)
3551 noconfigdirs="$noconfigdirs ${libgcj}"
3553 esac
3555 # Disable the go frontend on systems where it is known to not work. Please keep
3556 # this in sync with contrib/config-list.mk.
3557 case "${target}" in
3558 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3559 unsupported_languages="$unsupported_languages go"
3561 esac
3563 # Disable libgo for some systems where it is known to not work.
3564 # For testing, you can easily override this with --enable-libgo.
3565 if test x$enable_libgo = x; then
3566 case "${target}" in
3567 *-*-darwin*)
3568 # PR 46986
3569 noconfigdirs="$noconfigdirs target-libgo"
3571 *-*-cygwin* | *-*-mingw*)
3572 noconfigdirs="$noconfigdirs target-libgo"
3574 *-*-aix*)
3575 noconfigdirs="$noconfigdirs target-libgo"
3577 esac
3580 # Default libgloss CPU subdirectory.
3581 libgloss_dir="$target_cpu"
3583 case "${target}" in
3584 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3585 libgloss_dir=wince
3587 aarch64*-*-* )
3588 libgloss_dir=aarch64
3590 arm*-*-*)
3591 libgloss_dir=arm
3593 cris-*-* | crisv32-*-*)
3594 libgloss_dir=cris
3596 hppa*-*-*)
3597 libgloss_dir=pa
3599 i[3456789]86-*-*)
3600 libgloss_dir=i386
3602 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3603 libgloss_dir=m68hc11
3605 m68*-*-* | fido-*-*)
3606 libgloss_dir=m68k
3608 mips*-*-*)
3609 libgloss_dir=mips
3611 powerpc*-*-*)
3612 libgloss_dir=rs6000
3614 sparc*-*-*)
3615 libgloss_dir=sparc
3617 esac
3619 # Disable newlib and libgloss for various target OSes.
3620 case "${target}" in
3621 alpha*-dec-osf*)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 i[3456789]86-*-linux*)
3625 # This section makes it possible to build newlib natively on linux.
3626 # If we are using a cross compiler then don't configure newlib.
3627 if test x${is_cross_compiler} != xno ; then
3628 noconfigdirs="$noconfigdirs target-newlib"
3630 noconfigdirs="$noconfigdirs target-libgloss"
3631 # If we are not using a cross compiler, do configure newlib.
3632 # Note however, that newlib will only be configured in this situation
3633 # if the --with-newlib option has been given, because otherwise
3634 # 'target-newlib' will appear in skipdirs.
3636 i[3456789]86-*-rdos*)
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 sparc-*-sunos4*)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 *-*-aix*)
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 *-*-beos*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 *-*-chorusos)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654 *-*-dragonfly*)
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 *-*-freebsd*)
3658 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663 *-*-lynxos*)
3664 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 *-*-mingw*)
3667 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669 *-*-netbsd*)
3670 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 *-*-netware*)
3673 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675 *-*-tpf*)
3676 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 *-*-uclinux*)
3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681 *-*-vxworks*)
3682 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 esac
3686 case "${target}" in
3687 *-*-chorusos)
3689 powerpc-*-darwin*)
3690 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3691 noconfigdirs="$noconfigdirs sim target-rda"
3693 i[3456789]86-*-darwin*)
3694 noconfigdirs="$noconfigdirs ld gprof"
3695 noconfigdirs="$noconfigdirs sim target-rda"
3697 x86_64-*-darwin[912]*)
3698 noconfigdirs="$noconfigdirs ld gas gprof"
3699 noconfigdirs="$noconfigdirs sim target-rda"
3701 *-*-darwin*)
3702 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3703 noconfigdirs="$noconfigdirs sim target-rda"
3705 *-*-dragonfly*)
3707 *-*-freebsd*)
3708 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3709 && test -f /usr/local/include/gmp.h; then
3710 with_gmp=/usr/local
3713 *-*-kaos*)
3714 # Remove unsupported stuff on all kaOS configurations.
3715 noconfigdirs="$noconfigdirs target-libgloss"
3717 *-*-netbsd*)
3719 *-*-netware*)
3721 *-*-rtems*)
3722 noconfigdirs="$noconfigdirs target-libgloss"
3723 # this is not caught below because this stanza matches earlier
3724 case $target in
3725 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3726 esac
3728 # The tpf target doesn't support gdb yet.
3729 *-*-tpf*)
3730 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3732 *-*-uclinux*)
3733 noconfigdirs="$noconfigdirs target-rda"
3735 *-*-vxworks*)
3737 alpha*-dec-osf*)
3738 # ld works, but does not support shared libraries.
3739 # gas doesn't generate exception information.
3740 noconfigdirs="$noconfigdirs gas ld"
3742 alpha*-*-*vms*)
3743 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3745 alpha*-*-*)
3746 # newlib is not 64 bit ready
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3749 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3750 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3752 arc-*-*|arceb-*-*)
3753 noconfigdirs="$noconfigdirs target-libgloss"
3755 arm-*-pe*)
3756 noconfigdirs="$noconfigdirs target-libgloss"
3758 arm-*-riscix*)
3759 noconfigdirs="$noconfigdirs ld target-libgloss"
3761 avr-*-rtems*)
3763 avr-*-*)
3764 if test x${with_avrlibc} != xno; then
3765 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3768 c4x-*-* | tic4x-*-*)
3769 noconfigdirs="$noconfigdirs target-libgloss"
3771 tic54x-*-*)
3772 noconfigdirs="$noconfigdirs target-libgloss gdb"
3774 d10v-*-*)
3775 noconfigdirs="$noconfigdirs target-libgloss"
3777 d30v-*-*)
3778 noconfigdirs="$noconfigdirs gdb"
3780 fr30-*-elf*)
3781 noconfigdirs="$noconfigdirs gdb"
3783 ft32-*-*)
3784 noconfigdirs="$noconfigdirs target-rda gprof"
3786 moxie-*-*)
3787 noconfigdirs="$noconfigdirs"
3789 h8300*-*-*)
3790 noconfigdirs="$noconfigdirs target-libgloss"
3792 h8500-*-*)
3793 noconfigdirs="$noconfigdirs target-libgloss"
3795 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3797 hppa*64*-*-hpux*)
3798 noconfigdirs="$noconfigdirs gdb"
3800 hppa*-*-hpux11*)
3801 noconfigdirs="$noconfigdirs gdb ld"
3803 hppa*64*-*-linux*)
3805 hppa*-*-linux*)
3807 hppa*-*-*elf* | \
3808 hppa*-*-lites* | \
3809 hppa*-*-openbsd* | \
3810 hppa*64*-*-*)
3812 hppa*-*-pro*)
3814 hppa*-*-*)
3815 noconfigdirs="$noconfigdirs ld"
3817 i960-*-*)
3818 noconfigdirs="$noconfigdirs gdb"
3820 ia64*-*-elf*)
3821 # No gdb support yet.
3822 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3824 ia64*-**-hpux*)
3825 # No ld support yet.
3826 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3828 ia64*-*-*vms*)
3829 # No ld support yet.
3830 noconfigdirs="$noconfigdirs libgui itcl ld"
3832 i[3456789]86-w64-mingw*)
3834 i[3456789]86-*-mingw*)
3835 target_configdirs="$target_configdirs target-winsup"
3837 *-*-cygwin*)
3838 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3839 noconfigdirs="$noconfigdirs target-libgloss"
3840 # always build newlib if winsup directory is present.
3841 if test -d "$srcdir/winsup/cygwin"; then
3842 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3843 elif test -d "$srcdir/newlib"; then
3844 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3847 i[3456789]86-*-pe)
3848 noconfigdirs="$noconfigdirs target-libgloss"
3850 i[3456789]86-*-sco3.2v5*)
3851 # The linker does not yet know about weak symbols in COFF,
3852 # and is not configured to handle mixed ELF and COFF.
3853 noconfigdirs="$noconfigdirs ld target-libgloss"
3855 i[3456789]86-*-sco*)
3856 noconfigdirs="$noconfigdirs gprof target-libgloss"
3858 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3859 noconfigdirs="$noconfigdirs target-libgloss"
3861 i[3456789]86-*-sysv4*)
3862 noconfigdirs="$noconfigdirs target-libgloss"
3864 i[3456789]86-*-beos*)
3865 noconfigdirs="$noconfigdirs gdb"
3867 i[3456789]86-*-rdos*)
3868 noconfigdirs="$noconfigdirs gdb"
3870 mmix-*-*)
3871 noconfigdirs="$noconfigdirs gdb"
3873 mt-*-*)
3874 noconfigdirs="$noconfigdirs sim"
3876 powerpc-*-aix*)
3877 # copied from rs6000-*-* entry
3878 noconfigdirs="$noconfigdirs gprof"
3880 powerpc*-*-winnt* | powerpc*-*-pe*)
3881 target_configdirs="$target_configdirs target-winsup"
3882 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3883 # always build newlib.
3884 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3886 # This is temporary until we can link against shared libraries
3887 powerpcle-*-solaris*)
3888 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3890 powerpc-*-beos*)
3891 noconfigdirs="$noconfigdirs gdb"
3893 rs6000-*-lynxos*)
3894 noconfigdirs="$noconfigdirs gprof"
3896 rs6000-*-aix*)
3897 noconfigdirs="$noconfigdirs gprof"
3899 rs6000-*-*)
3900 noconfigdirs="$noconfigdirs gprof"
3902 m68k-apollo-*)
3903 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3905 microblaze*)
3906 noconfigdirs="$noconfigdirs gprof"
3908 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3909 if test x$with_newlib = xyes; then
3910 noconfigdirs="$noconfigdirs gprof"
3913 mips*-*-irix5*)
3914 noconfigdirs="$noconfigdirs gprof target-libgloss"
3916 mips*-*-irix6*)
3917 noconfigdirs="$noconfigdirs gprof target-libgloss"
3919 mips*-*-bsd*)
3920 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3922 mips*-*-linux*)
3924 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3925 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3926 noconfigdirs="$noconfigdirs ld gas gprof"
3928 mips*-*-*)
3929 noconfigdirs="$noconfigdirs gprof"
3931 nds32*-*-*)
3932 noconfigdirs="$noconfigdirs gdb"
3934 nvptx*-*-*)
3935 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3937 or1k*-*-*)
3938 noconfigdirs="$noconfigdirs gdb"
3940 sh-*-* | sh64-*-*)
3941 case "${target}" in
3942 sh*-*-elf)
3945 noconfigdirs="$noconfigdirs target-libgloss" ;;
3946 esac
3948 sparc-*-sunos4*)
3949 if test x${is_cross_compiler} = xno ; then
3950 use_gnu_ld=no
3953 tic6x-*-*)
3954 noconfigdirs="$noconfigdirs sim"
3956 tilepro*-*-* | tilegx*-*-*)
3957 noconfigdirs="$noconfigdirs sim"
3959 v810-*-*)
3960 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3962 vax-*-*)
3963 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3965 esac
3967 # If we aren't building newlib, then don't build libgloss, since libgloss
3968 # depends upon some newlib header files.
3969 case "${noconfigdirs}" in
3970 *target-libgloss*) ;;
3971 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3972 esac
3974 # Work in distributions that contain no compiler tools, like Autoconf.
3975 host_makefile_frag=/dev/null
3976 if test -d ${srcdir}/config ; then
3977 case "${host}" in
3978 i[3456789]86-*-msdosdjgpp*)
3979 host_makefile_frag="config/mh-djgpp"
3981 *-cygwin*)
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3984 $as_echo_n "checking to see if cat works as expected... " >&6; }
3985 echo a >cygwin-cat-check
3986 if test `cat cygwin-cat-check` = a ; then
3987 rm cygwin-cat-check
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3989 $as_echo "yes" >&6; }
3990 else
3991 rm cygwin-cat-check
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3994 as_fn_error "The cat command does not ignore carriage return characters.
3995 Please either mount the build directory in binary mode or run the following
3996 commands before running any configure script:
3997 set -o igncr
3998 export SHELLOPTS
3999 " "$LINENO" 5
4002 host_makefile_frag="config/mh-cygwin"
4004 *-mingw*)
4005 host_makefile_frag="config/mh-mingw"
4007 alpha*-linux*)
4008 host_makefile_frag="config/mh-alpha-linux"
4010 hppa*-hp-hpux10*)
4011 host_makefile_frag="config/mh-pa-hpux10"
4013 hppa*-hp-hpux*)
4014 host_makefile_frag="config/mh-pa"
4016 hppa*-*)
4017 host_makefile_frag="config/mh-pa"
4019 *-*-darwin*)
4020 host_makefile_frag="config/mh-darwin"
4022 powerpc-*-aix*)
4023 host_makefile_frag="config/mh-ppc-aix"
4025 rs6000-*-aix*)
4026 host_makefile_frag="config/mh-ppc-aix"
4028 esac
4031 if test "${build}" != "${host}" ; then
4032 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4033 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4034 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4035 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4036 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4037 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4038 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4039 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4040 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4041 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4042 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4043 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4044 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4045 else
4046 AR_FOR_BUILD="\$(AR)"
4047 AS_FOR_BUILD="\$(AS)"
4048 CC_FOR_BUILD="\$(CC)"
4049 CXX_FOR_BUILD="\$(CXX)"
4050 GCJ_FOR_BUILD="\$(GCJ)"
4051 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4052 GOC_FOR_BUILD="\$(GOC)"
4053 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4054 LD_FOR_BUILD="\$(LD)"
4055 NM_FOR_BUILD="\$(NM)"
4056 RANLIB_FOR_BUILD="\$(RANLIB)"
4057 WINDRES_FOR_BUILD="\$(WINDRES)"
4058 WINDMC_FOR_BUILD="\$(WINDMC)"
4061 ac_ext=c
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 if test -n "$ac_tool_prefix"; then
4067 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4068 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if test "${ac_cv_prog_CC+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 if test -n "$CC"; then
4075 ac_cv_prog_CC="$CC" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4084 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4088 done
4089 done
4090 IFS=$as_save_IFS
4094 CC=$ac_cv_prog_CC
4095 if test -n "$CC"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4097 $as_echo "$CC" >&6; }
4098 else
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4105 if test -z "$ac_cv_prog_CC"; then
4106 ac_ct_CC=$CC
4107 # Extract the first word of "gcc", so it can be a program name with args.
4108 set dummy gcc; ac_word=$2
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110 $as_echo_n "checking for $ac_word... " >&6; }
4111 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 if test -n "$ac_ct_CC"; then
4115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4116 else
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4124 ac_cv_prog_ac_ct_CC="gcc"
4125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 break 2
4128 done
4129 done
4130 IFS=$as_save_IFS
4134 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4135 if test -n "$ac_ct_CC"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4137 $as_echo "$ac_ct_CC" >&6; }
4138 else
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4143 if test "x$ac_ct_CC" = x; then
4144 CC=""
4145 else
4146 case $cross_compiling:$ac_tool_warned in
4147 yes:)
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4150 ac_tool_warned=yes ;;
4151 esac
4152 CC=$ac_ct_CC
4154 else
4155 CC="$ac_cv_prog_CC"
4158 if test -z "$CC"; then
4159 if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}cc; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if test "${ac_cv_prog_CC+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 if test -n "$CC"; then
4168 ac_cv_prog_CC="$CC" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_CC="${ac_tool_prefix}cc"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4181 done
4182 done
4183 IFS=$as_save_IFS
4187 CC=$ac_cv_prog_CC
4188 if test -n "$CC"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4190 $as_echo "$CC" >&6; }
4191 else
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4199 if test -z "$CC"; then
4200 # Extract the first word of "cc", so it can be a program name with args.
4201 set dummy cc; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if test "${ac_cv_prog_CC+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 if test -n "$CC"; then
4208 ac_cv_prog_CC="$CC" # Let the user override the test.
4209 else
4210 ac_prog_rejected=no
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4219 ac_prog_rejected=yes
4220 continue
4222 ac_cv_prog_CC="cc"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4226 done
4227 done
4228 IFS=$as_save_IFS
4230 if test $ac_prog_rejected = yes; then
4231 # We found a bogon in the path, so make sure we never use it.
4232 set dummy $ac_cv_prog_CC
4233 shift
4234 if test $# != 0; then
4235 # We chose a different compiler from the bogus one.
4236 # However, it has the same basename, so the bogon will be chosen
4237 # first if we set CC to just the basename; use the full file name.
4238 shift
4239 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4244 CC=$ac_cv_prog_CC
4245 if test -n "$CC"; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4247 $as_echo "$CC" >&6; }
4248 else
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4255 if test -z "$CC"; then
4256 if test -n "$ac_tool_prefix"; then
4257 for ac_prog in cl.exe
4259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if test "${ac_cv_prog_CC+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 if test -n "$CC"; then
4267 ac_cv_prog_CC="$CC" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4280 done
4281 done
4282 IFS=$as_save_IFS
4286 CC=$ac_cv_prog_CC
4287 if test -n "$CC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4289 $as_echo "$CC" >&6; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4296 test -n "$CC" && break
4297 done
4299 if test -z "$CC"; then
4300 ac_ct_CC=$CC
4301 for ac_prog in cl.exe
4303 # Extract the first word of "$ac_prog", so it can be a program name with args.
4304 set dummy $ac_prog; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$ac_ct_CC"; then
4311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_ac_ct_CC="$ac_prog"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4324 done
4325 done
4326 IFS=$as_save_IFS
4330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4331 if test -n "$ac_ct_CC"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4333 $as_echo "$ac_ct_CC" >&6; }
4334 else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4340 test -n "$ac_ct_CC" && break
4341 done
4343 if test "x$ac_ct_CC" = x; then
4344 CC=""
4345 else
4346 case $cross_compiling:$ac_tool_warned in
4347 yes:)
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4350 ac_tool_warned=yes ;;
4351 esac
4352 CC=$ac_ct_CC
4359 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361 as_fn_error "no acceptable C compiler found in \$PATH
4362 See \`config.log' for more details." "$LINENO" 5; }
4364 # Provide some information about the compiler.
4365 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4366 set X $ac_compile
4367 ac_compiler=$2
4368 for ac_option in --version -v -V -qversion; do
4369 { { ac_try="$ac_compiler $ac_option >&5"
4370 case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373 esac
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4377 ac_status=$?
4378 if test -s conftest.err; then
4379 sed '10a\
4380 ... rest of stderr output deleted ...
4381 10q' conftest.err >conftest.er1
4382 cat conftest.er1 >&5
4383 rm -f conftest.er1 conftest.err
4385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386 test $ac_status = 0; }
4387 done
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4393 main ()
4397 return 0;
4399 _ACEOF
4400 ac_clean_files_save=$ac_clean_files
4401 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4402 # Try to create an executable without -o first, disregard a.out.
4403 # It will help us diagnose broken compilers, and finding out an intuition
4404 # of exeext.
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4406 $as_echo_n "checking for C compiler default output file name... " >&6; }
4407 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4409 # The possible output files:
4410 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4412 ac_rmfiles=
4413 for ac_file in $ac_files
4415 case $ac_file in
4416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4417 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4418 esac
4419 done
4420 rm -f $ac_rmfiles
4422 if { { ac_try="$ac_link_default"
4423 case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426 esac
4427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428 $as_echo "$ac_try_echo"; } >&5
4429 (eval "$ac_link_default") 2>&5
4430 ac_status=$?
4431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4432 test $ac_status = 0; }; then :
4433 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4434 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4435 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4436 # so that the user can short-circuit this test for compilers unknown to
4437 # Autoconf.
4438 for ac_file in $ac_files ''
4440 test -f "$ac_file" || continue
4441 case $ac_file in
4442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4444 [ab].out )
4445 # We found the default executable, but exeext='' is most
4446 # certainly right.
4447 break;;
4448 *.* )
4449 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4450 then :; else
4451 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4453 # We set ac_cv_exeext here because the later test for it is not
4454 # safe: cross compilers may not add the suffix if given an `-o'
4455 # argument, so we may need to know it at that point already.
4456 # Even if this section looks crufty: it has the advantage of
4457 # actually working.
4458 break;;
4460 break;;
4461 esac
4462 done
4463 test "$ac_cv_exeext" = no && ac_cv_exeext=
4465 else
4466 ac_file=''
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4469 $as_echo "$ac_file" >&6; }
4470 if test -z "$ac_file"; then :
4471 $as_echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476 { as_fn_set_status 77
4477 as_fn_error "C compiler cannot create executables
4478 See \`config.log' for more details." "$LINENO" 5; }; }
4480 ac_exeext=$ac_cv_exeext
4482 # Check that the compiler produces executables we can run. If not, either
4483 # the compiler is broken, or we cross compile.
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4485 $as_echo_n "checking whether the C compiler works... " >&6; }
4486 # If not cross compiling, check that we can run a simple program.
4487 if test "$cross_compiling" != yes; then
4488 if { ac_try='./$ac_file'
4489 { { case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492 esac
4493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494 $as_echo "$ac_try_echo"; } >&5
4495 (eval "$ac_try") 2>&5
4496 ac_status=$?
4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; }; }; then
4499 cross_compiling=no
4500 else
4501 if test "$cross_compiling" = maybe; then
4502 cross_compiling=yes
4503 else
4504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4506 as_fn_error "cannot run C compiled programs.
4507 If you meant to cross compile, use \`--host'.
4508 See \`config.log' for more details." "$LINENO" 5; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4513 $as_echo "yes" >&6; }
4515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4516 ac_clean_files=$ac_clean_files_save
4517 # Check that the compiler produces executables we can run. If not, either
4518 # the compiler is broken, or we cross compile.
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4520 $as_echo_n "checking whether we are cross compiling... " >&6; }
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4522 $as_echo "$cross_compiling" >&6; }
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4525 $as_echo_n "checking for suffix of executables... " >&6; }
4526 if { { ac_try="$ac_link"
4527 case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530 esac
4531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4532 $as_echo "$ac_try_echo"; } >&5
4533 (eval "$ac_link") 2>&5
4534 ac_status=$?
4535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4536 test $ac_status = 0; }; then :
4537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4539 # work properly (i.e., refer to `conftest.exe'), while it won't with
4540 # `rm'.
4541 for ac_file in conftest.exe conftest conftest.*; do
4542 test -f "$ac_file" || continue
4543 case $ac_file in
4544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4546 break;;
4547 * ) break;;
4548 esac
4549 done
4550 else
4551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553 as_fn_error "cannot compute suffix of executables: cannot compile and link
4554 See \`config.log' for more details." "$LINENO" 5; }
4556 rm -f conftest$ac_cv_exeext
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4558 $as_echo "$ac_cv_exeext" >&6; }
4560 rm -f conftest.$ac_ext
4561 EXEEXT=$ac_cv_exeext
4562 ac_exeext=$EXEEXT
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4564 $as_echo_n "checking for suffix of object files... " >&6; }
4565 if test "${ac_cv_objext+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4572 main ()
4576 return 0;
4578 _ACEOF
4579 rm -f conftest.o conftest.obj
4580 if { { ac_try="$ac_compile"
4581 case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584 esac
4585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586 $as_echo "$ac_try_echo"; } >&5
4587 (eval "$ac_compile") 2>&5
4588 ac_status=$?
4589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590 test $ac_status = 0; }; then :
4591 for ac_file in conftest.o conftest.obj conftest.*; do
4592 test -f "$ac_file" || continue;
4593 case $ac_file in
4594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4596 break;;
4597 esac
4598 done
4599 else
4600 $as_echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4605 as_fn_error "cannot compute suffix of object files: cannot compile
4606 See \`config.log' for more details." "$LINENO" 5; }
4608 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4611 $as_echo "$ac_cv_objext" >&6; }
4612 OBJEXT=$ac_cv_objext
4613 ac_objext=$OBJEXT
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4615 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4616 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4623 main ()
4625 #ifndef __GNUC__
4626 choke me
4627 #endif
4630 return 0;
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"; then :
4634 ac_compiler_gnu=yes
4635 else
4636 ac_compiler_gnu=no
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4643 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4644 if test $ac_compiler_gnu = yes; then
4645 GCC=yes
4646 else
4647 GCC=
4649 ac_test_CFLAGS=${CFLAGS+set}
4650 ac_save_CFLAGS=$CFLAGS
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4652 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4653 if test "${ac_cv_prog_cc_g+set}" = set; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 ac_save_c_werror_flag=$ac_c_werror_flag
4657 ac_c_werror_flag=yes
4658 ac_cv_prog_cc_g=no
4659 CFLAGS="-g"
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4664 main ()
4668 return 0;
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672 ac_cv_prog_cc_g=yes
4673 else
4674 CFLAGS=""
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4679 main ()
4683 return 0;
4685 _ACEOF
4686 if ac_fn_c_try_compile "$LINENO"; then :
4688 else
4689 ac_c_werror_flag=$ac_save_c_werror_flag
4690 CFLAGS="-g"
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4695 main ()
4699 return 0;
4701 _ACEOF
4702 if ac_fn_c_try_compile "$LINENO"; then :
4703 ac_cv_prog_cc_g=yes
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 ac_c_werror_flag=$ac_save_c_werror_flag
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4713 $as_echo "$ac_cv_prog_cc_g" >&6; }
4714 if test "$ac_test_CFLAGS" = set; then
4715 CFLAGS=$ac_save_CFLAGS
4716 elif test $ac_cv_prog_cc_g = yes; then
4717 if test "$GCC" = yes; then
4718 CFLAGS="-g -O2"
4719 else
4720 CFLAGS="-g"
4722 else
4723 if test "$GCC" = yes; then
4724 CFLAGS="-O2"
4725 else
4726 CFLAGS=
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4730 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4731 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 ac_cv_prog_cc_c89=no
4735 ac_save_CC=$CC
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 #include <stdarg.h>
4739 #include <stdio.h>
4740 #include <sys/types.h>
4741 #include <sys/stat.h>
4742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4743 struct buf { int x; };
4744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4745 static char *e (p, i)
4746 char **p;
4747 int i;
4749 return p[i];
4751 static char *f (char * (*g) (char **, int), char **p, ...)
4753 char *s;
4754 va_list v;
4755 va_start (v,p);
4756 s = g (p, va_arg (v,int));
4757 va_end (v);
4758 return s;
4761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4762 function prototypes and stuff, but not '\xHH' hex character constants.
4763 These don't provoke an error unfortunately, instead are silently treated
4764 as 'x'. The following induces an error, until -std is added to get
4765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4766 array size at least. It's necessary to write '\x00'==0 to get something
4767 that's true only with -std. */
4768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4771 inside strings and character constants. */
4772 #define FOO(x) 'x'
4773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4775 int test (int i, double x);
4776 struct s1 {int (*f) (int a);};
4777 struct s2 {int (*f) (double a);};
4778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4779 int argc;
4780 char **argv;
4782 main ()
4784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4786 return 0;
4788 _ACEOF
4789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4792 CC="$ac_save_CC $ac_arg"
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794 ac_cv_prog_cc_c89=$ac_arg
4796 rm -f core conftest.err conftest.$ac_objext
4797 test "x$ac_cv_prog_cc_c89" != "xno" && break
4798 done
4799 rm -f conftest.$ac_ext
4800 CC=$ac_save_CC
4803 # AC_CACHE_VAL
4804 case "x$ac_cv_prog_cc_c89" in
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4807 $as_echo "none needed" >&6; } ;;
4808 xno)
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4810 $as_echo "unsupported" >&6; } ;;
4812 CC="$CC $ac_cv_prog_cc_c89"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4814 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4815 esac
4816 if test "x$ac_cv_prog_cc_c89" != xno; then :
4820 ac_ext=c
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826 ac_ext=cpp
4827 ac_cpp='$CXXCPP $CPPFLAGS'
4828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4831 if test -z "$CXX"; then
4832 if test -n "$CCC"; then
4833 CXX=$CCC
4834 else
4835 if test -n "$ac_tool_prefix"; then
4836 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if test "${ac_cv_prog_CXX+set}" = set; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -n "$CXX"; then
4846 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4859 done
4860 done
4861 IFS=$as_save_IFS
4865 CXX=$ac_cv_prog_CXX
4866 if test -n "$CXX"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4868 $as_echo "$CXX" >&6; }
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4875 test -n "$CXX" && break
4876 done
4878 if test -z "$CXX"; then
4879 ac_ct_CXX=$CXX
4880 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4882 # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy $ac_prog; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$ac_ct_CXX"; then
4890 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_ac_ct_CXX="$ac_prog"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4905 IFS=$as_save_IFS
4909 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4910 if test -n "$ac_ct_CXX"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4912 $as_echo "$ac_ct_CXX" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4919 test -n "$ac_ct_CXX" && break
4920 done
4922 if test "x$ac_ct_CXX" = x; then
4923 CXX="g++"
4924 else
4925 case $cross_compiling:$ac_tool_warned in
4926 yes:)
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4929 ac_tool_warned=yes ;;
4930 esac
4931 CXX=$ac_ct_CXX
4937 # Provide some information about the compiler.
4938 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4939 set X $ac_compile
4940 ac_compiler=$2
4941 for ac_option in --version -v -V -qversion; do
4942 { { ac_try="$ac_compiler $ac_option >&5"
4943 case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946 esac
4947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4948 $as_echo "$ac_try_echo"; } >&5
4949 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4950 ac_status=$?
4951 if test -s conftest.err; then
4952 sed '10a\
4953 ... rest of stderr output deleted ...
4954 10q' conftest.err >conftest.er1
4955 cat conftest.er1 >&5
4956 rm -f conftest.er1 conftest.err
4958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4959 test $ac_status = 0; }
4960 done
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4963 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4964 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4971 main ()
4973 #ifndef __GNUC__
4974 choke me
4975 #endif
4978 return 0;
4980 _ACEOF
4981 if ac_fn_cxx_try_compile "$LINENO"; then :
4982 ac_compiler_gnu=yes
4983 else
4984 ac_compiler_gnu=no
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4991 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4992 if test $ac_compiler_gnu = yes; then
4993 GXX=yes
4994 else
4995 GXX=
4997 ac_test_CXXFLAGS=${CXXFLAGS+set}
4998 ac_save_CXXFLAGS=$CXXFLAGS
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5000 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5001 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5005 ac_cxx_werror_flag=yes
5006 ac_cv_prog_cxx_g=no
5007 CXXFLAGS="-g"
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5012 main ()
5016 return 0;
5018 _ACEOF
5019 if ac_fn_cxx_try_compile "$LINENO"; then :
5020 ac_cv_prog_cxx_g=yes
5021 else
5022 CXXFLAGS=""
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5027 main ()
5031 return 0;
5033 _ACEOF
5034 if ac_fn_cxx_try_compile "$LINENO"; then :
5036 else
5037 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5038 CXXFLAGS="-g"
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5043 main ()
5047 return 0;
5049 _ACEOF
5050 if ac_fn_cxx_try_compile "$LINENO"; then :
5051 ac_cv_prog_cxx_g=yes
5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5061 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5062 if test "$ac_test_CXXFLAGS" = set; then
5063 CXXFLAGS=$ac_save_CXXFLAGS
5064 elif test $ac_cv_prog_cxx_g = yes; then
5065 if test "$GXX" = yes; then
5066 CXXFLAGS="-g -O2"
5067 else
5068 CXXFLAGS="-g"
5070 else
5071 if test "$GXX" = yes; then
5072 CXXFLAGS="-O2"
5073 else
5074 CXXFLAGS=
5077 ac_ext=c
5078 ac_cpp='$CPP $CPPFLAGS'
5079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084 # We must set the default linker to the linker used by gcc for the correct
5085 # operation of libtool. If LD is not defined and we are using gcc, try to
5086 # set the LD default to the ld used by gcc.
5087 if test -z "$LD"; then
5088 if test "$GCC" = yes; then
5089 case $build in
5090 *-*-mingw*)
5091 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5093 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5094 esac
5095 case $gcc_prog_ld in
5096 # Accept absolute paths.
5097 [\\/]* | [A-Za-z]:[\\/]*)
5098 LD="$gcc_prog_ld" ;;
5099 esac
5103 # Check whether -static-libstdc++ -static-libgcc is supported.
5104 have_static_libs=no
5105 if test "$GCC" = yes; then
5106 saved_LDFLAGS="$LDFLAGS"
5108 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5110 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5111 ac_ext=cpp
5112 ac_cpp='$CXXCPP $CPPFLAGS'
5113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5121 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5122 #error -static-libstdc++ not implemented
5123 #endif
5124 int main() {}
5125 _ACEOF
5126 if ac_fn_cxx_try_link "$LINENO"; then :
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5128 $as_echo "yes" >&6; }; have_static_libs=yes
5129 else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5133 rm -f core conftest.err conftest.$ac_objext \
5134 conftest$ac_exeext conftest.$ac_ext
5135 ac_ext=c
5136 ac_cpp='$CPP $CPPFLAGS'
5137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142 LDFLAGS="$saved_LDFLAGS"
5148 if test -n "$ac_tool_prefix"; then
5149 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5150 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 if test -n "$GNATBIND"; then
5157 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5170 done
5171 done
5172 IFS=$as_save_IFS
5176 GNATBIND=$ac_cv_prog_GNATBIND
5177 if test -n "$GNATBIND"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5179 $as_echo "$GNATBIND" >&6; }
5180 else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5187 if test -z "$ac_cv_prog_GNATBIND"; then
5188 ac_ct_GNATBIND=$GNATBIND
5189 # Extract the first word of "gnatbind", so it can be a program name with args.
5190 set dummy gnatbind; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test -n "$ac_ct_GNATBIND"; then
5197 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5216 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5217 if test -n "$ac_ct_GNATBIND"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5219 $as_echo "$ac_ct_GNATBIND" >&6; }
5220 else
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5225 if test "x$ac_ct_GNATBIND" = x; then
5226 GNATBIND="no"
5227 else
5228 case $cross_compiling:$ac_tool_warned in
5229 yes:)
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232 ac_tool_warned=yes ;;
5233 esac
5234 GNATBIND=$ac_ct_GNATBIND
5236 else
5237 GNATBIND="$ac_cv_prog_GNATBIND"
5240 if test -n "$ac_tool_prefix"; then
5241 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5242 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$GNATMAKE"; then
5249 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5262 done
5263 done
5264 IFS=$as_save_IFS
5268 GNATMAKE=$ac_cv_prog_GNATMAKE
5269 if test -n "$GNATMAKE"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5271 $as_echo "$GNATMAKE" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5279 if test -z "$ac_cv_prog_GNATMAKE"; then
5280 ac_ct_GNATMAKE=$GNATMAKE
5281 # Extract the first word of "gnatmake", so it can be a program name with args.
5282 set dummy gnatmake; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if test -n "$ac_ct_GNATMAKE"; then
5289 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5302 done
5303 done
5304 IFS=$as_save_IFS
5308 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5309 if test -n "$ac_ct_GNATMAKE"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5311 $as_echo "$ac_ct_GNATMAKE" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5317 if test "x$ac_ct_GNATMAKE" = x; then
5318 GNATMAKE="no"
5319 else
5320 case $cross_compiling:$ac_tool_warned in
5321 yes:)
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324 ac_tool_warned=yes ;;
5325 esac
5326 GNATMAKE=$ac_ct_GNATMAKE
5328 else
5329 GNATMAKE="$ac_cv_prog_GNATMAKE"
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5333 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5334 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 cat >conftest.adb <<EOF
5338 procedure conftest is begin null; end conftest;
5340 acx_cv_cc_gcc_supports_ada=no
5341 # There is a bug in old released versions of GCC which causes the
5342 # driver to exit successfully when the appropriate language module
5343 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5344 # Therefore we must check for the error message as well as an
5345 # unsuccessful exit.
5346 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5347 # given a .adb file, but produce no object file. So we must check
5348 # if an object file was really produced to guard against this.
5349 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5350 if test x"$errors" = x && test -f conftest.$ac_objext; then
5351 acx_cv_cc_gcc_supports_ada=yes
5353 rm -f conftest.*
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5356 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5358 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5359 have_gnat=yes
5360 else
5361 have_gnat=no
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5365 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5366 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 echo abfoo >t1
5370 echo cdfoo >t2
5371 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5372 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5373 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5375 else
5376 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5379 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5380 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5382 else
5383 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5386 rm t1 t2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5390 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5391 do_compare="$gcc_cv_prog_cmp_skip"
5395 # Check whether --enable-bootstrap was given.
5396 if test "${enable_bootstrap+set}" = set; then :
5397 enableval=$enable_bootstrap;
5398 else
5399 enable_bootstrap=default
5403 # Issue errors and warnings for invalid/strange bootstrap combinations.
5404 if test -r $srcdir/gcc/configure; then
5405 have_compiler=yes
5406 else
5407 have_compiler=no
5410 case "$have_compiler:$host:$target:$enable_bootstrap" in
5411 *:*:*:no) ;;
5413 # Default behavior. Enable bootstrap if we have a compiler
5414 # and we are in a native configuration.
5415 yes:$build:$build:default)
5416 enable_bootstrap=yes ;;
5418 *:*:*:default)
5419 enable_bootstrap=no ;;
5421 # We have a compiler and we are in a native configuration, bootstrap is ok
5422 yes:$build:$build:yes)
5425 # Other configurations, but we have a compiler. Assume the user knows
5426 # what he's doing.
5427 yes:*:*:yes)
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5429 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5432 # No compiler: if they passed --enable-bootstrap explicitly, fail
5433 no:*:*:yes)
5434 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5436 # Fail if wrong command line
5438 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5440 esac
5442 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5443 # C++98 compiler can still start the bootstrap.
5444 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5445 CXX="$CXX -std=gnu++98"
5448 # Used for setting $lt_cv_objdir
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5450 $as_echo_n "checking for objdir... " >&6; }
5451 if test "${lt_cv_objdir+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 rm -f .libs 2>/dev/null
5455 mkdir .libs 2>/dev/null
5456 if test -d .libs; then
5457 lt_cv_objdir=.libs
5458 else
5459 # MS-DOS does not allow filenames that begin with a dot.
5460 lt_cv_objdir=_libs
5462 rmdir .libs 2>/dev/null
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5465 $as_echo "$lt_cv_objdir" >&6; }
5466 objdir=$lt_cv_objdir
5472 cat >>confdefs.h <<_ACEOF
5473 #define LT_OBJDIR "$lt_cv_objdir/"
5474 _ACEOF
5478 # Check for GMP, MPFR and MPC
5479 gmplibs="-lmpc -lmpfr -lgmp"
5480 gmpinc=
5481 have_gmp=no
5483 # Specify a location for mpc
5484 # check for this first so it ends up on the link line before mpfr.
5486 # Check whether --with-mpc was given.
5487 if test "${with_mpc+set}" = set; then :
5488 withval=$with_mpc;
5492 # Check whether --with-mpc-include was given.
5493 if test "${with_mpc_include+set}" = set; then :
5494 withval=$with_mpc_include;
5498 # Check whether --with-mpc-lib was given.
5499 if test "${with_mpc_lib+set}" = set; then :
5500 withval=$with_mpc_lib;
5504 if test "x$with_mpc" != x; then
5505 gmplibs="-L$with_mpc/lib $gmplibs"
5506 gmpinc="-I$with_mpc/include $gmpinc"
5508 if test "x$with_mpc_include" != x; then
5509 gmpinc="-I$with_mpc_include $gmpinc"
5511 if test "x$with_mpc_lib" != x; then
5512 gmplibs="-L$with_mpc_lib $gmplibs"
5514 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5515 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5516 gmpinc='-I$$s/mpc/src '"$gmpinc"
5517 # Do not test the mpc version. Assume that it is sufficient, since
5518 # it is in the source tree, and the library has not been built yet
5519 # but it would be included on the link line in the version check below
5520 # hence making the test fail.
5521 have_gmp=yes
5524 # Specify a location for mpfr
5525 # check for this first so it ends up on the link line before gmp.
5527 # Check whether --with-mpfr-dir was given.
5528 if test "${with_mpfr_dir+set}" = set; then :
5529 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5530 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5535 # Check whether --with-mpfr was given.
5536 if test "${with_mpfr+set}" = set; then :
5537 withval=$with_mpfr;
5541 # Check whether --with-mpfr-include was given.
5542 if test "${with_mpfr_include+set}" = set; then :
5543 withval=$with_mpfr_include;
5547 # Check whether --with-mpfr-lib was given.
5548 if test "${with_mpfr_lib+set}" = set; then :
5549 withval=$with_mpfr_lib;
5553 if test "x$with_mpfr" != x; then
5554 gmplibs="-L$with_mpfr/lib $gmplibs"
5555 gmpinc="-I$with_mpfr/include $gmpinc"
5557 if test "x$with_mpfr_include" != x; then
5558 gmpinc="-I$with_mpfr_include $gmpinc"
5560 if test "x$with_mpfr_lib" != x; then
5561 gmplibs="-L$with_mpfr_lib $gmplibs"
5563 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5564 # MPFR v3.1.0 moved the sources into a src sub-directory.
5565 if test -d ${srcdir}/mpfr/src; then
5566 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5567 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5568 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5569 else
5570 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5571 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5572 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5574 # Do not test the mpfr version. Assume that it is sufficient, since
5575 # it is in the source tree, and the library has not been built yet
5576 # but it would be included on the link line in the version check below
5577 # hence making the test fail.
5578 have_gmp=yes
5581 # Specify a location for gmp
5583 # Check whether --with-gmp-dir was given.
5584 if test "${with_gmp_dir+set}" = set; then :
5585 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5586 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5591 # Check whether --with-gmp was given.
5592 if test "${with_gmp+set}" = set; then :
5593 withval=$with_gmp;
5597 # Check whether --with-gmp-include was given.
5598 if test "${with_gmp_include+set}" = set; then :
5599 withval=$with_gmp_include;
5603 # Check whether --with-gmp-lib was given.
5604 if test "${with_gmp_lib+set}" = set; then :
5605 withval=$with_gmp_lib;
5610 if test "x$with_gmp" != x; then
5611 gmplibs="-L$with_gmp/lib $gmplibs"
5612 gmpinc="-I$with_gmp/include $gmpinc"
5614 if test "x$with_gmp_include" != x; then
5615 gmpinc="-I$with_gmp_include $gmpinc"
5617 if test "x$with_gmp_lib" != x; then
5618 gmplibs="-L$with_gmp_lib $gmplibs"
5620 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5621 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5622 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5623 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5624 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5625 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5626 # Do not test the gmp version. Assume that it is sufficient, since
5627 # it is in the source tree, and the library has not been built yet
5628 # but it would be included on the link line in the version check below
5629 # hence making the test fail.
5630 have_gmp=yes
5633 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5634 have_gmp=yes
5635 saved_CFLAGS="$CFLAGS"
5636 CFLAGS="$CFLAGS $gmpinc"
5637 # Check for the recommended and required versions of GMP.
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5639 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 #include "gmp.h"
5645 main ()
5648 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5649 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5650 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5651 choke me
5652 #endif
5655 return 0;
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <gmp.h>
5663 main ()
5666 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5667 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5668 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5669 choke me
5670 #endif
5673 return 0;
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678 $as_echo "yes" >&6; }
5679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5681 $as_echo "buggy but acceptable" >&6; }
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }; have_gmp=no
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 # If we have GMP, check the MPFR version.
5691 if test x"$have_gmp" = xyes; then
5692 # Check for the recommended and required versions of MPFR.
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5694 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #include <gmp.h>
5698 #include <mpfr.h>
5700 main ()
5703 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5704 choke me
5705 #endif
5708 return 0;
5710 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 #include <gmp.h>
5715 #include <mpfr.h>
5717 main ()
5720 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5721 choke me
5722 #endif
5725 return 0;
5727 _ACEOF
5728 if ac_fn_c_try_compile "$LINENO"; then :
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5730 $as_echo "yes" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5733 $as_echo "buggy but acceptable" >&6; }
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }; have_gmp=no
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 # Check for the MPC header version.
5744 if test x"$have_gmp" = xyes ; then
5745 # Check for the recommended and required versions of MPC.
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5747 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #include <mpc.h>
5752 main ()
5755 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5756 choke me
5757 #endif
5760 return 0;
5762 _ACEOF
5763 if ac_fn_c_try_compile "$LINENO"; then :
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766 #include <mpc.h>
5768 main ()
5771 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5772 choke me
5773 #endif
5776 return 0;
5778 _ACEOF
5779 if ac_fn_c_try_compile "$LINENO"; then :
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5781 $as_echo "yes" >&6; }
5782 else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5784 $as_echo "buggy but acceptable" >&6; }
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }; have_gmp=no
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 # Now check the MPFR library.
5795 if test x"$have_gmp" = xyes; then
5796 saved_LIBS="$LIBS"
5797 LIBS="$LIBS $gmplibs"
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5799 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 #include <mpc.h>
5804 main ()
5807 mpfr_t n;
5808 mpfr_t x;
5809 mpc_t c;
5810 int t;
5811 mpfr_init (n);
5812 mpfr_init (x);
5813 mpfr_atan2 (n, n, x, GMP_RNDN);
5814 mpfr_erfc (n, x, GMP_RNDN);
5815 mpfr_subnormalize (x, t, GMP_RNDN);
5816 mpfr_clear(n);
5817 mpfr_clear(x);
5818 mpc_init2 (c, 53);
5819 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5820 mpc_cosh (c, c, MPC_RNDNN);
5821 mpc_pow (c, c, c, MPC_RNDNN);
5822 mpc_acosh (c, c, MPC_RNDNN);
5823 mpc_clear (c);
5826 return 0;
5828 _ACEOF
5829 if ac_fn_c_try_link "$LINENO"; then :
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5831 $as_echo "yes" >&6; }
5832 else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }; have_gmp=no
5836 rm -f core conftest.err conftest.$ac_objext \
5837 conftest$ac_exeext conftest.$ac_ext
5838 LIBS="$saved_LIBS"
5841 CFLAGS="$saved_CFLAGS"
5843 # The library versions listed in the error message below should match
5844 # the HARD-minimums enforced above.
5845 if test x$have_gmp != xyes; then
5846 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5847 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5848 their locations. Source code for these libraries can be found at
5849 their respective hosting sites as well as at
5850 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5851 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5852 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5853 make sure that you have installed both the libraries and the header
5854 files. They may be located in separate packages." "$LINENO" 5
5858 # Flags needed for both GMP, MPFR and/or MPC.
5866 # Libraries to use for stage1 or when not bootstrapping.
5868 # Check whether --with-stage1-libs was given.
5869 if test "${with_stage1_libs+set}" = set; then :
5870 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5871 stage1_libs=
5872 else
5873 stage1_libs=$withval
5875 else
5876 stage1_libs=
5881 # Linker flags to use for stage1 or when not bootstrapping.
5883 # Check whether --with-stage1-ldflags was given.
5884 if test "${with_stage1_ldflags+set}" = set; then :
5885 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5886 stage1_ldflags=
5887 else
5888 stage1_ldflags=$withval
5890 else
5891 stage1_ldflags=
5892 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5893 # if supported. But if the user explicitly specified the libraries to use,
5894 # trust that they are doing what they want.
5895 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5896 stage1_ldflags="-static-libstdc++ -static-libgcc"
5902 # Libraries to use for stage2 and later builds.
5904 # Check whether --with-boot-libs was given.
5905 if test "${with_boot_libs+set}" = set; then :
5906 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5907 poststage1_libs=
5908 else
5909 poststage1_libs=$withval
5911 else
5912 poststage1_libs=
5917 # Linker flags to use for stage2 and later builds.
5919 # Check whether --with-boot-ldflags was given.
5920 if test "${with_boot_ldflags+set}" = set; then :
5921 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5922 poststage1_ldflags=
5923 else
5924 poststage1_ldflags=$withval
5926 else
5927 poststage1_ldflags=
5928 # In stages 2 and 3, default to linking libstdc++ and libgcc
5929 # statically. But if the user explicitly specified the libraries to
5930 # use, trust that they are doing what they want.
5931 if test "$poststage1_libs" = ""; then
5932 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5938 # GCC GRAPHITE dependency ISL.
5939 # Basic setup is inlined here, actual checks are in config/isl.m4
5942 # Check whether --with-isl was given.
5943 if test "${with_isl+set}" = set; then :
5944 withval=$with_isl;
5948 # Treat --without-isl as a request to disable
5949 # GRAPHITE support and skip all following checks.
5950 if test "x$with_isl" != "xno"; then
5951 # Check for ISL
5954 # Check whether --with-isl-include was given.
5955 if test "${with_isl_include+set}" = set; then :
5956 withval=$with_isl_include;
5960 # Check whether --with-isl-lib was given.
5961 if test "${with_isl_lib+set}" = set; then :
5962 withval=$with_isl_lib;
5966 # Check whether --enable-isl-version-check was given.
5967 if test "${enable_isl_version_check+set}" = set; then :
5968 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5969 else
5970 ENABLE_ISL_CHECK=yes
5974 # Initialize isllibs and islinc.
5975 case $with_isl in
5977 isllibs=
5978 islinc=
5980 "" | yes)
5983 isllibs="-L$with_isl/lib"
5984 islinc="-I$with_isl/include"
5986 esac
5987 if test "x${with_isl_include}" != x ; then
5988 islinc="-I$with_isl_include"
5990 if test "x${with_isl_lib}" != x; then
5991 isllibs="-L$with_isl_lib"
5993 if test "x${islinc}" = x && test "x${isllibs}" = x \
5994 && test -d ${srcdir}/isl; then
5995 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5996 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5997 ENABLE_ISL_CHECK=no
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5999 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
6002 isllibs="${isllibs} -lisl"
6006 if test "${ENABLE_ISL_CHECK}" = yes ; then
6007 _isl_saved_CFLAGS=$CFLAGS
6008 _isl_saved_LDFLAGS=$LDFLAGS
6009 _isl_saved_LIBS=$LIBS
6011 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6012 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6013 LIBS="${_isl_saved_LIBS} -lisl"
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
6016 $as_echo_n "checking for compatible ISL... " >&6; }
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 #include <isl/val.h>
6021 main ()
6025 return 0;
6027 _ACEOF
6028 if ac_fn_c_try_link "$LINENO"; then :
6029 gcc_cv_isl=yes
6030 else
6031 gcc_cv_isl=no
6033 rm -f core conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6036 $as_echo "$gcc_cv_isl" >&6; }
6038 CFLAGS=$_isl_saved_CFLAGS
6039 LDFLAGS=$_isl_saved_LDFLAGS
6040 LIBS=$_isl_saved_LIBS
6048 if test "x${with_isl}" = xno; then
6049 graphite_requested=no
6050 elif test "x${with_isl}" != x \
6051 || test "x${with_isl_include}" != x \
6052 || test "x${with_isl_lib}" != x ; then
6053 graphite_requested=yes
6054 else
6055 graphite_requested=no
6060 if test "${gcc_cv_isl}" = no ; then
6061 isllibs=
6062 islinc=
6065 if test "${graphite_requested}" = yes \
6066 && test "x${isllibs}" = x \
6067 && test "x${islinc}" = x ; then
6069 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6075 # If the ISL check failed, disable builds of in-tree variant of ISL
6076 if test "x$with_isl" = xno ||
6077 test "x$gcc_cv_isl" = xno; then
6078 noconfigdirs="$noconfigdirs isl"
6079 islinc=
6085 # Check for LTO support.
6086 # Check whether --enable-lto was given.
6087 if test "${enable_lto+set}" = set; then :
6088 enableval=$enable_lto; enable_lto=$enableval
6089 else
6090 enable_lto=yes; default_enable_lto=yes
6097 target_elf=no
6098 case $target in
6099 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6100 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6101 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6102 nvptx-*-none)
6103 target_elf=no
6106 target_elf=yes
6108 esac
6110 if test $target_elf = yes; then :
6111 # ELF platforms build the lto-plugin always.
6112 build_lto_plugin=yes
6114 else
6115 if test x"$default_enable_lto" = x"yes" ; then
6116 case $target in
6117 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6118 # On other non-ELF platforms, LTO has yet to be validated.
6119 *) enable_lto=no ;;
6120 esac
6121 else
6122 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6123 # It would also be nice to check the binutils support, but we don't
6124 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6125 # warn during gcc/ subconfigure; unless you're bootstrapping with
6126 # -flto it won't be needed until after installation anyway.
6127 case $target in
6128 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6129 *) if test x"$enable_lto" = x"yes"; then
6130 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6133 esac
6135 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6136 # Build it unless LTO was explicitly disabled.
6137 case $target in
6138 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6139 *) ;;
6140 esac
6145 # Check whether --enable-linker-plugin-configure-flags was given.
6146 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6147 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6148 else
6149 extra_linker_plugin_configure_flags=
6153 # Check whether --enable-linker-plugin-flags was given.
6154 if test "${enable_linker_plugin_flags+set}" = set; then :
6155 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6156 else
6157 extra_linker_plugin_flags=
6163 # By default, C and C++ are the only stage 1 languages.
6164 stage1_languages=,c,
6166 # Target libraries that we bootstrap.
6167 bootstrap_target_libs=,target-libgcc,
6169 # Figure out what language subdirectories are present.
6170 # Look if the user specified --enable-languages="..."; if not, use
6171 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6172 # go away some day.
6173 # NB: embedded tabs in this IF block -- do not untabify
6174 if test -d ${srcdir}/gcc; then
6175 if test x"${enable_languages+set}" != xset; then
6176 if test x"${LANGUAGES+set}" = xset; then
6177 enable_languages="${LANGUAGES}"
6178 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6179 else
6180 enable_languages=all
6182 else
6183 if test x"${enable_languages}" = x ||
6184 test x"${enable_languages}" = xyes;
6185 then
6186 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6187 exit 1
6190 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6192 # 'f95' is the old name for the 'fortran' language. We issue a warning
6193 # and make the substitution.
6194 case ,${enable_languages}, in
6195 *,f95,*)
6196 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6197 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6199 esac
6201 # If bootstrapping, C++ must be enabled.
6202 case ",$enable_languages,:$enable_bootstrap" in
6203 *,c++,*:*) ;;
6204 *:yes)
6205 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6206 enable_languages="${enable_languages},c++"
6207 else
6208 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6211 esac
6213 # First scan to see if an enabled language requires some other language.
6214 # We assume that a given config-lang.in will list all the language
6215 # front ends it requires, even if some are required indirectly.
6216 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6217 case ${lang_frag} in
6218 ..) ;;
6219 # The odd quoting in the next line works around
6220 # an apparent bug in bash 1.12 on linux.
6221 ${srcdir}/gcc/[*]/config-lang.in) ;;
6223 # From the config-lang.in, get $language, $lang_requires, and
6224 # $lang_requires_boot_languages.
6225 language=
6226 lang_requires=
6227 lang_requires_boot_languages=
6228 . ${lang_frag}
6229 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6230 case ,${enable_languages}, in
6231 *,$other,*) ;;
6232 *,all,*) ;;
6233 *,$language,*)
6234 echo " \`$other' language required by \`$language'; enabling" 1>&2
6235 enable_languages="${enable_languages},${other}"
6237 esac
6238 done
6239 for other in ${lang_requires_boot_languages} ; do
6240 if test "$other" != "c"; then
6241 case ,${enable_stage1_languages}, in
6242 *,$other,*) ;;
6243 *,all,*) ;;
6245 case ,${enable_languages}, in
6246 *,$language,*)
6247 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6248 enable_stage1_languages="$enable_stage1_languages,${other}"
6250 esac
6252 esac
6254 done
6256 esac
6257 done
6259 new_enable_languages=,c,
6261 # If LTO is enabled, add the LTO front end.
6262 if test "$enable_lto" = "yes" ; then
6263 case ,${enable_languages}, in
6264 *,lto,*) ;;
6265 *) enable_languages="${enable_languages},lto" ;;
6266 esac
6267 if test "${build_lto_plugin}" = "yes" ; then
6268 configdirs="$configdirs lto-plugin"
6272 # If we're building an offloading compiler, add the LTO front end.
6273 if test x"$enable_as_accelerator_for" != x ; then
6274 case ,${enable_languages}, in
6275 *,lto,*) ;;
6276 *) enable_languages="${enable_languages},lto" ;;
6277 esac
6280 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6281 potential_languages=,c,
6283 enabled_target_libs=
6284 disabled_target_libs=
6286 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6287 case ${lang_frag} in
6288 ..) ;;
6289 # The odd quoting in the next line works around
6290 # an apparent bug in bash 1.12 on linux.
6291 ${srcdir}/gcc/[*]/config-lang.in) ;;
6293 # From the config-lang.in, get $language, $target_libs,
6294 # $lang_dirs, $boot_language, and $build_by_default
6295 language=
6296 target_libs=
6297 lang_dirs=
6298 subdir_requires=
6299 boot_language=no
6300 build_by_default=yes
6301 . ${lang_frag}
6302 if test x${language} = x; then
6303 echo "${lang_frag} doesn't set \$language." 1>&2
6304 exit 1
6307 if test "$language" = "c++"; then
6308 boot_language=yes
6311 add_this_lang=no
6312 case ,${enable_languages}, in
6313 *,${language},*)
6314 # Language was explicitly selected; include it
6315 # unless it is C, which is enabled by default.
6316 if test "$language" != "c"; then
6317 add_this_lang=yes
6320 *,all,*)
6321 # 'all' was selected, select it if it is a default language
6322 if test "$language" != "c"; then
6323 add_this_lang=${build_by_default}
6326 esac
6328 # Disable languages that need other directories if these aren't available.
6329 for i in $subdir_requires; do
6330 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6331 case ,${enable_languages}, in
6332 *,${language},*)
6333 # Specifically requested language; tell them.
6334 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6337 # Silently disable.
6338 add_this_lang=unsupported
6340 esac
6341 done
6343 # Disable Ada if no preexisting GNAT is available.
6344 case ,${enable_languages},:${language}:${have_gnat} in
6345 *,${language},*:ada:no)
6346 # Specifically requested language; tell them.
6347 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6349 *:ada:no)
6350 # Silently disable.
6351 add_this_lang=unsupported
6353 esac
6355 # Disable a language that is unsupported by the target.
6356 case " $unsupported_languages " in
6357 *" $language "*)
6358 add_this_lang=unsupported
6360 esac
6362 case $add_this_lang in
6363 unsupported)
6364 # Remove language-dependent dirs.
6365 disabled_target_libs="$disabled_target_libs $target_libs"
6366 noconfigdirs="$noconfigdirs $lang_dirs"
6369 # Remove language-dependent dirs; still show language as supported.
6370 disabled_target_libs="$disabled_target_libs $target_libs"
6371 noconfigdirs="$noconfigdirs $lang_dirs"
6372 potential_languages="${potential_languages}${language},"
6374 yes)
6375 new_enable_languages="${new_enable_languages}${language},"
6376 potential_languages="${potential_languages}${language},"
6377 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6378 enabled_target_libs="$enabled_target_libs $target_libs"
6379 case "${boot_language}:,$enable_stage1_languages," in
6380 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6381 # Add to (comma-separated) list of stage 1 languages.
6382 case ",$stage1_languages," in
6383 *,$language,* | ,yes, | ,all,) ;;
6384 *) stage1_languages="${stage1_languages}${language}," ;;
6385 esac
6386 # We need to bootstrap any supporting libraries.
6387 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6389 esac
6391 esac
6393 esac
6394 done
6396 # Add target libraries which are only needed for disabled languages
6397 # to noconfigdirs.
6398 if test -n "$disabled_target_libs"; then
6399 for dir in $disabled_target_libs; do
6400 case " $enabled_target_libs " in
6401 *" ${dir} "*) ;;
6402 *) noconfigdirs="$noconfigdirs $dir" ;;
6403 esac
6404 done
6407 # Check whether --enable-stage1-languages was given.
6408 if test "${enable_stage1_languages+set}" = set; then :
6409 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6410 ,no,|,,)
6411 # Set it to something that will have no effect in the loop below
6412 enable_stage1_languages=c ;;
6413 ,yes,)
6414 enable_stage1_languages=`echo $new_enable_languages | \
6415 sed -e "s/^,//" -e "s/,$//" ` ;;
6416 *,all,*)
6417 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6418 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6419 esac
6421 # Add "good" languages from enable_stage1_languages to stage1_languages,
6422 # while "bad" languages go in missing_languages. Leave no duplicates.
6423 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6424 case $potential_languages in
6425 *,$i,*)
6426 case $stage1_languages in
6427 *,$i,*) ;;
6428 *) stage1_languages="$stage1_languages$i," ;;
6429 esac ;;
6431 case $missing_languages in
6432 *,$i,*) ;;
6433 *) missing_languages="$missing_languages$i," ;;
6434 esac ;;
6435 esac
6436 done
6440 # Remove leading/trailing commas that were added for simplicity
6441 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6442 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6443 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6444 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6446 if test "x$missing_languages" != x; then
6447 as_fn_error "
6448 The following requested languages could not be built: ${missing_languages}
6449 Supported languages are: ${potential_languages}" "$LINENO" 5
6451 if test "x$new_enable_languages" != "x$enable_languages"; then
6452 echo The following languages will be built: ${new_enable_languages}
6453 enable_languages="$new_enable_languages"
6457 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6460 # Handle --disable-<component> generically.
6461 for dir in $configdirs $build_configdirs $target_configdirs ; do
6462 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6463 varname=`echo $dirname | sed -e s/+/_/g`
6464 if eval test x\${enable_${varname}} "=" xno ; then
6465 noconfigdirs="$noconfigdirs $dir"
6467 done
6469 # Check for Boehm's garbage collector
6470 # Check whether --enable-objc-gc was given.
6471 if test "${enable_objc_gc+set}" = set; then :
6472 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6473 *,objc,*:*:yes:*target-boehm-gc*)
6474 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6476 esac
6480 # Make sure we only build Boehm's garbage collector if required.
6481 case ,${enable_languages},:${enable_objc_gc} in
6482 *,objc,*:yes)
6483 # Keep target-boehm-gc if requested for Objective-C.
6486 # Otherwise remove target-boehm-gc depending on target-libjava.
6487 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6488 noconfigdirs="$noconfigdirs target-boehm-gc"
6491 esac
6493 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6494 case ,${enable_languages}, in
6495 *,c++,*)
6496 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6497 case "${noconfigdirs}" in
6498 *target-libstdc++-v3*)
6499 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6501 *) ;;
6502 esac
6505 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6507 esac
6509 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6510 # $build_configdirs and $target_configdirs.
6511 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6513 notsupp=""
6514 for dir in . $skipdirs $noconfigdirs ; do
6515 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6516 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6517 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6518 if test -r $srcdir/$dirname/configure ; then
6519 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6520 true
6521 else
6522 notsupp="$notsupp $dir"
6526 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6527 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6528 if test -r $srcdir/$dirname/configure ; then
6529 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6530 true
6531 else
6532 notsupp="$notsupp $dir"
6536 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6537 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6538 if test -r $srcdir/$dirname/configure ; then
6539 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6540 true
6541 else
6542 notsupp="$notsupp $dir"
6546 done
6548 # Quietly strip out all directories which aren't configurable in this tree.
6549 # This relies on all configurable subdirectories being autoconfiscated, which
6550 # is now the case.
6551 build_configdirs_all="$build_configdirs"
6552 build_configdirs=
6553 for i in ${build_configdirs_all} ; do
6554 j=`echo $i | sed -e s/build-//g`
6555 if test -f ${srcdir}/$j/configure ; then
6556 build_configdirs="${build_configdirs} $i"
6558 done
6560 configdirs_all="$configdirs"
6561 configdirs=
6562 for i in ${configdirs_all} ; do
6563 if test -f ${srcdir}/$i/configure ; then
6564 configdirs="${configdirs} $i"
6566 done
6568 target_configdirs_all="$target_configdirs"
6569 target_configdirs=
6570 for i in ${target_configdirs_all} ; do
6571 j=`echo $i | sed -e s/target-//g`
6572 if test -f ${srcdir}/$j/configure ; then
6573 target_configdirs="${target_configdirs} $i"
6575 done
6577 # Exclude target-zlib if target-libjava isn't built.
6578 case ${target_configdirs} in
6579 *target-libjava*)
6582 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6584 esac
6586 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6587 # so we have to add it after the preceding checks.
6588 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6589 then
6590 case " $configdirs " in
6591 *" libiberty "*)
6592 # If we can build libiberty, we can also build libiberty-linker-plugin.
6593 configdirs="$configdirs libiberty-linker-plugin"
6594 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6595 --with-libiberty=../libiberty-linker-plugin";;
6597 as_fn_error "libiberty missing" "$LINENO" 5;;
6598 esac
6601 # Sometimes we have special requirements for the host libiberty.
6602 extra_host_libiberty_configure_flags=
6603 extra_host_zlib_configure_flags=
6604 case " $configdirs " in
6605 *" lto-plugin "* | *" libcc1 "*)
6606 # When these are to be built as shared libraries, the same applies to
6607 # libiberty.
6608 extra_host_libiberty_configure_flags=--enable-shared
6610 *" bfd "*)
6611 # When bfd is to be built as a shared library, the same applies to
6612 # zlib.
6613 if test "$enable_shared" = "yes"; then
6614 extra_host_zlib_configure_flags=--enable-host-shared
6617 esac
6621 # Produce a warning message for the subdirs we can't configure.
6622 # This isn't especially interesting in the Cygnus tree, but in the individual
6623 # FSF releases, it's important to let people know when their machine isn't
6624 # supported by the one or two programs in a package.
6626 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6627 # If $appdirs is non-empty, at least one of those directories must still
6628 # be configured, or we error out. (E.g., if the gas release supports a
6629 # specified target in some subdirs but not the gas subdir, we shouldn't
6630 # pretend that all is well.)
6631 if test -n "$appdirs" ; then
6632 for dir in $appdirs ; do
6633 if test -r $dir/Makefile.in ; then
6634 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6635 appdirs=""
6636 break
6638 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6639 appdirs=""
6640 break
6643 done
6644 if test -n "$appdirs" ; then
6645 echo "*** This configuration is not supported by this package." 1>&2
6646 exit 1
6649 # Okay, some application will build, or we don't care to check. Still
6650 # notify of subdirs not getting built.
6651 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6652 echo " ${notsupp}" 1>&2
6653 echo " (Any other directories should still work fine.)" 1>&2
6656 case "$host" in
6657 *msdosdjgpp*)
6658 enable_gdbtk=no ;;
6659 esac
6661 # To find our prefix, in gcc_cv_tool_prefix.
6663 # The user is always right.
6664 if test "${PATH_SEPARATOR+set}" != set; then
6665 echo "#! /bin/sh" >conf$$.sh
6666 echo "exit 0" >>conf$$.sh
6667 chmod +x conf$$.sh
6668 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6669 PATH_SEPARATOR=';'
6670 else
6671 PATH_SEPARATOR=:
6673 rm -f conf$$.sh
6678 if test "x$exec_prefix" = xNONE; then
6679 if test "x$prefix" = xNONE; then
6680 gcc_cv_tool_prefix=$ac_default_prefix
6681 else
6682 gcc_cv_tool_prefix=$prefix
6684 else
6685 gcc_cv_tool_prefix=$exec_prefix
6688 # If there is no compiler in the tree, use the PATH only. In any
6689 # case, if there is no compiler in the tree nobody should use
6690 # AS_FOR_TARGET and LD_FOR_TARGET.
6691 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6692 gcc_version=`cat $srcdir/gcc/BASE-VER`
6693 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6694 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6695 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6696 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6697 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6698 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6699 else
6700 gcc_cv_tool_dirs=
6703 if test x$build = x$target && test -n "$md_exec_prefix"; then
6704 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6709 copy_dirs=
6712 # Check whether --with-build-sysroot was given.
6713 if test "${with_build_sysroot+set}" = set; then :
6714 withval=$with_build_sysroot; if test x"$withval" != x ; then
6715 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6717 else
6718 SYSROOT_CFLAGS_FOR_TARGET=
6724 # Check whether --with-debug-prefix-map was given.
6725 if test "${with_debug_prefix_map+set}" = set; then :
6726 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6727 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6728 for debug_map in $withval; do
6729 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6730 done
6732 else
6733 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6738 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6739 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6740 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6741 # We want to ensure that TARGET libraries (which we know are built with
6742 # gcc) are built with "-O2 -g", so include those options when setting
6743 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6744 if test "x$CFLAGS_FOR_TARGET" = x; then
6745 if test "x${is_cross_compiler}" = xyes; then
6746 CFLAGS_FOR_TARGET="-g -O2"
6747 else
6748 CFLAGS_FOR_TARGET=$CFLAGS
6749 case " $CFLAGS " in
6750 *" -O2 "*) ;;
6751 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6752 esac
6753 case " $CFLAGS " in
6754 *" -g "* | *" -g3 "*) ;;
6755 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6756 esac
6761 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6762 if test "x${is_cross_compiler}" = xyes; then
6763 CXXFLAGS_FOR_TARGET="-g -O2"
6764 else
6765 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6766 case " $CXXFLAGS " in
6767 *" -O2 "*) ;;
6768 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6769 esac
6770 case " $CXXFLAGS " in
6771 *" -g "* | *" -g3 "*) ;;
6772 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6773 esac
6780 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6781 # the named directory are copied to $(tooldir)/sys-include.
6782 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6783 if test x${is_cross_compiler} = xno ; then
6784 echo 1>&2 '***' --with-headers is only supported when cross compiling
6785 exit 1
6787 if test x"${with_headers}" != xyes ; then
6788 x=${gcc_cv_tool_prefix}
6789 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6793 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6794 # the name directories are copied to $(tooldir)/lib. Multiple directories
6795 # are permitted.
6796 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6797 if test x${is_cross_compiler} = xno ; then
6798 echo 1>&2 '***' --with-libs is only supported when cross compiling
6799 exit 1
6801 if test x"${with_libs}" != xyes ; then
6802 # Copy the libraries in reverse order, so that files in the first named
6803 # library override files in subsequent libraries.
6804 x=${gcc_cv_tool_prefix}
6805 for l in ${with_libs}; do
6806 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6807 done
6811 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6813 # This is done by determining whether or not the appropriate directory
6814 # is available, and by checking whether or not specific configurations
6815 # have requested that this magic not happen.
6817 # The command line options always override the explicit settings in
6818 # configure.ac, and the settings in configure.ac override this magic.
6820 # If the default for a toolchain is to use GNU as and ld, and you don't
6821 # want to do that, then you should use the --without-gnu-as and
6822 # --without-gnu-ld options for the configure script. Similarly, if
6823 # the default is to use the included zlib and you don't want to do that,
6824 # you should use the --with-system-zlib option for the configure script.
6826 if test x${use_gnu_as} = x &&
6827 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6828 with_gnu_as=yes
6829 extra_host_args="$extra_host_args --with-gnu-as"
6832 if test x${use_gnu_ld} = x &&
6833 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6834 with_gnu_ld=yes
6835 extra_host_args="$extra_host_args --with-gnu-ld"
6838 if test x${use_included_zlib} = x &&
6839 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6841 else
6842 with_system_zlib=yes
6843 extra_host_args="$extra_host_args --with-system-zlib"
6846 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6847 # can detect this case.
6849 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6850 with_newlib=yes
6851 extra_host_args="$extra_host_args --with-newlib"
6854 # Handle ${copy_dirs}
6855 set fnord ${copy_dirs}
6856 shift
6857 while test $# != 0 ; do
6858 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6860 else
6861 echo Copying $1 to $2
6863 # Use the install script to create the directory and all required
6864 # parent directories.
6865 if test -d $2 ; then
6867 else
6868 echo >config.temp
6869 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6872 # Copy the directory, assuming we have tar.
6873 # FIXME: Should we use B in the second tar? Not all systems support it.
6874 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6876 # It is the responsibility of the user to correctly adjust all
6877 # symlinks. If somebody can figure out how to handle them correctly
6878 # here, feel free to add the code.
6880 echo $1 > $2/COPIED
6882 shift; shift
6883 done
6885 # Determine a target-dependent exec_prefix that the installed
6886 # gcc will search in. Keep this list sorted by triplet, with
6887 # the *-*-osname triplets last.
6888 md_exec_prefix=
6889 case "${target}" in
6890 i[34567]86-pc-msdosdjgpp*)
6891 md_exec_prefix=/dev/env/DJDIR/bin
6893 *-*-hpux* | \
6894 *-*-nto-qnx* | \
6895 *-*-solaris2*)
6896 md_exec_prefix=/usr/ccs/bin
6898 esac
6900 extra_arflags_for_target=
6901 extra_nmflags_for_target=
6902 extra_ranlibflags_for_target=
6903 target_makefile_frag=/dev/null
6904 case "${target}" in
6905 spu-*-*)
6906 target_makefile_frag="config/mt-spu"
6908 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6909 target_makefile_frag="config/mt-sde"
6911 mipsisa*-*-elfoabi*)
6912 target_makefile_frag="config/mt-mips-elfoabi"
6914 mips*-*-*linux* | mips*-*-gnu*)
6915 target_makefile_frag="config/mt-mips-gnu"
6917 nios2-*-elf*)
6918 target_makefile_frag="config/mt-nios2-elf"
6920 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6921 target_makefile_frag="config/mt-gnu"
6923 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6924 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6925 # commands to handle both 32-bit and 64-bit objects. These flags are
6926 # harmless if we're using GNU nm or ar.
6927 extra_arflags_for_target=" -X32_64"
6928 extra_nmflags_for_target=" -B -X32_64"
6930 esac
6932 alphaieee_frag=/dev/null
6933 case $target in
6934 alpha*-*-*)
6935 # This just makes sure to use the -mieee option to build target libs.
6936 # This should probably be set individually by each library.
6937 alphaieee_frag="config/mt-alphaieee"
6939 esac
6941 # If --enable-target-optspace always use -Os instead of -O2 to build
6942 # the target libraries, similarly if it is not specified, use -Os
6943 # on selected platforms.
6944 ospace_frag=/dev/null
6945 case "${enable_target_optspace}:${target}" in
6946 yes:*)
6947 ospace_frag="config/mt-ospace"
6949 :d30v-*)
6950 ospace_frag="config/mt-d30v"
6952 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6953 ospace_frag="config/mt-ospace"
6955 no:* | :*)
6958 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6960 esac
6962 # Some systems (e.g., one of the i386-aix systems the gas testers are
6963 # using) don't handle "\$" correctly, so don't use it here.
6964 tooldir='${exec_prefix}'/${target_noncanonical}
6965 build_tooldir=${tooldir}
6967 # Create a .gdbinit file which runs the one in srcdir
6968 # and tells GDB to look there for source files.
6970 if test -r ${srcdir}/.gdbinit ; then
6971 case ${srcdir} in
6972 .) ;;
6973 *) cat > ./.gdbinit <<EOF
6974 # ${NO_EDIT}
6975 dir ${srcdir}
6976 dir .
6977 source ${srcdir}/.gdbinit
6980 esac
6983 # Make sure that the compiler is able to generate an executable. If it
6984 # can't, we are probably in trouble. We don't care whether we can run the
6985 # executable--we might be using a cross compiler--we only care whether it
6986 # can be created. At this point the main configure script has set CC.
6987 we_are_ok=no
6988 echo "int main () { return 0; }" > conftest.c
6989 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6990 if test $? = 0 ; then
6991 if test -s conftest || test -s conftest.exe ; then
6992 we_are_ok=yes
6995 case $we_are_ok in
6997 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6998 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6999 rm -f conftest*
7000 exit 1
7002 esac
7003 rm -f conftest*
7005 # Decide which environment variable is used to find dynamic libraries.
7006 case "${host}" in
7007 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7008 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7009 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7010 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7011 esac
7013 # On systems where the dynamic library environment variable is PATH,
7014 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7015 # built executables to PATH.
7016 if test "$RPATH_ENVVAR" = PATH; then
7017 GCC_SHLIB_SUBDIR=/shlib
7018 else
7019 GCC_SHLIB_SUBDIR=
7022 # Adjust the toplevel makefile according to whether bootstrap was selected.
7023 case $enable_bootstrap in
7024 yes)
7025 bootstrap_suffix=bootstrap
7026 BUILD_CONFIG=bootstrap-debug
7029 bootstrap_suffix=no-bootstrap
7030 BUILD_CONFIG=
7032 esac
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7035 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7038 # Check whether --with-build-config was given.
7039 if test "${with_build_config+set}" = set; then :
7040 withval=$with_build_config; case $with_build_config in
7041 yes) with_build_config= ;;
7042 no) with_build_config= BUILD_CONFIG= ;;
7043 esac
7047 if test "x${with_build_config}" != x; then
7048 BUILD_CONFIG=$with_build_config
7049 else
7050 case $BUILD_CONFIG in
7051 bootstrap-debug)
7052 if echo "int f (void) { return 0; }" > conftest.c &&
7053 ${CC} -c conftest.c &&
7054 mv conftest.o conftest.o.g0 &&
7055 ${CC} -c -g conftest.c &&
7056 mv conftest.o conftest.o.g &&
7057 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7059 else
7060 BUILD_CONFIG=
7062 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7064 esac
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7067 $as_echo "$BUILD_CONFIG" >&6; }
7070 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7072 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7073 # Check whether --enable-vtable-verify was given.
7074 if test "${enable_vtable_verify+set}" = set; then :
7075 enableval=$enable_vtable_verify; case "$enableval" in
7076 yes) enable_vtable_verify=yes ;;
7077 no) enable_vtable_verify=no ;;
7078 *) enable_vtable_verify=no;;
7079 esac
7080 else
7081 enable_vtable_verify=no
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7085 $as_echo "$enable_vtable_verify" >&6; }
7087 # Record target_configdirs and the configure arguments for target and
7088 # build configuration in Makefile.
7089 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7090 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7091 bootstrap_fixincludes=no
7093 # If we are building libgomp, bootstrap it.
7094 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7095 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7098 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7099 # or bootstrap-ubsan, bootstrap it.
7100 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7101 case "$BUILD_CONFIG" in
7102 *bootstrap-asan* | *bootstrap-ubsan* )
7103 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7104 bootstrap_fixincludes=yes
7106 esac
7109 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7110 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7111 test "$enable_vtable_verify" != no; then
7112 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7115 # If we are building libmpx, bootstrap it.
7116 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7117 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7120 # Determine whether gdb needs tk/tcl or not.
7121 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7122 # and in that case we want gdb to be built without tk. Ugh!
7123 # In fact I believe gdb is the *only* package directly dependent on tk,
7124 # so we should be able to put the 'maybe's in unconditionally and
7125 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7126 # 100% sure that that's safe though.
7128 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7129 case "$enable_gdbtk" in
7131 GDB_TK="" ;;
7132 yes)
7133 GDB_TK="${gdb_tk}" ;;
7135 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7136 # distro. Eventually someone will fix this and move Insight, nee
7137 # gdbtk to a separate directory.
7138 if test -d ${srcdir}/gdb/gdbtk ; then
7139 GDB_TK="${gdb_tk}"
7140 else
7141 GDB_TK=""
7144 esac
7145 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7146 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7148 # Strip out unwanted targets.
7150 # While at that, we remove Makefiles if we were started for recursive
7151 # configuration, so that the top-level Makefile reconfigures them,
7152 # like we used to do when configure itself was recursive.
7154 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7155 # but now we're fixing up the Makefile ourselves with the additional
7156 # commands passed to AC_CONFIG_FILES. Use separate variables
7157 # extrasub-{build,host,target} not because there is any reason to split
7158 # the substitutions up that way, but only to remain below the limit of
7159 # 99 commands in a script, for HP-UX sed.
7160 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7162 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7163 yes:yes:*\ gold\ *:*,c++,*) ;;
7164 yes:yes:*\ gold\ *:*)
7165 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7167 esac
7169 extrasub_build=
7170 for module in ${build_configdirs} ; do
7171 if test -z "${no_recursion}" \
7172 && test -f ${build_subdir}/${module}/Makefile; then
7173 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7174 rm -f ${build_subdir}/${module}/Makefile
7176 extrasub_build="$extrasub_build
7177 /^@if build-$module\$/d
7178 /^@endif build-$module\$/d
7179 /^@if build-$module-$bootstrap_suffix\$/d
7180 /^@endif build-$module-$bootstrap_suffix\$/d"
7181 done
7182 extrasub_host=
7183 for module in ${configdirs} ; do
7184 if test -z "${no_recursion}"; then
7185 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7186 if test -f ${file}; then
7187 echo 1>&2 "*** removing ${file} to force reconfigure"
7188 rm -f ${file}
7190 done
7192 case ${module},${bootstrap_fixincludes} in
7193 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7194 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7195 esac
7196 extrasub_host="$extrasub_host
7197 /^@if $module\$/d
7198 /^@endif $module\$/d
7199 /^@if $module-$host_bootstrap_suffix\$/d
7200 /^@endif $module-$host_bootstrap_suffix\$/d"
7201 done
7202 extrasub_target=
7203 for module in ${target_configdirs} ; do
7204 if test -z "${no_recursion}" \
7205 && test -f ${target_subdir}/${module}/Makefile; then
7206 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7207 rm -f ${target_subdir}/${module}/Makefile
7210 # We only bootstrap target libraries listed in bootstrap_target_libs.
7211 case $bootstrap_target_libs in
7212 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7213 *) target_bootstrap_suffix=no-bootstrap ;;
7214 esac
7216 extrasub_target="$extrasub_target
7217 /^@if target-$module\$/d
7218 /^@endif target-$module\$/d
7219 /^@if target-$module-$target_bootstrap_suffix\$/d
7220 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7221 done
7223 # Do the final fixup along with target modules.
7224 extrasub_target="$extrasub_target
7225 /^@if /,/^@endif /d"
7227 # Create the serialization dependencies. This uses a temporary file.
7229 # Check whether --enable-serial-configure was given.
7230 if test "${enable_serial_configure+set}" = set; then :
7231 enableval=$enable_serial_configure;
7235 case ${enable_serial_configure} in
7236 yes)
7237 enable_serial_build_configure=yes
7238 enable_serial_host_configure=yes
7239 enable_serial_target_configure=yes
7241 esac
7243 # These force 'configure's to be done one at a time, to avoid problems
7244 # with contention over a shared config.cache.
7245 rm -f serdep.tmp
7246 echo '# serdep.tmp' > serdep.tmp
7247 olditem=
7248 test "x${enable_serial_build_configure}" = xyes &&
7249 for item in ${build_configdirs} ; do
7250 case ${olditem} in
7251 "") ;;
7252 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7253 esac
7254 olditem=${item}
7255 done
7256 olditem=
7257 test "x${enable_serial_host_configure}" = xyes &&
7258 for item in ${configdirs} ; do
7259 case ${olditem} in
7260 "") ;;
7261 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7262 esac
7263 olditem=${item}
7264 done
7265 olditem=
7266 test "x${enable_serial_target_configure}" = xyes &&
7267 for item in ${target_configdirs} ; do
7268 case ${olditem} in
7269 "") ;;
7270 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7271 esac
7272 olditem=${item}
7273 done
7274 serialization_dependencies=serdep.tmp
7277 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7278 # target, nonopt, and variable assignments. These are the ones we
7279 # might not want to pass down to subconfigures. The exception being
7280 # --cache-file=/dev/null, which is used to turn off the use of cache
7281 # files altogether, and which should be passed on to subconfigures.
7282 # Also strip program-prefix, program-suffix, and program-transform-name,
7283 # so that we can pass down a consistent program-transform-name.
7284 baseargs=
7285 tbaseargs=
7286 keep_next=no
7287 skip_next=no
7288 eval "set -- $ac_configure_args"
7289 for ac_arg
7291 if test X"$skip_next" = X"yes"; then
7292 skip_next=no
7293 continue
7295 if test X"$keep_next" = X"yes"; then
7296 case $ac_arg in
7297 *\'*)
7298 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7299 esac
7300 baseargs="$baseargs '$ac_arg'"
7301 tbaseargs="$tbaseargs '$ac_arg'"
7302 keep_next=no
7303 continue
7306 # Handle separated arguments. Based on the logic generated by
7307 # autoconf 2.59.
7308 case $ac_arg in
7309 *=* | --config-cache | -C | -disable-* | --disable-* \
7310 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7311 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7312 | -with-* | --with-* | -without-* | --without-* | --x)
7313 separate_arg=no
7316 separate_arg=yes
7319 separate_arg=no
7321 esac
7323 skip_targ=no
7324 case $ac_arg in
7326 --with-* | --without-*)
7327 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7329 case $libopt in
7330 *[-_]include)
7331 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7333 *[-_]lib)
7334 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7337 lib=$libopt
7339 esac
7342 case $lib in
7343 mpc | mpfr | gmp | isl)
7344 # If we're processing --with-$lib, --with-$lib-include or
7345 # --with-$lib-lib, for one of the libs above, and target is
7346 # different from host, don't pass the current argument to any
7347 # target library's configure.
7348 if test x$is_cross_compiler = xyes; then
7349 skip_targ=yes
7352 esac
7354 esac
7356 case "$ac_arg" in
7357 --cache-file=/dev/null | \
7358 -cache-file=/dev/null )
7359 # Handled here to avoid the test to skip args below.
7360 baseargs="$baseargs '$ac_arg'"
7361 tbaseargs="$tbaseargs '$ac_arg'"
7362 # Assert: $separate_arg should always be no.
7363 keep_next=$separate_arg
7365 --no*)
7366 continue
7368 --c* | \
7369 --sr* | \
7370 --ho* | \
7371 --bu* | \
7372 --t* | \
7373 --program-* | \
7374 -cache_file* | \
7375 -srcdir* | \
7376 -host* | \
7377 -build* | \
7378 -target* | \
7379 -program-prefix* | \
7380 -program-suffix* | \
7381 -program-transform-name* )
7382 skip_next=$separate_arg
7383 continue
7386 # An option. Add it.
7387 case $ac_arg in
7388 *\'*)
7389 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7390 esac
7391 baseargs="$baseargs '$ac_arg'"
7392 if test X"$skip_targ" = Xno; then
7393 tbaseargs="$tbaseargs '$ac_arg'"
7395 keep_next=$separate_arg
7398 # Either a variable assignment, or a nonopt (triplet). Don't
7399 # pass it down; let the Makefile handle this.
7400 continue
7402 esac
7403 done
7404 # Remove the initial space we just introduced and, as these will be
7405 # expanded by make, quote '$'.
7406 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7408 # Add in --program-transform-name, after --program-prefix and
7409 # --program-suffix have been applied to it. Autoconf has already
7410 # doubled dollar signs and backslashes in program_transform_name; we want
7411 # the backslashes un-doubled, and then the entire thing wrapped in single
7412 # quotes, because this will be expanded first by make and then by the shell.
7413 # Also, because we want to override the logic in subdir configure scripts to
7414 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7415 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7416 ${program_transform_name}
7417 EOF_SED
7418 gcc_transform_name=`cat conftestsed.out`
7419 rm -f conftestsed.out
7420 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7421 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7422 if test "$silent" = yes; then
7423 baseargs="$baseargs --silent"
7424 tbaseargs="$tbaseargs --silent"
7426 baseargs="$baseargs --disable-option-checking"
7427 tbaseargs="$tbaseargs --disable-option-checking"
7429 # Record and document user additions to sub configure arguments.
7434 # For the build-side libraries, we just need to pretend we're native,
7435 # and not use the same cache file. Multilibs are neither needed nor
7436 # desired. We can't even use the same cache file for all build-side
7437 # libraries, as they're compiled differently; some with C, some with
7438 # C++ or with different feature-enabling options.
7439 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7441 # For host modules, accept cache file option, or specification as blank.
7442 case "${cache_file}" in
7443 "") # empty
7444 cache_file_option="" ;;
7445 /* | [A-Za-z]:[\\/]* ) # absolute path
7446 cache_file_option="--cache-file=${cache_file}" ;;
7447 *) # relative path
7448 cache_file_option="--cache-file=../${cache_file}" ;;
7449 esac
7451 # Host dirs don't like to share a cache file either, horribly enough.
7452 # This seems to be due to autoconf 2.5x stupidity.
7453 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7455 target_configargs="$target_configargs ${tbaseargs}"
7457 # Passing a --with-cross-host argument lets the target libraries know
7458 # whether they are being built with a cross-compiler or being built
7459 # native. However, it would be better to use other mechanisms to make the
7460 # sorts of decisions they want to make on this basis. Please consider
7461 # this option to be deprecated. FIXME.
7462 if test x${is_cross_compiler} = xyes ; then
7463 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7466 # Special user-friendly check for native x86_64-linux build, if
7467 # multilib is not explicitly enabled.
7468 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7469 x86_64-*linux*:yes:$build:$build:)
7470 # Make sure we have a development environment that handles 32-bit
7471 dev64=no
7472 echo "int main () { return 0; }" > conftest.c
7473 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7474 if test $? = 0 ; then
7475 if test -s conftest || test -s conftest.exe ; then
7476 dev64=yes
7479 rm -f conftest*
7480 if test x${dev64} != xyes ; then
7481 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
7484 esac
7486 # Default to --enable-multilib.
7487 if test x${enable_multilib} = x ; then
7488 target_configargs="--enable-multilib ${target_configargs}"
7491 # Pass --with-newlib if appropriate. Note that target_configdirs has
7492 # changed from the earlier setting of with_newlib.
7493 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7494 target_configargs="--with-newlib ${target_configargs}"
7497 # Different target subdirs use different values of certain variables
7498 # (notably CXX). Worse, multilibs use *lots* of different values.
7499 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7500 # it doesn't automatically accept command-line overrides of them.
7501 # This means it's not safe for target subdirs to share a cache file,
7502 # which is disgusting, but there you have it. Hopefully this can be
7503 # fixed in future. It's still worthwhile to use a cache file for each
7504 # directory. I think.
7506 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7507 # We need to pass --target, as newer autoconf's requires consistency
7508 # for target_alias and gcc doesn't manage it consistently.
7509 target_configargs="--cache-file=./config.cache ${target_configargs}"
7511 FLAGS_FOR_TARGET=
7512 case " $target_configdirs " in
7513 *" newlib "*)
7514 case " $target_configargs " in
7515 *" --with-newlib "*)
7516 case "$target" in
7517 *-cygwin*)
7518 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7520 esac
7522 # If we're not building GCC, don't discard standard headers.
7523 if test -d ${srcdir}/gcc; then
7524 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7526 if test "${build}" != "${host}"; then
7527 # On Canadian crosses, CC_FOR_TARGET will have already been set
7528 # by `configure', so we won't have an opportunity to add -Bgcc/
7529 # to it. This is right: we don't want to search that directory
7530 # for binaries, but we want the header files in there, so add
7531 # them explicitly.
7532 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7534 # Someone might think of using the pre-installed headers on
7535 # Canadian crosses, in case the installed compiler is not fully
7536 # compatible with the compiler being built. In this case, it
7537 # would be better to flag an error than risking having
7538 # incompatible object files being constructed. We can't
7539 # guarantee that an error will be flagged, but let's hope the
7540 # compiler will do it, when presented with incompatible header
7541 # files.
7545 case "${target}-${is_cross_compiler}" in
7546 i[3456789]86-*-linux*-no)
7547 # Here host == target, so we don't need to build gcc,
7548 # so we don't want to discard standard headers.
7549 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7552 # If we're building newlib, use its generic headers last, but search
7553 # for any libc-related directories first (so make it the last -B
7554 # switch).
7555 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7557 # If we're building libgloss, find the startup file, simulator library
7558 # and linker script.
7559 case " $target_configdirs " in
7560 *" libgloss "*)
7561 # Look for startup file, simulator library and maybe linker script.
7562 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7563 # Look for libnosys.a in case the target needs it.
7564 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7565 # Most targets have the linker script in the source directory.
7566 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7568 esac
7570 esac
7572 esac
7574 esac
7576 case "$target" in
7577 x86_64-*mingw* | *-w64-mingw*)
7578 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7579 # however, use a symlink named 'mingw' in ${prefix} .
7580 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7582 *-mingw*)
7583 # MinGW can't be handled as Cygwin above since it does not use newlib.
7584 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'
7586 esac
7588 # Allow the user to override the flags for
7589 # our build compiler if desired.
7590 if test x"${build}" = x"${host}" ; then
7591 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7592 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7593 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7596 # On Canadian crosses, we'll be searching the right directories for
7597 # the previously-installed cross compiler, so don't bother to add
7598 # flags for directories within the install tree of the compiler
7599 # being built; programs in there won't even run.
7600 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7601 # Search for pre-installed headers if nothing else fits.
7602 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7605 if test "x${use_gnu_ld}" = x &&
7606 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7607 # Arrange for us to find uninstalled linker scripts.
7608 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7611 # Search for other target-specific linker scripts and such.
7612 case "${target}" in
7613 mep*)
7614 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7616 esac
7618 # Makefile fragments.
7619 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7621 eval fragval=\$$frag
7622 if test $fragval != /dev/null; then
7623 eval $frag=${srcdir}/$fragval
7625 done
7631 # Miscellanea: directories, flags, etc.
7640 # Build module lists & subconfigure args.
7644 # Host module lists & subconfigure args.
7649 # Target module lists & subconfigure args.
7653 # Build tools.
7671 # Generate default definitions for YACC, M4, LEX and other programs that run
7672 # on the build machine. These are used if the Makefile can't locate these
7673 # programs in objdir.
7674 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7676 for ac_prog in 'bison -y' byacc yacc
7678 # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if test "${ac_cv_prog_YACC+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 if test -n "$YACC"; then
7686 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695 ac_cv_prog_YACC="$ac_prog"
7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 break 2
7699 done
7700 done
7701 IFS=$as_save_IFS
7705 YACC=$ac_cv_prog_YACC
7706 if test -n "$YACC"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7708 $as_echo "$YACC" >&6; }
7709 else
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7715 test -n "$YACC" && break
7716 done
7717 test -n "$YACC" || YACC="$MISSING bison -y"
7719 case " $build_configdirs " in
7720 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7721 esac
7723 for ac_prog in bison
7725 # Extract the first word of "$ac_prog", so it can be a program name with args.
7726 set dummy $ac_prog; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if test "${ac_cv_prog_BISON+set}" = set; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 if test -n "$BISON"; then
7733 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742 ac_cv_prog_BISON="$ac_prog"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7746 done
7747 done
7748 IFS=$as_save_IFS
7752 BISON=$ac_cv_prog_BISON
7753 if test -n "$BISON"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7755 $as_echo "$BISON" >&6; }
7756 else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7762 test -n "$BISON" && break
7763 done
7764 test -n "$BISON" || BISON="$MISSING bison"
7766 case " $build_configdirs " in
7767 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7768 esac
7770 for ac_prog in gm4 gnum4 m4
7772 # Extract the first word of "$ac_prog", so it can be a program name with args.
7773 set dummy $ac_prog; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_M4+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 if test -n "$M4"; then
7780 ac_cv_prog_M4="$M4" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_prog_M4="$ac_prog"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7793 done
7794 done
7795 IFS=$as_save_IFS
7799 M4=$ac_cv_prog_M4
7800 if test -n "$M4"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7802 $as_echo "$M4" >&6; }
7803 else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7809 test -n "$M4" && break
7810 done
7811 test -n "$M4" || M4="$MISSING m4"
7813 case " $build_configdirs " in
7814 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7815 esac
7817 for ac_prog in flex lex
7819 # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy $ac_prog; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if test "${ac_cv_prog_LEX+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 if test -n "$LEX"; then
7827 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_LEX="$ac_prog"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7840 done
7841 done
7842 IFS=$as_save_IFS
7846 LEX=$ac_cv_prog_LEX
7847 if test -n "$LEX"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7849 $as_echo "$LEX" >&6; }
7850 else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7856 test -n "$LEX" && break
7857 done
7858 test -n "$LEX" || LEX="$MISSING flex"
7860 case " $build_configdirs " in
7861 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7862 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7863 esac
7865 for ac_prog in flex
7867 # Extract the first word of "$ac_prog", so it can be a program name with args.
7868 set dummy $ac_prog; ac_word=$2
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 $as_echo_n "checking for $ac_word... " >&6; }
7871 if test "${ac_cv_prog_FLEX+set}" = set; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 if test -n "$FLEX"; then
7875 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7884 ac_cv_prog_FLEX="$ac_prog"
7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7888 done
7889 done
7890 IFS=$as_save_IFS
7894 FLEX=$ac_cv_prog_FLEX
7895 if test -n "$FLEX"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7897 $as_echo "$FLEX" >&6; }
7898 else
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 $as_echo "no" >&6; }
7904 test -n "$FLEX" && break
7905 done
7906 test -n "$FLEX" || FLEX="$MISSING flex"
7908 case " $build_configdirs " in
7909 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7910 esac
7912 for ac_prog in makeinfo
7914 # Extract the first word of "$ac_prog", so it can be a program name with args.
7915 set dummy $ac_prog; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$MAKEINFO"; then
7922 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_MAKEINFO="$ac_prog"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7935 done
7936 done
7937 IFS=$as_save_IFS
7941 MAKEINFO=$ac_cv_prog_MAKEINFO
7942 if test -n "$MAKEINFO"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7944 $as_echo "$MAKEINFO" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7951 test -n "$MAKEINFO" && break
7952 done
7953 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7955 case " $build_configdirs " in
7956 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7959 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7960 # higher, else we use the "missing" dummy.
7961 if ${MAKEINFO} --version \
7962 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7964 else
7965 MAKEINFO="$MISSING makeinfo"
7969 esac
7971 # FIXME: expect and dejagnu may become build tools?
7973 for ac_prog in expect
7975 # Extract the first word of "$ac_prog", so it can be a program name with args.
7976 set dummy $ac_prog; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 if test -n "$EXPECT"; then
7983 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7992 ac_cv_prog_EXPECT="$ac_prog"
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7996 done
7997 done
7998 IFS=$as_save_IFS
8002 EXPECT=$ac_cv_prog_EXPECT
8003 if test -n "$EXPECT"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8005 $as_echo "$EXPECT" >&6; }
8006 else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8012 test -n "$EXPECT" && break
8013 done
8014 test -n "$EXPECT" || EXPECT="expect"
8016 case " $configdirs " in
8017 *" expect "*)
8018 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8020 esac
8022 for ac_prog in runtest
8024 # Extract the first word of "$ac_prog", so it can be a program name with args.
8025 set dummy $ac_prog; ac_word=$2
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027 $as_echo_n "checking for $ac_word... " >&6; }
8028 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 if test -n "$RUNTEST"; then
8032 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8033 else
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 for as_dir in $PATH
8037 IFS=$as_save_IFS
8038 test -z "$as_dir" && as_dir=.
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8041 ac_cv_prog_RUNTEST="$ac_prog"
8042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8043 break 2
8045 done
8046 done
8047 IFS=$as_save_IFS
8051 RUNTEST=$ac_cv_prog_RUNTEST
8052 if test -n "$RUNTEST"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8054 $as_echo "$RUNTEST" >&6; }
8055 else
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8061 test -n "$RUNTEST" && break
8062 done
8063 test -n "$RUNTEST" || RUNTEST="runtest"
8065 case " $configdirs " in
8066 *" dejagnu "*)
8067 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8069 esac
8072 # Host tools.
8073 ncn_tool_prefix=
8074 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8075 ncn_target_tool_prefix=
8076 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8080 if test -n "$AR"; then
8081 ac_cv_prog_AR=$AR
8082 elif test -n "$ac_cv_prog_AR"; then
8083 AR=$ac_cv_prog_AR
8086 if test -n "$ac_cv_prog_AR"; then
8087 for ncn_progname in ar; do
8088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8089 set dummy ${ncn_progname}; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if test "${ac_cv_prog_AR+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 if test -n "$AR"; then
8096 ac_cv_prog_AR="$AR" # Let the user override the test.
8097 else
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8105 ac_cv_prog_AR="${ncn_progname}"
8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8109 done
8110 done
8111 IFS=$as_save_IFS
8115 AR=$ac_cv_prog_AR
8116 if test -n "$AR"; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8118 $as_echo "$AR" >&6; }
8119 else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8125 done
8128 for ncn_progname in ar; do
8129 if test -n "$ncn_tool_prefix"; then
8130 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8131 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_AR+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$AR"; then
8138 ac_cv_prog_AR="$AR" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8151 done
8152 done
8153 IFS=$as_save_IFS
8157 AR=$ac_cv_prog_AR
8158 if test -n "$AR"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8160 $as_echo "$AR" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8168 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8170 set dummy ${ncn_progname}; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if test "${ac_cv_prog_AR+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test -n "$AR"; then
8177 ac_cv_prog_AR="$AR" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_prog_AR="${ncn_progname}"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8190 done
8191 done
8192 IFS=$as_save_IFS
8196 AR=$ac_cv_prog_AR
8197 if test -n "$AR"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8199 $as_echo "$AR" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8207 test -n "$ac_cv_prog_AR" && break
8208 done
8210 if test -z "$ac_cv_prog_AR" ; then
8211 set dummy ar
8212 if test $build = $host ; then
8213 AR="$2"
8214 else
8215 AR="${ncn_tool_prefix}$2"
8221 if test -n "$AS"; then
8222 ac_cv_prog_AS=$AS
8223 elif test -n "$ac_cv_prog_AS"; then
8224 AS=$ac_cv_prog_AS
8227 if test -n "$ac_cv_prog_AS"; then
8228 for ncn_progname in as; do
8229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8230 set dummy ${ncn_progname}; ac_word=$2
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232 $as_echo_n "checking for $ac_word... " >&6; }
8233 if test "${ac_cv_prog_AS+set}" = set; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 if test -n "$AS"; then
8237 ac_cv_prog_AS="$AS" # Let the user override the test.
8238 else
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8242 IFS=$as_save_IFS
8243 test -z "$as_dir" && as_dir=.
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8246 ac_cv_prog_AS="${ncn_progname}"
8247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 break 2
8250 done
8251 done
8252 IFS=$as_save_IFS
8256 AS=$ac_cv_prog_AS
8257 if test -n "$AS"; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8259 $as_echo "$AS" >&6; }
8260 else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8266 done
8269 for ncn_progname in as; do
8270 if test -n "$ncn_tool_prefix"; then
8271 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8272 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_AS+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 if test -n "$AS"; then
8279 ac_cv_prog_AS="$AS" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8292 done
8293 done
8294 IFS=$as_save_IFS
8298 AS=$ac_cv_prog_AS
8299 if test -n "$AS"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8301 $as_echo "$AS" >&6; }
8302 else
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8309 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8311 set dummy ${ncn_progname}; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if test "${ac_cv_prog_AS+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 if test -n "$AS"; then
8318 ac_cv_prog_AS="$AS" # Let the user override the test.
8319 else
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8327 ac_cv_prog_AS="${ncn_progname}"
8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8331 done
8332 done
8333 IFS=$as_save_IFS
8337 AS=$ac_cv_prog_AS
8338 if test -n "$AS"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8340 $as_echo "$AS" >&6; }
8341 else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8348 test -n "$ac_cv_prog_AS" && break
8349 done
8351 if test -z "$ac_cv_prog_AS" ; then
8352 set dummy as
8353 if test $build = $host ; then
8354 AS="$2"
8355 else
8356 AS="${ncn_tool_prefix}$2"
8362 if test -n "$DLLTOOL"; then
8363 ac_cv_prog_DLLTOOL=$DLLTOOL
8364 elif test -n "$ac_cv_prog_DLLTOOL"; then
8365 DLLTOOL=$ac_cv_prog_DLLTOOL
8368 if test -n "$ac_cv_prog_DLLTOOL"; then
8369 for ncn_progname in dlltool; do
8370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8371 set dummy ${ncn_progname}; ac_word=$2
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373 $as_echo_n "checking for $ac_word... " >&6; }
8374 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 if test -n "$DLLTOOL"; then
8378 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8379 else
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8387 ac_cv_prog_DLLTOOL="${ncn_progname}"
8388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 break 2
8391 done
8392 done
8393 IFS=$as_save_IFS
8397 DLLTOOL=$ac_cv_prog_DLLTOOL
8398 if test -n "$DLLTOOL"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8400 $as_echo "$DLLTOOL" >&6; }
8401 else
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8407 done
8410 for ncn_progname in dlltool; do
8411 if test -n "$ncn_tool_prefix"; then
8412 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8413 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 if test -n "$DLLTOOL"; then
8420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8421 else
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 for as_dir in $PATH
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8429 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 break 2
8433 done
8434 done
8435 IFS=$as_save_IFS
8439 DLLTOOL=$ac_cv_prog_DLLTOOL
8440 if test -n "$DLLTOOL"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8442 $as_echo "$DLLTOOL" >&6; }
8443 else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8450 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8452 set dummy ${ncn_progname}; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 if test -n "$DLLTOOL"; then
8459 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8460 else
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_prog_DLLTOOL="${ncn_progname}"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 break 2
8472 done
8473 done
8474 IFS=$as_save_IFS
8478 DLLTOOL=$ac_cv_prog_DLLTOOL
8479 if test -n "$DLLTOOL"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8481 $as_echo "$DLLTOOL" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8489 test -n "$ac_cv_prog_DLLTOOL" && break
8490 done
8492 if test -z "$ac_cv_prog_DLLTOOL" ; then
8493 set dummy dlltool
8494 if test $build = $host ; then
8495 DLLTOOL="$2"
8496 else
8497 DLLTOOL="${ncn_tool_prefix}$2"
8503 if test -n "$LD"; then
8504 ac_cv_prog_LD=$LD
8505 elif test -n "$ac_cv_prog_LD"; then
8506 LD=$ac_cv_prog_LD
8509 if test -n "$ac_cv_prog_LD"; then
8510 for ncn_progname in ld; do
8511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8512 set dummy ${ncn_progname}; ac_word=$2
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514 $as_echo_n "checking for $ac_word... " >&6; }
8515 if test "${ac_cv_prog_LD+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 if test -n "$LD"; then
8519 ac_cv_prog_LD="$LD" # Let the user override the test.
8520 else
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8528 ac_cv_prog_LD="${ncn_progname}"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 break 2
8532 done
8533 done
8534 IFS=$as_save_IFS
8538 LD=$ac_cv_prog_LD
8539 if test -n "$LD"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8541 $as_echo "$LD" >&6; }
8542 else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8548 done
8551 for ncn_progname in ld; do
8552 if test -n "$ncn_tool_prefix"; then
8553 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8554 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if test "${ac_cv_prog_LD+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 if test -n "$LD"; then
8561 ac_cv_prog_LD="$LD" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8570 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 break 2
8574 done
8575 done
8576 IFS=$as_save_IFS
8580 LD=$ac_cv_prog_LD
8581 if test -n "$LD"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8583 $as_echo "$LD" >&6; }
8584 else
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8591 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8593 set dummy ${ncn_progname}; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if test "${ac_cv_prog_LD+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 if test -n "$LD"; then
8600 ac_cv_prog_LD="$LD" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8609 ac_cv_prog_LD="${ncn_progname}"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8613 done
8614 done
8615 IFS=$as_save_IFS
8619 LD=$ac_cv_prog_LD
8620 if test -n "$LD"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8622 $as_echo "$LD" >&6; }
8623 else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8630 test -n "$ac_cv_prog_LD" && break
8631 done
8633 if test -z "$ac_cv_prog_LD" ; then
8634 set dummy ld
8635 if test $build = $host ; then
8636 LD="$2"
8637 else
8638 LD="${ncn_tool_prefix}$2"
8644 if test -n "$LIPO"; then
8645 ac_cv_prog_LIPO=$LIPO
8646 elif test -n "$ac_cv_prog_LIPO"; then
8647 LIPO=$ac_cv_prog_LIPO
8650 if test -n "$ac_cv_prog_LIPO"; then
8651 for ncn_progname in lipo; do
8652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8653 set dummy ${ncn_progname}; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if test "${ac_cv_prog_LIPO+set}" = set; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 if test -n "$LIPO"; then
8660 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8661 else
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 for as_dir in $PATH
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8669 ac_cv_prog_LIPO="${ncn_progname}"
8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 break 2
8673 done
8674 done
8675 IFS=$as_save_IFS
8679 LIPO=$ac_cv_prog_LIPO
8680 if test -n "$LIPO"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8682 $as_echo "$LIPO" >&6; }
8683 else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8689 done
8692 for ncn_progname in lipo; do
8693 if test -n "$ncn_tool_prefix"; then
8694 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8695 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if test "${ac_cv_prog_LIPO+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 if test -n "$LIPO"; then
8702 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8703 else
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 for as_dir in $PATH
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8711 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 break 2
8715 done
8716 done
8717 IFS=$as_save_IFS
8721 LIPO=$ac_cv_prog_LIPO
8722 if test -n "$LIPO"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8724 $as_echo "$LIPO" >&6; }
8725 else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8732 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8734 set dummy ${ncn_progname}; ac_word=$2
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736 $as_echo_n "checking for $ac_word... " >&6; }
8737 if test "${ac_cv_prog_LIPO+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 if test -n "$LIPO"; then
8741 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8742 else
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in $PATH
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_prog_LIPO="${ncn_progname}"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8754 done
8755 done
8756 IFS=$as_save_IFS
8760 LIPO=$ac_cv_prog_LIPO
8761 if test -n "$LIPO"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8763 $as_echo "$LIPO" >&6; }
8764 else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8771 test -n "$ac_cv_prog_LIPO" && break
8772 done
8774 if test -z "$ac_cv_prog_LIPO" ; then
8775 set dummy lipo
8776 if test $build = $host ; then
8777 LIPO="$2"
8778 else
8779 LIPO="${ncn_tool_prefix}$2"
8785 if test -n "$NM"; then
8786 ac_cv_prog_NM=$NM
8787 elif test -n "$ac_cv_prog_NM"; then
8788 NM=$ac_cv_prog_NM
8791 if test -n "$ac_cv_prog_NM"; then
8792 for ncn_progname in nm; do
8793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8794 set dummy ${ncn_progname}; ac_word=$2
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796 $as_echo_n "checking for $ac_word... " >&6; }
8797 if test "${ac_cv_prog_NM+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 if test -n "$NM"; then
8801 ac_cv_prog_NM="$NM" # Let the user override the test.
8802 else
8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 for as_dir in $PATH
8806 IFS=$as_save_IFS
8807 test -z "$as_dir" && as_dir=.
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8810 ac_cv_prog_NM="${ncn_progname}"
8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 break 2
8814 done
8815 done
8816 IFS=$as_save_IFS
8820 NM=$ac_cv_prog_NM
8821 if test -n "$NM"; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8823 $as_echo "$NM" >&6; }
8824 else
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8830 done
8833 for ncn_progname in nm; do
8834 if test -n "$ncn_tool_prefix"; then
8835 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8836 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838 $as_echo_n "checking for $ac_word... " >&6; }
8839 if test "${ac_cv_prog_NM+set}" = set; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 if test -n "$NM"; then
8843 ac_cv_prog_NM="$NM" # Let the user override the test.
8844 else
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 for as_dir in $PATH
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8852 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 break 2
8856 done
8857 done
8858 IFS=$as_save_IFS
8862 NM=$ac_cv_prog_NM
8863 if test -n "$NM"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8865 $as_echo "$NM" >&6; }
8866 else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8873 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8875 set dummy ${ncn_progname}; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if test "${ac_cv_prog_NM+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 if test -n "$NM"; then
8882 ac_cv_prog_NM="$NM" # Let the user override the test.
8883 else
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891 ac_cv_prog_NM="${ncn_progname}"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8895 done
8896 done
8897 IFS=$as_save_IFS
8901 NM=$ac_cv_prog_NM
8902 if test -n "$NM"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8904 $as_echo "$NM" >&6; }
8905 else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8912 test -n "$ac_cv_prog_NM" && break
8913 done
8915 if test -z "$ac_cv_prog_NM" ; then
8916 set dummy nm
8917 if test $build = $host ; then
8918 NM="$2"
8919 else
8920 NM="${ncn_tool_prefix}$2"
8926 if test -n "$RANLIB"; then
8927 ac_cv_prog_RANLIB=$RANLIB
8928 elif test -n "$ac_cv_prog_RANLIB"; then
8929 RANLIB=$ac_cv_prog_RANLIB
8932 if test -n "$ac_cv_prog_RANLIB"; then
8933 for ncn_progname in ranlib; do
8934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8935 set dummy ${ncn_progname}; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 if test -n "$RANLIB"; then
8942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8951 ac_cv_prog_RANLIB="${ncn_progname}"
8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8955 done
8956 done
8957 IFS=$as_save_IFS
8961 RANLIB=$ac_cv_prog_RANLIB
8962 if test -n "$RANLIB"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8964 $as_echo "$RANLIB" >&6; }
8965 else
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8971 done
8974 for ncn_progname in ranlib; do
8975 if test -n "$ncn_tool_prefix"; then
8976 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8977 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 if test -n "$RANLIB"; then
8984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8985 else
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8997 done
8998 done
8999 IFS=$as_save_IFS
9003 RANLIB=$ac_cv_prog_RANLIB
9004 if test -n "$RANLIB"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9006 $as_echo "$RANLIB" >&6; }
9007 else
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9014 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9016 set dummy ${ncn_progname}; ac_word=$2
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018 $as_echo_n "checking for $ac_word... " >&6; }
9019 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 if test -n "$RANLIB"; then
9023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9024 else
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032 ac_cv_prog_RANLIB="${ncn_progname}"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9036 done
9037 done
9038 IFS=$as_save_IFS
9042 RANLIB=$ac_cv_prog_RANLIB
9043 if test -n "$RANLIB"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9045 $as_echo "$RANLIB" >&6; }
9046 else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9053 test -n "$ac_cv_prog_RANLIB" && break
9054 done
9056 if test -z "$ac_cv_prog_RANLIB" ; then
9057 RANLIB="true"
9062 if test -n "$STRIP"; then
9063 ac_cv_prog_STRIP=$STRIP
9064 elif test -n "$ac_cv_prog_STRIP"; then
9065 STRIP=$ac_cv_prog_STRIP
9068 if test -n "$ac_cv_prog_STRIP"; then
9069 for ncn_progname in strip; do
9070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9071 set dummy ${ncn_progname}; ac_word=$2
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073 $as_echo_n "checking for $ac_word... " >&6; }
9074 if test "${ac_cv_prog_STRIP+set}" = set; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 if test -n "$STRIP"; then
9078 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9079 else
9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in $PATH
9083 IFS=$as_save_IFS
9084 test -z "$as_dir" && as_dir=.
9085 for ac_exec_ext in '' $ac_executable_extensions; do
9086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9087 ac_cv_prog_STRIP="${ncn_progname}"
9088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089 break 2
9091 done
9092 done
9093 IFS=$as_save_IFS
9097 STRIP=$ac_cv_prog_STRIP
9098 if test -n "$STRIP"; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9100 $as_echo "$STRIP" >&6; }
9101 else
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9107 done
9110 for ncn_progname in strip; do
9111 if test -n "$ncn_tool_prefix"; then
9112 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9113 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115 $as_echo_n "checking for $ac_word... " >&6; }
9116 if test "${ac_cv_prog_STRIP+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 if test -n "$STRIP"; then
9120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9121 else
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 for as_dir in $PATH
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9129 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 break 2
9133 done
9134 done
9135 IFS=$as_save_IFS
9139 STRIP=$ac_cv_prog_STRIP
9140 if test -n "$STRIP"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9142 $as_echo "$STRIP" >&6; }
9143 else
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9150 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9152 set dummy ${ncn_progname}; ac_word=$2
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9154 $as_echo_n "checking for $ac_word... " >&6; }
9155 if test "${ac_cv_prog_STRIP+set}" = set; then :
9156 $as_echo_n "(cached) " >&6
9157 else
9158 if test -n "$STRIP"; then
9159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9160 else
9161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 for as_dir in $PATH
9164 IFS=$as_save_IFS
9165 test -z "$as_dir" && as_dir=.
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9168 ac_cv_prog_STRIP="${ncn_progname}"
9169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9170 break 2
9172 done
9173 done
9174 IFS=$as_save_IFS
9178 STRIP=$ac_cv_prog_STRIP
9179 if test -n "$STRIP"; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9181 $as_echo "$STRIP" >&6; }
9182 else
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 $as_echo "no" >&6; }
9189 test -n "$ac_cv_prog_STRIP" && break
9190 done
9192 if test -z "$ac_cv_prog_STRIP" ; then
9193 STRIP="true"
9198 if test -n "$WINDRES"; then
9199 ac_cv_prog_WINDRES=$WINDRES
9200 elif test -n "$ac_cv_prog_WINDRES"; then
9201 WINDRES=$ac_cv_prog_WINDRES
9204 if test -n "$ac_cv_prog_WINDRES"; then
9205 for ncn_progname in windres; do
9206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9207 set dummy ${ncn_progname}; ac_word=$2
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209 $as_echo_n "checking for $ac_word... " >&6; }
9210 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 if test -n "$WINDRES"; then
9214 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9215 else
9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 for as_dir in $PATH
9219 IFS=$as_save_IFS
9220 test -z "$as_dir" && as_dir=.
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9223 ac_cv_prog_WINDRES="${ncn_progname}"
9224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 break 2
9227 done
9228 done
9229 IFS=$as_save_IFS
9233 WINDRES=$ac_cv_prog_WINDRES
9234 if test -n "$WINDRES"; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9236 $as_echo "$WINDRES" >&6; }
9237 else
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9243 done
9246 for ncn_progname in windres; do
9247 if test -n "$ncn_tool_prefix"; then
9248 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9249 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 if test -n "$WINDRES"; then
9256 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9257 else
9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9261 IFS=$as_save_IFS
9262 test -z "$as_dir" && as_dir=.
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9265 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 break 2
9269 done
9270 done
9271 IFS=$as_save_IFS
9275 WINDRES=$ac_cv_prog_WINDRES
9276 if test -n "$WINDRES"; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9278 $as_echo "$WINDRES" >&6; }
9279 else
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9286 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9288 set dummy ${ncn_progname}; ac_word=$2
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 $as_echo_n "checking for $ac_word... " >&6; }
9291 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 if test -n "$WINDRES"; then
9295 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9296 else
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9304 ac_cv_prog_WINDRES="${ncn_progname}"
9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 break 2
9308 done
9309 done
9310 IFS=$as_save_IFS
9314 WINDRES=$ac_cv_prog_WINDRES
9315 if test -n "$WINDRES"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9317 $as_echo "$WINDRES" >&6; }
9318 else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9325 test -n "$ac_cv_prog_WINDRES" && break
9326 done
9328 if test -z "$ac_cv_prog_WINDRES" ; then
9329 set dummy windres
9330 if test $build = $host ; then
9331 WINDRES="$2"
9332 else
9333 WINDRES="${ncn_tool_prefix}$2"
9339 if test -n "$WINDMC"; then
9340 ac_cv_prog_WINDMC=$WINDMC
9341 elif test -n "$ac_cv_prog_WINDMC"; then
9342 WINDMC=$ac_cv_prog_WINDMC
9345 if test -n "$ac_cv_prog_WINDMC"; then
9346 for ncn_progname in windmc; do
9347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9348 set dummy ${ncn_progname}; ac_word=$2
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9350 $as_echo_n "checking for $ac_word... " >&6; }
9351 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 if test -n "$WINDMC"; then
9355 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9356 else
9357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 for as_dir in $PATH
9360 IFS=$as_save_IFS
9361 test -z "$as_dir" && as_dir=.
9362 for ac_exec_ext in '' $ac_executable_extensions; do
9363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9364 ac_cv_prog_WINDMC="${ncn_progname}"
9365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9366 break 2
9368 done
9369 done
9370 IFS=$as_save_IFS
9374 WINDMC=$ac_cv_prog_WINDMC
9375 if test -n "$WINDMC"; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9377 $as_echo "$WINDMC" >&6; }
9378 else
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9380 $as_echo "no" >&6; }
9384 done
9387 for ncn_progname in windmc; do
9388 if test -n "$ncn_tool_prefix"; then
9389 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9390 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 $as_echo_n "checking for $ac_word... " >&6; }
9393 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 if test -n "$WINDMC"; then
9397 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9398 else
9399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400 for as_dir in $PATH
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9406 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 break 2
9410 done
9411 done
9412 IFS=$as_save_IFS
9416 WINDMC=$ac_cv_prog_WINDMC
9417 if test -n "$WINDMC"; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9419 $as_echo "$WINDMC" >&6; }
9420 else
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422 $as_echo "no" >&6; }
9427 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9429 set dummy ${ncn_progname}; ac_word=$2
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 $as_echo_n "checking for $ac_word... " >&6; }
9432 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 if test -n "$WINDMC"; then
9436 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9437 else
9438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439 for as_dir in $PATH
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9445 ac_cv_prog_WINDMC="${ncn_progname}"
9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9447 break 2
9449 done
9450 done
9451 IFS=$as_save_IFS
9455 WINDMC=$ac_cv_prog_WINDMC
9456 if test -n "$WINDMC"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9458 $as_echo "$WINDMC" >&6; }
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9466 test -n "$ac_cv_prog_WINDMC" && break
9467 done
9469 if test -z "$ac_cv_prog_WINDMC" ; then
9470 set dummy windmc
9471 if test $build = $host ; then
9472 WINDMC="$2"
9473 else
9474 WINDMC="${ncn_tool_prefix}$2"
9480 if test -n "$OBJCOPY"; then
9481 ac_cv_prog_OBJCOPY=$OBJCOPY
9482 elif test -n "$ac_cv_prog_OBJCOPY"; then
9483 OBJCOPY=$ac_cv_prog_OBJCOPY
9486 if test -n "$ac_cv_prog_OBJCOPY"; then
9487 for ncn_progname in objcopy; do
9488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9489 set dummy ${ncn_progname}; ac_word=$2
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 $as_echo_n "checking for $ac_word... " >&6; }
9492 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 if test -n "$OBJCOPY"; then
9496 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9497 else
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499 for as_dir in $PATH
9501 IFS=$as_save_IFS
9502 test -z "$as_dir" && as_dir=.
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9505 ac_cv_prog_OBJCOPY="${ncn_progname}"
9506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 break 2
9509 done
9510 done
9511 IFS=$as_save_IFS
9515 OBJCOPY=$ac_cv_prog_OBJCOPY
9516 if test -n "$OBJCOPY"; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9518 $as_echo "$OBJCOPY" >&6; }
9519 else
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9525 done
9528 for ncn_progname in objcopy; do
9529 if test -n "$ncn_tool_prefix"; then
9530 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9531 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 if test -n "$OBJCOPY"; then
9538 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9539 else
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9547 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9551 done
9552 done
9553 IFS=$as_save_IFS
9557 OBJCOPY=$ac_cv_prog_OBJCOPY
9558 if test -n "$OBJCOPY"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9560 $as_echo "$OBJCOPY" >&6; }
9561 else
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9568 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9570 set dummy ${ncn_progname}; ac_word=$2
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572 $as_echo_n "checking for $ac_word... " >&6; }
9573 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 if test -n "$OBJCOPY"; then
9577 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9578 else
9579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580 for as_dir in $PATH
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9586 ac_cv_prog_OBJCOPY="${ncn_progname}"
9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9588 break 2
9590 done
9591 done
9592 IFS=$as_save_IFS
9596 OBJCOPY=$ac_cv_prog_OBJCOPY
9597 if test -n "$OBJCOPY"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9599 $as_echo "$OBJCOPY" >&6; }
9600 else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9607 test -n "$ac_cv_prog_OBJCOPY" && break
9608 done
9610 if test -z "$ac_cv_prog_OBJCOPY" ; then
9611 set dummy objcopy
9612 if test $build = $host ; then
9613 OBJCOPY="$2"
9614 else
9615 OBJCOPY="${ncn_tool_prefix}$2"
9621 if test -n "$OBJDUMP"; then
9622 ac_cv_prog_OBJDUMP=$OBJDUMP
9623 elif test -n "$ac_cv_prog_OBJDUMP"; then
9624 OBJDUMP=$ac_cv_prog_OBJDUMP
9627 if test -n "$ac_cv_prog_OBJDUMP"; then
9628 for ncn_progname in objdump; do
9629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9630 set dummy ${ncn_progname}; ac_word=$2
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632 $as_echo_n "checking for $ac_word... " >&6; }
9633 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 if test -n "$OBJDUMP"; then
9637 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9638 else
9639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640 for as_dir in $PATH
9642 IFS=$as_save_IFS
9643 test -z "$as_dir" && as_dir=.
9644 for ac_exec_ext in '' $ac_executable_extensions; do
9645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9646 ac_cv_prog_OBJDUMP="${ncn_progname}"
9647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9648 break 2
9650 done
9651 done
9652 IFS=$as_save_IFS
9656 OBJDUMP=$ac_cv_prog_OBJDUMP
9657 if test -n "$OBJDUMP"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9659 $as_echo "$OBJDUMP" >&6; }
9660 else
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9666 done
9669 for ncn_progname in objdump; do
9670 if test -n "$ncn_tool_prefix"; then
9671 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9672 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 if test -n "$OBJDUMP"; then
9679 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9680 else
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9688 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9692 done
9693 done
9694 IFS=$as_save_IFS
9698 OBJDUMP=$ac_cv_prog_OBJDUMP
9699 if test -n "$OBJDUMP"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9701 $as_echo "$OBJDUMP" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9709 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9711 set dummy ${ncn_progname}; ac_word=$2
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713 $as_echo_n "checking for $ac_word... " >&6; }
9714 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 if test -n "$OBJDUMP"; then
9718 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9719 else
9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 for as_dir in $PATH
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9727 ac_cv_prog_OBJDUMP="${ncn_progname}"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9731 done
9732 done
9733 IFS=$as_save_IFS
9737 OBJDUMP=$ac_cv_prog_OBJDUMP
9738 if test -n "$OBJDUMP"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9740 $as_echo "$OBJDUMP" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9748 test -n "$ac_cv_prog_OBJDUMP" && break
9749 done
9751 if test -z "$ac_cv_prog_OBJDUMP" ; then
9752 set dummy objdump
9753 if test $build = $host ; then
9754 OBJDUMP="$2"
9755 else
9756 OBJDUMP="${ncn_tool_prefix}$2"
9762 if test -n "$READELF"; then
9763 ac_cv_prog_READELF=$READELF
9764 elif test -n "$ac_cv_prog_READELF"; then
9765 READELF=$ac_cv_prog_READELF
9768 if test -n "$ac_cv_prog_READELF"; then
9769 for ncn_progname in readelf; do
9770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9771 set dummy ${ncn_progname}; ac_word=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if test "${ac_cv_prog_READELF+set}" = set; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 if test -n "$READELF"; then
9778 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9779 else
9780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 for as_dir in $PATH
9783 IFS=$as_save_IFS
9784 test -z "$as_dir" && as_dir=.
9785 for ac_exec_ext in '' $ac_executable_extensions; do
9786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9787 ac_cv_prog_READELF="${ncn_progname}"
9788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9789 break 2
9791 done
9792 done
9793 IFS=$as_save_IFS
9797 READELF=$ac_cv_prog_READELF
9798 if test -n "$READELF"; then
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9800 $as_echo "$READELF" >&6; }
9801 else
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803 $as_echo "no" >&6; }
9807 done
9810 for ncn_progname in readelf; do
9811 if test -n "$ncn_tool_prefix"; then
9812 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9813 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if test "${ac_cv_prog_READELF+set}" = set; then :
9817 $as_echo_n "(cached) " >&6
9818 else
9819 if test -n "$READELF"; then
9820 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9821 else
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 for as_dir in $PATH
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9829 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9833 done
9834 done
9835 IFS=$as_save_IFS
9839 READELF=$ac_cv_prog_READELF
9840 if test -n "$READELF"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9842 $as_echo "$READELF" >&6; }
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9850 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9852 set dummy ${ncn_progname}; ac_word=$2
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854 $as_echo_n "checking for $ac_word... " >&6; }
9855 if test "${ac_cv_prog_READELF+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 if test -n "$READELF"; then
9859 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9860 else
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9864 IFS=$as_save_IFS
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9868 ac_cv_prog_READELF="${ncn_progname}"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870 break 2
9872 done
9873 done
9874 IFS=$as_save_IFS
9878 READELF=$ac_cv_prog_READELF
9879 if test -n "$READELF"; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9881 $as_echo "$READELF" >&6; }
9882 else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 $as_echo "no" >&6; }
9889 test -n "$ac_cv_prog_READELF" && break
9890 done
9892 if test -z "$ac_cv_prog_READELF" ; then
9893 set dummy readelf
9894 if test $build = $host ; then
9895 READELF="$2"
9896 else
9897 READELF="${ncn_tool_prefix}$2"
9906 # Target tools.
9908 # Check whether --with-build-time-tools was given.
9909 if test "${with_build_time_tools+set}" = set; then :
9910 withval=$with_build_time_tools; case x"$withval" in
9911 x/*) ;;
9913 with_build_time_tools=
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9915 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9917 esac
9918 else
9919 with_build_time_tools=
9925 if test -n "$CC_FOR_TARGET"; then
9926 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9927 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9928 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9931 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9932 for ncn_progname in cc gcc; do
9933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9934 set dummy ${ncn_progname}; ac_word=$2
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936 $as_echo_n "checking for $ac_word... " >&6; }
9937 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 if test -n "$CC_FOR_TARGET"; then
9941 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9942 else
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 for as_dir in $PATH
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9950 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 break 2
9954 done
9955 done
9956 IFS=$as_save_IFS
9960 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9961 if test -n "$CC_FOR_TARGET"; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9963 $as_echo "$CC_FOR_TARGET" >&6; }
9964 else
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 $as_echo "no" >&6; }
9970 done
9973 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9974 for ncn_progname in cc gcc; do
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9976 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9977 if test -x $with_build_time_tools/${ncn_progname}; then
9978 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9980 $as_echo "yes" >&6; }
9981 break
9982 else
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9986 done
9989 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9990 for ncn_progname in cc gcc; do
9991 if test -n "$ncn_target_tool_prefix"; then
9992 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9993 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 if test -n "$CC_FOR_TARGET"; then
10000 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10001 else
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10013 done
10014 done
10015 IFS=$as_save_IFS
10019 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10020 if test -n "$CC_FOR_TARGET"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10022 $as_echo "$CC_FOR_TARGET" >&6; }
10023 else
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10030 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10032 set dummy ${ncn_progname}; ac_word=$2
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 if test -n "$CC_FOR_TARGET"; then
10039 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10040 else
10041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042 for as_dir in $PATH
10044 IFS=$as_save_IFS
10045 test -z "$as_dir" && as_dir=.
10046 for ac_exec_ext in '' $ac_executable_extensions; do
10047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10048 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10050 break 2
10052 done
10053 done
10054 IFS=$as_save_IFS
10058 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10059 if test -n "$CC_FOR_TARGET"; then
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10061 $as_echo "$CC_FOR_TARGET" >&6; }
10062 else
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064 $as_echo "no" >&6; }
10069 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10070 done
10073 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10074 set dummy cc gcc
10075 if test $build = $target ; then
10076 CC_FOR_TARGET="$2"
10077 else
10078 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10080 else
10081 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10086 if test -n "$CXX_FOR_TARGET"; then
10087 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10088 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10089 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10092 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10093 for ncn_progname in c++ g++ cxx gxx; do
10094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10095 set dummy ${ncn_progname}; ac_word=$2
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 $as_echo_n "checking for $ac_word... " >&6; }
10098 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10099 $as_echo_n "(cached) " >&6
10100 else
10101 if test -n "$CXX_FOR_TARGET"; then
10102 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10103 else
10104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105 for as_dir in $PATH
10107 IFS=$as_save_IFS
10108 test -z "$as_dir" && as_dir=.
10109 for ac_exec_ext in '' $ac_executable_extensions; do
10110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10111 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 break 2
10115 done
10116 done
10117 IFS=$as_save_IFS
10121 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10122 if test -n "$CXX_FOR_TARGET"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10124 $as_echo "$CXX_FOR_TARGET" >&6; }
10125 else
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10131 done
10134 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10135 for ncn_progname in c++ g++ cxx gxx; do
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10137 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10138 if test -x $with_build_time_tools/${ncn_progname}; then
10139 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10141 $as_echo "yes" >&6; }
10142 break
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10147 done
10150 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10151 for ncn_progname in c++ g++ cxx gxx; do
10152 if test -n "$ncn_target_tool_prefix"; then
10153 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10154 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 if test -n "$CXX_FOR_TARGET"; then
10161 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10162 else
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10170 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 break 2
10174 done
10175 done
10176 IFS=$as_save_IFS
10180 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10181 if test -n "$CXX_FOR_TARGET"; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10183 $as_echo "$CXX_FOR_TARGET" >&6; }
10184 else
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10191 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10193 set dummy ${ncn_progname}; ac_word=$2
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10195 $as_echo_n "checking for $ac_word... " >&6; }
10196 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 if test -n "$CXX_FOR_TARGET"; then
10200 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10201 else
10202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10203 for as_dir in $PATH
10205 IFS=$as_save_IFS
10206 test -z "$as_dir" && as_dir=.
10207 for ac_exec_ext in '' $ac_executable_extensions; do
10208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10209 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10211 break 2
10213 done
10214 done
10215 IFS=$as_save_IFS
10219 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10220 if test -n "$CXX_FOR_TARGET"; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10222 $as_echo "$CXX_FOR_TARGET" >&6; }
10223 else
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10230 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10231 done
10234 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10235 set dummy c++ g++ cxx gxx
10236 if test $build = $target ; then
10237 CXX_FOR_TARGET="$2"
10238 else
10239 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10241 else
10242 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10247 if test -n "$GCC_FOR_TARGET"; then
10248 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10249 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10250 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10253 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10254 for ncn_progname in gcc; do
10255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10256 set dummy ${ncn_progname}; ac_word=$2
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258 $as_echo_n "checking for $ac_word... " >&6; }
10259 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 if test -n "$GCC_FOR_TARGET"; then
10263 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10264 else
10265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $PATH
10268 IFS=$as_save_IFS
10269 test -z "$as_dir" && as_dir=.
10270 for ac_exec_ext in '' $ac_executable_extensions; do
10271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10272 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10274 break 2
10276 done
10277 done
10278 IFS=$as_save_IFS
10282 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10283 if test -n "$GCC_FOR_TARGET"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10285 $as_echo "$GCC_FOR_TARGET" >&6; }
10286 else
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10292 done
10295 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10296 for ncn_progname in gcc; do
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10298 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10299 if test -x $with_build_time_tools/${ncn_progname}; then
10300 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10302 $as_echo "yes" >&6; }
10303 break
10304 else
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306 $as_echo "no" >&6; }
10308 done
10311 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10312 for ncn_progname in gcc; do
10313 if test -n "$ncn_target_tool_prefix"; then
10314 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10315 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317 $as_echo_n "checking for $ac_word... " >&6; }
10318 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 if test -n "$GCC_FOR_TARGET"; then
10322 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10323 else
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325 for as_dir in $PATH
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 break 2
10335 done
10336 done
10337 IFS=$as_save_IFS
10341 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10342 if test -n "$GCC_FOR_TARGET"; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10344 $as_echo "$GCC_FOR_TARGET" >&6; }
10345 else
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347 $as_echo "no" >&6; }
10352 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10354 set dummy ${ncn_progname}; ac_word=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 if test -n "$GCC_FOR_TARGET"; then
10361 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10362 else
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in $PATH
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10370 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10374 done
10375 done
10376 IFS=$as_save_IFS
10380 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10381 if test -n "$GCC_FOR_TARGET"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10383 $as_echo "$GCC_FOR_TARGET" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10391 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10392 done
10395 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10396 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10397 else
10398 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10403 if test -n "$GCJ_FOR_TARGET"; then
10404 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10405 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10406 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10409 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10410 for ncn_progname in gcj; do
10411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10412 set dummy ${ncn_progname}; ac_word=$2
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10414 $as_echo_n "checking for $ac_word... " >&6; }
10415 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 if test -n "$GCJ_FOR_TARGET"; then
10419 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10420 else
10421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422 for as_dir in $PATH
10424 IFS=$as_save_IFS
10425 test -z "$as_dir" && as_dir=.
10426 for ac_exec_ext in '' $ac_executable_extensions; do
10427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10428 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10430 break 2
10432 done
10433 done
10434 IFS=$as_save_IFS
10438 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10439 if test -n "$GCJ_FOR_TARGET"; then
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10441 $as_echo "$GCJ_FOR_TARGET" >&6; }
10442 else
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10448 done
10451 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10452 for ncn_progname in gcj; do
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10454 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10455 if test -x $with_build_time_tools/${ncn_progname}; then
10456 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10458 $as_echo "yes" >&6; }
10459 break
10460 else
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 $as_echo "no" >&6; }
10464 done
10467 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10468 for ncn_progname in gcj; do
10469 if test -n "$ncn_target_tool_prefix"; then
10470 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10471 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473 $as_echo_n "checking for $ac_word... " >&6; }
10474 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 if test -n "$GCJ_FOR_TARGET"; then
10478 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10479 else
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10491 done
10492 done
10493 IFS=$as_save_IFS
10497 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10498 if test -n "$GCJ_FOR_TARGET"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10500 $as_echo "$GCJ_FOR_TARGET" >&6; }
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10508 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10510 set dummy ${ncn_progname}; ac_word=$2
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512 $as_echo_n "checking for $ac_word... " >&6; }
10513 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10514 $as_echo_n "(cached) " >&6
10515 else
10516 if test -n "$GCJ_FOR_TARGET"; then
10517 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10518 else
10519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520 for as_dir in $PATH
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10530 done
10531 done
10532 IFS=$as_save_IFS
10536 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10537 if test -n "$GCJ_FOR_TARGET"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10539 $as_echo "$GCJ_FOR_TARGET" >&6; }
10540 else
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 $as_echo "no" >&6; }
10547 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10548 done
10551 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10552 set dummy gcj
10553 if test $build = $target ; then
10554 GCJ_FOR_TARGET="$2"
10555 else
10556 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10558 else
10559 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10564 if test -n "$GFORTRAN_FOR_TARGET"; then
10565 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10566 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10567 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10570 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10571 for ncn_progname in gfortran; do
10572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10573 set dummy ${ncn_progname}; ac_word=$2
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575 $as_echo_n "checking for $ac_word... " >&6; }
10576 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10577 $as_echo_n "(cached) " >&6
10578 else
10579 if test -n "$GFORTRAN_FOR_TARGET"; then
10580 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10581 else
10582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583 for as_dir in $PATH
10585 IFS=$as_save_IFS
10586 test -z "$as_dir" && as_dir=.
10587 for ac_exec_ext in '' $ac_executable_extensions; do
10588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10589 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10591 break 2
10593 done
10594 done
10595 IFS=$as_save_IFS
10599 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10600 if test -n "$GFORTRAN_FOR_TARGET"; then
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10602 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10603 else
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10609 done
10612 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10613 for ncn_progname in gfortran; do
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10615 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10616 if test -x $with_build_time_tools/${ncn_progname}; then
10617 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10619 $as_echo "yes" >&6; }
10620 break
10621 else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; }
10625 done
10628 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10629 for ncn_progname in gfortran; do
10630 if test -n "$ncn_target_tool_prefix"; then
10631 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10632 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 if test -n "$GFORTRAN_FOR_TARGET"; then
10639 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10640 else
10641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642 for as_dir in $PATH
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
10646 for ac_exec_ext in '' $ac_executable_extensions; do
10647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10648 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10650 break 2
10652 done
10653 done
10654 IFS=$as_save_IFS
10658 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10659 if test -n "$GFORTRAN_FOR_TARGET"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10661 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10662 else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10669 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10671 set dummy ${ncn_progname}; ac_word=$2
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673 $as_echo_n "checking for $ac_word... " >&6; }
10674 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10675 $as_echo_n "(cached) " >&6
10676 else
10677 if test -n "$GFORTRAN_FOR_TARGET"; then
10678 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10679 else
10680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681 for as_dir in $PATH
10683 IFS=$as_save_IFS
10684 test -z "$as_dir" && as_dir=.
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10687 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10689 break 2
10691 done
10692 done
10693 IFS=$as_save_IFS
10697 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10698 if test -n "$GFORTRAN_FOR_TARGET"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10700 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10701 else
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10708 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10709 done
10712 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10713 set dummy gfortran
10714 if test $build = $target ; then
10715 GFORTRAN_FOR_TARGET="$2"
10716 else
10717 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10719 else
10720 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10725 if test -n "$GOC_FOR_TARGET"; then
10726 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10727 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10728 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10731 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10732 for ncn_progname in gccgo; do
10733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10734 set dummy ${ncn_progname}; ac_word=$2
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10736 $as_echo_n "checking for $ac_word... " >&6; }
10737 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 if test -n "$GOC_FOR_TARGET"; then
10741 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10742 else
10743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744 for as_dir in $PATH
10746 IFS=$as_save_IFS
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
10749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10750 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752 break 2
10754 done
10755 done
10756 IFS=$as_save_IFS
10760 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10761 if test -n "$GOC_FOR_TARGET"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10763 $as_echo "$GOC_FOR_TARGET" >&6; }
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10770 done
10773 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10774 for ncn_progname in gccgo; do
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10776 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10777 if test -x $with_build_time_tools/${ncn_progname}; then
10778 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10780 $as_echo "yes" >&6; }
10781 break
10782 else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 $as_echo "no" >&6; }
10786 done
10789 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10790 for ncn_progname in gccgo; do
10791 if test -n "$ncn_target_tool_prefix"; then
10792 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10793 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795 $as_echo_n "checking for $ac_word... " >&6; }
10796 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 if test -n "$GOC_FOR_TARGET"; then
10800 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10801 else
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10809 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 break 2
10813 done
10814 done
10815 IFS=$as_save_IFS
10819 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10820 if test -n "$GOC_FOR_TARGET"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10822 $as_echo "$GOC_FOR_TARGET" >&6; }
10823 else
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825 $as_echo "no" >&6; }
10830 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10832 set dummy ${ncn_progname}; ac_word=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 $as_echo_n "checking for $ac_word... " >&6; }
10835 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 if test -n "$GOC_FOR_TARGET"; then
10839 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10840 else
10841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10842 for as_dir in $PATH
10844 IFS=$as_save_IFS
10845 test -z "$as_dir" && as_dir=.
10846 for ac_exec_ext in '' $ac_executable_extensions; do
10847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10848 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10850 break 2
10852 done
10853 done
10854 IFS=$as_save_IFS
10858 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10859 if test -n "$GOC_FOR_TARGET"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10861 $as_echo "$GOC_FOR_TARGET" >&6; }
10862 else
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864 $as_echo "no" >&6; }
10869 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10870 done
10873 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10874 set dummy gccgo
10875 if test $build = $target ; then
10876 GOC_FOR_TARGET="$2"
10877 else
10878 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10880 else
10881 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10886 cat > conftest.c << \EOF
10887 #ifdef __GNUC__
10888 gcc_yay;
10889 #endif
10891 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10892 have_gcc_for_target=yes
10893 else
10894 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10895 have_gcc_for_target=no
10897 rm conftest.c
10902 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10903 if test -n "$with_build_time_tools"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10905 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10906 if test -x $with_build_time_tools/ar; then
10907 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10908 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10910 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10911 else
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10915 elif test $build != $host && test $have_gcc_for_target = yes; then
10916 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10917 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10918 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10921 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10922 # Extract the first word of "ar", so it can be a program name with args.
10923 set dummy ar; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 case $AR_FOR_TARGET in
10930 [\\/]* | ?:[\\/]*)
10931 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 for as_dir in $gcc_cv_tool_dirs
10937 IFS=$as_save_IFS
10938 test -z "$as_dir" && as_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10941 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 break 2
10945 done
10946 done
10947 IFS=$as_save_IFS
10950 esac
10952 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10953 if test -n "$AR_FOR_TARGET"; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10955 $as_echo "$AR_FOR_TARGET" >&6; }
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10963 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10966 if test -n "$AR_FOR_TARGET"; then
10967 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10968 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10969 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10972 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10973 for ncn_progname in ar; do
10974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10975 set dummy ${ncn_progname}; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977 $as_echo_n "checking for $ac_word... " >&6; }
10978 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 if test -n "$AR_FOR_TARGET"; then
10982 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10983 else
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10991 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10995 done
10996 done
10997 IFS=$as_save_IFS
11001 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11002 if test -n "$AR_FOR_TARGET"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11004 $as_echo "$AR_FOR_TARGET" >&6; }
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11011 done
11014 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11015 for ncn_progname in ar; do
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11017 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11018 if test -x $with_build_time_tools/${ncn_progname}; then
11019 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11021 $as_echo "yes" >&6; }
11022 break
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11027 done
11030 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11031 for ncn_progname in ar; do
11032 if test -n "$ncn_target_tool_prefix"; then
11033 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11034 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036 $as_echo_n "checking for $ac_word... " >&6; }
11037 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 if test -n "$AR_FOR_TARGET"; then
11041 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11042 else
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11046 IFS=$as_save_IFS
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
11049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11050 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11052 break 2
11054 done
11055 done
11056 IFS=$as_save_IFS
11060 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11061 if test -n "$AR_FOR_TARGET"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11063 $as_echo "$AR_FOR_TARGET" >&6; }
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11071 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11073 set dummy ${ncn_progname}; ac_word=$2
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11075 $as_echo_n "checking for $ac_word... " >&6; }
11076 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 if test -n "$AR_FOR_TARGET"; then
11080 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11081 else
11082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083 for as_dir in $PATH
11085 IFS=$as_save_IFS
11086 test -z "$as_dir" && as_dir=.
11087 for ac_exec_ext in '' $ac_executable_extensions; do
11088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11091 break 2
11093 done
11094 done
11095 IFS=$as_save_IFS
11099 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11100 if test -n "$AR_FOR_TARGET"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11102 $as_echo "$AR_FOR_TARGET" >&6; }
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 $as_echo "no" >&6; }
11110 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11111 done
11114 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11115 set dummy ar
11116 if test $build = $target ; then
11117 AR_FOR_TARGET="$2"
11118 else
11119 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11121 else
11122 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11125 else
11126 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11132 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11133 if test -n "$with_build_time_tools"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11135 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11136 if test -x $with_build_time_tools/as; then
11137 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11138 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11140 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11141 else
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143 $as_echo "no" >&6; }
11145 elif test $build != $host && test $have_gcc_for_target = yes; then
11146 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11147 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11148 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11151 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11152 # Extract the first word of "as", so it can be a program name with args.
11153 set dummy as; ac_word=$2
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11155 $as_echo_n "checking for $ac_word... " >&6; }
11156 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11157 $as_echo_n "(cached) " >&6
11158 else
11159 case $AS_FOR_TARGET in
11160 [\\/]* | ?:[\\/]*)
11161 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $gcc_cv_tool_dirs
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 for ac_exec_ext in '' $ac_executable_extensions; do
11170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11171 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 break 2
11175 done
11176 done
11177 IFS=$as_save_IFS
11180 esac
11182 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11183 if test -n "$AS_FOR_TARGET"; then
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11185 $as_echo "$AS_FOR_TARGET" >&6; }
11186 else
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 $as_echo "no" >&6; }
11193 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11196 if test -n "$AS_FOR_TARGET"; then
11197 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11198 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11199 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11202 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11203 for ncn_progname in as; do
11204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11205 set dummy ${ncn_progname}; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 if test -n "$AS_FOR_TARGET"; then
11212 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11213 else
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11221 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 break 2
11225 done
11226 done
11227 IFS=$as_save_IFS
11231 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11232 if test -n "$AS_FOR_TARGET"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11234 $as_echo "$AS_FOR_TARGET" >&6; }
11235 else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11241 done
11244 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11245 for ncn_progname in as; do
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11247 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11248 if test -x $with_build_time_tools/${ncn_progname}; then
11249 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11251 $as_echo "yes" >&6; }
11252 break
11253 else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11257 done
11260 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11261 for ncn_progname in as; do
11262 if test -n "$ncn_target_tool_prefix"; then
11263 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11264 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11266 $as_echo_n "checking for $ac_word... " >&6; }
11267 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 if test -n "$AS_FOR_TARGET"; then
11271 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11272 else
11273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274 for as_dir in $PATH
11276 IFS=$as_save_IFS
11277 test -z "$as_dir" && as_dir=.
11278 for ac_exec_ext in '' $ac_executable_extensions; do
11279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11280 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11282 break 2
11284 done
11285 done
11286 IFS=$as_save_IFS
11290 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11291 if test -n "$AS_FOR_TARGET"; then
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11293 $as_echo "$AS_FOR_TARGET" >&6; }
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296 $as_echo "no" >&6; }
11301 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11303 set dummy ${ncn_progname}; ac_word=$2
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11305 $as_echo_n "checking for $ac_word... " >&6; }
11306 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 if test -n "$AS_FOR_TARGET"; then
11310 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11311 else
11312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313 for as_dir in $PATH
11315 IFS=$as_save_IFS
11316 test -z "$as_dir" && as_dir=.
11317 for ac_exec_ext in '' $ac_executable_extensions; do
11318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11319 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11321 break 2
11323 done
11324 done
11325 IFS=$as_save_IFS
11329 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11330 if test -n "$AS_FOR_TARGET"; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11332 $as_echo "$AS_FOR_TARGET" >&6; }
11333 else
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11340 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11341 done
11344 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11345 set dummy as
11346 if test $build = $target ; then
11347 AS_FOR_TARGET="$2"
11348 else
11349 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11351 else
11352 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11355 else
11356 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11362 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11363 if test -n "$with_build_time_tools"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11365 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11366 if test -x $with_build_time_tools/dlltool; then
11367 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11368 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11370 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11371 else
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 $as_echo "no" >&6; }
11375 elif test $build != $host && test $have_gcc_for_target = yes; then
11376 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11377 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11378 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11381 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11382 # Extract the first word of "dlltool", so it can be a program name with args.
11383 set dummy dlltool; ac_word=$2
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11385 $as_echo_n "checking for $ac_word... " >&6; }
11386 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 case $DLLTOOL_FOR_TARGET in
11390 [\\/]* | ?:[\\/]*)
11391 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $gcc_cv_tool_dirs
11397 IFS=$as_save_IFS
11398 test -z "$as_dir" && as_dir=.
11399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11401 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11403 break 2
11405 done
11406 done
11407 IFS=$as_save_IFS
11410 esac
11412 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11413 if test -n "$DLLTOOL_FOR_TARGET"; then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11415 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11416 else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11423 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11426 if test -n "$DLLTOOL_FOR_TARGET"; then
11427 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11428 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11429 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11432 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11433 for ncn_progname in dlltool; do
11434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11435 set dummy ${ncn_progname}; ac_word=$2
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11439 $as_echo_n "(cached) " >&6
11440 else
11441 if test -n "$DLLTOOL_FOR_TARGET"; then
11442 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11443 else
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11447 IFS=$as_save_IFS
11448 test -z "$as_dir" && as_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11451 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11453 break 2
11455 done
11456 done
11457 IFS=$as_save_IFS
11461 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11462 if test -n "$DLLTOOL_FOR_TARGET"; then
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11464 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11465 else
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11471 done
11474 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11475 for ncn_progname in dlltool; do
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11477 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11478 if test -x $with_build_time_tools/${ncn_progname}; then
11479 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11481 $as_echo "yes" >&6; }
11482 break
11483 else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11487 done
11490 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11491 for ncn_progname in dlltool; do
11492 if test -n "$ncn_target_tool_prefix"; then
11493 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11494 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 if test -n "$DLLTOOL_FOR_TARGET"; then
11501 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11502 else
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11514 done
11515 done
11516 IFS=$as_save_IFS
11520 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11521 if test -n "$DLLTOOL_FOR_TARGET"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11523 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11531 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11533 set dummy ${ncn_progname}; ac_word=$2
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535 $as_echo_n "checking for $ac_word... " >&6; }
11536 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 if test -n "$DLLTOOL_FOR_TARGET"; then
11540 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11541 else
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in $PATH
11545 IFS=$as_save_IFS
11546 test -z "$as_dir" && as_dir=.
11547 for ac_exec_ext in '' $ac_executable_extensions; do
11548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11549 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551 break 2
11553 done
11554 done
11555 IFS=$as_save_IFS
11559 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11560 if test -n "$DLLTOOL_FOR_TARGET"; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11562 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11563 else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11570 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11571 done
11574 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11575 set dummy dlltool
11576 if test $build = $target ; then
11577 DLLTOOL_FOR_TARGET="$2"
11578 else
11579 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11581 else
11582 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11585 else
11586 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11592 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11593 if test -n "$with_build_time_tools"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11595 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11596 if test -x $with_build_time_tools/ld; then
11597 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11598 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11600 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11601 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11605 elif test $build != $host && test $have_gcc_for_target = yes; then
11606 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11607 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11608 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11611 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11612 # Extract the first word of "ld", so it can be a program name with args.
11613 set dummy ld; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 case $LD_FOR_TARGET in
11620 [\\/]* | ?:[\\/]*)
11621 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $gcc_cv_tool_dirs
11627 IFS=$as_save_IFS
11628 test -z "$as_dir" && as_dir=.
11629 for ac_exec_ext in '' $ac_executable_extensions; do
11630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11631 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 break 2
11635 done
11636 done
11637 IFS=$as_save_IFS
11640 esac
11642 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11643 if test -n "$LD_FOR_TARGET"; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11645 $as_echo "$LD_FOR_TARGET" >&6; }
11646 else
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11653 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11656 if test -n "$LD_FOR_TARGET"; then
11657 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11658 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11659 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11662 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11663 for ncn_progname in ld; do
11664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11665 set dummy ${ncn_progname}; ac_word=$2
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667 $as_echo_n "checking for $ac_word... " >&6; }
11668 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 if test -n "$LD_FOR_TARGET"; then
11672 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11673 else
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $PATH
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11681 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 break 2
11685 done
11686 done
11687 IFS=$as_save_IFS
11691 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11692 if test -n "$LD_FOR_TARGET"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11694 $as_echo "$LD_FOR_TARGET" >&6; }
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11701 done
11704 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11705 for ncn_progname in ld; do
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11707 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11708 if test -x $with_build_time_tools/${ncn_progname}; then
11709 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; }
11712 break
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11717 done
11720 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11721 for ncn_progname in ld; do
11722 if test -n "$ncn_target_tool_prefix"; then
11723 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11724 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726 $as_echo_n "checking for $ac_word... " >&6; }
11727 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 if test -n "$LD_FOR_TARGET"; then
11731 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11732 else
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11740 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 break 2
11744 done
11745 done
11746 IFS=$as_save_IFS
11750 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11751 if test -n "$LD_FOR_TARGET"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11753 $as_echo "$LD_FOR_TARGET" >&6; }
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11761 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11763 set dummy ${ncn_progname}; ac_word=$2
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769 if test -n "$LD_FOR_TARGET"; then
11770 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11771 else
11772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773 for as_dir in $PATH
11775 IFS=$as_save_IFS
11776 test -z "$as_dir" && as_dir=.
11777 for ac_exec_ext in '' $ac_executable_extensions; do
11778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11779 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11781 break 2
11783 done
11784 done
11785 IFS=$as_save_IFS
11789 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11790 if test -n "$LD_FOR_TARGET"; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11792 $as_echo "$LD_FOR_TARGET" >&6; }
11793 else
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 $as_echo "no" >&6; }
11800 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11801 done
11804 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11805 set dummy ld
11806 if test $build = $target ; then
11807 LD_FOR_TARGET="$2"
11808 else
11809 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11811 else
11812 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11815 else
11816 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11822 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11823 if test -n "$with_build_time_tools"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11825 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11826 if test -x $with_build_time_tools/lipo; then
11827 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11828 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11830 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11831 else
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 $as_echo "no" >&6; }
11835 elif test $build != $host && test $have_gcc_for_target = yes; then
11836 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11837 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11838 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11841 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11842 # Extract the first word of "lipo", so it can be a program name with args.
11843 set dummy lipo; ac_word=$2
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845 $as_echo_n "checking for $ac_word... " >&6; }
11846 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 case $LIPO_FOR_TARGET in
11850 [\\/]* | ?:[\\/]*)
11851 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $gcc_cv_tool_dirs
11857 IFS=$as_save_IFS
11858 test -z "$as_dir" && as_dir=.
11859 for ac_exec_ext in '' $ac_executable_extensions; do
11860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11861 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863 break 2
11865 done
11866 done
11867 IFS=$as_save_IFS
11870 esac
11872 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11873 if test -n "$LIPO_FOR_TARGET"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11875 $as_echo "$LIPO_FOR_TARGET" >&6; }
11876 else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11883 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11886 if test -n "$LIPO_FOR_TARGET"; then
11887 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11888 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11889 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11892 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11893 for ncn_progname in lipo; do
11894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11895 set dummy ${ncn_progname}; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 if test -n "$LIPO_FOR_TARGET"; then
11902 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11903 else
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11911 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913 break 2
11915 done
11916 done
11917 IFS=$as_save_IFS
11921 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11922 if test -n "$LIPO_FOR_TARGET"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11924 $as_echo "$LIPO_FOR_TARGET" >&6; }
11925 else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11931 done
11934 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11935 for ncn_progname in lipo; do
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11937 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11938 if test -x $with_build_time_tools/${ncn_progname}; then
11939 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11941 $as_echo "yes" >&6; }
11942 break
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11947 done
11950 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11951 for ncn_progname in lipo; do
11952 if test -n "$ncn_target_tool_prefix"; then
11953 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11954 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 if test -n "$LIPO_FOR_TARGET"; then
11961 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11962 else
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11970 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11974 done
11975 done
11976 IFS=$as_save_IFS
11980 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11981 if test -n "$LIPO_FOR_TARGET"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11983 $as_echo "$LIPO_FOR_TARGET" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11991 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11993 set dummy ${ncn_progname}; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 if test -n "$LIPO_FOR_TARGET"; then
12000 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12001 else
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 break 2
12013 done
12014 done
12015 IFS=$as_save_IFS
12019 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12020 if test -n "$LIPO_FOR_TARGET"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12022 $as_echo "$LIPO_FOR_TARGET" >&6; }
12023 else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12030 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12031 done
12034 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12035 set dummy lipo
12036 if test $build = $target ; then
12037 LIPO_FOR_TARGET="$2"
12038 else
12039 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12041 else
12042 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12045 else
12046 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12052 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12053 if test -n "$with_build_time_tools"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12055 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12056 if test -x $with_build_time_tools/nm; then
12057 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12058 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12060 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12065 elif test $build != $host && test $have_gcc_for_target = yes; then
12066 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12067 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12068 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12071 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12072 # Extract the first word of "nm", so it can be a program name with args.
12073 set dummy nm; ac_word=$2
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075 $as_echo_n "checking for $ac_word... " >&6; }
12076 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 case $NM_FOR_TARGET in
12080 [\\/]* | ?:[\\/]*)
12081 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $gcc_cv_tool_dirs
12087 IFS=$as_save_IFS
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12091 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093 break 2
12095 done
12096 done
12097 IFS=$as_save_IFS
12100 esac
12102 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12103 if test -n "$NM_FOR_TARGET"; then
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12105 $as_echo "$NM_FOR_TARGET" >&6; }
12106 else
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; }
12113 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12116 if test -n "$NM_FOR_TARGET"; then
12117 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12118 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12119 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12122 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12123 for ncn_progname in nm; do
12124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12125 set dummy ${ncn_progname}; ac_word=$2
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127 $as_echo_n "checking for $ac_word... " >&6; }
12128 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 if test -n "$NM_FOR_TARGET"; then
12132 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12133 else
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12141 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12145 done
12146 done
12147 IFS=$as_save_IFS
12151 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12152 if test -n "$NM_FOR_TARGET"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12154 $as_echo "$NM_FOR_TARGET" >&6; }
12155 else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12161 done
12164 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12165 for ncn_progname in nm; do
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12167 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12168 if test -x $with_build_time_tools/${ncn_progname}; then
12169 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12171 $as_echo "yes" >&6; }
12172 break
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12177 done
12180 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12181 for ncn_progname in nm; do
12182 if test -n "$ncn_target_tool_prefix"; then
12183 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12184 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 if test -n "$NM_FOR_TARGET"; then
12191 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12192 else
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12196 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12200 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202 break 2
12204 done
12205 done
12206 IFS=$as_save_IFS
12210 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12211 if test -n "$NM_FOR_TARGET"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12213 $as_echo "$NM_FOR_TARGET" >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12221 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12223 set dummy ${ncn_progname}; ac_word=$2
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225 $as_echo_n "checking for $ac_word... " >&6; }
12226 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 if test -n "$NM_FOR_TARGET"; then
12230 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12231 else
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12239 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12243 done
12244 done
12245 IFS=$as_save_IFS
12249 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12250 if test -n "$NM_FOR_TARGET"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12252 $as_echo "$NM_FOR_TARGET" >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12260 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12261 done
12264 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12265 set dummy nm
12266 if test $build = $target ; then
12267 NM_FOR_TARGET="$2"
12268 else
12269 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12271 else
12272 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12275 else
12276 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12282 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12283 if test -n "$with_build_time_tools"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12285 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12286 if test -x $with_build_time_tools/objcopy; then
12287 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12288 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12290 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12295 elif test $build != $host && test $have_gcc_for_target = yes; then
12296 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12297 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12298 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12301 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12302 # Extract the first word of "objcopy", so it can be a program name with args.
12303 set dummy objcopy; ac_word=$2
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305 $as_echo_n "checking for $ac_word... " >&6; }
12306 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12309 case $OBJCOPY_FOR_TARGET in
12310 [\\/]* | ?:[\\/]*)
12311 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315 for as_dir in $gcc_cv_tool_dirs
12317 IFS=$as_save_IFS
12318 test -z "$as_dir" && as_dir=.
12319 for ac_exec_ext in '' $ac_executable_extensions; do
12320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12321 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323 break 2
12325 done
12326 done
12327 IFS=$as_save_IFS
12330 esac
12332 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12333 if test -n "$OBJCOPY_FOR_TARGET"; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12335 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12336 else
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12343 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12346 if test -n "$OBJCOPY_FOR_TARGET"; then
12347 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12348 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12349 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12352 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12353 for ncn_progname in objcopy; do
12354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12355 set dummy ${ncn_progname}; ac_word=$2
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357 $as_echo_n "checking for $ac_word... " >&6; }
12358 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 if test -n "$OBJCOPY_FOR_TARGET"; then
12362 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12363 else
12364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 for as_dir in $PATH
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12371 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12375 done
12376 done
12377 IFS=$as_save_IFS
12381 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12382 if test -n "$OBJCOPY_FOR_TARGET"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12384 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12391 done
12394 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12395 for ncn_progname in objcopy; do
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12397 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12398 if test -x $with_build_time_tools/${ncn_progname}; then
12399 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12401 $as_echo "yes" >&6; }
12402 break
12403 else
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12407 done
12410 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12411 for ncn_progname in objcopy; do
12412 if test -n "$ncn_target_tool_prefix"; then
12413 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12414 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 if test -n "$OBJCOPY_FOR_TARGET"; then
12421 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12422 else
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12430 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 break 2
12434 done
12435 done
12436 IFS=$as_save_IFS
12440 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12441 if test -n "$OBJCOPY_FOR_TARGET"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12443 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12444 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12451 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12453 set dummy ${ncn_progname}; ac_word=$2
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455 $as_echo_n "checking for $ac_word... " >&6; }
12456 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 if test -n "$OBJCOPY_FOR_TARGET"; then
12460 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12461 else
12462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12465 IFS=$as_save_IFS
12466 test -z "$as_dir" && as_dir=.
12467 for ac_exec_ext in '' $ac_executable_extensions; do
12468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12469 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12471 break 2
12473 done
12474 done
12475 IFS=$as_save_IFS
12479 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12480 if test -n "$OBJCOPY_FOR_TARGET"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12482 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12483 else
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12490 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12491 done
12494 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12495 set dummy objcopy
12496 if test $build = $target ; then
12497 OBJCOPY_FOR_TARGET="$2"
12498 else
12499 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12501 else
12502 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12505 else
12506 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12512 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12513 if test -n "$with_build_time_tools"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12515 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12516 if test -x $with_build_time_tools/objdump; then
12517 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12518 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12520 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12521 else
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523 $as_echo "no" >&6; }
12525 elif test $build != $host && test $have_gcc_for_target = yes; then
12526 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12527 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12528 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12531 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12532 # Extract the first word of "objdump", so it can be a program name with args.
12533 set dummy objdump; ac_word=$2
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12535 $as_echo_n "checking for $ac_word... " >&6; }
12536 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 case $OBJDUMP_FOR_TARGET in
12540 [\\/]* | ?:[\\/]*)
12541 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545 for as_dir in $gcc_cv_tool_dirs
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
12550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12551 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12553 break 2
12555 done
12556 done
12557 IFS=$as_save_IFS
12560 esac
12562 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12563 if test -n "$OBJDUMP_FOR_TARGET"; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12565 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12566 else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568 $as_echo "no" >&6; }
12573 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12576 if test -n "$OBJDUMP_FOR_TARGET"; then
12577 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12578 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12579 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12582 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12583 for ncn_progname in objdump; do
12584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12585 set dummy ${ncn_progname}; ac_word=$2
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587 $as_echo_n "checking for $ac_word... " >&6; }
12588 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 if test -n "$OBJDUMP_FOR_TARGET"; then
12592 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12593 else
12594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595 for as_dir in $PATH
12597 IFS=$as_save_IFS
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12601 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 break 2
12605 done
12606 done
12607 IFS=$as_save_IFS
12611 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12612 if test -n "$OBJDUMP_FOR_TARGET"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12614 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12615 else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12621 done
12624 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12625 for ncn_progname in objdump; do
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12627 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12628 if test -x $with_build_time_tools/${ncn_progname}; then
12629 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12631 $as_echo "yes" >&6; }
12632 break
12633 else
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12637 done
12640 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12641 for ncn_progname in objdump; do
12642 if test -n "$ncn_target_tool_prefix"; then
12643 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12644 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 if test -n "$OBJDUMP_FOR_TARGET"; then
12651 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12652 else
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12660 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12664 done
12665 done
12666 IFS=$as_save_IFS
12670 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12671 if test -n "$OBJDUMP_FOR_TARGET"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12673 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12681 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12683 set dummy ${ncn_progname}; ac_word=$2
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685 $as_echo_n "checking for $ac_word... " >&6; }
12686 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 if test -n "$OBJDUMP_FOR_TARGET"; then
12690 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12691 else
12692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693 for as_dir in $PATH
12695 IFS=$as_save_IFS
12696 test -z "$as_dir" && as_dir=.
12697 for ac_exec_ext in '' $ac_executable_extensions; do
12698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12699 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12701 break 2
12703 done
12704 done
12705 IFS=$as_save_IFS
12709 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12710 if test -n "$OBJDUMP_FOR_TARGET"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12712 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12713 else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715 $as_echo "no" >&6; }
12720 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12721 done
12724 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12725 set dummy objdump
12726 if test $build = $target ; then
12727 OBJDUMP_FOR_TARGET="$2"
12728 else
12729 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12731 else
12732 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12735 else
12736 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12742 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12743 if test -n "$with_build_time_tools"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12745 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12746 if test -x $with_build_time_tools/ranlib; then
12747 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12748 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12750 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12755 elif test $build != $host && test $have_gcc_for_target = yes; then
12756 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12757 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12758 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12761 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12762 # Extract the first word of "ranlib", so it can be a program name with args.
12763 set dummy ranlib; ac_word=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 case $RANLIB_FOR_TARGET in
12770 [\\/]* | ?:[\\/]*)
12771 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775 for as_dir in $gcc_cv_tool_dirs
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12781 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12785 done
12786 done
12787 IFS=$as_save_IFS
12790 esac
12792 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12793 if test -n "$RANLIB_FOR_TARGET"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12795 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12796 else
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12803 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12806 if test -n "$RANLIB_FOR_TARGET"; then
12807 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12808 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12809 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12812 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12813 for ncn_progname in ranlib; do
12814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12815 set dummy ${ncn_progname}; ac_word=$2
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817 $as_echo_n "checking for $ac_word... " >&6; }
12818 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12820 else
12821 if test -n "$RANLIB_FOR_TARGET"; then
12822 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12823 else
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
12829 for ac_exec_ext in '' $ac_executable_extensions; do
12830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12831 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12833 break 2
12835 done
12836 done
12837 IFS=$as_save_IFS
12841 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12842 if test -n "$RANLIB_FOR_TARGET"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12844 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12845 else
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12851 done
12854 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12855 for ncn_progname in ranlib; do
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12857 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12858 if test -x $with_build_time_tools/${ncn_progname}; then
12859 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12861 $as_echo "yes" >&6; }
12862 break
12863 else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12867 done
12870 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12871 for ncn_progname in ranlib; do
12872 if test -n "$ncn_target_tool_prefix"; then
12873 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12874 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 if test -n "$RANLIB_FOR_TARGET"; then
12881 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12882 else
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
12889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12890 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 break 2
12894 done
12895 done
12896 IFS=$as_save_IFS
12900 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12901 if test -n "$RANLIB_FOR_TARGET"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12903 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12911 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12913 set dummy ${ncn_progname}; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 if test -n "$RANLIB_FOR_TARGET"; then
12920 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12921 else
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12925 IFS=$as_save_IFS
12926 test -z "$as_dir" && as_dir=.
12927 for ac_exec_ext in '' $ac_executable_extensions; do
12928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12929 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 break 2
12933 done
12934 done
12935 IFS=$as_save_IFS
12939 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12940 if test -n "$RANLIB_FOR_TARGET"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12942 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12950 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12951 done
12954 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12955 set dummy ranlib
12956 if test $build = $target ; then
12957 RANLIB_FOR_TARGET="$2"
12958 else
12959 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12961 else
12962 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12965 else
12966 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12972 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12973 if test -n "$with_build_time_tools"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12975 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12976 if test -x $with_build_time_tools/readelf; then
12977 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12978 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12980 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12981 else
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12985 elif test $build != $host && test $have_gcc_for_target = yes; then
12986 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12987 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12988 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12991 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12992 # Extract the first word of "readelf", so it can be a program name with args.
12993 set dummy readelf; ac_word=$2
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12995 $as_echo_n "checking for $ac_word... " >&6; }
12996 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 case $READELF_FOR_TARGET in
13000 [\\/]* | ?:[\\/]*)
13001 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $gcc_cv_tool_dirs
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
13010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13011 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 break 2
13015 done
13016 done
13017 IFS=$as_save_IFS
13020 esac
13022 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13023 if test -n "$READELF_FOR_TARGET"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13025 $as_echo "$READELF_FOR_TARGET" >&6; }
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13033 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13036 if test -n "$READELF_FOR_TARGET"; then
13037 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13038 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13039 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13042 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13043 for ncn_progname in readelf; do
13044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13045 set dummy ${ncn_progname}; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 if test -n "$READELF_FOR_TARGET"; then
13052 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13053 else
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13057 IFS=$as_save_IFS
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063 break 2
13065 done
13066 done
13067 IFS=$as_save_IFS
13071 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13072 if test -n "$READELF_FOR_TARGET"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13074 $as_echo "$READELF_FOR_TARGET" >&6; }
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13081 done
13084 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13085 for ncn_progname in readelf; do
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13087 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13088 if test -x $with_build_time_tools/${ncn_progname}; then
13089 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13091 $as_echo "yes" >&6; }
13092 break
13093 else
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13097 done
13100 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13101 for ncn_progname in readelf; do
13102 if test -n "$ncn_target_tool_prefix"; then
13103 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13104 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106 $as_echo_n "checking for $ac_word... " >&6; }
13107 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 if test -n "$READELF_FOR_TARGET"; then
13111 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13112 else
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13120 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 break 2
13124 done
13125 done
13126 IFS=$as_save_IFS
13130 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13131 if test -n "$READELF_FOR_TARGET"; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13133 $as_echo "$READELF_FOR_TARGET" >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13141 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13143 set dummy ${ncn_progname}; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 if test -n "$READELF_FOR_TARGET"; then
13150 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13151 else
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13163 done
13164 done
13165 IFS=$as_save_IFS
13169 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13170 if test -n "$READELF_FOR_TARGET"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13172 $as_echo "$READELF_FOR_TARGET" >&6; }
13173 else
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13180 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13181 done
13184 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13185 set dummy readelf
13186 if test $build = $target ; then
13187 READELF_FOR_TARGET="$2"
13188 else
13189 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13191 else
13192 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13195 else
13196 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13202 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13203 if test -n "$with_build_time_tools"; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13205 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13206 if test -x $with_build_time_tools/strip; then
13207 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13208 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13210 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13211 else
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213 $as_echo "no" >&6; }
13215 elif test $build != $host && test $have_gcc_for_target = yes; then
13216 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13217 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13218 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13221 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13222 # Extract the first word of "strip", so it can be a program name with args.
13223 set dummy strip; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 case $STRIP_FOR_TARGET in
13230 [\\/]* | ?:[\\/]*)
13231 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $gcc_cv_tool_dirs
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13245 done
13246 done
13247 IFS=$as_save_IFS
13250 esac
13252 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13253 if test -n "$STRIP_FOR_TARGET"; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13255 $as_echo "$STRIP_FOR_TARGET" >&6; }
13256 else
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258 $as_echo "no" >&6; }
13263 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13266 if test -n "$STRIP_FOR_TARGET"; then
13267 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13268 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13269 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13272 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13273 for ncn_progname in strip; do
13274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13275 set dummy ${ncn_progname}; ac_word=$2
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277 $as_echo_n "checking for $ac_word... " >&6; }
13278 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13279 $as_echo_n "(cached) " >&6
13280 else
13281 if test -n "$STRIP_FOR_TARGET"; then
13282 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13283 else
13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13291 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13295 done
13296 done
13297 IFS=$as_save_IFS
13301 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13302 if test -n "$STRIP_FOR_TARGET"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13304 $as_echo "$STRIP_FOR_TARGET" >&6; }
13305 else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13311 done
13314 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13315 for ncn_progname in strip; do
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13317 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13318 if test -x $with_build_time_tools/${ncn_progname}; then
13319 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13321 $as_echo "yes" >&6; }
13322 break
13323 else
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 $as_echo "no" >&6; }
13327 done
13330 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13331 for ncn_progname in strip; do
13332 if test -n "$ncn_target_tool_prefix"; then
13333 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13334 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13338 $as_echo_n "(cached) " >&6
13339 else
13340 if test -n "$STRIP_FOR_TARGET"; then
13341 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13342 else
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344 for as_dir in $PATH
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13350 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13352 break 2
13354 done
13355 done
13356 IFS=$as_save_IFS
13360 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13361 if test -n "$STRIP_FOR_TARGET"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13363 $as_echo "$STRIP_FOR_TARGET" >&6; }
13364 else
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13371 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13373 set dummy ${ncn_progname}; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 if test -n "$STRIP_FOR_TARGET"; then
13380 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13381 else
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13385 IFS=$as_save_IFS
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13389 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13391 break 2
13393 done
13394 done
13395 IFS=$as_save_IFS
13399 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13400 if test -n "$STRIP_FOR_TARGET"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13402 $as_echo "$STRIP_FOR_TARGET" >&6; }
13403 else
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405 $as_echo "no" >&6; }
13410 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13411 done
13414 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13415 set dummy strip
13416 if test $build = $target ; then
13417 STRIP_FOR_TARGET="$2"
13418 else
13419 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13421 else
13422 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13425 else
13426 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13432 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13433 if test -n "$with_build_time_tools"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13435 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13436 if test -x $with_build_time_tools/windres; then
13437 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13438 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13440 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13441 else
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13445 elif test $build != $host && test $have_gcc_for_target = yes; then
13446 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13447 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13448 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13451 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13452 # Extract the first word of "windres", so it can be a program name with args.
13453 set dummy windres; ac_word=$2
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13455 $as_echo_n "checking for $ac_word... " >&6; }
13456 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13457 $as_echo_n "(cached) " >&6
13458 else
13459 case $WINDRES_FOR_TARGET in
13460 [\\/]* | ?:[\\/]*)
13461 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465 for as_dir in $gcc_cv_tool_dirs
13467 IFS=$as_save_IFS
13468 test -z "$as_dir" && as_dir=.
13469 for ac_exec_ext in '' $ac_executable_extensions; do
13470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13471 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13473 break 2
13475 done
13476 done
13477 IFS=$as_save_IFS
13480 esac
13482 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13483 if test -n "$WINDRES_FOR_TARGET"; then
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13485 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13486 else
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488 $as_echo "no" >&6; }
13493 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13496 if test -n "$WINDRES_FOR_TARGET"; then
13497 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13498 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13499 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13502 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13503 for ncn_progname in windres; do
13504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13505 set dummy ${ncn_progname}; ac_word=$2
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13507 $as_echo_n "checking for $ac_word... " >&6; }
13508 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 if test -n "$WINDRES_FOR_TARGET"; then
13512 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13513 else
13514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515 for as_dir in $PATH
13517 IFS=$as_save_IFS
13518 test -z "$as_dir" && as_dir=.
13519 for ac_exec_ext in '' $ac_executable_extensions; do
13520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13521 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13523 break 2
13525 done
13526 done
13527 IFS=$as_save_IFS
13531 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13532 if test -n "$WINDRES_FOR_TARGET"; then
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13534 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13535 else
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13537 $as_echo "no" >&6; }
13541 done
13544 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13545 for ncn_progname in windres; do
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13547 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13548 if test -x $with_build_time_tools/${ncn_progname}; then
13549 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13551 $as_echo "yes" >&6; }
13552 break
13553 else
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 $as_echo "no" >&6; }
13557 done
13560 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13561 for ncn_progname in windres; do
13562 if test -n "$ncn_target_tool_prefix"; then
13563 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13564 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566 $as_echo_n "checking for $ac_word... " >&6; }
13567 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 if test -n "$WINDRES_FOR_TARGET"; then
13571 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13572 else
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13576 IFS=$as_save_IFS
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
13579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13580 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 break 2
13584 done
13585 done
13586 IFS=$as_save_IFS
13590 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13591 if test -n "$WINDRES_FOR_TARGET"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13593 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13594 else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13601 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13603 set dummy ${ncn_progname}; ac_word=$2
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13605 $as_echo_n "checking for $ac_word... " >&6; }
13606 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13607 $as_echo_n "(cached) " >&6
13608 else
13609 if test -n "$WINDRES_FOR_TARGET"; then
13610 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13611 else
13612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613 for as_dir in $PATH
13615 IFS=$as_save_IFS
13616 test -z "$as_dir" && as_dir=.
13617 for ac_exec_ext in '' $ac_executable_extensions; do
13618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13619 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13621 break 2
13623 done
13624 done
13625 IFS=$as_save_IFS
13629 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13630 if test -n "$WINDRES_FOR_TARGET"; then
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13632 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13633 else
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 $as_echo "no" >&6; }
13640 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13641 done
13644 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13645 set dummy windres
13646 if test $build = $target ; then
13647 WINDRES_FOR_TARGET="$2"
13648 else
13649 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13651 else
13652 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13655 else
13656 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13662 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13663 if test -n "$with_build_time_tools"; then
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13665 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13666 if test -x $with_build_time_tools/windmc; then
13667 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13668 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13670 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13671 else
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673 $as_echo "no" >&6; }
13675 elif test $build != $host && test $have_gcc_for_target = yes; then
13676 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13677 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13678 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13681 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13682 # Extract the first word of "windmc", so it can be a program name with args.
13683 set dummy windmc; ac_word=$2
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13685 $as_echo_n "checking for $ac_word... " >&6; }
13686 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 case $WINDMC_FOR_TARGET in
13690 [\\/]* | ?:[\\/]*)
13691 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13695 for as_dir in $gcc_cv_tool_dirs
13697 IFS=$as_save_IFS
13698 test -z "$as_dir" && as_dir=.
13699 for ac_exec_ext in '' $ac_executable_extensions; do
13700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13701 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13703 break 2
13705 done
13706 done
13707 IFS=$as_save_IFS
13710 esac
13712 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13713 if test -n "$WINDMC_FOR_TARGET"; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13715 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13716 else
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718 $as_echo "no" >&6; }
13723 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13726 if test -n "$WINDMC_FOR_TARGET"; then
13727 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13728 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13729 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13732 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13733 for ncn_progname in windmc; do
13734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13735 set dummy ${ncn_progname}; ac_word=$2
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737 $as_echo_n "checking for $ac_word... " >&6; }
13738 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13739 $as_echo_n "(cached) " >&6
13740 else
13741 if test -n "$WINDMC_FOR_TARGET"; then
13742 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13743 else
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13747 IFS=$as_save_IFS
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13751 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13753 break 2
13755 done
13756 done
13757 IFS=$as_save_IFS
13761 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13762 if test -n "$WINDMC_FOR_TARGET"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13764 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13765 else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13771 done
13774 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13775 for ncn_progname in windmc; do
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13777 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13778 if test -x $with_build_time_tools/${ncn_progname}; then
13779 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13781 $as_echo "yes" >&6; }
13782 break
13783 else
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785 $as_echo "no" >&6; }
13787 done
13790 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13791 for ncn_progname in windmc; do
13792 if test -n "$ncn_target_tool_prefix"; then
13793 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13794 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13796 $as_echo_n "checking for $ac_word... " >&6; }
13797 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 if test -n "$WINDMC_FOR_TARGET"; then
13801 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13802 else
13803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13806 IFS=$as_save_IFS
13807 test -z "$as_dir" && as_dir=.
13808 for ac_exec_ext in '' $ac_executable_extensions; do
13809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13810 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13812 break 2
13814 done
13815 done
13816 IFS=$as_save_IFS
13820 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13821 if test -n "$WINDMC_FOR_TARGET"; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13823 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13824 else
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13831 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13833 set dummy ${ncn_progname}; ac_word=$2
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13835 $as_echo_n "checking for $ac_word... " >&6; }
13836 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13837 $as_echo_n "(cached) " >&6
13838 else
13839 if test -n "$WINDMC_FOR_TARGET"; then
13840 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13841 else
13842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13843 for as_dir in $PATH
13845 IFS=$as_save_IFS
13846 test -z "$as_dir" && as_dir=.
13847 for ac_exec_ext in '' $ac_executable_extensions; do
13848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13849 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13851 break 2
13853 done
13854 done
13855 IFS=$as_save_IFS
13859 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13860 if test -n "$WINDMC_FOR_TARGET"; then
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13862 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13863 else
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13865 $as_echo "no" >&6; }
13870 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13871 done
13874 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13875 set dummy windmc
13876 if test $build = $target ; then
13877 WINDMC_FOR_TARGET="$2"
13878 else
13879 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13881 else
13882 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13885 else
13886 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13890 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13893 $as_echo_n "checking where to find the target ar... " >&6; }
13894 if test "x${build}" != "x${host}" ; then
13895 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13896 # We already found the complete path
13897 ac_dir=`dirname $AR_FOR_TARGET`
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13899 $as_echo "pre-installed in $ac_dir" >&6; }
13900 else
13901 # Canadian cross, just use what we found
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13903 $as_echo "pre-installed" >&6; }
13905 else
13906 ok=yes
13907 case " ${configdirs} " in
13908 *" binutils "*) ;;
13909 *) ok=no ;;
13910 esac
13912 if test $ok = yes; then
13913 # An in-tree tool is available and we can use it
13914 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13916 $as_echo "just compiled" >&6; }
13917 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13918 # We already found the complete path
13919 ac_dir=`dirname $AR_FOR_TARGET`
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13921 $as_echo "pre-installed in $ac_dir" >&6; }
13922 elif test "x$target" = "x$host"; then
13923 # We can use an host tool
13924 AR_FOR_TARGET='$(AR)'
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13926 $as_echo "host tool" >&6; }
13927 else
13928 # We need a cross tool
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13930 $as_echo "pre-installed" >&6; }
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13935 $as_echo_n "checking where to find the target as... " >&6; }
13936 if test "x${build}" != "x${host}" ; then
13937 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13938 # We already found the complete path
13939 ac_dir=`dirname $AS_FOR_TARGET`
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13941 $as_echo "pre-installed in $ac_dir" >&6; }
13942 else
13943 # Canadian cross, just use what we found
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13945 $as_echo "pre-installed" >&6; }
13947 else
13948 ok=yes
13949 case " ${configdirs} " in
13950 *" gas "*) ;;
13951 *) ok=no ;;
13952 esac
13954 if test $ok = yes; then
13955 # An in-tree tool is available and we can use it
13956 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13958 $as_echo "just compiled" >&6; }
13959 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13960 # We already found the complete path
13961 ac_dir=`dirname $AS_FOR_TARGET`
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13963 $as_echo "pre-installed in $ac_dir" >&6; }
13964 elif test "x$target" = "x$host"; then
13965 # We can use an host tool
13966 AS_FOR_TARGET='$(AS)'
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13968 $as_echo "host tool" >&6; }
13969 else
13970 # We need a cross tool
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13972 $as_echo "pre-installed" >&6; }
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13977 $as_echo_n "checking where to find the target cc... " >&6; }
13978 if test "x${build}" != "x${host}" ; then
13979 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13980 # We already found the complete path
13981 ac_dir=`dirname $CC_FOR_TARGET`
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13983 $as_echo "pre-installed in $ac_dir" >&6; }
13984 else
13985 # Canadian cross, just use what we found
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13987 $as_echo "pre-installed" >&6; }
13989 else
13990 ok=yes
13991 case " ${configdirs} " in
13992 *" gcc "*) ;;
13993 *) ok=no ;;
13994 esac
13996 if test $ok = yes; then
13997 # An in-tree tool is available and we can use it
13998 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14000 $as_echo "just compiled" >&6; }
14001 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
14003 ac_dir=`dirname $CC_FOR_TARGET`
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14005 $as_echo "pre-installed in $ac_dir" >&6; }
14006 elif test "x$target" = "x$host"; then
14007 # We can use an host tool
14008 CC_FOR_TARGET='$(CC)'
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14010 $as_echo "host tool" >&6; }
14011 else
14012 # We need a cross tool
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14014 $as_echo "pre-installed" >&6; }
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14019 $as_echo_n "checking where to find the target c++... " >&6; }
14020 if test "x${build}" != "x${host}" ; then
14021 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14022 # We already found the complete path
14023 ac_dir=`dirname $CXX_FOR_TARGET`
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14025 $as_echo "pre-installed in $ac_dir" >&6; }
14026 else
14027 # Canadian cross, just use what we found
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14029 $as_echo "pre-installed" >&6; }
14031 else
14032 ok=yes
14033 case " ${configdirs} " in
14034 *" gcc "*) ;;
14035 *) ok=no ;;
14036 esac
14037 case ,${enable_languages}, in
14038 *,c++,*) ;;
14039 *) ok=no ;;
14040 esac
14041 if test $ok = yes; then
14042 # An in-tree tool is available and we can use it
14043 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'
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14045 $as_echo "just compiled" >&6; }
14046 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14047 # We already found the complete path
14048 ac_dir=`dirname $CXX_FOR_TARGET`
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14050 $as_echo "pre-installed in $ac_dir" >&6; }
14051 elif test "x$target" = "x$host"; then
14052 # We can use an host tool
14053 CXX_FOR_TARGET='$(CXX)'
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14055 $as_echo "host tool" >&6; }
14056 else
14057 # We need a cross tool
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14059 $as_echo "pre-installed" >&6; }
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14064 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14065 if test "x${build}" != "x${host}" ; then
14066 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
14068 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14070 $as_echo "pre-installed in $ac_dir" >&6; }
14071 else
14072 # Canadian cross, just use what we found
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14074 $as_echo "pre-installed" >&6; }
14076 else
14077 ok=yes
14078 case " ${configdirs} " in
14079 *" gcc "*) ;;
14080 *) ok=no ;;
14081 esac
14082 case ,${enable_languages}, in
14083 *,c++,*) ;;
14084 *) ok=no ;;
14085 esac
14086 if test $ok = yes; then
14087 # An in-tree tool is available and we can use it
14088 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'
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14090 $as_echo "just compiled" >&6; }
14091 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14092 # We already found the complete path
14093 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14095 $as_echo "pre-installed in $ac_dir" >&6; }
14096 elif test "x$target" = "x$host"; then
14097 # We can use an host tool
14098 RAW_CXX_FOR_TARGET='$(CXX)'
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14100 $as_echo "host tool" >&6; }
14101 else
14102 # We need a cross tool
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14104 $as_echo "pre-installed" >&6; }
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14109 $as_echo_n "checking where to find the target dlltool... " >&6; }
14110 if test "x${build}" != "x${host}" ; then
14111 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14112 # We already found the complete path
14113 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14115 $as_echo "pre-installed in $ac_dir" >&6; }
14116 else
14117 # Canadian cross, just use what we found
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14119 $as_echo "pre-installed" >&6; }
14121 else
14122 ok=yes
14123 case " ${configdirs} " in
14124 *" binutils "*) ;;
14125 *) ok=no ;;
14126 esac
14128 if test $ok = yes; then
14129 # An in-tree tool is available and we can use it
14130 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14132 $as_echo "just compiled" >&6; }
14133 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14134 # We already found the complete path
14135 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14137 $as_echo "pre-installed in $ac_dir" >&6; }
14138 elif test "x$target" = "x$host"; then
14139 # We can use an host tool
14140 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14142 $as_echo "host tool" >&6; }
14143 else
14144 # We need a cross tool
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14146 $as_echo "pre-installed" >&6; }
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14151 $as_echo_n "checking where to find the target gcc... " >&6; }
14152 if test "x${build}" != "x${host}" ; then
14153 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14154 # We already found the complete path
14155 ac_dir=`dirname $GCC_FOR_TARGET`
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14157 $as_echo "pre-installed in $ac_dir" >&6; }
14158 else
14159 # Canadian cross, just use what we found
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14161 $as_echo "pre-installed" >&6; }
14163 else
14164 ok=yes
14165 case " ${configdirs} " in
14166 *" gcc "*) ;;
14167 *) ok=no ;;
14168 esac
14170 if test $ok = yes; then
14171 # An in-tree tool is available and we can use it
14172 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14174 $as_echo "just compiled" >&6; }
14175 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14176 # We already found the complete path
14177 ac_dir=`dirname $GCC_FOR_TARGET`
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14179 $as_echo "pre-installed in $ac_dir" >&6; }
14180 elif test "x$target" = "x$host"; then
14181 # We can use an host tool
14182 GCC_FOR_TARGET='$()'
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14184 $as_echo "host tool" >&6; }
14185 else
14186 # We need a cross tool
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14188 $as_echo "pre-installed" >&6; }
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14193 $as_echo_n "checking where to find the target gcj... " >&6; }
14194 if test "x${build}" != "x${host}" ; then
14195 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14196 # We already found the complete path
14197 ac_dir=`dirname $GCJ_FOR_TARGET`
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14199 $as_echo "pre-installed in $ac_dir" >&6; }
14200 else
14201 # Canadian cross, just use what we found
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14203 $as_echo "pre-installed" >&6; }
14205 else
14206 ok=yes
14207 case " ${configdirs} " in
14208 *" gcc "*) ;;
14209 *) ok=no ;;
14210 esac
14211 case ,${enable_languages}, in
14212 *,java,*) ;;
14213 *) ok=no ;;
14214 esac
14215 if test $ok = yes; then
14216 # An in-tree tool is available and we can use it
14217 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14219 $as_echo "just compiled" >&6; }
14220 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14221 # We already found the complete path
14222 ac_dir=`dirname $GCJ_FOR_TARGET`
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14224 $as_echo "pre-installed in $ac_dir" >&6; }
14225 elif test "x$target" = "x$host"; then
14226 # We can use an host tool
14227 GCJ_FOR_TARGET='$(GCJ)'
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14229 $as_echo "host tool" >&6; }
14230 else
14231 # We need a cross tool
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14233 $as_echo "pre-installed" >&6; }
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14238 $as_echo_n "checking where to find the target gfortran... " >&6; }
14239 if test "x${build}" != "x${host}" ; then
14240 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14241 # We already found the complete path
14242 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14244 $as_echo "pre-installed in $ac_dir" >&6; }
14245 else
14246 # Canadian cross, just use what we found
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14248 $as_echo "pre-installed" >&6; }
14250 else
14251 ok=yes
14252 case " ${configdirs} " in
14253 *" gcc "*) ;;
14254 *) ok=no ;;
14255 esac
14256 case ,${enable_languages}, in
14257 *,fortran,*) ;;
14258 *) ok=no ;;
14259 esac
14260 if test $ok = yes; then
14261 # An in-tree tool is available and we can use it
14262 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14264 $as_echo "just compiled" >&6; }
14265 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14266 # We already found the complete path
14267 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14269 $as_echo "pre-installed in $ac_dir" >&6; }
14270 elif test "x$target" = "x$host"; then
14271 # We can use an host tool
14272 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14274 $as_echo "host tool" >&6; }
14275 else
14276 # We need a cross tool
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14278 $as_echo "pre-installed" >&6; }
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14283 $as_echo_n "checking where to find the target gccgo... " >&6; }
14284 if test "x${build}" != "x${host}" ; then
14285 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14286 # We already found the complete path
14287 ac_dir=`dirname $GOC_FOR_TARGET`
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14289 $as_echo "pre-installed in $ac_dir" >&6; }
14290 else
14291 # Canadian cross, just use what we found
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14293 $as_echo "pre-installed" >&6; }
14295 else
14296 ok=yes
14297 case " ${configdirs} " in
14298 *" gcc "*) ;;
14299 *) ok=no ;;
14300 esac
14301 case ,${enable_languages}, in
14302 *,go,*) ;;
14303 *) ok=no ;;
14304 esac
14305 if test $ok = yes; then
14306 # An in-tree tool is available and we can use it
14307 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14309 $as_echo "just compiled" >&6; }
14310 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14311 # We already found the complete path
14312 ac_dir=`dirname $GOC_FOR_TARGET`
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14314 $as_echo "pre-installed in $ac_dir" >&6; }
14315 elif test "x$target" = "x$host"; then
14316 # We can use an host tool
14317 GOC_FOR_TARGET='$(GOC)'
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14319 $as_echo "host tool" >&6; }
14320 else
14321 # We need a cross tool
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14323 $as_echo "pre-installed" >&6; }
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14328 $as_echo_n "checking where to find the target ld... " >&6; }
14329 if test "x${build}" != "x${host}" ; then
14330 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14331 # We already found the complete path
14332 ac_dir=`dirname $LD_FOR_TARGET`
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14334 $as_echo "pre-installed in $ac_dir" >&6; }
14335 else
14336 # Canadian cross, just use what we found
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14338 $as_echo "pre-installed" >&6; }
14340 else
14341 ok=yes
14342 case " ${configdirs} " in
14343 *" ld "*) ;;
14344 *) ok=no ;;
14345 esac
14347 if test $ok = yes; then
14348 # An in-tree tool is available and we can use it
14349 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14351 $as_echo "just compiled" >&6; }
14352 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14353 # We already found the complete path
14354 ac_dir=`dirname $LD_FOR_TARGET`
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14356 $as_echo "pre-installed in $ac_dir" >&6; }
14357 elif test "x$target" = "x$host"; then
14358 # We can use an host tool
14359 LD_FOR_TARGET='$(LD)'
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14361 $as_echo "host tool" >&6; }
14362 else
14363 # We need a cross tool
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14365 $as_echo "pre-installed" >&6; }
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14370 $as_echo_n "checking where to find the target lipo... " >&6; }
14371 if test "x${build}" != "x${host}" ; then
14372 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14373 # We already found the complete path
14374 ac_dir=`dirname $LIPO_FOR_TARGET`
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14376 $as_echo "pre-installed in $ac_dir" >&6; }
14377 else
14378 # Canadian cross, just use what we found
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14380 $as_echo "pre-installed" >&6; }
14382 else
14383 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14384 # We already found the complete path
14385 ac_dir=`dirname $LIPO_FOR_TARGET`
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14387 $as_echo "pre-installed in $ac_dir" >&6; }
14388 elif test "x$target" = "x$host"; then
14389 # We can use an host tool
14390 LIPO_FOR_TARGET='$(LIPO)'
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14392 $as_echo "host tool" >&6; }
14393 else
14394 # We need a cross tool
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14396 $as_echo "pre-installed" >&6; }
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14401 $as_echo_n "checking where to find the target nm... " >&6; }
14402 if test "x${build}" != "x${host}" ; then
14403 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14404 # We already found the complete path
14405 ac_dir=`dirname $NM_FOR_TARGET`
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14407 $as_echo "pre-installed in $ac_dir" >&6; }
14408 else
14409 # Canadian cross, just use what we found
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14411 $as_echo "pre-installed" >&6; }
14413 else
14414 ok=yes
14415 case " ${configdirs} " in
14416 *" binutils "*) ;;
14417 *) ok=no ;;
14418 esac
14420 if test $ok = yes; then
14421 # An in-tree tool is available and we can use it
14422 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14424 $as_echo "just compiled" >&6; }
14425 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14426 # We already found the complete path
14427 ac_dir=`dirname $NM_FOR_TARGET`
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14429 $as_echo "pre-installed in $ac_dir" >&6; }
14430 elif test "x$target" = "x$host"; then
14431 # We can use an host tool
14432 NM_FOR_TARGET='$(NM)'
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14434 $as_echo "host tool" >&6; }
14435 else
14436 # We need a cross tool
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14438 $as_echo "pre-installed" >&6; }
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14443 $as_echo_n "checking where to find the target objcopy... " >&6; }
14444 if test "x${build}" != "x${host}" ; then
14445 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14446 # We already found the complete path
14447 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14449 $as_echo "pre-installed in $ac_dir" >&6; }
14450 else
14451 # Canadian cross, just use what we found
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453 $as_echo "pre-installed" >&6; }
14455 else
14456 ok=yes
14457 case " ${configdirs} " in
14458 *" binutils "*) ;;
14459 *) ok=no ;;
14460 esac
14462 if test $ok = yes; then
14463 # An in-tree tool is available and we can use it
14464 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14466 $as_echo "just compiled" >&6; }
14467 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14468 # We already found the complete path
14469 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14471 $as_echo "pre-installed in $ac_dir" >&6; }
14472 elif test "x$target" = "x$host"; then
14473 # We can use an host tool
14474 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14476 $as_echo "host tool" >&6; }
14477 else
14478 # We need a cross tool
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14480 $as_echo "pre-installed" >&6; }
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14485 $as_echo_n "checking where to find the target objdump... " >&6; }
14486 if test "x${build}" != "x${host}" ; then
14487 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14488 # We already found the complete path
14489 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14491 $as_echo "pre-installed in $ac_dir" >&6; }
14492 else
14493 # Canadian cross, just use what we found
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495 $as_echo "pre-installed" >&6; }
14497 else
14498 ok=yes
14499 case " ${configdirs} " in
14500 *" binutils "*) ;;
14501 *) ok=no ;;
14502 esac
14504 if test $ok = yes; then
14505 # An in-tree tool is available and we can use it
14506 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14508 $as_echo "just compiled" >&6; }
14509 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14510 # We already found the complete path
14511 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14513 $as_echo "pre-installed in $ac_dir" >&6; }
14514 elif test "x$target" = "x$host"; then
14515 # We can use an host tool
14516 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14518 $as_echo "host tool" >&6; }
14519 else
14520 # We need a cross tool
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14522 $as_echo "pre-installed" >&6; }
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14527 $as_echo_n "checking where to find the target ranlib... " >&6; }
14528 if test "x${build}" != "x${host}" ; then
14529 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14530 # We already found the complete path
14531 ac_dir=`dirname $RANLIB_FOR_TARGET`
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14533 $as_echo "pre-installed in $ac_dir" >&6; }
14534 else
14535 # Canadian cross, just use what we found
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537 $as_echo "pre-installed" >&6; }
14539 else
14540 ok=yes
14541 case " ${configdirs} " in
14542 *" binutils "*) ;;
14543 *) ok=no ;;
14544 esac
14546 if test $ok = yes; then
14547 # An in-tree tool is available and we can use it
14548 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14550 $as_echo "just compiled" >&6; }
14551 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14552 # We already found the complete path
14553 ac_dir=`dirname $RANLIB_FOR_TARGET`
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14555 $as_echo "pre-installed in $ac_dir" >&6; }
14556 elif test "x$target" = "x$host"; then
14557 # We can use an host tool
14558 RANLIB_FOR_TARGET='$(RANLIB)'
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14560 $as_echo "host tool" >&6; }
14561 else
14562 # We need a cross tool
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14564 $as_echo "pre-installed" >&6; }
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14569 $as_echo_n "checking where to find the target readelf... " >&6; }
14570 if test "x${build}" != "x${host}" ; then
14571 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14572 # We already found the complete path
14573 ac_dir=`dirname $READELF_FOR_TARGET`
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14575 $as_echo "pre-installed in $ac_dir" >&6; }
14576 else
14577 # Canadian cross, just use what we found
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579 $as_echo "pre-installed" >&6; }
14581 else
14582 ok=yes
14583 case " ${configdirs} " in
14584 *" binutils "*) ;;
14585 *) ok=no ;;
14586 esac
14588 if test $ok = yes; then
14589 # An in-tree tool is available and we can use it
14590 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14592 $as_echo "just compiled" >&6; }
14593 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14594 # We already found the complete path
14595 ac_dir=`dirname $READELF_FOR_TARGET`
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14597 $as_echo "pre-installed in $ac_dir" >&6; }
14598 elif test "x$target" = "x$host"; then
14599 # We can use an host tool
14600 READELF_FOR_TARGET='$(READELF)'
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14602 $as_echo "host tool" >&6; }
14603 else
14604 # We need a cross tool
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14606 $as_echo "pre-installed" >&6; }
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14611 $as_echo_n "checking where to find the target strip... " >&6; }
14612 if test "x${build}" != "x${host}" ; then
14613 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14614 # We already found the complete path
14615 ac_dir=`dirname $STRIP_FOR_TARGET`
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14617 $as_echo "pre-installed in $ac_dir" >&6; }
14618 else
14619 # Canadian cross, just use what we found
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14621 $as_echo "pre-installed" >&6; }
14623 else
14624 ok=yes
14625 case " ${configdirs} " in
14626 *" binutils "*) ;;
14627 *) ok=no ;;
14628 esac
14630 if test $ok = yes; then
14631 # An in-tree tool is available and we can use it
14632 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14634 $as_echo "just compiled" >&6; }
14635 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14636 # We already found the complete path
14637 ac_dir=`dirname $STRIP_FOR_TARGET`
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14639 $as_echo "pre-installed in $ac_dir" >&6; }
14640 elif test "x$target" = "x$host"; then
14641 # We can use an host tool
14642 STRIP_FOR_TARGET='$(STRIP)'
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14644 $as_echo "host tool" >&6; }
14645 else
14646 # We need a cross tool
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14648 $as_echo "pre-installed" >&6; }
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14653 $as_echo_n "checking where to find the target windres... " >&6; }
14654 if test "x${build}" != "x${host}" ; then
14655 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14656 # We already found the complete path
14657 ac_dir=`dirname $WINDRES_FOR_TARGET`
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14659 $as_echo "pre-installed in $ac_dir" >&6; }
14660 else
14661 # Canadian cross, just use what we found
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14663 $as_echo "pre-installed" >&6; }
14665 else
14666 ok=yes
14667 case " ${configdirs} " in
14668 *" binutils "*) ;;
14669 *) ok=no ;;
14670 esac
14672 if test $ok = yes; then
14673 # An in-tree tool is available and we can use it
14674 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14676 $as_echo "just compiled" >&6; }
14677 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14678 # We already found the complete path
14679 ac_dir=`dirname $WINDRES_FOR_TARGET`
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14681 $as_echo "pre-installed in $ac_dir" >&6; }
14682 elif test "x$target" = "x$host"; then
14683 # We can use an host tool
14684 WINDRES_FOR_TARGET='$(WINDRES)'
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14686 $as_echo "host tool" >&6; }
14687 else
14688 # We need a cross tool
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14690 $as_echo "pre-installed" >&6; }
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14695 $as_echo_n "checking where to find the target windmc... " >&6; }
14696 if test "x${build}" != "x${host}" ; then
14697 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14698 # We already found the complete path
14699 ac_dir=`dirname $WINDMC_FOR_TARGET`
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14701 $as_echo "pre-installed in $ac_dir" >&6; }
14702 else
14703 # Canadian cross, just use what we found
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14705 $as_echo "pre-installed" >&6; }
14707 else
14708 ok=yes
14709 case " ${configdirs} " in
14710 *" binutils "*) ;;
14711 *) ok=no ;;
14712 esac
14714 if test $ok = yes; then
14715 # An in-tree tool is available and we can use it
14716 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14718 $as_echo "just compiled" >&6; }
14719 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14720 # We already found the complete path
14721 ac_dir=`dirname $WINDMC_FOR_TARGET`
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14723 $as_echo "pre-installed in $ac_dir" >&6; }
14724 elif test "x$target" = "x$host"; then
14725 # We can use an host tool
14726 WINDMC_FOR_TARGET='$(WINDMC)'
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14728 $as_echo "host tool" >&6; }
14729 else
14730 # We need a cross tool
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14732 $as_echo "pre-installed" >&6; }
14740 # Certain tools may need extra flags.
14741 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14742 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14743 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14745 # When building target libraries, except in a Canadian cross, we use
14746 # the same toolchain as the compiler we just built.
14747 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14748 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14749 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14750 if test $host = $build; then
14751 case " $configdirs " in
14752 *" gcc "*)
14753 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14754 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14755 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14757 esac
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14765 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14766 # Check whether --enable-maintainer-mode was given.
14767 if test "${enable_maintainer_mode+set}" = set; then :
14768 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14769 else
14770 USE_MAINTAINER_MODE=no
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14774 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14777 if test "$USE_MAINTAINER_MODE" = yes; then
14778 MAINTAINER_MODE_TRUE=
14779 MAINTAINER_MODE_FALSE='#'
14780 else
14781 MAINTAINER_MODE_TRUE='#'
14782 MAINTAINER_MODE_FALSE=
14784 MAINT=$MAINTAINER_MODE_TRUE
14786 # ---------------------
14787 # GCC bootstrap support
14788 # ---------------------
14790 # Stage specific cflags for build.
14791 stage1_cflags="-g"
14792 case $build in
14793 vax-*-*)
14794 case ${GCC} in
14795 yes) stage1_cflags="-g -Wa,-J" ;;
14796 *) stage1_cflags="-g -J" ;;
14797 esac ;;
14798 esac
14802 # Enable --enable-checking in stage1 of the compiler.
14803 # Check whether --enable-stage1-checking was given.
14804 if test "${enable_stage1_checking+set}" = set; then :
14805 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14806 else
14807 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14808 # For --disable-checking or implicit --enable-checking=release, avoid
14809 # setting --enable-checking=gc in the default stage1 checking for LTO
14810 # bootstraps. See PR62077.
14811 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14812 case $BUILD_CONFIG in
14813 *lto*)
14814 if test "x$enable_checking" = x && \
14815 test -d ${srcdir}/gcc && \
14816 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14817 stage1_checking=--enable-checking=yes,types
14818 fi;;
14819 *) stage1_checking=--enable-checking=yes,types;;
14820 esac
14821 else
14822 stage1_checking=--enable-checking=$enable_checking,types
14828 # Enable -Werror in bootstrap stage2 and later.
14829 # Check whether --enable-werror was given.
14830 if test "${enable_werror+set}" = set; then :
14831 enableval=$enable_werror;
14832 else
14833 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14834 enable_werror=yes
14835 else
14836 enable_werror=no
14840 case ${enable_werror} in
14841 yes) stage2_werror_flag="--enable-werror-always" ;;
14842 *) stage2_werror_flag="" ;;
14843 esac
14846 # Enable --enable-host-shared.
14847 # Check whether --enable-host-shared was given.
14848 if test "${enable_host_shared+set}" = set; then :
14849 enableval=$enable_host_shared; host_shared=$enableval
14850 else
14851 host_shared=no
14856 # PR jit/64780: Require the user to explicitly specify
14857 # --enable-host-shared if the jit is enabled, hinting
14858 # that they might want to do a separate configure/build of
14859 # the jit, to avoid users from slowing down the rest of the
14860 # compiler by enabling the jit.
14861 if test ${host_shared} = "no" ; then
14862 case "${enable_languages}" in
14863 *jit*)
14864 as_fn_error "
14865 Enabling language \"jit\" requires --enable-host-shared.
14867 --enable-host-shared typically slows the rest of the compiler down by
14868 a few %, so you must explicitly enable it.
14870 If you want to build both the jit and the regular compiler, it is often
14871 best to do this via two separate configure/builds, in separate
14872 directories, to avoid imposing the performance cost of
14873 --enable-host-shared on the regular compiler." "$LINENO" 5
14877 esac
14880 # Specify what files to not compare during bootstrap.
14882 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14883 case "$target" in
14884 hppa*64*-*-hpux*) ;;
14885 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14886 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14887 esac
14890 ac_config_files="$ac_config_files Makefile"
14892 cat >confcache <<\_ACEOF
14893 # This file is a shell script that caches the results of configure
14894 # tests run on this system so they can be shared between configure
14895 # scripts and configure runs, see configure's option --config-cache.
14896 # It is not useful on other systems. If it contains results you don't
14897 # want to keep, you may remove or edit it.
14899 # config.status only pays attention to the cache file if you give it
14900 # the --recheck option to rerun configure.
14902 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14903 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14904 # following values.
14906 _ACEOF
14908 # The following way of writing the cache mishandles newlines in values,
14909 # but we know of no workaround that is simple, portable, and efficient.
14910 # So, we kill variables containing newlines.
14911 # Ultrix sh set writes to stderr and can't be redirected directly,
14912 # and sets the high bit in the cache file unless we assign to the vars.
14914 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14915 eval ac_val=\$$ac_var
14916 case $ac_val in #(
14917 *${as_nl}*)
14918 case $ac_var in #(
14919 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14920 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14921 esac
14922 case $ac_var in #(
14923 _ | IFS | as_nl) ;; #(
14924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14925 *) { eval $ac_var=; unset $ac_var;} ;;
14926 esac ;;
14927 esac
14928 done
14930 (set) 2>&1 |
14931 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14932 *${as_nl}ac_space=\ *)
14933 # `set' does not quote correctly, so add quotes: double-quote
14934 # substitution turns \\\\ into \\, and sed turns \\ into \.
14935 sed -n \
14936 "s/'/'\\\\''/g;
14937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14938 ;; #(
14940 # `set' quotes correctly as required by POSIX, so do not add quotes.
14941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14943 esac |
14944 sort
14946 sed '
14947 /^ac_cv_env_/b end
14948 t clear
14949 :clear
14950 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14951 t end
14952 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14953 :end' >>confcache
14954 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14955 if test -w "$cache_file"; then
14956 test "x$cache_file" != "x/dev/null" &&
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14958 $as_echo "$as_me: updating cache $cache_file" >&6;}
14959 cat confcache >$cache_file
14960 else
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14962 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14965 rm -f confcache
14967 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14968 # Let make expand exec_prefix.
14969 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14971 # Transform confdefs.h into DEFS.
14972 # Protect against shell expansion while executing Makefile rules.
14973 # Protect against Makefile macro expansion.
14975 # If the first sed substitution is executed (which looks for macros that
14976 # take arguments), then branch to the quote section. Otherwise,
14977 # look for a macro that doesn't take arguments.
14978 ac_script='
14979 :mline
14980 /\\$/{
14982 s,\\\n,,
14983 b mline
14985 t clear
14986 :clear
14987 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14988 t quote
14989 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14990 t quote
14991 b any
14992 :quote
14993 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14994 s/\[/\\&/g
14995 s/\]/\\&/g
14996 s/\$/$$/g
14998 :any
15001 s/^\n//
15002 s/\n/ /g
15006 DEFS=`sed -n "$ac_script" confdefs.h`
15009 ac_libobjs=
15010 ac_ltlibobjs=
15011 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15012 # 1. Remove the extension, and $U if already installed.
15013 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15014 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15015 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15016 # will be set to the directory where LIBOBJS objects are built.
15017 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15018 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15019 done
15020 LIBOBJS=$ac_libobjs
15022 LTLIBOBJS=$ac_ltlibobjs
15026 : ${CONFIG_STATUS=./config.status}
15027 ac_write_fail=0
15028 ac_clean_files_save=$ac_clean_files
15029 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15031 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15032 as_write_fail=0
15033 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15034 #! $SHELL
15035 # Generated by $as_me.
15036 # Run this file to recreate the current configuration.
15037 # Compiler output produced by configure, useful for debugging
15038 # configure, is in config.log if it exists.
15040 debug=false
15041 ac_cs_recheck=false
15042 ac_cs_silent=false
15044 SHELL=\${CONFIG_SHELL-$SHELL}
15045 export SHELL
15046 _ASEOF
15047 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15048 ## -------------------- ##
15049 ## M4sh Initialization. ##
15050 ## -------------------- ##
15052 # Be more Bourne compatible
15053 DUALCASE=1; export DUALCASE # for MKS sh
15054 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15055 emulate sh
15056 NULLCMD=:
15057 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15058 # is contrary to our usage. Disable this feature.
15059 alias -g '${1+"$@"}'='"$@"'
15060 setopt NO_GLOB_SUBST
15061 else
15062 case `(set -o) 2>/dev/null` in #(
15063 *posix*) :
15064 set -o posix ;; #(
15065 *) :
15067 esac
15071 as_nl='
15073 export as_nl
15074 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15075 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15077 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15078 # Prefer a ksh shell builtin over an external printf program on Solaris,
15079 # but without wasting forks for bash or zsh.
15080 if test -z "$BASH_VERSION$ZSH_VERSION" \
15081 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15082 as_echo='print -r --'
15083 as_echo_n='print -rn --'
15084 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15085 as_echo='printf %s\n'
15086 as_echo_n='printf %s'
15087 else
15088 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15089 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15090 as_echo_n='/usr/ucb/echo -n'
15091 else
15092 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15093 as_echo_n_body='eval
15094 arg=$1;
15095 case $arg in #(
15096 *"$as_nl"*)
15097 expr "X$arg" : "X\\(.*\\)$as_nl";
15098 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15099 esac;
15100 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15102 export as_echo_n_body
15103 as_echo_n='sh -c $as_echo_n_body as_echo'
15105 export as_echo_body
15106 as_echo='sh -c $as_echo_body as_echo'
15109 # The user is always right.
15110 if test "${PATH_SEPARATOR+set}" != set; then
15111 PATH_SEPARATOR=:
15112 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15113 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15114 PATH_SEPARATOR=';'
15119 # IFS
15120 # We need space, tab and new line, in precisely that order. Quoting is
15121 # there to prevent editors from complaining about space-tab.
15122 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15123 # splitting by setting IFS to empty value.)
15124 IFS=" "" $as_nl"
15126 # Find who we are. Look in the path if we contain no directory separator.
15127 case $0 in #((
15128 *[\\/]* ) as_myself=$0 ;;
15129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15130 for as_dir in $PATH
15132 IFS=$as_save_IFS
15133 test -z "$as_dir" && as_dir=.
15134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15135 done
15136 IFS=$as_save_IFS
15139 esac
15140 # We did not find ourselves, most probably we were run as `sh COMMAND'
15141 # in which case we are not to be found in the path.
15142 if test "x$as_myself" = x; then
15143 as_myself=$0
15145 if test ! -f "$as_myself"; then
15146 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15147 exit 1
15150 # Unset variables that we do not need and which cause bugs (e.g. in
15151 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15152 # suppresses any "Segmentation fault" message there. '((' could
15153 # trigger a bug in pdksh 5.2.14.
15154 for as_var in BASH_ENV ENV MAIL MAILPATH
15155 do eval test x\${$as_var+set} = xset \
15156 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15157 done
15158 PS1='$ '
15159 PS2='> '
15160 PS4='+ '
15162 # NLS nuisances.
15163 LC_ALL=C
15164 export LC_ALL
15165 LANGUAGE=C
15166 export LANGUAGE
15168 # CDPATH.
15169 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15172 # as_fn_error ERROR [LINENO LOG_FD]
15173 # ---------------------------------
15174 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15175 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15176 # script with status $?, using 1 if that was 0.
15177 as_fn_error ()
15179 as_status=$?; test $as_status -eq 0 && as_status=1
15180 if test "$3"; then
15181 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15182 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15184 $as_echo "$as_me: error: $1" >&2
15185 as_fn_exit $as_status
15186 } # as_fn_error
15189 # as_fn_set_status STATUS
15190 # -----------------------
15191 # Set $? to STATUS, without forking.
15192 as_fn_set_status ()
15194 return $1
15195 } # as_fn_set_status
15197 # as_fn_exit STATUS
15198 # -----------------
15199 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15200 as_fn_exit ()
15202 set +e
15203 as_fn_set_status $1
15204 exit $1
15205 } # as_fn_exit
15207 # as_fn_unset VAR
15208 # ---------------
15209 # Portably unset VAR.
15210 as_fn_unset ()
15212 { eval $1=; unset $1;}
15214 as_unset=as_fn_unset
15215 # as_fn_append VAR VALUE
15216 # ----------------------
15217 # Append the text in VALUE to the end of the definition contained in VAR. Take
15218 # advantage of any shell optimizations that allow amortized linear growth over
15219 # repeated appends, instead of the typical quadratic growth present in naive
15220 # implementations.
15221 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15222 eval 'as_fn_append ()
15224 eval $1+=\$2
15226 else
15227 as_fn_append ()
15229 eval $1=\$$1\$2
15231 fi # as_fn_append
15233 # as_fn_arith ARG...
15234 # ------------------
15235 # Perform arithmetic evaluation on the ARGs, and store the result in the
15236 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15237 # must be portable across $(()) and expr.
15238 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15239 eval 'as_fn_arith ()
15241 as_val=$(( $* ))
15243 else
15244 as_fn_arith ()
15246 as_val=`expr "$@" || test $? -eq 1`
15248 fi # as_fn_arith
15251 if expr a : '\(a\)' >/dev/null 2>&1 &&
15252 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15253 as_expr=expr
15254 else
15255 as_expr=false
15258 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15259 as_basename=basename
15260 else
15261 as_basename=false
15264 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15265 as_dirname=dirname
15266 else
15267 as_dirname=false
15270 as_me=`$as_basename -- "$0" ||
15271 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15272 X"$0" : 'X\(//\)$' \| \
15273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15274 $as_echo X/"$0" |
15275 sed '/^.*\/\([^/][^/]*\)\/*$/{
15276 s//\1/
15279 /^X\/\(\/\/\)$/{
15280 s//\1/
15283 /^X\/\(\/\).*/{
15284 s//\1/
15287 s/.*/./; q'`
15289 # Avoid depending upon Character Ranges.
15290 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15291 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15292 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15293 as_cr_digits='0123456789'
15294 as_cr_alnum=$as_cr_Letters$as_cr_digits
15296 ECHO_C= ECHO_N= ECHO_T=
15297 case `echo -n x` in #(((((
15298 -n*)
15299 case `echo 'xy\c'` in
15300 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15301 xy) ECHO_C='\c';;
15302 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15303 ECHO_T=' ';;
15304 esac;;
15306 ECHO_N='-n';;
15307 esac
15309 rm -f conf$$ conf$$.exe conf$$.file
15310 if test -d conf$$.dir; then
15311 rm -f conf$$.dir/conf$$.file
15312 else
15313 rm -f conf$$.dir
15314 mkdir conf$$.dir 2>/dev/null
15316 if (echo >conf$$.file) 2>/dev/null; then
15317 if ln -s conf$$.file conf$$ 2>/dev/null; then
15318 as_ln_s='ln -s'
15319 # ... but there are two gotchas:
15320 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15321 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15322 # In both cases, we have to default to `cp -p'.
15323 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15324 as_ln_s='cp -p'
15325 elif ln conf$$.file conf$$ 2>/dev/null; then
15326 as_ln_s=ln
15327 else
15328 as_ln_s='cp -p'
15330 else
15331 as_ln_s='cp -p'
15333 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15334 rmdir conf$$.dir 2>/dev/null
15337 # as_fn_mkdir_p
15338 # -------------
15339 # Create "$as_dir" as a directory, including parents if necessary.
15340 as_fn_mkdir_p ()
15343 case $as_dir in #(
15344 -*) as_dir=./$as_dir;;
15345 esac
15346 test -d "$as_dir" || eval $as_mkdir_p || {
15347 as_dirs=
15348 while :; do
15349 case $as_dir in #(
15350 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15351 *) as_qdir=$as_dir;;
15352 esac
15353 as_dirs="'$as_qdir' $as_dirs"
15354 as_dir=`$as_dirname -- "$as_dir" ||
15355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15356 X"$as_dir" : 'X\(//\)[^/]' \| \
15357 X"$as_dir" : 'X\(//\)$' \| \
15358 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15359 $as_echo X"$as_dir" |
15360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15361 s//\1/
15364 /^X\(\/\/\)[^/].*/{
15365 s//\1/
15368 /^X\(\/\/\)$/{
15369 s//\1/
15372 /^X\(\/\).*/{
15373 s//\1/
15376 s/.*/./; q'`
15377 test -d "$as_dir" && break
15378 done
15379 test -z "$as_dirs" || eval "mkdir $as_dirs"
15380 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15383 } # as_fn_mkdir_p
15384 if mkdir -p . 2>/dev/null; then
15385 as_mkdir_p='mkdir -p "$as_dir"'
15386 else
15387 test -d ./-p && rmdir ./-p
15388 as_mkdir_p=false
15391 if test -x / >/dev/null 2>&1; then
15392 as_test_x='test -x'
15393 else
15394 if ls -dL / >/dev/null 2>&1; then
15395 as_ls_L_option=L
15396 else
15397 as_ls_L_option=
15399 as_test_x='
15400 eval sh -c '\''
15401 if test -d "$1"; then
15402 test -d "$1/.";
15403 else
15404 case $1 in #(
15405 -*)set "./$1";;
15406 esac;
15407 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15408 ???[sx]*):;;*)false;;esac;fi
15409 '\'' sh
15412 as_executable_p=$as_test_x
15414 # Sed expression to map a string onto a valid CPP name.
15415 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15417 # Sed expression to map a string onto a valid variable name.
15418 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15421 exec 6>&1
15422 ## ----------------------------------- ##
15423 ## Main body of $CONFIG_STATUS script. ##
15424 ## ----------------------------------- ##
15425 _ASEOF
15426 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15429 # Save the log message, to keep $0 and so on meaningful, and to
15430 # report actual input values of CONFIG_FILES etc. instead of their
15431 # values after options handling.
15432 ac_log="
15433 This file was extended by $as_me, which was
15434 generated by GNU Autoconf 2.64. Invocation command line was
15436 CONFIG_FILES = $CONFIG_FILES
15437 CONFIG_HEADERS = $CONFIG_HEADERS
15438 CONFIG_LINKS = $CONFIG_LINKS
15439 CONFIG_COMMANDS = $CONFIG_COMMANDS
15440 $ $0 $@
15442 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15445 _ACEOF
15447 case $ac_config_files in *"
15448 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15449 esac
15453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15454 # Files that config.status was made for.
15455 config_files="$ac_config_files"
15457 _ACEOF
15459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15460 ac_cs_usage="\
15461 \`$as_me' instantiates files and other configuration actions
15462 from templates according to the current configuration. Unless the files
15463 and actions are specified as TAGs, all are instantiated by default.
15465 Usage: $0 [OPTION]... [TAG]...
15467 -h, --help print this help, then exit
15468 -V, --version print version number and configuration settings, then exit
15469 -q, --quiet, --silent
15470 do not print progress messages
15471 -d, --debug don't remove temporary files
15472 --recheck update $as_me by reconfiguring in the same conditions
15473 --file=FILE[:TEMPLATE]
15474 instantiate the configuration file FILE
15476 Configuration files:
15477 $config_files
15479 Report bugs to the package provider."
15481 _ACEOF
15482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15483 ac_cs_version="\\
15484 config.status
15485 configured by $0, generated by GNU Autoconf 2.64,
15486 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15488 Copyright (C) 2009 Free Software Foundation, Inc.
15489 This config.status script is free software; the Free Software Foundation
15490 gives unlimited permission to copy, distribute and modify it."
15492 ac_pwd='$ac_pwd'
15493 srcdir='$srcdir'
15494 INSTALL='$INSTALL'
15495 AWK='$AWK'
15496 test -n "\$AWK" || AWK=awk
15497 _ACEOF
15499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15500 # The default lists apply if the user does not specify any file.
15501 ac_need_defaults=:
15502 while test $# != 0
15504 case $1 in
15505 --*=*)
15506 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15507 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15508 ac_shift=:
15511 ac_option=$1
15512 ac_optarg=$2
15513 ac_shift=shift
15515 esac
15517 case $ac_option in
15518 # Handling of the options.
15519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15520 ac_cs_recheck=: ;;
15521 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15522 $as_echo "$ac_cs_version"; exit ;;
15523 --debug | --debu | --deb | --de | --d | -d )
15524 debug=: ;;
15525 --file | --fil | --fi | --f )
15526 $ac_shift
15527 case $ac_optarg in
15528 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15529 esac
15530 as_fn_append CONFIG_FILES " '$ac_optarg'"
15531 ac_need_defaults=false;;
15532 --he | --h | --help | --hel | -h )
15533 $as_echo "$ac_cs_usage"; exit ;;
15534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15535 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15536 ac_cs_silent=: ;;
15538 # This is an error.
15539 -*) as_fn_error "unrecognized option: \`$1'
15540 Try \`$0 --help' for more information." ;;
15542 *) as_fn_append ac_config_targets " $1"
15543 ac_need_defaults=false ;;
15545 esac
15546 shift
15547 done
15549 ac_configure_extra_args=
15551 if $ac_cs_silent; then
15552 exec 6>/dev/null
15553 ac_configure_extra_args="$ac_configure_extra_args --silent"
15556 _ACEOF
15557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15558 if \$ac_cs_recheck; then
15559 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15560 shift
15561 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15562 CONFIG_SHELL='$SHELL'
15563 export CONFIG_SHELL
15564 exec "\$@"
15567 _ACEOF
15568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15569 exec 5>>config.log
15571 echo
15572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15573 ## Running $as_me. ##
15574 _ASBOX
15575 $as_echo "$ac_log"
15576 } >&5
15578 _ACEOF
15579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15581 # INIT-COMMANDS
15583 extrasub_build="$extrasub_build"
15584 extrasub_host="$extrasub_host"
15585 extrasub_target="$extrasub_target"
15587 _ACEOF
15589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15591 # Handling of arguments.
15592 for ac_config_target in $ac_config_targets
15594 case $ac_config_target in
15595 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15597 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15598 esac
15599 done
15602 # If the user did not use the arguments to specify the items to instantiate,
15603 # then the envvar interface is used. Set only those that are not.
15604 # We use the long form for the default assignment because of an extremely
15605 # bizarre bug on SunOS 4.1.3.
15606 if $ac_need_defaults; then
15607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15610 # Have a temporary directory for convenience. Make it in the build tree
15611 # simply because there is no reason against having it here, and in addition,
15612 # creating and moving files from /tmp can sometimes cause problems.
15613 # Hook for its removal unless debugging.
15614 # Note that there is a small window in which the directory will not be cleaned:
15615 # after its creation but before its name has been assigned to `$tmp'.
15616 $debug ||
15618 tmp=
15619 trap 'exit_status=$?
15620 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15622 trap 'as_fn_exit 1' 1 2 13 15
15624 # Create a (secure) tmp directory for tmp files.
15627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15628 test -n "$tmp" && test -d "$tmp"
15629 } ||
15631 tmp=./conf$$-$RANDOM
15632 (umask 077 && mkdir "$tmp")
15633 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15635 # Set up the scripts for CONFIG_FILES section.
15636 # No need to generate them if there are no CONFIG_FILES.
15637 # This happens for instance with `./config.status config.h'.
15638 if test -n "$CONFIG_FILES"; then
15640 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15641 ac_cs_awk_getline=:
15642 ac_cs_awk_pipe_init=
15643 ac_cs_awk_read_file='
15644 while ((getline aline < (F[key])) > 0)
15645 print(aline)
15646 close(F[key])'
15647 ac_cs_awk_pipe_fini=
15648 else
15649 ac_cs_awk_getline=false
15650 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15651 ac_cs_awk_read_file='
15652 print "|#_!!_#|"
15653 print "cat " F[key] " &&"
15654 '$ac_cs_awk_pipe_init
15655 # The final `:' finishes the AND list.
15656 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15658 ac_cr=`echo X | tr X '\015'`
15659 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15660 # But we know of no other shell where ac_cr would be empty at this
15661 # point, so we can use a bashism as a fallback.
15662 if test "x$ac_cr" = x; then
15663 eval ac_cr=\$\'\\r\'
15665 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15666 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15667 ac_cs_awk_cr='\r'
15668 else
15669 ac_cs_awk_cr=$ac_cr
15672 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15673 _ACEOF
15675 # Create commands to substitute file output variables.
15677 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15678 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15679 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15680 echo "_ACAWK" &&
15681 echo "_ACEOF"
15682 } >conf$$files.sh &&
15683 . ./conf$$files.sh ||
15684 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15685 rm -f conf$$files.sh
15688 echo "cat >conf$$subs.awk <<_ACEOF" &&
15689 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15690 echo "_ACEOF"
15691 } >conf$$subs.sh ||
15692 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15693 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15694 ac_delim='%!_!# '
15695 for ac_last_try in false false false false false :; do
15696 . ./conf$$subs.sh ||
15697 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15699 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15700 if test $ac_delim_n = $ac_delim_num; then
15701 break
15702 elif $ac_last_try; then
15703 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15704 else
15705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15707 done
15708 rm -f conf$$subs.sh
15710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15711 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15712 _ACEOF
15713 sed -n '
15715 s/^/S["/; s/!.*/"]=/
15718 s/^[^!]*!//
15719 :repl
15720 t repl
15721 s/'"$ac_delim"'$//
15722 t delim
15725 s/\(.\{148\}\).*/\1/
15726 t more1
15727 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15730 b repl
15731 :more1
15732 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15735 s/.\{148\}//
15736 t nl
15737 :delim
15739 s/\(.\{148\}\).*/\1/
15740 t more2
15741 s/["\\]/\\&/g; s/^/"/; s/$/"/
15744 :more2
15745 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15748 s/.\{148\}//
15749 t delim
15750 ' <conf$$subs.awk | sed '
15751 /^[^""]/{
15753 s/\n//
15755 ' >>$CONFIG_STATUS || ac_write_fail=1
15756 rm -f conf$$subs.awk
15757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758 _ACAWK
15759 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15760 for (key in S) S_is_set[key] = 1
15761 FS = "\a"
15762 \$ac_cs_awk_pipe_init
15765 line = $ 0
15766 nfields = split(line, field, "@")
15767 substed = 0
15768 len = length(field[1])
15769 for (i = 2; i < nfields; i++) {
15770 key = field[i]
15771 keylen = length(key)
15772 if (S_is_set[key]) {
15773 value = S[key]
15774 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15775 len += length(value) + length(field[++i])
15776 substed = 1
15777 } else
15778 len += 1 + keylen
15780 if (nfields == 3 && !substed) {
15781 key = field[2]
15782 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15783 \$ac_cs_awk_read_file
15784 next
15787 print line
15789 \$ac_cs_awk_pipe_fini
15790 _ACAWK
15791 _ACEOF
15792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15793 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15794 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15795 else
15797 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15798 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15799 _ACEOF
15801 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15802 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15803 # trailing colons and then remove the whole line if VPATH becomes empty
15804 # (actually we leave an empty line to preserve line numbers).
15805 if test "x$srcdir" = x.; then
15806 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15807 s/:*\$(srcdir):*/:/
15808 s/:*\${srcdir}:*/:/
15809 s/:*@srcdir@:*/:/
15810 s/^\([^=]*=[ ]*\):*/\1/
15811 s/:*$//
15812 s/^[^=]*=[ ]*$//
15816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15817 fi # test -n "$CONFIG_FILES"
15820 eval set X " :F $CONFIG_FILES "
15821 shift
15822 for ac_tag
15824 case $ac_tag in
15825 :[FHLC]) ac_mode=$ac_tag; continue;;
15826 esac
15827 case $ac_mode$ac_tag in
15828 :[FHL]*:*);;
15829 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15830 :[FH]-) ac_tag=-:-;;
15831 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15832 esac
15833 ac_save_IFS=$IFS
15834 IFS=:
15835 set x $ac_tag
15836 IFS=$ac_save_IFS
15837 shift
15838 ac_file=$1
15839 shift
15841 case $ac_mode in
15842 :L) ac_source=$1;;
15843 :[FH])
15844 ac_file_inputs=
15845 for ac_f
15847 case $ac_f in
15848 -) ac_f="$tmp/stdin";;
15849 *) # Look for the file first in the build tree, then in the source tree
15850 # (if the path is not absolute). The absolute path cannot be DOS-style,
15851 # because $ac_f cannot contain `:'.
15852 test -f "$ac_f" ||
15853 case $ac_f in
15854 [\\/$]*) false;;
15855 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15856 esac ||
15857 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15858 esac
15859 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15860 as_fn_append ac_file_inputs " '$ac_f'"
15861 done
15863 # Let's still pretend it is `configure' which instantiates (i.e., don't
15864 # use $as_me), people would be surprised to read:
15865 # /* config.h. Generated by config.status. */
15866 configure_input='Generated from '`
15867 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15868 `' by configure.'
15869 if test x"$ac_file" != x-; then
15870 configure_input="$ac_file. $configure_input"
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15872 $as_echo "$as_me: creating $ac_file" >&6;}
15874 # Neutralize special characters interpreted by sed in replacement strings.
15875 case $configure_input in #(
15876 *\&* | *\|* | *\\* )
15877 ac_sed_conf_input=`$as_echo "$configure_input" |
15878 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15879 *) ac_sed_conf_input=$configure_input;;
15880 esac
15882 case $ac_tag in
15883 *:-:* | *:-) cat >"$tmp/stdin" \
15884 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15885 esac
15887 esac
15889 ac_dir=`$as_dirname -- "$ac_file" ||
15890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15891 X"$ac_file" : 'X\(//\)[^/]' \| \
15892 X"$ac_file" : 'X\(//\)$' \| \
15893 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15894 $as_echo X"$ac_file" |
15895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15896 s//\1/
15899 /^X\(\/\/\)[^/].*/{
15900 s//\1/
15903 /^X\(\/\/\)$/{
15904 s//\1/
15907 /^X\(\/\).*/{
15908 s//\1/
15911 s/.*/./; q'`
15912 as_dir="$ac_dir"; as_fn_mkdir_p
15913 ac_builddir=.
15915 case "$ac_dir" in
15916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15918 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15919 # A ".." for each directory in $ac_dir_suffix.
15920 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15921 case $ac_top_builddir_sub in
15922 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15923 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15924 esac ;;
15925 esac
15926 ac_abs_top_builddir=$ac_pwd
15927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15928 # for backward compatibility:
15929 ac_top_builddir=$ac_top_build_prefix
15931 case $srcdir in
15932 .) # We are building in place.
15933 ac_srcdir=.
15934 ac_top_srcdir=$ac_top_builddir_sub
15935 ac_abs_top_srcdir=$ac_pwd ;;
15936 [\\/]* | ?:[\\/]* ) # Absolute name.
15937 ac_srcdir=$srcdir$ac_dir_suffix;
15938 ac_top_srcdir=$srcdir
15939 ac_abs_top_srcdir=$srcdir ;;
15940 *) # Relative name.
15941 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15942 ac_top_srcdir=$ac_top_build_prefix$srcdir
15943 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15944 esac
15945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15948 case $ac_mode in
15951 # CONFIG_FILE
15954 case $INSTALL in
15955 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15956 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15957 esac
15958 _ACEOF
15960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15961 # If the template does not know about datarootdir, expand it.
15962 # FIXME: This hack should be removed a few years after 2.60.
15963 ac_datarootdir_hack=; ac_datarootdir_seen=
15964 ac_sed_dataroot='
15965 /datarootdir/ {
15969 /@datadir@/p
15970 /@docdir@/p
15971 /@infodir@/p
15972 /@localedir@/p
15973 /@mandir@/p'
15974 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15975 *datarootdir*) ac_datarootdir_seen=yes;;
15976 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15978 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15979 _ACEOF
15980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15981 ac_datarootdir_hack='
15982 s&@datadir@&$datadir&g
15983 s&@docdir@&$docdir&g
15984 s&@infodir@&$infodir&g
15985 s&@localedir@&$localedir&g
15986 s&@mandir@&$mandir&g
15987 s&\\\${datarootdir}&$datarootdir&g' ;;
15988 esac
15989 _ACEOF
15991 # Neutralize VPATH when `$srcdir' = `.'.
15992 # Shell code in configure.ac might set extrasub.
15993 # FIXME: do we really want to maintain this feature?
15994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15995 ac_sed_extra="$ac_vpsub
15996 $extrasub
15997 _ACEOF
15998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16001 s|@configure_input@|$ac_sed_conf_input|;t t
16002 s&@top_builddir@&$ac_top_builddir_sub&;t t
16003 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16004 s&@srcdir@&$ac_srcdir&;t t
16005 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16006 s&@top_srcdir@&$ac_top_srcdir&;t t
16007 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16008 s&@builddir@&$ac_builddir&;t t
16009 s&@abs_builddir@&$ac_abs_builddir&;t t
16010 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16011 s&@INSTALL@&$ac_INSTALL&;t t
16012 $ac_datarootdir_hack
16014 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16015 if $ac_cs_awk_getline; then
16016 $AWK -f "$tmp/subs.awk"
16017 else
16018 $AWK -f "$tmp/subs.awk" | $SHELL
16019 fi >$tmp/out \
16020 || as_fn_error "could not create $ac_file" "$LINENO" 5
16022 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16023 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16024 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16026 which seems to be undefined. Please make sure it is defined." >&5
16027 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16028 which seems to be undefined. Please make sure it is defined." >&2;}
16030 rm -f "$tmp/stdin"
16031 case $ac_file in
16032 -) cat "$tmp/out" && rm -f "$tmp/out";;
16033 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16034 esac \
16035 || as_fn_error "could not create $ac_file" "$LINENO" 5
16040 esac
16043 case $ac_file$ac_mode in
16044 "Makefile":F) sed "$extrasub_build" Makefile |
16045 sed "$extrasub_host" |
16046 sed "$extrasub_target" > mf$$
16047 mv -f mf$$ Makefile ;;
16049 esac
16050 done # for ac_tag
16053 as_fn_exit 0
16054 _ACEOF
16055 ac_clean_files=$ac_clean_files_save
16057 test $ac_write_fail = 0 ||
16058 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16061 # configure is writing to config.log, and then calls config.status.
16062 # config.status does its own redirection, appending to config.log.
16063 # Unfortunately, on DOS this fails, as config.log is still kept open
16064 # by configure, so config.status won't be able to write to it; its
16065 # output is simply discarded. So we exec the FD to /dev/null,
16066 # effectively closing config.log, so it can be properly (re)opened and
16067 # appended to by config.status. When coming back to configure, we
16068 # need to make the FD available again.
16069 if test "$no_create" != yes; then
16070 ac_cs_success=:
16071 ac_config_status_args=
16072 test "$silent" = yes &&
16073 ac_config_status_args="$ac_config_status_args --quiet"
16074 exec 5>/dev/null
16075 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16076 exec 5>>config.log
16077 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16078 # would make configure fail if this is the last instruction.
16079 $ac_cs_success || as_fn_exit $?
16081 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16083 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}