middle-end/115426 - wrong gimplification of "rm" asm output operand
[official-gcc.git] / configure
blob51bf1d1add1854bc8708fa4467b3190755584ca7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GM2_FOR_TARGET
617 GDC_FOR_TARGET
618 GOC_FOR_TARGET
619 GFORTRAN_FOR_TARGET
620 GCC_FOR_TARGET
621 CXX_FOR_TARGET
622 CC_FOR_TARGET
623 RANLIB_PLUGIN_OPTION
624 AR_PLUGIN_OPTION
625 PKG_CONFIG_PATH
626 GDCFLAGS
627 READELF
628 OTOOL
629 OBJDUMP
630 OBJCOPY
631 WINDMC
632 WINDRES
633 STRIP
634 RANLIB
636 LIPO
638 DSYMUTIL
639 DLLTOOL
642 RUNTEST
643 EXPECT
644 MAKEINFO
645 FLEX
648 BISON
649 YACC
650 WINDRES_FOR_BUILD
651 WINDMC_FOR_BUILD
652 RANLIB_FOR_BUILD
653 NM_FOR_BUILD
654 LD_FOR_BUILD
655 LDFLAGS_FOR_BUILD
656 GDC_FOR_BUILD
657 GOC_FOR_BUILD
658 GFORTRAN_FOR_BUILD
659 DSYMUTIL_FOR_BUILD
660 DLLTOOL_FOR_BUILD
661 CXX_FOR_BUILD
662 CXXFLAGS_FOR_BUILD
663 CPPFLAGS_FOR_BUILD
664 CPP_FOR_BUILD
665 CFLAGS_FOR_BUILD
666 CC_FOR_BUILD
667 AS_FOR_BUILD
668 AR_FOR_BUILD
669 target_configdirs
670 configdirs
671 build_configdirs
672 INSTALL_GDB_TK
673 GDB_TK
674 CONFIGURE_GDB_TK
675 build_tooldir
676 tooldir
677 GCC_SHLIB_SUBDIR
678 RPATH_ENVVAR
679 target_configargs
680 host_configargs
681 build_configargs
682 BUILD_CONFIG
683 LDFLAGS_FOR_TARGET
684 CXXFLAGS_FOR_TARGET
685 CFLAGS_FOR_TARGET
686 DEBUG_PREFIX_CFLAGS_FOR_TARGET
687 SYSROOT_CFLAGS_FOR_TARGET
688 get_gcc_base_ver
689 extra_host_zlib_configure_flags
690 extra_host_libiberty_configure_flags
691 stage1_languages
692 host_libs_picflag
693 CRAB1_LIBS
694 PICFLAG
695 host_shared
696 gcc_host_pie
697 host_pie
698 extra_linker_plugin_flags
699 extra_linker_plugin_configure_flags
700 islinc
701 isllibs
702 poststage1_ldflags
703 poststage1_libs
704 stage1_ldflags
705 stage1_libs
706 extra_isl_gmp_configure_flags
707 extra_mpc_mpfr_configure_flags
708 extra_mpc_gmp_configure_flags
709 extra_mpfr_configure_flags
710 gmpinc
711 gmplibs
712 PGO_BUILD_LTO_CFLAGS
713 PGO_BUILD_USE_CFLAGS
714 PGO_BUILD_GEN_CFLAGS
715 HAVE_CXX11_FOR_BUILD
716 HAVE_CXX11
717 do_compare
718 CARGO
720 GNATMAKE
721 GNATBIND
722 ac_ct_CXX
723 CXXFLAGS
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
732 target_subdir
733 host_subdir
734 build_subdir
735 build_libsubdir
738 LN_S
740 INSTALL_DATA
741 INSTALL_SCRIPT
742 INSTALL_PROGRAM
743 target_os
744 target_vendor
745 target_cpu
746 target
747 host_os
748 host_vendor
749 host_cpu
750 host
751 target_noncanonical
752 host_noncanonical
753 build_noncanonical
754 build_os
755 build_vendor
756 build_cpu
757 build
758 TOPLEVEL_CONFIGURE_ARGUMENTS
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files='serialization_dependencies
798 host_makefile_frag
799 target_makefile_frag
800 alphaieee_frag
801 ospace_frag'
802 ac_user_opts='
803 enable_option_checking
804 with_build_libsubdir
805 with_system_zlib
806 with_zstd
807 enable_as_accelerator_for
808 enable_offload_targets
809 enable_offload_defaulted
810 enable_gold
811 enable_ld
812 enable_gprofng
813 enable_compressed_debug_sections
814 enable_default_compressed_debug_sections_algorithm
815 enable_year2038
816 enable_libquadmath
817 enable_libquadmath_support
818 enable_libada
819 enable_libgm2
820 enable_libssp
821 enable_libstdcxx
822 enable_bootstrap
823 enable_pgo_build
824 with_mpc
825 with_mpc_include
826 with_mpc_lib
827 with_mpfr
828 with_mpfr_include
829 with_mpfr_lib
830 with_gmp
831 with_gmp_include
832 with_gmp_lib
833 with_stage1_libs
834 with_static_standard_libraries
835 with_stage1_ldflags
836 with_boot_libs
837 with_boot_ldflags
838 with_isl
839 with_isl_include
840 with_isl_lib
841 enable_isl_version_check
842 enable_lto
843 enable_linker_plugin_configure_flags
844 enable_linker_plugin_flags
845 enable_host_pie
846 enable_host_shared
847 enable_stage1_languages
848 enable_objc_gc
849 with_target_bdw_gc
850 with_target_bdw_gc_include
851 with_target_bdw_gc_lib
852 with_gcc_major_version_only
853 with_build_sysroot
854 with_debug_prefix_map
855 with_build_config
856 enable_vtable_verify
857 enable_serial_configure
858 with_build_time_tools
859 enable_maintainer_mode
860 enable_stage1_checking
861 enable_werror
863 ac_precious_vars='build_alias
864 host_alias
865 target_alias
867 CFLAGS
868 LDFLAGS
869 LIBS
870 CPPFLAGS
872 CXXFLAGS
874 build_configargs
875 host_configargs
876 target_configargs
879 DLLTOOL
880 DSYMUTIL
882 LIPO
884 RANLIB
885 STRIP
886 WINDRES
887 WINDMC
888 OBJCOPY
889 OBJDUMP
890 OTOOL
891 READELF
892 CC_FOR_TARGET
893 CXX_FOR_TARGET
894 GCC_FOR_TARGET
895 GFORTRAN_FOR_TARGET
896 GOC_FOR_TARGET
897 GDC_FOR_TARGET
898 GM2_FOR_TARGET
899 AR_FOR_TARGET
900 AS_FOR_TARGET
901 DLLTOOL_FOR_TARGET
902 DSYMUTIL_FOR_TARGET
903 LD_FOR_TARGET
904 LIPO_FOR_TARGET
905 NM_FOR_TARGET
906 OBJCOPY_FOR_TARGET
907 OBJDUMP_FOR_TARGET
908 OTOOL_FOR_TARGET
909 RANLIB_FOR_TARGET
910 READELF_FOR_TARGET
911 STRIP_FOR_TARGET
912 WINDRES_FOR_TARGET
913 WINDMC_FOR_TARGET'
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 ac_unrecognized_opts=
920 ac_unrecognized_sep=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
964 ac_prev=
965 ac_dashdash=
966 for ac_option
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
975 case $ac_option in
976 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *=) ac_optarg= ;;
978 *) ac_optarg=yes ;;
979 esac
981 # Accept the important Cygnus configure options, so we can diagnose typos.
983 case $ac_dashdash$ac_option in
985 ac_dashdash=yes ;;
987 -bindir | --bindir | --bindi | --bind | --bin | --bi)
988 ac_prev=bindir ;;
989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990 bindir=$ac_optarg ;;
992 -build | --build | --buil | --bui | --bu)
993 ac_prev=build_alias ;;
994 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995 build_alias=$ac_optarg ;;
997 -cache-file | --cache-file | --cache-fil | --cache-fi \
998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999 ac_prev=cache_file ;;
1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002 cache_file=$ac_optarg ;;
1004 --config-cache | -C)
1005 cache_file=config.cache ;;
1007 -datadir | --datadir | --datadi | --datad)
1008 ac_prev=datadir ;;
1009 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010 datadir=$ac_optarg ;;
1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013 | --dataroo | --dataro | --datar)
1014 ac_prev=datarootdir ;;
1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017 datarootdir=$ac_optarg ;;
1019 -disable-* | --disable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=no ;;
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1045 -enable-* | --enable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=\$ac_optarg ;;
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1139 no_create=yes ;;
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1249 -with-* | --with-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error $? "invalid package name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1258 "with_$ac_useropt"
1259 "*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
1265 -without-* | --without-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error $? "invalid package name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1274 "with_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=no ;;
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1299 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1300 Try \`$0 --help' for more information"
1303 *=*)
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
1306 case $ac_envvar in #(
1307 '' | [0-9]* | *[!_$as_cr_alnum]* )
1308 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1309 esac
1310 eval $ac_envvar=\$ac_optarg
1311 export $ac_envvar ;;
1314 # FIXME: should be removed in autoconf 3.0.
1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1321 esac
1322 done
1324 if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326 as_fn_error $? "missing argument to $ac_option"
1329 if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1331 no) ;;
1332 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 esac
1337 # Check all directory arguments for consistency.
1338 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1343 eval ac_val=\$$ac_var
1344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
1355 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1356 done
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1361 build=$build_alias
1362 host=$host_alias
1363 target=$target_alias
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 elif test "x$build_alias" != "x$host_alias"; then
1370 cross_compiling=yes
1374 ac_tool_prefix=
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377 test "$silent" = yes && exec 6>/dev/null
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383 as_fn_error $? "working directory cannot be determined"
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385 as_fn_error $? "pwd does not report name of working directory"
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$as_myself" ||
1393 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$as_myself" : 'X\(//\)[^/]' \| \
1395 X"$as_myself" : 'X\(//\)$' \| \
1396 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397 $as_echo X"$as_myself" |
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1406 /^X\(\/\/\)$/{
1407 s//\1/
1410 /^X\(\/\).*/{
1411 s//\1/
1414 s/.*/./; q'`
1415 srcdir=$ac_confdir
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 srcdir=..
1419 else
1420 ac_srcdir_defaulted=no
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 ac_abs_confdir=`(
1428 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1429 pwd)`
1430 # When building in place, set srcdir=.
1431 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 srcdir=.
1434 # Remove unnecessary trailing slashes from srcdir.
1435 # Double slashes in file names in object file debugging info
1436 # mess up M-x gdb in Emacs.
1437 case $srcdir in
1438 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 esac
1440 case $srcdir in
1441 *" "*)
1442 as_fn_error $? "path to source, $srcdir, contains spaces"
1444 esac
1445 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 done
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
1461 \`configure' configures this package to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1470 Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking ...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 [PREFIX]
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1514 _ACEOF
1516 cat <<\_ACEOF
1518 Program names:
1519 --program-prefix=PREFIX prepend PREFIX to installed program names
1520 --program-suffix=SUFFIX append SUFFIX to installed program names
1521 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1523 System types:
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 --target=TARGET configure for building compilers for TARGET [HOST]
1527 _ACEOF
1530 if test -n "$ac_init_help"; then
1532 cat <<\_ACEOF
1534 Optional Features:
1535 --disable-option-checking ignore unrecognized --enable/--with options
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-as-accelerator-for=ARG
1539 build as offload target compiler. Specify offload
1540 host triple by ARG
1541 --enable-offload-targets=LIST
1542 enable offloading to devices from comma-separated
1543 LIST of TARGET[=DIR]. Use optional path to find
1544 offload target compiler during the build
1545 --enable-offload-defaulted
1546 If enabled, configured but not installed offload compilers and
1547 libgomp plugins are silently ignored. Useful for distribution
1548 compilers where those are in separate optional packages.
1550 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1551 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1552 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1553 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1554 Enable compressed debug sections for gas, gold or ld
1555 by default
1556 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1557 Default compression algorithm for
1558 --enable-compressed-debug-sections.
1559 --enable-year2038 enable support for timestamps past the year 2038
1560 --disable-libquadmath do not build libquadmath directory
1561 --disable-libquadmath-support
1562 disable libquadmath support for Fortran
1563 --enable-libada build libada directory
1564 --enable-libgm2 build libgm2 directory
1565 --enable-libssp build libssp directory
1566 --disable-libstdcxx do not build libstdc++-v3 directory
1567 --enable-bootstrap enable bootstrapping [yes if native build]
1568 --enable-pgo-build[=lto]
1569 enable the PGO build
1570 --disable-isl-version-check
1571 disable check for isl version
1572 --enable-lto enable link time optimization support
1573 --enable-linker-plugin-configure-flags=FLAGS
1574 additional flags for configuring linker plugins
1575 [none]
1576 --enable-linker-plugin-flags=FLAGS
1577 additional flags for configuring and building linker
1578 plugins [none]
1579 --enable-host-pie build position independent host executables
1580 --enable-host-shared build host code as shared libraries
1581 --enable-stage1-languages[=all]
1582 choose additional languages to build during stage1.
1583 Mostly useful for compiler development
1584 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1585 Objective-C runtime
1586 --enable-vtable-verify Enable vtable verification feature
1587 --enable-serial-[{host,target,build}-]configure
1588 force sequential configuration of sub-packages for
1589 the host, target or build machine, or all
1590 sub-packages
1591 --enable-maintainer-mode
1592 enable make rules and dependencies not useful (and
1593 sometimes confusing) to the casual installer
1594 --enable-stage1-checking[=all]
1595 choose additional checking for stage1 of the
1596 compiler
1597 --enable-werror enable -Werror in bootstrap stage2 and later
1599 Optional Packages:
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --with-build-libsubdir=DIR Directory where to find libraries for build system
1603 --with-system-zlib use installed libz
1604 --with-zstd Support zstd compressed debug sections
1605 (default=auto)
1606 --with-mpc=PATH specify prefix directory for installed MPC package.
1607 Equivalent to --with-mpc-include=PATH/include plus
1608 --with-mpc-lib=PATH/lib
1609 --with-mpc-include=PATH specify directory for installed MPC include files
1610 --with-mpc-lib=PATH specify directory for the installed MPC library
1611 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1612 Equivalent to --with-mpfr-include=PATH/include plus
1613 --with-mpfr-lib=PATH/lib
1614 --with-mpfr-include=PATH
1615 specify directory for installed MPFR include files
1616 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1617 --with-gmp=PATH specify prefix directory for the installed GMP
1618 package. Equivalent to
1619 --with-gmp-include=PATH/include plus
1620 --with-gmp-lib=PATH/lib
1621 --with-gmp-include=PATH specify directory for installed GMP include files
1622 --with-gmp-lib=PATH specify directory for the installed GMP library
1623 --with-stage1-libs=LIBS libraries for stage1
1624 --with-static-standard-libraries
1625 use -static-libstdc++ and -static-libgcc
1626 (default=auto)
1627 --with-stage1-ldflags=FLAGS
1628 linker flags for stage1
1629 --with-boot-libs=LIBS libraries for stage2 and later
1630 --with-boot-ldflags=FLAGS
1631 linker flags for stage2 and later
1632 --with-isl=PATH Specify prefix directory for the installed isl
1633 package. Equivalent to
1634 --with-isl-include=PATH/include plus
1635 --with-isl-lib=PATH/lib
1636 --with-isl-include=PATH Specify directory for installed isl include files
1637 --with-isl-lib=PATH Specify the directory for the installed isl library
1638 --with-target-bdw-gc=PATHLIST
1639 specify prefix directory for installed bdw-gc
1640 package. Equivalent to
1641 --with-target-bdw-gc-include=PATH/include plus
1642 --with-target-bdw-gc-lib=PATH/lib
1643 --with-target-bdw-gc-include=PATHLIST
1644 specify directories for installed bdw-gc include
1645 files
1646 --with-target-bdw-gc-lib=PATHLIST
1647 specify directories for installed bdw-gc library
1648 --with-gcc-major-version-only
1649 use only GCC major number in filesystem paths
1650 --with-build-sysroot=SYSROOT
1651 use sysroot as the system root during the build
1652 --with-debug-prefix-map='A=B C=D ...'
1653 map A to B, C to D ... in debug information
1654 --with-build-config='NAME NAME2...'
1655 use config/NAME.mk build configuration
1656 --with-build-time-tools=PATH
1657 use given path to find target tools during the build
1659 Some influential environment variables:
1660 CC C compiler command
1661 CFLAGS C compiler flags
1662 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1663 nonstandard directory <lib dir>
1664 LIBS libraries to pass to the linker, e.g. -l<library>
1665 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1666 you have headers in a nonstandard directory <include dir>
1667 CXX C++ compiler command
1668 CXXFLAGS C++ compiler flags
1669 build_configargs
1670 additional configure arguments for build directories
1671 host_configargs
1672 additional configure arguments for host directories
1673 target_configargs
1674 additional configure arguments for target directories
1675 AR AR for the host
1676 AS AS for the host
1677 DLLTOOL DLLTOOL for the host
1678 DSYMUTIL DSYMUTIL for the host
1679 LD LD for the host
1680 LIPO LIPO for the host
1681 NM NM for the host
1682 RANLIB RANLIB for the host
1683 STRIP STRIP for the host
1684 WINDRES WINDRES for the host
1685 WINDMC WINDMC for the host
1686 OBJCOPY OBJCOPY for the host
1687 OBJDUMP OBJDUMP for the host
1688 OTOOL OTOOL for the host
1689 READELF READELF for the host
1690 CC_FOR_TARGET
1691 CC for the target
1692 CXX_FOR_TARGET
1693 CXX for the target
1694 GCC_FOR_TARGET
1695 GCC for the target
1696 GFORTRAN_FOR_TARGET
1697 GFORTRAN for the target
1698 GOC_FOR_TARGET
1699 GOC for the target
1700 GDC_FOR_TARGET
1701 GDC for the target
1702 GM2_FOR_TARGET
1703 GM2 for the target
1704 AR_FOR_TARGET
1705 AR for the target
1706 AS_FOR_TARGET
1707 AS for the target
1708 DLLTOOL_FOR_TARGET
1709 DLLTOOL for the target
1710 DSYMUTIL_FOR_TARGET
1711 DSYMUTIL for the target
1712 LD_FOR_TARGET
1713 LD for the target
1714 LIPO_FOR_TARGET
1715 LIPO for the target
1716 NM_FOR_TARGET
1717 NM for the target
1718 OBJCOPY_FOR_TARGET
1719 OBJCOPY for the target
1720 OBJDUMP_FOR_TARGET
1721 OBJDUMP for the target
1722 OTOOL_FOR_TARGET
1723 OTOOL for the target
1724 RANLIB_FOR_TARGET
1725 RANLIB for the target
1726 READELF_FOR_TARGET
1727 READELF for the target
1728 STRIP_FOR_TARGET
1729 STRIP for the target
1730 WINDRES_FOR_TARGET
1731 WINDRES for the target
1732 WINDMC_FOR_TARGET
1733 WINDMC for the target
1735 Use these variables to override the choices made by `configure' or to help
1736 it to find libraries and programs with nonstandard names/locations.
1738 Report bugs to the package provider.
1739 _ACEOF
1740 ac_status=$?
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1748 continue
1749 ac_builddir=.
1751 case "$ac_dir" in
1752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1760 esac ;;
1761 esac
1762 ac_abs_top_builddir=$ac_pwd
1763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir=$ac_top_build_prefix
1767 case $srcdir in
1768 .) # We are building in place.
1769 ac_srcdir=.
1770 ac_top_srcdir=$ac_top_builddir_sub
1771 ac_abs_top_srcdir=$ac_pwd ;;
1772 [\\/]* | ?:[\\/]* ) # Absolute name.
1773 ac_srcdir=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir=$srcdir
1775 ac_abs_top_srcdir=$srcdir ;;
1776 *) # Relative name.
1777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1780 esac
1781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1783 cd "$ac_dir" || { ac_status=$?; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1789 echo &&
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1791 else
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1793 fi || ac_status=$?
1794 cd "$ac_pwd" || { ac_status=$?; break; }
1795 done
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1800 cat <<\_ACEOF
1801 configure
1802 generated by GNU Autoconf 2.69
1804 Copyright (C) 2012 Free Software Foundation, Inc.
1805 This configure script is free software; the Free Software Foundation
1806 gives unlimited permission to copy, distribute and modify it.
1807 _ACEOF
1808 exit
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1815 # ac_fn_c_try_compile LINENO
1816 # --------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=1
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1851 } # ac_fn_c_try_compile
1853 # ac_fn_cxx_try_compile LINENO
1854 # ----------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_cxx_try_compile
1891 # ac_fn_cxx_try_link LINENO
1892 # -------------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_cxx_try_link ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_cxx_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1919 }; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1925 ac_retval=1
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1935 } # ac_fn_cxx_try_link
1937 # ac_fn_c_try_link LINENO
1938 # -----------------------
1939 # Try to link conftest.$ac_ext, and return whether this succeeded.
1940 ac_fn_c_try_link ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 rm -f conftest.$ac_objext conftest$ac_exeext
1944 if { { ac_try="$ac_link"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_link") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && {
1960 test -z "$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1962 } && test -s conftest$ac_exeext && {
1963 test "$cross_compiling" = yes ||
1964 test -x conftest$ac_exeext
1965 }; then :
1966 ac_retval=0
1967 else
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1971 ac_retval=1
1973 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1974 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1975 # interfere with the next link command; also delete a directory that is
1976 # left behind by Apple's compiler. We do this before executing the actions.
1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status $ac_retval
1981 } # ac_fn_c_try_link
1982 cat >config.log <<_ACEOF
1983 This file contains any messages produced by compilers while
1984 running configure, to aid debugging if configure makes a mistake.
1986 It was created by $as_me, which was
1987 generated by GNU Autoconf 2.69. Invocation command line was
1989 $ $0 $@
1991 _ACEOF
1992 exec 5>>config.log
1994 cat <<_ASUNAME
1995 ## --------- ##
1996 ## Platform. ##
1997 ## --------- ##
1999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2011 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2016 _ASUNAME
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 $as_echo "PATH: $as_dir"
2024 done
2025 IFS=$as_save_IFS
2027 } >&5
2029 cat >&5 <<_ACEOF
2032 ## ----------- ##
2033 ## Core tests. ##
2034 ## ----------- ##
2036 _ACEOF
2039 # Keep a trace of the command line.
2040 # Strip out --no-create and --no-recursion so they do not pile up.
2041 # Strip out --silent because we don't want to record it for future runs.
2042 # Also quote any args containing shell meta-characters.
2043 # Make two passes to allow for proper duplicate-argument suppression.
2044 ac_configure_args=
2045 ac_configure_args0=
2046 ac_configure_args1=
2047 ac_must_keep_next=false
2048 for ac_pass in 1 2
2050 for ac_arg
2052 case $ac_arg in
2053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2055 | -silent | --silent | --silen | --sile | --sil)
2056 continue ;;
2057 *\'*)
2058 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2059 esac
2060 case $ac_pass in
2061 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2063 as_fn_append ac_configure_args1 " '$ac_arg'"
2064 if test $ac_must_keep_next = true; then
2065 ac_must_keep_next=false # Got value, back to normal.
2066 else
2067 case $ac_arg in
2068 *=* | --config-cache | -C | -disable-* | --disable-* \
2069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2071 | -with-* | --with-* | -without-* | --without-* | --x)
2072 case "$ac_configure_args0 " in
2073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2074 esac
2076 -* ) ac_must_keep_next=true ;;
2077 esac
2079 as_fn_append ac_configure_args " '$ac_arg'"
2081 esac
2082 done
2083 done
2084 { ac_configure_args0=; unset ac_configure_args0;}
2085 { ac_configure_args1=; unset ac_configure_args1;}
2087 # When interrupted or exit'd, cleanup temporary files, and complete
2088 # config.log. We remove comments because anyway the quotes in there
2089 # would cause problems or look ugly.
2090 # WARNING: Use '\'' to represent an apostrophe within the trap.
2091 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2092 trap 'exit_status=$?
2093 # Save into config.log some information that might help in debugging.
2095 echo
2097 $as_echo "## ---------------- ##
2098 ## Cache variables. ##
2099 ## ---------------- ##"
2100 echo
2101 # The following way of writing the cache mishandles newlines in values,
2103 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2104 eval ac_val=\$$ac_var
2105 case $ac_val in #(
2106 *${as_nl}*)
2107 case $ac_var in #(
2108 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2109 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2110 esac
2111 case $ac_var in #(
2112 _ | IFS | as_nl) ;; #(
2113 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2114 *) { eval $ac_var=; unset $ac_var;} ;;
2115 esac ;;
2116 esac
2117 done
2118 (set) 2>&1 |
2119 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2120 *${as_nl}ac_space=\ *)
2121 sed -n \
2122 "s/'\''/'\''\\\\'\'''\''/g;
2123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2124 ;; #(
2126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2128 esac |
2129 sort
2131 echo
2133 $as_echo "## ----------------- ##
2134 ## Output variables. ##
2135 ## ----------------- ##"
2136 echo
2137 for ac_var in $ac_subst_vars
2139 eval ac_val=\$$ac_var
2140 case $ac_val in
2141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 esac
2143 $as_echo "$ac_var='\''$ac_val'\''"
2144 done | sort
2145 echo
2147 if test -n "$ac_subst_files"; then
2148 $as_echo "## ------------------- ##
2149 ## File substitutions. ##
2150 ## ------------------- ##"
2151 echo
2152 for ac_var in $ac_subst_files
2154 eval ac_val=\$$ac_var
2155 case $ac_val in
2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 esac
2158 $as_echo "$ac_var='\''$ac_val'\''"
2159 done | sort
2160 echo
2163 if test -s confdefs.h; then
2164 $as_echo "## ----------- ##
2165 ## confdefs.h. ##
2166 ## ----------- ##"
2167 echo
2168 cat confdefs.h
2169 echo
2171 test "$ac_signal" != 0 &&
2172 $as_echo "$as_me: caught signal $ac_signal"
2173 $as_echo "$as_me: exit $exit_status"
2174 } >&5
2175 rm -f core *.core core.conftest.* &&
2176 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2177 exit $exit_status
2179 for ac_signal in 1 2 13 15; do
2180 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2181 done
2182 ac_signal=0
2184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2185 rm -f -r conftest* confdefs.h
2187 $as_echo "/* confdefs.h */" > confdefs.h
2189 # Predefined preprocessor variables.
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_NAME "$PACKAGE_NAME"
2193 _ACEOF
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2197 _ACEOF
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2201 _ACEOF
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_STRING "$PACKAGE_STRING"
2205 _ACEOF
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2209 _ACEOF
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_URL "$PACKAGE_URL"
2213 _ACEOF
2216 # Let the site file select an alternate cache file if it wants to.
2217 # Prefer an explicitly selected file to automatically selected ones.
2218 ac_site_file1=NONE
2219 ac_site_file2=NONE
2220 if test -n "$CONFIG_SITE"; then
2221 # We do not want a PATH search for config.site.
2222 case $CONFIG_SITE in #((
2223 -*) ac_site_file1=./$CONFIG_SITE;;
2224 */*) ac_site_file1=$CONFIG_SITE;;
2225 *) ac_site_file1=./$CONFIG_SITE;;
2226 esac
2227 elif test "x$prefix" != xNONE; then
2228 ac_site_file1=$prefix/share/config.site
2229 ac_site_file2=$prefix/etc/config.site
2230 else
2231 ac_site_file1=$ac_default_prefix/share/config.site
2232 ac_site_file2=$ac_default_prefix/etc/config.site
2234 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2236 test "x$ac_site_file" = xNONE && continue
2237 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2239 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2240 sed 's/^/| /' "$ac_site_file" >&5
2241 . "$ac_site_file" \
2242 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244 as_fn_error $? "failed to load site script $ac_site_file
2245 See \`config.log' for more details" "$LINENO" 5; }
2247 done
2249 if test -r "$cache_file"; then
2250 # Some versions of bash will fail to source /dev/null (special files
2251 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2252 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2254 $as_echo "$as_me: loading cache $cache_file" >&6;}
2255 case $cache_file in
2256 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2257 *) . "./$cache_file";;
2258 esac
2260 else
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2262 $as_echo "$as_me: creating cache $cache_file" >&6;}
2263 >$cache_file
2266 # Check that the precious variables saved in the cache have kept the same
2267 # value.
2268 ac_cache_corrupted=false
2269 for ac_var in $ac_precious_vars; do
2270 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2271 eval ac_new_set=\$ac_env_${ac_var}_set
2272 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2273 eval ac_new_val=\$ac_env_${ac_var}_value
2274 case $ac_old_set,$ac_new_set in
2275 set,)
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2277 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2278 ac_cache_corrupted=: ;;
2279 ,set)
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2283 ,);;
2285 if test "x$ac_old_val" != "x$ac_new_val"; then
2286 # differences in whitespace do not lead to failure.
2287 ac_old_val_w=`echo x $ac_old_val`
2288 ac_new_val_w=`echo x $ac_new_val`
2289 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2291 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2292 ac_cache_corrupted=:
2293 else
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2295 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2296 eval $ac_var=\$ac_old_val
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2299 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2301 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2302 fi;;
2303 esac
2304 # Pass precious variables to config.status.
2305 if test "$ac_new_set" = set; then
2306 case $ac_new_val in
2307 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2308 *) ac_arg=$ac_var=$ac_new_val ;;
2309 esac
2310 case " $ac_configure_args " in
2311 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2312 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2313 esac
2315 done
2316 if $ac_cache_corrupted; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2320 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2321 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2323 ## -------------------- ##
2324 ## Main body of script. ##
2325 ## -------------------- ##
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340 progname=$0
2341 # if PWD already has a value, it is probably wrong.
2342 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2344 # Export original configure arguments for use by sub-configures.
2345 # Quote arguments with shell meta charatcers.
2346 TOPLEVEL_CONFIGURE_ARGUMENTS=
2347 set -- "$progname" "$@"
2348 for ac_arg
2350 case "$ac_arg" in
2351 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2352 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2353 # if the argument is of the form -foo=baz, quote the baz part only
2354 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2355 *) ;;
2356 esac
2357 # Add the quoted argument to the list.
2358 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2359 done
2360 if test "$silent" = yes; then
2361 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2363 # Remove the initial space we just introduced and, as these will be
2364 # expanded by make, quote '$'.
2365 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2368 # Find the build, host, and target systems.
2369 ac_aux_dir=
2370 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2371 if test -f "$ac_dir/install-sh"; then
2372 ac_aux_dir=$ac_dir
2373 ac_install_sh="$ac_aux_dir/install-sh -c"
2374 break
2375 elif test -f "$ac_dir/install.sh"; then
2376 ac_aux_dir=$ac_dir
2377 ac_install_sh="$ac_aux_dir/install.sh -c"
2378 break
2379 elif test -f "$ac_dir/shtool"; then
2380 ac_aux_dir=$ac_dir
2381 ac_install_sh="$ac_aux_dir/shtool install -c"
2382 break
2384 done
2385 if test -z "$ac_aux_dir"; then
2386 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2389 # These three variables are undocumented and unsupported,
2390 # and are intended to be withdrawn in a future Autoconf release.
2391 # They can cause serious problems if a builder's source tree is in a directory
2392 # whose full name contains unusual characters.
2393 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2394 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2395 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2398 # Make sure we can run config.sub.
2399 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2400 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2403 $as_echo_n "checking build system type... " >&6; }
2404 if ${ac_cv_build+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 ac_build_alias=$build_alias
2408 test "x$ac_build_alias" = x &&
2409 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2410 test "x$ac_build_alias" = x &&
2411 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2412 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2413 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2417 $as_echo "$ac_cv_build" >&6; }
2418 case $ac_cv_build in
2419 *-*-*) ;;
2420 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2421 esac
2422 build=$ac_cv_build
2423 ac_save_IFS=$IFS; IFS='-'
2424 set x $ac_cv_build
2425 shift
2426 build_cpu=$1
2427 build_vendor=$2
2428 shift; shift
2429 # Remember, the first character of IFS is used to create $*,
2430 # except with old shells:
2431 build_os=$*
2432 IFS=$ac_save_IFS
2433 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2436 case ${build_alias} in
2437 "") build_noncanonical=${build} ;;
2438 *) build_noncanonical=${build_alias} ;;
2439 esac
2443 case ${host_alias} in
2444 "") host_noncanonical=${build_noncanonical} ;;
2445 *) host_noncanonical=${host_alias} ;;
2446 esac
2450 case ${target_alias} in
2451 "") target_noncanonical=${host_noncanonical} ;;
2452 *) target_noncanonical=${target_alias} ;;
2453 esac
2458 test "$host_noncanonical" = "$target_noncanonical" &&
2459 test "$program_prefix$program_suffix$program_transform_name" = \
2460 NONENONEs,x,x, &&
2461 program_transform_name=s,y,y,
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2464 $as_echo_n "checking host system type... " >&6; }
2465 if ${ac_cv_host+:} false; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 if test "x$host_alias" = x; then
2469 ac_cv_host=$ac_cv_build
2470 else
2471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2477 $as_echo "$ac_cv_host" >&6; }
2478 case $ac_cv_host in
2479 *-*-*) ;;
2480 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2481 esac
2482 host=$ac_cv_host
2483 ac_save_IFS=$IFS; IFS='-'
2484 set x $ac_cv_host
2485 shift
2486 host_cpu=$1
2487 host_vendor=$2
2488 shift; shift
2489 # Remember, the first character of IFS is used to create $*,
2490 # except with old shells:
2491 host_os=$*
2492 IFS=$ac_save_IFS
2493 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2497 $as_echo_n "checking target system type... " >&6; }
2498 if ${ac_cv_target+:} false; then :
2499 $as_echo_n "(cached) " >&6
2500 else
2501 if test "x$target_alias" = x; then
2502 ac_cv_target=$ac_cv_host
2503 else
2504 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2510 $as_echo "$ac_cv_target" >&6; }
2511 case $ac_cv_target in
2512 *-*-*) ;;
2513 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2514 esac
2515 target=$ac_cv_target
2516 ac_save_IFS=$IFS; IFS='-'
2517 set x $ac_cv_target
2518 shift
2519 target_cpu=$1
2520 target_vendor=$2
2521 shift; shift
2522 # Remember, the first character of IFS is used to create $*,
2523 # except with old shells:
2524 target_os=$*
2525 IFS=$ac_save_IFS
2526 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2529 # The aliases save the names the user supplied, while $host etc.
2530 # will get canonicalized.
2531 test -n "$target_alias" &&
2532 test "$program_prefix$program_suffix$program_transform_name" = \
2533 NONENONEs,x,x, &&
2534 program_prefix=${target_alias}-
2536 test "$program_prefix" != NONE &&
2537 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2538 # Use a double $ so make ignores it.
2539 test "$program_suffix" != NONE &&
2540 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2541 # Double any \ or $.
2542 # By default was `s,x,x', remove it if useless.
2543 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2544 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2548 # Get 'install' or 'install-sh' and its variants.
2549 # Find a good install program. We prefer a C program (faster),
2550 # so one script is as good as another. But avoid the broken or
2551 # incompatible versions:
2552 # SysV /etc/install, /usr/sbin/install
2553 # SunOS /usr/etc/install
2554 # IRIX /sbin/install
2555 # AIX /bin/install
2556 # AmigaOS /C/install, which installs bootblocks on floppy discs
2557 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2558 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2559 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2560 # OS/2's system install, which has a completely different semantic
2561 # ./install, which can be erroneously created by make from ./install.sh.
2562 # Reject install programs that cannot install multiple files.
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2564 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2565 if test -z "$INSTALL"; then
2566 if ${ac_cv_path_install+:} false; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 # Account for people who put trailing slashes in PATH elements.
2575 case $as_dir/ in #((
2576 ./ | .// | /[cC]/* | \
2577 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2578 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2579 /usr/ucb/* ) ;;
2581 # OSF1 and SCO ODT 3.0 have their own names for install.
2582 # Don't use installbsd from OSF since it installs stuff as root
2583 # by default.
2584 for ac_prog in ginstall scoinst install; do
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2587 if test $ac_prog = install &&
2588 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2589 # AIX install. It has an incompatible calling convention.
2591 elif test $ac_prog = install &&
2592 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2593 # program-specific install script used by HP pwplus--don't use.
2595 else
2596 rm -rf conftest.one conftest.two conftest.dir
2597 echo one > conftest.one
2598 echo two > conftest.two
2599 mkdir conftest.dir
2600 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2601 test -s conftest.one && test -s conftest.two &&
2602 test -s conftest.dir/conftest.one &&
2603 test -s conftest.dir/conftest.two
2604 then
2605 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2606 break 3
2610 done
2611 done
2613 esac
2615 done
2616 IFS=$as_save_IFS
2618 rm -rf conftest.one conftest.two conftest.dir
2621 if test "${ac_cv_path_install+set}" = set; then
2622 INSTALL=$ac_cv_path_install
2623 else
2624 # As a last resort, use the slow shell script. Don't cache a
2625 # value for INSTALL within a source directory, because that will
2626 # break other packages using the cache if that directory is
2627 # removed, or if the value is a relative name.
2628 INSTALL=$ac_install_sh
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2632 $as_echo "$INSTALL" >&6; }
2634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2635 # It thinks the first close brace ends the variable substitution.
2636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2643 $as_echo_n "checking whether ln works... " >&6; }
2644 if ${acx_cv_prog_LN+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 rm -f conftestdata_t
2648 echo >conftestdata_f
2649 if ln conftestdata_f conftestdata_t 2>/dev/null
2650 then
2651 acx_cv_prog_LN=ln
2652 else
2653 acx_cv_prog_LN=no
2655 rm -f conftestdata_f conftestdata_t
2658 if test $acx_cv_prog_LN = no; then
2659 LN="cp"
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2661 $as_echo "no, using $LN" >&6; }
2662 else
2663 LN="$acx_cv_prog_LN"
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2669 $as_echo_n "checking whether ln -s works... " >&6; }
2670 LN_S=$as_ln_s
2671 if test "$LN_S" = "ln -s"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2676 $as_echo "no, using $LN_S" >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2680 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2681 if ${ac_cv_path_SED+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2685 for ac_i in 1 2 3 4 5 6 7; do
2686 ac_script="$ac_script$as_nl$ac_script"
2687 done
2688 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2689 { ac_script=; unset ac_script;}
2690 if test -z "$SED"; then
2691 ac_path_SED_found=false
2692 # Loop through the user's path and test for each of PROGNAME-LIST
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_prog in sed gsed; do
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2701 as_fn_executable_p "$ac_path_SED" || continue
2702 # Check for GNU ac_path_SED and select it if it is found.
2703 # Check for GNU $ac_path_SED
2704 case `"$ac_path_SED" --version 2>&1` in
2705 *GNU*)
2706 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2708 ac_count=0
2709 $as_echo_n 0123456789 >"conftest.in"
2710 while :
2712 cat "conftest.in" "conftest.in" >"conftest.tmp"
2713 mv "conftest.tmp" "conftest.in"
2714 cp "conftest.in" "conftest.nl"
2715 $as_echo '' >> "conftest.nl"
2716 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2718 as_fn_arith $ac_count + 1 && ac_count=$as_val
2719 if test $ac_count -gt ${ac_path_SED_max-0}; then
2720 # Best one so far, save it but keep looking for a better one
2721 ac_cv_path_SED="$ac_path_SED"
2722 ac_path_SED_max=$ac_count
2724 # 10*(2^10) chars as input seems more than enough
2725 test $ac_count -gt 10 && break
2726 done
2727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2728 esac
2730 $ac_path_SED_found && break 3
2731 done
2732 done
2733 done
2734 IFS=$as_save_IFS
2735 if test -z "$ac_cv_path_SED"; then
2736 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2738 else
2739 ac_cv_path_SED=$SED
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2744 $as_echo "$ac_cv_path_SED" >&6; }
2745 SED="$ac_cv_path_SED"
2746 rm -f conftest.sed
2748 for ac_prog in gawk mawk nawk awk
2750 # Extract the first word of "$ac_prog", so it can be a program name with args.
2751 set dummy $ac_prog; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_AWK+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test -n "$AWK"; then
2758 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_AWK="$ac_prog"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2771 done
2772 done
2773 IFS=$as_save_IFS
2777 AWK=$ac_cv_prog_AWK
2778 if test -n "$AWK"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2780 $as_echo "$AWK" >&6; }
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2787 test -n "$AWK" && break
2788 done
2791 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2793 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2794 # a relative path.
2795 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2796 INSTALL="${srcpwd}/install-sh -c"
2799 # Set srcdir to "." if that's what it is.
2800 # This is important for multilib support.
2801 pwd=`${PWDCMD-pwd}`
2802 if test "${pwd}" = "${srcpwd}" ; then
2803 srcdir=.
2806 topsrcdir=$srcpwd
2808 extra_host_args=
2810 ### To add a new directory to the tree, first choose whether it is a target
2811 ### or a host dependent tool. Then put it into the appropriate list
2812 ### (library or tools, host or target), doing a dependency sort.
2814 # Subdirs will be configured in the order listed in build_configdirs,
2815 # configdirs, or target_configdirs; see the serialization section below.
2817 # Dependency sorting is only needed when *configuration* must be done in
2818 # a particular order. In all cases a dependency should be specified in
2819 # the Makefile, whether or not it's implicitly specified here.
2821 # Double entries in build_configdirs, configdirs, or target_configdirs may
2822 # cause circular dependencies and break everything horribly.
2824 # these library is used by various programs built for the build
2825 # environment
2827 build_libs="build-libiberty build-libcpp"
2829 # these tools are built for the build environment
2830 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2832 # these libraries are used by various programs built for the host environment
2834 host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2836 # these tools are built for the host environment
2837 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2838 # know that we are building the simulator.
2839 # binutils, gas and ld appear in that order because it makes sense to run
2840 # "make check" in that particular order.
2841 # If --enable-gold is used, "gold" may replace "ld".
2842 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2844 # these libraries are built for the target environment, and are built after
2845 # the host libraries and the host tools (which may be a cross compiler)
2846 # Note that libiberty is not a target library.
2847 target_libraries="target-libgcc \
2848 target-libbacktrace \
2849 target-libgloss \
2850 target-newlib \
2851 target-libgomp \
2852 target-libatomic \
2853 target-libitm \
2854 target-libstdc++-v3 \
2855 target-libsanitizer \
2856 target-libvtv \
2857 target-libssp \
2858 target-libquadmath \
2859 target-libgfortran \
2860 target-libffi \
2861 target-libobjc \
2862 target-libada \
2863 target-libgm2 \
2864 target-libgo \
2865 target-libgrust \
2866 target-libphobos \
2867 target-zlib"
2869 # these tools are built using the target libraries, and are intended to
2870 # run only in the target environment
2872 # note: any program that *uses* libraries that are in the "target_libraries"
2873 # list belongs in this list.
2875 target_tools="target-rda"
2877 ################################################################################
2879 ## All tools belong in one of the four categories, and are assigned above
2880 ## We assign ${configdirs} this way to remove all embedded newlines. This
2881 ## is important because configure will choke if they ever get through.
2882 ## ${configdirs} is directories we build using the host tools.
2883 ## ${target_configdirs} is directories we build using the target tools.
2884 configdirs=`echo ${host_libs} ${host_tools}`
2885 target_configdirs=`echo ${target_libraries} ${target_tools}`
2886 build_configdirs=`echo ${build_libs} ${build_tools}`
2890 ################################################################################
2892 srcname="gnu development package"
2894 # This gets set non-empty for some net releases of packages.
2895 appdirs=""
2897 # Define is_cross_compiler to save on calls to 'test'.
2898 is_cross_compiler=
2899 if test x"${host}" = x"${target}" ; then
2900 is_cross_compiler=no
2901 else
2902 is_cross_compiler=yes
2905 # Find the build and target subdir names.
2907 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2908 # have matching libraries, they should use host libraries: Makefile.tpl
2909 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2910 # However, they still use the build modules, because the corresponding
2911 # host modules (e.g. bison) are only built for the host when bootstrap
2912 # finishes. So:
2913 # - build_subdir is where we find build modules, and never changes.
2914 # - build_libsubdir is where we find build libraries, and can be overridden.
2916 # Prefix 'build-' so this never conflicts with target_subdir.
2917 build_subdir="build-${build_noncanonical}"
2919 # Check whether --with-build-libsubdir was given.
2920 if test "${with_build_libsubdir+set}" = set; then :
2921 withval=$with_build_libsubdir; build_libsubdir="$withval"
2922 else
2923 build_libsubdir="$build_subdir"
2926 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2927 if ( test $srcdir = . && test -d gcc ) \
2928 || test -d $srcdir/../host-${host_noncanonical}; then
2929 host_subdir="host-${host_noncanonical}"
2930 else
2931 host_subdir=.
2933 # No prefix.
2934 target_subdir=${target_noncanonical}
2936 # Be sure to cover against remnants of an in-tree build.
2937 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2938 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2939 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2942 # Skipdirs are removed silently.
2943 skipdirs=
2944 # Noconfigdirs are removed loudly.
2945 noconfigdirs=""
2947 use_gnu_ld=
2948 # Make sure we don't let GNU ld be added if we didn't want it.
2949 if test x$with_gnu_ld = xno ; then
2950 use_gnu_ld=no
2951 noconfigdirs="$noconfigdirs ld gold"
2954 use_gnu_as=
2955 # Make sure we don't let GNU as be added if we didn't want it.
2956 if test x$with_gnu_as = xno ; then
2957 use_gnu_as=no
2958 noconfigdirs="$noconfigdirs gas"
2961 use_included_zlib=
2963 # Check whether --with-system-zlib was given.
2964 if test "${with_system_zlib+set}" = set; then :
2965 withval=$with_system_zlib;
2968 # Make sure we don't let ZLIB be added if we didn't want it.
2969 if test x$with_system_zlib = xyes ; then
2970 use_included_zlib=no
2971 noconfigdirs="$noconfigdirs zlib"
2974 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2975 # is provided.
2976 if test x$with_system_readline = xyes ; then
2977 noconfigdirs="$noconfigdirs readline"
2981 # Check whether --with-zstd was given.
2982 if test "${with_zstd+set}" = set; then :
2983 withval=$with_zstd;
2987 # some tools are so dependent upon X11 that if we're not building with X,
2988 # it's not even worth trying to configure, much less build, that tool.
2990 case ${with_x} in
2991 yes | "") ;; # the default value for this tree is that X11 is available
2993 skipdirs="${skipdirs} tk itcl libgui"
2994 # We won't be able to build gdbtk without X.
2995 enable_gdbtk=no
2997 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2998 esac
3000 # Some are only suitable for cross toolchains.
3001 # Remove these if host=target.
3002 cross_only="target-libgloss target-newlib target-opcodes"
3004 case $is_cross_compiler in
3005 no) skipdirs="${skipdirs} ${cross_only}" ;;
3006 esac
3008 # If both --with-headers and --with-libs are specified, default to
3009 # --without-newlib.
3010 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3011 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3012 if test x"${with_newlib}" = x ; then
3013 with_newlib=no
3017 # Recognize --with-newlib/--without-newlib.
3018 case ${with_newlib} in
3019 no) skipdirs="${skipdirs} target-newlib" ;;
3020 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3021 esac
3023 # Check whether --enable-as-accelerator-for was given.
3024 if test "${enable_as_accelerator_for+set}" = set; then :
3025 enableval=$enable_as_accelerator_for;
3029 # Check whether --enable-offload-targets was given.
3030 if test "${enable_offload_targets+set}" = set; then :
3031 enableval=$enable_offload_targets;
3032 if test x"$enable_offload_targets" = x; then
3033 as_fn_error $? "no offload targets specified" "$LINENO" 5
3036 else
3037 enable_offload_targets=
3041 # Check whether --enable-offload-defaulted was given.
3042 if test "${enable_offload_defaulted+set}" = set; then :
3043 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3044 else
3045 enable_offload_defaulted=
3049 # Handle --enable-gold, --enable-ld.
3050 # --disable-gold [--enable-ld]
3051 # Build only ld. Default option.
3052 # --enable-gold [--enable-ld]
3053 # Build both gold and ld. Install gold as "ld.gold", install ld
3054 # as "ld.bfd" and "ld".
3055 # --enable-gold=default [--enable-ld]
3056 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3057 # install ld as "ld.bfd".
3058 # --enable-gold[=default] --disable-ld
3059 # Build only gold, which is then installed as both "ld.gold" and "ld".
3060 # --enable-gold --enable-ld=default
3061 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3062 # and ld.bfd).
3063 # In other words, ld is default
3064 # --enable-gold=default --enable-ld=default
3065 # Error.
3067 default_ld=
3068 # Check whether --enable-gold was given.
3069 if test "${enable_gold+set}" = set; then :
3070 enableval=$enable_gold; ENABLE_GOLD=$enableval
3071 else
3072 ENABLE_GOLD=no
3075 case "${ENABLE_GOLD}" in
3076 yes|default)
3077 # Check for ELF target.
3078 is_elf=no
3079 case "${target}" in
3080 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3081 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3082 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3083 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3084 case "${target}" in
3085 *-*-linux*aout* | *-*-linux*oldld*)
3088 is_elf=yes
3090 esac
3091 esac
3093 if test "$is_elf" = "yes"; then
3094 # Check for target supported by gold.
3095 case "${target}" in
3096 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3097 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3098 configdirs="$configdirs gold"
3099 if test x${ENABLE_GOLD} = xdefault; then
3100 default_ld=gold
3102 ENABLE_GOLD=yes
3104 esac
3110 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3112 esac
3114 # Check whether --enable-ld was given.
3115 if test "${enable_ld+set}" = set; then :
3116 enableval=$enable_ld; ENABLE_LD=$enableval
3117 else
3118 ENABLE_LD=yes
3122 case "${ENABLE_LD}" in
3123 default)
3124 if test x${default_ld} != x; then
3125 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3128 yes)
3131 if test x${ENABLE_GOLD} != xyes; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3133 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3135 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3138 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3140 esac
3142 # Check whether --enable-gprofng was given.
3143 if test "${enable_gprofng+set}" = set; then :
3144 enableval=$enable_gprofng; enable_gprofng=$enableval
3145 else
3146 enable_gprofng=yes
3149 if test "$enable_gprofng" = "yes"; then
3150 case "${target}" in
3151 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3152 configdirs="$configdirs gprofng"
3154 esac
3158 # PR gas/19109
3159 # Decide the default method for compressing debug sections.
3160 # Provide a configure time option to override our default.
3161 # Check whether --enable-compressed_debug_sections was given.
3162 if test "${enable_compressed_debug_sections+set}" = set; then :
3163 enableval=$enable_compressed_debug_sections;
3164 if test x"$enable_compressed_debug_sections" = xyes; then
3165 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3168 else
3169 enable_compressed_debug_sections=
3173 # Select default compression algorithm.
3174 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3175 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3176 enableval=$enable_default_compressed_debug_sections_algorithm;
3177 else
3178 default_compressed_debug_sections_algorithm=
3182 # Configure extra directories which are host specific
3184 case "${host}" in
3185 *-cygwin*)
3186 configdirs="$configdirs libtermcap" ;;
3187 esac
3189 # A target can indicate whether a language isn't supported for some reason.
3190 # Only spaces may be used in this macro; not newlines or tabs.
3191 unsupported_languages=
3193 # Remove more programs from consideration, based on the host or
3194 # target this usually means that a port of the program doesn't
3195 # exist yet.
3197 case "${host}" in
3198 i[3456789]86-*-msdosdjgpp*)
3199 noconfigdirs="$noconfigdirs tcl tk itcl"
3201 esac
3203 # Default to --disable-year2038 until we can handle differences between
3204 # projects that use gnulib (which understands year 2038) and projects that
3205 # do not (like BFD).
3206 # Check whether --enable-year2038 was given.
3207 if test "${enable_year2038+set}" = set; then :
3208 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3209 else
3210 ENABLE_YEAR2038=no
3213 enable_year2038=
3214 if test "${ENABLE_YEAR2038}" = "no" ; then
3215 enable_year2038=no
3218 # Check whether --enable-libquadmath was given.
3219 if test "${enable_libquadmath+set}" = set; then :
3220 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3221 else
3222 ENABLE_LIBQUADMATH=yes
3225 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3226 noconfigdirs="$noconfigdirs target-libquadmath"
3230 # Check whether --enable-libquadmath-support was given.
3231 if test "${enable_libquadmath_support+set}" = set; then :
3232 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3233 else
3234 ENABLE_LIBQUADMATH_SUPPORT=yes
3237 enable_libquadmath_support=
3238 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3239 enable_libquadmath_support=no
3243 # Check whether --enable-libada was given.
3244 if test "${enable_libada+set}" = set; then :
3245 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3246 else
3247 ENABLE_LIBADA=yes
3250 if test "${ENABLE_LIBADA}" != "yes" ; then
3251 noconfigdirs="$noconfigdirs gnattools"
3254 # Check whether --enable-libgm2 was given.
3255 if test "${enable_libgm2+set}" = set; then :
3256 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3257 else
3258 ENABLE_LIBGM2=no
3261 if test "${ENABLE_LIBGM2}" != "yes" ; then
3262 noconfigdirs="$noconfigdirs gm2tools"
3265 # Check whether --enable-libssp was given.
3266 if test "${enable_libssp+set}" = set; then :
3267 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3268 else
3269 ENABLE_LIBSSP=yes
3273 # Check whether --enable-libstdcxx was given.
3274 if test "${enable_libstdcxx+set}" = set; then :
3275 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3276 else
3277 ENABLE_LIBSTDCXX=default
3280 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3281 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3284 # Enable libgomp by default on hosted POSIX systems, and a few others.
3285 if test x$enable_libgomp = x ; then
3286 case "${target}" in
3287 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3289 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3291 *-*-solaris2* | *-*-hpux11*)
3293 *-*-darwin* | *-*-aix*)
3295 nvptx*-*-* | amdgcn*-*-*)
3298 noconfigdirs="$noconfigdirs target-libgomp"
3300 esac
3303 # Disable libatomic on unsupported systems.
3304 if test -d ${srcdir}/libatomic; then
3305 if test x$enable_libatomic = x; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3307 $as_echo_n "checking for libatomic support... " >&6; }
3308 if (srcdir=${srcdir}/libatomic; \
3309 . ${srcdir}/configure.tgt; \
3310 test -n "$UNSUPPORTED")
3311 then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 noconfigdirs="$noconfigdirs target-libatomic"
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 $as_echo "yes" >&6; }
3322 # Disable libitm on unsupported systems.
3323 if test -d ${srcdir}/libitm; then
3324 if test x$enable_libitm = x; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3326 $as_echo_n "checking for libitm support... " >&6; }
3327 if (srcdir=${srcdir}/libitm; \
3328 . ${srcdir}/configure.tgt; \
3329 test -n "$UNSUPPORTED")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 noconfigdirs="$noconfigdirs target-libitm"
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3341 # Disable libsanitizer on unsupported systems.
3342 if test -d ${srcdir}/libsanitizer; then
3343 if test x$enable_libsanitizer = x; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3345 $as_echo_n "checking for libsanitizer support... " >&6; }
3346 if (srcdir=${srcdir}/libsanitizer; \
3347 . ${srcdir}/configure.tgt; \
3348 test -n "$UNSUPPORTED")
3349 then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 noconfigdirs="$noconfigdirs target-libsanitizer"
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355 $as_echo "yes" >&6; }
3360 # Disable libvtv on unsupported systems.
3361 if test -d ${srcdir}/libvtv; then
3362 if test x$enable_libvtv = x; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3364 $as_echo_n "checking for libvtv support... " >&6; }
3365 if (srcdir=${srcdir}/libvtv; \
3366 . ${srcdir}/configure.tgt; \
3367 test "$VTV_SUPPORTED" != "yes")
3368 then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 noconfigdirs="$noconfigdirs target-libvtv"
3372 else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374 $as_echo "yes" >&6; }
3379 # Disable libquadmath for some systems.
3380 case "${target}" in
3381 avr-*-*)
3382 noconfigdirs="$noconfigdirs target-libquadmath"
3384 # libquadmath is unused on AIX and libquadmath build process use of
3385 # LD_LIBRARY_PATH can break AIX bootstrap.
3386 powerpc-*-aix* | rs6000-*-aix*)
3387 noconfigdirs="$noconfigdirs target-libquadmath"
3389 esac
3391 # Disable libssp for some systems.
3392 case "${target}" in
3393 avr-*-*)
3394 # No hosted I/O support.
3395 noconfigdirs="$noconfigdirs target-libssp"
3397 bpf-*-*)
3398 noconfigdirs="$noconfigdirs target-libssp"
3400 powerpc-*-aix* | rs6000-*-aix*)
3401 noconfigdirs="$noconfigdirs target-libssp"
3403 pru-*-*)
3404 # No hosted I/O support.
3405 noconfigdirs="$noconfigdirs target-libssp"
3407 rl78-*-*)
3408 # libssp uses a misaligned load to trigger a fault, but the RL78
3409 # doesn't fault for those - instead, it gives a build-time error
3410 # for explicit misaligned loads.
3411 noconfigdirs="$noconfigdirs target-libssp"
3413 visium-*-*)
3414 # No hosted I/O support.
3415 noconfigdirs="$noconfigdirs target-libssp"
3417 esac
3419 # Disable libstdc++-v3 for some systems.
3420 # Allow user to override this if they pass --enable-libstdcxx
3421 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3422 case "${target}" in
3423 *-*-vxworks*)
3424 # VxWorks uses the Dinkumware C++ library.
3425 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3427 amdgcn*-*-*)
3428 # Not ported/fails to build when using newlib.
3429 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3431 arm*-wince-pe*)
3432 # the C++ libraries don't build on top of CE's C libraries
3433 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3435 avr-*-*)
3436 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3438 bpf-*-*)
3439 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3441 ft32-*-*)
3442 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3444 esac
3447 # Disable C++ on systems where it is known to not work.
3448 # For testing, you can override this with --enable-languages=c++.
3449 case ,${enable_languages}, in
3450 *,c++,*)
3453 case "${target}" in
3454 bpf-*-*)
3455 unsupported_languages="$unsupported_languages c++"
3457 esac
3459 esac
3461 # Disable Objc on systems where it is known to not work.
3462 # For testing, you can override this with --enable-languages=objc.
3463 case ,${enable_languages}, in
3464 *,objc,*)
3467 case "${target}" in
3468 bpf-*-*)
3469 unsupported_languages="$unsupported_languages objc"
3471 esac
3473 esac
3475 # Disable D on systems where it is known to not work.
3476 # For testing, you can override this with --enable-languages=d.
3477 case ,${enable_languages}, in
3478 *,d,*)
3481 case "${target}" in
3482 bpf-*-*)
3483 unsupported_languages="$unsupported_languages d"
3485 esac
3487 esac
3489 # Disable libphobos on unsupported systems.
3490 # For testing, you can override this with --enable-libphobos.
3491 if test -d ${srcdir}/libphobos; then
3492 if test x$enable_libphobos = x; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3494 $as_echo_n "checking for libphobos support... " >&6; }
3495 if (srcdir=${srcdir}/libphobos; \
3496 . ${srcdir}/configure.tgt; \
3497 test "$LIBPHOBOS_SUPPORTED" != "yes")
3498 then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501 noconfigdirs="$noconfigdirs target-libphobos"
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3504 $as_echo "yes" >&6; }
3509 # Disable Fortran for some systems.
3510 case "${target}" in
3511 mmix-*-*)
3512 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3513 unsupported_languages="$unsupported_languages fortran"
3515 bpf-*-*)
3516 unsupported_languages="$unsupported_languages fortran"
3518 esac
3520 # Disable libffi for some systems.
3521 case "${target}" in
3522 powerpc-*-darwin*)
3524 i[3456789]86-*-darwin*)
3526 x86_64-*-darwin[912]*)
3528 *-*-darwin*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3531 *-*-netware*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3534 *-*-phoenix*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3537 *-*-rtems*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3540 *-*-tpf*)
3541 noconfigdirs="$noconfigdirs target-libffi"
3543 *-*-uclinux*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3546 *-*-vxworks*)
3547 noconfigdirs="$noconfigdirs target-libffi"
3549 aarch64*-*-freebsd*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3552 alpha*-*-*vms*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3555 arm*-*-freebsd*)
3556 noconfigdirs="$noconfigdirs target-libffi"
3558 arm-wince-pe)
3559 noconfigdirs="$noconfigdirs target-libffi"
3561 arm*-*-symbianelf*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3564 bpf-*-*)
3565 noconfigdirs="$noconfigdirs target-libffi"
3567 cris-*-* | crisv32-*-*)
3568 case "${target}" in
3569 *-*-linux*)
3571 *) # See PR46792 regarding target-libffi.
3572 noconfigdirs="$noconfigdirs target-libffi";;
3573 esac
3575 hppa*64*-*-hpux*)
3576 noconfigdirs="$noconfigdirs target-libffi"
3578 hppa*-hp-hpux11*)
3580 hppa*-*-hpux*)
3581 noconfigdirs="$noconfigdirs target-libffi"
3583 ia64*-*-*vms*)
3584 noconfigdirs="$noconfigdirs target-libffi"
3586 i[3456789]86-w64-mingw*)
3587 noconfigdirs="$noconfigdirs target-libffi"
3589 i[3456789]86-*-mingw*)
3590 noconfigdirs="$noconfigdirs target-libffi"
3592 x86_64-*-mingw*)
3593 noconfigdirs="$noconfigdirs target-libffi"
3595 mmix-*-*)
3596 noconfigdirs="$noconfigdirs target-libffi"
3598 powerpc-*-aix*)
3600 rs6000-*-aix*)
3602 ft32-*-*)
3603 noconfigdirs="$noconfigdirs target-libffi"
3605 *-*-lynxos*)
3606 noconfigdirs="$noconfigdirs target-libffi"
3608 esac
3610 # Disable the go frontend on systems where it is known to not work. Please keep
3611 # this in sync with contrib/config-list.mk.
3612 case "${target}" in
3613 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3614 unsupported_languages="$unsupported_languages go"
3616 esac
3618 # Only allow gdbserver on some systems.
3619 if test -d ${srcdir}/gdbserver; then
3620 if test x$enable_gdbserver = x; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3622 $as_echo_n "checking for gdbserver support... " >&6; }
3623 if (srcdir=${srcdir}/gdbserver; \
3624 . ${srcdir}/configure.srv; \
3625 test -n "$UNSUPPORTED")
3626 then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3629 noconfigdirs="$noconfigdirs gdbserver"
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632 $as_echo "yes" >&6; }
3637 # Disable libgo for some systems where it is known to not work.
3638 # For testing, you can easily override this with --enable-libgo.
3639 if test x$enable_libgo = x; then
3640 case "${target}" in
3641 *-*-darwin*)
3642 # PR 46986
3643 noconfigdirs="$noconfigdirs target-libgo"
3645 *-*-cygwin* | *-*-mingw*)
3646 noconfigdirs="$noconfigdirs target-libgo"
3648 bpf-*-*)
3649 noconfigdirs="$noconfigdirs target-libgo"
3651 esac
3654 # Default libgloss CPU subdirectory.
3655 libgloss_dir="$target_cpu"
3657 case "${target}" in
3658 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3659 libgloss_dir=wince
3661 aarch64*-*-* )
3662 libgloss_dir=aarch64
3664 arm*-*-*)
3665 libgloss_dir=arm
3667 cris-*-* | crisv32-*-*)
3668 libgloss_dir=cris
3670 hppa*-*-*)
3671 libgloss_dir=pa
3673 i[3456789]86-*-*)
3674 libgloss_dir=i386
3676 loongarch*-*-*)
3677 libgloss_dir=loongarch
3679 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3680 libgloss_dir=m68hc11
3682 m68*-*-* | fido-*-*)
3683 libgloss_dir=m68k
3685 mips*-*-*)
3686 libgloss_dir=mips
3688 powerpc*-*-*)
3689 libgloss_dir=rs6000
3691 pru-*-*)
3692 libgloss_dir=pru
3694 sparc*-*-*)
3695 libgloss_dir=sparc
3697 esac
3699 # Disable newlib and libgloss for various target OSes.
3700 case "${target}" in
3701 alpha*-dec-osf*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 i[3456789]86-*-linux*)
3705 # This section makes it possible to build newlib natively on linux.
3706 # If we are using a cross compiler then don't configure newlib.
3707 if test x${is_cross_compiler} != xno ; then
3708 noconfigdirs="$noconfigdirs target-newlib"
3710 noconfigdirs="$noconfigdirs target-libgloss"
3711 # If we are not using a cross compiler, do configure newlib.
3712 # Note however, that newlib will only be configured in this situation
3713 # if the --with-newlib option has been given, because otherwise
3714 # 'target-newlib' will appear in skipdirs.
3716 i[3456789]86-*-rdos*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 sparc-*-sunos4*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 bpf-*-*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 *-*-aix*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 *-*-beos*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 *-*-chorusos)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 *-*-dragonfly*)
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3740 *-*-freebsd*)
3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3743 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3744 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3746 *-*-lynxos*)
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3749 *-*-mingw*)
3750 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3752 *-*-netbsd*)
3753 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755 *-*-netware*)
3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3758 *-*-tpf*)
3759 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3761 *-*-uclinux*)
3762 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3764 *-*-vxworks*)
3765 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3767 esac
3769 case "${target}" in
3770 *-*-chorusos)
3772 aarch64-*-darwin*)
3773 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3774 noconfigdirs="$noconfigdirs sim target-rda"
3776 amdgcn*-*-*)
3778 arm-*-darwin*)
3779 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3780 noconfigdirs="$noconfigdirs sim target-rda"
3782 powerpc-*-darwin*)
3783 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3784 noconfigdirs="$noconfigdirs sim target-rda"
3786 i[3456789]86-*-darwin*)
3787 noconfigdirs="$noconfigdirs ld gprof"
3788 noconfigdirs="$noconfigdirs sim target-rda"
3790 x86_64-*-darwin[912]*)
3791 noconfigdirs="$noconfigdirs ld gas gprof"
3792 noconfigdirs="$noconfigdirs sim target-rda"
3794 *-*-darwin*)
3795 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3796 noconfigdirs="$noconfigdirs sim target-rda"
3798 *-*-dragonfly*)
3800 *-*-freebsd*)
3801 if test "x$with_gmp" = x \
3802 && ! test -d ${srcdir}/gmp \
3803 && test -f /usr/local/include/gmp.h; then
3804 with_gmp=/usr/local
3807 *-*-kaos*)
3808 # Remove unsupported stuff on all kaOS configurations.
3809 noconfigdirs="$noconfigdirs target-libgloss"
3811 *-*-netbsd*)
3813 *-*-netware*)
3815 *-*-phoenix*)
3816 noconfigdirs="$noconfigdirs target-libgloss"
3818 *-*-rtems*)
3819 noconfigdirs="$noconfigdirs target-libgloss"
3821 # The tpf target doesn't support gdb yet.
3822 *-*-tpf*)
3823 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3825 *-*-uclinux*)
3826 noconfigdirs="$noconfigdirs target-rda"
3828 *-*-vxworks*)
3830 alpha*-dec-osf*)
3831 # ld works, but does not support shared libraries.
3832 # gas doesn't generate exception information.
3833 noconfigdirs="$noconfigdirs gas ld"
3835 alpha*-*-*vms*)
3836 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3838 alpha*-*-*)
3839 # newlib is not 64 bit ready
3840 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3842 bpf-*-*)
3843 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3845 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3846 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3848 arc*-*-*)
3849 noconfigdirs="$noconfigdirs sim"
3851 arm-*-pe*)
3852 noconfigdirs="$noconfigdirs target-libgloss"
3854 arm-*-riscix*)
3855 noconfigdirs="$noconfigdirs ld target-libgloss"
3857 avr-*-*)
3858 if test x${with_avrlibc} != xno; then
3859 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3862 c4x-*-* | tic4x-*-*)
3863 noconfigdirs="$noconfigdirs target-libgloss"
3865 tic54x-*-*)
3866 noconfigdirs="$noconfigdirs target-libgloss gdb"
3868 d10v-*-*)
3869 noconfigdirs="$noconfigdirs target-libgloss"
3871 d30v-*-*)
3872 noconfigdirs="$noconfigdirs gdb"
3874 fr30-*-elf*)
3875 noconfigdirs="$noconfigdirs gdb"
3877 ft32-*-*)
3878 noconfigdirs="$noconfigdirs target-rda gprof"
3880 moxie-*-*)
3881 noconfigdirs="$noconfigdirs"
3883 h8300*-*-*)
3884 noconfigdirs="$noconfigdirs target-libgloss"
3886 h8500-*-*)
3887 noconfigdirs="$noconfigdirs target-libgloss"
3889 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3891 hppa*64*-*-hpux*)
3892 noconfigdirs="$noconfigdirs gdb"
3894 hppa*-*-hpux11*)
3895 noconfigdirs="$noconfigdirs gdb ld"
3897 hppa*64*-*-linux*)
3899 hppa*-*-linux*)
3901 hppa*-*-*elf* | \
3902 hppa*-*-lites* | \
3903 hppa*-*-openbsd* | \
3904 hppa*64*-*-*)
3906 hppa*-*-pro*)
3908 hppa*-*-*)
3909 noconfigdirs="$noconfigdirs ld"
3911 i960-*-*)
3912 noconfigdirs="$noconfigdirs gdb"
3914 ia64*-*-elf*)
3915 # No gdb support yet.
3916 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3918 ia64*-**-hpux*)
3919 # No ld support yet.
3920 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3922 ia64*-*-*vms*)
3923 # No ld support yet.
3924 noconfigdirs="$noconfigdirs libgui itcl ld"
3926 i[3456789]86-w64-mingw*)
3928 i[3456789]86-*-mingw*)
3929 target_configdirs="$target_configdirs target-winsup"
3931 *-*-cygwin*)
3932 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3933 noconfigdirs="$noconfigdirs target-libgloss"
3934 # always build newlib if winsup directory is present.
3935 if test -d "$srcdir/winsup/cygwin"; then
3936 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3937 elif test -d "$srcdir/newlib"; then
3938 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3941 i[3456789]86-*-pe)
3942 noconfigdirs="$noconfigdirs target-libgloss"
3944 i[3456789]86-*-sco3.2v5*)
3945 # The linker does not yet know about weak symbols in COFF,
3946 # and is not configured to handle mixed ELF and COFF.
3947 noconfigdirs="$noconfigdirs ld target-libgloss"
3949 i[3456789]86-*-sco*)
3950 noconfigdirs="$noconfigdirs gprof target-libgloss"
3952 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3953 noconfigdirs="$noconfigdirs target-libgloss"
3955 i[3456789]86-*-sysv4*)
3956 noconfigdirs="$noconfigdirs target-libgloss"
3958 i[3456789]86-*-beos*)
3959 noconfigdirs="$noconfigdirs gdb"
3961 i[3456789]86-*-rdos*)
3962 noconfigdirs="$noconfigdirs gdb"
3964 mmix-*-*)
3965 noconfigdirs="$noconfigdirs gdb"
3967 mt-*-*)
3968 noconfigdirs="$noconfigdirs sim"
3970 nfp-*-*)
3971 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3972 noconfigdirs="$noconfigdirs $target_libraries"
3974 pdp11-*-*)
3975 noconfigdirs="$noconfigdirs gdb gprof"
3977 powerpc-*-aix*)
3978 # copied from rs6000-*-* entry
3979 noconfigdirs="$noconfigdirs gprof"
3981 powerpc*-*-winnt* | powerpc*-*-pe*)
3982 target_configdirs="$target_configdirs target-winsup"
3983 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3984 # always build newlib.
3985 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3987 # This is temporary until we can link against shared libraries
3988 powerpcle-*-solaris*)
3989 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3991 powerpc-*-beos*)
3992 noconfigdirs="$noconfigdirs gdb"
3994 rs6000-*-lynxos*)
3995 noconfigdirs="$noconfigdirs gprof"
3997 rs6000-*-aix*)
3998 noconfigdirs="$noconfigdirs gprof"
4000 rs6000-*-*)
4001 noconfigdirs="$noconfigdirs gprof"
4003 m68k-apollo-*)
4004 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4006 microblaze*)
4007 noconfigdirs="$noconfigdirs gprof"
4009 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4010 if test x$with_newlib = xyes; then
4011 noconfigdirs="$noconfigdirs gprof"
4014 mips*-*-irix5*)
4015 noconfigdirs="$noconfigdirs gprof target-libgloss"
4017 mips*-*-irix6*)
4018 noconfigdirs="$noconfigdirs gprof target-libgloss"
4020 mips*-*-bsd*)
4021 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4023 mips*-*-linux*)
4025 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4026 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4027 noconfigdirs="$noconfigdirs ld gas gprof"
4029 mips*-*-*)
4030 noconfigdirs="$noconfigdirs gprof"
4032 nvptx*-*-*)
4033 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4035 sh-*-*)
4036 case "${target}" in
4037 sh*-*-elf)
4040 noconfigdirs="$noconfigdirs target-libgloss" ;;
4041 esac
4043 sparc-*-sunos4*)
4044 if test x${is_cross_compiler} = xno ; then
4045 use_gnu_ld=no
4048 tic6x-*-*)
4049 noconfigdirs="$noconfigdirs sim"
4051 tilepro*-*-* | tilegx*-*-*)
4052 noconfigdirs="$noconfigdirs sim"
4054 v810-*-*)
4055 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4057 vax-*-*)
4058 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4060 wasm32-*-*)
4061 noconfigdirs="$noconfigdirs ld"
4063 loongarch*-*-linux*)
4065 loongarch*-*-*)
4066 noconfigdirs="$noconfigdirs gprof"
4068 esac
4070 # If we aren't building newlib, then don't build libgloss, since libgloss
4071 # depends upon some newlib header files.
4072 case "${noconfigdirs}" in
4073 *target-libgloss*) ;;
4074 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4075 esac
4077 # Work in distributions that contain no compiler tools, like Autoconf.
4078 host_makefile_frag=/dev/null
4079 if test -d ${srcdir}/config ; then
4080 case "${host}" in
4081 i[3456789]86-*-msdosdjgpp*)
4082 host_makefile_frag="config/mh-djgpp"
4084 *-cygwin*)
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4087 $as_echo_n "checking to see if cat works as expected... " >&6; }
4088 echo a >cygwin-cat-check
4089 if test `cat cygwin-cat-check` = a ; then
4090 rm cygwin-cat-check
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4092 $as_echo "yes" >&6; }
4093 else
4094 rm cygwin-cat-check
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4097 as_fn_error $? "The cat command does not ignore carriage return characters.
4098 Please either mount the build directory in binary mode or run the following
4099 commands before running any configure script:
4100 set -o igncr
4101 export SHELLOPTS
4102 " "$LINENO" 5
4105 host_makefile_frag="config/mh-cygwin"
4107 *-mingw*)
4108 host_makefile_frag="config/mh-mingw"
4110 alpha*-linux*)
4111 host_makefile_frag="config/mh-alpha-linux"
4113 hppa*-hp-hpux*)
4114 host_makefile_frag="config/mh-pa"
4116 hppa*-*)
4117 host_makefile_frag="config/mh-pa"
4119 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4120 host_makefile_frag="config/mh-darwin"
4122 powerpc-*-aix*)
4123 host_makefile_frag="config/mh-ppc-aix"
4125 rs6000-*-aix*)
4126 host_makefile_frag="config/mh-ppc-aix"
4128 esac
4131 if test "${build}" != "${host}" ; then
4132 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4133 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4134 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4135 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4136 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4137 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4138 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4139 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4140 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4141 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4142 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4143 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4144 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4145 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4146 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4147 else
4148 AR_FOR_BUILD="\$(AR)"
4149 AS_FOR_BUILD="\$(AS)"
4150 CC_FOR_BUILD="\$(CC)"
4151 CXX_FOR_BUILD="\$(CXX)"
4152 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4153 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4154 GOC_FOR_BUILD="\$(GOC)"
4155 GDC_FOR_BUILD="\$(GDC)"
4156 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4157 LD_FOR_BUILD="\$(LD)"
4158 NM_FOR_BUILD="\$(NM)"
4159 RANLIB_FOR_BUILD="\$(RANLIB)"
4160 WINDRES_FOR_BUILD="\$(WINDRES)"
4161 WINDMC_FOR_BUILD="\$(WINDMC)"
4164 ac_ext=c
4165 ac_cpp='$CPP $CPPFLAGS'
4166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169 if test -n "$ac_tool_prefix"; then
4170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_CC+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if test -n "$CC"; then
4178 ac_cv_prog_CC="$CC" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4191 done
4192 done
4193 IFS=$as_save_IFS
4197 CC=$ac_cv_prog_CC
4198 if test -n "$CC"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4200 $as_echo "$CC" >&6; }
4201 else
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4208 if test -z "$ac_cv_prog_CC"; then
4209 ac_ct_CC=$CC
4210 # Extract the first word of "gcc", so it can be a program name with args.
4211 set dummy gcc; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -n "$ac_ct_CC"; then
4218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227 ac_cv_prog_ac_ct_CC="gcc"
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4231 done
4232 done
4233 IFS=$as_save_IFS
4237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4238 if test -n "$ac_ct_CC"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4240 $as_echo "$ac_ct_CC" >&6; }
4241 else
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4246 if test "x$ac_ct_CC" = x; then
4247 CC=""
4248 else
4249 case $cross_compiling:$ac_tool_warned in
4250 yes:)
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4253 ac_tool_warned=yes ;;
4254 esac
4255 CC=$ac_ct_CC
4257 else
4258 CC="$ac_cv_prog_CC"
4261 if test -z "$CC"; then
4262 if test -n "$ac_tool_prefix"; then
4263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4264 set dummy ${ac_tool_prefix}cc; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_CC+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_CC="${ac_tool_prefix}cc"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4284 done
4285 done
4286 IFS=$as_save_IFS
4290 CC=$ac_cv_prog_CC
4291 if test -n "$CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293 $as_echo "$CC" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4302 if test -z "$CC"; then
4303 # Extract the first word of "cc", so it can be a program name with args.
4304 set dummy cc; 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 ${ac_cv_prog_CC+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$CC"; then
4311 ac_cv_prog_CC="$CC" # Let the user override the test.
4312 else
4313 ac_prog_rejected=no
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4322 ac_prog_rejected=yes
4323 continue
4325 ac_cv_prog_CC="cc"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4329 done
4330 done
4331 IFS=$as_save_IFS
4333 if test $ac_prog_rejected = yes; then
4334 # We found a bogon in the path, so make sure we never use it.
4335 set dummy $ac_cv_prog_CC
4336 shift
4337 if test $# != 0; then
4338 # We chose a different compiler from the bogus one.
4339 # However, it has the same basename, so the bogon will be chosen
4340 # first if we set CC to just the basename; use the full file name.
4341 shift
4342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4347 CC=$ac_cv_prog_CC
4348 if test -n "$CC"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4350 $as_echo "$CC" >&6; }
4351 else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4358 if test -z "$CC"; then
4359 if test -n "$ac_tool_prefix"; then
4360 for ac_prog in cl.exe
4362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_prog_CC+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC="$CC" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4383 done
4384 done
4385 IFS=$as_save_IFS
4389 CC=$ac_cv_prog_CC
4390 if test -n "$CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392 $as_echo "$CC" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4399 test -n "$CC" && break
4400 done
4402 if test -z "$CC"; then
4403 ac_ct_CC=$CC
4404 for ac_prog in cl.exe
4406 # Extract the first word of "$ac_prog", so it can be a program name with args.
4407 set dummy $ac_prog; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -n "$ac_ct_CC"; then
4414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4423 ac_cv_prog_ac_ct_CC="$ac_prog"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4427 done
4428 done
4429 IFS=$as_save_IFS
4433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4434 if test -n "$ac_ct_CC"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4436 $as_echo "$ac_ct_CC" >&6; }
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4443 test -n "$ac_ct_CC" && break
4444 done
4446 if test "x$ac_ct_CC" = x; then
4447 CC=""
4448 else
4449 case $cross_compiling:$ac_tool_warned in
4450 yes:)
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4453 ac_tool_warned=yes ;;
4454 esac
4455 CC=$ac_ct_CC
4462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4464 as_fn_error $? "no acceptable C compiler found in \$PATH
4465 See \`config.log' for more details" "$LINENO" 5; }
4467 # Provide some information about the compiler.
4468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4469 set X $ac_compile
4470 ac_compiler=$2
4471 for ac_option in --version -v -V -qversion; do
4472 { { ac_try="$ac_compiler $ac_option >&5"
4473 case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4480 ac_status=$?
4481 if test -s conftest.err; then
4482 sed '10a\
4483 ... rest of stderr output deleted ...
4484 10q' conftest.err >conftest.er1
4485 cat conftest.er1 >&5
4487 rm -f conftest.er1 conftest.err
4488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489 test $ac_status = 0; }
4490 done
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4496 main ()
4500 return 0;
4502 _ACEOF
4503 ac_clean_files_save=$ac_clean_files
4504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4505 # Try to create an executable without -o first, disregard a.out.
4506 # It will help us diagnose broken compilers, and finding out an intuition
4507 # of exeext.
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4509 $as_echo_n "checking whether the C compiler works... " >&6; }
4510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4512 # The possible output files:
4513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4515 ac_rmfiles=
4516 for ac_file in $ac_files
4518 case $ac_file in
4519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4521 esac
4522 done
4523 rm -f $ac_rmfiles
4525 if { { ac_try="$ac_link_default"
4526 case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529 esac
4530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4531 $as_echo "$ac_try_echo"; } >&5
4532 (eval "$ac_link_default") 2>&5
4533 ac_status=$?
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }; then :
4536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4539 # so that the user can short-circuit this test for compilers unknown to
4540 # Autoconf.
4541 for ac_file in $ac_files ''
4543 test -f "$ac_file" || continue
4544 case $ac_file in
4545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4547 [ab].out )
4548 # We found the default executable, but exeext='' is most
4549 # certainly right.
4550 break;;
4551 *.* )
4552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4553 then :; else
4554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4556 # We set ac_cv_exeext here because the later test for it is not
4557 # safe: cross compilers may not add the suffix if given an `-o'
4558 # argument, so we may need to know it at that point already.
4559 # Even if this section looks crufty: it has the advantage of
4560 # actually working.
4561 break;;
4563 break;;
4564 esac
4565 done
4566 test "$ac_cv_exeext" = no && ac_cv_exeext=
4568 else
4569 ac_file=''
4571 if test -z "$ac_file"; then :
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4574 $as_echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error 77 "C compiler cannot create executables
4580 See \`config.log' for more details" "$LINENO" 5; }
4581 else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4583 $as_echo "yes" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4586 $as_echo_n "checking for C compiler default output file name... " >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4588 $as_echo "$ac_file" >&6; }
4589 ac_exeext=$ac_cv_exeext
4591 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4592 ac_clean_files=$ac_clean_files_save
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4594 $as_echo_n "checking for suffix of executables... " >&6; }
4595 if { { ac_try="$ac_link"
4596 case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599 esac
4600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4601 $as_echo "$ac_try_echo"; } >&5
4602 (eval "$ac_link") 2>&5
4603 ac_status=$?
4604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4605 test $ac_status = 0; }; then :
4606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4607 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4608 # work properly (i.e., refer to `conftest.exe'), while it won't with
4609 # `rm'.
4610 for ac_file in conftest.exe conftest conftest.*; do
4611 test -f "$ac_file" || continue
4612 case $ac_file in
4613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4615 break;;
4616 * ) break;;
4617 esac
4618 done
4619 else
4620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4622 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4623 See \`config.log' for more details" "$LINENO" 5; }
4625 rm -f conftest conftest$ac_cv_exeext
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4627 $as_echo "$ac_cv_exeext" >&6; }
4629 rm -f conftest.$ac_ext
4630 EXEEXT=$ac_cv_exeext
4631 ac_exeext=$EXEEXT
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4634 #include <stdio.h>
4636 main ()
4638 FILE *f = fopen ("conftest.out", "w");
4639 return ferror (f) || fclose (f) != 0;
4642 return 0;
4644 _ACEOF
4645 ac_clean_files="$ac_clean_files conftest.out"
4646 # Check that the compiler produces executables we can run. If not, either
4647 # the compiler is broken, or we cross compile.
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4649 $as_echo_n "checking whether we are cross compiling... " >&6; }
4650 if test "$cross_compiling" != yes; then
4651 { { ac_try="$ac_link"
4652 case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655 esac
4656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4657 $as_echo "$ac_try_echo"; } >&5
4658 (eval "$ac_link") 2>&5
4659 ac_status=$?
4660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4661 test $ac_status = 0; }
4662 if { ac_try='./conftest$ac_cv_exeext'
4663 { { case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666 esac
4667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4668 $as_echo "$ac_try_echo"; } >&5
4669 (eval "$ac_try") 2>&5
4670 ac_status=$?
4671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672 test $ac_status = 0; }; }; then
4673 cross_compiling=no
4674 else
4675 if test "$cross_compiling" = maybe; then
4676 cross_compiling=yes
4677 else
4678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 as_fn_error $? "cannot run C compiled programs.
4681 If you meant to cross compile, use \`--host'.
4682 See \`config.log' for more details" "$LINENO" 5; }
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4687 $as_echo "$cross_compiling" >&6; }
4689 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4690 ac_clean_files=$ac_clean_files_save
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4692 $as_echo_n "checking for suffix of object files... " >&6; }
4693 if ${ac_cv_objext+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 main ()
4704 return 0;
4706 _ACEOF
4707 rm -f conftest.o conftest.obj
4708 if { { ac_try="$ac_compile"
4709 case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712 esac
4713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4714 $as_echo "$ac_try_echo"; } >&5
4715 (eval "$ac_compile") 2>&5
4716 ac_status=$?
4717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4718 test $ac_status = 0; }; then :
4719 for ac_file in conftest.o conftest.obj conftest.*; do
4720 test -f "$ac_file" || continue;
4721 case $ac_file in
4722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4723 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4724 break;;
4725 esac
4726 done
4727 else
4728 $as_echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4733 as_fn_error $? "cannot compute suffix of object files: cannot compile
4734 See \`config.log' for more details" "$LINENO" 5; }
4736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4739 $as_echo "$ac_cv_objext" >&6; }
4740 OBJEXT=$ac_cv_objext
4741 ac_objext=$OBJEXT
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4743 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4744 if ${ac_cv_c_compiler_gnu+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4751 main ()
4753 #ifndef __GNUC__
4754 choke me
4755 #endif
4758 return 0;
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_compiler_gnu=yes
4763 else
4764 ac_compiler_gnu=no
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4771 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4772 if test $ac_compiler_gnu = yes; then
4773 GCC=yes
4774 else
4775 GCC=
4777 ac_test_CFLAGS=${CFLAGS+set}
4778 ac_save_CFLAGS=$CFLAGS
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4780 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4781 if ${ac_cv_prog_cc_g+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 ac_save_c_werror_flag=$ac_c_werror_flag
4785 ac_c_werror_flag=yes
4786 ac_cv_prog_cc_g=no
4787 CFLAGS="-g"
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4792 main ()
4796 return 0;
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_prog_cc_g=yes
4801 else
4802 CFLAGS=""
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4807 main ()
4811 return 0;
4813 _ACEOF
4814 if ac_fn_c_try_compile "$LINENO"; then :
4816 else
4817 ac_c_werror_flag=$ac_save_c_werror_flag
4818 CFLAGS="-g"
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4823 main ()
4827 return 0;
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 ac_cv_prog_cc_g=yes
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 ac_c_werror_flag=$ac_save_c_werror_flag
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4841 $as_echo "$ac_cv_prog_cc_g" >&6; }
4842 if test "$ac_test_CFLAGS" = set; then
4843 CFLAGS=$ac_save_CFLAGS
4844 elif test $ac_cv_prog_cc_g = yes; then
4845 if test "$GCC" = yes; then
4846 CFLAGS="-g -O2"
4847 else
4848 CFLAGS="-g"
4850 else
4851 if test "$GCC" = yes; then
4852 CFLAGS="-O2"
4853 else
4854 CFLAGS=
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4858 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4859 if ${ac_cv_prog_cc_c89+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 ac_cv_prog_cc_c89=no
4863 ac_save_CC=$CC
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 #include <stdarg.h>
4867 #include <stdio.h>
4868 struct stat;
4869 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4870 struct buf { int x; };
4871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4872 static char *e (p, i)
4873 char **p;
4874 int i;
4876 return p[i];
4878 static char *f (char * (*g) (char **, int), char **p, ...)
4880 char *s;
4881 va_list v;
4882 va_start (v,p);
4883 s = g (p, va_arg (v,int));
4884 va_end (v);
4885 return s;
4888 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4889 function prototypes and stuff, but not '\xHH' hex character constants.
4890 These don't provoke an error unfortunately, instead are silently treated
4891 as 'x'. The following induces an error, until -std is added to get
4892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4893 array size at least. It's necessary to write '\x00'==0 to get something
4894 that's true only with -std. */
4895 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4897 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4898 inside strings and character constants. */
4899 #define FOO(x) 'x'
4900 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4902 int test (int i, double x);
4903 struct s1 {int (*f) (int a);};
4904 struct s2 {int (*f) (double a);};
4905 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4906 int argc;
4907 char **argv;
4909 main ()
4911 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4913 return 0;
4915 _ACEOF
4916 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4917 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4919 CC="$ac_save_CC $ac_arg"
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 ac_cv_prog_cc_c89=$ac_arg
4923 rm -f core conftest.err conftest.$ac_objext
4924 test "x$ac_cv_prog_cc_c89" != "xno" && break
4925 done
4926 rm -f conftest.$ac_ext
4927 CC=$ac_save_CC
4930 # AC_CACHE_VAL
4931 case "x$ac_cv_prog_cc_c89" in
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4934 $as_echo "none needed" >&6; } ;;
4935 xno)
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4937 $as_echo "unsupported" >&6; } ;;
4939 CC="$CC $ac_cv_prog_cc_c89"
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4941 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4942 esac
4943 if test "x$ac_cv_prog_cc_c89" != xno; then :
4947 ac_ext=c
4948 ac_cpp='$CPP $CPPFLAGS'
4949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4954 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4955 if ${ac_cv_prog_cc_c99+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 ac_cv_prog_cc_c99=no
4959 ac_save_CC=$CC
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962 #include <stdarg.h>
4963 #include <stdbool.h>
4964 #include <stdlib.h>
4965 #include <wchar.h>
4966 #include <stdio.h>
4968 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4969 #define debug(...) fprintf (stderr, __VA_ARGS__)
4970 #define showlist(...) puts (#__VA_ARGS__)
4971 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4972 static void
4973 test_varargs_macros (void)
4975 int x = 1234;
4976 int y = 5678;
4977 debug ("Flag");
4978 debug ("X = %d\n", x);
4979 showlist (The first, second, and third items.);
4980 report (x>y, "x is %d but y is %d", x, y);
4983 // Check long long types.
4984 #define BIG64 18446744073709551615ull
4985 #define BIG32 4294967295ul
4986 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4987 #if !BIG_OK
4988 your preprocessor is broken;
4989 #endif
4990 #if BIG_OK
4991 #else
4992 your preprocessor is broken;
4993 #endif
4994 static long long int bignum = -9223372036854775807LL;
4995 static unsigned long long int ubignum = BIG64;
4997 struct incomplete_array
4999 int datasize;
5000 double data[];
5003 struct named_init {
5004 int number;
5005 const wchar_t *name;
5006 double average;
5009 typedef const char *ccp;
5011 static inline int
5012 test_restrict (ccp restrict text)
5014 // See if C++-style comments work.
5015 // Iterate through items via the restricted pointer.
5016 // Also check for declarations in for loops.
5017 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5018 continue;
5019 return 0;
5022 // Check varargs and va_copy.
5023 static void
5024 test_varargs (const char *format, ...)
5026 va_list args;
5027 va_start (args, format);
5028 va_list args_copy;
5029 va_copy (args_copy, args);
5031 const char *str;
5032 int number;
5033 float fnumber;
5035 while (*format)
5037 switch (*format++)
5039 case 's': // string
5040 str = va_arg (args_copy, const char *);
5041 break;
5042 case 'd': // int
5043 number = va_arg (args_copy, int);
5044 break;
5045 case 'f': // float
5046 fnumber = va_arg (args_copy, double);
5047 break;
5048 default:
5049 break;
5052 va_end (args_copy);
5053 va_end (args);
5057 main ()
5060 // Check bool.
5061 _Bool success = false;
5063 // Check restrict.
5064 if (test_restrict ("String literal") == 0)
5065 success = true;
5066 char *restrict newvar = "Another string";
5068 // Check varargs.
5069 test_varargs ("s, d' f .", "string", 65, 34.234);
5070 test_varargs_macros ();
5072 // Check flexible array members.
5073 struct incomplete_array *ia =
5074 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5075 ia->datasize = 10;
5076 for (int i = 0; i < ia->datasize; ++i)
5077 ia->data[i] = i * 1.234;
5079 // Check named initializers.
5080 struct named_init ni = {
5081 .number = 34,
5082 .name = L"Test wide string",
5083 .average = 543.34343,
5086 ni.number = 58;
5088 int dynamic_array[ni.number];
5089 dynamic_array[ni.number - 1] = 543;
5091 // work around unused variable warnings
5092 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5093 || dynamic_array[ni.number - 1] != 543);
5096 return 0;
5098 _ACEOF
5099 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5101 CC="$ac_save_CC $ac_arg"
5102 if ac_fn_c_try_compile "$LINENO"; then :
5103 ac_cv_prog_cc_c99=$ac_arg
5105 rm -f core conftest.err conftest.$ac_objext
5106 test "x$ac_cv_prog_cc_c99" != "xno" && break
5107 done
5108 rm -f conftest.$ac_ext
5109 CC=$ac_save_CC
5112 # AC_CACHE_VAL
5113 case "x$ac_cv_prog_cc_c99" in
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5116 $as_echo "none needed" >&6; } ;;
5117 xno)
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5119 $as_echo "unsupported" >&6; } ;;
5121 CC="$CC $ac_cv_prog_cc_c99"
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5123 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5124 esac
5125 if test "x$ac_cv_prog_cc_c99" != xno; then :
5130 ac_ext=cpp
5131 ac_cpp='$CXXCPP $CPPFLAGS'
5132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5135 if test -z "$CXX"; then
5136 if test -n "$CCC"; then
5137 CXX=$CCC
5138 else
5139 if test -n "$ac_tool_prefix"; then
5140 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_CXX+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$CXX"; then
5150 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5163 done
5164 done
5165 IFS=$as_save_IFS
5169 CXX=$ac_cv_prog_CXX
5170 if test -n "$CXX"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5172 $as_echo "$CXX" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5179 test -n "$CXX" && break
5180 done
5182 if test -z "$CXX"; then
5183 ac_ct_CXX=$CXX
5184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5186 # Extract the first word of "$ac_prog", so it can be a program name with args.
5187 set dummy $ac_prog; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$ac_ct_CXX"; then
5194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_CXX="$ac_prog"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5207 done
5208 done
5209 IFS=$as_save_IFS
5213 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5214 if test -n "$ac_ct_CXX"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5216 $as_echo "$ac_ct_CXX" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5223 test -n "$ac_ct_CXX" && break
5224 done
5226 if test "x$ac_ct_CXX" = x; then
5227 CXX="g++"
5228 else
5229 case $cross_compiling:$ac_tool_warned in
5230 yes:)
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5233 ac_tool_warned=yes ;;
5234 esac
5235 CXX=$ac_ct_CXX
5241 # Provide some information about the compiler.
5242 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5243 set X $ac_compile
5244 ac_compiler=$2
5245 for ac_option in --version -v -V -qversion; do
5246 { { ac_try="$ac_compiler $ac_option >&5"
5247 case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250 esac
5251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5252 $as_echo "$ac_try_echo"; } >&5
5253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5254 ac_status=$?
5255 if test -s conftest.err; then
5256 sed '10a\
5257 ... rest of stderr output deleted ...
5258 10q' conftest.err >conftest.er1
5259 cat conftest.er1 >&5
5261 rm -f conftest.er1 conftest.err
5262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5263 test $ac_status = 0; }
5264 done
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5268 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5275 main ()
5277 #ifndef __GNUC__
5278 choke me
5279 #endif
5282 return 0;
5284 _ACEOF
5285 if ac_fn_cxx_try_compile "$LINENO"; then :
5286 ac_compiler_gnu=yes
5287 else
5288 ac_compiler_gnu=no
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5296 if test $ac_compiler_gnu = yes; then
5297 GXX=yes
5298 else
5299 GXX=
5301 ac_test_CXXFLAGS=${CXXFLAGS+set}
5302 ac_save_CXXFLAGS=$CXXFLAGS
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5305 if ${ac_cv_prog_cxx_g+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5309 ac_cxx_werror_flag=yes
5310 ac_cv_prog_cxx_g=no
5311 CXXFLAGS="-g"
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5316 main ()
5320 return 0;
5322 _ACEOF
5323 if ac_fn_cxx_try_compile "$LINENO"; then :
5324 ac_cv_prog_cxx_g=yes
5325 else
5326 CXXFLAGS=""
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5331 main ()
5335 return 0;
5337 _ACEOF
5338 if ac_fn_cxx_try_compile "$LINENO"; then :
5340 else
5341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5342 CXXFLAGS="-g"
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5347 main ()
5351 return 0;
5353 _ACEOF
5354 if ac_fn_cxx_try_compile "$LINENO"; then :
5355 ac_cv_prog_cxx_g=yes
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5366 if test "$ac_test_CXXFLAGS" = set; then
5367 CXXFLAGS=$ac_save_CXXFLAGS
5368 elif test $ac_cv_prog_cxx_g = yes; then
5369 if test "$GXX" = yes; then
5370 CXXFLAGS="-g -O2"
5371 else
5372 CXXFLAGS="-g"
5374 else
5375 if test "$GXX" = yes; then
5376 CXXFLAGS="-O2"
5377 else
5378 CXXFLAGS=
5381 ac_ext=c
5382 ac_cpp='$CPP $CPPFLAGS'
5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388 # We must set the default linker to the linker used by gcc for the correct
5389 # operation of libtool. If LD is not defined and we are using gcc, try to
5390 # set the LD default to the ld used by gcc.
5391 if test -z "$LD"; then
5392 if test "$GCC" = yes; then
5393 case $build in
5394 *-*-mingw*)
5395 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5397 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5398 esac
5399 case $gcc_prog_ld in
5400 # Accept absolute paths.
5401 [\\/]* | [A-Za-z]:[\\/]*)
5402 LD="$gcc_prog_ld" ;;
5403 esac
5407 # Check whether -static-libstdc++ -static-libgcc is supported.
5408 have_static_libs=no
5409 if test "$GCC" = yes; then
5410 saved_LDFLAGS="$LDFLAGS"
5412 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5414 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5415 ac_ext=cpp
5416 ac_cpp='$CXXCPP $CPPFLAGS'
5417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5425 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5426 #error -static-libstdc++ not implemented
5427 #endif
5428 int main() {}
5429 _ACEOF
5430 if ac_fn_cxx_try_link "$LINENO"; then :
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5432 $as_echo "yes" >&6; }; have_static_libs=yes
5433 else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5437 rm -f core conftest.err conftest.$ac_objext \
5438 conftest$ac_exeext conftest.$ac_ext
5439 ac_ext=c
5440 ac_cpp='$CPP $CPPFLAGS'
5441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446 LDFLAGS="$saved_LDFLAGS"
5452 if test -n "$ac_tool_prefix"; then
5453 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5454 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_GNATBIND+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if test -n "$GNATBIND"; then
5461 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5474 done
5475 done
5476 IFS=$as_save_IFS
5480 GNATBIND=$ac_cv_prog_GNATBIND
5481 if test -n "$GNATBIND"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5483 $as_echo "$GNATBIND" >&6; }
5484 else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5491 if test -z "$ac_cv_prog_GNATBIND"; then
5492 ac_ct_GNATBIND=$GNATBIND
5493 # Extract the first word of "gnatbind", so it can be a program name with args.
5494 set dummy gnatbind; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 if test -n "$ac_ct_GNATBIND"; then
5501 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5514 done
5515 done
5516 IFS=$as_save_IFS
5520 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5521 if test -n "$ac_ct_GNATBIND"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5523 $as_echo "$ac_ct_GNATBIND" >&6; }
5524 else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5529 if test "x$ac_ct_GNATBIND" = x; then
5530 GNATBIND="no"
5531 else
5532 case $cross_compiling:$ac_tool_warned in
5533 yes:)
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536 ac_tool_warned=yes ;;
5537 esac
5538 GNATBIND=$ac_ct_GNATBIND
5540 else
5541 GNATBIND="$ac_cv_prog_GNATBIND"
5544 if test -n "$ac_tool_prefix"; then
5545 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5546 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_GNATMAKE+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 if test -n "$GNATMAKE"; then
5553 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5566 done
5567 done
5568 IFS=$as_save_IFS
5572 GNATMAKE=$ac_cv_prog_GNATMAKE
5573 if test -n "$GNATMAKE"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5575 $as_echo "$GNATMAKE" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5583 if test -z "$ac_cv_prog_GNATMAKE"; then
5584 ac_ct_GNATMAKE=$GNATMAKE
5585 # Extract the first word of "gnatmake", so it can be a program name with args.
5586 set dummy gnatmake; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if test -n "$ac_ct_GNATMAKE"; then
5593 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5606 done
5607 done
5608 IFS=$as_save_IFS
5612 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5613 if test -n "$ac_ct_GNATMAKE"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5615 $as_echo "$ac_ct_GNATMAKE" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5621 if test "x$ac_ct_GNATMAKE" = x; then
5622 GNATMAKE="no"
5623 else
5624 case $cross_compiling:$ac_tool_warned in
5625 yes:)
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5628 ac_tool_warned=yes ;;
5629 esac
5630 GNATMAKE=$ac_ct_GNATMAKE
5632 else
5633 GNATMAKE="$ac_cv_prog_GNATMAKE"
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5637 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5638 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 cat >conftest.adb <<EOF
5642 pragma Warnings (Off);
5643 with System.CRTL;
5644 pragma Warnings (On);
5645 use type System.CRTL.int64;
5646 procedure conftest is begin null; end conftest;
5648 acx_cv_cc_gcc_supports_ada=no
5649 # There is a bug in old released versions of GCC which causes the
5650 # driver to exit successfully when the appropriate language module
5651 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5652 # Therefore we must check for the error message as well as an
5653 # unsuccessful exit.
5654 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5655 # given a .adb file, but produce no object file. So we must check
5656 # if an object file was really produced to guard against this.
5657 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5658 if test x"$errors" = x && test -f conftest.$ac_objext; then
5659 acx_cv_cc_gcc_supports_ada=yes
5661 rm -f conftest.*
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5664 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5666 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5667 have_gnat=yes
5668 else
5669 have_gnat=no
5674 if test -n "$ac_tool_prefix"; then
5675 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5676 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_GDC+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 if test -n "$GDC"; then
5683 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5696 done
5697 done
5698 IFS=$as_save_IFS
5702 GDC=$ac_cv_prog_GDC
5703 if test -n "$GDC"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5705 $as_echo "$GDC" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5713 if test -z "$ac_cv_prog_GDC"; then
5714 ac_ct_GDC=$GDC
5715 # Extract the first word of "gdc", so it can be a program name with args.
5716 set dummy gdc; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$ac_ct_GDC"; then
5723 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_ac_ct_GDC="gdc"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5738 IFS=$as_save_IFS
5742 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5743 if test -n "$ac_ct_GDC"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5745 $as_echo "$ac_ct_GDC" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5751 if test "x$ac_ct_GDC" = x; then
5752 GDC="no"
5753 else
5754 case $cross_compiling:$ac_tool_warned in
5755 yes:)
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758 ac_tool_warned=yes ;;
5759 esac
5760 GDC=$ac_ct_GDC
5762 else
5763 GDC="$ac_cv_prog_GDC"
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5767 $as_echo_n "checking whether the D compiler works... " >&6; }
5768 if ${acx_cv_d_compiler_works+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 cat >conftest.d <<EOF
5772 module conftest; int main() { return 0; }
5774 acx_cv_d_compiler_works=no
5775 if test "x$GDC" != xno; then
5776 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5777 if test x"$errors" = x && test -f conftest.$ac_objext; then
5778 acx_cv_d_compiler_works=yes
5780 rm -f conftest.*
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5784 $as_echo "$acx_cv_d_compiler_works" >&6; }
5785 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5786 have_gdc=yes
5787 else
5788 have_gdc=no
5791 for ac_prog in cargo
5793 # Extract the first word of "$ac_prog", so it can be a program name with args.
5794 set dummy $ac_prog; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_CARGO+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 if test -n "$CARGO"; then
5801 ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_CARGO="$ac_prog"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5814 done
5815 done
5816 IFS=$as_save_IFS
5820 CARGO=$ac_cv_prog_CARGO
5821 if test -n "$CARGO"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5823 $as_echo "$CARGO" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5830 test -n "$CARGO" && break
5831 done
5832 test -n "$CARGO" || CARGO="no"
5834 if test "x$CARGO" != xno; then
5835 have_cargo=yes
5836 else
5837 have_cargo=no
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5840 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5841 if ${gcc_cv_prog_cmp_skip+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 echo abfoo >t1
5845 echo cdfoo >t2
5846 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5847 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5848 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5850 else
5851 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5854 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5855 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5857 else
5858 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5861 rm t1 t2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5865 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5866 do_compare="$gcc_cv_prog_cmp_skip"
5870 # Check whether --enable-bootstrap was given.
5871 if test "${enable_bootstrap+set}" = set; then :
5872 enableval=$enable_bootstrap;
5873 else
5874 enable_bootstrap=default
5878 # Issue errors and warnings for invalid/strange bootstrap combinations.
5879 if test -r $srcdir/gcc/configure; then
5880 have_compiler=yes
5881 else
5882 have_compiler=no
5885 case "$have_compiler:$host:$target:$enable_bootstrap" in
5886 *:*:*:no) ;;
5888 # Default behavior. Enable bootstrap if we have a compiler
5889 # and we are in a native configuration.
5890 yes:$build:$build:default)
5891 enable_bootstrap=yes ;;
5893 *:*:*:default)
5894 enable_bootstrap=no ;;
5896 # We have a compiler and we are in a native configuration, bootstrap is ok
5897 yes:$build:$build:yes)
5900 # Other configurations, but we have a compiler. Assume the user knows
5901 # what he's doing.
5902 yes:*:*:yes)
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5904 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5907 # No compiler: if they passed --enable-bootstrap explicitly, fail
5908 no:*:*:yes)
5909 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5911 # Fail if wrong command line
5913 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5915 esac
5917 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5918 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5919 # require C++11 (or higher).
5920 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5921 CXX="$CXX -std=c++11"
5922 elif test "$have_compiler" = yes; then
5923 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5924 ac_ext=cpp
5925 ac_cpp='$CXXCPP $CPPFLAGS'
5926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5929 ac_success=no
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5932 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5933 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5940 // If the compiler admits that it is not ready for C++11, why torture it?
5941 // Hopefully, this will speed up the test.
5943 #ifndef __cplusplus
5945 #error "This is not a C++ compiler"
5947 #elif __cplusplus < 201103L
5949 #error "This is not a C++11 compiler"
5951 #else
5953 namespace cxx11
5956 namespace test_static_assert
5959 template <typename T>
5960 struct check
5962 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5967 namespace test_final_override
5970 struct Base
5972 virtual ~Base() {}
5973 virtual void f() {}
5976 struct Derived : public Base
5978 virtual ~Derived() override {}
5979 virtual void f() override {}
5984 namespace test_double_right_angle_brackets
5987 template < typename T >
5988 struct check {};
5990 typedef check<void> single_type;
5991 typedef check<check<void>> double_type;
5992 typedef check<check<check<void>>> triple_type;
5993 typedef check<check<check<check<void>>>> quadruple_type;
5997 namespace test_decltype
6003 int a = 1;
6004 decltype(a) b = 2;
6005 return a + b;
6010 namespace test_type_deduction
6013 template < typename T1, typename T2 >
6014 struct is_same
6016 static const bool value = false;
6019 template < typename T >
6020 struct is_same<T, T>
6022 static const bool value = true;
6025 template < typename T1, typename T2 >
6026 auto
6027 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6029 return a1 + a2;
6033 test(const int c, volatile int v)
6035 static_assert(is_same<int, decltype(0)>::value == true, "");
6036 static_assert(is_same<int, decltype(c)>::value == false, "");
6037 static_assert(is_same<int, decltype(v)>::value == false, "");
6038 auto ac = c;
6039 auto av = v;
6040 auto sumi = ac + av + 'x';
6041 auto sumf = ac + av + 1.0;
6042 static_assert(is_same<int, decltype(ac)>::value == true, "");
6043 static_assert(is_same<int, decltype(av)>::value == true, "");
6044 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6045 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6046 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6047 return (sumf > 0.0) ? sumi : add(c, v);
6052 namespace test_noexcept
6055 int f() { return 0; }
6056 int g() noexcept { return 0; }
6058 static_assert(noexcept(f()) == false, "");
6059 static_assert(noexcept(g()) == true, "");
6063 namespace test_constexpr
6066 template < typename CharT >
6067 unsigned long constexpr
6068 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6070 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6073 template < typename CharT >
6074 unsigned long constexpr
6075 strlen_c(const CharT *const s) noexcept
6077 return strlen_c_r(s, 0UL);
6080 static_assert(strlen_c("") == 0UL, "");
6081 static_assert(strlen_c("1") == 1UL, "");
6082 static_assert(strlen_c("example") == 7UL, "");
6083 static_assert(strlen_c("another\0example") == 7UL, "");
6087 namespace test_rvalue_references
6090 template < int N >
6091 struct answer
6093 static constexpr int value = N;
6096 answer<1> f(int&) { return answer<1>(); }
6097 answer<2> f(const int&) { return answer<2>(); }
6098 answer<3> f(int&&) { return answer<3>(); }
6100 void
6101 test()
6103 int i = 0;
6104 const int c = 0;
6105 static_assert(decltype(f(i))::value == 1, "");
6106 static_assert(decltype(f(c))::value == 2, "");
6107 static_assert(decltype(f(0))::value == 3, "");
6112 namespace test_uniform_initialization
6115 struct test
6117 static const int zero {};
6118 static const int one {1};
6121 static_assert(test::zero == 0, "");
6122 static_assert(test::one == 1, "");
6126 namespace test_lambdas
6129 void
6130 test1()
6132 auto lambda1 = [](){};
6133 auto lambda2 = lambda1;
6134 lambda1();
6135 lambda2();
6139 test2()
6141 auto a = [](int i, int j){ return i + j; }(1, 2);
6142 auto b = []() -> int { return '0'; }();
6143 auto c = [=](){ return a + b; }();
6144 auto d = [&](){ return c; }();
6145 auto e = [a, &b](int x) mutable {
6146 const auto identity = [](int y){ return y; };
6147 for (auto i = 0; i < a; ++i)
6148 a += b--;
6149 return x + identity(a + b);
6150 }(0);
6151 return a + b + c + d + e;
6155 test3()
6157 const auto nullary = [](){ return 0; };
6158 const auto unary = [](int x){ return x; };
6159 using nullary_t = decltype(nullary);
6160 using unary_t = decltype(unary);
6161 const auto higher1st = [](nullary_t f){ return f(); };
6162 const auto higher2nd = [unary](nullary_t f1){
6163 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6165 return higher1st(nullary) + higher2nd(nullary)(unary);
6170 namespace test_variadic_templates
6173 template <int...>
6174 struct sum;
6176 template <int N0, int... N1toN>
6177 struct sum<N0, N1toN...>
6179 static constexpr auto value = N0 + sum<N1toN...>::value;
6182 template <>
6183 struct sum<>
6185 static constexpr auto value = 0;
6188 static_assert(sum<>::value == 0, "");
6189 static_assert(sum<1>::value == 1, "");
6190 static_assert(sum<23>::value == 23, "");
6191 static_assert(sum<1, 2>::value == 3, "");
6192 static_assert(sum<5, 5, 11>::value == 21, "");
6193 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6197 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6198 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6199 // because of this.
6200 namespace test_template_alias_sfinae
6203 struct foo {};
6205 template<typename T>
6206 using member = typename T::member_type;
6208 template<typename T>
6209 void func(...) {}
6211 template<typename T>
6212 void func(member<T>*) {}
6214 void test();
6216 void test() { func<foo>(0); }
6220 } // namespace cxx11
6222 #endif // __cplusplus >= 201103L
6226 _ACEOF
6227 if ac_fn_cxx_try_compile "$LINENO"; then :
6228 ax_cv_cxx_compile_cxx11=yes
6229 else
6230 ax_cv_cxx_compile_cxx11=no
6232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6235 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6236 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6237 ac_success=yes
6240 if test x$ac_success = xno; then
6241 for alternative in ${ax_cxx_compile_alternatives}; do
6242 switch="-std=gnu++${alternative}"
6243 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6245 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6246 if eval \${$cachevar+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 ac_save_CXX="$CXX"
6250 CXX="$CXX $switch"
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6255 // If the compiler admits that it is not ready for C++11, why torture it?
6256 // Hopefully, this will speed up the test.
6258 #ifndef __cplusplus
6260 #error "This is not a C++ compiler"
6262 #elif __cplusplus < 201103L
6264 #error "This is not a C++11 compiler"
6266 #else
6268 namespace cxx11
6271 namespace test_static_assert
6274 template <typename T>
6275 struct check
6277 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6282 namespace test_final_override
6285 struct Base
6287 virtual ~Base() {}
6288 virtual void f() {}
6291 struct Derived : public Base
6293 virtual ~Derived() override {}
6294 virtual void f() override {}
6299 namespace test_double_right_angle_brackets
6302 template < typename T >
6303 struct check {};
6305 typedef check<void> single_type;
6306 typedef check<check<void>> double_type;
6307 typedef check<check<check<void>>> triple_type;
6308 typedef check<check<check<check<void>>>> quadruple_type;
6312 namespace test_decltype
6318 int a = 1;
6319 decltype(a) b = 2;
6320 return a + b;
6325 namespace test_type_deduction
6328 template < typename T1, typename T2 >
6329 struct is_same
6331 static const bool value = false;
6334 template < typename T >
6335 struct is_same<T, T>
6337 static const bool value = true;
6340 template < typename T1, typename T2 >
6341 auto
6342 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6344 return a1 + a2;
6348 test(const int c, volatile int v)
6350 static_assert(is_same<int, decltype(0)>::value == true, "");
6351 static_assert(is_same<int, decltype(c)>::value == false, "");
6352 static_assert(is_same<int, decltype(v)>::value == false, "");
6353 auto ac = c;
6354 auto av = v;
6355 auto sumi = ac + av + 'x';
6356 auto sumf = ac + av + 1.0;
6357 static_assert(is_same<int, decltype(ac)>::value == true, "");
6358 static_assert(is_same<int, decltype(av)>::value == true, "");
6359 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6360 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6361 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6362 return (sumf > 0.0) ? sumi : add(c, v);
6367 namespace test_noexcept
6370 int f() { return 0; }
6371 int g() noexcept { return 0; }
6373 static_assert(noexcept(f()) == false, "");
6374 static_assert(noexcept(g()) == true, "");
6378 namespace test_constexpr
6381 template < typename CharT >
6382 unsigned long constexpr
6383 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6385 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6388 template < typename CharT >
6389 unsigned long constexpr
6390 strlen_c(const CharT *const s) noexcept
6392 return strlen_c_r(s, 0UL);
6395 static_assert(strlen_c("") == 0UL, "");
6396 static_assert(strlen_c("1") == 1UL, "");
6397 static_assert(strlen_c("example") == 7UL, "");
6398 static_assert(strlen_c("another\0example") == 7UL, "");
6402 namespace test_rvalue_references
6405 template < int N >
6406 struct answer
6408 static constexpr int value = N;
6411 answer<1> f(int&) { return answer<1>(); }
6412 answer<2> f(const int&) { return answer<2>(); }
6413 answer<3> f(int&&) { return answer<3>(); }
6415 void
6416 test()
6418 int i = 0;
6419 const int c = 0;
6420 static_assert(decltype(f(i))::value == 1, "");
6421 static_assert(decltype(f(c))::value == 2, "");
6422 static_assert(decltype(f(0))::value == 3, "");
6427 namespace test_uniform_initialization
6430 struct test
6432 static const int zero {};
6433 static const int one {1};
6436 static_assert(test::zero == 0, "");
6437 static_assert(test::one == 1, "");
6441 namespace test_lambdas
6444 void
6445 test1()
6447 auto lambda1 = [](){};
6448 auto lambda2 = lambda1;
6449 lambda1();
6450 lambda2();
6454 test2()
6456 auto a = [](int i, int j){ return i + j; }(1, 2);
6457 auto b = []() -> int { return '0'; }();
6458 auto c = [=](){ return a + b; }();
6459 auto d = [&](){ return c; }();
6460 auto e = [a, &b](int x) mutable {
6461 const auto identity = [](int y){ return y; };
6462 for (auto i = 0; i < a; ++i)
6463 a += b--;
6464 return x + identity(a + b);
6465 }(0);
6466 return a + b + c + d + e;
6470 test3()
6472 const auto nullary = [](){ return 0; };
6473 const auto unary = [](int x){ return x; };
6474 using nullary_t = decltype(nullary);
6475 using unary_t = decltype(unary);
6476 const auto higher1st = [](nullary_t f){ return f(); };
6477 const auto higher2nd = [unary](nullary_t f1){
6478 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6480 return higher1st(nullary) + higher2nd(nullary)(unary);
6485 namespace test_variadic_templates
6488 template <int...>
6489 struct sum;
6491 template <int N0, int... N1toN>
6492 struct sum<N0, N1toN...>
6494 static constexpr auto value = N0 + sum<N1toN...>::value;
6497 template <>
6498 struct sum<>
6500 static constexpr auto value = 0;
6503 static_assert(sum<>::value == 0, "");
6504 static_assert(sum<1>::value == 1, "");
6505 static_assert(sum<23>::value == 23, "");
6506 static_assert(sum<1, 2>::value == 3, "");
6507 static_assert(sum<5, 5, 11>::value == 21, "");
6508 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6512 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6513 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6514 // because of this.
6515 namespace test_template_alias_sfinae
6518 struct foo {};
6520 template<typename T>
6521 using member = typename T::member_type;
6523 template<typename T>
6524 void func(...) {}
6526 template<typename T>
6527 void func(member<T>*) {}
6529 void test();
6531 void test() { func<foo>(0); }
6535 } // namespace cxx11
6537 #endif // __cplusplus >= 201103L
6541 _ACEOF
6542 if ac_fn_cxx_try_compile "$LINENO"; then :
6543 eval $cachevar=yes
6544 else
6545 eval $cachevar=no
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 CXX="$ac_save_CXX"
6550 eval ac_res=\$$cachevar
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6552 $as_echo "$ac_res" >&6; }
6553 if eval test x\$$cachevar = xyes; then
6554 CXX="$CXX $switch"
6555 if test -n "$CXXCPP" ; then
6556 CXXCPP="$CXXCPP $switch"
6558 ac_success=yes
6559 break
6561 done
6564 if test x$ac_success = xno; then
6565 for alternative in ${ax_cxx_compile_alternatives}; do
6566 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6567 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6569 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6570 if eval \${$cachevar+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 ac_save_CXX="$CXX"
6574 CXX="$CXX $switch"
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6579 // If the compiler admits that it is not ready for C++11, why torture it?
6580 // Hopefully, this will speed up the test.
6582 #ifndef __cplusplus
6584 #error "This is not a C++ compiler"
6586 #elif __cplusplus < 201103L
6588 #error "This is not a C++11 compiler"
6590 #else
6592 namespace cxx11
6595 namespace test_static_assert
6598 template <typename T>
6599 struct check
6601 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6606 namespace test_final_override
6609 struct Base
6611 virtual ~Base() {}
6612 virtual void f() {}
6615 struct Derived : public Base
6617 virtual ~Derived() override {}
6618 virtual void f() override {}
6623 namespace test_double_right_angle_brackets
6626 template < typename T >
6627 struct check {};
6629 typedef check<void> single_type;
6630 typedef check<check<void>> double_type;
6631 typedef check<check<check<void>>> triple_type;
6632 typedef check<check<check<check<void>>>> quadruple_type;
6636 namespace test_decltype
6642 int a = 1;
6643 decltype(a) b = 2;
6644 return a + b;
6649 namespace test_type_deduction
6652 template < typename T1, typename T2 >
6653 struct is_same
6655 static const bool value = false;
6658 template < typename T >
6659 struct is_same<T, T>
6661 static const bool value = true;
6664 template < typename T1, typename T2 >
6665 auto
6666 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6668 return a1 + a2;
6672 test(const int c, volatile int v)
6674 static_assert(is_same<int, decltype(0)>::value == true, "");
6675 static_assert(is_same<int, decltype(c)>::value == false, "");
6676 static_assert(is_same<int, decltype(v)>::value == false, "");
6677 auto ac = c;
6678 auto av = v;
6679 auto sumi = ac + av + 'x';
6680 auto sumf = ac + av + 1.0;
6681 static_assert(is_same<int, decltype(ac)>::value == true, "");
6682 static_assert(is_same<int, decltype(av)>::value == true, "");
6683 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6684 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6685 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6686 return (sumf > 0.0) ? sumi : add(c, v);
6691 namespace test_noexcept
6694 int f() { return 0; }
6695 int g() noexcept { return 0; }
6697 static_assert(noexcept(f()) == false, "");
6698 static_assert(noexcept(g()) == true, "");
6702 namespace test_constexpr
6705 template < typename CharT >
6706 unsigned long constexpr
6707 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6709 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6712 template < typename CharT >
6713 unsigned long constexpr
6714 strlen_c(const CharT *const s) noexcept
6716 return strlen_c_r(s, 0UL);
6719 static_assert(strlen_c("") == 0UL, "");
6720 static_assert(strlen_c("1") == 1UL, "");
6721 static_assert(strlen_c("example") == 7UL, "");
6722 static_assert(strlen_c("another\0example") == 7UL, "");
6726 namespace test_rvalue_references
6729 template < int N >
6730 struct answer
6732 static constexpr int value = N;
6735 answer<1> f(int&) { return answer<1>(); }
6736 answer<2> f(const int&) { return answer<2>(); }
6737 answer<3> f(int&&) { return answer<3>(); }
6739 void
6740 test()
6742 int i = 0;
6743 const int c = 0;
6744 static_assert(decltype(f(i))::value == 1, "");
6745 static_assert(decltype(f(c))::value == 2, "");
6746 static_assert(decltype(f(0))::value == 3, "");
6751 namespace test_uniform_initialization
6754 struct test
6756 static const int zero {};
6757 static const int one {1};
6760 static_assert(test::zero == 0, "");
6761 static_assert(test::one == 1, "");
6765 namespace test_lambdas
6768 void
6769 test1()
6771 auto lambda1 = [](){};
6772 auto lambda2 = lambda1;
6773 lambda1();
6774 lambda2();
6778 test2()
6780 auto a = [](int i, int j){ return i + j; }(1, 2);
6781 auto b = []() -> int { return '0'; }();
6782 auto c = [=](){ return a + b; }();
6783 auto d = [&](){ return c; }();
6784 auto e = [a, &b](int x) mutable {
6785 const auto identity = [](int y){ return y; };
6786 for (auto i = 0; i < a; ++i)
6787 a += b--;
6788 return x + identity(a + b);
6789 }(0);
6790 return a + b + c + d + e;
6794 test3()
6796 const auto nullary = [](){ return 0; };
6797 const auto unary = [](int x){ return x; };
6798 using nullary_t = decltype(nullary);
6799 using unary_t = decltype(unary);
6800 const auto higher1st = [](nullary_t f){ return f(); };
6801 const auto higher2nd = [unary](nullary_t f1){
6802 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6804 return higher1st(nullary) + higher2nd(nullary)(unary);
6809 namespace test_variadic_templates
6812 template <int...>
6813 struct sum;
6815 template <int N0, int... N1toN>
6816 struct sum<N0, N1toN...>
6818 static constexpr auto value = N0 + sum<N1toN...>::value;
6821 template <>
6822 struct sum<>
6824 static constexpr auto value = 0;
6827 static_assert(sum<>::value == 0, "");
6828 static_assert(sum<1>::value == 1, "");
6829 static_assert(sum<23>::value == 23, "");
6830 static_assert(sum<1, 2>::value == 3, "");
6831 static_assert(sum<5, 5, 11>::value == 21, "");
6832 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6836 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6837 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6838 // because of this.
6839 namespace test_template_alias_sfinae
6842 struct foo {};
6844 template<typename T>
6845 using member = typename T::member_type;
6847 template<typename T>
6848 void func(...) {}
6850 template<typename T>
6851 void func(member<T>*) {}
6853 void test();
6855 void test() { func<foo>(0); }
6859 } // namespace cxx11
6861 #endif // __cplusplus >= 201103L
6865 _ACEOF
6866 if ac_fn_cxx_try_compile "$LINENO"; then :
6867 eval $cachevar=yes
6868 else
6869 eval $cachevar=no
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 CXX="$ac_save_CXX"
6874 eval ac_res=\$$cachevar
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6876 $as_echo "$ac_res" >&6; }
6877 if eval test x\$$cachevar = xyes; then
6878 CXX="$CXX $switch"
6879 if test -n "$CXXCPP" ; then
6880 CXXCPP="$CXXCPP $switch"
6882 ac_success=yes
6883 break
6885 done
6886 if test x$ac_success = xyes; then
6887 break
6889 done
6892 ac_ext=c
6893 ac_cpp='$CPP $CPPFLAGS'
6894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6898 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6899 if test x$ac_success = xno; then
6900 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6903 if test x$ac_success = xno; then
6904 HAVE_CXX11=0
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6906 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6907 else
6908 HAVE_CXX11=1
6910 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6916 if test "${build}" != "${host}"; then
6917 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6918 ac_ext=cpp
6919 ac_cpp='$CXXCPP $CPPFLAGS'
6920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6923 ac_success=no
6924 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6925 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6926 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6927 CXX="$CXX_FOR_BUILD"
6928 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6929 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6931 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6932 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6939 // If the compiler admits that it is not ready for C++11, why torture it?
6940 // Hopefully, this will speed up the test.
6942 #ifndef __cplusplus
6944 #error "This is not a C++ compiler"
6946 #elif __cplusplus < 201103L
6948 #error "This is not a C++11 compiler"
6950 #else
6952 namespace cxx11
6955 namespace test_static_assert
6958 template <typename T>
6959 struct check
6961 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6966 namespace test_final_override
6969 struct Base
6971 virtual ~Base() {}
6972 virtual void f() {}
6975 struct Derived : public Base
6977 virtual ~Derived() override {}
6978 virtual void f() override {}
6983 namespace test_double_right_angle_brackets
6986 template < typename T >
6987 struct check {};
6989 typedef check<void> single_type;
6990 typedef check<check<void>> double_type;
6991 typedef check<check<check<void>>> triple_type;
6992 typedef check<check<check<check<void>>>> quadruple_type;
6996 namespace test_decltype
7002 int a = 1;
7003 decltype(a) b = 2;
7004 return a + b;
7009 namespace test_type_deduction
7012 template < typename T1, typename T2 >
7013 struct is_same
7015 static const bool value = false;
7018 template < typename T >
7019 struct is_same<T, T>
7021 static const bool value = true;
7024 template < typename T1, typename T2 >
7025 auto
7026 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7028 return a1 + a2;
7032 test(const int c, volatile int v)
7034 static_assert(is_same<int, decltype(0)>::value == true, "");
7035 static_assert(is_same<int, decltype(c)>::value == false, "");
7036 static_assert(is_same<int, decltype(v)>::value == false, "");
7037 auto ac = c;
7038 auto av = v;
7039 auto sumi = ac + av + 'x';
7040 auto sumf = ac + av + 1.0;
7041 static_assert(is_same<int, decltype(ac)>::value == true, "");
7042 static_assert(is_same<int, decltype(av)>::value == true, "");
7043 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7044 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7045 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7046 return (sumf > 0.0) ? sumi : add(c, v);
7051 namespace test_noexcept
7054 int f() { return 0; }
7055 int g() noexcept { return 0; }
7057 static_assert(noexcept(f()) == false, "");
7058 static_assert(noexcept(g()) == true, "");
7062 namespace test_constexpr
7065 template < typename CharT >
7066 unsigned long constexpr
7067 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7069 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7072 template < typename CharT >
7073 unsigned long constexpr
7074 strlen_c(const CharT *const s) noexcept
7076 return strlen_c_r(s, 0UL);
7079 static_assert(strlen_c("") == 0UL, "");
7080 static_assert(strlen_c("1") == 1UL, "");
7081 static_assert(strlen_c("example") == 7UL, "");
7082 static_assert(strlen_c("another\0example") == 7UL, "");
7086 namespace test_rvalue_references
7089 template < int N >
7090 struct answer
7092 static constexpr int value = N;
7095 answer<1> f(int&) { return answer<1>(); }
7096 answer<2> f(const int&) { return answer<2>(); }
7097 answer<3> f(int&&) { return answer<3>(); }
7099 void
7100 test()
7102 int i = 0;
7103 const int c = 0;
7104 static_assert(decltype(f(i))::value == 1, "");
7105 static_assert(decltype(f(c))::value == 2, "");
7106 static_assert(decltype(f(0))::value == 3, "");
7111 namespace test_uniform_initialization
7114 struct test
7116 static const int zero {};
7117 static const int one {1};
7120 static_assert(test::zero == 0, "");
7121 static_assert(test::one == 1, "");
7125 namespace test_lambdas
7128 void
7129 test1()
7131 auto lambda1 = [](){};
7132 auto lambda2 = lambda1;
7133 lambda1();
7134 lambda2();
7138 test2()
7140 auto a = [](int i, int j){ return i + j; }(1, 2);
7141 auto b = []() -> int { return '0'; }();
7142 auto c = [=](){ return a + b; }();
7143 auto d = [&](){ return c; }();
7144 auto e = [a, &b](int x) mutable {
7145 const auto identity = [](int y){ return y; };
7146 for (auto i = 0; i < a; ++i)
7147 a += b--;
7148 return x + identity(a + b);
7149 }(0);
7150 return a + b + c + d + e;
7154 test3()
7156 const auto nullary = [](){ return 0; };
7157 const auto unary = [](int x){ return x; };
7158 using nullary_t = decltype(nullary);
7159 using unary_t = decltype(unary);
7160 const auto higher1st = [](nullary_t f){ return f(); };
7161 const auto higher2nd = [unary](nullary_t f1){
7162 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7164 return higher1st(nullary) + higher2nd(nullary)(unary);
7169 namespace test_variadic_templates
7172 template <int...>
7173 struct sum;
7175 template <int N0, int... N1toN>
7176 struct sum<N0, N1toN...>
7178 static constexpr auto value = N0 + sum<N1toN...>::value;
7181 template <>
7182 struct sum<>
7184 static constexpr auto value = 0;
7187 static_assert(sum<>::value == 0, "");
7188 static_assert(sum<1>::value == 1, "");
7189 static_assert(sum<23>::value == 23, "");
7190 static_assert(sum<1, 2>::value == 3, "");
7191 static_assert(sum<5, 5, 11>::value == 21, "");
7192 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7196 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7197 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7198 // because of this.
7199 namespace test_template_alias_sfinae
7202 struct foo {};
7204 template<typename T>
7205 using member = typename T::member_type;
7207 template<typename T>
7208 void func(...) {}
7210 template<typename T>
7211 void func(member<T>*) {}
7213 void test();
7215 void test() { func<foo>(0); }
7219 } // namespace cxx11
7221 #endif // __cplusplus >= 201103L
7225 _ACEOF
7226 if ac_fn_cxx_try_compile "$LINENO"; then :
7227 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7228 else
7229 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7234 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7235 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7236 ac_success=yes
7239 if test x$ac_success = xno; then
7240 for alternative in ${ax_cxx_compile_alternatives}; do
7241 switch="-std=gnu++${alternative}"
7242 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7244 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7245 if eval \${$cachevar+:} false; then :
7246 $as_echo_n "(cached) " >&6
7247 else
7248 ac_save_CXX="$CXX"
7249 CXX="$CXX $switch"
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7254 // If the compiler admits that it is not ready for C++11, why torture it?
7255 // Hopefully, this will speed up the test.
7257 #ifndef __cplusplus
7259 #error "This is not a C++ compiler"
7261 #elif __cplusplus < 201103L
7263 #error "This is not a C++11 compiler"
7265 #else
7267 namespace cxx11
7270 namespace test_static_assert
7273 template <typename T>
7274 struct check
7276 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7281 namespace test_final_override
7284 struct Base
7286 virtual ~Base() {}
7287 virtual void f() {}
7290 struct Derived : public Base
7292 virtual ~Derived() override {}
7293 virtual void f() override {}
7298 namespace test_double_right_angle_brackets
7301 template < typename T >
7302 struct check {};
7304 typedef check<void> single_type;
7305 typedef check<check<void>> double_type;
7306 typedef check<check<check<void>>> triple_type;
7307 typedef check<check<check<check<void>>>> quadruple_type;
7311 namespace test_decltype
7317 int a = 1;
7318 decltype(a) b = 2;
7319 return a + b;
7324 namespace test_type_deduction
7327 template < typename T1, typename T2 >
7328 struct is_same
7330 static const bool value = false;
7333 template < typename T >
7334 struct is_same<T, T>
7336 static const bool value = true;
7339 template < typename T1, typename T2 >
7340 auto
7341 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7343 return a1 + a2;
7347 test(const int c, volatile int v)
7349 static_assert(is_same<int, decltype(0)>::value == true, "");
7350 static_assert(is_same<int, decltype(c)>::value == false, "");
7351 static_assert(is_same<int, decltype(v)>::value == false, "");
7352 auto ac = c;
7353 auto av = v;
7354 auto sumi = ac + av + 'x';
7355 auto sumf = ac + av + 1.0;
7356 static_assert(is_same<int, decltype(ac)>::value == true, "");
7357 static_assert(is_same<int, decltype(av)>::value == true, "");
7358 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7359 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7360 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7361 return (sumf > 0.0) ? sumi : add(c, v);
7366 namespace test_noexcept
7369 int f() { return 0; }
7370 int g() noexcept { return 0; }
7372 static_assert(noexcept(f()) == false, "");
7373 static_assert(noexcept(g()) == true, "");
7377 namespace test_constexpr
7380 template < typename CharT >
7381 unsigned long constexpr
7382 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7384 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7387 template < typename CharT >
7388 unsigned long constexpr
7389 strlen_c(const CharT *const s) noexcept
7391 return strlen_c_r(s, 0UL);
7394 static_assert(strlen_c("") == 0UL, "");
7395 static_assert(strlen_c("1") == 1UL, "");
7396 static_assert(strlen_c("example") == 7UL, "");
7397 static_assert(strlen_c("another\0example") == 7UL, "");
7401 namespace test_rvalue_references
7404 template < int N >
7405 struct answer
7407 static constexpr int value = N;
7410 answer<1> f(int&) { return answer<1>(); }
7411 answer<2> f(const int&) { return answer<2>(); }
7412 answer<3> f(int&&) { return answer<3>(); }
7414 void
7415 test()
7417 int i = 0;
7418 const int c = 0;
7419 static_assert(decltype(f(i))::value == 1, "");
7420 static_assert(decltype(f(c))::value == 2, "");
7421 static_assert(decltype(f(0))::value == 3, "");
7426 namespace test_uniform_initialization
7429 struct test
7431 static const int zero {};
7432 static const int one {1};
7435 static_assert(test::zero == 0, "");
7436 static_assert(test::one == 1, "");
7440 namespace test_lambdas
7443 void
7444 test1()
7446 auto lambda1 = [](){};
7447 auto lambda2 = lambda1;
7448 lambda1();
7449 lambda2();
7453 test2()
7455 auto a = [](int i, int j){ return i + j; }(1, 2);
7456 auto b = []() -> int { return '0'; }();
7457 auto c = [=](){ return a + b; }();
7458 auto d = [&](){ return c; }();
7459 auto e = [a, &b](int x) mutable {
7460 const auto identity = [](int y){ return y; };
7461 for (auto i = 0; i < a; ++i)
7462 a += b--;
7463 return x + identity(a + b);
7464 }(0);
7465 return a + b + c + d + e;
7469 test3()
7471 const auto nullary = [](){ return 0; };
7472 const auto unary = [](int x){ return x; };
7473 using nullary_t = decltype(nullary);
7474 using unary_t = decltype(unary);
7475 const auto higher1st = [](nullary_t f){ return f(); };
7476 const auto higher2nd = [unary](nullary_t f1){
7477 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7479 return higher1st(nullary) + higher2nd(nullary)(unary);
7484 namespace test_variadic_templates
7487 template <int...>
7488 struct sum;
7490 template <int N0, int... N1toN>
7491 struct sum<N0, N1toN...>
7493 static constexpr auto value = N0 + sum<N1toN...>::value;
7496 template <>
7497 struct sum<>
7499 static constexpr auto value = 0;
7502 static_assert(sum<>::value == 0, "");
7503 static_assert(sum<1>::value == 1, "");
7504 static_assert(sum<23>::value == 23, "");
7505 static_assert(sum<1, 2>::value == 3, "");
7506 static_assert(sum<5, 5, 11>::value == 21, "");
7507 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7511 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7512 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7513 // because of this.
7514 namespace test_template_alias_sfinae
7517 struct foo {};
7519 template<typename T>
7520 using member = typename T::member_type;
7522 template<typename T>
7523 void func(...) {}
7525 template<typename T>
7526 void func(member<T>*) {}
7528 void test();
7530 void test() { func<foo>(0); }
7534 } // namespace cxx11
7536 #endif // __cplusplus >= 201103L
7540 _ACEOF
7541 if ac_fn_cxx_try_compile "$LINENO"; then :
7542 eval $cachevar=yes
7543 else
7544 eval $cachevar=no
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 CXX="$ac_save_CXX"
7549 eval ac_res=\$$cachevar
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7551 $as_echo "$ac_res" >&6; }
7552 if eval test x\$$cachevar = xyes; then
7553 CXX="$CXX $switch"
7554 if test -n "$CXXCPP" ; then
7555 CXXCPP="$CXXCPP $switch"
7557 ac_success=yes
7558 break
7560 done
7563 if test x$ac_success = xno; then
7564 for alternative in ${ax_cxx_compile_alternatives}; do
7565 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7566 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7568 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7569 if eval \${$cachevar+:} false; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 ac_save_CXX="$CXX"
7573 CXX="$CXX $switch"
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7578 // If the compiler admits that it is not ready for C++11, why torture it?
7579 // Hopefully, this will speed up the test.
7581 #ifndef __cplusplus
7583 #error "This is not a C++ compiler"
7585 #elif __cplusplus < 201103L
7587 #error "This is not a C++11 compiler"
7589 #else
7591 namespace cxx11
7594 namespace test_static_assert
7597 template <typename T>
7598 struct check
7600 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7605 namespace test_final_override
7608 struct Base
7610 virtual ~Base() {}
7611 virtual void f() {}
7614 struct Derived : public Base
7616 virtual ~Derived() override {}
7617 virtual void f() override {}
7622 namespace test_double_right_angle_brackets
7625 template < typename T >
7626 struct check {};
7628 typedef check<void> single_type;
7629 typedef check<check<void>> double_type;
7630 typedef check<check<check<void>>> triple_type;
7631 typedef check<check<check<check<void>>>> quadruple_type;
7635 namespace test_decltype
7641 int a = 1;
7642 decltype(a) b = 2;
7643 return a + b;
7648 namespace test_type_deduction
7651 template < typename T1, typename T2 >
7652 struct is_same
7654 static const bool value = false;
7657 template < typename T >
7658 struct is_same<T, T>
7660 static const bool value = true;
7663 template < typename T1, typename T2 >
7664 auto
7665 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7667 return a1 + a2;
7671 test(const int c, volatile int v)
7673 static_assert(is_same<int, decltype(0)>::value == true, "");
7674 static_assert(is_same<int, decltype(c)>::value == false, "");
7675 static_assert(is_same<int, decltype(v)>::value == false, "");
7676 auto ac = c;
7677 auto av = v;
7678 auto sumi = ac + av + 'x';
7679 auto sumf = ac + av + 1.0;
7680 static_assert(is_same<int, decltype(ac)>::value == true, "");
7681 static_assert(is_same<int, decltype(av)>::value == true, "");
7682 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7683 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7684 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7685 return (sumf > 0.0) ? sumi : add(c, v);
7690 namespace test_noexcept
7693 int f() { return 0; }
7694 int g() noexcept { return 0; }
7696 static_assert(noexcept(f()) == false, "");
7697 static_assert(noexcept(g()) == true, "");
7701 namespace test_constexpr
7704 template < typename CharT >
7705 unsigned long constexpr
7706 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7708 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7711 template < typename CharT >
7712 unsigned long constexpr
7713 strlen_c(const CharT *const s) noexcept
7715 return strlen_c_r(s, 0UL);
7718 static_assert(strlen_c("") == 0UL, "");
7719 static_assert(strlen_c("1") == 1UL, "");
7720 static_assert(strlen_c("example") == 7UL, "");
7721 static_assert(strlen_c("another\0example") == 7UL, "");
7725 namespace test_rvalue_references
7728 template < int N >
7729 struct answer
7731 static constexpr int value = N;
7734 answer<1> f(int&) { return answer<1>(); }
7735 answer<2> f(const int&) { return answer<2>(); }
7736 answer<3> f(int&&) { return answer<3>(); }
7738 void
7739 test()
7741 int i = 0;
7742 const int c = 0;
7743 static_assert(decltype(f(i))::value == 1, "");
7744 static_assert(decltype(f(c))::value == 2, "");
7745 static_assert(decltype(f(0))::value == 3, "");
7750 namespace test_uniform_initialization
7753 struct test
7755 static const int zero {};
7756 static const int one {1};
7759 static_assert(test::zero == 0, "");
7760 static_assert(test::one == 1, "");
7764 namespace test_lambdas
7767 void
7768 test1()
7770 auto lambda1 = [](){};
7771 auto lambda2 = lambda1;
7772 lambda1();
7773 lambda2();
7777 test2()
7779 auto a = [](int i, int j){ return i + j; }(1, 2);
7780 auto b = []() -> int { return '0'; }();
7781 auto c = [=](){ return a + b; }();
7782 auto d = [&](){ return c; }();
7783 auto e = [a, &b](int x) mutable {
7784 const auto identity = [](int y){ return y; };
7785 for (auto i = 0; i < a; ++i)
7786 a += b--;
7787 return x + identity(a + b);
7788 }(0);
7789 return a + b + c + d + e;
7793 test3()
7795 const auto nullary = [](){ return 0; };
7796 const auto unary = [](int x){ return x; };
7797 using nullary_t = decltype(nullary);
7798 using unary_t = decltype(unary);
7799 const auto higher1st = [](nullary_t f){ return f(); };
7800 const auto higher2nd = [unary](nullary_t f1){
7801 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7803 return higher1st(nullary) + higher2nd(nullary)(unary);
7808 namespace test_variadic_templates
7811 template <int...>
7812 struct sum;
7814 template <int N0, int... N1toN>
7815 struct sum<N0, N1toN...>
7817 static constexpr auto value = N0 + sum<N1toN...>::value;
7820 template <>
7821 struct sum<>
7823 static constexpr auto value = 0;
7826 static_assert(sum<>::value == 0, "");
7827 static_assert(sum<1>::value == 1, "");
7828 static_assert(sum<23>::value == 23, "");
7829 static_assert(sum<1, 2>::value == 3, "");
7830 static_assert(sum<5, 5, 11>::value == 21, "");
7831 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7835 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7836 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7837 // because of this.
7838 namespace test_template_alias_sfinae
7841 struct foo {};
7843 template<typename T>
7844 using member = typename T::member_type;
7846 template<typename T>
7847 void func(...) {}
7849 template<typename T>
7850 void func(member<T>*) {}
7852 void test();
7854 void test() { func<foo>(0); }
7858 } // namespace cxx11
7860 #endif // __cplusplus >= 201103L
7864 _ACEOF
7865 if ac_fn_cxx_try_compile "$LINENO"; then :
7866 eval $cachevar=yes
7867 else
7868 eval $cachevar=no
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 CXX="$ac_save_CXX"
7873 eval ac_res=\$$cachevar
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7875 $as_echo "$ac_res" >&6; }
7876 if eval test x\$$cachevar = xyes; then
7877 CXX="$CXX $switch"
7878 if test -n "$CXXCPP" ; then
7879 CXXCPP="$CXXCPP $switch"
7881 ac_success=yes
7882 break
7884 done
7885 if test x$ac_success = xyes; then
7886 break
7888 done
7890 CXX_FOR_BUILD="$CXX"
7891 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7892 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7893 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7894 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7895 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7896 ac_ext=c
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7903 if test x$ac_success = xno; then
7904 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7907 if test x$ac_success = xno; then
7908 HAVE_CXX11_FOR_BUILD=0
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7910 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7911 else
7912 HAVE_CXX11_FOR_BUILD=1
7914 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7922 # Check whether --enable-pgo-build was given.
7923 if test "${enable_pgo_build+set}" = set; then :
7924 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7925 else
7926 enable_pgo_build=no
7930 # Issue errors and warnings for invalid/strange PGO build combinations.
7931 case "$have_compiler:$host:$target:$enable_pgo_build" in
7932 *:*:*:no) ;;
7934 # Allow the PGO build only if we aren't building a compiler and
7935 # we are in a native configuration.
7936 no:$build:$build:yes | no:$build:$build:lto) ;;
7938 # Disallow the PGO bootstrap if we are building a compiler.
7939 yes:*:*:yes | yes:*:*:lto)
7940 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7943 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7945 esac
7947 if test "$enable_pgo_build" != "no"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7949 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7950 old_CFLAGS="$CFLAGS"
7951 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7952 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h. */
7956 int foo;
7957 _ACEOF
7958 if ac_fn_c_try_compile "$LINENO"; then :
7960 else
7961 PGO_BUILD_GEN_CFLAGS=
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 CFLAGS="$old_CFLAGS"
7965 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7967 $as_echo "yes" >&6; }
7968 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7972 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7975 if test "$enable_pgo_build" = "lto"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7977 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7978 old_CFLAGS="$CFLAGS"
7979 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7980 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7983 int foo;
7984 _ACEOF
7985 if ac_fn_c_try_compile "$LINENO"; then :
7987 else
7988 PGO_BUILD_LTO_CFLAGS=
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991 CFLAGS="$old_CFLAGS"
7992 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7994 $as_echo "yes" >&6; }
7995 else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7999 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8007 # Used for setting $lt_cv_objdir
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8009 $as_echo_n "checking for objdir... " >&6; }
8010 if ${lt_cv_objdir+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 rm -f .libs 2>/dev/null
8014 mkdir .libs 2>/dev/null
8015 if test -d .libs; then
8016 lt_cv_objdir=.libs
8017 else
8018 # MS-DOS does not allow filenames that begin with a dot.
8019 lt_cv_objdir=_libs
8021 rmdir .libs 2>/dev/null
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8024 $as_echo "$lt_cv_objdir" >&6; }
8025 objdir=$lt_cv_objdir
8031 cat >>confdefs.h <<_ACEOF
8032 #define LT_OBJDIR "$lt_cv_objdir/"
8033 _ACEOF
8037 # Check for GMP, MPFR and MPC
8038 require_gmp=no
8039 require_mpc=no
8040 if test -d ${srcdir}/gcc ; then
8041 require_gmp=yes
8042 require_mpc=yes
8044 if test -d ${srcdir}/gdb ; then
8045 if test "x$enable_gdb" != xno; then
8046 require_gmp=yes
8050 gmplibs="-lmpfr -lgmp"
8051 if test x"$require_mpc" = "xyes" ; then
8052 gmplibs="-lmpc $gmplibs"
8054 gmpinc=
8055 have_gmp=no
8057 # Specify a location for mpc
8058 # check for this first so it ends up on the link line before mpfr.
8060 # Check whether --with-mpc was given.
8061 if test "${with_mpc+set}" = set; then :
8062 withval=$with_mpc;
8066 # Check whether --with-mpc-include was given.
8067 if test "${with_mpc_include+set}" = set; then :
8068 withval=$with_mpc_include;
8072 # Check whether --with-mpc-lib was given.
8073 if test "${with_mpc_lib+set}" = set; then :
8074 withval=$with_mpc_lib;
8078 if test "x$with_mpc" != x; then
8079 gmplibs="-L$with_mpc/lib $gmplibs"
8080 gmpinc="-I$with_mpc/include $gmpinc"
8082 if test "x$with_mpc_include" != x; then
8083 gmpinc="-I$with_mpc_include $gmpinc"
8085 if test "x$with_mpc_lib" != x; then
8086 gmplibs="-L$with_mpc_lib $gmplibs"
8088 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8089 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8090 gmpinc='-I$$s/mpc/src '"$gmpinc"
8091 # Do not test the mpc version. Assume that it is sufficient, since
8092 # it is in the source tree, and the library has not been built yet
8093 # but it would be included on the link line in the version check below
8094 # hence making the test fail.
8095 have_gmp=yes
8098 # Specify a location for mpfr
8099 # check for this first so it ends up on the link line before gmp.
8101 # Check whether --with-mpfr was given.
8102 if test "${with_mpfr+set}" = set; then :
8103 withval=$with_mpfr;
8107 # Check whether --with-mpfr-include was given.
8108 if test "${with_mpfr_include+set}" = set; then :
8109 withval=$with_mpfr_include;
8113 # Check whether --with-mpfr-lib was given.
8114 if test "${with_mpfr_lib+set}" = set; then :
8115 withval=$with_mpfr_lib;
8119 if test "x$with_mpfr" != x; then
8120 gmplibs="-L$with_mpfr/lib $gmplibs"
8121 gmpinc="-I$with_mpfr/include $gmpinc"
8123 if test "x$with_mpfr_include" != x; then
8124 gmpinc="-I$with_mpfr_include $gmpinc"
8126 if test "x$with_mpfr_lib" != x; then
8127 gmplibs="-L$with_mpfr_lib $gmplibs"
8129 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8130 # MPFR v3.1.0 moved the sources into a src sub-directory.
8131 if ! test -d ${srcdir}/mpfr/src; then
8132 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8134 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8135 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8136 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8137 # Do not test the mpfr version. Assume that it is sufficient, since
8138 # it is in the source tree, and the library has not been built yet
8139 # but it would be included on the link line in the version check below
8140 # hence making the test fail.
8141 have_gmp=yes
8144 # Specify a location for gmp
8146 # Check whether --with-gmp was given.
8147 if test "${with_gmp+set}" = set; then :
8148 withval=$with_gmp;
8152 # Check whether --with-gmp-include was given.
8153 if test "${with_gmp_include+set}" = set; then :
8154 withval=$with_gmp_include;
8158 # Check whether --with-gmp-lib was given.
8159 if test "${with_gmp_lib+set}" = set; then :
8160 withval=$with_gmp_lib;
8165 if test "x$with_gmp" != x; then
8166 gmplibs="-L$with_gmp/lib $gmplibs"
8167 gmpinc="-I$with_gmp/include $gmpinc"
8169 if test "x$with_gmp_include" != x; then
8170 gmpinc="-I$with_gmp_include $gmpinc"
8172 if test "x$with_gmp_lib" != x; then
8173 gmplibs="-L$with_gmp_lib $gmplibs"
8175 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8176 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8177 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8178 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8179 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8180 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8181 # Do not test the gmp version. Assume that it is sufficient, since
8182 # it is in the source tree, and the library has not been built yet
8183 # but it would be included on the link line in the version check below
8184 # hence making the test fail.
8185 have_gmp=yes
8188 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8189 have_gmp=yes
8190 saved_CFLAGS="$CFLAGS"
8191 CFLAGS="$CFLAGS $gmpinc"
8192 # Check for the recommended and required versions of GMP.
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8194 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197 #include "gmp.h"
8199 main ()
8202 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8203 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8204 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8205 choke me
8206 #endif
8209 return 0;
8211 _ACEOF
8212 if ac_fn_c_try_compile "$LINENO"; then :
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8215 #include <gmp.h>
8217 main ()
8220 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8221 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8222 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8223 choke me
8224 #endif
8227 return 0;
8229 _ACEOF
8230 if ac_fn_c_try_compile "$LINENO"; then :
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8232 $as_echo "yes" >&6; }
8233 else
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8235 $as_echo "buggy but acceptable" >&6; }
8237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238 else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }; have_gmp=no
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 # If we have GMP, check the MPFR version.
8245 if test x"$have_gmp" = xyes; then
8246 # Check for the recommended and required versions of MPFR.
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8248 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8251 #include <gmp.h>
8252 #include <mpfr.h>
8254 main ()
8257 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8258 choke me
8259 #endif
8262 return 0;
8264 _ACEOF
8265 if ac_fn_c_try_compile "$LINENO"; then :
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <gmp.h>
8269 #include <mpfr.h>
8271 main ()
8274 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8275 choke me
8276 #endif
8279 return 0;
8281 _ACEOF
8282 if ac_fn_c_try_compile "$LINENO"; then :
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8284 $as_echo "yes" >&6; }
8285 else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8287 $as_echo "buggy but acceptable" >&6; }
8289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290 else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }; have_gmp=no
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 # Check for the MPC header version.
8298 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8299 # Check for the recommended and required versions of MPC.
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8301 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 #include <mpc.h>
8306 main ()
8309 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8310 choke me
8311 #endif
8314 return 0;
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8320 #include <mpc.h>
8322 main ()
8325 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8326 choke me
8327 #endif
8330 return 0;
8332 _ACEOF
8333 if ac_fn_c_try_compile "$LINENO"; then :
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8335 $as_echo "yes" >&6; }
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8338 $as_echo "buggy but acceptable" >&6; }
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }; have_gmp=no
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 # Now check the MPFR library.
8349 if test x"$have_gmp" = xyes; then
8350 saved_LIBS="$LIBS"
8351 LIBS="$LIBS $gmplibs"
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8353 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356 #include <mpfr.h>
8358 main ()
8361 mpfr_t n;
8362 mpfr_t x;
8363 int t;
8364 mpfr_init (n);
8365 mpfr_init (x);
8366 mpfr_atan2 (n, n, x, MPFR_RNDN);
8367 mpfr_erfc (n, x, MPFR_RNDN);
8368 mpfr_subnormalize (x, t, MPFR_RNDN);
8369 mpfr_clear(n);
8370 mpfr_clear(x);
8373 return 0;
8375 _ACEOF
8376 if ac_fn_c_try_link "$LINENO"; then :
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8378 $as_echo "yes" >&6; }
8379 else
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }; have_gmp=no
8383 rm -f core conftest.err conftest.$ac_objext \
8384 conftest$ac_exeext conftest.$ac_ext
8385 LIBS="$saved_LIBS"
8388 # Now check the MPC library
8389 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8390 saved_LIBS="$LIBS"
8391 LIBS="$LIBS $gmplibs"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8393 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 #include <mpc.h>
8398 main ()
8401 mpc_t c;
8402 mpc_init2 (c, 53);
8403 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8404 mpc_cosh (c, c, MPC_RNDNN);
8405 mpc_pow (c, c, c, MPC_RNDNN);
8406 mpc_acosh (c, c, MPC_RNDNN);
8407 mpc_clear (c);
8410 return 0;
8412 _ACEOF
8413 if ac_fn_c_try_link "$LINENO"; then :
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8415 $as_echo "yes" >&6; }
8416 else
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }; have_gmp=no
8420 rm -f core conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8422 LIBS="$saved_LIBS"
8425 CFLAGS="$saved_CFLAGS"
8427 # The library versions listed in the error message below should match
8428 # the HARD-minimums enforced above.
8429 if test x$have_gmp != xyes; then
8430 if test -d ${srcdir}/gcc ; then
8431 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8432 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8433 their locations. Source code for these libraries can be found at
8434 their respective hosting sites as well as at
8435 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8436 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8437 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8438 make sure that you have installed both the libraries and the header
8439 files. They may be located in separate packages." "$LINENO" 5
8440 else
8441 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8442 Try the --with-gmp and/or --with-mpfr options to specify
8443 their locations. If you obtained GMP and/or MPFR from a vendor
8444 distribution package, make sure that you have installed both the libraries
8445 and the header files. They may be located in separate packages." "$LINENO" 5
8450 # Flags needed for both GMP, MPFR and/or MPC.
8458 # Libraries to use for stage1 or when not bootstrapping.
8460 # Check whether --with-stage1-libs was given.
8461 if test "${with_stage1_libs+set}" = set; then :
8462 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8463 stage1_libs=
8464 else
8465 stage1_libs=$withval
8467 else
8468 stage1_libs=
8473 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8474 # default is yes if gcc is being built; no otherwise. The reason for
8475 # this default is that gdb is sometimes linked against GNU Source
8476 # Highlight, which is a shared library that uses C++ exceptions. In
8477 # this case, -static-libstdc++ will cause crashes.
8479 # Check whether --with-static-standard-libraries was given.
8480 if test "${with_static_standard_libraries+set}" = set; then :
8481 withval=$with_static_standard_libraries;
8482 else
8483 with_static_standard_libraries=auto
8486 if test "$with_static_standard_libraries" = auto; then
8487 with_static_standard_libraries=$have_compiler
8490 # Linker flags to use for stage1 or when not bootstrapping.
8492 # Check whether --with-stage1-ldflags was given.
8493 if test "${with_stage1_ldflags+set}" = set; then :
8494 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8495 stage1_ldflags=
8496 else
8497 stage1_ldflags=$withval
8499 else
8500 stage1_ldflags=
8501 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8502 # if supported. But if the user explicitly specified the libraries to use,
8503 # trust that they are doing what they want.
8504 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8505 -a "$have_static_libs" = yes; then
8506 stage1_ldflags="-static-libstdc++ -static-libgcc"
8512 # Libraries to use for stage2 and later builds.
8514 # Check whether --with-boot-libs was given.
8515 if test "${with_boot_libs+set}" = set; then :
8516 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8517 poststage1_libs=
8518 else
8519 poststage1_libs=$withval
8521 else
8522 poststage1_libs=
8527 # Linker flags to use for stage2 and later builds.
8529 # Check whether --with-boot-ldflags was given.
8530 if test "${with_boot_ldflags+set}" = set; then :
8531 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8532 poststage1_ldflags=
8533 else
8534 poststage1_ldflags=$withval
8536 else
8537 poststage1_ldflags=
8538 # In stages 2 and 3, default to linking libstdc++ and libgcc
8539 # statically. But if the user explicitly specified the libraries to
8540 # use, trust that they are doing what they want.
8541 if test "$poststage1_libs" = ""; then
8542 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8546 case $target in
8547 *-darwin2* | *-darwin1[56789]*)
8548 # For these versions, we default to using embedded rpaths.
8549 if test "x$enable_darwin_at_rpath" != "xno"; then
8550 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
8553 *-darwin*)
8554 # For these versions, we only use embedded rpaths on demand.
8555 if test "x$enable_darwin_at_rpath" = "xyes"; then
8556 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
8559 esac
8562 # GCC GRAPHITE dependency isl.
8563 # Basic setup is inlined here, actual checks are in config/isl.m4
8566 # Check whether --with-isl was given.
8567 if test "${with_isl+set}" = set; then :
8568 withval=$with_isl;
8572 # Treat --without-isl as a request to disable
8573 # GRAPHITE support and skip all following checks.
8574 if test "x$with_isl" != "xno"; then
8575 # Check for isl
8578 # Check whether --with-isl-include was given.
8579 if test "${with_isl_include+set}" = set; then :
8580 withval=$with_isl_include;
8584 # Check whether --with-isl-lib was given.
8585 if test "${with_isl_lib+set}" = set; then :
8586 withval=$with_isl_lib;
8590 # Check whether --enable-isl-version-check was given.
8591 if test "${enable_isl_version_check+set}" = set; then :
8592 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8593 else
8594 ENABLE_ISL_CHECK=yes
8598 # Initialize isllibs and islinc.
8599 case $with_isl in
8601 isllibs=
8602 islinc=
8604 "" | yes)
8607 isllibs="-L$with_isl/lib"
8608 islinc="-I$with_isl/include"
8610 esac
8611 if test "x${with_isl_include}" != x ; then
8612 islinc="-I$with_isl_include"
8614 if test "x${with_isl_lib}" != x; then
8615 isllibs="-L$with_isl_lib"
8617 if test "x${islinc}" = x && test "x${isllibs}" = x \
8618 && test -d ${srcdir}/isl; then
8619 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8620 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8621 ENABLE_ISL_CHECK=no
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8623 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8626 isllibs="${isllibs} -lisl"
8630 if test "${ENABLE_ISL_CHECK}" = yes ; then
8631 _isl_saved_CFLAGS=$CFLAGS
8632 _isl_saved_LDFLAGS=$LDFLAGS
8633 _isl_saved_LIBS=$LIBS
8635 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8636 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8637 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8640 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 #include <isl/schedule.h>
8645 main ()
8647 isl_options_set_schedule_serialize_sccs (NULL, 0);
8649 return 0;
8651 _ACEOF
8652 if ac_fn_c_try_link "$LINENO"; then :
8653 gcc_cv_isl=yes
8654 else
8655 gcc_cv_isl=no
8657 rm -f core conftest.err conftest.$ac_objext \
8658 conftest$ac_exeext conftest.$ac_ext
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8660 $as_echo "$gcc_cv_isl" >&6; }
8662 if test "${gcc_cv_isl}" = no ; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8664 $as_echo "required isl version is 0.15 or later" >&6; }
8667 CFLAGS=$_isl_saved_CFLAGS
8668 LDFLAGS=$_isl_saved_LDFLAGS
8669 LIBS=$_isl_saved_LIBS
8677 if test "x${with_isl}" = xno; then
8678 graphite_requested=no
8679 elif test "x${with_isl}" != x \
8680 || test "x${with_isl_include}" != x \
8681 || test "x${with_isl_lib}" != x ; then
8682 graphite_requested=yes
8683 else
8684 graphite_requested=no
8689 if test "${gcc_cv_isl}" = no ; then
8690 isllibs=
8691 islinc=
8694 if test "${graphite_requested}" = yes \
8695 && test "x${isllibs}" = x \
8696 && test "x${islinc}" = x ; then
8698 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8704 # If the isl check failed, disable builds of in-tree variant of isl
8705 if test "x$with_isl" = xno ||
8706 test "x$gcc_cv_isl" = xno; then
8707 noconfigdirs="$noconfigdirs isl"
8708 islinc=
8714 # Check for LTO support.
8715 # Check whether --enable-lto was given.
8716 if test "${enable_lto+set}" = set; then :
8717 enableval=$enable_lto; enable_lto=$enableval
8718 else
8719 enable_lto=yes; default_enable_lto=yes
8726 target_elf=no
8727 case $target in
8728 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8729 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8730 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8731 nvptx-*-none)
8732 target_elf=no
8735 target_elf=yes
8737 esac
8739 if test $target_elf = yes; then :
8740 # ELF platforms build the lto-plugin always.
8741 build_lto_plugin=yes
8743 else
8744 if test x"$default_enable_lto" = x"yes" ; then
8745 case $target in
8746 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8747 # On other non-ELF platforms, LTO has yet to be validated.
8748 *) enable_lto=no ;;
8749 esac
8750 else
8751 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8752 # It would also be nice to check the binutils support, but we don't
8753 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8754 # warn during gcc/ subconfigure; unless you're bootstrapping with
8755 # -flto it won't be needed until after installation anyway.
8756 case $target in
8757 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8758 *) if test x"$enable_lto" = x"yes"; then
8759 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8762 esac
8764 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8765 # Build it unless LTO was explicitly disabled.
8766 case $target in
8767 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8768 *) ;;
8769 esac
8774 # Check whether --enable-linker-plugin-configure-flags was given.
8775 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8776 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8777 else
8778 extra_linker_plugin_configure_flags=
8782 # Check whether --enable-linker-plugin-flags was given.
8783 if test "${enable_linker_plugin_flags+set}" = set; then :
8784 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8785 else
8786 extra_linker_plugin_flags=
8791 # Handle --enable-host-pie
8792 # If host PIE executables are the default (or must be forced on) for some host,
8793 # we must pass that configuration to the gcc directory.
8794 gcc_host_pie=
8795 # Check whether --enable-host-pie was given.
8796 if test "${enable_host_pie+set}" = set; then :
8797 enableval=$enable_host_pie; host_pie=$enableval
8798 case $host in
8799 *-*-darwin2*)
8800 if test x$host_pie != xyes ; then
8801 # for Darwin20+ this is required.
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8803 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8804 host_pie=yes
8805 gcc_host_pie=--enable-host-pie
8806 fi ;;
8807 *) ;;
8808 esac
8809 else
8810 case $host in
8811 *-*-darwin2*)
8812 # Default to PIE (mandatory for aarch64).
8813 host_pie=yes
8814 gcc_host_pie=--enable-host-pie
8816 *) host_pie=no ;;
8817 esac
8824 # Enable --enable-host-shared.
8825 # Checked early to determine whether jit is an 'all' language
8826 # Check whether --enable-host-shared was given.
8827 if test "${enable_host_shared+set}" = set; then :
8828 enableval=$enable_host_shared; host_shared=$enableval
8829 case $host in
8830 x86_64-*-darwin* | aarch64-*-darwin*)
8831 if test x$host_shared != xyes ; then
8832 # PIC is the default, and actually cannot be switched off.
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8834 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8835 host_shared=yes
8836 fi ;;
8837 *-*-darwin*)
8838 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8840 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8841 host_shared=yes
8842 fi ;;
8843 *) ;;
8844 esac
8845 else
8846 case $host in
8847 # 64B x86_64 and Aarch64 Darwin default to PIC.
8848 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8849 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8850 *-*-darwin*) host_shared=$host_pie ;;
8851 *) host_shared=no;;
8852 esac
8858 if test x$host_shared = xyes; then
8859 case $host in
8860 *-*-darwin*)
8861 # Since host shared is the default for 64b Darwin, and also enabled for
8862 # host_pie, ensure that we present the PIE flag when host_pie is active.
8863 if test x$host_pie = xyes; then
8864 PICFLAG=-fPIE
8868 PICFLAG=-fPIC
8870 esac
8871 elif test x$host_pie = xyes; then
8872 PICFLAG=-fPIE
8873 else
8874 PICFLAG=
8879 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
8880 # default, so we check for them here
8882 missing_rust_dynlibs=none
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8885 $as_echo_n "checking for library containing dlopen... " >&6; }
8886 if ${ac_cv_search_dlopen+:} false; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 ac_func_search_save_LIBS=$LIBS
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8893 /* Override any GCC internal prototype to avoid an error.
8894 Use char because int might match the return type of a GCC
8895 builtin and then its argument prototype would still apply. */
8896 #ifdef __cplusplus
8897 extern "C"
8898 #endif
8899 char dlopen ();
8901 main ()
8903 return dlopen ();
8905 return 0;
8907 _ACEOF
8908 for ac_lib in '' dl; do
8909 if test -z "$ac_lib"; then
8910 ac_res="none required"
8911 else
8912 ac_res=-l$ac_lib
8913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8915 if ac_fn_c_try_link "$LINENO"; then :
8916 ac_cv_search_dlopen=$ac_res
8918 rm -f core conftest.err conftest.$ac_objext \
8919 conftest$ac_exeext
8920 if ${ac_cv_search_dlopen+:} false; then :
8921 break
8923 done
8924 if ${ac_cv_search_dlopen+:} false; then :
8926 else
8927 ac_cv_search_dlopen=no
8929 rm conftest.$ac_ext
8930 LIBS=$ac_func_search_save_LIBS
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8933 $as_echo "$ac_cv_search_dlopen" >&6; }
8934 ac_res=$ac_cv_search_dlopen
8935 if test "$ac_res" != no; then :
8936 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
8941 $as_echo_n "checking for library containing pthread_create... " >&6; }
8942 if ${ac_cv_search_pthread_create+:} false; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 ac_func_search_save_LIBS=$LIBS
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8949 /* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
8952 #ifdef __cplusplus
8953 extern "C"
8954 #endif
8955 char pthread_create ();
8957 main ()
8959 return pthread_create ();
8961 return 0;
8963 _ACEOF
8964 for ac_lib in '' pthread; do
8965 if test -z "$ac_lib"; then
8966 ac_res="none required"
8967 else
8968 ac_res=-l$ac_lib
8969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8971 if ac_fn_c_try_link "$LINENO"; then :
8972 ac_cv_search_pthread_create=$ac_res
8974 rm -f core conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext
8976 if ${ac_cv_search_pthread_create+:} false; then :
8977 break
8979 done
8980 if ${ac_cv_search_pthread_create+:} false; then :
8982 else
8983 ac_cv_search_pthread_create=no
8985 rm conftest.$ac_ext
8986 LIBS=$ac_func_search_save_LIBS
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
8989 $as_echo "$ac_cv_search_pthread_create" >&6; }
8990 ac_res=$ac_cv_search_pthread_create
8991 if test "$ac_res" != no; then :
8992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8997 if test "$ac_cv_search_dlopen" = -ldl; then
8998 CRAB1_LIBS="$CRAB1_LIBS -ldl"
8999 elif test "$ac_cv_search_dlopen" = no; then
9000 missing_rust_dynlibs="libdl"
9003 if test "$ac_cv_search_pthread_create" = -lpthread; then
9004 CRAB1_LIBS="$CRAB1_LIBS -lpthread"
9005 elif test "$ac_cv_search_pthread_create" = no; then
9006 missing_rust_dynlibs="$missing_rust_dynlibs, libpthread"
9009 CRAB1_LIBS="$CRAB1_LIBS"
9012 # If we are building PIC/PIE host executables, and we are building dependent
9013 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9014 # code.
9015 host_libs_picflag=
9016 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9017 host_libs_picflag='--with-pic'
9021 # By default, C and C++ are the only stage 1 languages.
9022 stage1_languages=,c,
9024 # Target libraries that we bootstrap.
9025 bootstrap_target_libs=,target-libgcc,
9027 # Figure out what language subdirectories are present.
9028 # Look if the user specified --enable-languages="..."; if not, use
9029 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9030 # go away some day.
9031 # NB: embedded tabs in this IF block -- do not untabify
9032 if test -d ${srcdir}/gcc; then
9033 if test x"${enable_languages+set}" != xset; then
9034 if test x"${LANGUAGES+set}" = xset; then
9035 enable_languages="${LANGUAGES}"
9036 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9037 else
9038 enable_languages=default
9040 else
9041 if test x"${enable_languages}" = x ||
9042 test x"${enable_languages}" = xyes;
9043 then
9044 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9045 exit 1
9048 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9050 # 'f95' is the old name for the 'fortran' language. We issue a warning
9051 # and make the substitution.
9052 case ,${enable_languages}, in
9053 *,f95,*)
9054 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
9055 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9057 esac
9059 # If bootstrapping, C++ must be enabled.
9060 case ",$enable_languages,:$enable_bootstrap" in
9061 *,c++,*:*) ;;
9062 *:yes)
9063 if test -f ${srcdir}/gcc/cp/config-lang.in; then
9064 enable_languages="${enable_languages},c++"
9065 else
9066 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
9069 esac
9071 # First scan to see if an enabled language requires some other language.
9072 # We assume that a given config-lang.in will list all the language
9073 # front ends it requires, even if some are required indirectly.
9074 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9075 case ${lang_frag} in
9076 ..) ;;
9077 # The odd quoting in the next line works around
9078 # an apparent bug in bash 1.12 on linux.
9079 ${srcdir}/gcc/[*]/config-lang.in) ;;
9081 # From the config-lang.in, get $language, $lang_requires, and
9082 # $lang_requires_boot_languages.
9083 language=
9084 lang_requires=
9085 lang_requires_boot_languages=
9086 # set srcdir during sourcing lang_frag to the gcc dir.
9087 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9088 # polutes this shell
9089 saved_srcdir=${srcdir}
9090 srcdir=${srcdir}/gcc . ${lang_frag}
9091 srcdir=${saved_srcdir}
9092 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9093 case ,${enable_languages}, in
9094 *,$other,*) ;;
9095 *,default,*) ;;
9096 *,all,*) ;;
9097 *,$language,*)
9098 echo " \`$other' language required by \`$language'; enabling" 1>&2
9099 enable_languages="${enable_languages},${other}"
9101 esac
9102 done
9103 for other in ${lang_requires_boot_languages} ; do
9104 if test "$other" != "c"; then
9105 case ,${enable_stage1_languages}, in
9106 *,$other,*) ;;
9107 *,default,*) ;;
9108 *,all,*) ;;
9110 case ,${enable_languages}, in
9111 *,$language,*)
9112 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9113 enable_stage1_languages="$enable_stage1_languages,${other}"
9115 esac
9117 esac
9119 done
9121 esac
9122 done
9124 new_enable_languages=,c,
9126 # If LTO is enabled, add the LTO front end.
9127 if test "$enable_lto" = "yes" ; then
9128 case ,${enable_languages}, in
9129 *,lto,*) ;;
9130 *) enable_languages="${enable_languages},lto" ;;
9131 esac
9132 if test "${build_lto_plugin}" = "yes" ; then
9133 configdirs="$configdirs lto-plugin"
9137 # If we're building an offloading compiler, add the LTO front end.
9138 if test x"$enable_as_accelerator_for" != x ; then
9139 case ,${enable_languages}, in
9140 *,lto,*) ;;
9141 *) enable_languages="${enable_languages},lto" ;;
9142 esac
9145 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9146 potential_languages=,c,
9148 enabled_target_libs=
9149 disabled_target_libs=
9151 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9152 case ${lang_frag} in
9153 ..) ;;
9154 # The odd quoting in the next line works around
9155 # an apparent bug in bash 1.12 on linux.
9156 ${srcdir}/gcc/[*]/config-lang.in) ;;
9158 # From the config-lang.in, get $language, $target_libs,
9159 # $lang_dirs, $boot_language, and $build_by_default
9160 language=
9161 target_libs=
9162 lang_dirs=
9163 subdir_requires=
9164 boot_language=no
9165 build_by_default=yes
9166 # set srcdir during sourcing. See above about save & restore
9167 saved_srcdir=${srcdir}
9168 srcdir=${srcdir}/gcc . ${lang_frag}
9169 srcdir=${saved_srcdir}
9170 if test x${language} = x; then
9171 echo "${lang_frag} doesn't set \$language." 1>&2
9172 exit 1
9175 if test "$language" = "c++"; then
9176 boot_language=yes
9179 add_this_lang=no
9180 # C is always enabled, so no need to add it again
9181 if test "$language" != "c"; then
9182 case ,${enable_languages}, in
9183 *,${language},*)
9184 # Language was explicitly selected; include it
9185 add_this_lang=yes
9187 *,all,*)
9188 # All languages are enabled
9189 add_this_lang=all
9191 *,default,*)
9192 # 'default' was selected, select it if it is a default language
9193 add_this_lang=${build_by_default}
9195 esac
9198 # Disable languages that need other directories if these aren't available.
9199 for i in $subdir_requires; do
9200 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9201 case ${add_this_lang} in
9202 yes)
9203 # Specifically requested language; tell them.
9204 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9206 all)
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9208 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9209 add_this_lang=unsupported
9212 # Silently disable.
9213 add_this_lang=unsupported
9215 esac
9216 done
9218 # Disable Ada if no preexisting GNAT is available.
9219 case ${add_this_lang}:${language}:${have_gnat} in
9220 yes:ada:no)
9221 # Specifically requested language; tell them.
9222 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9224 all:ada:no)
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9226 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9227 add_this_lang=unsupported
9229 *:ada:no)
9230 # Silently disable.
9231 add_this_lang=unsupported
9233 esac
9235 # Disable D if no preexisting GDC is available.
9236 case ${add_this_lang}:${language}:${have_gdc} in
9237 yes:d:no)
9238 # Specifically requested language; tell them.
9239 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
9241 all:d:no)
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9243 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9244 add_this_lang=unsupported
9246 *:d:no)
9247 # Silently disable.
9248 add_this_lang=unsupported
9250 esac
9252 # Disable Rust if we are missing some required C libraries for the Rust runtime.
9253 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
9254 *:rust:none)
9255 # Nothing to do - we're not missing any C libraries
9257 yes:rust:*)
9258 as_fn_error $? "some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
9259 add_this_lang=unsupported
9261 all:rust:*)
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
9263 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
9264 add_this_lang=unsupported
9266 *:rust:*)
9267 # Silently disable.
9268 add_this_lang=unsupported
9270 esac
9272 # Disable jit if -enable-host-shared not specified
9273 # but not if building for Mingw. All code in Windows
9274 # is position independent code (PIC).
9275 case $target in
9276 *mingw*) ;;
9278 case ${add_this_lang}:${language}:${host_shared} in
9279 yes:jit:no)
9280 # PR jit/64780: explicitly specify --enable-host-shared
9281 as_fn_error $? "
9282 Enabling language \"jit\" requires --enable-host-shared.
9284 --enable-host-shared typically slows the rest of the compiler down by
9285 a few %, so you must explicitly enable it.
9287 If you want to build both the jit and the regular compiler, it is often
9288 best to do this via two separate configure/builds, in separate
9289 directories, to avoid imposing the performance cost of
9290 --enable-host-shared on the regular compiler." "$LINENO" 5
9292 all:jit:no)
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9294 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9295 add_this_lang=unsupported
9297 *:jit:no)
9298 # Silently disable.
9299 add_this_lang=unsupported
9301 esac
9303 esac
9305 # Pre-conditions to consider whether cargo being supported.
9306 if test x"$have_cargo" = xyes \
9307 && test x"$build" != x"$host"; then
9308 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
9309 # "'cargo' should build for the host system" is resolved:
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
9311 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
9312 have_cargo=no
9313 else
9314 # Assume that cargo-produced object files are compatible with what
9315 # we're going to build here.
9318 # Disable Rust if cargo is unavailable.
9319 case ${add_this_lang}:${language}:${have_cargo} in
9320 yes:rust:no)
9321 # Specifically requested language; tell them.
9322 as_fn_error $? "cargo is required to build $language" "$LINENO" 5
9324 all:rust:no)
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
9326 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
9327 add_this_lang=unsupported
9329 *:rust:no)
9330 # Silently disable.
9331 add_this_lang=unsupported
9333 esac
9336 # Disable a language that is unsupported by the target.
9337 case "${add_this_lang}: $unsupported_languages " in
9338 no:*) ;;
9339 unsupported:*) ;;
9340 *:*" $language "*)
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9342 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9343 add_this_lang=unsupported
9345 esac
9347 case $add_this_lang in
9348 unsupported)
9349 # Remove language-dependent dirs.
9350 disabled_target_libs="$disabled_target_libs $target_libs"
9351 noconfigdirs="$noconfigdirs $lang_dirs"
9354 # Remove language-dependent dirs; still show language as supported.
9355 disabled_target_libs="$disabled_target_libs $target_libs"
9356 noconfigdirs="$noconfigdirs $lang_dirs"
9357 potential_languages="${potential_languages}${language},"
9359 all|yes)
9360 new_enable_languages="${new_enable_languages}${language},"
9361 potential_languages="${potential_languages}${language},"
9362 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9363 enabled_target_libs="$enabled_target_libs $target_libs"
9364 case "${boot_language}:,$enable_stage1_languages," in
9365 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9366 # Add to (comma-separated) list of stage 1 languages.
9367 case ",$stage1_languages," in
9368 *,$language,* | ,yes, | ,all,) ;;
9369 *) stage1_languages="${stage1_languages}${language}," ;;
9370 esac
9371 # We need to bootstrap any supporting libraries.
9372 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9374 esac
9376 esac
9378 esac
9379 done
9381 # Add target libraries which are only needed for disabled languages
9382 # to noconfigdirs.
9383 if test -n "$disabled_target_libs"; then
9384 for dir in $disabled_target_libs; do
9385 case " $enabled_target_libs " in
9386 *" ${dir} "*) ;;
9387 *) noconfigdirs="$noconfigdirs $dir" ;;
9388 esac
9389 done
9392 # Check whether --enable-stage1-languages was given.
9393 if test "${enable_stage1_languages+set}" = set; then :
9394 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9395 ,no,|,,)
9396 # Set it to something that will have no effect in the loop below
9397 enable_stage1_languages=c ;;
9398 ,yes,)
9399 enable_stage1_languages=`echo $new_enable_languages | \
9400 sed -e "s/^,//" -e "s/,$//" ` ;;
9401 *,all,*)
9402 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9403 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9404 esac
9406 # Add "good" languages from enable_stage1_languages to stage1_languages,
9407 # while "bad" languages go in missing_languages. Leave no duplicates.
9408 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9409 case $potential_languages in
9410 *,$i,*)
9411 case $stage1_languages in
9412 *,$i,*) ;;
9413 *) stage1_languages="$stage1_languages$i," ;;
9414 esac ;;
9416 case $missing_languages in
9417 *,$i,*) ;;
9418 *) missing_languages="$missing_languages$i," ;;
9419 esac ;;
9420 esac
9421 done
9425 # Remove leading/trailing commas that were added for simplicity
9426 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9427 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9428 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9429 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9431 if test "x$missing_languages" != x; then
9432 as_fn_error $? "
9433 The following requested languages could not be built: ${missing_languages}
9434 Supported languages are: ${potential_languages}" "$LINENO" 5
9436 if test "x$new_enable_languages" != "x$enable_languages"; then
9437 echo The following languages will be built: ${new_enable_languages}
9438 enable_languages="$new_enable_languages"
9442 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9445 # Handle --disable-<component> generically.
9446 for dir in $configdirs $build_configdirs $target_configdirs ; do
9447 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9448 varname=`echo $dirname | sed -e s/+/_/g`
9449 if eval test x\${enable_${varname}} "=" xno ; then
9450 noconfigdirs="$noconfigdirs $dir"
9452 done
9454 # Check for Boehm's garbage collector
9455 # Check whether --enable-objc-gc was given.
9456 if test "${enable_objc_gc+set}" = set; then :
9457 enableval=$enable_objc_gc;
9461 # Check whether --with-target-bdw-gc was given.
9462 if test "${with_target_bdw_gc+set}" = set; then :
9463 withval=$with_target_bdw_gc;
9467 # Check whether --with-target-bdw-gc-include was given.
9468 if test "${with_target_bdw_gc_include+set}" = set; then :
9469 withval=$with_target_bdw_gc_include;
9473 # Check whether --with-target-bdw-gc-lib was given.
9474 if test "${with_target_bdw_gc_lib+set}" = set; then :
9475 withval=$with_target_bdw_gc_lib;
9479 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9481 $as_echo_n "checking for bdw garbage collector... " >&6; }
9482 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9484 $as_echo "using bdw-gc in default locations" >&6; }
9485 else
9486 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9487 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9488 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9489 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9490 else
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9492 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9495 esac
9497 # Disable libitm, libsanitizer, libvtv if we're not building C++
9498 case ,${enable_languages}, in
9499 *,c++,*)
9500 # Disable libitm, libsanitizer if we're not building libstdc++
9501 case "${noconfigdirs}" in
9502 *target-libstdc++-v3*)
9503 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9505 *) ;;
9506 esac
9509 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9511 esac
9513 case ,${enable_languages}, in
9514 *,rust,*)
9515 case " ${noconfigdirs} " in
9516 *\ target-libstdc++-v3\ *)
9517 # Disable target libgrust if we're not building target libstdc++.
9518 noconfigdirs="$noconfigdirs target-libgrust"
9520 esac
9522 esac
9524 # If gcc/ is not in the source tree then we'll not be building a
9525 # target compiler, assume in that case we don't want to build any
9526 # target libraries or tools.
9528 # This was added primarily for the benefit for binutils-gdb who reuse
9529 # this configure script, but don't always have target tools available.
9530 if test ! -d ${srcdir}/gcc; then
9531 skipdirs="${skipdirs} ${target_configdirs}"
9534 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9535 # $build_configdirs and $target_configdirs.
9536 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9538 notsupp=""
9539 for dir in . $skipdirs $noconfigdirs ; do
9540 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9541 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9542 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9543 if test -r $srcdir/$dirname/configure ; then
9544 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9545 true
9546 else
9547 notsupp="$notsupp $dir"
9551 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9552 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9553 if test -r $srcdir/$dirname/configure ; then
9554 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9555 true
9556 else
9557 notsupp="$notsupp $dir"
9561 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9562 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9563 if test -r $srcdir/$dirname/configure ; then
9564 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9565 true
9566 else
9567 notsupp="$notsupp $dir"
9571 done
9573 # Quietly strip out all directories which aren't configurable in this tree.
9574 # This relies on all configurable subdirectories being autoconfiscated, which
9575 # is now the case.
9576 build_configdirs_all="$build_configdirs"
9577 build_configdirs=
9578 for i in ${build_configdirs_all} ; do
9579 j=`echo $i | sed -e s/build-//g`
9580 if test -f ${srcdir}/$j/configure ; then
9581 build_configdirs="${build_configdirs} $i"
9583 done
9585 configdirs_all="$configdirs"
9586 configdirs=
9587 for i in ${configdirs_all} ; do
9588 if test -f ${srcdir}/$i/configure ; then
9589 configdirs="${configdirs} $i"
9591 done
9593 target_configdirs_all="$target_configdirs"
9594 target_configdirs=
9595 for i in ${target_configdirs_all} ; do
9596 j=`echo $i | sed -e s/target-//g`
9597 if test -f ${srcdir}/$j/configure ; then
9598 target_configdirs="${target_configdirs} $i"
9600 done
9602 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9603 # so we have to add it after the preceding checks.
9604 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9605 then
9606 case " $configdirs " in
9607 *" libiberty "*)
9608 # If we can build libiberty, we can also build libiberty-linker-plugin.
9609 configdirs="$configdirs libiberty-linker-plugin"
9610 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9611 --with-libiberty=../libiberty-linker-plugin";;
9613 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9614 esac
9617 # Sometimes we have special requirements for the host libiberty.
9618 extra_host_libiberty_configure_flags=
9619 case " $configdirs " in
9620 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9621 # When these are to be built as shared libraries, the same applies to
9622 # libiberty.
9623 extra_host_libiberty_configure_flags=--enable-shared
9625 esac
9628 # Sometimes we have special requirements for the host zlib.
9629 extra_host_zlib_configure_flags=
9630 case " $configdirs " in
9631 *" bfd "*)
9632 # When bfd is to be built as a shared library, the same applies to
9633 # zlib.
9634 if test "$enable_shared" = "yes"; then
9635 extra_host_zlib_configure_flags=--enable-host-shared
9638 esac
9641 # Produce a warning message for the subdirs we can't configure.
9642 # This isn't especially interesting in the Cygnus tree, but in the individual
9643 # FSF releases, it's important to let people know when their machine isn't
9644 # supported by the one or two programs in a package.
9646 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9647 # If $appdirs is non-empty, at least one of those directories must still
9648 # be configured, or we error out. (E.g., if the gas release supports a
9649 # specified target in some subdirs but not the gas subdir, we shouldn't
9650 # pretend that all is well.)
9651 if test -n "$appdirs" ; then
9652 for dir in $appdirs ; do
9653 if test -r $dir/Makefile.in ; then
9654 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9655 appdirs=""
9656 break
9658 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9659 appdirs=""
9660 break
9663 done
9664 if test -n "$appdirs" ; then
9665 echo "*** This configuration is not supported by this package." 1>&2
9666 exit 1
9669 # Okay, some application will build, or we don't care to check. Still
9670 # notify of subdirs not getting built.
9671 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9672 echo " ${notsupp}" 1>&2
9673 echo " (Any other directories should still work fine.)" 1>&2
9676 case "$host" in
9677 *msdosdjgpp*)
9678 enable_gdbtk=no ;;
9679 esac
9681 # To find our prefix, in gcc_cv_tool_prefix.
9683 # The user is always right.
9684 if test "${PATH_SEPARATOR+set}" != set; then
9685 echo "#! /bin/sh" >conf$$.sh
9686 echo "exit 0" >>conf$$.sh
9687 chmod +x conf$$.sh
9688 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9689 PATH_SEPARATOR=';'
9690 else
9691 PATH_SEPARATOR=:
9693 rm -f conf$$.sh
9697 get_gcc_base_ver="cat"
9699 # Check whether --with-gcc-major-version-only was given.
9700 if test "${with_gcc_major_version_only+set}" = set; then :
9701 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9702 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9712 if test "x$exec_prefix" = xNONE; then
9713 if test "x$prefix" = xNONE; then
9714 gcc_cv_tool_prefix=$ac_default_prefix
9715 else
9716 gcc_cv_tool_prefix=$prefix
9718 else
9719 gcc_cv_tool_prefix=$exec_prefix
9722 # If there is no compiler in the tree, use the PATH only. In any
9723 # case, if there is no compiler in the tree nobody should use
9724 # AS_FOR_TARGET and LD_FOR_TARGET.
9725 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9726 if test x$with_gcc_major_version_only = xyes ; then
9727 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9728 else
9729 gcc_version=`cat $srcdir/gcc/BASE-VER`
9731 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9732 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9733 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9734 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9735 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9736 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9737 else
9738 gcc_cv_tool_dirs=
9741 if test x$build = x$target && test -n "$md_exec_prefix"; then
9742 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9747 copy_dirs=
9750 # Check whether --with-build-sysroot was given.
9751 if test "${with_build_sysroot+set}" = set; then :
9752 withval=$with_build_sysroot; if test x"$withval" != x ; then
9753 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9755 else
9756 SYSROOT_CFLAGS_FOR_TARGET=
9762 # Check whether --with-debug-prefix-map was given.
9763 if test "${with_debug_prefix_map+set}" = set; then :
9764 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9765 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9766 for debug_map in $withval; do
9767 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9768 done
9770 else
9771 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9776 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9777 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9778 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9779 # We want to ensure that TARGET libraries (which we know are built with
9780 # gcc) are built with "-O2 -g", so include those options when setting
9781 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9782 if test "x$CFLAGS_FOR_TARGET" = x; then
9783 if test "x${is_cross_compiler}" = xyes; then
9784 CFLAGS_FOR_TARGET="-g -O2"
9785 else
9786 CFLAGS_FOR_TARGET=$CFLAGS
9787 case " $CFLAGS " in
9788 *" -O2 "*) ;;
9789 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9790 esac
9791 case " $CFLAGS " in
9792 *" -g "* | *" -g3 "*) ;;
9793 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9794 esac
9799 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9800 if test "x${is_cross_compiler}" = xyes; then
9801 CXXFLAGS_FOR_TARGET="-g -O2"
9802 else
9803 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9804 case " $CXXFLAGS " in
9805 *" -O2 "*) ;;
9806 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9807 esac
9808 case " $CXXFLAGS " in
9809 *" -g "* | *" -g3 "*) ;;
9810 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9811 esac
9818 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9819 # the named directory are copied to $(tooldir)/sys-include.
9820 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9821 if test x${is_cross_compiler} = xno ; then
9822 echo 1>&2 '***' --with-headers is only supported when cross compiling
9823 exit 1
9825 if test x"${with_headers}" != xyes ; then
9826 x=${gcc_cv_tool_prefix}
9827 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9831 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9832 # the name directories are copied to $(tooldir)/lib. Multiple directories
9833 # are permitted.
9834 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9835 if test x${is_cross_compiler} = xno ; then
9836 echo 1>&2 '***' --with-libs is only supported when cross compiling
9837 exit 1
9839 if test x"${with_libs}" != xyes ; then
9840 # Copy the libraries in reverse order, so that files in the first named
9841 # library override files in subsequent libraries.
9842 x=${gcc_cv_tool_prefix}
9843 for l in ${with_libs}; do
9844 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9845 done
9849 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9851 # This is done by determining whether or not the appropriate directory
9852 # is available, and by checking whether or not specific configurations
9853 # have requested that this magic not happen.
9855 # The command line options always override the explicit settings in
9856 # configure.ac, and the settings in configure.ac override this magic.
9858 # If the default for a toolchain is to use GNU as and ld, and you don't
9859 # want to do that, then you should use the --without-gnu-as and
9860 # --without-gnu-ld options for the configure script. Similarly, if
9861 # the default is to use the included zlib and you don't want to do that,
9862 # you should use the --with-system-zlib option for the configure script.
9864 if test x${use_gnu_as} = x &&
9865 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9866 with_gnu_as=yes
9867 extra_host_args="$extra_host_args --with-gnu-as"
9870 if test x${use_gnu_ld} = x &&
9871 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9872 with_gnu_ld=yes
9873 extra_host_args="$extra_host_args --with-gnu-ld"
9876 if test x${use_included_zlib} = x &&
9877 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9879 else
9880 with_system_zlib=yes
9881 extra_host_args="$extra_host_args --with-system-zlib"
9884 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9885 # can detect this case.
9887 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9888 with_newlib=yes
9889 extra_host_args="$extra_host_args --with-newlib"
9892 # Handle ${copy_dirs}
9893 set fnord ${copy_dirs}
9894 shift
9895 while test $# != 0 ; do
9896 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9898 else
9899 echo Copying $1 to $2
9901 # Use the install script to create the directory and all required
9902 # parent directories.
9903 if test -d $2 ; then
9905 else
9906 echo >config.temp
9907 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9910 # Copy the directory, assuming we have tar.
9911 # FIXME: Should we use B in the second tar? Not all systems support it.
9912 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9914 # It is the responsibility of the user to correctly adjust all
9915 # symlinks. If somebody can figure out how to handle them correctly
9916 # here, feel free to add the code.
9918 echo $1 > $2/COPIED
9920 shift; shift
9921 done
9923 # Determine a target-dependent exec_prefix that the installed
9924 # gcc will search in. Keep this list sorted by triplet, with
9925 # the *-*-osname triplets last.
9926 md_exec_prefix=
9927 case "${target}" in
9928 i[34567]86-pc-msdosdjgpp*)
9929 md_exec_prefix=/dev/env/DJDIR/bin
9931 *-*-hpux* | \
9932 *-*-nto-qnx* | \
9933 *-*-solaris2*)
9934 md_exec_prefix=/usr/ccs/bin
9936 esac
9938 extra_arflags_for_target=
9939 extra_nmflags_for_target=
9940 extra_ranlibflags_for_target=
9941 target_makefile_frag=/dev/null
9942 case "${target}" in
9943 spu-*-*)
9944 target_makefile_frag="config/mt-spu"
9946 loongarch*-*linux* | loongarch*-*gnu*)
9947 target_makefile_frag="config/mt-loongarch-gnu"
9949 loongarch*-*elf*)
9950 target_makefile_frag="config/mt-loongarch-elf"
9952 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9953 target_makefile_frag="config/mt-sde"
9955 mipsisa*-*-elfoabi*)
9956 target_makefile_frag="config/mt-mips-elfoabi"
9958 mips*-*-*linux* | mips*-*-gnu*)
9959 target_makefile_frag="config/mt-mips-gnu"
9961 nios2-*-elf*)
9962 target_makefile_frag="config/mt-nios2-elf"
9964 *-*-linux-android*)
9965 target_makefile_frag="config/mt-android"
9967 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9968 target_makefile_frag="config/mt-gnu"
9970 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9971 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9972 # commands to handle both 32-bit and 64-bit objects. These flags are
9973 # harmless if we're using GNU nm or ar.
9974 extra_arflags_for_target=" -X32_64"
9975 extra_nmflags_for_target=" -B -X32_64"
9977 esac
9979 alphaieee_frag=/dev/null
9980 case $target in
9981 alpha*-*-*)
9982 # This just makes sure to use the -mieee option to build target libs.
9983 # This should probably be set individually by each library.
9984 alphaieee_frag="config/mt-alphaieee"
9986 esac
9988 # If --enable-target-optspace always use -Os instead of -O2 to build
9989 # the target libraries, similarly if it is not specified, use -Os
9990 # on selected platforms.
9991 ospace_frag=/dev/null
9992 case "${enable_target_optspace}:${target}" in
9993 yes:*)
9994 ospace_frag="config/mt-ospace"
9996 :d30v-*)
9997 ospace_frag="config/mt-d30v"
9999 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
10000 ospace_frag="config/mt-ospace"
10002 no:* | :*)
10005 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10007 esac
10009 # Some systems (e.g., one of the i386-aix systems the gas testers are
10010 # using) don't handle "\$" correctly, so don't use it here.
10011 tooldir='${exec_prefix}'/${target_noncanonical}
10012 build_tooldir=${tooldir}
10014 # Create a .gdbinit file which runs the one in srcdir
10015 # and tells GDB to look there for source files.
10017 if test -r ${srcdir}/.gdbinit ; then
10018 case ${srcdir} in
10019 .) ;;
10020 *) cat > ./.gdbinit <<EOF
10021 # ${NO_EDIT}
10022 dir ${srcdir}
10023 dir .
10024 source ${srcdir}/.gdbinit
10027 esac
10030 # Make sure that the compiler is able to generate an executable. If it
10031 # can't, we are probably in trouble. We don't care whether we can run the
10032 # executable--we might be using a cross compiler--we only care whether it
10033 # can be created. At this point the main configure script has set CC.
10034 we_are_ok=no
10035 echo "int main () { return 0; }" > conftest.c
10036 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10037 if test $? = 0 ; then
10038 if test -s conftest || test -s conftest.exe ; then
10039 we_are_ok=yes
10042 case $we_are_ok in
10044 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10045 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10046 rm -f conftest*
10047 exit 1
10049 esac
10050 rm -f conftest*
10052 # Decide which environment variable is used to find dynamic libraries.
10053 case "${host}" in
10054 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
10055 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
10056 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
10057 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
10058 esac
10060 # On systems where the dynamic library environment variable is PATH,
10061 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
10062 # built executables to PATH.
10063 if test "$RPATH_ENVVAR" = PATH; then
10064 GCC_SHLIB_SUBDIR=/shlib
10065 else
10066 GCC_SHLIB_SUBDIR=
10069 # Adjust the toplevel makefile according to whether bootstrap was selected.
10070 case $enable_bootstrap in
10071 yes)
10072 bootstrap_suffix=bootstrap
10073 BUILD_CONFIG=bootstrap-debug
10076 bootstrap_suffix=no-bootstrap
10077 BUILD_CONFIG=
10079 esac
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10082 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10085 # Check whether --with-build-config was given.
10086 if test "${with_build_config+set}" = set; then :
10087 withval=$with_build_config; case $with_build_config in
10088 yes) with_build_config= ;;
10089 no) with_build_config= BUILD_CONFIG= ;;
10090 esac
10094 if test "x${with_build_config}" != x; then
10095 BUILD_CONFIG=$with_build_config
10096 else
10097 case $BUILD_CONFIG in
10098 bootstrap-debug)
10099 if echo "int f (void) { return 0; }" > conftest.c &&
10100 ${CC} -c conftest.c &&
10101 mv conftest.o conftest.o.g0 &&
10102 ${CC} -c -g conftest.c &&
10103 mv conftest.o conftest.o.g &&
10104 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
10106 else
10107 BUILD_CONFIG=
10109 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
10111 esac
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
10114 $as_echo "$BUILD_CONFIG" >&6; }
10117 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
10119 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
10120 # Check whether --enable-vtable-verify was given.
10121 if test "${enable_vtable_verify+set}" = set; then :
10122 enableval=$enable_vtable_verify; case "$enableval" in
10123 yes) enable_vtable_verify=yes ;;
10124 no) enable_vtable_verify=no ;;
10125 *) enable_vtable_verify=no;;
10126 esac
10127 else
10128 enable_vtable_verify=no
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
10132 $as_echo "$enable_vtable_verify" >&6; }
10134 # Record target_configdirs and the configure arguments for target and
10135 # build configuration in Makefile.
10136 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
10137 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
10138 bootstrap_fixincludes=no
10140 # If we are building libgomp, bootstrap it.
10141 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
10142 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
10145 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
10146 # or bootstrap-ubsan, bootstrap it.
10147 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
10148 case "$BUILD_CONFIG" in
10149 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
10150 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
10151 bootstrap_fixincludes=yes
10153 esac
10156 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
10157 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
10158 test "$enable_vtable_verify" != no; then
10159 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
10162 # If we are building libatomic and the list of enabled languages includes the
10163 # D frontend, bootstrap it.
10164 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
10165 case ,${enable_languages}, in
10166 *,d,*)
10167 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
10169 esac
10172 # Determine whether gdb needs tk/tcl or not.
10173 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10174 # and in that case we want gdb to be built without tk. Ugh!
10175 # In fact I believe gdb is the *only* package directly dependent on tk,
10176 # so we should be able to put the 'maybe's in unconditionally and
10177 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10178 # 100% sure that that's safe though.
10180 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10181 case "$enable_gdbtk" in
10183 GDB_TK="" ;;
10184 yes)
10185 GDB_TK="${gdb_tk}" ;;
10187 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10188 # distro. Eventually someone will fix this and move Insight, nee
10189 # gdbtk to a separate directory.
10190 if test -d ${srcdir}/gdb/gdbtk ; then
10191 GDB_TK="${gdb_tk}"
10192 else
10193 GDB_TK=""
10196 esac
10197 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10198 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10200 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10201 # else does, only include them if one of these is built. The Makefile
10202 # provides the ordering, so it's enough here to add to the list.
10203 case " ${configdirs} " in
10204 *\ gdb\ *)
10205 configdirs="${configdirs} gnulib gdbsupport"
10207 *\ gdbserver\ *)
10208 configdirs="${configdirs} gnulib gdbsupport"
10210 *\ sim\ *)
10211 configdirs="${configdirs} gnulib"
10213 esac
10215 # Strip out unwanted targets.
10217 # While at that, we remove Makefiles if we were started for recursive
10218 # configuration, so that the top-level Makefile reconfigures them,
10219 # like we used to do when configure itself was recursive.
10221 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
10222 # but now we're fixing up the Makefile ourselves with the additional
10223 # commands passed to AC_CONFIG_FILES. Use separate variables
10224 # extrasub-{build,host,target} not because there is any reason to split
10225 # the substitutions up that way, but only to remain below the limit of
10226 # 99 commands in a script, for HP-UX sed.
10228 # Do not nest @if/@endif or @unless/@endunless pairs, because
10229 # configure will not warn you at all.
10231 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
10232 yes:yes:*\ gold\ *:*,c++,*) ;;
10233 yes:yes:*\ gold\ *:*)
10234 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
10236 esac
10238 extrasub_build=
10239 for module in ${build_configdirs} ; do
10240 if test -z "${no_recursion}" \
10241 && test -f ${build_subdir}/${module}/Makefile; then
10242 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
10243 rm -f ${build_subdir}/${module}/Makefile
10245 extrasub_build="$extrasub_build
10246 /^@if build-$module\$/d
10247 /^@endif build-$module\$/d
10248 /^@unless build-$module\$/,/^@endunless build-$module\$/d
10249 /^@if build-$module-$bootstrap_suffix\$/d
10250 /^@endif build-$module-$bootstrap_suffix\$/d
10251 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
10252 done
10253 extrasub_host=
10254 for module in ${configdirs} ; do
10255 if test -z "${no_recursion}"; then
10256 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
10257 if test -f ${file}; then
10258 echo 1>&2 "*** removing ${file} to force reconfigure"
10259 rm -f ${file}
10261 done
10263 case ${module},${bootstrap_fixincludes} in
10264 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
10265 *) host_bootstrap_suffix=$bootstrap_suffix ;;
10266 esac
10267 extrasub_host="$extrasub_host
10268 /^@if $module\$/d
10269 /^@endif $module\$/d
10270 /^@unless $module\$/,/^@endunless $module\$/d
10271 /^@if $module-$host_bootstrap_suffix\$/d
10272 /^@endif $module-$host_bootstrap_suffix\$/d
10273 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
10274 done
10275 extrasub_target=
10276 for module in ${target_configdirs} ; do
10277 if test -z "${no_recursion}" \
10278 && test -f ${target_subdir}/${module}/Makefile; then
10279 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10280 rm -f ${target_subdir}/${module}/Makefile
10283 # We only bootstrap target libraries listed in bootstrap_target_libs.
10284 case $bootstrap_target_libs in
10285 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
10286 *) target_bootstrap_suffix=no-bootstrap ;;
10287 esac
10289 extrasub_target="$extrasub_target
10290 /^@if target-$module\$/d
10291 /^@endif target-$module\$/d
10292 /^@unless target-$module\$/,/^@endunless target-$module\$/d
10293 /^@if target-$module-$target_bootstrap_suffix\$/d
10294 /^@endif target-$module-$target_bootstrap_suffix\$/d
10295 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
10296 done
10298 # Do the final fixup along with target modules.
10299 extrasub_target="$extrasub_target
10300 /^@if /,/^@endif /d
10301 /^@unless /d
10302 /^@endunless /d"
10304 if test "$enable_pgo_build" != "no"; then
10305 extrasub_build="$extrasub_build
10306 /^@if pgo-build\$/d
10307 /^@endif pgo-build\$/d"
10310 # Create the serialization dependencies. This uses a temporary file.
10312 # Check whether --enable-serial-configure was given.
10313 if test "${enable_serial_configure+set}" = set; then :
10314 enableval=$enable_serial_configure;
10318 case ${enable_serial_configure} in
10319 yes)
10320 enable_serial_build_configure=yes
10321 enable_serial_host_configure=yes
10322 enable_serial_target_configure=yes
10324 esac
10326 # These force 'configure's to be done one at a time, to avoid problems
10327 # with contention over a shared config.cache.
10328 rm -f serdep.tmp
10329 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
10330 echo '# serdep.tmp' > serdep.tmp
10332 olditem=
10333 test "x${enable_serial_build_configure}" = xyes &&
10334 for item in ${build_configdirs} ; do
10335 case ${olditem} in
10336 "") ;;
10337 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
10338 esac
10339 olditem=${item}
10340 done
10341 olditem=
10342 test "x${enable_serial_host_configure}" = xyes &&
10343 for item in ${configdirs} ; do
10344 case ${olditem} in
10345 "") ;;
10346 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
10347 esac
10348 olditem=${item}
10349 done
10350 olditem=
10351 test "x${enable_serial_target_configure}" = xyes &&
10352 for item in ${target_configdirs} ; do
10353 case ${olditem} in
10354 "") ;;
10355 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
10356 esac
10357 olditem=${item}
10358 done
10359 serialization_dependencies=serdep.tmp
10362 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10363 # target, nonopt, and variable assignments. These are the ones we
10364 # might not want to pass down to subconfigures. The exception being
10365 # --cache-file=/dev/null, which is used to turn off the use of cache
10366 # files altogether, and which should be passed on to subconfigures.
10367 # Also strip program-prefix, program-suffix, and program-transform-name,
10368 # so that we can pass down a consistent program-transform-name.
10369 hbaseargs=
10370 bbaseargs=
10371 tbaseargs=
10372 keep_next=no
10373 skip_next=no
10374 eval "set -- $ac_configure_args"
10375 for ac_arg
10377 if test X"$skip_next" = X"yes"; then
10378 skip_next=no
10379 continue
10381 if test X"$keep_next" = X"yes"; then
10382 case $ac_arg in
10383 *\'*)
10384 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10385 esac
10386 hbaseargs="$hbaseargs '$ac_arg'"
10387 bbaseargs="$bbaseargs '$ac_arg'"
10388 tbaseargs="$tbaseargs '$ac_arg'"
10389 keep_next=no
10390 continue
10393 # Handle separated arguments. Based on the logic generated by
10394 # autoconf 2.59.
10395 case $ac_arg in
10396 *=* | --config-cache | -C | -disable-* | --disable-* \
10397 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10398 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10399 | -with-* | --with-* | -without-* | --without-* | --x)
10400 separate_arg=no
10403 separate_arg=yes
10406 separate_arg=no
10408 esac
10410 skip_targ=no
10411 skip_barg=no
10412 case $ac_arg in
10414 --with-* | --without-*)
10415 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10417 case $libopt in
10418 *[-_]include)
10419 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10421 *[-_]lib)
10422 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10424 *[-_]prefix)
10425 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
10427 *[-_]type)
10428 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
10431 lib=$libopt
10433 esac
10436 case $lib in
10437 mpc | mpfr | gmp | isl)
10438 # If we're processing --with-$lib, --with-$lib-include or
10439 # --with-$lib-lib, for one of the libs above, and target is
10440 # different from host, don't pass the current argument to any
10441 # target library's configure.
10442 if test x$is_cross_compiler = xyes; then
10443 skip_targ=yes
10446 libintl | libiconv)
10447 # We don't want libintl (and co.) in anything but the host arguments.
10448 skip_targ=yes
10449 skip_barg=yes
10451 esac
10453 esac
10455 case "$ac_arg" in
10456 --cache-file=/dev/null | \
10457 -cache-file=/dev/null )
10458 # Handled here to avoid the test to skip args below.
10459 hbaseargs="$hbaseargs '$ac_arg'"
10460 bbaseargs="$bbaseargs '$ac_arg'"
10461 tbaseargs="$tbaseargs '$ac_arg'"
10462 # Assert: $separate_arg should always be no.
10463 keep_next=$separate_arg
10465 --no*)
10466 continue
10468 --c* | \
10469 --sr* | \
10470 --ho* | \
10471 --bu* | \
10472 --t* | \
10473 --program-* | \
10474 -cache_file* | \
10475 -srcdir* | \
10476 -host* | \
10477 -build* | \
10478 -target* | \
10479 -program-prefix* | \
10480 -program-suffix* | \
10481 -program-transform-name* )
10482 skip_next=$separate_arg
10483 continue
10486 # An option. Add it.
10487 case $ac_arg in
10488 *\'*)
10489 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10490 esac
10491 hbaseargs="$hbaseargs '$ac_arg'"
10492 if test X"$skip_barg" = Xno; then
10493 bbaseargs="$bbaseargs '$ac_arg'"
10495 if test X"$skip_targ" = Xno; then
10496 tbaseargs="$tbaseargs '$ac_arg'"
10498 keep_next=$separate_arg
10501 # Either a variable assignment, or a nonopt (triplet). Don't
10502 # pass it down; let the Makefile handle this.
10503 continue
10505 esac
10506 done
10507 # Remove the initial space we just introduced and, as these will be
10508 # expanded by make, quote '$'.
10509 hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10510 bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10512 # Add in --program-transform-name, after --program-prefix and
10513 # --program-suffix have been applied to it. Autoconf has already
10514 # doubled dollar signs and backslashes in program_transform_name; we want
10515 # the backslashes un-doubled, and then the entire thing wrapped in single
10516 # quotes, because this will be expanded first by make and then by the shell.
10517 # Also, because we want to override the logic in subdir configure scripts to
10518 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10519 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10520 ${program_transform_name}
10521 EOF_SED
10522 gcc_transform_name=`cat conftestsed.out`
10523 rm -f conftestsed.out
10524 hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
10525 bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
10526 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10527 if test "$silent" = yes; then
10528 bbaseargs="$bbaseargs --silent"
10529 hbaseargs="$hbaseargs --silent"
10530 tbaseargs="$tbaseargs --silent"
10533 bbaseargs="$bbaseargs --disable-option-checking"
10534 hbaseargs="$hbaseargs --disable-option-checking"
10535 tbaseargs="$tbaseargs --disable-option-checking"
10537 if test "$enable_year2038" = no; then
10538 baseargs="$baseargs --disable-year2038"
10539 tbaseargs="$tbaseargs --disable-year2038"
10542 # Record and document user additions to sub configure arguments.
10547 # For the build-side libraries, we just need to pretend we're native,
10548 # and not use the same cache file. Multilibs are neither needed nor
10549 # desired. We can't even use the same cache file for all build-side
10550 # libraries, as they're compiled differently; some with C, some with
10551 # C++ or with different feature-enabling options.
10552 build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
10554 # For host modules, accept cache file option, or specification as blank.
10555 case "${cache_file}" in
10556 "") # empty
10557 cache_file_option="" ;;
10558 /* | [A-Za-z]:[\\/]* ) # absolute path
10559 cache_file_option="--cache-file=${cache_file}" ;;
10560 *) # relative path
10561 cache_file_option="--cache-file=../${cache_file}" ;;
10562 esac
10564 # Host dirs don't like to share a cache file either, horribly enough.
10565 # This seems to be due to autoconf 2.5x stupidity.
10566 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
10568 target_configargs="$target_configargs ${tbaseargs}"
10570 # Passing a --with-cross-host argument lets the target libraries know
10571 # whether they are being built with a cross-compiler or being built
10572 # native. However, it would be better to use other mechanisms to make the
10573 # sorts of decisions they want to make on this basis. Please consider
10574 # this option to be deprecated. FIXME.
10575 if test x${is_cross_compiler} = xyes ; then
10576 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10579 # Special user-friendly check for native x86_64-linux build, if
10580 # multilib is not explicitly enabled.
10581 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10582 x86_64-*linux*:yes:$build:$build:)
10583 # Make sure we have a development environment that handles 32-bit
10584 dev64=no
10585 echo "int main () { return 0; }" > conftest.c
10586 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10587 if test $? = 0 ; then
10588 if test -s conftest || test -s conftest.exe ; then
10589 dev64=yes
10592 rm -f conftest*
10593 if test x${dev64} != xyes ; then
10594 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
10597 esac
10599 # Default to --enable-multilib.
10600 if test x${enable_multilib} = x ; then
10601 target_configargs="--enable-multilib ${target_configargs}"
10604 # Pass --with-newlib if appropriate. Note that target_configdirs has
10605 # changed from the earlier setting of with_newlib.
10606 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10607 target_configargs="--with-newlib ${target_configargs}"
10610 # Different target subdirs use different values of certain variables
10611 # (notably CXX). Worse, multilibs use *lots* of different values.
10612 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10613 # it doesn't automatically accept command-line overrides of them.
10614 # This means it's not safe for target subdirs to share a cache file,
10615 # which is disgusting, but there you have it. Hopefully this can be
10616 # fixed in future. It's still worthwhile to use a cache file for each
10617 # directory. I think.
10619 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10620 # We need to pass --target, as newer autoconf's requires consistency
10621 # for target_alias and gcc doesn't manage it consistently.
10622 target_configargs="--cache-file=./config.cache ${target_configargs}"
10624 FLAGS_FOR_TARGET=
10625 case " $target_configdirs " in
10626 *" newlib "*)
10627 case " $target_configargs " in
10628 *" --with-newlib "*)
10629 case "$target" in
10630 *-cygwin*)
10631 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10633 esac
10635 # If we're not building GCC, don't discard standard headers.
10636 if test -d ${srcdir}/gcc; then
10637 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10639 if test "${build}" != "${host}"; then
10640 # On Canadian crosses, CC_FOR_TARGET will have already been set
10641 # by `configure', so we won't have an opportunity to add -Bgcc/
10642 # to it. This is right: we don't want to search that directory
10643 # for binaries, but we want the header files in there, so add
10644 # them explicitly.
10645 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10647 # Someone might think of using the pre-installed headers on
10648 # Canadian crosses, in case the installed compiler is not fully
10649 # compatible with the compiler being built. In this case, it
10650 # would be better to flag an error than risking having
10651 # incompatible object files being constructed. We can't
10652 # guarantee that an error will be flagged, but let's hope the
10653 # compiler will do it, when presented with incompatible header
10654 # files.
10658 case "${target}-${is_cross_compiler}" in
10659 i[3456789]86-*-linux*-no)
10660 # Here host == target, so we don't need to build gcc,
10661 # so we don't want to discard standard headers.
10662 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10665 # If we're building newlib, use its generic headers last, but search
10666 # for any libc-related directories first (so make it the last -B
10667 # switch).
10668 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10670 # If we're building libgloss, find the startup file, simulator library
10671 # and linker script.
10672 case " $target_configdirs " in
10673 *" libgloss "*)
10674 # Look for startup file, simulator library and maybe linker script.
10675 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10676 # Look for libnosys.a in case the target needs it.
10677 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10678 # Most targets have the linker script in the source directory.
10679 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10681 esac
10683 esac
10685 esac
10687 esac
10689 case "$target" in
10690 x86_64-*mingw* | *-w64-mingw*)
10691 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10692 # however, use a symlink named 'mingw' in ${prefix} .
10693 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10695 *-mingw*)
10696 # MinGW can't be handled as Cygwin above since it does not use newlib.
10697 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'
10699 esac
10701 # Allow the user to override the flags for
10702 # our build compiler if desired.
10703 if test x"${build}" = x"${host}" ; then
10704 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10705 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10706 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10707 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10710 # On Canadian crosses, we'll be searching the right directories for
10711 # the previously-installed cross compiler, so don't bother to add
10712 # flags for directories within the install tree of the compiler
10713 # being built; programs in there won't even run.
10714 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10715 # Search for pre-installed headers if nothing else fits.
10716 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10719 if test "x${use_gnu_ld}" = x &&
10720 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10721 # Arrange for us to find uninstalled linker scripts.
10722 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10725 # Search for other target-specific linker scripts and such.
10726 case "${target}" in
10727 mep*)
10728 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10730 # The VxWorks support for shared libraries is getting in
10731 # incrementally. Make sure it doesn't get activated implicitly:
10732 *vxworks*)
10733 if test "${enable_shared-unset}" = unset ; then
10734 enable_shared=no
10735 # So the build of libraries knows ...
10736 target_configargs="${target_configargs} --disable-shared"
10737 # So gcc knows ...
10738 host_configargs="${host_configargs} --disable-shared"
10741 esac
10743 # Makefile fragments.
10744 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10746 eval fragval=\$$frag
10747 if test $fragval != /dev/null; then
10748 eval $frag=${srcdir}/$fragval
10750 done
10756 # Miscellanea: directories, flags, etc.
10765 # Build module lists & subconfigure args.
10769 # Host module lists & subconfigure args.
10774 # Target module lists & subconfigure args.
10778 # Build tools.
10799 # Generate default definitions for YACC, M4, LEX and other programs that run
10800 # on the build machine. These are used if the Makefile can't locate these
10801 # programs in objdir.
10802 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10804 for ac_prog in 'bison -y' byacc yacc
10806 # Extract the first word of "$ac_prog", so it can be a program name with args.
10807 set dummy $ac_prog; ac_word=$2
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10809 $as_echo_n "checking for $ac_word... " >&6; }
10810 if ${ac_cv_prog_YACC+:} false; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 if test -n "$YACC"; then
10814 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10815 else
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10823 ac_cv_prog_YACC="$ac_prog"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10827 done
10828 done
10829 IFS=$as_save_IFS
10833 YACC=$ac_cv_prog_YACC
10834 if test -n "$YACC"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10836 $as_echo "$YACC" >&6; }
10837 else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10843 test -n "$YACC" && break
10844 done
10845 test -n "$YACC" || YACC="$MISSING bison -y"
10847 case " $build_configdirs " in
10848 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10849 esac
10851 for ac_prog in bison
10853 # Extract the first word of "$ac_prog", so it can be a program name with args.
10854 set dummy $ac_prog; ac_word=$2
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856 $as_echo_n "checking for $ac_word... " >&6; }
10857 if ${ac_cv_prog_BISON+:} false; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 if test -n "$BISON"; then
10861 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10862 else
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10870 ac_cv_prog_BISON="$ac_prog"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10874 done
10875 done
10876 IFS=$as_save_IFS
10880 BISON=$ac_cv_prog_BISON
10881 if test -n "$BISON"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10883 $as_echo "$BISON" >&6; }
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; }
10890 test -n "$BISON" && break
10891 done
10892 test -n "$BISON" || BISON="$MISSING bison"
10894 case " $build_configdirs " in
10895 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10896 esac
10898 for ac_prog in gm4 gnum4 m4
10900 # Extract the first word of "$ac_prog", so it can be a program name with args.
10901 set dummy $ac_prog; ac_word=$2
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903 $as_echo_n "checking for $ac_word... " >&6; }
10904 if ${ac_cv_prog_M4+:} false; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 if test -n "$M4"; then
10908 ac_cv_prog_M4="$M4" # Let the user override the test.
10909 else
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $PATH
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10917 ac_cv_prog_M4="$ac_prog"
10918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10921 done
10922 done
10923 IFS=$as_save_IFS
10927 M4=$ac_cv_prog_M4
10928 if test -n "$M4"; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10930 $as_echo "$M4" >&6; }
10931 else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933 $as_echo "no" >&6; }
10937 test -n "$M4" && break
10938 done
10939 test -n "$M4" || M4="$MISSING m4"
10941 case " $build_configdirs " in
10942 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10943 esac
10945 for ac_prog in flex lex
10947 # Extract the first word of "$ac_prog", so it can be a program name with args.
10948 set dummy $ac_prog; ac_word=$2
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10950 $as_echo_n "checking for $ac_word... " >&6; }
10951 if ${ac_cv_prog_LEX+:} false; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 if test -n "$LEX"; then
10955 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10956 else
10957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958 for as_dir in $PATH
10960 IFS=$as_save_IFS
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10964 ac_cv_prog_LEX="$ac_prog"
10965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10966 break 2
10968 done
10969 done
10970 IFS=$as_save_IFS
10974 LEX=$ac_cv_prog_LEX
10975 if test -n "$LEX"; then
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10977 $as_echo "$LEX" >&6; }
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980 $as_echo "no" >&6; }
10984 test -n "$LEX" && break
10985 done
10986 test -n "$LEX" || LEX="$MISSING flex"
10988 case " $build_configdirs " in
10989 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10990 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10991 esac
10993 for ac_prog in flex
10995 # Extract the first word of "$ac_prog", so it can be a program name with args.
10996 set dummy $ac_prog; ac_word=$2
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10998 $as_echo_n "checking for $ac_word... " >&6; }
10999 if ${ac_cv_prog_FLEX+:} false; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 if test -n "$FLEX"; then
11003 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
11004 else
11005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006 for as_dir in $PATH
11008 IFS=$as_save_IFS
11009 test -z "$as_dir" && as_dir=.
11010 for ac_exec_ext in '' $ac_executable_extensions; do
11011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11012 ac_cv_prog_FLEX="$ac_prog"
11013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11014 break 2
11016 done
11017 done
11018 IFS=$as_save_IFS
11022 FLEX=$ac_cv_prog_FLEX
11023 if test -n "$FLEX"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11025 $as_echo "$FLEX" >&6; }
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; }
11032 test -n "$FLEX" && break
11033 done
11034 test -n "$FLEX" || FLEX="$MISSING flex"
11036 case " $build_configdirs " in
11037 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11038 esac
11040 for ac_prog in makeinfo
11042 # Extract the first word of "$ac_prog", so it can be a program name with args.
11043 set dummy $ac_prog; ac_word=$2
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045 $as_echo_n "checking for $ac_word... " >&6; }
11046 if ${ac_cv_prog_MAKEINFO+:} false; then :
11047 $as_echo_n "(cached) " >&6
11048 else
11049 if test -n "$MAKEINFO"; then
11050 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11051 else
11052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053 for as_dir in $PATH
11055 IFS=$as_save_IFS
11056 test -z "$as_dir" && as_dir=.
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11059 ac_cv_prog_MAKEINFO="$ac_prog"
11060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 break 2
11063 done
11064 done
11065 IFS=$as_save_IFS
11069 MAKEINFO=$ac_cv_prog_MAKEINFO
11070 if test -n "$MAKEINFO"; then
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11072 $as_echo "$MAKEINFO" >&6; }
11073 else
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075 $as_echo "no" >&6; }
11079 test -n "$MAKEINFO" && break
11080 done
11081 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
11083 case " $build_configdirs " in
11084 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11087 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11088 # higher, else we use the "missing" dummy.
11089 if ${MAKEINFO} --version \
11090 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
11092 else
11093 MAKEINFO="$MISSING makeinfo"
11097 esac
11099 # FIXME: expect and dejagnu may become build tools?
11101 for ac_prog in expect
11103 # Extract the first word of "$ac_prog", so it can be a program name with args.
11104 set dummy $ac_prog; ac_word=$2
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11106 $as_echo_n "checking for $ac_word... " >&6; }
11107 if ${ac_cv_prog_EXPECT+:} false; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 if test -n "$EXPECT"; then
11111 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
11112 else
11113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in $PATH
11116 IFS=$as_save_IFS
11117 test -z "$as_dir" && as_dir=.
11118 for ac_exec_ext in '' $ac_executable_extensions; do
11119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11120 ac_cv_prog_EXPECT="$ac_prog"
11121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 break 2
11124 done
11125 done
11126 IFS=$as_save_IFS
11130 EXPECT=$ac_cv_prog_EXPECT
11131 if test -n "$EXPECT"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
11133 $as_echo "$EXPECT" >&6; }
11134 else
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11140 test -n "$EXPECT" && break
11141 done
11142 test -n "$EXPECT" || EXPECT="expect"
11144 case " $configdirs " in
11145 *" expect "*)
11146 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
11148 esac
11150 for ac_prog in runtest
11152 # Extract the first word of "$ac_prog", so it can be a program name with args.
11153 set dummy $ac_prog; 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 ${ac_cv_prog_RUNTEST+:} false; then :
11157 $as_echo_n "(cached) " >&6
11158 else
11159 if test -n "$RUNTEST"; then
11160 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
11161 else
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11165 IFS=$as_save_IFS
11166 test -z "$as_dir" && as_dir=.
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11169 ac_cv_prog_RUNTEST="$ac_prog"
11170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11171 break 2
11173 done
11174 done
11175 IFS=$as_save_IFS
11179 RUNTEST=$ac_cv_prog_RUNTEST
11180 if test -n "$RUNTEST"; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
11182 $as_echo "$RUNTEST" >&6; }
11183 else
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185 $as_echo "no" >&6; }
11189 test -n "$RUNTEST" && break
11190 done
11191 test -n "$RUNTEST" || RUNTEST="runtest"
11193 case " $configdirs " in
11194 *" dejagnu "*)
11195 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11197 esac
11200 # Host tools.
11201 ncn_tool_prefix=
11202 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11203 ncn_target_tool_prefix=
11204 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
11208 if test -n "$AR"; then
11209 ac_cv_prog_AR=$AR
11210 elif test -n "$ac_cv_prog_AR"; then
11211 AR=$ac_cv_prog_AR
11214 if test -n "$ac_cv_prog_AR"; then
11215 for ncn_progname in ar; do
11216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11217 set dummy ${ncn_progname}; ac_word=$2
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11219 $as_echo_n "checking for $ac_word... " >&6; }
11220 if ${ac_cv_prog_AR+:} false; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 if test -n "$AR"; then
11224 ac_cv_prog_AR="$AR" # Let the user override the test.
11225 else
11226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11227 for as_dir in $PATH
11229 IFS=$as_save_IFS
11230 test -z "$as_dir" && as_dir=.
11231 for ac_exec_ext in '' $ac_executable_extensions; do
11232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11233 ac_cv_prog_AR="${ncn_progname}"
11234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11235 break 2
11237 done
11238 done
11239 IFS=$as_save_IFS
11243 AR=$ac_cv_prog_AR
11244 if test -n "$AR"; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11246 $as_echo "$AR" >&6; }
11247 else
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249 $as_echo "no" >&6; }
11253 done
11256 for ncn_progname in ar; do
11257 if test -n "$ncn_tool_prefix"; then
11258 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11259 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11261 $as_echo_n "checking for $ac_word... " >&6; }
11262 if ${ac_cv_prog_AR+:} false; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 if test -n "$AR"; then
11266 ac_cv_prog_AR="$AR" # Let the user override the test.
11267 else
11268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269 for as_dir in $PATH
11271 IFS=$as_save_IFS
11272 test -z "$as_dir" && as_dir=.
11273 for ac_exec_ext in '' $ac_executable_extensions; do
11274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11275 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
11276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277 break 2
11279 done
11280 done
11281 IFS=$as_save_IFS
11285 AR=$ac_cv_prog_AR
11286 if test -n "$AR"; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11288 $as_echo "$AR" >&6; }
11289 else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11296 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11298 set dummy ${ncn_progname}; ac_word=$2
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11300 $as_echo_n "checking for $ac_word... " >&6; }
11301 if ${ac_cv_prog_AR+:} false; then :
11302 $as_echo_n "(cached) " >&6
11303 else
11304 if test -n "$AR"; then
11305 ac_cv_prog_AR="$AR" # Let the user override the test.
11306 else
11307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308 for as_dir in $PATH
11310 IFS=$as_save_IFS
11311 test -z "$as_dir" && as_dir=.
11312 for ac_exec_ext in '' $ac_executable_extensions; do
11313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11314 ac_cv_prog_AR="${ncn_progname}"
11315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11316 break 2
11318 done
11319 done
11320 IFS=$as_save_IFS
11324 AR=$ac_cv_prog_AR
11325 if test -n "$AR"; then
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11327 $as_echo "$AR" >&6; }
11328 else
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330 $as_echo "no" >&6; }
11335 test -n "$ac_cv_prog_AR" && break
11336 done
11338 if test -z "$ac_cv_prog_AR" ; then
11339 set dummy ar
11340 if test $build = $host ; then
11341 AR="$2"
11342 else
11343 AR="${ncn_tool_prefix}$2"
11349 if test -n "$AS"; then
11350 ac_cv_prog_AS=$AS
11351 elif test -n "$ac_cv_prog_AS"; then
11352 AS=$ac_cv_prog_AS
11355 if test -n "$ac_cv_prog_AS"; then
11356 for ncn_progname in as; do
11357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11358 set dummy ${ncn_progname}; ac_word=$2
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360 $as_echo_n "checking for $ac_word... " >&6; }
11361 if ${ac_cv_prog_AS+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 if test -n "$AS"; then
11365 ac_cv_prog_AS="$AS" # Let the user override the test.
11366 else
11367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368 for as_dir in $PATH
11370 IFS=$as_save_IFS
11371 test -z "$as_dir" && as_dir=.
11372 for ac_exec_ext in '' $ac_executable_extensions; do
11373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11374 ac_cv_prog_AS="${ncn_progname}"
11375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11376 break 2
11378 done
11379 done
11380 IFS=$as_save_IFS
11384 AS=$ac_cv_prog_AS
11385 if test -n "$AS"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11387 $as_echo "$AS" >&6; }
11388 else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11394 done
11397 for ncn_progname in as; do
11398 if test -n "$ncn_tool_prefix"; then
11399 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11400 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if ${ac_cv_prog_AS+:} false; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 if test -n "$AS"; then
11407 ac_cv_prog_AS="$AS" # Let the user override the test.
11408 else
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH
11412 IFS=$as_save_IFS
11413 test -z "$as_dir" && as_dir=.
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11416 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 break 2
11420 done
11421 done
11422 IFS=$as_save_IFS
11426 AS=$ac_cv_prog_AS
11427 if test -n "$AS"; then
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11429 $as_echo "$AS" >&6; }
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11437 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11439 set dummy ${ncn_progname}; ac_word=$2
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11441 $as_echo_n "checking for $ac_word... " >&6; }
11442 if ${ac_cv_prog_AS+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 if test -n "$AS"; then
11446 ac_cv_prog_AS="$AS" # Let the user override the test.
11447 else
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11451 IFS=$as_save_IFS
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11455 ac_cv_prog_AS="${ncn_progname}"
11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457 break 2
11459 done
11460 done
11461 IFS=$as_save_IFS
11465 AS=$ac_cv_prog_AS
11466 if test -n "$AS"; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11468 $as_echo "$AS" >&6; }
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11476 test -n "$ac_cv_prog_AS" && break
11477 done
11479 if test -z "$ac_cv_prog_AS" ; then
11480 set dummy as
11481 if test $build = $host ; then
11482 AS="$2"
11483 else
11484 AS="${ncn_tool_prefix}$2"
11490 if test -n "$DLLTOOL"; then
11491 ac_cv_prog_DLLTOOL=$DLLTOOL
11492 elif test -n "$ac_cv_prog_DLLTOOL"; then
11493 DLLTOOL=$ac_cv_prog_DLLTOOL
11496 if test -n "$ac_cv_prog_DLLTOOL"; then
11497 for ncn_progname in dlltool; do
11498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11499 set dummy ${ncn_progname}; ac_word=$2
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501 $as_echo_n "checking for $ac_word... " >&6; }
11502 if ${ac_cv_prog_DLLTOOL+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 if test -n "$DLLTOOL"; then
11506 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11507 else
11508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11515 ac_cv_prog_DLLTOOL="${ncn_progname}"
11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 break 2
11519 done
11520 done
11521 IFS=$as_save_IFS
11525 DLLTOOL=$ac_cv_prog_DLLTOOL
11526 if test -n "$DLLTOOL"; then
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11528 $as_echo "$DLLTOOL" >&6; }
11529 else
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531 $as_echo "no" >&6; }
11535 done
11538 for ncn_progname in dlltool; do
11539 if test -n "$ncn_tool_prefix"; then
11540 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11541 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11543 $as_echo_n "checking for $ac_word... " >&6; }
11544 if ${ac_cv_prog_DLLTOOL+:} false; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 if test -n "$DLLTOOL"; then
11548 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11549 else
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11553 IFS=$as_save_IFS
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 break 2
11561 done
11562 done
11563 IFS=$as_save_IFS
11567 DLLTOOL=$ac_cv_prog_DLLTOOL
11568 if test -n "$DLLTOOL"; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11570 $as_echo "$DLLTOOL" >&6; }
11571 else
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11578 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11580 set dummy ${ncn_progname}; ac_word=$2
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582 $as_echo_n "checking for $ac_word... " >&6; }
11583 if ${ac_cv_prog_DLLTOOL+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 if test -n "$DLLTOOL"; then
11587 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11588 else
11589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590 for as_dir in $PATH
11592 IFS=$as_save_IFS
11593 test -z "$as_dir" && as_dir=.
11594 for ac_exec_ext in '' $ac_executable_extensions; do
11595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11596 ac_cv_prog_DLLTOOL="${ncn_progname}"
11597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11598 break 2
11600 done
11601 done
11602 IFS=$as_save_IFS
11606 DLLTOOL=$ac_cv_prog_DLLTOOL
11607 if test -n "$DLLTOOL"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11609 $as_echo "$DLLTOOL" >&6; }
11610 else
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11617 test -n "$ac_cv_prog_DLLTOOL" && break
11618 done
11620 if test -z "$ac_cv_prog_DLLTOOL" ; then
11621 set dummy dlltool
11622 if test $build = $host ; then
11623 DLLTOOL="$2"
11624 else
11625 DLLTOOL="${ncn_tool_prefix}$2"
11631 if test -n "$DSYMUTIL"; then
11632 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11633 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11634 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11637 if test -n "$ac_cv_prog_DSYMUTIL"; then
11638 for ncn_progname in dsymutil; do
11639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11640 set dummy ${ncn_progname}; ac_word=$2
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642 $as_echo_n "checking for $ac_word... " >&6; }
11643 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 if test -n "$DSYMUTIL"; then
11647 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11648 else
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11652 IFS=$as_save_IFS
11653 test -z "$as_dir" && as_dir=.
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11656 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11658 break 2
11660 done
11661 done
11662 IFS=$as_save_IFS
11666 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11667 if test -n "$DSYMUTIL"; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11669 $as_echo "$DSYMUTIL" >&6; }
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11676 done
11679 for ncn_progname in dsymutil; do
11680 if test -n "$ncn_tool_prefix"; then
11681 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11682 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 if test -n "$DSYMUTIL"; then
11689 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11690 else
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11698 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 break 2
11702 done
11703 done
11704 IFS=$as_save_IFS
11708 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11709 if test -n "$DSYMUTIL"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11711 $as_echo "$DSYMUTIL" >&6; }
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11719 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11721 set dummy ${ncn_progname}; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 if test -n "$DSYMUTIL"; then
11728 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11729 else
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11737 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11741 done
11742 done
11743 IFS=$as_save_IFS
11747 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11748 if test -n "$DSYMUTIL"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11750 $as_echo "$DSYMUTIL" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11758 test -n "$ac_cv_prog_DSYMUTIL" && break
11759 done
11761 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11762 set dummy dsymutil
11763 if test $build = $host ; then
11764 DSYMUTIL="$2"
11765 else
11766 DSYMUTIL="${ncn_tool_prefix}$2"
11772 if test -n "$LD"; then
11773 ac_cv_prog_LD=$LD
11774 elif test -n "$ac_cv_prog_LD"; then
11775 LD=$ac_cv_prog_LD
11778 if test -n "$ac_cv_prog_LD"; then
11779 for ncn_progname in ld; do
11780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11781 set dummy ${ncn_progname}; ac_word=$2
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if ${ac_cv_prog_LD+:} false; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 if test -n "$LD"; then
11788 ac_cv_prog_LD="$LD" # Let the user override the test.
11789 else
11790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791 for as_dir in $PATH
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11797 ac_cv_prog_LD="${ncn_progname}"
11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 break 2
11801 done
11802 done
11803 IFS=$as_save_IFS
11807 LD=$ac_cv_prog_LD
11808 if test -n "$LD"; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11810 $as_echo "$LD" >&6; }
11811 else
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11817 done
11820 for ncn_progname in ld; do
11821 if test -n "$ncn_tool_prefix"; then
11822 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11823 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825 $as_echo_n "checking for $ac_word... " >&6; }
11826 if ${ac_cv_prog_LD+:} false; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 if test -n "$LD"; then
11830 ac_cv_prog_LD="$LD" # Let the user override the test.
11831 else
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11843 done
11844 done
11845 IFS=$as_save_IFS
11849 LD=$ac_cv_prog_LD
11850 if test -n "$LD"; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11852 $as_echo "$LD" >&6; }
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11860 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11862 set dummy ${ncn_progname}; ac_word=$2
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864 $as_echo_n "checking for $ac_word... " >&6; }
11865 if ${ac_cv_prog_LD+:} false; then :
11866 $as_echo_n "(cached) " >&6
11867 else
11868 if test -n "$LD"; then
11869 ac_cv_prog_LD="$LD" # Let the user override the test.
11870 else
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11874 IFS=$as_save_IFS
11875 test -z "$as_dir" && as_dir=.
11876 for ac_exec_ext in '' $ac_executable_extensions; do
11877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11878 ac_cv_prog_LD="${ncn_progname}"
11879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880 break 2
11882 done
11883 done
11884 IFS=$as_save_IFS
11888 LD=$ac_cv_prog_LD
11889 if test -n "$LD"; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11891 $as_echo "$LD" >&6; }
11892 else
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11899 test -n "$ac_cv_prog_LD" && break
11900 done
11902 if test -z "$ac_cv_prog_LD" ; then
11903 set dummy ld
11904 if test $build = $host ; then
11905 LD="$2"
11906 else
11907 LD="${ncn_tool_prefix}$2"
11913 if test -n "$LIPO"; then
11914 ac_cv_prog_LIPO=$LIPO
11915 elif test -n "$ac_cv_prog_LIPO"; then
11916 LIPO=$ac_cv_prog_LIPO
11919 if test -n "$ac_cv_prog_LIPO"; then
11920 for ncn_progname in lipo; do
11921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11922 set dummy ${ncn_progname}; ac_word=$2
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924 $as_echo_n "checking for $ac_word... " >&6; }
11925 if ${ac_cv_prog_LIPO+:} false; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 if test -n "$LIPO"; then
11929 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11930 else
11931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932 for as_dir in $PATH
11934 IFS=$as_save_IFS
11935 test -z "$as_dir" && as_dir=.
11936 for ac_exec_ext in '' $ac_executable_extensions; do
11937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11938 ac_cv_prog_LIPO="${ncn_progname}"
11939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11940 break 2
11942 done
11943 done
11944 IFS=$as_save_IFS
11948 LIPO=$ac_cv_prog_LIPO
11949 if test -n "$LIPO"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11951 $as_echo "$LIPO" >&6; }
11952 else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 $as_echo "no" >&6; }
11958 done
11961 for ncn_progname in lipo; do
11962 if test -n "$ncn_tool_prefix"; then
11963 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11964 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11966 $as_echo_n "checking for $ac_word... " >&6; }
11967 if ${ac_cv_prog_LIPO+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 if test -n "$LIPO"; then
11971 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11972 else
11973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in $PATH
11976 IFS=$as_save_IFS
11977 test -z "$as_dir" && as_dir=.
11978 for ac_exec_ext in '' $ac_executable_extensions; do
11979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11980 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11982 break 2
11984 done
11985 done
11986 IFS=$as_save_IFS
11990 LIPO=$ac_cv_prog_LIPO
11991 if test -n "$LIPO"; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11993 $as_echo "$LIPO" >&6; }
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
12001 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
12002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12003 set dummy ${ncn_progname}; ac_word=$2
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12005 $as_echo_n "checking for $ac_word... " >&6; }
12006 if ${ac_cv_prog_LIPO+:} false; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 if test -n "$LIPO"; then
12010 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12011 else
12012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013 for as_dir in $PATH
12015 IFS=$as_save_IFS
12016 test -z "$as_dir" && as_dir=.
12017 for ac_exec_ext in '' $ac_executable_extensions; do
12018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12019 ac_cv_prog_LIPO="${ncn_progname}"
12020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 break 2
12023 done
12024 done
12025 IFS=$as_save_IFS
12029 LIPO=$ac_cv_prog_LIPO
12030 if test -n "$LIPO"; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12032 $as_echo "$LIPO" >&6; }
12033 else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035 $as_echo "no" >&6; }
12040 test -n "$ac_cv_prog_LIPO" && break
12041 done
12043 if test -z "$ac_cv_prog_LIPO" ; then
12044 set dummy lipo
12045 if test $build = $host ; then
12046 LIPO="$2"
12047 else
12048 LIPO="${ncn_tool_prefix}$2"
12054 if test -n "$NM"; then
12055 ac_cv_prog_NM=$NM
12056 elif test -n "$ac_cv_prog_NM"; then
12057 NM=$ac_cv_prog_NM
12060 if test -n "$ac_cv_prog_NM"; then
12061 for ncn_progname in nm; do
12062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12063 set dummy ${ncn_progname}; ac_word=$2
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065 $as_echo_n "checking for $ac_word... " >&6; }
12066 if ${ac_cv_prog_NM+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 if test -n "$NM"; then
12070 ac_cv_prog_NM="$NM" # Let the user override the test.
12071 else
12072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073 for as_dir in $PATH
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
12077 for ac_exec_ext in '' $ac_executable_extensions; do
12078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12079 ac_cv_prog_NM="${ncn_progname}"
12080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12081 break 2
12083 done
12084 done
12085 IFS=$as_save_IFS
12089 NM=$ac_cv_prog_NM
12090 if test -n "$NM"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12092 $as_echo "$NM" >&6; }
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12099 done
12102 for ncn_progname in nm; do
12103 if test -n "$ncn_tool_prefix"; then
12104 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12105 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if ${ac_cv_prog_NM+:} false; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 if test -n "$NM"; then
12112 ac_cv_prog_NM="$NM" # Let the user override the test.
12113 else
12114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115 for as_dir in $PATH
12117 IFS=$as_save_IFS
12118 test -z "$as_dir" && as_dir=.
12119 for ac_exec_ext in '' $ac_executable_extensions; do
12120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12121 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
12122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12123 break 2
12125 done
12126 done
12127 IFS=$as_save_IFS
12131 NM=$ac_cv_prog_NM
12132 if test -n "$NM"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12134 $as_echo "$NM" >&6; }
12135 else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12142 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
12143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12144 set dummy ${ncn_progname}; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_prog_NM+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 if test -n "$NM"; then
12151 ac_cv_prog_NM="$NM" # Let the user override the test.
12152 else
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12156 IFS=$as_save_IFS
12157 test -z "$as_dir" && as_dir=.
12158 for ac_exec_ext in '' $ac_executable_extensions; do
12159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160 ac_cv_prog_NM="${ncn_progname}"
12161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12162 break 2
12164 done
12165 done
12166 IFS=$as_save_IFS
12170 NM=$ac_cv_prog_NM
12171 if test -n "$NM"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12173 $as_echo "$NM" >&6; }
12174 else
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12181 test -n "$ac_cv_prog_NM" && break
12182 done
12184 if test -z "$ac_cv_prog_NM" ; then
12185 set dummy nm
12186 if test $build = $host ; then
12187 NM="$2"
12188 else
12189 NM="${ncn_tool_prefix}$2"
12195 if test -n "$RANLIB"; then
12196 ac_cv_prog_RANLIB=$RANLIB
12197 elif test -n "$ac_cv_prog_RANLIB"; then
12198 RANLIB=$ac_cv_prog_RANLIB
12201 if test -n "$ac_cv_prog_RANLIB"; then
12202 for ncn_progname in ranlib; do
12203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12204 set dummy ${ncn_progname}; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if ${ac_cv_prog_RANLIB+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 if test -n "$RANLIB"; then
12211 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12212 else
12213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214 for as_dir in $PATH
12216 IFS=$as_save_IFS
12217 test -z "$as_dir" && as_dir=.
12218 for ac_exec_ext in '' $ac_executable_extensions; do
12219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12220 ac_cv_prog_RANLIB="${ncn_progname}"
12221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12222 break 2
12224 done
12225 done
12226 IFS=$as_save_IFS
12230 RANLIB=$ac_cv_prog_RANLIB
12231 if test -n "$RANLIB"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12233 $as_echo "$RANLIB" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12240 done
12243 for ncn_progname in ranlib; do
12244 if test -n "$ncn_tool_prefix"; then
12245 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12246 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if ${ac_cv_prog_RANLIB+:} false; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 if test -n "$RANLIB"; then
12253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12254 else
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 break 2
12266 done
12267 done
12268 IFS=$as_save_IFS
12272 RANLIB=$ac_cv_prog_RANLIB
12273 if test -n "$RANLIB"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12275 $as_echo "$RANLIB" >&6; }
12276 else
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12283 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12285 set dummy ${ncn_progname}; ac_word=$2
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287 $as_echo_n "checking for $ac_word... " >&6; }
12288 if ${ac_cv_prog_RANLIB+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 if test -n "$RANLIB"; then
12292 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12293 else
12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295 for as_dir in $PATH
12297 IFS=$as_save_IFS
12298 test -z "$as_dir" && as_dir=.
12299 for ac_exec_ext in '' $ac_executable_extensions; do
12300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12301 ac_cv_prog_RANLIB="${ncn_progname}"
12302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12303 break 2
12305 done
12306 done
12307 IFS=$as_save_IFS
12311 RANLIB=$ac_cv_prog_RANLIB
12312 if test -n "$RANLIB"; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12314 $as_echo "$RANLIB" >&6; }
12315 else
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317 $as_echo "no" >&6; }
12322 test -n "$ac_cv_prog_RANLIB" && break
12323 done
12325 if test -z "$ac_cv_prog_RANLIB" ; then
12326 RANLIB="true"
12331 if test -n "$STRIP"; then
12332 ac_cv_prog_STRIP=$STRIP
12333 elif test -n "$ac_cv_prog_STRIP"; then
12334 STRIP=$ac_cv_prog_STRIP
12337 if test -n "$ac_cv_prog_STRIP"; then
12338 for ncn_progname in strip; do
12339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12340 set dummy ${ncn_progname}; ac_word=$2
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12342 $as_echo_n "checking for $ac_word... " >&6; }
12343 if ${ac_cv_prog_STRIP+:} false; then :
12344 $as_echo_n "(cached) " >&6
12345 else
12346 if test -n "$STRIP"; then
12347 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12348 else
12349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350 for as_dir in $PATH
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
12354 for ac_exec_ext in '' $ac_executable_extensions; do
12355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12356 ac_cv_prog_STRIP="${ncn_progname}"
12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358 break 2
12360 done
12361 done
12362 IFS=$as_save_IFS
12366 STRIP=$ac_cv_prog_STRIP
12367 if test -n "$STRIP"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12369 $as_echo "$STRIP" >&6; }
12370 else
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12376 done
12379 for ncn_progname in strip; do
12380 if test -n "$ncn_tool_prefix"; then
12381 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12382 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12384 $as_echo_n "checking for $ac_word... " >&6; }
12385 if ${ac_cv_prog_STRIP+:} false; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 if test -n "$STRIP"; then
12389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12390 else
12391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392 for as_dir in $PATH
12394 IFS=$as_save_IFS
12395 test -z "$as_dir" && as_dir=.
12396 for ac_exec_ext in '' $ac_executable_extensions; do
12397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12398 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400 break 2
12402 done
12403 done
12404 IFS=$as_save_IFS
12408 STRIP=$ac_cv_prog_STRIP
12409 if test -n "$STRIP"; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12411 $as_echo "$STRIP" >&6; }
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12419 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12421 set dummy ${ncn_progname}; ac_word=$2
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12423 $as_echo_n "checking for $ac_word... " >&6; }
12424 if ${ac_cv_prog_STRIP+:} false; then :
12425 $as_echo_n "(cached) " >&6
12426 else
12427 if test -n "$STRIP"; then
12428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12429 else
12430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12431 for as_dir in $PATH
12433 IFS=$as_save_IFS
12434 test -z "$as_dir" && as_dir=.
12435 for ac_exec_ext in '' $ac_executable_extensions; do
12436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12437 ac_cv_prog_STRIP="${ncn_progname}"
12438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12439 break 2
12441 done
12442 done
12443 IFS=$as_save_IFS
12447 STRIP=$ac_cv_prog_STRIP
12448 if test -n "$STRIP"; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12450 $as_echo "$STRIP" >&6; }
12451 else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12458 test -n "$ac_cv_prog_STRIP" && break
12459 done
12461 if test -z "$ac_cv_prog_STRIP" ; then
12462 STRIP="true"
12467 if test -n "$WINDRES"; then
12468 ac_cv_prog_WINDRES=$WINDRES
12469 elif test -n "$ac_cv_prog_WINDRES"; then
12470 WINDRES=$ac_cv_prog_WINDRES
12473 if test -n "$ac_cv_prog_WINDRES"; then
12474 for ncn_progname in windres; do
12475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12476 set dummy ${ncn_progname}; ac_word=$2
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478 $as_echo_n "checking for $ac_word... " >&6; }
12479 if ${ac_cv_prog_WINDRES+:} false; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 if test -n "$WINDRES"; then
12483 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12484 else
12485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12486 for as_dir in $PATH
12488 IFS=$as_save_IFS
12489 test -z "$as_dir" && as_dir=.
12490 for ac_exec_ext in '' $ac_executable_extensions; do
12491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12492 ac_cv_prog_WINDRES="${ncn_progname}"
12493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12494 break 2
12496 done
12497 done
12498 IFS=$as_save_IFS
12502 WINDRES=$ac_cv_prog_WINDRES
12503 if test -n "$WINDRES"; then
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12505 $as_echo "$WINDRES" >&6; }
12506 else
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508 $as_echo "no" >&6; }
12512 done
12515 for ncn_progname in windres; do
12516 if test -n "$ncn_tool_prefix"; then
12517 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12518 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520 $as_echo_n "checking for $ac_word... " >&6; }
12521 if ${ac_cv_prog_WINDRES+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 if test -n "$WINDRES"; then
12525 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12526 else
12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12530 IFS=$as_save_IFS
12531 test -z "$as_dir" && as_dir=.
12532 for ac_exec_ext in '' $ac_executable_extensions; do
12533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536 break 2
12538 done
12539 done
12540 IFS=$as_save_IFS
12544 WINDRES=$ac_cv_prog_WINDRES
12545 if test -n "$WINDRES"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12547 $as_echo "$WINDRES" >&6; }
12548 else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12555 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12557 set dummy ${ncn_progname}; ac_word=$2
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559 $as_echo_n "checking for $ac_word... " >&6; }
12560 if ${ac_cv_prog_WINDRES+:} false; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 if test -n "$WINDRES"; then
12564 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12565 else
12566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567 for as_dir in $PATH
12569 IFS=$as_save_IFS
12570 test -z "$as_dir" && as_dir=.
12571 for ac_exec_ext in '' $ac_executable_extensions; do
12572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12573 ac_cv_prog_WINDRES="${ncn_progname}"
12574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 break 2
12577 done
12578 done
12579 IFS=$as_save_IFS
12583 WINDRES=$ac_cv_prog_WINDRES
12584 if test -n "$WINDRES"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12586 $as_echo "$WINDRES" >&6; }
12587 else
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12594 test -n "$ac_cv_prog_WINDRES" && break
12595 done
12597 if test -z "$ac_cv_prog_WINDRES" ; then
12598 set dummy windres
12599 if test $build = $host ; then
12600 WINDRES="$2"
12601 else
12602 WINDRES="${ncn_tool_prefix}$2"
12608 if test -n "$WINDMC"; then
12609 ac_cv_prog_WINDMC=$WINDMC
12610 elif test -n "$ac_cv_prog_WINDMC"; then
12611 WINDMC=$ac_cv_prog_WINDMC
12614 if test -n "$ac_cv_prog_WINDMC"; then
12615 for ncn_progname in windmc; do
12616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12617 set dummy ${ncn_progname}; ac_word=$2
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619 $as_echo_n "checking for $ac_word... " >&6; }
12620 if ${ac_cv_prog_WINDMC+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 if test -n "$WINDMC"; then
12624 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12625 else
12626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627 for as_dir in $PATH
12629 IFS=$as_save_IFS
12630 test -z "$as_dir" && as_dir=.
12631 for ac_exec_ext in '' $ac_executable_extensions; do
12632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12633 ac_cv_prog_WINDMC="${ncn_progname}"
12634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12635 break 2
12637 done
12638 done
12639 IFS=$as_save_IFS
12643 WINDMC=$ac_cv_prog_WINDMC
12644 if test -n "$WINDMC"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12646 $as_echo "$WINDMC" >&6; }
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12653 done
12656 for ncn_progname in windmc; do
12657 if test -n "$ncn_tool_prefix"; then
12658 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12659 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661 $as_echo_n "checking for $ac_word... " >&6; }
12662 if ${ac_cv_prog_WINDMC+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 if test -n "$WINDMC"; then
12666 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12667 else
12668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in $PATH
12671 IFS=$as_save_IFS
12672 test -z "$as_dir" && as_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12675 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12677 break 2
12679 done
12680 done
12681 IFS=$as_save_IFS
12685 WINDMC=$ac_cv_prog_WINDMC
12686 if test -n "$WINDMC"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12688 $as_echo "$WINDMC" >&6; }
12689 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12696 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12698 set dummy ${ncn_progname}; ac_word=$2
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700 $as_echo_n "checking for $ac_word... " >&6; }
12701 if ${ac_cv_prog_WINDMC+:} false; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 if test -n "$WINDMC"; then
12705 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12706 else
12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in $PATH
12710 IFS=$as_save_IFS
12711 test -z "$as_dir" && as_dir=.
12712 for ac_exec_ext in '' $ac_executable_extensions; do
12713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12714 ac_cv_prog_WINDMC="${ncn_progname}"
12715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12716 break 2
12718 done
12719 done
12720 IFS=$as_save_IFS
12724 WINDMC=$ac_cv_prog_WINDMC
12725 if test -n "$WINDMC"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12727 $as_echo "$WINDMC" >&6; }
12728 else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730 $as_echo "no" >&6; }
12735 test -n "$ac_cv_prog_WINDMC" && break
12736 done
12738 if test -z "$ac_cv_prog_WINDMC" ; then
12739 set dummy windmc
12740 if test $build = $host ; then
12741 WINDMC="$2"
12742 else
12743 WINDMC="${ncn_tool_prefix}$2"
12749 if test -n "$OBJCOPY"; then
12750 ac_cv_prog_OBJCOPY=$OBJCOPY
12751 elif test -n "$ac_cv_prog_OBJCOPY"; then
12752 OBJCOPY=$ac_cv_prog_OBJCOPY
12755 if test -n "$ac_cv_prog_OBJCOPY"; then
12756 for ncn_progname in objcopy; do
12757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12758 set dummy ${ncn_progname}; ac_word=$2
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12760 $as_echo_n "checking for $ac_word... " >&6; }
12761 if ${ac_cv_prog_OBJCOPY+:} false; then :
12762 $as_echo_n "(cached) " >&6
12763 else
12764 if test -n "$OBJCOPY"; then
12765 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12766 else
12767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768 for as_dir in $PATH
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
12773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12774 ac_cv_prog_OBJCOPY="${ncn_progname}"
12775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 break 2
12778 done
12779 done
12780 IFS=$as_save_IFS
12784 OBJCOPY=$ac_cv_prog_OBJCOPY
12785 if test -n "$OBJCOPY"; then
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12787 $as_echo "$OBJCOPY" >&6; }
12788 else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12794 done
12797 for ncn_progname in objcopy; do
12798 if test -n "$ncn_tool_prefix"; then
12799 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12800 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if ${ac_cv_prog_OBJCOPY+:} false; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 if test -n "$OBJCOPY"; then
12807 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12808 else
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12816 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12820 done
12821 done
12822 IFS=$as_save_IFS
12826 OBJCOPY=$ac_cv_prog_OBJCOPY
12827 if test -n "$OBJCOPY"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12829 $as_echo "$OBJCOPY" >&6; }
12830 else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832 $as_echo "no" >&6; }
12837 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12838 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12839 set dummy ${ncn_progname}; ac_word=$2
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841 $as_echo_n "checking for $ac_word... " >&6; }
12842 if ${ac_cv_prog_OBJCOPY+:} false; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12845 if test -n "$OBJCOPY"; then
12846 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12847 else
12848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849 for as_dir in $PATH
12851 IFS=$as_save_IFS
12852 test -z "$as_dir" && as_dir=.
12853 for ac_exec_ext in '' $ac_executable_extensions; do
12854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12855 ac_cv_prog_OBJCOPY="${ncn_progname}"
12856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12857 break 2
12859 done
12860 done
12861 IFS=$as_save_IFS
12865 OBJCOPY=$ac_cv_prog_OBJCOPY
12866 if test -n "$OBJCOPY"; then
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12868 $as_echo "$OBJCOPY" >&6; }
12869 else
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871 $as_echo "no" >&6; }
12876 test -n "$ac_cv_prog_OBJCOPY" && break
12877 done
12879 if test -z "$ac_cv_prog_OBJCOPY" ; then
12880 set dummy objcopy
12881 if test $build = $host ; then
12882 OBJCOPY="$2"
12883 else
12884 OBJCOPY="${ncn_tool_prefix}$2"
12890 if test -n "$OBJDUMP"; then
12891 ac_cv_prog_OBJDUMP=$OBJDUMP
12892 elif test -n "$ac_cv_prog_OBJDUMP"; then
12893 OBJDUMP=$ac_cv_prog_OBJDUMP
12896 if test -n "$ac_cv_prog_OBJDUMP"; then
12897 for ncn_progname in objdump; do
12898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12899 set dummy ${ncn_progname}; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12901 $as_echo_n "checking for $ac_word... " >&6; }
12902 if ${ac_cv_prog_OBJDUMP+:} false; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 if test -n "$OBJDUMP"; then
12906 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12907 else
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12915 ac_cv_prog_OBJDUMP="${ncn_progname}"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917 break 2
12919 done
12920 done
12921 IFS=$as_save_IFS
12925 OBJDUMP=$ac_cv_prog_OBJDUMP
12926 if test -n "$OBJDUMP"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12928 $as_echo "$OBJDUMP" >&6; }
12929 else
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12935 done
12938 for ncn_progname in objdump; do
12939 if test -n "$ncn_tool_prefix"; then
12940 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12941 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943 $as_echo_n "checking for $ac_word... " >&6; }
12944 if ${ac_cv_prog_OBJDUMP+:} false; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 if test -n "$OBJDUMP"; then
12948 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12949 else
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
12955 for ac_exec_ext in '' $ac_executable_extensions; do
12956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12957 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12959 break 2
12961 done
12962 done
12963 IFS=$as_save_IFS
12967 OBJDUMP=$ac_cv_prog_OBJDUMP
12968 if test -n "$OBJDUMP"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12970 $as_echo "$OBJDUMP" >&6; }
12971 else
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973 $as_echo "no" >&6; }
12978 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12980 set dummy ${ncn_progname}; ac_word=$2
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12982 $as_echo_n "checking for $ac_word... " >&6; }
12983 if ${ac_cv_prog_OBJDUMP+:} false; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12986 if test -n "$OBJDUMP"; then
12987 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12988 else
12989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12990 for as_dir in $PATH
12992 IFS=$as_save_IFS
12993 test -z "$as_dir" && as_dir=.
12994 for ac_exec_ext in '' $ac_executable_extensions; do
12995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12996 ac_cv_prog_OBJDUMP="${ncn_progname}"
12997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12998 break 2
13000 done
13001 done
13002 IFS=$as_save_IFS
13006 OBJDUMP=$ac_cv_prog_OBJDUMP
13007 if test -n "$OBJDUMP"; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13009 $as_echo "$OBJDUMP" >&6; }
13010 else
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 $as_echo "no" >&6; }
13017 test -n "$ac_cv_prog_OBJDUMP" && break
13018 done
13020 if test -z "$ac_cv_prog_OBJDUMP" ; then
13021 set dummy objdump
13022 if test $build = $host ; then
13023 OBJDUMP="$2"
13024 else
13025 OBJDUMP="${ncn_tool_prefix}$2"
13031 if test -n "$OTOOL"; then
13032 ac_cv_prog_OTOOL=$OTOOL
13033 elif test -n "$ac_cv_prog_OTOOL"; then
13034 OTOOL=$ac_cv_prog_OTOOL
13037 if test -n "$ac_cv_prog_OTOOL"; then
13038 for ncn_progname in otool; do
13039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13040 set dummy ${ncn_progname}; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042 $as_echo_n "checking for $ac_word... " >&6; }
13043 if ${ac_cv_prog_OTOOL+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 if test -n "$OTOOL"; then
13047 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13048 else
13049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050 for as_dir in $PATH
13052 IFS=$as_save_IFS
13053 test -z "$as_dir" && as_dir=.
13054 for ac_exec_ext in '' $ac_executable_extensions; do
13055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13056 ac_cv_prog_OTOOL="${ncn_progname}"
13057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 break 2
13060 done
13061 done
13062 IFS=$as_save_IFS
13066 OTOOL=$ac_cv_prog_OTOOL
13067 if test -n "$OTOOL"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13069 $as_echo "$OTOOL" >&6; }
13070 else
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13076 done
13079 for ncn_progname in otool; do
13080 if test -n "$ncn_tool_prefix"; then
13081 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13082 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if ${ac_cv_prog_OTOOL+:} false; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 if test -n "$OTOOL"; then
13089 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13090 else
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13094 IFS=$as_save_IFS
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
13097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13098 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
13099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13100 break 2
13102 done
13103 done
13104 IFS=$as_save_IFS
13108 OTOOL=$ac_cv_prog_OTOOL
13109 if test -n "$OTOOL"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13111 $as_echo "$OTOOL" >&6; }
13112 else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13119 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
13120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13121 set dummy ${ncn_progname}; ac_word=$2
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123 $as_echo_n "checking for $ac_word... " >&6; }
13124 if ${ac_cv_prog_OTOOL+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 if test -n "$OTOOL"; then
13128 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13129 else
13130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131 for as_dir in $PATH
13133 IFS=$as_save_IFS
13134 test -z "$as_dir" && as_dir=.
13135 for ac_exec_ext in '' $ac_executable_extensions; do
13136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13137 ac_cv_prog_OTOOL="${ncn_progname}"
13138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13139 break 2
13141 done
13142 done
13143 IFS=$as_save_IFS
13147 OTOOL=$ac_cv_prog_OTOOL
13148 if test -n "$OTOOL"; then
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13150 $as_echo "$OTOOL" >&6; }
13151 else
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13158 test -n "$ac_cv_prog_OTOOL" && break
13159 done
13161 if test -z "$ac_cv_prog_OTOOL" ; then
13162 set dummy otool
13163 if test $build = $host ; then
13164 OTOOL="$2"
13165 else
13166 OTOOL="${ncn_tool_prefix}$2"
13172 if test -n "$READELF"; then
13173 ac_cv_prog_READELF=$READELF
13174 elif test -n "$ac_cv_prog_READELF"; then
13175 READELF=$ac_cv_prog_READELF
13178 if test -n "$ac_cv_prog_READELF"; then
13179 for ncn_progname in readelf; do
13180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13181 set dummy ${ncn_progname}; ac_word=$2
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183 $as_echo_n "checking for $ac_word... " >&6; }
13184 if ${ac_cv_prog_READELF+:} false; then :
13185 $as_echo_n "(cached) " >&6
13186 else
13187 if test -n "$READELF"; then
13188 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13189 else
13190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191 for as_dir in $PATH
13193 IFS=$as_save_IFS
13194 test -z "$as_dir" && as_dir=.
13195 for ac_exec_ext in '' $ac_executable_extensions; do
13196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13197 ac_cv_prog_READELF="${ncn_progname}"
13198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13199 break 2
13201 done
13202 done
13203 IFS=$as_save_IFS
13207 READELF=$ac_cv_prog_READELF
13208 if test -n "$READELF"; then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13210 $as_echo "$READELF" >&6; }
13211 else
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213 $as_echo "no" >&6; }
13217 done
13220 for ncn_progname in readelf; do
13221 if test -n "$ncn_tool_prefix"; then
13222 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13223 set dummy ${ncn_tool_prefix}${ncn_progname}; 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 ${ac_cv_prog_READELF+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 if test -n "$READELF"; then
13230 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13231 else
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13239 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13243 done
13244 done
13245 IFS=$as_save_IFS
13249 READELF=$ac_cv_prog_READELF
13250 if test -n "$READELF"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13252 $as_echo "$READELF" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13260 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
13261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13262 set dummy ${ncn_progname}; ac_word=$2
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 $as_echo_n "checking for $ac_word... " >&6; }
13265 if ${ac_cv_prog_READELF+:} false; then :
13266 $as_echo_n "(cached) " >&6
13267 else
13268 if test -n "$READELF"; then
13269 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13270 else
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13278 ac_cv_prog_READELF="${ncn_progname}"
13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280 break 2
13282 done
13283 done
13284 IFS=$as_save_IFS
13288 READELF=$ac_cv_prog_READELF
13289 if test -n "$READELF"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13291 $as_echo "$READELF" >&6; }
13292 else
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13299 test -n "$ac_cv_prog_READELF" && break
13300 done
13302 if test -z "$ac_cv_prog_READELF" ; then
13303 set dummy readelf
13304 if test $build = $host ; then
13305 READELF="$2"
13306 else
13307 READELF="${ncn_tool_prefix}$2"
13317 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
13321 $as_echo_n "checking for -plugin option... " >&6; }
13323 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13324 plugin_option=
13325 for plugin in $plugin_names; do
13326 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13327 if test x$plugin_so = x$plugin; then
13328 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13330 if test x$plugin_so != x$plugin; then
13331 plugin_option="--plugin $plugin_so"
13332 break
13334 done
13335 if test -n "$ac_tool_prefix"; then
13336 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13337 set dummy ${ac_tool_prefix}ar; ac_word=$2
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13339 $as_echo_n "checking for $ac_word... " >&6; }
13340 if ${ac_cv_prog_AR+:} false; then :
13341 $as_echo_n "(cached) " >&6
13342 else
13343 if test -n "$AR"; then
13344 ac_cv_prog_AR="$AR" # Let the user override the test.
13345 else
13346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $PATH
13349 IFS=$as_save_IFS
13350 test -z "$as_dir" && as_dir=.
13351 for ac_exec_ext in '' $ac_executable_extensions; do
13352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353 ac_cv_prog_AR="${ac_tool_prefix}ar"
13354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355 break 2
13357 done
13358 done
13359 IFS=$as_save_IFS
13363 AR=$ac_cv_prog_AR
13364 if test -n "$AR"; then
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13366 $as_echo "$AR" >&6; }
13367 else
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13374 if test -z "$ac_cv_prog_AR"; then
13375 ac_ct_AR=$AR
13376 # Extract the first word of "ar", so it can be a program name with args.
13377 set dummy ar; ac_word=$2
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13379 $as_echo_n "checking for $ac_word... " >&6; }
13380 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13381 $as_echo_n "(cached) " >&6
13382 else
13383 if test -n "$ac_ct_AR"; then
13384 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13385 else
13386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13387 for as_dir in $PATH
13389 IFS=$as_save_IFS
13390 test -z "$as_dir" && as_dir=.
13391 for ac_exec_ext in '' $ac_executable_extensions; do
13392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13393 ac_cv_prog_ac_ct_AR="ar"
13394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13395 break 2
13397 done
13398 done
13399 IFS=$as_save_IFS
13403 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13404 if test -n "$ac_ct_AR"; then
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13406 $as_echo "$ac_ct_AR" >&6; }
13407 else
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409 $as_echo "no" >&6; }
13412 if test "x$ac_ct_AR" = x; then
13413 AR=""
13414 else
13415 case $cross_compiling:$ac_tool_warned in
13416 yes:)
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13419 ac_tool_warned=yes ;;
13420 esac
13421 AR=$ac_ct_AR
13423 else
13424 AR="$ac_cv_prog_AR"
13427 if test "${AR}" = "" ; then
13428 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13430 touch conftest.c
13431 ${AR} $plugin_option rc conftest.a conftest.c
13432 if test "$?" != 0; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13434 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13435 plugin_option=
13437 rm -f conftest.*
13438 if test -n "$plugin_option"; then
13439 PLUGIN_OPTION="$plugin_option"
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13441 $as_echo "$plugin_option" >&6; }
13442 else
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13444 $as_echo "no" >&6; }
13447 AR_PLUGIN_OPTION=
13448 RANLIB_PLUGIN_OPTION=
13449 if test -n "$PLUGIN_OPTION"; then
13450 if $AR --help 2>&1 | grep -q "\--plugin"; then
13451 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13453 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13454 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13460 # Target tools.
13462 # Check whether --with-build-time-tools was given.
13463 if test "${with_build_time_tools+set}" = set; then :
13464 withval=$with_build_time_tools; case x"$withval" in
13465 x/*) ;;
13467 with_build_time_tools=
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13469 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
13471 esac
13472 else
13473 with_build_time_tools=
13479 if test -n "$CC_FOR_TARGET"; then
13480 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13481 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13482 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13485 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13486 for ncn_progname in cc gcc; do
13487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13488 set dummy ${ncn_progname}; ac_word=$2
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13490 $as_echo_n "checking for $ac_word... " >&6; }
13491 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 if test -n "$CC_FOR_TARGET"; then
13495 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13496 else
13497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498 for as_dir in $PATH
13500 IFS=$as_save_IFS
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
13503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13504 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 break 2
13508 done
13509 done
13510 IFS=$as_save_IFS
13514 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13515 if test -n "$CC_FOR_TARGET"; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13517 $as_echo "$CC_FOR_TARGET" >&6; }
13518 else
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520 $as_echo "no" >&6; }
13524 done
13527 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13528 for ncn_progname in cc gcc; do
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13530 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13531 if test -x $with_build_time_tools/${ncn_progname}; then
13532 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13534 $as_echo "yes" >&6; }
13535 break
13536 else
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 $as_echo "no" >&6; }
13540 done
13543 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13544 for ncn_progname in cc gcc; do
13545 if test -n "$ncn_target_tool_prefix"; then
13546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13547 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13549 $as_echo_n "checking for $ac_word... " >&6; }
13550 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 if test -n "$CC_FOR_TARGET"; then
13554 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13555 else
13556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557 for as_dir in $PATH
13559 IFS=$as_save_IFS
13560 test -z "$as_dir" && as_dir=.
13561 for ac_exec_ext in '' $ac_executable_extensions; do
13562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13563 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13565 break 2
13567 done
13568 done
13569 IFS=$as_save_IFS
13573 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13574 if test -n "$CC_FOR_TARGET"; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13576 $as_echo "$CC_FOR_TARGET" >&6; }
13577 else
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579 $as_echo "no" >&6; }
13584 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13586 set dummy ${ncn_progname}; ac_word=$2
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588 $as_echo_n "checking for $ac_word... " >&6; }
13589 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 if test -n "$CC_FOR_TARGET"; then
13593 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13594 else
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13606 done
13607 done
13608 IFS=$as_save_IFS
13612 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13613 if test -n "$CC_FOR_TARGET"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13615 $as_echo "$CC_FOR_TARGET" >&6; }
13616 else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 $as_echo "no" >&6; }
13623 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13624 done
13627 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13628 set dummy cc gcc
13629 if test $build = $target ; then
13630 CC_FOR_TARGET="$2"
13631 else
13632 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13634 else
13635 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13640 if test -n "$CXX_FOR_TARGET"; then
13641 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13642 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13643 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13646 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13647 for ncn_progname in c++ g++ cxx gxx; do
13648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13649 set dummy ${ncn_progname}; ac_word=$2
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651 $as_echo_n "checking for $ac_word... " >&6; }
13652 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 if test -n "$CXX_FOR_TARGET"; then
13656 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13657 else
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13661 IFS=$as_save_IFS
13662 test -z "$as_dir" && as_dir=.
13663 for ac_exec_ext in '' $ac_executable_extensions; do
13664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13665 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13667 break 2
13669 done
13670 done
13671 IFS=$as_save_IFS
13675 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13676 if test -n "$CXX_FOR_TARGET"; then
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13678 $as_echo "$CXX_FOR_TARGET" >&6; }
13679 else
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681 $as_echo "no" >&6; }
13685 done
13688 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13689 for ncn_progname in c++ g++ cxx gxx; do
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13691 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13692 if test -x $with_build_time_tools/${ncn_progname}; then
13693 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13695 $as_echo "yes" >&6; }
13696 break
13697 else
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699 $as_echo "no" >&6; }
13701 done
13704 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13705 for ncn_progname in c++ g++ cxx gxx; do
13706 if test -n "$ncn_target_tool_prefix"; then
13707 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13708 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13710 $as_echo_n "checking for $ac_word... " >&6; }
13711 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13712 $as_echo_n "(cached) " >&6
13713 else
13714 if test -n "$CXX_FOR_TARGET"; then
13715 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13716 else
13717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13718 for as_dir in $PATH
13720 IFS=$as_save_IFS
13721 test -z "$as_dir" && as_dir=.
13722 for ac_exec_ext in '' $ac_executable_extensions; do
13723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13724 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13726 break 2
13728 done
13729 done
13730 IFS=$as_save_IFS
13734 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13735 if test -n "$CXX_FOR_TARGET"; then
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13737 $as_echo "$CXX_FOR_TARGET" >&6; }
13738 else
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740 $as_echo "no" >&6; }
13745 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13747 set dummy ${ncn_progname}; ac_word=$2
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13749 $as_echo_n "checking for $ac_word... " >&6; }
13750 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 if test -n "$CXX_FOR_TARGET"; then
13754 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13755 else
13756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13757 for as_dir in $PATH
13759 IFS=$as_save_IFS
13760 test -z "$as_dir" && as_dir=.
13761 for ac_exec_ext in '' $ac_executable_extensions; do
13762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13763 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13765 break 2
13767 done
13768 done
13769 IFS=$as_save_IFS
13773 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13774 if test -n "$CXX_FOR_TARGET"; then
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13776 $as_echo "$CXX_FOR_TARGET" >&6; }
13777 else
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13784 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13785 done
13788 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13789 set dummy c++ g++ cxx gxx
13790 if test $build = $target ; then
13791 CXX_FOR_TARGET="$2"
13792 else
13793 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13795 else
13796 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13801 if test -n "$GCC_FOR_TARGET"; then
13802 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13803 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13804 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13807 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13808 for ncn_progname in gcc; do
13809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13810 set dummy ${ncn_progname}; ac_word=$2
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13812 $as_echo_n "checking for $ac_word... " >&6; }
13813 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816 if test -n "$GCC_FOR_TARGET"; then
13817 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13818 else
13819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13820 for as_dir in $PATH
13822 IFS=$as_save_IFS
13823 test -z "$as_dir" && as_dir=.
13824 for ac_exec_ext in '' $ac_executable_extensions; do
13825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13826 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13828 break 2
13830 done
13831 done
13832 IFS=$as_save_IFS
13836 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13837 if test -n "$GCC_FOR_TARGET"; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13839 $as_echo "$GCC_FOR_TARGET" >&6; }
13840 else
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842 $as_echo "no" >&6; }
13846 done
13849 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13850 for ncn_progname in gcc; do
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13852 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13853 if test -x $with_build_time_tools/${ncn_progname}; then
13854 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13856 $as_echo "yes" >&6; }
13857 break
13858 else
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13860 $as_echo "no" >&6; }
13862 done
13865 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13866 for ncn_progname in gcc; do
13867 if test -n "$ncn_target_tool_prefix"; then
13868 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13869 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13871 $as_echo_n "checking for $ac_word... " >&6; }
13872 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 if test -n "$GCC_FOR_TARGET"; then
13876 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13877 else
13878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13879 for as_dir in $PATH
13881 IFS=$as_save_IFS
13882 test -z "$as_dir" && as_dir=.
13883 for ac_exec_ext in '' $ac_executable_extensions; do
13884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13885 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13887 break 2
13889 done
13890 done
13891 IFS=$as_save_IFS
13895 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13896 if test -n "$GCC_FOR_TARGET"; then
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13898 $as_echo "$GCC_FOR_TARGET" >&6; }
13899 else
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13901 $as_echo "no" >&6; }
13906 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13908 set dummy ${ncn_progname}; ac_word=$2
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13910 $as_echo_n "checking for $ac_word... " >&6; }
13911 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13912 $as_echo_n "(cached) " >&6
13913 else
13914 if test -n "$GCC_FOR_TARGET"; then
13915 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13916 else
13917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13918 for as_dir in $PATH
13920 IFS=$as_save_IFS
13921 test -z "$as_dir" && as_dir=.
13922 for ac_exec_ext in '' $ac_executable_extensions; do
13923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13924 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13926 break 2
13928 done
13929 done
13930 IFS=$as_save_IFS
13934 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13935 if test -n "$GCC_FOR_TARGET"; then
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13937 $as_echo "$GCC_FOR_TARGET" >&6; }
13938 else
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940 $as_echo "no" >&6; }
13945 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13946 done
13949 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13950 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13951 else
13952 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13957 if test -n "$GFORTRAN_FOR_TARGET"; then
13958 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13959 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13960 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13963 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13964 for ncn_progname in gfortran; do
13965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13966 set dummy ${ncn_progname}; ac_word=$2
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968 $as_echo_n "checking for $ac_word... " >&6; }
13969 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13970 $as_echo_n "(cached) " >&6
13971 else
13972 if test -n "$GFORTRAN_FOR_TARGET"; then
13973 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13974 else
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
13981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13982 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13984 break 2
13986 done
13987 done
13988 IFS=$as_save_IFS
13992 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13993 if test -n "$GFORTRAN_FOR_TARGET"; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13995 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13996 else
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998 $as_echo "no" >&6; }
14002 done
14005 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14006 for ncn_progname in gfortran; do
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14008 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14009 if test -x $with_build_time_tools/${ncn_progname}; then
14010 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14012 $as_echo "yes" >&6; }
14013 break
14014 else
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14018 done
14021 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14022 for ncn_progname in gfortran; do
14023 if test -n "$ncn_target_tool_prefix"; then
14024 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14025 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14027 $as_echo_n "checking for $ac_word... " >&6; }
14028 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14029 $as_echo_n "(cached) " >&6
14030 else
14031 if test -n "$GFORTRAN_FOR_TARGET"; then
14032 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14033 else
14034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035 for as_dir in $PATH
14037 IFS=$as_save_IFS
14038 test -z "$as_dir" && as_dir=.
14039 for ac_exec_ext in '' $ac_executable_extensions; do
14040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14041 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14043 break 2
14045 done
14046 done
14047 IFS=$as_save_IFS
14051 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14052 if test -n "$GFORTRAN_FOR_TARGET"; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14054 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14055 else
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057 $as_echo "no" >&6; }
14062 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14064 set dummy ${ncn_progname}; ac_word=$2
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14066 $as_echo_n "checking for $ac_word... " >&6; }
14067 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 if test -n "$GFORTRAN_FOR_TARGET"; then
14071 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14072 else
14073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14074 for as_dir in $PATH
14076 IFS=$as_save_IFS
14077 test -z "$as_dir" && as_dir=.
14078 for ac_exec_ext in '' $ac_executable_extensions; do
14079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14080 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14082 break 2
14084 done
14085 done
14086 IFS=$as_save_IFS
14090 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14091 if test -n "$GFORTRAN_FOR_TARGET"; then
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14093 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14094 else
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14096 $as_echo "no" >&6; }
14101 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
14102 done
14105 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
14106 set dummy gfortran
14107 if test $build = $target ; then
14108 GFORTRAN_FOR_TARGET="$2"
14109 else
14110 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
14112 else
14113 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
14118 if test -n "$GOC_FOR_TARGET"; then
14119 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
14120 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14121 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14124 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14125 for ncn_progname in gccgo; do
14126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14127 set dummy ${ncn_progname}; ac_word=$2
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14129 $as_echo_n "checking for $ac_word... " >&6; }
14130 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132 else
14133 if test -n "$GOC_FOR_TARGET"; then
14134 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14135 else
14136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137 for as_dir in $PATH
14139 IFS=$as_save_IFS
14140 test -z "$as_dir" && as_dir=.
14141 for ac_exec_ext in '' $ac_executable_extensions; do
14142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14143 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14145 break 2
14147 done
14148 done
14149 IFS=$as_save_IFS
14153 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14154 if test -n "$GOC_FOR_TARGET"; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14156 $as_echo "$GOC_FOR_TARGET" >&6; }
14157 else
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159 $as_echo "no" >&6; }
14163 done
14166 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14167 for ncn_progname in gccgo; do
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14169 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14170 if test -x $with_build_time_tools/${ncn_progname}; then
14171 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14173 $as_echo "yes" >&6; }
14174 break
14175 else
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177 $as_echo "no" >&6; }
14179 done
14182 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14183 for ncn_progname in gccgo; do
14184 if test -n "$ncn_target_tool_prefix"; then
14185 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14186 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14188 $as_echo_n "checking for $ac_word... " >&6; }
14189 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 if test -n "$GOC_FOR_TARGET"; then
14193 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14194 else
14195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196 for as_dir in $PATH
14198 IFS=$as_save_IFS
14199 test -z "$as_dir" && as_dir=.
14200 for ac_exec_ext in '' $ac_executable_extensions; do
14201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14202 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14204 break 2
14206 done
14207 done
14208 IFS=$as_save_IFS
14212 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14213 if test -n "$GOC_FOR_TARGET"; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14215 $as_echo "$GOC_FOR_TARGET" >&6; }
14216 else
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14218 $as_echo "no" >&6; }
14223 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
14224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14225 set dummy ${ncn_progname}; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 if test -n "$GOC_FOR_TARGET"; then
14232 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14233 else
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14237 IFS=$as_save_IFS
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14241 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14243 break 2
14245 done
14246 done
14247 IFS=$as_save_IFS
14251 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14252 if test -n "$GOC_FOR_TARGET"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14254 $as_echo "$GOC_FOR_TARGET" >&6; }
14255 else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14262 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
14263 done
14266 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
14267 set dummy gccgo
14268 if test $build = $target ; then
14269 GOC_FOR_TARGET="$2"
14270 else
14271 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14273 else
14274 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
14279 if test -n "$GDC_FOR_TARGET"; then
14280 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14281 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14282 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14285 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14286 for ncn_progname in gdc; do
14287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14288 set dummy ${ncn_progname}; ac_word=$2
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14290 $as_echo_n "checking for $ac_word... " >&6; }
14291 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14292 $as_echo_n "(cached) " >&6
14293 else
14294 if test -n "$GDC_FOR_TARGET"; then
14295 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14296 else
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $PATH
14300 IFS=$as_save_IFS
14301 test -z "$as_dir" && as_dir=.
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14304 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14306 break 2
14308 done
14309 done
14310 IFS=$as_save_IFS
14314 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14315 if test -n "$GDC_FOR_TARGET"; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14317 $as_echo "$GDC_FOR_TARGET" >&6; }
14318 else
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14324 done
14327 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14328 for ncn_progname in gdc; do
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14330 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14331 if test -x $with_build_time_tools/${ncn_progname}; then
14332 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14334 $as_echo "yes" >&6; }
14335 break
14336 else
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 $as_echo "no" >&6; }
14340 done
14343 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14344 for ncn_progname in gdc; do
14345 if test -n "$ncn_target_tool_prefix"; then
14346 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14347 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14349 $as_echo_n "checking for $ac_word... " >&6; }
14350 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14351 $as_echo_n "(cached) " >&6
14352 else
14353 if test -n "$GDC_FOR_TARGET"; then
14354 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14355 else
14356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14357 for as_dir in $PATH
14359 IFS=$as_save_IFS
14360 test -z "$as_dir" && as_dir=.
14361 for ac_exec_ext in '' $ac_executable_extensions; do
14362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14363 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14365 break 2
14367 done
14368 done
14369 IFS=$as_save_IFS
14373 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14374 if test -n "$GDC_FOR_TARGET"; then
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14376 $as_echo "$GDC_FOR_TARGET" >&6; }
14377 else
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14379 $as_echo "no" >&6; }
14384 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14386 set dummy ${ncn_progname}; ac_word=$2
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14388 $as_echo_n "checking for $ac_word... " >&6; }
14389 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14390 $as_echo_n "(cached) " >&6
14391 else
14392 if test -n "$GDC_FOR_TARGET"; then
14393 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14394 else
14395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14396 for as_dir in $PATH
14398 IFS=$as_save_IFS
14399 test -z "$as_dir" && as_dir=.
14400 for ac_exec_ext in '' $ac_executable_extensions; do
14401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14402 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14404 break 2
14406 done
14407 done
14408 IFS=$as_save_IFS
14412 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14413 if test -n "$GDC_FOR_TARGET"; then
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14415 $as_echo "$GDC_FOR_TARGET" >&6; }
14416 else
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14418 $as_echo "no" >&6; }
14423 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14424 done
14427 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14428 set dummy gdc
14429 if test $build = $target ; then
14430 GDC_FOR_TARGET="$2"
14431 else
14432 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14434 else
14435 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14440 if test -n "$GM2_FOR_TARGET"; then
14441 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14442 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14443 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14446 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14447 for ncn_progname in gm2; do
14448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14449 set dummy ${ncn_progname}; ac_word=$2
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14451 $as_echo_n "checking for $ac_word... " >&6; }
14452 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14453 $as_echo_n "(cached) " >&6
14454 else
14455 if test -n "$GM2_FOR_TARGET"; then
14456 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14457 else
14458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459 for as_dir in $PATH
14461 IFS=$as_save_IFS
14462 test -z "$as_dir" && as_dir=.
14463 for ac_exec_ext in '' $ac_executable_extensions; do
14464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14465 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14467 break 2
14469 done
14470 done
14471 IFS=$as_save_IFS
14475 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14476 if test -n "$GM2_FOR_TARGET"; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14478 $as_echo "$GM2_FOR_TARGET" >&6; }
14479 else
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14481 $as_echo "no" >&6; }
14485 done
14488 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14489 for ncn_progname in gm2; do
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14491 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14492 if test -x $with_build_time_tools/${ncn_progname}; then
14493 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14495 $as_echo "yes" >&6; }
14496 break
14497 else
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14499 $as_echo "no" >&6; }
14501 done
14504 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14505 for ncn_progname in gm2; do
14506 if test -n "$ncn_target_tool_prefix"; then
14507 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14508 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14510 $as_echo_n "checking for $ac_word... " >&6; }
14511 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14512 $as_echo_n "(cached) " >&6
14513 else
14514 if test -n "$GM2_FOR_TARGET"; then
14515 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14516 else
14517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14518 for as_dir in $PATH
14520 IFS=$as_save_IFS
14521 test -z "$as_dir" && as_dir=.
14522 for ac_exec_ext in '' $ac_executable_extensions; do
14523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14524 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14526 break 2
14528 done
14529 done
14530 IFS=$as_save_IFS
14534 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14535 if test -n "$GM2_FOR_TARGET"; then
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14537 $as_echo "$GM2_FOR_TARGET" >&6; }
14538 else
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14540 $as_echo "no" >&6; }
14545 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14547 set dummy ${ncn_progname}; ac_word=$2
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14549 $as_echo_n "checking for $ac_word... " >&6; }
14550 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14551 $as_echo_n "(cached) " >&6
14552 else
14553 if test -n "$GM2_FOR_TARGET"; then
14554 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14555 else
14556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14557 for as_dir in $PATH
14559 IFS=$as_save_IFS
14560 test -z "$as_dir" && as_dir=.
14561 for ac_exec_ext in '' $ac_executable_extensions; do
14562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14563 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14565 break 2
14567 done
14568 done
14569 IFS=$as_save_IFS
14573 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14574 if test -n "$GM2_FOR_TARGET"; then
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14576 $as_echo "$GM2_FOR_TARGET" >&6; }
14577 else
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14579 $as_echo "no" >&6; }
14584 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14585 done
14588 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14589 set dummy gm2
14590 if test $build = $target ; then
14591 GM2_FOR_TARGET="$2"
14592 else
14593 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14595 else
14596 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14601 cat > conftest.c << \EOF
14602 #ifdef __GNUC__
14603 gcc_yay;
14604 #endif
14606 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14607 have_gcc_for_target=yes
14608 else
14609 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14610 have_gcc_for_target=no
14612 rm conftest.c
14617 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14618 if test -n "$with_build_time_tools"; then
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14620 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14621 if test -x $with_build_time_tools/ar; then
14622 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14623 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14625 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14626 else
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14628 $as_echo "no" >&6; }
14630 elif test $build != $host && test $have_gcc_for_target = yes; then
14631 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14632 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14633 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14636 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14637 # Extract the first word of "ar", so it can be a program name with args.
14638 set dummy ar; ac_word=$2
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14640 $as_echo_n "checking for $ac_word... " >&6; }
14641 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14642 $as_echo_n "(cached) " >&6
14643 else
14644 case $AR_FOR_TARGET in
14645 [\\/]* | ?:[\\/]*)
14646 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14650 for as_dir in $gcc_cv_tool_dirs
14652 IFS=$as_save_IFS
14653 test -z "$as_dir" && as_dir=.
14654 for ac_exec_ext in '' $ac_executable_extensions; do
14655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14656 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14658 break 2
14660 done
14661 done
14662 IFS=$as_save_IFS
14665 esac
14667 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14668 if test -n "$AR_FOR_TARGET"; then
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14670 $as_echo "$AR_FOR_TARGET" >&6; }
14671 else
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14673 $as_echo "no" >&6; }
14678 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14681 if test -n "$AR_FOR_TARGET"; then
14682 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14683 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14684 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14687 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14688 for ncn_progname in ar; do
14689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14690 set dummy ${ncn_progname}; ac_word=$2
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14692 $as_echo_n "checking for $ac_word... " >&6; }
14693 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 if test -n "$AR_FOR_TARGET"; then
14697 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14698 else
14699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14700 for as_dir in $PATH
14702 IFS=$as_save_IFS
14703 test -z "$as_dir" && as_dir=.
14704 for ac_exec_ext in '' $ac_executable_extensions; do
14705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14706 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14708 break 2
14710 done
14711 done
14712 IFS=$as_save_IFS
14716 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14717 if test -n "$AR_FOR_TARGET"; then
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14719 $as_echo "$AR_FOR_TARGET" >&6; }
14720 else
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14726 done
14729 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14730 for ncn_progname in ar; do
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14732 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14733 if test -x $with_build_time_tools/${ncn_progname}; then
14734 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14736 $as_echo "yes" >&6; }
14737 break
14738 else
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740 $as_echo "no" >&6; }
14742 done
14745 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14746 for ncn_progname in ar; do
14747 if test -n "$ncn_target_tool_prefix"; then
14748 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14749 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14751 $as_echo_n "checking for $ac_word... " >&6; }
14752 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 if test -n "$AR_FOR_TARGET"; then
14756 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14757 else
14758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14759 for as_dir in $PATH
14761 IFS=$as_save_IFS
14762 test -z "$as_dir" && as_dir=.
14763 for ac_exec_ext in '' $ac_executable_extensions; do
14764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14765 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14767 break 2
14769 done
14770 done
14771 IFS=$as_save_IFS
14775 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14776 if test -n "$AR_FOR_TARGET"; then
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14778 $as_echo "$AR_FOR_TARGET" >&6; }
14779 else
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14781 $as_echo "no" >&6; }
14786 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14788 set dummy ${ncn_progname}; ac_word=$2
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14790 $as_echo_n "checking for $ac_word... " >&6; }
14791 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14792 $as_echo_n "(cached) " >&6
14793 else
14794 if test -n "$AR_FOR_TARGET"; then
14795 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14796 else
14797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14798 for as_dir in $PATH
14800 IFS=$as_save_IFS
14801 test -z "$as_dir" && as_dir=.
14802 for ac_exec_ext in '' $ac_executable_extensions; do
14803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14804 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14806 break 2
14808 done
14809 done
14810 IFS=$as_save_IFS
14814 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14815 if test -n "$AR_FOR_TARGET"; then
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14817 $as_echo "$AR_FOR_TARGET" >&6; }
14818 else
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14820 $as_echo "no" >&6; }
14825 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14826 done
14829 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14830 set dummy ar
14831 if test $build = $target ; then
14832 AR_FOR_TARGET="$2"
14833 else
14834 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14836 else
14837 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14840 else
14841 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14847 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14848 if test -n "$with_build_time_tools"; then
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14850 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14851 if test -x $with_build_time_tools/as; then
14852 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14853 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14855 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14856 else
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14858 $as_echo "no" >&6; }
14860 elif test $build != $host && test $have_gcc_for_target = yes; then
14861 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14862 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14863 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14866 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14867 # Extract the first word of "as", so it can be a program name with args.
14868 set dummy as; ac_word=$2
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14870 $as_echo_n "checking for $ac_word... " >&6; }
14871 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14872 $as_echo_n "(cached) " >&6
14873 else
14874 case $AS_FOR_TARGET in
14875 [\\/]* | ?:[\\/]*)
14876 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14880 for as_dir in $gcc_cv_tool_dirs
14882 IFS=$as_save_IFS
14883 test -z "$as_dir" && as_dir=.
14884 for ac_exec_ext in '' $ac_executable_extensions; do
14885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14886 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14888 break 2
14890 done
14891 done
14892 IFS=$as_save_IFS
14895 esac
14897 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14898 if test -n "$AS_FOR_TARGET"; then
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14900 $as_echo "$AS_FOR_TARGET" >&6; }
14901 else
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14903 $as_echo "no" >&6; }
14908 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14911 if test -n "$AS_FOR_TARGET"; then
14912 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14913 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14914 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14917 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14918 for ncn_progname in as; do
14919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14920 set dummy ${ncn_progname}; ac_word=$2
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14922 $as_echo_n "checking for $ac_word... " >&6; }
14923 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14924 $as_echo_n "(cached) " >&6
14925 else
14926 if test -n "$AS_FOR_TARGET"; then
14927 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14928 else
14929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14930 for as_dir in $PATH
14932 IFS=$as_save_IFS
14933 test -z "$as_dir" && as_dir=.
14934 for ac_exec_ext in '' $ac_executable_extensions; do
14935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14936 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14938 break 2
14940 done
14941 done
14942 IFS=$as_save_IFS
14946 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14947 if test -n "$AS_FOR_TARGET"; then
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14949 $as_echo "$AS_FOR_TARGET" >&6; }
14950 else
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14952 $as_echo "no" >&6; }
14956 done
14959 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14960 for ncn_progname in as; do
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14962 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14963 if test -x $with_build_time_tools/${ncn_progname}; then
14964 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14966 $as_echo "yes" >&6; }
14967 break
14968 else
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14970 $as_echo "no" >&6; }
14972 done
14975 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14976 for ncn_progname in as; do
14977 if test -n "$ncn_target_tool_prefix"; then
14978 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14979 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14981 $as_echo_n "checking for $ac_word... " >&6; }
14982 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14983 $as_echo_n "(cached) " >&6
14984 else
14985 if test -n "$AS_FOR_TARGET"; then
14986 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14987 else
14988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14989 for as_dir in $PATH
14991 IFS=$as_save_IFS
14992 test -z "$as_dir" && as_dir=.
14993 for ac_exec_ext in '' $ac_executable_extensions; do
14994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14995 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14997 break 2
14999 done
15000 done
15001 IFS=$as_save_IFS
15005 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15006 if test -n "$AS_FOR_TARGET"; then
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15008 $as_echo "$AS_FOR_TARGET" >&6; }
15009 else
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15011 $as_echo "no" >&6; }
15016 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15018 set dummy ${ncn_progname}; ac_word=$2
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15020 $as_echo_n "checking for $ac_word... " >&6; }
15021 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024 if test -n "$AS_FOR_TARGET"; then
15025 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15026 else
15027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15028 for as_dir in $PATH
15030 IFS=$as_save_IFS
15031 test -z "$as_dir" && as_dir=.
15032 for ac_exec_ext in '' $ac_executable_extensions; do
15033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15034 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15036 break 2
15038 done
15039 done
15040 IFS=$as_save_IFS
15044 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15045 if test -n "$AS_FOR_TARGET"; then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15047 $as_echo "$AS_FOR_TARGET" >&6; }
15048 else
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15050 $as_echo "no" >&6; }
15055 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15056 done
15059 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15060 set dummy as
15061 if test $build = $target ; then
15062 AS_FOR_TARGET="$2"
15063 else
15064 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
15066 else
15067 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
15070 else
15071 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15077 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15078 if test -n "$with_build_time_tools"; then
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
15080 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
15081 if test -x $with_build_time_tools/dlltool; then
15082 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
15083 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15085 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15086 else
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15088 $as_echo "no" >&6; }
15090 elif test $build != $host && test $have_gcc_for_target = yes; then
15091 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15092 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
15093 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15096 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15097 # Extract the first word of "dlltool", so it can be a program name with args.
15098 set dummy dlltool; ac_word=$2
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15100 $as_echo_n "checking for $ac_word... " >&6; }
15101 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
15102 $as_echo_n "(cached) " >&6
15103 else
15104 case $DLLTOOL_FOR_TARGET in
15105 [\\/]* | ?:[\\/]*)
15106 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
15109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15110 for as_dir in $gcc_cv_tool_dirs
15112 IFS=$as_save_IFS
15113 test -z "$as_dir" && as_dir=.
15114 for ac_exec_ext in '' $ac_executable_extensions; do
15115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15116 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15118 break 2
15120 done
15121 done
15122 IFS=$as_save_IFS
15125 esac
15127 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15128 if test -n "$DLLTOOL_FOR_TARGET"; then
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15130 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15131 else
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15133 $as_echo "no" >&6; }
15138 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15141 if test -n "$DLLTOOL_FOR_TARGET"; then
15142 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15143 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15144 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15147 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15148 for ncn_progname in dlltool; do
15149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15150 set dummy ${ncn_progname}; ac_word=$2
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15152 $as_echo_n "checking for $ac_word... " >&6; }
15153 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15154 $as_echo_n "(cached) " >&6
15155 else
15156 if test -n "$DLLTOOL_FOR_TARGET"; then
15157 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15158 else
15159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15160 for as_dir in $PATH
15162 IFS=$as_save_IFS
15163 test -z "$as_dir" && as_dir=.
15164 for ac_exec_ext in '' $ac_executable_extensions; do
15165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15166 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15168 break 2
15170 done
15171 done
15172 IFS=$as_save_IFS
15176 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15177 if test -n "$DLLTOOL_FOR_TARGET"; then
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15179 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15180 else
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15182 $as_echo "no" >&6; }
15186 done
15189 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15190 for ncn_progname in dlltool; do
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15192 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15193 if test -x $with_build_time_tools/${ncn_progname}; then
15194 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15196 $as_echo "yes" >&6; }
15197 break
15198 else
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15200 $as_echo "no" >&6; }
15202 done
15205 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15206 for ncn_progname in dlltool; do
15207 if test -n "$ncn_target_tool_prefix"; then
15208 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15209 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15211 $as_echo_n "checking for $ac_word... " >&6; }
15212 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15213 $as_echo_n "(cached) " >&6
15214 else
15215 if test -n "$DLLTOOL_FOR_TARGET"; then
15216 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15217 else
15218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15219 for as_dir in $PATH
15221 IFS=$as_save_IFS
15222 test -z "$as_dir" && as_dir=.
15223 for ac_exec_ext in '' $ac_executable_extensions; do
15224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15225 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15227 break 2
15229 done
15230 done
15231 IFS=$as_save_IFS
15235 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15236 if test -n "$DLLTOOL_FOR_TARGET"; then
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15238 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15239 else
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15241 $as_echo "no" >&6; }
15246 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
15247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15248 set dummy ${ncn_progname}; ac_word=$2
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15250 $as_echo_n "checking for $ac_word... " >&6; }
15251 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15252 $as_echo_n "(cached) " >&6
15253 else
15254 if test -n "$DLLTOOL_FOR_TARGET"; then
15255 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15256 else
15257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15258 for as_dir in $PATH
15260 IFS=$as_save_IFS
15261 test -z "$as_dir" && as_dir=.
15262 for ac_exec_ext in '' $ac_executable_extensions; do
15263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15264 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15266 break 2
15268 done
15269 done
15270 IFS=$as_save_IFS
15274 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15275 if test -n "$DLLTOOL_FOR_TARGET"; then
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15277 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15278 else
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15280 $as_echo "no" >&6; }
15285 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15286 done
15289 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15290 set dummy dlltool
15291 if test $build = $target ; then
15292 DLLTOOL_FOR_TARGET="$2"
15293 else
15294 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15296 else
15297 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15300 else
15301 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15307 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15308 if test -n "$with_build_time_tools"; then
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
15310 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
15311 if test -x $with_build_time_tools/dsymutil; then
15312 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15313 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15315 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15316 else
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15318 $as_echo "no" >&6; }
15320 elif test $build != $host && test $have_gcc_for_target = yes; then
15321 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15322 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15323 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15326 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15327 # Extract the first word of "dsymutil", so it can be a program name with args.
15328 set dummy dsymutil; ac_word=$2
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15330 $as_echo_n "checking for $ac_word... " >&6; }
15331 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15332 $as_echo_n "(cached) " >&6
15333 else
15334 case $DSYMUTIL_FOR_TARGET in
15335 [\\/]* | ?:[\\/]*)
15336 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15340 for as_dir in $gcc_cv_tool_dirs
15342 IFS=$as_save_IFS
15343 test -z "$as_dir" && as_dir=.
15344 for ac_exec_ext in '' $ac_executable_extensions; do
15345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15346 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15348 break 2
15350 done
15351 done
15352 IFS=$as_save_IFS
15355 esac
15357 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15358 if test -n "$DSYMUTIL_FOR_TARGET"; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15360 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15361 else
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15363 $as_echo "no" >&6; }
15368 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15371 if test -n "$DSYMUTIL_FOR_TARGET"; then
15372 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15373 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15374 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15377 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15378 for ncn_progname in dsymutil; do
15379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15380 set dummy ${ncn_progname}; ac_word=$2
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15382 $as_echo_n "checking for $ac_word... " >&6; }
15383 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15384 $as_echo_n "(cached) " >&6
15385 else
15386 if test -n "$DSYMUTIL_FOR_TARGET"; then
15387 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15388 else
15389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15390 for as_dir in $PATH
15392 IFS=$as_save_IFS
15393 test -z "$as_dir" && as_dir=.
15394 for ac_exec_ext in '' $ac_executable_extensions; do
15395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15396 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15398 break 2
15400 done
15401 done
15402 IFS=$as_save_IFS
15406 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15407 if test -n "$DSYMUTIL_FOR_TARGET"; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15409 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15410 else
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15412 $as_echo "no" >&6; }
15416 done
15419 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15420 for ncn_progname in dsymutil; do
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15422 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15423 if test -x $with_build_time_tools/${ncn_progname}; then
15424 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15426 $as_echo "yes" >&6; }
15427 break
15428 else
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15430 $as_echo "no" >&6; }
15432 done
15435 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15436 for ncn_progname in dsymutil; do
15437 if test -n "$ncn_target_tool_prefix"; then
15438 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15439 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15441 $as_echo_n "checking for $ac_word... " >&6; }
15442 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15443 $as_echo_n "(cached) " >&6
15444 else
15445 if test -n "$DSYMUTIL_FOR_TARGET"; then
15446 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15447 else
15448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15449 for as_dir in $PATH
15451 IFS=$as_save_IFS
15452 test -z "$as_dir" && as_dir=.
15453 for ac_exec_ext in '' $ac_executable_extensions; do
15454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15455 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15457 break 2
15459 done
15460 done
15461 IFS=$as_save_IFS
15465 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15466 if test -n "$DSYMUTIL_FOR_TARGET"; then
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15468 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15469 else
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15471 $as_echo "no" >&6; }
15476 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15478 set dummy ${ncn_progname}; ac_word=$2
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15480 $as_echo_n "checking for $ac_word... " >&6; }
15481 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15482 $as_echo_n "(cached) " >&6
15483 else
15484 if test -n "$DSYMUTIL_FOR_TARGET"; then
15485 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15486 else
15487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15488 for as_dir in $PATH
15490 IFS=$as_save_IFS
15491 test -z "$as_dir" && as_dir=.
15492 for ac_exec_ext in '' $ac_executable_extensions; do
15493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15494 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15496 break 2
15498 done
15499 done
15500 IFS=$as_save_IFS
15504 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15505 if test -n "$DSYMUTIL_FOR_TARGET"; then
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15507 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15508 else
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15510 $as_echo "no" >&6; }
15515 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15516 done
15519 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15520 set dummy dsymutil
15521 if test $build = $target ; then
15522 DSYMUTIL_FOR_TARGET="$2"
15523 else
15524 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15526 else
15527 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15530 else
15531 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15537 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15538 if test -n "$with_build_time_tools"; then
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15540 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15541 if test -x $with_build_time_tools/ld; then
15542 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15543 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15545 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15546 else
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15548 $as_echo "no" >&6; }
15550 elif test $build != $host && test $have_gcc_for_target = yes; then
15551 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15552 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15553 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15556 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15557 # Extract the first word of "ld", so it can be a program name with args.
15558 set dummy ld; ac_word=$2
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15560 $as_echo_n "checking for $ac_word... " >&6; }
15561 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15562 $as_echo_n "(cached) " >&6
15563 else
15564 case $LD_FOR_TARGET in
15565 [\\/]* | ?:[\\/]*)
15566 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15570 for as_dir in $gcc_cv_tool_dirs
15572 IFS=$as_save_IFS
15573 test -z "$as_dir" && as_dir=.
15574 for ac_exec_ext in '' $ac_executable_extensions; do
15575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15576 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15578 break 2
15580 done
15581 done
15582 IFS=$as_save_IFS
15585 esac
15587 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15588 if test -n "$LD_FOR_TARGET"; then
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15590 $as_echo "$LD_FOR_TARGET" >&6; }
15591 else
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15593 $as_echo "no" >&6; }
15598 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15601 if test -n "$LD_FOR_TARGET"; then
15602 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15603 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15604 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15607 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15608 for ncn_progname in ld; do
15609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15610 set dummy ${ncn_progname}; ac_word=$2
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15612 $as_echo_n "checking for $ac_word... " >&6; }
15613 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15614 $as_echo_n "(cached) " >&6
15615 else
15616 if test -n "$LD_FOR_TARGET"; then
15617 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15618 else
15619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15620 for as_dir in $PATH
15622 IFS=$as_save_IFS
15623 test -z "$as_dir" && as_dir=.
15624 for ac_exec_ext in '' $ac_executable_extensions; do
15625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15626 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15628 break 2
15630 done
15631 done
15632 IFS=$as_save_IFS
15636 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15637 if test -n "$LD_FOR_TARGET"; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15639 $as_echo "$LD_FOR_TARGET" >&6; }
15640 else
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642 $as_echo "no" >&6; }
15646 done
15649 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15650 for ncn_progname in ld; do
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15652 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15653 if test -x $with_build_time_tools/${ncn_progname}; then
15654 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15656 $as_echo "yes" >&6; }
15657 break
15658 else
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15660 $as_echo "no" >&6; }
15662 done
15665 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15666 for ncn_progname in ld; do
15667 if test -n "$ncn_target_tool_prefix"; then
15668 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15669 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15671 $as_echo_n "checking for $ac_word... " >&6; }
15672 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15673 $as_echo_n "(cached) " >&6
15674 else
15675 if test -n "$LD_FOR_TARGET"; then
15676 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15677 else
15678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15679 for as_dir in $PATH
15681 IFS=$as_save_IFS
15682 test -z "$as_dir" && as_dir=.
15683 for ac_exec_ext in '' $ac_executable_extensions; do
15684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15685 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15687 break 2
15689 done
15690 done
15691 IFS=$as_save_IFS
15695 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15696 if test -n "$LD_FOR_TARGET"; then
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15698 $as_echo "$LD_FOR_TARGET" >&6; }
15699 else
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15701 $as_echo "no" >&6; }
15706 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15708 set dummy ${ncn_progname}; ac_word=$2
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15710 $as_echo_n "checking for $ac_word... " >&6; }
15711 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15712 $as_echo_n "(cached) " >&6
15713 else
15714 if test -n "$LD_FOR_TARGET"; then
15715 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15716 else
15717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15718 for as_dir in $PATH
15720 IFS=$as_save_IFS
15721 test -z "$as_dir" && as_dir=.
15722 for ac_exec_ext in '' $ac_executable_extensions; do
15723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15724 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15726 break 2
15728 done
15729 done
15730 IFS=$as_save_IFS
15734 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15735 if test -n "$LD_FOR_TARGET"; then
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15737 $as_echo "$LD_FOR_TARGET" >&6; }
15738 else
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15740 $as_echo "no" >&6; }
15745 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15746 done
15749 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15750 set dummy ld
15751 if test $build = $target ; then
15752 LD_FOR_TARGET="$2"
15753 else
15754 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15756 else
15757 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15760 else
15761 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15767 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15768 if test -n "$with_build_time_tools"; then
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15770 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15771 if test -x $with_build_time_tools/lipo; then
15772 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15773 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15775 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15776 else
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778 $as_echo "no" >&6; }
15780 elif test $build != $host && test $have_gcc_for_target = yes; then
15781 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15782 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15783 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15786 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15787 # Extract the first word of "lipo", so it can be a program name with args.
15788 set dummy lipo; ac_word=$2
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15790 $as_echo_n "checking for $ac_word... " >&6; }
15791 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15794 case $LIPO_FOR_TARGET in
15795 [\\/]* | ?:[\\/]*)
15796 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15800 for as_dir in $gcc_cv_tool_dirs
15802 IFS=$as_save_IFS
15803 test -z "$as_dir" && as_dir=.
15804 for ac_exec_ext in '' $ac_executable_extensions; do
15805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15806 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15808 break 2
15810 done
15811 done
15812 IFS=$as_save_IFS
15815 esac
15817 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15818 if test -n "$LIPO_FOR_TARGET"; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15820 $as_echo "$LIPO_FOR_TARGET" >&6; }
15821 else
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15823 $as_echo "no" >&6; }
15828 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15831 if test -n "$LIPO_FOR_TARGET"; then
15832 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15833 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15834 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15837 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15838 for ncn_progname in lipo; do
15839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15840 set dummy ${ncn_progname}; ac_word=$2
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15842 $as_echo_n "checking for $ac_word... " >&6; }
15843 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15844 $as_echo_n "(cached) " >&6
15845 else
15846 if test -n "$LIPO_FOR_TARGET"; then
15847 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15848 else
15849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15850 for as_dir in $PATH
15852 IFS=$as_save_IFS
15853 test -z "$as_dir" && as_dir=.
15854 for ac_exec_ext in '' $ac_executable_extensions; do
15855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15856 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15858 break 2
15860 done
15861 done
15862 IFS=$as_save_IFS
15866 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15867 if test -n "$LIPO_FOR_TARGET"; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15869 $as_echo "$LIPO_FOR_TARGET" >&6; }
15870 else
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15872 $as_echo "no" >&6; }
15876 done
15879 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15880 for ncn_progname in lipo; do
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15882 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15883 if test -x $with_build_time_tools/${ncn_progname}; then
15884 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15886 $as_echo "yes" >&6; }
15887 break
15888 else
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15890 $as_echo "no" >&6; }
15892 done
15895 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15896 for ncn_progname in lipo; do
15897 if test -n "$ncn_target_tool_prefix"; then
15898 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15899 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15901 $as_echo_n "checking for $ac_word... " >&6; }
15902 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15903 $as_echo_n "(cached) " >&6
15904 else
15905 if test -n "$LIPO_FOR_TARGET"; then
15906 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15907 else
15908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15909 for as_dir in $PATH
15911 IFS=$as_save_IFS
15912 test -z "$as_dir" && as_dir=.
15913 for ac_exec_ext in '' $ac_executable_extensions; do
15914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15915 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15917 break 2
15919 done
15920 done
15921 IFS=$as_save_IFS
15925 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15926 if test -n "$LIPO_FOR_TARGET"; then
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15928 $as_echo "$LIPO_FOR_TARGET" >&6; }
15929 else
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15931 $as_echo "no" >&6; }
15936 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15938 set dummy ${ncn_progname}; ac_word=$2
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15940 $as_echo_n "checking for $ac_word... " >&6; }
15941 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15942 $as_echo_n "(cached) " >&6
15943 else
15944 if test -n "$LIPO_FOR_TARGET"; then
15945 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15946 else
15947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15948 for as_dir in $PATH
15950 IFS=$as_save_IFS
15951 test -z "$as_dir" && as_dir=.
15952 for ac_exec_ext in '' $ac_executable_extensions; do
15953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15954 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15956 break 2
15958 done
15959 done
15960 IFS=$as_save_IFS
15964 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15965 if test -n "$LIPO_FOR_TARGET"; then
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15967 $as_echo "$LIPO_FOR_TARGET" >&6; }
15968 else
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15970 $as_echo "no" >&6; }
15975 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15976 done
15979 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15980 set dummy lipo
15981 if test $build = $target ; then
15982 LIPO_FOR_TARGET="$2"
15983 else
15984 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15986 else
15987 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15990 else
15991 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15997 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15998 if test -n "$with_build_time_tools"; then
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
16000 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
16001 if test -x $with_build_time_tools/nm; then
16002 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
16003 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
16005 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16006 else
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16008 $as_echo "no" >&6; }
16010 elif test $build != $host && test $have_gcc_for_target = yes; then
16011 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
16012 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
16013 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16016 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16017 # Extract the first word of "nm", so it can be a program name with args.
16018 set dummy nm; ac_word=$2
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16020 $as_echo_n "checking for $ac_word... " >&6; }
16021 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
16022 $as_echo_n "(cached) " >&6
16023 else
16024 case $NM_FOR_TARGET in
16025 [\\/]* | ?:[\\/]*)
16026 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
16029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16030 for as_dir in $gcc_cv_tool_dirs
16032 IFS=$as_save_IFS
16033 test -z "$as_dir" && as_dir=.
16034 for ac_exec_ext in '' $ac_executable_extensions; do
16035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16036 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16038 break 2
16040 done
16041 done
16042 IFS=$as_save_IFS
16045 esac
16047 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16048 if test -n "$NM_FOR_TARGET"; then
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16050 $as_echo "$NM_FOR_TARGET" >&6; }
16051 else
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16053 $as_echo "no" >&6; }
16058 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16061 if test -n "$NM_FOR_TARGET"; then
16062 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
16063 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16064 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16067 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16068 for ncn_progname in nm; do
16069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16070 set dummy ${ncn_progname}; ac_word=$2
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16072 $as_echo_n "checking for $ac_word... " >&6; }
16073 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16074 $as_echo_n "(cached) " >&6
16075 else
16076 if test -n "$NM_FOR_TARGET"; then
16077 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16078 else
16079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16080 for as_dir in $PATH
16082 IFS=$as_save_IFS
16083 test -z "$as_dir" && as_dir=.
16084 for ac_exec_ext in '' $ac_executable_extensions; do
16085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16086 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16088 break 2
16090 done
16091 done
16092 IFS=$as_save_IFS
16096 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16097 if test -n "$NM_FOR_TARGET"; then
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16099 $as_echo "$NM_FOR_TARGET" >&6; }
16100 else
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16102 $as_echo "no" >&6; }
16106 done
16109 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
16110 for ncn_progname in nm; do
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16112 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16113 if test -x $with_build_time_tools/${ncn_progname}; then
16114 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16116 $as_echo "yes" >&6; }
16117 break
16118 else
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16120 $as_echo "no" >&6; }
16122 done
16125 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
16126 for ncn_progname in nm; do
16127 if test -n "$ncn_target_tool_prefix"; then
16128 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16129 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16131 $as_echo_n "checking for $ac_word... " >&6; }
16132 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16133 $as_echo_n "(cached) " >&6
16134 else
16135 if test -n "$NM_FOR_TARGET"; then
16136 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16137 else
16138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16139 for as_dir in $PATH
16141 IFS=$as_save_IFS
16142 test -z "$as_dir" && as_dir=.
16143 for ac_exec_ext in '' $ac_executable_extensions; do
16144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16145 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16147 break 2
16149 done
16150 done
16151 IFS=$as_save_IFS
16155 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16156 if test -n "$NM_FOR_TARGET"; then
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16158 $as_echo "$NM_FOR_TARGET" >&6; }
16159 else
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16161 $as_echo "no" >&6; }
16166 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16168 set dummy ${ncn_progname}; ac_word=$2
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16170 $as_echo_n "checking for $ac_word... " >&6; }
16171 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16172 $as_echo_n "(cached) " >&6
16173 else
16174 if test -n "$NM_FOR_TARGET"; then
16175 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16176 else
16177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16178 for as_dir in $PATH
16180 IFS=$as_save_IFS
16181 test -z "$as_dir" && as_dir=.
16182 for ac_exec_ext in '' $ac_executable_extensions; do
16183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16184 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16186 break 2
16188 done
16189 done
16190 IFS=$as_save_IFS
16194 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16195 if test -n "$NM_FOR_TARGET"; then
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16197 $as_echo "$NM_FOR_TARGET" >&6; }
16198 else
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16200 $as_echo "no" >&6; }
16205 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
16206 done
16209 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
16210 set dummy nm
16211 if test $build = $target ; then
16212 NM_FOR_TARGET="$2"
16213 else
16214 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
16216 else
16217 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
16220 else
16221 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16227 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16228 if test -n "$with_build_time_tools"; then
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
16230 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
16231 if test -x $with_build_time_tools/objcopy; then
16232 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
16233 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
16235 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
16236 else
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16240 elif test $build != $host && test $have_gcc_for_target = yes; then
16241 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
16242 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
16243 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16246 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16247 # Extract the first word of "objcopy", so it can be a program name with args.
16248 set dummy objcopy; ac_word=$2
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16250 $as_echo_n "checking for $ac_word... " >&6; }
16251 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
16252 $as_echo_n "(cached) " >&6
16253 else
16254 case $OBJCOPY_FOR_TARGET in
16255 [\\/]* | ?:[\\/]*)
16256 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
16259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16260 for as_dir in $gcc_cv_tool_dirs
16262 IFS=$as_save_IFS
16263 test -z "$as_dir" && as_dir=.
16264 for ac_exec_ext in '' $ac_executable_extensions; do
16265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16266 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16268 break 2
16270 done
16271 done
16272 IFS=$as_save_IFS
16275 esac
16277 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16278 if test -n "$OBJCOPY_FOR_TARGET"; then
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16280 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16281 else
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16283 $as_echo "no" >&6; }
16288 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16291 if test -n "$OBJCOPY_FOR_TARGET"; then
16292 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16293 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16294 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16297 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16298 for ncn_progname in objcopy; do
16299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16300 set dummy ${ncn_progname}; ac_word=$2
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16302 $as_echo_n "checking for $ac_word... " >&6; }
16303 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16304 $as_echo_n "(cached) " >&6
16305 else
16306 if test -n "$OBJCOPY_FOR_TARGET"; then
16307 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16308 else
16309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16310 for as_dir in $PATH
16312 IFS=$as_save_IFS
16313 test -z "$as_dir" && as_dir=.
16314 for ac_exec_ext in '' $ac_executable_extensions; do
16315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16316 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16318 break 2
16320 done
16321 done
16322 IFS=$as_save_IFS
16326 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16327 if test -n "$OBJCOPY_FOR_TARGET"; then
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16329 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16330 else
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16332 $as_echo "no" >&6; }
16336 done
16339 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16340 for ncn_progname in objcopy; do
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16342 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16343 if test -x $with_build_time_tools/${ncn_progname}; then
16344 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16346 $as_echo "yes" >&6; }
16347 break
16348 else
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16350 $as_echo "no" >&6; }
16352 done
16355 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16356 for ncn_progname in objcopy; do
16357 if test -n "$ncn_target_tool_prefix"; then
16358 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16359 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16361 $as_echo_n "checking for $ac_word... " >&6; }
16362 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16363 $as_echo_n "(cached) " >&6
16364 else
16365 if test -n "$OBJCOPY_FOR_TARGET"; then
16366 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16367 else
16368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16369 for as_dir in $PATH
16371 IFS=$as_save_IFS
16372 test -z "$as_dir" && as_dir=.
16373 for ac_exec_ext in '' $ac_executable_extensions; do
16374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16375 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16377 break 2
16379 done
16380 done
16381 IFS=$as_save_IFS
16385 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16386 if test -n "$OBJCOPY_FOR_TARGET"; then
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16388 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16389 else
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16391 $as_echo "no" >&6; }
16396 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16398 set dummy ${ncn_progname}; ac_word=$2
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16400 $as_echo_n "checking for $ac_word... " >&6; }
16401 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16402 $as_echo_n "(cached) " >&6
16403 else
16404 if test -n "$OBJCOPY_FOR_TARGET"; then
16405 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16406 else
16407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16408 for as_dir in $PATH
16410 IFS=$as_save_IFS
16411 test -z "$as_dir" && as_dir=.
16412 for ac_exec_ext in '' $ac_executable_extensions; do
16413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16414 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16416 break 2
16418 done
16419 done
16420 IFS=$as_save_IFS
16424 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16425 if test -n "$OBJCOPY_FOR_TARGET"; then
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16427 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16428 else
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16430 $as_echo "no" >&6; }
16435 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16436 done
16439 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16440 set dummy objcopy
16441 if test $build = $target ; then
16442 OBJCOPY_FOR_TARGET="$2"
16443 else
16444 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16446 else
16447 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16450 else
16451 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16457 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16458 if test -n "$with_build_time_tools"; then
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
16460 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
16461 if test -x $with_build_time_tools/objdump; then
16462 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16463 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16465 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16466 else
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468 $as_echo "no" >&6; }
16470 elif test $build != $host && test $have_gcc_for_target = yes; then
16471 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16472 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16473 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16476 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16477 # Extract the first word of "objdump", so it can be a program name with args.
16478 set dummy objdump; ac_word=$2
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16480 $as_echo_n "checking for $ac_word... " >&6; }
16481 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16482 $as_echo_n "(cached) " >&6
16483 else
16484 case $OBJDUMP_FOR_TARGET in
16485 [\\/]* | ?:[\\/]*)
16486 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16490 for as_dir in $gcc_cv_tool_dirs
16492 IFS=$as_save_IFS
16493 test -z "$as_dir" && as_dir=.
16494 for ac_exec_ext in '' $ac_executable_extensions; do
16495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16496 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16498 break 2
16500 done
16501 done
16502 IFS=$as_save_IFS
16505 esac
16507 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16508 if test -n "$OBJDUMP_FOR_TARGET"; then
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16510 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16511 else
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16513 $as_echo "no" >&6; }
16518 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16521 if test -n "$OBJDUMP_FOR_TARGET"; then
16522 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16523 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16524 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16527 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16528 for ncn_progname in objdump; do
16529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16530 set dummy ${ncn_progname}; ac_word=$2
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16532 $as_echo_n "checking for $ac_word... " >&6; }
16533 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16534 $as_echo_n "(cached) " >&6
16535 else
16536 if test -n "$OBJDUMP_FOR_TARGET"; then
16537 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16538 else
16539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16540 for as_dir in $PATH
16542 IFS=$as_save_IFS
16543 test -z "$as_dir" && as_dir=.
16544 for ac_exec_ext in '' $ac_executable_extensions; do
16545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16546 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16548 break 2
16550 done
16551 done
16552 IFS=$as_save_IFS
16556 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16557 if test -n "$OBJDUMP_FOR_TARGET"; then
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16559 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16560 else
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16562 $as_echo "no" >&6; }
16566 done
16569 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16570 for ncn_progname in objdump; do
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16572 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16573 if test -x $with_build_time_tools/${ncn_progname}; then
16574 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16576 $as_echo "yes" >&6; }
16577 break
16578 else
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16580 $as_echo "no" >&6; }
16582 done
16585 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16586 for ncn_progname in objdump; do
16587 if test -n "$ncn_target_tool_prefix"; then
16588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16589 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16591 $as_echo_n "checking for $ac_word... " >&6; }
16592 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16593 $as_echo_n "(cached) " >&6
16594 else
16595 if test -n "$OBJDUMP_FOR_TARGET"; then
16596 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16597 else
16598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16599 for as_dir in $PATH
16601 IFS=$as_save_IFS
16602 test -z "$as_dir" && as_dir=.
16603 for ac_exec_ext in '' $ac_executable_extensions; do
16604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16605 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16607 break 2
16609 done
16610 done
16611 IFS=$as_save_IFS
16615 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16616 if test -n "$OBJDUMP_FOR_TARGET"; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16618 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16619 else
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16621 $as_echo "no" >&6; }
16626 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16628 set dummy ${ncn_progname}; ac_word=$2
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16630 $as_echo_n "checking for $ac_word... " >&6; }
16631 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16632 $as_echo_n "(cached) " >&6
16633 else
16634 if test -n "$OBJDUMP_FOR_TARGET"; then
16635 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16636 else
16637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16638 for as_dir in $PATH
16640 IFS=$as_save_IFS
16641 test -z "$as_dir" && as_dir=.
16642 for ac_exec_ext in '' $ac_executable_extensions; do
16643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16644 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16646 break 2
16648 done
16649 done
16650 IFS=$as_save_IFS
16654 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16655 if test -n "$OBJDUMP_FOR_TARGET"; then
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16657 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16658 else
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16660 $as_echo "no" >&6; }
16665 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16666 done
16669 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16670 set dummy objdump
16671 if test $build = $target ; then
16672 OBJDUMP_FOR_TARGET="$2"
16673 else
16674 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16676 else
16677 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16680 else
16681 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16687 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16688 if test -n "$with_build_time_tools"; then
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16690 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16691 if test -x $with_build_time_tools/otool; then
16692 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16693 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16695 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16696 else
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16698 $as_echo "no" >&6; }
16700 elif test $build != $host && test $have_gcc_for_target = yes; then
16701 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16702 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16703 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16706 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16707 # Extract the first word of "otool", so it can be a program name with args.
16708 set dummy otool; ac_word=$2
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16710 $as_echo_n "checking for $ac_word... " >&6; }
16711 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16712 $as_echo_n "(cached) " >&6
16713 else
16714 case $OTOOL_FOR_TARGET in
16715 [\\/]* | ?:[\\/]*)
16716 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16720 for as_dir in $gcc_cv_tool_dirs
16722 IFS=$as_save_IFS
16723 test -z "$as_dir" && as_dir=.
16724 for ac_exec_ext in '' $ac_executable_extensions; do
16725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16726 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16728 break 2
16730 done
16731 done
16732 IFS=$as_save_IFS
16735 esac
16737 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16738 if test -n "$OTOOL_FOR_TARGET"; then
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16740 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16741 else
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16743 $as_echo "no" >&6; }
16748 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16751 if test -n "$OTOOL_FOR_TARGET"; then
16752 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16753 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16754 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16757 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16758 for ncn_progname in otool; do
16759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16760 set dummy ${ncn_progname}; ac_word=$2
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16762 $as_echo_n "checking for $ac_word... " >&6; }
16763 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16764 $as_echo_n "(cached) " >&6
16765 else
16766 if test -n "$OTOOL_FOR_TARGET"; then
16767 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16768 else
16769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16770 for as_dir in $PATH
16772 IFS=$as_save_IFS
16773 test -z "$as_dir" && as_dir=.
16774 for ac_exec_ext in '' $ac_executable_extensions; do
16775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16776 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16778 break 2
16780 done
16781 done
16782 IFS=$as_save_IFS
16786 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16787 if test -n "$OTOOL_FOR_TARGET"; then
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16789 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16790 else
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16792 $as_echo "no" >&6; }
16796 done
16799 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16800 for ncn_progname in otool; do
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16802 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16803 if test -x $with_build_time_tools/${ncn_progname}; then
16804 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16806 $as_echo "yes" >&6; }
16807 break
16808 else
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810 $as_echo "no" >&6; }
16812 done
16815 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16816 for ncn_progname in otool; do
16817 if test -n "$ncn_target_tool_prefix"; then
16818 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16819 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16821 $as_echo_n "checking for $ac_word... " >&6; }
16822 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16823 $as_echo_n "(cached) " >&6
16824 else
16825 if test -n "$OTOOL_FOR_TARGET"; then
16826 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16827 else
16828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16829 for as_dir in $PATH
16831 IFS=$as_save_IFS
16832 test -z "$as_dir" && as_dir=.
16833 for ac_exec_ext in '' $ac_executable_extensions; do
16834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16835 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16837 break 2
16839 done
16840 done
16841 IFS=$as_save_IFS
16845 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16846 if test -n "$OTOOL_FOR_TARGET"; then
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16848 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16849 else
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16856 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16858 set dummy ${ncn_progname}; ac_word=$2
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16860 $as_echo_n "checking for $ac_word... " >&6; }
16861 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863 else
16864 if test -n "$OTOOL_FOR_TARGET"; then
16865 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16866 else
16867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16868 for as_dir in $PATH
16870 IFS=$as_save_IFS
16871 test -z "$as_dir" && as_dir=.
16872 for ac_exec_ext in '' $ac_executable_extensions; do
16873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16874 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16876 break 2
16878 done
16879 done
16880 IFS=$as_save_IFS
16884 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16885 if test -n "$OTOOL_FOR_TARGET"; then
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16887 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16888 else
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16890 $as_echo "no" >&6; }
16895 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16896 done
16899 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16900 set dummy otool
16901 if test $build = $target ; then
16902 OTOOL_FOR_TARGET="$2"
16903 else
16904 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16906 else
16907 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16910 else
16911 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16917 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16918 if test -n "$with_build_time_tools"; then
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16920 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16921 if test -x $with_build_time_tools/ranlib; then
16922 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16923 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16925 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16926 else
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16928 $as_echo "no" >&6; }
16930 elif test $build != $host && test $have_gcc_for_target = yes; then
16931 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16932 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16933 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16936 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16937 # Extract the first word of "ranlib", so it can be a program name with args.
16938 set dummy ranlib; ac_word=$2
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16940 $as_echo_n "checking for $ac_word... " >&6; }
16941 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16942 $as_echo_n "(cached) " >&6
16943 else
16944 case $RANLIB_FOR_TARGET in
16945 [\\/]* | ?:[\\/]*)
16946 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16950 for as_dir in $gcc_cv_tool_dirs
16952 IFS=$as_save_IFS
16953 test -z "$as_dir" && as_dir=.
16954 for ac_exec_ext in '' $ac_executable_extensions; do
16955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16956 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16958 break 2
16960 done
16961 done
16962 IFS=$as_save_IFS
16965 esac
16967 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16968 if test -n "$RANLIB_FOR_TARGET"; then
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16970 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16971 else
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16973 $as_echo "no" >&6; }
16978 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16981 if test -n "$RANLIB_FOR_TARGET"; then
16982 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16983 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16984 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16987 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16988 for ncn_progname in ranlib; do
16989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16990 set dummy ${ncn_progname}; ac_word=$2
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16992 $as_echo_n "checking for $ac_word... " >&6; }
16993 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16994 $as_echo_n "(cached) " >&6
16995 else
16996 if test -n "$RANLIB_FOR_TARGET"; then
16997 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16998 else
16999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17000 for as_dir in $PATH
17002 IFS=$as_save_IFS
17003 test -z "$as_dir" && as_dir=.
17004 for ac_exec_ext in '' $ac_executable_extensions; do
17005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17006 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17008 break 2
17010 done
17011 done
17012 IFS=$as_save_IFS
17016 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17017 if test -n "$RANLIB_FOR_TARGET"; then
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17019 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17020 else
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17022 $as_echo "no" >&6; }
17026 done
17029 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17030 for ncn_progname in ranlib; do
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17032 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17033 if test -x $with_build_time_tools/${ncn_progname}; then
17034 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17036 $as_echo "yes" >&6; }
17037 break
17038 else
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17040 $as_echo "no" >&6; }
17042 done
17045 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17046 for ncn_progname in ranlib; do
17047 if test -n "$ncn_target_tool_prefix"; then
17048 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17049 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17051 $as_echo_n "checking for $ac_word... " >&6; }
17052 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17053 $as_echo_n "(cached) " >&6
17054 else
17055 if test -n "$RANLIB_FOR_TARGET"; then
17056 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17057 else
17058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17059 for as_dir in $PATH
17061 IFS=$as_save_IFS
17062 test -z "$as_dir" && as_dir=.
17063 for ac_exec_ext in '' $ac_executable_extensions; do
17064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17065 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17067 break 2
17069 done
17070 done
17071 IFS=$as_save_IFS
17075 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17076 if test -n "$RANLIB_FOR_TARGET"; then
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17078 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17079 else
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081 $as_echo "no" >&6; }
17086 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17088 set dummy ${ncn_progname}; ac_word=$2
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17090 $as_echo_n "checking for $ac_word... " >&6; }
17091 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17092 $as_echo_n "(cached) " >&6
17093 else
17094 if test -n "$RANLIB_FOR_TARGET"; then
17095 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17096 else
17097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17098 for as_dir in $PATH
17100 IFS=$as_save_IFS
17101 test -z "$as_dir" && as_dir=.
17102 for ac_exec_ext in '' $ac_executable_extensions; do
17103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17104 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17106 break 2
17108 done
17109 done
17110 IFS=$as_save_IFS
17114 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17115 if test -n "$RANLIB_FOR_TARGET"; then
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17117 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17118 else
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17120 $as_echo "no" >&6; }
17125 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
17126 done
17129 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
17130 set dummy ranlib
17131 if test $build = $target ; then
17132 RANLIB_FOR_TARGET="$2"
17133 else
17134 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
17136 else
17137 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
17140 else
17141 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17147 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17148 if test -n "$with_build_time_tools"; then
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
17150 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
17151 if test -x $with_build_time_tools/readelf; then
17152 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
17153 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
17155 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
17156 else
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17158 $as_echo "no" >&6; }
17160 elif test $build != $host && test $have_gcc_for_target = yes; then
17161 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
17162 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
17163 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17166 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17167 # Extract the first word of "readelf", so it can be a program name with args.
17168 set dummy readelf; ac_word=$2
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17170 $as_echo_n "checking for $ac_word... " >&6; }
17171 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17172 $as_echo_n "(cached) " >&6
17173 else
17174 case $READELF_FOR_TARGET in
17175 [\\/]* | ?:[\\/]*)
17176 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17180 for as_dir in $gcc_cv_tool_dirs
17182 IFS=$as_save_IFS
17183 test -z "$as_dir" && as_dir=.
17184 for ac_exec_ext in '' $ac_executable_extensions; do
17185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17186 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17188 break 2
17190 done
17191 done
17192 IFS=$as_save_IFS
17195 esac
17197 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17198 if test -n "$READELF_FOR_TARGET"; then
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17200 $as_echo "$READELF_FOR_TARGET" >&6; }
17201 else
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17203 $as_echo "no" >&6; }
17208 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17211 if test -n "$READELF_FOR_TARGET"; then
17212 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
17213 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17214 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17217 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17218 for ncn_progname in readelf; do
17219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17220 set dummy ${ncn_progname}; ac_word=$2
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17222 $as_echo_n "checking for $ac_word... " >&6; }
17223 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17224 $as_echo_n "(cached) " >&6
17225 else
17226 if test -n "$READELF_FOR_TARGET"; then
17227 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17228 else
17229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17230 for as_dir in $PATH
17232 IFS=$as_save_IFS
17233 test -z "$as_dir" && as_dir=.
17234 for ac_exec_ext in '' $ac_executable_extensions; do
17235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17236 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17238 break 2
17240 done
17241 done
17242 IFS=$as_save_IFS
17246 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17247 if test -n "$READELF_FOR_TARGET"; then
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17249 $as_echo "$READELF_FOR_TARGET" >&6; }
17250 else
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17252 $as_echo "no" >&6; }
17256 done
17259 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
17260 for ncn_progname in readelf; do
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17262 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17263 if test -x $with_build_time_tools/${ncn_progname}; then
17264 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17266 $as_echo "yes" >&6; }
17267 break
17268 else
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17270 $as_echo "no" >&6; }
17272 done
17275 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17276 for ncn_progname in readelf; do
17277 if test -n "$ncn_target_tool_prefix"; then
17278 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17279 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17281 $as_echo_n "checking for $ac_word... " >&6; }
17282 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17283 $as_echo_n "(cached) " >&6
17284 else
17285 if test -n "$READELF_FOR_TARGET"; then
17286 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17287 else
17288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17289 for as_dir in $PATH
17291 IFS=$as_save_IFS
17292 test -z "$as_dir" && as_dir=.
17293 for ac_exec_ext in '' $ac_executable_extensions; do
17294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17295 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17297 break 2
17299 done
17300 done
17301 IFS=$as_save_IFS
17305 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17306 if test -n "$READELF_FOR_TARGET"; then
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17308 $as_echo "$READELF_FOR_TARGET" >&6; }
17309 else
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17311 $as_echo "no" >&6; }
17316 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17318 set dummy ${ncn_progname}; ac_word=$2
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17320 $as_echo_n "checking for $ac_word... " >&6; }
17321 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17322 $as_echo_n "(cached) " >&6
17323 else
17324 if test -n "$READELF_FOR_TARGET"; then
17325 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17326 else
17327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17328 for as_dir in $PATH
17330 IFS=$as_save_IFS
17331 test -z "$as_dir" && as_dir=.
17332 for ac_exec_ext in '' $ac_executable_extensions; do
17333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17334 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17336 break 2
17338 done
17339 done
17340 IFS=$as_save_IFS
17344 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17345 if test -n "$READELF_FOR_TARGET"; then
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17347 $as_echo "$READELF_FOR_TARGET" >&6; }
17348 else
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17350 $as_echo "no" >&6; }
17355 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17356 done
17359 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17360 set dummy readelf
17361 if test $build = $target ; then
17362 READELF_FOR_TARGET="$2"
17363 else
17364 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17366 else
17367 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17370 else
17371 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17377 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17378 if test -n "$with_build_time_tools"; then
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
17380 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
17381 if test -x $with_build_time_tools/strip; then
17382 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17383 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
17385 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17386 else
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17388 $as_echo "no" >&6; }
17390 elif test $build != $host && test $have_gcc_for_target = yes; then
17391 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17392 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17393 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17396 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17397 # Extract the first word of "strip", so it can be a program name with args.
17398 set dummy strip; ac_word=$2
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17400 $as_echo_n "checking for $ac_word... " >&6; }
17401 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17402 $as_echo_n "(cached) " >&6
17403 else
17404 case $STRIP_FOR_TARGET in
17405 [\\/]* | ?:[\\/]*)
17406 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17410 for as_dir in $gcc_cv_tool_dirs
17412 IFS=$as_save_IFS
17413 test -z "$as_dir" && as_dir=.
17414 for ac_exec_ext in '' $ac_executable_extensions; do
17415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17416 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17418 break 2
17420 done
17421 done
17422 IFS=$as_save_IFS
17425 esac
17427 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17428 if test -n "$STRIP_FOR_TARGET"; then
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17430 $as_echo "$STRIP_FOR_TARGET" >&6; }
17431 else
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17433 $as_echo "no" >&6; }
17438 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17441 if test -n "$STRIP_FOR_TARGET"; then
17442 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17443 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17444 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17447 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17448 for ncn_progname in strip; do
17449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17450 set dummy ${ncn_progname}; ac_word=$2
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17452 $as_echo_n "checking for $ac_word... " >&6; }
17453 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17454 $as_echo_n "(cached) " >&6
17455 else
17456 if test -n "$STRIP_FOR_TARGET"; then
17457 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17458 else
17459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17460 for as_dir in $PATH
17462 IFS=$as_save_IFS
17463 test -z "$as_dir" && as_dir=.
17464 for ac_exec_ext in '' $ac_executable_extensions; do
17465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17466 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17468 break 2
17470 done
17471 done
17472 IFS=$as_save_IFS
17476 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17477 if test -n "$STRIP_FOR_TARGET"; then
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17479 $as_echo "$STRIP_FOR_TARGET" >&6; }
17480 else
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17482 $as_echo "no" >&6; }
17486 done
17489 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17490 for ncn_progname in strip; do
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17492 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17493 if test -x $with_build_time_tools/${ncn_progname}; then
17494 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17496 $as_echo "yes" >&6; }
17497 break
17498 else
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17500 $as_echo "no" >&6; }
17502 done
17505 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17506 for ncn_progname in strip; do
17507 if test -n "$ncn_target_tool_prefix"; then
17508 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17509 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17511 $as_echo_n "checking for $ac_word... " >&6; }
17512 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17513 $as_echo_n "(cached) " >&6
17514 else
17515 if test -n "$STRIP_FOR_TARGET"; then
17516 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17517 else
17518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17519 for as_dir in $PATH
17521 IFS=$as_save_IFS
17522 test -z "$as_dir" && as_dir=.
17523 for ac_exec_ext in '' $ac_executable_extensions; do
17524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17525 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17527 break 2
17529 done
17530 done
17531 IFS=$as_save_IFS
17535 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17536 if test -n "$STRIP_FOR_TARGET"; then
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17538 $as_echo "$STRIP_FOR_TARGET" >&6; }
17539 else
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17541 $as_echo "no" >&6; }
17546 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17548 set dummy ${ncn_progname}; ac_word=$2
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17550 $as_echo_n "checking for $ac_word... " >&6; }
17551 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17552 $as_echo_n "(cached) " >&6
17553 else
17554 if test -n "$STRIP_FOR_TARGET"; then
17555 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17556 else
17557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17558 for as_dir in $PATH
17560 IFS=$as_save_IFS
17561 test -z "$as_dir" && as_dir=.
17562 for ac_exec_ext in '' $ac_executable_extensions; do
17563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17564 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17566 break 2
17568 done
17569 done
17570 IFS=$as_save_IFS
17574 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17575 if test -n "$STRIP_FOR_TARGET"; then
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17577 $as_echo "$STRIP_FOR_TARGET" >&6; }
17578 else
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17580 $as_echo "no" >&6; }
17585 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17586 done
17589 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17590 set dummy strip
17591 if test $build = $target ; then
17592 STRIP_FOR_TARGET="$2"
17593 else
17594 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17596 else
17597 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17600 else
17601 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17607 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17608 if test -n "$with_build_time_tools"; then
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17610 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17611 if test -x $with_build_time_tools/windres; then
17612 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17613 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17615 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17616 else
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17618 $as_echo "no" >&6; }
17620 elif test $build != $host && test $have_gcc_for_target = yes; then
17621 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17622 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17623 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17626 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17627 # Extract the first word of "windres", so it can be a program name with args.
17628 set dummy windres; ac_word=$2
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17630 $as_echo_n "checking for $ac_word... " >&6; }
17631 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17632 $as_echo_n "(cached) " >&6
17633 else
17634 case $WINDRES_FOR_TARGET in
17635 [\\/]* | ?:[\\/]*)
17636 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17640 for as_dir in $gcc_cv_tool_dirs
17642 IFS=$as_save_IFS
17643 test -z "$as_dir" && as_dir=.
17644 for ac_exec_ext in '' $ac_executable_extensions; do
17645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17646 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17648 break 2
17650 done
17651 done
17652 IFS=$as_save_IFS
17655 esac
17657 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17658 if test -n "$WINDRES_FOR_TARGET"; then
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17660 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17661 else
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17663 $as_echo "no" >&6; }
17668 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17671 if test -n "$WINDRES_FOR_TARGET"; then
17672 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17673 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17674 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17677 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17678 for ncn_progname in windres; do
17679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17680 set dummy ${ncn_progname}; ac_word=$2
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17682 $as_echo_n "checking for $ac_word... " >&6; }
17683 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17684 $as_echo_n "(cached) " >&6
17685 else
17686 if test -n "$WINDRES_FOR_TARGET"; then
17687 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17688 else
17689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17690 for as_dir in $PATH
17692 IFS=$as_save_IFS
17693 test -z "$as_dir" && as_dir=.
17694 for ac_exec_ext in '' $ac_executable_extensions; do
17695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17696 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17698 break 2
17700 done
17701 done
17702 IFS=$as_save_IFS
17706 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17707 if test -n "$WINDRES_FOR_TARGET"; then
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17709 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17710 else
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17712 $as_echo "no" >&6; }
17716 done
17719 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17720 for ncn_progname in windres; do
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17722 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17723 if test -x $with_build_time_tools/${ncn_progname}; then
17724 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17726 $as_echo "yes" >&6; }
17727 break
17728 else
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17730 $as_echo "no" >&6; }
17732 done
17735 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17736 for ncn_progname in windres; do
17737 if test -n "$ncn_target_tool_prefix"; then
17738 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17739 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17741 $as_echo_n "checking for $ac_word... " >&6; }
17742 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17743 $as_echo_n "(cached) " >&6
17744 else
17745 if test -n "$WINDRES_FOR_TARGET"; then
17746 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17747 else
17748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749 for as_dir in $PATH
17751 IFS=$as_save_IFS
17752 test -z "$as_dir" && as_dir=.
17753 for ac_exec_ext in '' $ac_executable_extensions; do
17754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17755 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17757 break 2
17759 done
17760 done
17761 IFS=$as_save_IFS
17765 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17766 if test -n "$WINDRES_FOR_TARGET"; then
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17768 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17769 else
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17771 $as_echo "no" >&6; }
17776 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17778 set dummy ${ncn_progname}; ac_word=$2
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17780 $as_echo_n "checking for $ac_word... " >&6; }
17781 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17782 $as_echo_n "(cached) " >&6
17783 else
17784 if test -n "$WINDRES_FOR_TARGET"; then
17785 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17786 else
17787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17788 for as_dir in $PATH
17790 IFS=$as_save_IFS
17791 test -z "$as_dir" && as_dir=.
17792 for ac_exec_ext in '' $ac_executable_extensions; do
17793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17794 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17796 break 2
17798 done
17799 done
17800 IFS=$as_save_IFS
17804 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17805 if test -n "$WINDRES_FOR_TARGET"; then
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17807 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17808 else
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17810 $as_echo "no" >&6; }
17815 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17816 done
17819 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17820 set dummy windres
17821 if test $build = $target ; then
17822 WINDRES_FOR_TARGET="$2"
17823 else
17824 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17826 else
17827 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17830 else
17831 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17837 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17838 if test -n "$with_build_time_tools"; then
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17840 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17841 if test -x $with_build_time_tools/windmc; then
17842 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17843 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17845 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17846 else
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17848 $as_echo "no" >&6; }
17850 elif test $build != $host && test $have_gcc_for_target = yes; then
17851 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17852 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17853 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17856 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17857 # Extract the first word of "windmc", so it can be a program name with args.
17858 set dummy windmc; ac_word=$2
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17860 $as_echo_n "checking for $ac_word... " >&6; }
17861 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17862 $as_echo_n "(cached) " >&6
17863 else
17864 case $WINDMC_FOR_TARGET in
17865 [\\/]* | ?:[\\/]*)
17866 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17870 for as_dir in $gcc_cv_tool_dirs
17872 IFS=$as_save_IFS
17873 test -z "$as_dir" && as_dir=.
17874 for ac_exec_ext in '' $ac_executable_extensions; do
17875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17876 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17878 break 2
17880 done
17881 done
17882 IFS=$as_save_IFS
17885 esac
17887 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17888 if test -n "$WINDMC_FOR_TARGET"; then
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17890 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17891 else
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17893 $as_echo "no" >&6; }
17898 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17901 if test -n "$WINDMC_FOR_TARGET"; then
17902 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17903 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17904 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17907 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17908 for ncn_progname in windmc; do
17909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17910 set dummy ${ncn_progname}; ac_word=$2
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17912 $as_echo_n "checking for $ac_word... " >&6; }
17913 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17914 $as_echo_n "(cached) " >&6
17915 else
17916 if test -n "$WINDMC_FOR_TARGET"; then
17917 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17918 else
17919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17920 for as_dir in $PATH
17922 IFS=$as_save_IFS
17923 test -z "$as_dir" && as_dir=.
17924 for ac_exec_ext in '' $ac_executable_extensions; do
17925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17926 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17928 break 2
17930 done
17931 done
17932 IFS=$as_save_IFS
17936 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17937 if test -n "$WINDMC_FOR_TARGET"; then
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17939 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17940 else
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17942 $as_echo "no" >&6; }
17946 done
17949 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17950 for ncn_progname in windmc; do
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17952 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17953 if test -x $with_build_time_tools/${ncn_progname}; then
17954 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17956 $as_echo "yes" >&6; }
17957 break
17958 else
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17960 $as_echo "no" >&6; }
17962 done
17965 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17966 for ncn_progname in windmc; do
17967 if test -n "$ncn_target_tool_prefix"; then
17968 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17969 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17971 $as_echo_n "checking for $ac_word... " >&6; }
17972 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17973 $as_echo_n "(cached) " >&6
17974 else
17975 if test -n "$WINDMC_FOR_TARGET"; then
17976 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17977 else
17978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17979 for as_dir in $PATH
17981 IFS=$as_save_IFS
17982 test -z "$as_dir" && as_dir=.
17983 for ac_exec_ext in '' $ac_executable_extensions; do
17984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17985 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17987 break 2
17989 done
17990 done
17991 IFS=$as_save_IFS
17995 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17996 if test -n "$WINDMC_FOR_TARGET"; then
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17998 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17999 else
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18001 $as_echo "no" >&6; }
18006 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18008 set dummy ${ncn_progname}; ac_word=$2
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18010 $as_echo_n "checking for $ac_word... " >&6; }
18011 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18012 $as_echo_n "(cached) " >&6
18013 else
18014 if test -n "$WINDMC_FOR_TARGET"; then
18015 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18016 else
18017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18018 for as_dir in $PATH
18020 IFS=$as_save_IFS
18021 test -z "$as_dir" && as_dir=.
18022 for ac_exec_ext in '' $ac_executable_extensions; do
18023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18024 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18026 break 2
18028 done
18029 done
18030 IFS=$as_save_IFS
18034 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18035 if test -n "$WINDMC_FOR_TARGET"; then
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18037 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18038 else
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18040 $as_echo "no" >&6; }
18045 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18046 done
18049 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18050 set dummy windmc
18051 if test $build = $target ; then
18052 WINDMC_FOR_TARGET="$2"
18053 else
18054 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
18056 else
18057 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
18060 else
18061 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18065 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
18068 $as_echo_n "checking where to find the target ar... " >&6; }
18069 if test "x${build}" != "x${host}" ; then
18070 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18071 # We already found the complete path
18072 ac_dir=`dirname $AR_FOR_TARGET`
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18074 $as_echo "pre-installed in $ac_dir" >&6; }
18075 else
18076 # Canadian cross, just use what we found
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18078 $as_echo "pre-installed" >&6; }
18080 else
18081 ok=yes
18082 case " ${configdirs} " in
18083 *" binutils "*) ;;
18084 *) ok=no ;;
18085 esac
18087 if test $ok = yes; then
18088 # An in-tree tool is available and we can use it
18089 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18091 $as_echo "just compiled" >&6; }
18092 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18093 # We already found the complete path
18094 ac_dir=`dirname $AR_FOR_TARGET`
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18096 $as_echo "pre-installed in $ac_dir" >&6; }
18097 elif test "x$target" = "x$host"; then
18098 # We can use an host tool
18099 AR_FOR_TARGET='$(AR)'
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18101 $as_echo "host tool" >&6; }
18102 else
18103 # We need a cross tool
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18105 $as_echo "pre-installed" >&6; }
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
18110 $as_echo_n "checking where to find the target as... " >&6; }
18111 if test "x${build}" != "x${host}" ; then
18112 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
18113 # We already found the complete path
18114 ac_dir=`dirname $AS_FOR_TARGET`
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18116 $as_echo "pre-installed in $ac_dir" >&6; }
18117 else
18118 # Canadian cross, just use what we found
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18120 $as_echo "pre-installed" >&6; }
18122 else
18123 ok=yes
18124 case " ${configdirs} " in
18125 *" gas "*) ;;
18126 *) ok=no ;;
18127 esac
18129 if test $ok = yes; then
18130 # An in-tree tool is available and we can use it
18131 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18133 $as_echo "just compiled" >&6; }
18134 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
18135 # We already found the complete path
18136 ac_dir=`dirname $AS_FOR_TARGET`
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18138 $as_echo "pre-installed in $ac_dir" >&6; }
18139 elif test "x$target" = "x$host"; then
18140 # We can use an host tool
18141 AS_FOR_TARGET='$(AS)'
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18143 $as_echo "host tool" >&6; }
18144 else
18145 # We need a cross tool
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18147 $as_echo "pre-installed" >&6; }
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
18152 $as_echo_n "checking where to find the target cc... " >&6; }
18153 if test "x${build}" != "x${host}" ; then
18154 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18155 # We already found the complete path
18156 ac_dir=`dirname $CC_FOR_TARGET`
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18158 $as_echo "pre-installed in $ac_dir" >&6; }
18159 else
18160 # Canadian cross, just use what we found
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18162 $as_echo "pre-installed" >&6; }
18164 else
18165 ok=yes
18166 case " ${configdirs} " in
18167 *" gcc "*) ;;
18168 *) ok=no ;;
18169 esac
18171 if test $ok = yes; then
18172 # An in-tree tool is available and we can use it
18173 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18175 $as_echo "just compiled" >&6; }
18176 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18177 # We already found the complete path
18178 ac_dir=`dirname $CC_FOR_TARGET`
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18180 $as_echo "pre-installed in $ac_dir" >&6; }
18181 elif test "x$target" = "x$host"; then
18182 # We can use an host tool
18183 CC_FOR_TARGET='$(CC)'
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18185 $as_echo "host tool" >&6; }
18186 else
18187 # We need a cross tool
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18189 $as_echo "pre-installed" >&6; }
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
18194 $as_echo_n "checking where to find the target c++... " >&6; }
18195 if test "x${build}" != "x${host}" ; then
18196 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18197 # We already found the complete path
18198 ac_dir=`dirname $CXX_FOR_TARGET`
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18200 $as_echo "pre-installed in $ac_dir" >&6; }
18201 else
18202 # Canadian cross, just use what we found
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18204 $as_echo "pre-installed" >&6; }
18206 else
18207 ok=yes
18208 case " ${configdirs} " in
18209 *" gcc "*) ;;
18210 *) ok=no ;;
18211 esac
18212 case ,${enable_languages}, in
18213 *,c++,*) ;;
18214 *) ok=no ;;
18215 esac
18216 if test $ok = yes; then
18217 # An in-tree tool is available and we can use it
18218 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'
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18220 $as_echo "just compiled" >&6; }
18221 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18222 # We already found the complete path
18223 ac_dir=`dirname $CXX_FOR_TARGET`
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18225 $as_echo "pre-installed in $ac_dir" >&6; }
18226 elif test "x$target" = "x$host"; then
18227 # We can use an host tool
18228 CXX_FOR_TARGET='$(CXX)'
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18230 $as_echo "host tool" >&6; }
18231 else
18232 # We need a cross tool
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18234 $as_echo "pre-installed" >&6; }
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
18239 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
18240 if test "x${build}" != "x${host}" ; then
18241 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18242 # We already found the complete path
18243 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18245 $as_echo "pre-installed in $ac_dir" >&6; }
18246 else
18247 # Canadian cross, just use what we found
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18249 $as_echo "pre-installed" >&6; }
18251 else
18252 ok=yes
18253 case " ${configdirs} " in
18254 *" gcc "*) ;;
18255 *) ok=no ;;
18256 esac
18257 case ,${enable_languages}, in
18258 *,c++,*) ;;
18259 *) ok=no ;;
18260 esac
18261 if test $ok = yes; then
18262 # An in-tree tool is available and we can use it
18263 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'
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18265 $as_echo "just compiled" >&6; }
18266 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18267 # We already found the complete path
18268 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18270 $as_echo "pre-installed in $ac_dir" >&6; }
18271 elif test "x$target" = "x$host"; then
18272 # We can use an host tool
18273 RAW_CXX_FOR_TARGET='$(CXX)'
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18275 $as_echo "host tool" >&6; }
18276 else
18277 # We need a cross tool
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18279 $as_echo "pre-installed" >&6; }
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
18284 $as_echo_n "checking where to find the target dlltool... " >&6; }
18285 if test "x${build}" != "x${host}" ; then
18286 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18287 # We already found the complete path
18288 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18290 $as_echo "pre-installed in $ac_dir" >&6; }
18291 else
18292 # Canadian cross, just use what we found
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18294 $as_echo "pre-installed" >&6; }
18296 else
18297 ok=yes
18298 case " ${configdirs} " in
18299 *" binutils "*) ;;
18300 *) ok=no ;;
18301 esac
18303 if test $ok = yes; then
18304 # An in-tree tool is available and we can use it
18305 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18307 $as_echo "just compiled" >&6; }
18308 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18309 # We already found the complete path
18310 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18312 $as_echo "pre-installed in $ac_dir" >&6; }
18313 elif test "x$target" = "x$host"; then
18314 # We can use an host tool
18315 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18317 $as_echo "host tool" >&6; }
18318 else
18319 # We need a cross tool
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18321 $as_echo "pre-installed" >&6; }
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
18326 $as_echo_n "checking where to find the target dsymutil... " >&6; }
18327 if test "x${build}" != "x${host}" ; then
18328 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18329 # We already found the complete path
18330 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18332 $as_echo "pre-installed in $ac_dir" >&6; }
18333 else
18334 # Canadian cross, just use what we found
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18336 $as_echo "pre-installed" >&6; }
18338 else
18339 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18340 # We already found the complete path
18341 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18343 $as_echo "pre-installed in $ac_dir" >&6; }
18344 elif test "x$target" = "x$host"; then
18345 # We can use an host tool
18346 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18348 $as_echo "host tool" >&6; }
18349 else
18350 # We need a cross tool
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18352 $as_echo "pre-installed" >&6; }
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
18357 $as_echo_n "checking where to find the target gcc... " >&6; }
18358 if test "x${build}" != "x${host}" ; then
18359 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18360 # We already found the complete path
18361 ac_dir=`dirname $GCC_FOR_TARGET`
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18363 $as_echo "pre-installed in $ac_dir" >&6; }
18364 else
18365 # Canadian cross, just use what we found
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18367 $as_echo "pre-installed" >&6; }
18369 else
18370 ok=yes
18371 case " ${configdirs} " in
18372 *" gcc "*) ;;
18373 *) ok=no ;;
18374 esac
18376 if test $ok = yes; then
18377 # An in-tree tool is available and we can use it
18378 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18380 $as_echo "just compiled" >&6; }
18381 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18382 # We already found the complete path
18383 ac_dir=`dirname $GCC_FOR_TARGET`
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18385 $as_echo "pre-installed in $ac_dir" >&6; }
18386 elif test "x$target" = "x$host"; then
18387 # We can use an host tool
18388 GCC_FOR_TARGET='$()'
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18390 $as_echo "host tool" >&6; }
18391 else
18392 # We need a cross tool
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18394 $as_echo "pre-installed" >&6; }
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
18399 $as_echo_n "checking where to find the target gfortran... " >&6; }
18400 if test "x${build}" != "x${host}" ; then
18401 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18402 # We already found the complete path
18403 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18405 $as_echo "pre-installed in $ac_dir" >&6; }
18406 else
18407 # Canadian cross, just use what we found
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18409 $as_echo "pre-installed" >&6; }
18411 else
18412 ok=yes
18413 case " ${configdirs} " in
18414 *" gcc "*) ;;
18415 *) ok=no ;;
18416 esac
18417 case ,${enable_languages}, in
18418 *,fortran,*) ;;
18419 *) ok=no ;;
18420 esac
18421 if test $ok = yes; then
18422 # An in-tree tool is available and we can use it
18423 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18425 $as_echo "just compiled" >&6; }
18426 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18427 # We already found the complete path
18428 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18430 $as_echo "pre-installed in $ac_dir" >&6; }
18431 elif test "x$target" = "x$host"; then
18432 # We can use an host tool
18433 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18435 $as_echo "host tool" >&6; }
18436 else
18437 # We need a cross tool
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18439 $as_echo "pre-installed" >&6; }
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
18444 $as_echo_n "checking where to find the target gccgo... " >&6; }
18445 if test "x${build}" != "x${host}" ; then
18446 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18447 # We already found the complete path
18448 ac_dir=`dirname $GOC_FOR_TARGET`
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18450 $as_echo "pre-installed in $ac_dir" >&6; }
18451 else
18452 # Canadian cross, just use what we found
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18454 $as_echo "pre-installed" >&6; }
18456 else
18457 ok=yes
18458 case " ${configdirs} " in
18459 *" gcc "*) ;;
18460 *) ok=no ;;
18461 esac
18462 case ,${enable_languages}, in
18463 *,go,*) ;;
18464 *) ok=no ;;
18465 esac
18466 if test $ok = yes; then
18467 # An in-tree tool is available and we can use it
18468 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18470 $as_echo "just compiled" >&6; }
18471 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18472 # We already found the complete path
18473 ac_dir=`dirname $GOC_FOR_TARGET`
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18475 $as_echo "pre-installed in $ac_dir" >&6; }
18476 elif test "x$target" = "x$host"; then
18477 # We can use an host tool
18478 GOC_FOR_TARGET='$(GOC)'
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18480 $as_echo "host tool" >&6; }
18481 else
18482 # We need a cross tool
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18484 $as_echo "pre-installed" >&6; }
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18489 $as_echo_n "checking where to find the target gdc... " >&6; }
18490 if test "x${build}" != "x${host}" ; then
18491 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18492 # We already found the complete path
18493 ac_dir=`dirname $GDC_FOR_TARGET`
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18495 $as_echo "pre-installed in $ac_dir" >&6; }
18496 else
18497 # Canadian cross, just use what we found
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18499 $as_echo "pre-installed" >&6; }
18501 else
18502 ok=yes
18503 case " ${configdirs} " in
18504 *" gcc "*) ;;
18505 *) ok=no ;;
18506 esac
18507 case ,${enable_languages}, in
18508 *,d,*) ;;
18509 *) ok=no ;;
18510 esac
18511 if test $ok = yes; then
18512 # An in-tree tool is available and we can use it
18513 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18515 $as_echo "just compiled" >&6; }
18516 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18517 # We already found the complete path
18518 ac_dir=`dirname $GDC_FOR_TARGET`
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18520 $as_echo "pre-installed in $ac_dir" >&6; }
18521 elif test "x$target" = "x$host"; then
18522 # We can use an host tool
18523 GDC_FOR_TARGET='$(GDC)'
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18525 $as_echo "host tool" >&6; }
18526 else
18527 # We need a cross tool
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18529 $as_echo "pre-installed" >&6; }
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18534 $as_echo_n "checking where to find the target gm2... " >&6; }
18535 if test "x${build}" != "x${host}" ; then
18536 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18537 # We already found the complete path
18538 ac_dir=`dirname $GM2_FOR_TARGET`
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18540 $as_echo "pre-installed in $ac_dir" >&6; }
18541 else
18542 # Canadian cross, just use what we found
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18544 $as_echo "pre-installed" >&6; }
18546 else
18547 ok=yes
18548 case " ${configdirs} " in
18549 *" gcc "*) ;;
18550 *) ok=no ;;
18551 esac
18552 case ,${enable_languages}, in
18553 *,m2,*) ;;
18554 *) ok=no ;;
18555 esac
18556 if test $ok = yes; then
18557 # An in-tree tool is available and we can use it
18558 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18560 $as_echo "just compiled" >&6; }
18561 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18562 # We already found the complete path
18563 ac_dir=`dirname $GM2_FOR_TARGET`
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18565 $as_echo "pre-installed in $ac_dir" >&6; }
18566 elif test "x$target" = "x$host"; then
18567 # We can use an host tool
18568 GM2_FOR_TARGET='$(GM2)'
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18570 $as_echo "host tool" >&6; }
18571 else
18572 # We need a cross tool
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18574 $as_echo "pre-installed" >&6; }
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18579 $as_echo_n "checking where to find the target ld... " >&6; }
18580 if test "x${build}" != "x${host}" ; then
18581 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18582 # We already found the complete path
18583 ac_dir=`dirname $LD_FOR_TARGET`
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18585 $as_echo "pre-installed in $ac_dir" >&6; }
18586 else
18587 # Canadian cross, just use what we found
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18589 $as_echo "pre-installed" >&6; }
18591 else
18592 ok=yes
18593 case " ${configdirs} " in
18594 *" ld "*) ;;
18595 *) ok=no ;;
18596 esac
18598 if test $ok = yes; then
18599 # An in-tree tool is available and we can use it
18600 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18602 $as_echo "just compiled" >&6; }
18603 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18604 # We already found the complete path
18605 ac_dir=`dirname $LD_FOR_TARGET`
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18607 $as_echo "pre-installed in $ac_dir" >&6; }
18608 elif test "x$target" = "x$host"; then
18609 # We can use an host tool
18610 LD_FOR_TARGET='$(LD)'
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18612 $as_echo "host tool" >&6; }
18613 else
18614 # We need a cross tool
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18616 $as_echo "pre-installed" >&6; }
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18621 $as_echo_n "checking where to find the target lipo... " >&6; }
18622 if test "x${build}" != "x${host}" ; then
18623 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18624 # We already found the complete path
18625 ac_dir=`dirname $LIPO_FOR_TARGET`
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18627 $as_echo "pre-installed in $ac_dir" >&6; }
18628 else
18629 # Canadian cross, just use what we found
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18631 $as_echo "pre-installed" >&6; }
18633 else
18634 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18635 # We already found the complete path
18636 ac_dir=`dirname $LIPO_FOR_TARGET`
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18638 $as_echo "pre-installed in $ac_dir" >&6; }
18639 elif test "x$target" = "x$host"; then
18640 # We can use an host tool
18641 LIPO_FOR_TARGET='$(LIPO)'
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18643 $as_echo "host tool" >&6; }
18644 else
18645 # We need a cross tool
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18647 $as_echo "pre-installed" >&6; }
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18652 $as_echo_n "checking where to find the target nm... " >&6; }
18653 if test "x${build}" != "x${host}" ; then
18654 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18655 # We already found the complete path
18656 ac_dir=`dirname $NM_FOR_TARGET`
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18658 $as_echo "pre-installed in $ac_dir" >&6; }
18659 else
18660 # Canadian cross, just use what we found
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18662 $as_echo "pre-installed" >&6; }
18664 else
18665 ok=yes
18666 case " ${configdirs} " in
18667 *" binutils "*) ;;
18668 *) ok=no ;;
18669 esac
18671 if test $ok = yes; then
18672 # An in-tree tool is available and we can use it
18673 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18675 $as_echo "just compiled" >&6; }
18676 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18677 # We already found the complete path
18678 ac_dir=`dirname $NM_FOR_TARGET`
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18680 $as_echo "pre-installed in $ac_dir" >&6; }
18681 elif test "x$target" = "x$host"; then
18682 # We can use an host tool
18683 NM_FOR_TARGET='$(NM)'
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18685 $as_echo "host tool" >&6; }
18686 else
18687 # We need a cross tool
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18689 $as_echo "pre-installed" >&6; }
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18694 $as_echo_n "checking where to find the target objcopy... " >&6; }
18695 if test "x${build}" != "x${host}" ; then
18696 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18697 # We already found the complete path
18698 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18700 $as_echo "pre-installed in $ac_dir" >&6; }
18701 else
18702 # Canadian cross, just use what we found
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18704 $as_echo "pre-installed" >&6; }
18706 else
18707 ok=yes
18708 case " ${configdirs} " in
18709 *" binutils "*) ;;
18710 *) ok=no ;;
18711 esac
18713 if test $ok = yes; then
18714 # An in-tree tool is available and we can use it
18715 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18717 $as_echo "just compiled" >&6; }
18718 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18719 # We already found the complete path
18720 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18722 $as_echo "pre-installed in $ac_dir" >&6; }
18723 elif test "x$target" = "x$host"; then
18724 # We can use an host tool
18725 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18727 $as_echo "host tool" >&6; }
18728 else
18729 # We need a cross tool
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18731 $as_echo "pre-installed" >&6; }
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18736 $as_echo_n "checking where to find the target objdump... " >&6; }
18737 if test "x${build}" != "x${host}" ; then
18738 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18739 # We already found the complete path
18740 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18742 $as_echo "pre-installed in $ac_dir" >&6; }
18743 else
18744 # Canadian cross, just use what we found
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18746 $as_echo "pre-installed" >&6; }
18748 else
18749 ok=yes
18750 case " ${configdirs} " in
18751 *" binutils "*) ;;
18752 *) ok=no ;;
18753 esac
18755 if test $ok = yes; then
18756 # An in-tree tool is available and we can use it
18757 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18759 $as_echo "just compiled" >&6; }
18760 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18761 # We already found the complete path
18762 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18764 $as_echo "pre-installed in $ac_dir" >&6; }
18765 elif test "x$target" = "x$host"; then
18766 # We can use an host tool
18767 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18769 $as_echo "host tool" >&6; }
18770 else
18771 # We need a cross tool
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18773 $as_echo "pre-installed" >&6; }
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18778 $as_echo_n "checking where to find the target otool... " >&6; }
18779 if test "x${build}" != "x${host}" ; then
18780 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18781 # We already found the complete path
18782 ac_dir=`dirname $OTOOL_FOR_TARGET`
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18784 $as_echo "pre-installed in $ac_dir" >&6; }
18785 else
18786 # Canadian cross, just use what we found
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18788 $as_echo "pre-installed" >&6; }
18790 else
18791 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18792 # We already found the complete path
18793 ac_dir=`dirname $OTOOL_FOR_TARGET`
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18795 $as_echo "pre-installed in $ac_dir" >&6; }
18796 elif test "x$target" = "x$host"; then
18797 # We can use an host tool
18798 OTOOL_FOR_TARGET='$(OTOOL)'
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18800 $as_echo "host tool" >&6; }
18801 else
18802 # We need a cross tool
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18804 $as_echo "pre-installed" >&6; }
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18809 $as_echo_n "checking where to find the target ranlib... " >&6; }
18810 if test "x${build}" != "x${host}" ; then
18811 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18812 # We already found the complete path
18813 ac_dir=`dirname $RANLIB_FOR_TARGET`
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18815 $as_echo "pre-installed in $ac_dir" >&6; }
18816 else
18817 # Canadian cross, just use what we found
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18819 $as_echo "pre-installed" >&6; }
18821 else
18822 ok=yes
18823 case " ${configdirs} " in
18824 *" binutils "*) ;;
18825 *) ok=no ;;
18826 esac
18828 if test $ok = yes; then
18829 # An in-tree tool is available and we can use it
18830 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18832 $as_echo "just compiled" >&6; }
18833 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18834 # We already found the complete path
18835 ac_dir=`dirname $RANLIB_FOR_TARGET`
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18837 $as_echo "pre-installed in $ac_dir" >&6; }
18838 elif test "x$target" = "x$host"; then
18839 # We can use an host tool
18840 RANLIB_FOR_TARGET='$(RANLIB)'
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18842 $as_echo "host tool" >&6; }
18843 else
18844 # We need a cross tool
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18846 $as_echo "pre-installed" >&6; }
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18851 $as_echo_n "checking where to find the target readelf... " >&6; }
18852 if test "x${build}" != "x${host}" ; then
18853 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18854 # We already found the complete path
18855 ac_dir=`dirname $READELF_FOR_TARGET`
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18857 $as_echo "pre-installed in $ac_dir" >&6; }
18858 else
18859 # Canadian cross, just use what we found
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18861 $as_echo "pre-installed" >&6; }
18863 else
18864 ok=yes
18865 case " ${configdirs} " in
18866 *" binutils "*) ;;
18867 *) ok=no ;;
18868 esac
18870 if test $ok = yes; then
18871 # An in-tree tool is available and we can use it
18872 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18874 $as_echo "just compiled" >&6; }
18875 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18876 # We already found the complete path
18877 ac_dir=`dirname $READELF_FOR_TARGET`
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18879 $as_echo "pre-installed in $ac_dir" >&6; }
18880 elif test "x$target" = "x$host"; then
18881 # We can use an host tool
18882 READELF_FOR_TARGET='$(READELF)'
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18884 $as_echo "host tool" >&6; }
18885 else
18886 # We need a cross tool
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18888 $as_echo "pre-installed" >&6; }
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18893 $as_echo_n "checking where to find the target strip... " >&6; }
18894 if test "x${build}" != "x${host}" ; then
18895 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18896 # We already found the complete path
18897 ac_dir=`dirname $STRIP_FOR_TARGET`
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18899 $as_echo "pre-installed in $ac_dir" >&6; }
18900 else
18901 # Canadian cross, just use what we found
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18903 $as_echo "pre-installed" >&6; }
18905 else
18906 ok=yes
18907 case " ${configdirs} " in
18908 *" binutils "*) ;;
18909 *) ok=no ;;
18910 esac
18912 if test $ok = yes; then
18913 # An in-tree tool is available and we can use it
18914 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18916 $as_echo "just compiled" >&6; }
18917 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18918 # We already found the complete path
18919 ac_dir=`dirname $STRIP_FOR_TARGET`
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18921 $as_echo "pre-installed in $ac_dir" >&6; }
18922 elif test "x$target" = "x$host"; then
18923 # We can use an host tool
18924 STRIP_FOR_TARGET='$(STRIP)'
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18926 $as_echo "host tool" >&6; }
18927 else
18928 # We need a cross tool
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18930 $as_echo "pre-installed" >&6; }
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18935 $as_echo_n "checking where to find the target windres... " >&6; }
18936 if test "x${build}" != "x${host}" ; then
18937 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18938 # We already found the complete path
18939 ac_dir=`dirname $WINDRES_FOR_TARGET`
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18941 $as_echo "pre-installed in $ac_dir" >&6; }
18942 else
18943 # Canadian cross, just use what we found
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18945 $as_echo "pre-installed" >&6; }
18947 else
18948 ok=yes
18949 case " ${configdirs} " in
18950 *" binutils "*) ;;
18951 *) ok=no ;;
18952 esac
18954 if test $ok = yes; then
18955 # An in-tree tool is available and we can use it
18956 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18958 $as_echo "just compiled" >&6; }
18959 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18960 # We already found the complete path
18961 ac_dir=`dirname $WINDRES_FOR_TARGET`
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18963 $as_echo "pre-installed in $ac_dir" >&6; }
18964 elif test "x$target" = "x$host"; then
18965 # We can use an host tool
18966 WINDRES_FOR_TARGET='$(WINDRES)'
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18968 $as_echo "host tool" >&6; }
18969 else
18970 # We need a cross tool
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18972 $as_echo "pre-installed" >&6; }
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18977 $as_echo_n "checking where to find the target windmc... " >&6; }
18978 if test "x${build}" != "x${host}" ; then
18979 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18980 # We already found the complete path
18981 ac_dir=`dirname $WINDMC_FOR_TARGET`
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18983 $as_echo "pre-installed in $ac_dir" >&6; }
18984 else
18985 # Canadian cross, just use what we found
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18987 $as_echo "pre-installed" >&6; }
18989 else
18990 ok=yes
18991 case " ${configdirs} " in
18992 *" binutils "*) ;;
18993 *) ok=no ;;
18994 esac
18996 if test $ok = yes; then
18997 # An in-tree tool is available and we can use it
18998 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19000 $as_echo "just compiled" >&6; }
19001 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19002 # We already found the complete path
19003 ac_dir=`dirname $WINDMC_FOR_TARGET`
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19005 $as_echo "pre-installed in $ac_dir" >&6; }
19006 elif test "x$target" = "x$host"; then
19007 # We can use an host tool
19008 WINDMC_FOR_TARGET='$(WINDMC)'
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19010 $as_echo "host tool" >&6; }
19011 else
19012 # We need a cross tool
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19014 $as_echo "pre-installed" >&6; }
19022 # Certain tools may need extra flags.
19023 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
19024 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
19025 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
19027 # When building target libraries, except in a Canadian cross, we use
19028 # the same toolchain as the compiler we just built.
19029 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
19030 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
19031 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
19032 if test $host = $build; then
19033 case " $configdirs " in
19034 *" gcc "*)
19035 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
19036 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
19037 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
19039 esac
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
19047 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19048 # Check whether --enable-maintainer-mode was given.
19049 if test "${enable_maintainer_mode+set}" = set; then :
19050 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19051 else
19052 USE_MAINTAINER_MODE=no
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
19056 $as_echo "$USE_MAINTAINER_MODE" >&6; }
19059 if test "$USE_MAINTAINER_MODE" = yes; then
19060 MAINTAINER_MODE_TRUE=
19061 MAINTAINER_MODE_FALSE='#'
19062 else
19063 MAINTAINER_MODE_TRUE='#'
19064 MAINTAINER_MODE_FALSE=
19066 MAINT=$MAINTAINER_MODE_TRUE
19068 # ---------------------
19069 # GCC bootstrap support
19070 # ---------------------
19072 # Stage specific cflags for build.
19073 stage1_cflags="-g"
19074 case $build in
19075 vax-*-*)
19076 case ${GCC} in
19077 yes) stage1_cflags="-g -Wa,-J" ;;
19078 *) stage1_cflags="-g -J" ;;
19079 esac ;;
19080 esac
19084 # Enable --enable-checking in stage1 of the compiler.
19085 # Check whether --enable-stage1-checking was given.
19086 if test "${enable_stage1_checking+set}" = set; then :
19087 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
19088 else
19089 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
19090 # For --disable-checking or implicit --enable-checking=release, avoid
19091 # setting --enable-checking=gc in the default stage1 checking for LTO
19092 # bootstraps. See PR62077.
19093 case $BUILD_CONFIG in
19094 *lto*)
19095 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
19097 stage1_checking=--enable-checking=yes,types;;
19098 esac
19099 if test "x$enable_checking" = x && \
19100 test -d ${srcdir}/gcc && \
19101 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
19102 stage1_checking=--enable-checking=yes,types,extra
19104 else
19105 stage1_checking=--enable-checking=$enable_checking,types
19111 # Enable -Werror in bootstrap stage2 and later.
19112 # Check whether --enable-werror was given.
19113 if test "${enable_werror+set}" = set; then :
19114 enableval=$enable_werror;
19115 case ${enable_werror} in
19116 yes) stage2_werror_flag="--enable-werror-always" ;;
19117 *) stage2_werror_flag="" ;;
19118 esac
19120 else
19122 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
19123 case $BUILD_CONFIG in
19124 bootstrap-debug)
19125 stage2_werror_flag="--enable-werror-always" ;;
19127 stage2_werror_flag="--enable-werror-always" ;;
19128 esac
19136 # Specify what files to not compare during bootstrap.
19138 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
19139 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
19140 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
19141 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
19142 case "$target" in
19143 hppa*64*-*-hpux*) ;;
19144 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
19145 esac
19148 ac_config_files="$ac_config_files Makefile"
19150 cat >confcache <<\_ACEOF
19151 # This file is a shell script that caches the results of configure
19152 # tests run on this system so they can be shared between configure
19153 # scripts and configure runs, see configure's option --config-cache.
19154 # It is not useful on other systems. If it contains results you don't
19155 # want to keep, you may remove or edit it.
19157 # config.status only pays attention to the cache file if you give it
19158 # the --recheck option to rerun configure.
19160 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19161 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19162 # following values.
19164 _ACEOF
19166 # The following way of writing the cache mishandles newlines in values,
19167 # but we know of no workaround that is simple, portable, and efficient.
19168 # So, we kill variables containing newlines.
19169 # Ultrix sh set writes to stderr and can't be redirected directly,
19170 # and sets the high bit in the cache file unless we assign to the vars.
19172 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19173 eval ac_val=\$$ac_var
19174 case $ac_val in #(
19175 *${as_nl}*)
19176 case $ac_var in #(
19177 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19178 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19179 esac
19180 case $ac_var in #(
19181 _ | IFS | as_nl) ;; #(
19182 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19183 *) { eval $ac_var=; unset $ac_var;} ;;
19184 esac ;;
19185 esac
19186 done
19188 (set) 2>&1 |
19189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19190 *${as_nl}ac_space=\ *)
19191 # `set' does not quote correctly, so add quotes: double-quote
19192 # substitution turns \\\\ into \\, and sed turns \\ into \.
19193 sed -n \
19194 "s/'/'\\\\''/g;
19195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19196 ;; #(
19198 # `set' quotes correctly as required by POSIX, so do not add quotes.
19199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19201 esac |
19202 sort
19204 sed '
19205 /^ac_cv_env_/b end
19206 t clear
19207 :clear
19208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19209 t end
19210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19211 :end' >>confcache
19212 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19213 if test -w "$cache_file"; then
19214 if test "x$cache_file" != "x/dev/null"; then
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19216 $as_echo "$as_me: updating cache $cache_file" >&6;}
19217 if test ! -f "$cache_file" || test -h "$cache_file"; then
19218 cat confcache >"$cache_file"
19219 else
19220 case $cache_file in #(
19221 */* | ?:*)
19222 mv -f confcache "$cache_file"$$ &&
19223 mv -f "$cache_file"$$ "$cache_file" ;; #(
19225 mv -f confcache "$cache_file" ;;
19226 esac
19229 else
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19231 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19234 rm -f confcache
19236 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19237 # Let make expand exec_prefix.
19238 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19240 # Transform confdefs.h into DEFS.
19241 # Protect against shell expansion while executing Makefile rules.
19242 # Protect against Makefile macro expansion.
19244 # If the first sed substitution is executed (which looks for macros that
19245 # take arguments), then branch to the quote section. Otherwise,
19246 # look for a macro that doesn't take arguments.
19247 ac_script='
19248 :mline
19249 /\\$/{
19251 s,\\\n,,
19252 b mline
19254 t clear
19255 :clear
19256 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19257 t quote
19258 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19259 t quote
19260 b any
19261 :quote
19262 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19263 s/\[/\\&/g
19264 s/\]/\\&/g
19265 s/\$/$$/g
19267 :any
19270 s/^\n//
19271 s/\n/ /g
19275 DEFS=`sed -n "$ac_script" confdefs.h`
19278 ac_libobjs=
19279 ac_ltlibobjs=
19281 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19282 # 1. Remove the extension, and $U if already installed.
19283 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19284 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19285 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19286 # will be set to the directory where LIBOBJS objects are built.
19287 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19288 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19289 done
19290 LIBOBJS=$ac_libobjs
19292 LTLIBOBJS=$ac_ltlibobjs
19296 : "${CONFIG_STATUS=./config.status}"
19297 ac_write_fail=0
19298 ac_clean_files_save=$ac_clean_files
19299 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19301 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19302 as_write_fail=0
19303 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19304 #! $SHELL
19305 # Generated by $as_me.
19306 # Run this file to recreate the current configuration.
19307 # Compiler output produced by configure, useful for debugging
19308 # configure, is in config.log if it exists.
19310 debug=false
19311 ac_cs_recheck=false
19312 ac_cs_silent=false
19314 SHELL=\${CONFIG_SHELL-$SHELL}
19315 export SHELL
19316 _ASEOF
19317 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19318 ## -------------------- ##
19319 ## M4sh Initialization. ##
19320 ## -------------------- ##
19322 # Be more Bourne compatible
19323 DUALCASE=1; export DUALCASE # for MKS sh
19324 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19325 emulate sh
19326 NULLCMD=:
19327 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19328 # is contrary to our usage. Disable this feature.
19329 alias -g '${1+"$@"}'='"$@"'
19330 setopt NO_GLOB_SUBST
19331 else
19332 case `(set -o) 2>/dev/null` in #(
19333 *posix*) :
19334 set -o posix ;; #(
19335 *) :
19337 esac
19341 as_nl='
19343 export as_nl
19344 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19345 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19346 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19347 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19348 # Prefer a ksh shell builtin over an external printf program on Solaris,
19349 # but without wasting forks for bash or zsh.
19350 if test -z "$BASH_VERSION$ZSH_VERSION" \
19351 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19352 as_echo='print -r --'
19353 as_echo_n='print -rn --'
19354 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19355 as_echo='printf %s\n'
19356 as_echo_n='printf %s'
19357 else
19358 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19359 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19360 as_echo_n='/usr/ucb/echo -n'
19361 else
19362 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19363 as_echo_n_body='eval
19364 arg=$1;
19365 case $arg in #(
19366 *"$as_nl"*)
19367 expr "X$arg" : "X\\(.*\\)$as_nl";
19368 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19369 esac;
19370 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19372 export as_echo_n_body
19373 as_echo_n='sh -c $as_echo_n_body as_echo'
19375 export as_echo_body
19376 as_echo='sh -c $as_echo_body as_echo'
19379 # The user is always right.
19380 if test "${PATH_SEPARATOR+set}" != set; then
19381 PATH_SEPARATOR=:
19382 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19383 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19384 PATH_SEPARATOR=';'
19389 # IFS
19390 # We need space, tab and new line, in precisely that order. Quoting is
19391 # there to prevent editors from complaining about space-tab.
19392 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19393 # splitting by setting IFS to empty value.)
19394 IFS=" "" $as_nl"
19396 # Find who we are. Look in the path if we contain no directory separator.
19397 as_myself=
19398 case $0 in #((
19399 *[\\/]* ) as_myself=$0 ;;
19400 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19401 for as_dir in $PATH
19403 IFS=$as_save_IFS
19404 test -z "$as_dir" && as_dir=.
19405 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19406 done
19407 IFS=$as_save_IFS
19410 esac
19411 # We did not find ourselves, most probably we were run as `sh COMMAND'
19412 # in which case we are not to be found in the path.
19413 if test "x$as_myself" = x; then
19414 as_myself=$0
19416 if test ! -f "$as_myself"; then
19417 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19418 exit 1
19421 # Unset variables that we do not need and which cause bugs (e.g. in
19422 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19423 # suppresses any "Segmentation fault" message there. '((' could
19424 # trigger a bug in pdksh 5.2.14.
19425 for as_var in BASH_ENV ENV MAIL MAILPATH
19426 do eval test x\${$as_var+set} = xset \
19427 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19428 done
19429 PS1='$ '
19430 PS2='> '
19431 PS4='+ '
19433 # NLS nuisances.
19434 LC_ALL=C
19435 export LC_ALL
19436 LANGUAGE=C
19437 export LANGUAGE
19439 # CDPATH.
19440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19443 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19444 # ----------------------------------------
19445 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19446 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19447 # script with STATUS, using 1 if that was 0.
19448 as_fn_error ()
19450 as_status=$1; test $as_status -eq 0 && as_status=1
19451 if test "$4"; then
19452 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19453 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19455 $as_echo "$as_me: error: $2" >&2
19456 as_fn_exit $as_status
19457 } # as_fn_error
19460 # as_fn_set_status STATUS
19461 # -----------------------
19462 # Set $? to STATUS, without forking.
19463 as_fn_set_status ()
19465 return $1
19466 } # as_fn_set_status
19468 # as_fn_exit STATUS
19469 # -----------------
19470 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19471 as_fn_exit ()
19473 set +e
19474 as_fn_set_status $1
19475 exit $1
19476 } # as_fn_exit
19478 # as_fn_unset VAR
19479 # ---------------
19480 # Portably unset VAR.
19481 as_fn_unset ()
19483 { eval $1=; unset $1;}
19485 as_unset=as_fn_unset
19486 # as_fn_append VAR VALUE
19487 # ----------------------
19488 # Append the text in VALUE to the end of the definition contained in VAR. Take
19489 # advantage of any shell optimizations that allow amortized linear growth over
19490 # repeated appends, instead of the typical quadratic growth present in naive
19491 # implementations.
19492 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19493 eval 'as_fn_append ()
19495 eval $1+=\$2
19497 else
19498 as_fn_append ()
19500 eval $1=\$$1\$2
19502 fi # as_fn_append
19504 # as_fn_arith ARG...
19505 # ------------------
19506 # Perform arithmetic evaluation on the ARGs, and store the result in the
19507 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19508 # must be portable across $(()) and expr.
19509 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19510 eval 'as_fn_arith ()
19512 as_val=$(( $* ))
19514 else
19515 as_fn_arith ()
19517 as_val=`expr "$@" || test $? -eq 1`
19519 fi # as_fn_arith
19522 if expr a : '\(a\)' >/dev/null 2>&1 &&
19523 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19524 as_expr=expr
19525 else
19526 as_expr=false
19529 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19530 as_basename=basename
19531 else
19532 as_basename=false
19535 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19536 as_dirname=dirname
19537 else
19538 as_dirname=false
19541 as_me=`$as_basename -- "$0" ||
19542 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19543 X"$0" : 'X\(//\)$' \| \
19544 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19545 $as_echo X/"$0" |
19546 sed '/^.*\/\([^/][^/]*\)\/*$/{
19547 s//\1/
19550 /^X\/\(\/\/\)$/{
19551 s//\1/
19554 /^X\/\(\/\).*/{
19555 s//\1/
19558 s/.*/./; q'`
19560 # Avoid depending upon Character Ranges.
19561 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19562 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19563 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19564 as_cr_digits='0123456789'
19565 as_cr_alnum=$as_cr_Letters$as_cr_digits
19567 ECHO_C= ECHO_N= ECHO_T=
19568 case `echo -n x` in #(((((
19569 -n*)
19570 case `echo 'xy\c'` in
19571 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19572 xy) ECHO_C='\c';;
19573 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19574 ECHO_T=' ';;
19575 esac;;
19577 ECHO_N='-n';;
19578 esac
19580 rm -f conf$$ conf$$.exe conf$$.file
19581 if test -d conf$$.dir; then
19582 rm -f conf$$.dir/conf$$.file
19583 else
19584 rm -f conf$$.dir
19585 mkdir conf$$.dir 2>/dev/null
19587 if (echo >conf$$.file) 2>/dev/null; then
19588 if ln -s conf$$.file conf$$ 2>/dev/null; then
19589 as_ln_s='ln -s'
19590 # ... but there are two gotchas:
19591 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19592 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19593 # In both cases, we have to default to `cp -pR'.
19594 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19595 as_ln_s='cp -pR'
19596 elif ln conf$$.file conf$$ 2>/dev/null; then
19597 as_ln_s=ln
19598 else
19599 as_ln_s='cp -pR'
19601 else
19602 as_ln_s='cp -pR'
19604 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19605 rmdir conf$$.dir 2>/dev/null
19608 # as_fn_mkdir_p
19609 # -------------
19610 # Create "$as_dir" as a directory, including parents if necessary.
19611 as_fn_mkdir_p ()
19614 case $as_dir in #(
19615 -*) as_dir=./$as_dir;;
19616 esac
19617 test -d "$as_dir" || eval $as_mkdir_p || {
19618 as_dirs=
19619 while :; do
19620 case $as_dir in #(
19621 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19622 *) as_qdir=$as_dir;;
19623 esac
19624 as_dirs="'$as_qdir' $as_dirs"
19625 as_dir=`$as_dirname -- "$as_dir" ||
19626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19627 X"$as_dir" : 'X\(//\)[^/]' \| \
19628 X"$as_dir" : 'X\(//\)$' \| \
19629 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19630 $as_echo X"$as_dir" |
19631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19632 s//\1/
19635 /^X\(\/\/\)[^/].*/{
19636 s//\1/
19639 /^X\(\/\/\)$/{
19640 s//\1/
19643 /^X\(\/\).*/{
19644 s//\1/
19647 s/.*/./; q'`
19648 test -d "$as_dir" && break
19649 done
19650 test -z "$as_dirs" || eval "mkdir $as_dirs"
19651 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19654 } # as_fn_mkdir_p
19655 if mkdir -p . 2>/dev/null; then
19656 as_mkdir_p='mkdir -p "$as_dir"'
19657 else
19658 test -d ./-p && rmdir ./-p
19659 as_mkdir_p=false
19663 # as_fn_executable_p FILE
19664 # -----------------------
19665 # Test if FILE is an executable regular file.
19666 as_fn_executable_p ()
19668 test -f "$1" && test -x "$1"
19669 } # as_fn_executable_p
19670 as_test_x='test -x'
19671 as_executable_p=as_fn_executable_p
19673 # Sed expression to map a string onto a valid CPP name.
19674 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19676 # Sed expression to map a string onto a valid variable name.
19677 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19680 exec 6>&1
19681 ## ----------------------------------- ##
19682 ## Main body of $CONFIG_STATUS script. ##
19683 ## ----------------------------------- ##
19684 _ASEOF
19685 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19688 # Save the log message, to keep $0 and so on meaningful, and to
19689 # report actual input values of CONFIG_FILES etc. instead of their
19690 # values after options handling.
19691 ac_log="
19692 This file was extended by $as_me, which was
19693 generated by GNU Autoconf 2.69. Invocation command line was
19695 CONFIG_FILES = $CONFIG_FILES
19696 CONFIG_HEADERS = $CONFIG_HEADERS
19697 CONFIG_LINKS = $CONFIG_LINKS
19698 CONFIG_COMMANDS = $CONFIG_COMMANDS
19699 $ $0 $@
19701 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19704 _ACEOF
19706 case $ac_config_files in *"
19707 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19708 esac
19712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19713 # Files that config.status was made for.
19714 config_files="$ac_config_files"
19716 _ACEOF
19718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19719 ac_cs_usage="\
19720 \`$as_me' instantiates files and other configuration actions
19721 from templates according to the current configuration. Unless the files
19722 and actions are specified as TAGs, all are instantiated by default.
19724 Usage: $0 [OPTION]... [TAG]...
19726 -h, --help print this help, then exit
19727 -V, --version print version number and configuration settings, then exit
19728 --config print configuration, then exit
19729 -q, --quiet, --silent
19730 do not print progress messages
19731 -d, --debug don't remove temporary files
19732 --recheck update $as_me by reconfiguring in the same conditions
19733 --file=FILE[:TEMPLATE]
19734 instantiate the configuration file FILE
19736 Configuration files:
19737 $config_files
19739 Report bugs to the package provider."
19741 _ACEOF
19742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19743 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19744 ac_cs_version="\\
19745 config.status
19746 configured by $0, generated by GNU Autoconf 2.69,
19747 with options \\"\$ac_cs_config\\"
19749 Copyright (C) 2012 Free Software Foundation, Inc.
19750 This config.status script is free software; the Free Software Foundation
19751 gives unlimited permission to copy, distribute and modify it."
19753 ac_pwd='$ac_pwd'
19754 srcdir='$srcdir'
19755 INSTALL='$INSTALL'
19756 AWK='$AWK'
19757 test -n "\$AWK" || AWK=awk
19758 _ACEOF
19760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19761 # The default lists apply if the user does not specify any file.
19762 ac_need_defaults=:
19763 while test $# != 0
19765 case $1 in
19766 --*=?*)
19767 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19768 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19769 ac_shift=:
19771 --*=)
19772 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19773 ac_optarg=
19774 ac_shift=:
19777 ac_option=$1
19778 ac_optarg=$2
19779 ac_shift=shift
19781 esac
19783 case $ac_option in
19784 # Handling of the options.
19785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19786 ac_cs_recheck=: ;;
19787 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19788 $as_echo "$ac_cs_version"; exit ;;
19789 --config | --confi | --conf | --con | --co | --c )
19790 $as_echo "$ac_cs_config"; exit ;;
19791 --debug | --debu | --deb | --de | --d | -d )
19792 debug=: ;;
19793 --file | --fil | --fi | --f )
19794 $ac_shift
19795 case $ac_optarg in
19796 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19797 '') as_fn_error $? "missing file argument" ;;
19798 esac
19799 as_fn_append CONFIG_FILES " '$ac_optarg'"
19800 ac_need_defaults=false;;
19801 --he | --h | --help | --hel | -h )
19802 $as_echo "$ac_cs_usage"; exit ;;
19803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19805 ac_cs_silent=: ;;
19807 # This is an error.
19808 -*) as_fn_error $? "unrecognized option: \`$1'
19809 Try \`$0 --help' for more information." ;;
19811 *) as_fn_append ac_config_targets " $1"
19812 ac_need_defaults=false ;;
19814 esac
19815 shift
19816 done
19818 ac_configure_extra_args=
19820 if $ac_cs_silent; then
19821 exec 6>/dev/null
19822 ac_configure_extra_args="$ac_configure_extra_args --silent"
19825 _ACEOF
19826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19827 if \$ac_cs_recheck; then
19828 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19829 shift
19830 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19831 CONFIG_SHELL='$SHELL'
19832 export CONFIG_SHELL
19833 exec "\$@"
19836 _ACEOF
19837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19838 exec 5>>config.log
19840 echo
19841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19842 ## Running $as_me. ##
19843 _ASBOX
19844 $as_echo "$ac_log"
19845 } >&5
19847 _ACEOF
19848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19850 # INIT-COMMANDS
19852 extrasub_build="$extrasub_build"
19853 extrasub_host="$extrasub_host"
19854 extrasub_target="$extrasub_target"
19856 _ACEOF
19858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19860 # Handling of arguments.
19861 for ac_config_target in $ac_config_targets
19863 case $ac_config_target in
19864 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19866 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19867 esac
19868 done
19871 # If the user did not use the arguments to specify the items to instantiate,
19872 # then the envvar interface is used. Set only those that are not.
19873 # We use the long form for the default assignment because of an extremely
19874 # bizarre bug on SunOS 4.1.3.
19875 if $ac_need_defaults; then
19876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19879 # Have a temporary directory for convenience. Make it in the build tree
19880 # simply because there is no reason against having it here, and in addition,
19881 # creating and moving files from /tmp can sometimes cause problems.
19882 # Hook for its removal unless debugging.
19883 # Note that there is a small window in which the directory will not be cleaned:
19884 # after its creation but before its name has been assigned to `$tmp'.
19885 $debug ||
19887 tmp= ac_tmp=
19888 trap 'exit_status=$?
19889 : "${ac_tmp:=$tmp}"
19890 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19892 trap 'as_fn_exit 1' 1 2 13 15
19894 # Create a (secure) tmp directory for tmp files.
19897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19898 test -d "$tmp"
19899 } ||
19901 tmp=./conf$$-$RANDOM
19902 (umask 077 && mkdir "$tmp")
19903 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19904 ac_tmp=$tmp
19906 # Set up the scripts for CONFIG_FILES section.
19907 # No need to generate them if there are no CONFIG_FILES.
19908 # This happens for instance with `./config.status config.h'.
19909 if test -n "$CONFIG_FILES"; then
19911 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19912 ac_cs_awk_getline=:
19913 ac_cs_awk_pipe_init=
19914 ac_cs_awk_read_file='
19915 while ((getline aline < (F[key])) > 0)
19916 print(aline)
19917 close(F[key])'
19918 ac_cs_awk_pipe_fini=
19919 else
19920 ac_cs_awk_getline=false
19921 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19922 ac_cs_awk_read_file='
19923 print "|#_!!_#|"
19924 print "cat " F[key] " &&"
19925 '$ac_cs_awk_pipe_init
19926 # The final `:' finishes the AND list.
19927 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19929 ac_cr=`echo X | tr X '\015'`
19930 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19931 # But we know of no other shell where ac_cr would be empty at this
19932 # point, so we can use a bashism as a fallback.
19933 if test "x$ac_cr" = x; then
19934 eval ac_cr=\$\'\\r\'
19936 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19937 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19938 ac_cs_awk_cr='\\r'
19939 else
19940 ac_cs_awk_cr=$ac_cr
19943 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19944 _ACEOF
19946 # Create commands to substitute file output variables.
19948 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19949 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19950 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19951 echo "_ACAWK" &&
19952 echo "_ACEOF"
19953 } >conf$$files.sh &&
19954 . ./conf$$files.sh ||
19955 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19956 rm -f conf$$files.sh
19959 echo "cat >conf$$subs.awk <<_ACEOF" &&
19960 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19961 echo "_ACEOF"
19962 } >conf$$subs.sh ||
19963 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19964 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19965 ac_delim='%!_!# '
19966 for ac_last_try in false false false false false :; do
19967 . ./conf$$subs.sh ||
19968 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19970 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19971 if test $ac_delim_n = $ac_delim_num; then
19972 break
19973 elif $ac_last_try; then
19974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19975 else
19976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19978 done
19979 rm -f conf$$subs.sh
19981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19982 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19983 _ACEOF
19984 sed -n '
19986 s/^/S["/; s/!.*/"]=/
19989 s/^[^!]*!//
19990 :repl
19991 t repl
19992 s/'"$ac_delim"'$//
19993 t delim
19996 s/\(.\{148\}\)..*/\1/
19997 t more1
19998 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20001 b repl
20002 :more1
20003 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20006 s/.\{148\}//
20007 t nl
20008 :delim
20010 s/\(.\{148\}\)..*/\1/
20011 t more2
20012 s/["\\]/\\&/g; s/^/"/; s/$/"/
20015 :more2
20016 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20019 s/.\{148\}//
20020 t delim
20021 ' <conf$$subs.awk | sed '
20022 /^[^""]/{
20024 s/\n//
20026 ' >>$CONFIG_STATUS || ac_write_fail=1
20027 rm -f conf$$subs.awk
20028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20029 _ACAWK
20030 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20031 for (key in S) S_is_set[key] = 1
20032 FS = "\a"
20033 \$ac_cs_awk_pipe_init
20036 line = $ 0
20037 nfields = split(line, field, "@")
20038 substed = 0
20039 len = length(field[1])
20040 for (i = 2; i < nfields; i++) {
20041 key = field[i]
20042 keylen = length(key)
20043 if (S_is_set[key]) {
20044 value = S[key]
20045 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20046 len += length(value) + length(field[++i])
20047 substed = 1
20048 } else
20049 len += 1 + keylen
20051 if (nfields == 3 && !substed) {
20052 key = field[2]
20053 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20054 \$ac_cs_awk_read_file
20055 next
20058 print line
20060 \$ac_cs_awk_pipe_fini
20061 _ACAWK
20062 _ACEOF
20063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20064 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20065 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20066 else
20068 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20069 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20070 _ACEOF
20072 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20073 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20074 # trailing colons and then remove the whole line if VPATH becomes empty
20075 # (actually we leave an empty line to preserve line numbers).
20076 if test "x$srcdir" = x.; then
20077 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20079 s///
20080 s/^/:/
20081 s/[ ]*$/:/
20082 s/:\$(srcdir):/:/g
20083 s/:\${srcdir}:/:/g
20084 s/:@srcdir@:/:/g
20085 s/^:*//
20086 s/:*$//
20088 s/\(=[ ]*\).*/\1/
20090 s/\n//
20091 s/^[^=]*=[ ]*$//
20095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20096 fi # test -n "$CONFIG_FILES"
20099 eval set X " :F $CONFIG_FILES "
20100 shift
20101 for ac_tag
20103 case $ac_tag in
20104 :[FHLC]) ac_mode=$ac_tag; continue;;
20105 esac
20106 case $ac_mode$ac_tag in
20107 :[FHL]*:*);;
20108 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20109 :[FH]-) ac_tag=-:-;;
20110 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20111 esac
20112 ac_save_IFS=$IFS
20113 IFS=:
20114 set x $ac_tag
20115 IFS=$ac_save_IFS
20116 shift
20117 ac_file=$1
20118 shift
20120 case $ac_mode in
20121 :L) ac_source=$1;;
20122 :[FH])
20123 ac_file_inputs=
20124 for ac_f
20126 case $ac_f in
20127 -) ac_f="$ac_tmp/stdin";;
20128 *) # Look for the file first in the build tree, then in the source tree
20129 # (if the path is not absolute). The absolute path cannot be DOS-style,
20130 # because $ac_f cannot contain `:'.
20131 test -f "$ac_f" ||
20132 case $ac_f in
20133 [\\/$]*) false;;
20134 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20135 esac ||
20136 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20137 esac
20138 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20139 as_fn_append ac_file_inputs " '$ac_f'"
20140 done
20142 # Let's still pretend it is `configure' which instantiates (i.e., don't
20143 # use $as_me), people would be surprised to read:
20144 # /* config.h. Generated by config.status. */
20145 configure_input='Generated from '`
20146 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20147 `' by configure.'
20148 if test x"$ac_file" != x-; then
20149 configure_input="$ac_file. $configure_input"
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20151 $as_echo "$as_me: creating $ac_file" >&6;}
20153 # Neutralize special characters interpreted by sed in replacement strings.
20154 case $configure_input in #(
20155 *\&* | *\|* | *\\* )
20156 ac_sed_conf_input=`$as_echo "$configure_input" |
20157 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20158 *) ac_sed_conf_input=$configure_input;;
20159 esac
20161 case $ac_tag in
20162 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20164 esac
20166 esac
20168 ac_dir=`$as_dirname -- "$ac_file" ||
20169 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20170 X"$ac_file" : 'X\(//\)[^/]' \| \
20171 X"$ac_file" : 'X\(//\)$' \| \
20172 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20173 $as_echo X"$ac_file" |
20174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20175 s//\1/
20178 /^X\(\/\/\)[^/].*/{
20179 s//\1/
20182 /^X\(\/\/\)$/{
20183 s//\1/
20186 /^X\(\/\).*/{
20187 s//\1/
20190 s/.*/./; q'`
20191 as_dir="$ac_dir"; as_fn_mkdir_p
20192 ac_builddir=.
20194 case "$ac_dir" in
20195 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20197 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20198 # A ".." for each directory in $ac_dir_suffix.
20199 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20200 case $ac_top_builddir_sub in
20201 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20202 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20203 esac ;;
20204 esac
20205 ac_abs_top_builddir=$ac_pwd
20206 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20207 # for backward compatibility:
20208 ac_top_builddir=$ac_top_build_prefix
20210 case $srcdir in
20211 .) # We are building in place.
20212 ac_srcdir=.
20213 ac_top_srcdir=$ac_top_builddir_sub
20214 ac_abs_top_srcdir=$ac_pwd ;;
20215 [\\/]* | ?:[\\/]* ) # Absolute name.
20216 ac_srcdir=$srcdir$ac_dir_suffix;
20217 ac_top_srcdir=$srcdir
20218 ac_abs_top_srcdir=$srcdir ;;
20219 *) # Relative name.
20220 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20221 ac_top_srcdir=$ac_top_build_prefix$srcdir
20222 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20223 esac
20224 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20227 case $ac_mode in
20230 # CONFIG_FILE
20233 case $INSTALL in
20234 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20235 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20236 esac
20237 _ACEOF
20239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20240 # If the template does not know about datarootdir, expand it.
20241 # FIXME: This hack should be removed a few years after 2.60.
20242 ac_datarootdir_hack=; ac_datarootdir_seen=
20243 ac_sed_dataroot='
20244 /datarootdir/ {
20248 /@datadir@/p
20249 /@docdir@/p
20250 /@infodir@/p
20251 /@localedir@/p
20252 /@mandir@/p'
20253 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20254 *datarootdir*) ac_datarootdir_seen=yes;;
20255 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20257 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20258 _ACEOF
20259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20260 ac_datarootdir_hack='
20261 s&@datadir@&$datadir&g
20262 s&@docdir@&$docdir&g
20263 s&@infodir@&$infodir&g
20264 s&@localedir@&$localedir&g
20265 s&@mandir@&$mandir&g
20266 s&\\\${datarootdir}&$datarootdir&g' ;;
20267 esac
20268 _ACEOF
20270 # Neutralize VPATH when `$srcdir' = `.'.
20271 # Shell code in configure.ac might set extrasub.
20272 # FIXME: do we really want to maintain this feature?
20273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20274 ac_sed_extra="$ac_vpsub
20275 $extrasub
20276 _ACEOF
20277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20280 s|@configure_input@|$ac_sed_conf_input|;t t
20281 s&@top_builddir@&$ac_top_builddir_sub&;t t
20282 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20283 s&@srcdir@&$ac_srcdir&;t t
20284 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20285 s&@top_srcdir@&$ac_top_srcdir&;t t
20286 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20287 s&@builddir@&$ac_builddir&;t t
20288 s&@abs_builddir@&$ac_abs_builddir&;t t
20289 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20290 s&@INSTALL@&$ac_INSTALL&;t t
20291 $ac_datarootdir_hack
20293 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20294 if $ac_cs_awk_getline; then
20295 $AWK -f "$ac_tmp/subs.awk"
20296 else
20297 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20298 fi \
20299 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20301 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20302 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20303 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20304 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20306 which seems to be undefined. Please make sure it is defined" >&5
20307 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20308 which seems to be undefined. Please make sure it is defined" >&2;}
20310 rm -f "$ac_tmp/stdin"
20311 case $ac_file in
20312 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20313 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20314 esac \
20315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20320 esac
20323 case $ac_file$ac_mode in
20324 "Makefile":F) sed "$extrasub_build" Makefile |
20325 sed "$extrasub_host" |
20326 sed "$extrasub_target" > mf$$
20327 mv -f mf$$ Makefile ;;
20329 esac
20330 done # for ac_tag
20333 as_fn_exit 0
20334 _ACEOF
20335 ac_clean_files=$ac_clean_files_save
20337 test $ac_write_fail = 0 ||
20338 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20341 # configure is writing to config.log, and then calls config.status.
20342 # config.status does its own redirection, appending to config.log.
20343 # Unfortunately, on DOS this fails, as config.log is still kept open
20344 # by configure, so config.status won't be able to write to it; its
20345 # output is simply discarded. So we exec the FD to /dev/null,
20346 # effectively closing config.log, so it can be properly (re)opened and
20347 # appended to by config.status. When coming back to configure, we
20348 # need to make the FD available again.
20349 if test "$no_create" != yes; then
20350 ac_cs_success=:
20351 ac_config_status_args=
20352 test "$silent" = yes &&
20353 ac_config_status_args="$ac_config_status_args --quiet"
20354 exec 5>/dev/null
20355 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20356 exec 5>>config.log
20357 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20358 # would make configure fail if this is the last instruction.
20359 $ac_cs_success || as_fn_exit 1
20361 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20363 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}