Daily bump.
[official-gcc.git] / configure
blob85ab99154020a71feb63aef93508e8462a59cd9a
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 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 READELF
623 OTOOL
624 OBJDUMP
625 OBJCOPY
626 WINDMC
627 WINDRES
628 STRIP
629 RANLIB
631 LIPO
633 DSYMUTIL
634 DLLTOOL
637 RUNTEST
638 EXPECT
639 MAKEINFO
640 FLEX
643 BISON
644 YACC
645 WINDRES_FOR_BUILD
646 WINDMC_FOR_BUILD
647 RANLIB_FOR_BUILD
648 NM_FOR_BUILD
649 LD_FOR_BUILD
650 LDFLAGS_FOR_BUILD
651 GDC_FOR_BUILD
652 GOC_FOR_BUILD
653 GFORTRAN_FOR_BUILD
654 DSYMUTIL_FOR_BUILD
655 DLLTOOL_FOR_BUILD
656 CXX_FOR_BUILD
657 CXXFLAGS_FOR_BUILD
658 CFLAGS_FOR_BUILD
659 CC_FOR_BUILD
660 AS_FOR_BUILD
661 AR_FOR_BUILD
662 target_configdirs
663 configdirs
664 build_configdirs
665 INSTALL_GDB_TK
666 GDB_TK
667 CONFIGURE_GDB_TK
668 build_tooldir
669 tooldir
670 GCC_SHLIB_SUBDIR
671 RPATH_ENVVAR
672 target_configargs
673 host_configargs
674 build_configargs
675 BUILD_CONFIG
676 LDFLAGS_FOR_TARGET
677 CXXFLAGS_FOR_TARGET
678 CFLAGS_FOR_TARGET
679 DEBUG_PREFIX_CFLAGS_FOR_TARGET
680 SYSROOT_CFLAGS_FOR_TARGET
681 get_gcc_base_ver
682 extra_host_zlib_configure_flags
683 extra_host_libiberty_configure_flags
684 stage1_languages
685 host_shared
686 extra_linker_plugin_flags
687 extra_linker_plugin_configure_flags
688 islinc
689 isllibs
690 poststage1_ldflags
691 poststage1_libs
692 stage1_ldflags
693 stage1_libs
694 extra_isl_gmp_configure_flags
695 extra_mpc_mpfr_configure_flags
696 extra_mpc_gmp_configure_flags
697 extra_mpfr_configure_flags
698 gmpinc
699 gmplibs
700 HAVE_CXX11_FOR_BUILD
701 HAVE_CXX11
702 do_compare
703 GNATMAKE
704 GNATBIND
705 ac_ct_CXX
706 CXXFLAGS
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
715 extra_liboffloadmic_configure_flags
716 target_subdir
717 host_subdir
718 build_subdir
719 build_libsubdir
722 LN_S
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 target_os
728 target_vendor
729 target_cpu
730 target
731 host_os
732 host_vendor
733 host_cpu
734 host
735 target_noncanonical
736 host_noncanonical
737 build_noncanonical
738 build_os
739 build_vendor
740 build_cpu
741 build
742 TOPLEVEL_CONFIGURE_ARGUMENTS
743 target_alias
744 host_alias
745 build_alias
746 LIBS
747 ECHO_T
748 ECHO_N
749 ECHO_C
750 DEFS
751 mandir
752 localedir
753 libdir
754 psdir
755 pdfdir
756 dvidir
757 htmldir
758 infodir
759 docdir
760 oldincludedir
761 includedir
762 localstatedir
763 sharedstatedir
764 sysconfdir
765 datadir
766 datarootdir
767 libexecdir
768 sbindir
769 bindir
770 program_transform_name
771 prefix
772 exec_prefix
773 PACKAGE_URL
774 PACKAGE_BUGREPORT
775 PACKAGE_STRING
776 PACKAGE_VERSION
777 PACKAGE_TARNAME
778 PACKAGE_NAME
779 PATH_SEPARATOR
780 SHELL'
781 ac_subst_files='serialization_dependencies
782 host_makefile_frag
783 target_makefile_frag
784 alphaieee_frag
785 ospace_frag'
786 ac_user_opts='
787 enable_option_checking
788 with_build_libsubdir
789 with_system_zlib
790 enable_as_accelerator_for
791 enable_offload_targets
792 enable_offload_defaulted
793 enable_gold
794 enable_ld
795 enable_compressed_debug_sections
796 enable_libquadmath
797 enable_libquadmath_support
798 enable_libada
799 enable_libssp
800 enable_libstdcxx
801 enable_liboffloadmic
802 enable_bootstrap
803 with_mpc
804 with_mpc_include
805 with_mpc_lib
806 with_mpfr_dir
807 with_mpfr
808 with_mpfr_include
809 with_mpfr_lib
810 with_gmp_dir
811 with_gmp
812 with_gmp_include
813 with_gmp_lib
814 with_stage1_libs
815 with_static_standard_libraries
816 with_stage1_ldflags
817 with_boot_libs
818 with_boot_ldflags
819 with_isl
820 with_isl_include
821 with_isl_lib
822 enable_isl_version_check
823 enable_lto
824 enable_linker_plugin_configure_flags
825 enable_linker_plugin_flags
826 enable_host_shared
827 enable_stage1_languages
828 enable_objc_gc
829 with_target_bdw_gc
830 with_target_bdw_gc_include
831 with_target_bdw_gc_lib
832 with_gcc_major_version_only
833 with_build_sysroot
834 with_debug_prefix_map
835 with_build_config
836 enable_vtable_verify
837 enable_serial_configure
838 with_build_time_tools
839 enable_maintainer_mode
840 enable_stage1_checking
841 enable_werror
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
852 CXXFLAGS
854 build_configargs
855 host_configargs
856 target_configargs
859 DLLTOOL
860 DSYMUTIL
862 LIPO
864 RANLIB
865 STRIP
866 WINDRES
867 WINDMC
868 OBJCOPY
869 OBJDUMP
870 OTOOL
871 READELF
872 CC_FOR_TARGET
873 CXX_FOR_TARGET
874 GCC_FOR_TARGET
875 GFORTRAN_FOR_TARGET
876 GOC_FOR_TARGET
877 GDC_FOR_TARGET
878 AR_FOR_TARGET
879 AS_FOR_TARGET
880 DLLTOOL_FOR_TARGET
881 DSYMUTIL_FOR_TARGET
882 LD_FOR_TARGET
883 LIPO_FOR_TARGET
884 NM_FOR_TARGET
885 OBJCOPY_FOR_TARGET
886 OBJDUMP_FOR_TARGET
887 OTOOL_FOR_TARGET
888 RANLIB_FOR_TARGET
889 READELF_FOR_TARGET
890 STRIP_FOR_TARGET
891 WINDRES_FOR_TARGET
892 WINDMC_FOR_TARGET'
895 # Initialize some variables set by options.
896 ac_init_help=
897 ac_init_version=false
898 ac_unrecognized_opts=
899 ac_unrecognized_sep=
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
943 ac_prev=
944 ac_dashdash=
945 for ac_option
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
950 ac_prev=
951 continue
954 case $ac_option in
955 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 *=) ac_optarg= ;;
957 *) ac_optarg=yes ;;
958 esac
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
964 ac_dashdash=yes ;;
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 ac_prev=bindir ;;
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969 bindir=$ac_optarg ;;
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
983 --config-cache | -C)
984 cache_file=config.cache ;;
986 -datadir | --datadir | --datadi | --datad)
987 ac_prev=datadir ;;
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
998 -disable-* | --disable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=no ;;
1014 -docdir | --docdir | --docdi | --doc | --do)
1015 ac_prev=docdir ;;
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 ac_prev=dvidir ;;
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1024 -enable-* | --enable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error $? "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_$ac_useropt"
1034 "*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=\$ac_optarg ;;
1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042 | --exec | --exe | --ex)
1043 ac_prev=exec_prefix ;;
1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046 | --exec=* | --exe=* | --ex=*)
1047 exec_prefix=$ac_optarg ;;
1049 -gas | --gas | --ga | --g)
1050 # Obsolete; use --with-gas.
1051 with_gas=yes ;;
1053 -help | --help | --hel | --he | -h)
1054 ac_init_help=long ;;
1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056 ac_init_help=recursive ;;
1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058 ac_init_help=short ;;
1060 -host | --host | --hos | --ho)
1061 ac_prev=host_alias ;;
1062 -host=* | --host=* | --hos=* | --ho=*)
1063 host_alias=$ac_optarg ;;
1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 ac_prev=htmldir ;;
1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 | --ht=*)
1069 htmldir=$ac_optarg ;;
1071 -includedir | --includedir | --includedi | --included | --include \
1072 | --includ | --inclu | --incl | --inc)
1073 ac_prev=includedir ;;
1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075 | --includ=* | --inclu=* | --incl=* | --inc=*)
1076 includedir=$ac_optarg ;;
1078 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 ac_prev=infodir ;;
1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081 infodir=$ac_optarg ;;
1083 -libdir | --libdir | --libdi | --libd)
1084 ac_prev=libdir ;;
1085 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086 libdir=$ac_optarg ;;
1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089 | --libexe | --libex | --libe)
1090 ac_prev=libexecdir ;;
1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092 | --libexe=* | --libex=* | --libe=*)
1093 libexecdir=$ac_optarg ;;
1095 -localedir | --localedir | --localedi | --localed | --locale)
1096 ac_prev=localedir ;;
1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098 localedir=$ac_optarg ;;
1100 -localstatedir | --localstatedir | --localstatedi | --localstated \
1101 | --localstate | --localstat | --localsta | --localst | --locals)
1102 ac_prev=localstatedir ;;
1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105 localstatedir=$ac_optarg ;;
1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 ac_prev=mandir ;;
1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110 mandir=$ac_optarg ;;
1112 -nfp | --nfp | --nf)
1113 # Obsolete; use --without-fp.
1114 with_fp=no ;;
1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117 | --no-cr | --no-c | -n)
1118 no_create=yes ;;
1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122 no_recursion=yes ;;
1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126 | --oldin | --oldi | --old | --ol | --o)
1127 ac_prev=oldincludedir ;;
1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131 oldincludedir=$ac_optarg ;;
1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 ac_prev=prefix ;;
1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136 prefix=$ac_optarg ;;
1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139 | --program-pre | --program-pr | --program-p)
1140 ac_prev=program_prefix ;;
1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143 program_prefix=$ac_optarg ;;
1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146 | --program-suf | --program-su | --program-s)
1147 ac_prev=program_suffix ;;
1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150 program_suffix=$ac_optarg ;;
1152 -program-transform-name | --program-transform-name \
1153 | --program-transform-nam | --program-transform-na \
1154 | --program-transform-n | --program-transform- \
1155 | --program-transform | --program-transfor \
1156 | --program-transfo | --program-transf \
1157 | --program-trans | --program-tran \
1158 | --progr-tra | --program-tr | --program-t)
1159 ac_prev=program_transform_name ;;
1160 -program-transform-name=* | --program-transform-name=* \
1161 | --program-transform-nam=* | --program-transform-na=* \
1162 | --program-transform-n=* | --program-transform-=* \
1163 | --program-transform=* | --program-transfor=* \
1164 | --program-transfo=* | --program-transf=* \
1165 | --program-trans=* | --program-tran=* \
1166 | --progr-tra=* | --program-tr=* | --program-t=*)
1167 program_transform_name=$ac_optarg ;;
1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 ac_prev=pdfdir ;;
1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172 pdfdir=$ac_optarg ;;
1174 -psdir | --psdir | --psdi | --psd | --ps)
1175 ac_prev=psdir ;;
1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177 psdir=$ac_optarg ;;
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1181 silent=yes ;;
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 ac_prev=sbindir ;;
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 | --sbi=* | --sb=*)
1187 sbindir=$ac_optarg ;;
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1192 | --sha | --sh)
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 | --sha=* | --sh=*)
1198 sharedstatedir=$ac_optarg ;;
1200 -site | --site | --sit)
1201 ac_prev=site ;;
1202 -site=* | --site=* | --sit=*)
1203 site=$ac_optarg ;;
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 ac_prev=srcdir ;;
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 verbose=yes ;;
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1228 -with-* | --with-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=\$ac_optarg ;;
1244 -without-* | --without-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error $? "invalid package name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1253 "with_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=no ;;
1260 --x)
1261 # Obsolete; use --with-x.
1262 with_x=yes ;;
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1278 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information"
1282 *=*)
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288 esac
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1293 # FIXME: should be removed in autoconf 3.0.
1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1300 esac
1301 done
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error $? "missing argument to $ac_option"
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1310 no) ;;
1311 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 esac
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1324 case $ac_val in
1325 */ )
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1328 esac
1329 # Be sure to have absolute directory names.
1330 case $ac_val in
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 esac
1334 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1335 done
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 elif test "x$build_alias" != "x$host_alias"; then
1349 cross_compiling=yes
1353 ac_tool_prefix=
1354 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356 test "$silent" = yes && exec 6>/dev/null
1359 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di=`ls -di .` &&
1361 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362 as_fn_error $? "working directory cannot be determined"
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364 as_fn_error $? "pwd does not report name of working directory"
1367 # Find the source files, if location was not specified.
1368 if test -z "$srcdir"; then
1369 ac_srcdir_defaulted=yes
1370 # Try the directory containing this script, then the parent directory.
1371 ac_confdir=`$as_dirname -- "$as_myself" ||
1372 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$as_myself" : 'X\(//\)[^/]' \| \
1374 X"$as_myself" : 'X\(//\)$' \| \
1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376 $as_echo X"$as_myself" |
1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 s//\1/
1381 /^X\(\/\/\)[^/].*/{
1382 s//\1/
1385 /^X\(\/\/\)$/{
1386 s//\1/
1389 /^X\(\/\).*/{
1390 s//\1/
1393 s/.*/./; q'`
1394 srcdir=$ac_confdir
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 srcdir=..
1398 else
1399 ac_srcdir_defaulted=no
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1403 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1405 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 ac_abs_confdir=`(
1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1408 pwd)`
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411 srcdir=.
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1416 case $srcdir in
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 esac
1419 case $srcdir in
1420 *" "*)
1421 as_fn_error $? "path to source, $srcdir, contains spaces"
1423 esac
1424 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1426 for ac_var in $ac_precious_vars; do
1427 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_env_${ac_var}_value=\$${ac_var}
1429 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 done
1434 # Report the --help message.
1436 if test "$ac_init_help" = "long"; then
1437 # Omit some internal or obsolete options to make the list less imposing.
1438 # This message is too long to be a string in the A/UX 3.1 sh.
1439 cat <<_ACEOF
1440 \`configure' configures this package to adapt to many kinds of systems.
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE. See below for descriptions of some of the useful variables.
1447 Defaults for the options are specified in brackets.
1449 Configuration:
1450 -h, --help display this help and exit
1451 --help=short display options specific to this package
1452 --help=recursive display the short help of all the included packages
1453 -V, --version display version information and exit
1454 -q, --quiet, --silent do not print \`checking ...' messages
1455 --cache-file=FILE cache test results in FILE [disabled]
1456 -C, --config-cache alias for \`--cache-file=config.cache'
1457 -n, --no-create do not create output files
1458 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460 Installation directories:
1461 --prefix=PREFIX install architecture-independent files in PREFIX
1462 [$ac_default_prefix]
1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1464 [PREFIX]
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1471 For better control, use the options below.
1473 Fine tuning of the installation directories:
1474 --bindir=DIR user executables [EPREFIX/bin]
1475 --sbindir=DIR system admin executables [EPREFIX/sbin]
1476 --libexecdir=DIR program executables [EPREFIX/libexec]
1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1493 _ACEOF
1495 cat <<\_ACEOF
1497 Program names:
1498 --program-prefix=PREFIX prepend PREFIX to installed program names
1499 --program-suffix=SUFFIX append SUFFIX to installed program names
1500 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1502 System types:
1503 --build=BUILD configure for building on BUILD [guessed]
1504 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1505 --target=TARGET configure for building compilers for TARGET [HOST]
1506 _ACEOF
1509 if test -n "$ac_init_help"; then
1511 cat <<\_ACEOF
1513 Optional Features:
1514 --disable-option-checking ignore unrecognized --enable/--with options
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517 --enable-as-accelerator-for=ARG
1518 build as offload target compiler. Specify offload
1519 host triple by ARG
1520 --enable-offload-targets=LIST
1521 enable offloading to devices from comma-separated
1522 LIST of TARGET[=DIR]. Use optional path to find
1523 offload target compiler during the build
1524 --enable-offload-defaulted
1525 If enabled, configured but not installed offload compilers and
1526 libgomp plugins are silently ignored. Useful for distribution
1527 compilers where those are in separate optional packages.
1529 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1530 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1531 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1532 Enable compressed debug sections for gas, gold or ld
1533 by default
1534 --disable-libquadmath do not build libquadmath directory
1535 --disable-libquadmath-support
1536 disable libquadmath support for Fortran
1537 --enable-libada build libada directory
1538 --enable-libssp build libssp directory
1539 --disable-libstdcxx do not build libstdc++-v3 directory
1540 --enable-liboffloadmic=ARG
1541 build liboffloadmic [ARG={no,host,target}]
1542 --enable-bootstrap enable bootstrapping [yes if native build]
1543 --disable-isl-version-check
1544 disable check for isl version
1545 --enable-lto enable link time optimization support
1546 --enable-linker-plugin-configure-flags=FLAGS
1547 additional flags for configuring linker plugins
1548 [none]
1549 --enable-linker-plugin-flags=FLAGS
1550 additional flags for configuring and building linker
1551 plugins [none]
1552 --enable-host-shared build host code as shared libraries
1553 --enable-stage1-languages[=all]
1554 choose additional languages to build during stage1.
1555 Mostly useful for compiler development
1556 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1557 Objective-C runtime
1558 --enable-vtable-verify Enable vtable verification feature
1559 --enable-serial-[{host,target,build}-]configure
1560 force sequential configuration of sub-packages for
1561 the host, target or build machine, or all
1562 sub-packages
1563 --enable-maintainer-mode
1564 enable make rules and dependencies not useful (and
1565 sometimes confusing) to the casual installer
1566 --enable-stage1-checking[=all]
1567 choose additional checking for stage1 of the
1568 compiler
1569 --enable-werror enable -Werror in bootstrap stage2 and later
1571 Optional Packages:
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-build-libsubdir=DIR Directory where to find libraries for build system
1575 --with-system-zlib use installed libz
1576 --with-mpc=PATH specify prefix directory for installed MPC package.
1577 Equivalent to --with-mpc-include=PATH/include plus
1578 --with-mpc-lib=PATH/lib
1579 --with-mpc-include=PATH specify directory for installed MPC include files
1580 --with-mpc-lib=PATH specify directory for the installed MPC library
1581 --with-mpfr-dir=PATH this option has been REMOVED
1582 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1583 Equivalent to --with-mpfr-include=PATH/include plus
1584 --with-mpfr-lib=PATH/lib
1585 --with-mpfr-include=PATH
1586 specify directory for installed MPFR include files
1587 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1588 --with-gmp-dir=PATH this option has been REMOVED
1589 --with-gmp=PATH specify prefix directory for the installed GMP
1590 package. Equivalent to
1591 --with-gmp-include=PATH/include plus
1592 --with-gmp-lib=PATH/lib
1593 --with-gmp-include=PATH specify directory for installed GMP include files
1594 --with-gmp-lib=PATH specify directory for the installed GMP library
1595 --with-stage1-libs=LIBS libraries for stage1
1596 --with-static-standard-libraries
1597 use -static-libstdc++ and -static-libgcc
1598 (default=auto)
1599 --with-stage1-ldflags=FLAGS
1600 linker flags for stage1
1601 --with-boot-libs=LIBS libraries for stage2 and later
1602 --with-boot-ldflags=FLAGS
1603 linker flags for stage2 and later
1604 --with-isl=PATH Specify prefix directory for the installed isl
1605 package. Equivalent to
1606 --with-isl-include=PATH/include plus
1607 --with-isl-lib=PATH/lib
1608 --with-isl-include=PATH Specify directory for installed isl include files
1609 --with-isl-lib=PATH Specify the directory for the installed isl library
1610 --with-target-bdw-gc=PATHLIST
1611 specify prefix directory for installed bdw-gc
1612 package. Equivalent to
1613 --with-target-bdw-gc-include=PATH/include plus
1614 --with-target-bdw-gc-lib=PATH/lib
1615 --with-target-bdw-gc-include=PATHLIST
1616 specify directories for installed bdw-gc include
1617 files
1618 --with-target-bdw-gc-lib=PATHLIST
1619 specify directories for installed bdw-gc library
1620 --with-gcc-major-version-only
1621 use only GCC major number in filesystem paths
1622 --with-build-sysroot=SYSROOT
1623 use sysroot as the system root during the build
1624 --with-debug-prefix-map='A=B C=D ...'
1625 map A to B, C to D ... in debug information
1626 --with-build-config='NAME NAME2...'
1627 use config/NAME.mk build configuration
1628 --with-build-time-tools=PATH
1629 use given path to find target tools during the build
1631 Some influential environment variables:
1632 CC C compiler command
1633 CFLAGS C compiler flags
1634 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1635 nonstandard directory <lib dir>
1636 LIBS libraries to pass to the linker, e.g. -l<library>
1637 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1638 you have headers in a nonstandard directory <include dir>
1639 CXX C++ compiler command
1640 CXXFLAGS C++ compiler flags
1641 build_configargs
1642 additional configure arguments for build directories
1643 host_configargs
1644 additional configure arguments for host directories
1645 target_configargs
1646 additional configure arguments for target directories
1647 AR AR for the host
1648 AS AS for the host
1649 DLLTOOL DLLTOOL for the host
1650 DSYMUTIL DSYMUTIL for the host
1651 LD LD for the host
1652 LIPO LIPO for the host
1653 NM NM for the host
1654 RANLIB RANLIB for the host
1655 STRIP STRIP for the host
1656 WINDRES WINDRES for the host
1657 WINDMC WINDMC for the host
1658 OBJCOPY OBJCOPY for the host
1659 OBJDUMP OBJDUMP for the host
1660 OTOOL OTOOL for the host
1661 READELF READELF for the host
1662 CC_FOR_TARGET
1663 CC for the target
1664 CXX_FOR_TARGET
1665 CXX for the target
1666 GCC_FOR_TARGET
1667 GCC for the target
1668 GFORTRAN_FOR_TARGET
1669 GFORTRAN for the target
1670 GOC_FOR_TARGET
1671 GOC for the target
1672 GDC_FOR_TARGET
1673 GDC for the target
1674 AR_FOR_TARGET
1675 AR for the target
1676 AS_FOR_TARGET
1677 AS for the target
1678 DLLTOOL_FOR_TARGET
1679 DLLTOOL for the target
1680 DSYMUTIL_FOR_TARGET
1681 DSYMUTIL for the target
1682 LD_FOR_TARGET
1683 LD for the target
1684 LIPO_FOR_TARGET
1685 LIPO for the target
1686 NM_FOR_TARGET
1687 NM for the target
1688 OBJCOPY_FOR_TARGET
1689 OBJCOPY for the target
1690 OBJDUMP_FOR_TARGET
1691 OBJDUMP for the target
1692 OTOOL_FOR_TARGET
1693 OTOOL for the target
1694 RANLIB_FOR_TARGET
1695 RANLIB for the target
1696 READELF_FOR_TARGET
1697 READELF for the target
1698 STRIP_FOR_TARGET
1699 STRIP for the target
1700 WINDRES_FOR_TARGET
1701 WINDRES for the target
1702 WINDMC_FOR_TARGET
1703 WINDMC for the target
1705 Use these variables to override the choices made by `configure' or to help
1706 it to find libraries and programs with nonstandard names/locations.
1708 Report bugs to the package provider.
1709 _ACEOF
1710 ac_status=$?
1713 if test "$ac_init_help" = "recursive"; then
1714 # If there are subdirs, report their specific --help.
1715 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1716 test -d "$ac_dir" ||
1717 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1718 continue
1719 ac_builddir=.
1721 case "$ac_dir" in
1722 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1725 # A ".." for each directory in $ac_dir_suffix.
1726 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1727 case $ac_top_builddir_sub in
1728 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1730 esac ;;
1731 esac
1732 ac_abs_top_builddir=$ac_pwd
1733 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1734 # for backward compatibility:
1735 ac_top_builddir=$ac_top_build_prefix
1737 case $srcdir in
1738 .) # We are building in place.
1739 ac_srcdir=.
1740 ac_top_srcdir=$ac_top_builddir_sub
1741 ac_abs_top_srcdir=$ac_pwd ;;
1742 [\\/]* | ?:[\\/]* ) # Absolute name.
1743 ac_srcdir=$srcdir$ac_dir_suffix;
1744 ac_top_srcdir=$srcdir
1745 ac_abs_top_srcdir=$srcdir ;;
1746 *) # Relative name.
1747 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1748 ac_top_srcdir=$ac_top_build_prefix$srcdir
1749 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1750 esac
1751 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1753 cd "$ac_dir" || { ac_status=$?; continue; }
1754 # Check for guested configure.
1755 if test -f "$ac_srcdir/configure.gnu"; then
1756 echo &&
1757 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1758 elif test -f "$ac_srcdir/configure"; then
1759 echo &&
1760 $SHELL "$ac_srcdir/configure" --help=recursive
1761 else
1762 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1763 fi || ac_status=$?
1764 cd "$ac_pwd" || { ac_status=$?; break; }
1765 done
1768 test -n "$ac_init_help" && exit $ac_status
1769 if $ac_init_version; then
1770 cat <<\_ACEOF
1771 configure
1772 generated by GNU Autoconf 2.69
1774 Copyright (C) 2012 Free Software Foundation, Inc.
1775 This configure script is free software; the Free Software Foundation
1776 gives unlimited permission to copy, distribute and modify it.
1777 _ACEOF
1778 exit
1781 ## ------------------------ ##
1782 ## Autoconf initialization. ##
1783 ## ------------------------ ##
1785 # ac_fn_c_try_compile LINENO
1786 # --------------------------
1787 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_compile ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext
1792 if { { ac_try="$ac_compile"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_compile") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest.$ac_objext; then :
1811 ac_retval=0
1812 else
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1816 ac_retval=1
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1821 } # ac_fn_c_try_compile
1823 # ac_fn_cxx_try_compile LINENO
1824 # ----------------------------
1825 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_cxx_try_compile ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 rm -f conftest.$ac_objext
1830 if { { ac_try="$ac_compile"
1831 case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_compile") 2>conftest.err
1838 ac_status=$?
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && {
1846 test -z "$ac_cxx_werror_flag" ||
1847 test ! -s conftest.err
1848 } && test -s conftest.$ac_objext; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 ac_retval=1
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1859 } # ac_fn_cxx_try_compile
1861 # ac_fn_cxx_try_link LINENO
1862 # -------------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_cxx_try_link ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext conftest$ac_exeext
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_cxx_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest$ac_exeext && {
1887 test "$cross_compiling" = yes ||
1888 test -x conftest$ac_exeext
1889 }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 ac_retval=1
1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899 # interfere with the next link command; also delete a directory that is
1900 # left behind by Apple's compiler. We do this before executing the actions.
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1905 } # ac_fn_cxx_try_link
1907 # ac_fn_c_try_link LINENO
1908 # -----------------------
1909 # Try to link conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_c_try_link ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 rm -f conftest.$ac_objext conftest$ac_exeext
1914 if { { ac_try="$ac_link"
1915 case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_link") 2>conftest.err
1922 ac_status=$?
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && {
1930 test -z "$ac_c_werror_flag" ||
1931 test ! -s conftest.err
1932 } && test -s conftest$ac_exeext && {
1933 test "$cross_compiling" = yes ||
1934 test -x conftest$ac_exeext
1935 }; then :
1936 ac_retval=0
1937 else
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1941 ac_retval=1
1943 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1944 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1945 # interfere with the next link command; also delete a directory that is
1946 # left behind by Apple's compiler. We do this before executing the actions.
1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 as_fn_set_status $ac_retval
1951 } # ac_fn_c_try_link
1952 cat >config.log <<_ACEOF
1953 This file contains any messages produced by compilers while
1954 running configure, to aid debugging if configure makes a mistake.
1956 It was created by $as_me, which was
1957 generated by GNU Autoconf 2.69. Invocation command line was
1959 $ $0 $@
1961 _ACEOF
1962 exec 5>>config.log
1964 cat <<_ASUNAME
1965 ## --------- ##
1966 ## Platform. ##
1967 ## --------- ##
1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1981 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1986 _ASUNAME
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 $as_echo "PATH: $as_dir"
1994 done
1995 IFS=$as_save_IFS
1997 } >&5
1999 cat >&5 <<_ACEOF
2002 ## ----------- ##
2003 ## Core tests. ##
2004 ## ----------- ##
2006 _ACEOF
2009 # Keep a trace of the command line.
2010 # Strip out --no-create and --no-recursion so they do not pile up.
2011 # Strip out --silent because we don't want to record it for future runs.
2012 # Also quote any args containing shell meta-characters.
2013 # Make two passes to allow for proper duplicate-argument suppression.
2014 ac_configure_args=
2015 ac_configure_args0=
2016 ac_configure_args1=
2017 ac_must_keep_next=false
2018 for ac_pass in 1 2
2020 for ac_arg
2022 case $ac_arg in
2023 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2025 | -silent | --silent | --silen | --sile | --sil)
2026 continue ;;
2027 *\'*)
2028 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2029 esac
2030 case $ac_pass in
2031 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2033 as_fn_append ac_configure_args1 " '$ac_arg'"
2034 if test $ac_must_keep_next = true; then
2035 ac_must_keep_next=false # Got value, back to normal.
2036 else
2037 case $ac_arg in
2038 *=* | --config-cache | -C | -disable-* | --disable-* \
2039 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2040 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2041 | -with-* | --with-* | -without-* | --without-* | --x)
2042 case "$ac_configure_args0 " in
2043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2044 esac
2046 -* ) ac_must_keep_next=true ;;
2047 esac
2049 as_fn_append ac_configure_args " '$ac_arg'"
2051 esac
2052 done
2053 done
2054 { ac_configure_args0=; unset ac_configure_args0;}
2055 { ac_configure_args1=; unset ac_configure_args1;}
2057 # When interrupted or exit'd, cleanup temporary files, and complete
2058 # config.log. We remove comments because anyway the quotes in there
2059 # would cause problems or look ugly.
2060 # WARNING: Use '\'' to represent an apostrophe within the trap.
2061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2062 trap 'exit_status=$?
2063 # Save into config.log some information that might help in debugging.
2065 echo
2067 $as_echo "## ---------------- ##
2068 ## Cache variables. ##
2069 ## ---------------- ##"
2070 echo
2071 # The following way of writing the cache mishandles newlines in values,
2073 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2074 eval ac_val=\$$ac_var
2075 case $ac_val in #(
2076 *${as_nl}*)
2077 case $ac_var in #(
2078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2080 esac
2081 case $ac_var in #(
2082 _ | IFS | as_nl) ;; #(
2083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2084 *) { eval $ac_var=; unset $ac_var;} ;;
2085 esac ;;
2086 esac
2087 done
2088 (set) 2>&1 |
2089 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2090 *${as_nl}ac_space=\ *)
2091 sed -n \
2092 "s/'\''/'\''\\\\'\'''\''/g;
2093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2094 ;; #(
2096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2098 esac |
2099 sort
2101 echo
2103 $as_echo "## ----------------- ##
2104 ## Output variables. ##
2105 ## ----------------- ##"
2106 echo
2107 for ac_var in $ac_subst_vars
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
2114 done | sort
2115 echo
2117 if test -n "$ac_subst_files"; then
2118 $as_echo "## ------------------- ##
2119 ## File substitutions. ##
2120 ## ------------------- ##"
2121 echo
2122 for ac_var in $ac_subst_files
2124 eval ac_val=\$$ac_var
2125 case $ac_val in
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 esac
2128 $as_echo "$ac_var='\''$ac_val'\''"
2129 done | sort
2130 echo
2133 if test -s confdefs.h; then
2134 $as_echo "## ----------- ##
2135 ## confdefs.h. ##
2136 ## ----------- ##"
2137 echo
2138 cat confdefs.h
2139 echo
2141 test "$ac_signal" != 0 &&
2142 $as_echo "$as_me: caught signal $ac_signal"
2143 $as_echo "$as_me: exit $exit_status"
2144 } >&5
2145 rm -f core *.core core.conftest.* &&
2146 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2147 exit $exit_status
2149 for ac_signal in 1 2 13 15; do
2150 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2151 done
2152 ac_signal=0
2154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2155 rm -f -r conftest* confdefs.h
2157 $as_echo "/* confdefs.h */" > confdefs.h
2159 # Predefined preprocessor variables.
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_NAME "$PACKAGE_NAME"
2163 _ACEOF
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2167 _ACEOF
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2171 _ACEOF
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_STRING "$PACKAGE_STRING"
2175 _ACEOF
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2179 _ACEOF
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_URL "$PACKAGE_URL"
2183 _ACEOF
2186 # Let the site file select an alternate cache file if it wants to.
2187 # Prefer an explicitly selected file to automatically selected ones.
2188 ac_site_file1=NONE
2189 ac_site_file2=NONE
2190 if test -n "$CONFIG_SITE"; then
2191 # We do not want a PATH search for config.site.
2192 case $CONFIG_SITE in #((
2193 -*) ac_site_file1=./$CONFIG_SITE;;
2194 */*) ac_site_file1=$CONFIG_SITE;;
2195 *) ac_site_file1=./$CONFIG_SITE;;
2196 esac
2197 elif test "x$prefix" != xNONE; then
2198 ac_site_file1=$prefix/share/config.site
2199 ac_site_file2=$prefix/etc/config.site
2200 else
2201 ac_site_file1=$ac_default_prefix/share/config.site
2202 ac_site_file2=$ac_default_prefix/etc/config.site
2204 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2206 test "x$ac_site_file" = xNONE && continue
2207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2210 sed 's/^/| /' "$ac_site_file" >&5
2211 . "$ac_site_file" \
2212 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 as_fn_error $? "failed to load site script $ac_site_file
2215 See \`config.log' for more details" "$LINENO" 5; }
2217 done
2219 if test -r "$cache_file"; then
2220 # Some versions of bash will fail to source /dev/null (special files
2221 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2222 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224 $as_echo "$as_me: loading cache $cache_file" >&6;}
2225 case $cache_file in
2226 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2227 *) . "./$cache_file";;
2228 esac
2230 else
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232 $as_echo "$as_me: creating cache $cache_file" >&6;}
2233 >$cache_file
2236 # Check that the precious variables saved in the cache have kept the same
2237 # value.
2238 ac_cache_corrupted=false
2239 for ac_var in $ac_precious_vars; do
2240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2241 eval ac_new_set=\$ac_env_${ac_var}_set
2242 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2243 eval ac_new_val=\$ac_env_${ac_var}_value
2244 case $ac_old_set,$ac_new_set in
2245 set,)
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2247 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2248 ac_cache_corrupted=: ;;
2249 ,set)
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2252 ac_cache_corrupted=: ;;
2253 ,);;
2255 if test "x$ac_old_val" != "x$ac_new_val"; then
2256 # differences in whitespace do not lead to failure.
2257 ac_old_val_w=`echo x $ac_old_val`
2258 ac_new_val_w=`echo x $ac_new_val`
2259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2261 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2262 ac_cache_corrupted=:
2263 else
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2265 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2266 eval $ac_var=\$ac_old_val
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2269 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2271 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2272 fi;;
2273 esac
2274 # Pass precious variables to config.status.
2275 if test "$ac_new_set" = set; then
2276 case $ac_new_val in
2277 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2278 *) ac_arg=$ac_var=$ac_new_val ;;
2279 esac
2280 case " $ac_configure_args " in
2281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2282 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2283 esac
2285 done
2286 if $ac_cache_corrupted; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2290 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2291 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2293 ## -------------------- ##
2294 ## Main body of script. ##
2295 ## -------------------- ##
2297 ac_ext=c
2298 ac_cpp='$CPP $CPPFLAGS'
2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 progname=$0
2311 # if PWD already has a value, it is probably wrong.
2312 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2314 # Export original configure arguments for use by sub-configures.
2315 # Quote arguments with shell meta charatcers.
2316 TOPLEVEL_CONFIGURE_ARGUMENTS=
2317 set -- "$progname" "$@"
2318 for ac_arg
2320 case "$ac_arg" in
2321 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2322 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2323 # if the argument is of the form -foo=baz, quote the baz part only
2324 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2325 *) ;;
2326 esac
2327 # Add the quoted argument to the list.
2328 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2329 done
2330 if test "$silent" = yes; then
2331 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2333 # Remove the initial space we just introduced and, as these will be
2334 # expanded by make, quote '$'.
2335 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2338 # Find the build, host, and target systems.
2339 ac_aux_dir=
2340 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2341 if test -f "$ac_dir/install-sh"; then
2342 ac_aux_dir=$ac_dir
2343 ac_install_sh="$ac_aux_dir/install-sh -c"
2344 break
2345 elif test -f "$ac_dir/install.sh"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/install.sh -c"
2348 break
2349 elif test -f "$ac_dir/shtool"; then
2350 ac_aux_dir=$ac_dir
2351 ac_install_sh="$ac_aux_dir/shtool install -c"
2352 break
2354 done
2355 if test -z "$ac_aux_dir"; then
2356 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2359 # These three variables are undocumented and unsupported,
2360 # and are intended to be withdrawn in a future Autoconf release.
2361 # They can cause serious problems if a builder's source tree is in a directory
2362 # whose full name contains unusual characters.
2363 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2364 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2365 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2368 # Make sure we can run config.sub.
2369 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2370 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2373 $as_echo_n "checking build system type... " >&6; }
2374 if ${ac_cv_build+:} false; then :
2375 $as_echo_n "(cached) " >&6
2376 else
2377 ac_build_alias=$build_alias
2378 test "x$ac_build_alias" = x &&
2379 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2380 test "x$ac_build_alias" = x &&
2381 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2382 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2383 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2387 $as_echo "$ac_cv_build" >&6; }
2388 case $ac_cv_build in
2389 *-*-*) ;;
2390 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2391 esac
2392 build=$ac_cv_build
2393 ac_save_IFS=$IFS; IFS='-'
2394 set x $ac_cv_build
2395 shift
2396 build_cpu=$1
2397 build_vendor=$2
2398 shift; shift
2399 # Remember, the first character of IFS is used to create $*,
2400 # except with old shells:
2401 build_os=$*
2402 IFS=$ac_save_IFS
2403 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2406 case ${build_alias} in
2407 "") build_noncanonical=${build} ;;
2408 *) build_noncanonical=${build_alias} ;;
2409 esac
2413 case ${host_alias} in
2414 "") host_noncanonical=${build_noncanonical} ;;
2415 *) host_noncanonical=${host_alias} ;;
2416 esac
2420 case ${target_alias} in
2421 "") target_noncanonical=${host_noncanonical} ;;
2422 *) target_noncanonical=${target_alias} ;;
2423 esac
2428 test "$host_noncanonical" = "$target_noncanonical" &&
2429 test "$program_prefix$program_suffix$program_transform_name" = \
2430 NONENONEs,x,x, &&
2431 program_transform_name=s,y,y,
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2434 $as_echo_n "checking host system type... " >&6; }
2435 if ${ac_cv_host+:} false; then :
2436 $as_echo_n "(cached) " >&6
2437 else
2438 if test "x$host_alias" = x; then
2439 ac_cv_host=$ac_cv_build
2440 else
2441 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2442 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2447 $as_echo "$ac_cv_host" >&6; }
2448 case $ac_cv_host in
2449 *-*-*) ;;
2450 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2451 esac
2452 host=$ac_cv_host
2453 ac_save_IFS=$IFS; IFS='-'
2454 set x $ac_cv_host
2455 shift
2456 host_cpu=$1
2457 host_vendor=$2
2458 shift; shift
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2461 host_os=$*
2462 IFS=$ac_save_IFS
2463 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2467 $as_echo_n "checking target system type... " >&6; }
2468 if ${ac_cv_target+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 if test "x$target_alias" = x; then
2472 ac_cv_target=$ac_cv_host
2473 else
2474 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2475 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2480 $as_echo "$ac_cv_target" >&6; }
2481 case $ac_cv_target in
2482 *-*-*) ;;
2483 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2484 esac
2485 target=$ac_cv_target
2486 ac_save_IFS=$IFS; IFS='-'
2487 set x $ac_cv_target
2488 shift
2489 target_cpu=$1
2490 target_vendor=$2
2491 shift; shift
2492 # Remember, the first character of IFS is used to create $*,
2493 # except with old shells:
2494 target_os=$*
2495 IFS=$ac_save_IFS
2496 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2499 # The aliases save the names the user supplied, while $host etc.
2500 # will get canonicalized.
2501 test -n "$target_alias" &&
2502 test "$program_prefix$program_suffix$program_transform_name" = \
2503 NONENONEs,x,x, &&
2504 program_prefix=${target_alias}-
2506 test "$program_prefix" != NONE &&
2507 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2508 # Use a double $ so make ignores it.
2509 test "$program_suffix" != NONE &&
2510 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2511 # Double any \ or $.
2512 # By default was `s,x,x', remove it if useless.
2513 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2514 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2518 # Get 'install' or 'install-sh' and its variants.
2519 # Find a good install program. We prefer a C program (faster),
2520 # so one script is as good as another. But avoid the broken or
2521 # incompatible versions:
2522 # SysV /etc/install, /usr/sbin/install
2523 # SunOS /usr/etc/install
2524 # IRIX /sbin/install
2525 # AIX /bin/install
2526 # AmigaOS /C/install, which installs bootblocks on floppy discs
2527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2530 # OS/2's system install, which has a completely different semantic
2531 # ./install, which can be erroneously created by make from ./install.sh.
2532 # Reject install programs that cannot install multiple files.
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2534 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2535 if test -z "$INSTALL"; then
2536 if ${ac_cv_path_install+:} false; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 # Account for people who put trailing slashes in PATH elements.
2545 case $as_dir/ in #((
2546 ./ | .// | /[cC]/* | \
2547 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2548 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2549 /usr/ucb/* ) ;;
2551 # OSF1 and SCO ODT 3.0 have their own names for install.
2552 # Don't use installbsd from OSF since it installs stuff as root
2553 # by default.
2554 for ac_prog in ginstall scoinst install; do
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2557 if test $ac_prog = install &&
2558 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559 # AIX install. It has an incompatible calling convention.
2561 elif test $ac_prog = install &&
2562 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # program-specific install script used by HP pwplus--don't use.
2565 else
2566 rm -rf conftest.one conftest.two conftest.dir
2567 echo one > conftest.one
2568 echo two > conftest.two
2569 mkdir conftest.dir
2570 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2571 test -s conftest.one && test -s conftest.two &&
2572 test -s conftest.dir/conftest.one &&
2573 test -s conftest.dir/conftest.two
2574 then
2575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2576 break 3
2580 done
2581 done
2583 esac
2585 done
2586 IFS=$as_save_IFS
2588 rm -rf conftest.one conftest.two conftest.dir
2591 if test "${ac_cv_path_install+set}" = set; then
2592 INSTALL=$ac_cv_path_install
2593 else
2594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for INSTALL within a source directory, because that will
2596 # break other packages using the cache if that directory is
2597 # removed, or if the value is a relative name.
2598 INSTALL=$ac_install_sh
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602 $as_echo "$INSTALL" >&6; }
2604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605 # It thinks the first close brace ends the variable substitution.
2606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2613 $as_echo_n "checking whether ln works... " >&6; }
2614 if ${acx_cv_prog_LN+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 rm -f conftestdata_t
2618 echo >conftestdata_f
2619 if ln conftestdata_f conftestdata_t 2>/dev/null
2620 then
2621 acx_cv_prog_LN=ln
2622 else
2623 acx_cv_prog_LN=no
2625 rm -f conftestdata_f conftestdata_t
2628 if test $acx_cv_prog_LN = no; then
2629 LN="cp"
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2631 $as_echo "no, using $LN" >&6; }
2632 else
2633 LN="$acx_cv_prog_LN"
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2639 $as_echo_n "checking whether ln -s works... " >&6; }
2640 LN_S=$as_ln_s
2641 if test "$LN_S" = "ln -s"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2643 $as_echo "yes" >&6; }
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2646 $as_echo "no, using $LN_S" >&6; }
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2650 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2651 if ${ac_cv_path_SED+:} false; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2655 for ac_i in 1 2 3 4 5 6 7; do
2656 ac_script="$ac_script$as_nl$ac_script"
2657 done
2658 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2659 { ac_script=; unset ac_script;}
2660 if test -z "$SED"; then
2661 ac_path_SED_found=false
2662 # Loop through the user's path and test for each of PROGNAME-LIST
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_prog in sed gsed; do
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2671 as_fn_executable_p "$ac_path_SED" || continue
2672 # Check for GNU ac_path_SED and select it if it is found.
2673 # Check for GNU $ac_path_SED
2674 case `"$ac_path_SED" --version 2>&1` in
2675 *GNU*)
2676 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2678 ac_count=0
2679 $as_echo_n 0123456789 >"conftest.in"
2680 while :
2682 cat "conftest.in" "conftest.in" >"conftest.tmp"
2683 mv "conftest.tmp" "conftest.in"
2684 cp "conftest.in" "conftest.nl"
2685 $as_echo '' >> "conftest.nl"
2686 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2688 as_fn_arith $ac_count + 1 && ac_count=$as_val
2689 if test $ac_count -gt ${ac_path_SED_max-0}; then
2690 # Best one so far, save it but keep looking for a better one
2691 ac_cv_path_SED="$ac_path_SED"
2692 ac_path_SED_max=$ac_count
2694 # 10*(2^10) chars as input seems more than enough
2695 test $ac_count -gt 10 && break
2696 done
2697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2698 esac
2700 $ac_path_SED_found && break 3
2701 done
2702 done
2703 done
2704 IFS=$as_save_IFS
2705 if test -z "$ac_cv_path_SED"; then
2706 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2708 else
2709 ac_cv_path_SED=$SED
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2714 $as_echo "$ac_cv_path_SED" >&6; }
2715 SED="$ac_cv_path_SED"
2716 rm -f conftest.sed
2718 for ac_prog in gawk mawk nawk awk
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721 set dummy $ac_prog; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_AWK+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$AWK"; then
2728 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_AWK="$ac_prog"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 AWK=$ac_cv_prog_AWK
2748 if test -n "$AWK"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2750 $as_echo "$AWK" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2757 test -n "$AWK" && break
2758 done
2761 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2763 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2764 # a relative path.
2765 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2766 INSTALL="${srcpwd}/install-sh -c"
2769 # Set srcdir to "." if that's what it is.
2770 # This is important for multilib support.
2771 pwd=`${PWDCMD-pwd}`
2772 if test "${pwd}" = "${srcpwd}" ; then
2773 srcdir=.
2776 topsrcdir=$srcpwd
2778 extra_host_args=
2780 ### To add a new directory to the tree, first choose whether it is a target
2781 ### or a host dependent tool. Then put it into the appropriate list
2782 ### (library or tools, host or target), doing a dependency sort.
2784 # Subdirs will be configured in the order listed in build_configdirs,
2785 # configdirs, or target_configdirs; see the serialization section below.
2787 # Dependency sorting is only needed when *configuration* must be done in
2788 # a particular order. In all cases a dependency should be specified in
2789 # the Makefile, whether or not it's implicitly specified here.
2791 # Double entries in build_configdirs, configdirs, or target_configdirs may
2792 # cause circular dependencies and break everything horribly.
2794 # these library is used by various programs built for the build
2795 # environment
2797 build_libs="build-libiberty build-libcpp"
2799 # these tools are built for the build environment
2800 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2802 # these libraries are used by various programs built for the host environment
2804 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2806 # these tools are built for the host environment
2807 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2808 # know that we are building the simulator.
2809 # binutils, gas and ld appear in that order because it makes sense to run
2810 # "make check" in that particular order.
2811 # If --enable-gold is used, "gold" may replace "ld".
2812 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 gotools c++tools"
2814 # these libraries are built for the target environment, and are built after
2815 # the host libraries and the host tools (which may be a cross compiler)
2816 # Note that libiberty is not a target library.
2817 target_libraries="target-libgcc \
2818 target-libbacktrace \
2819 target-libgloss \
2820 target-newlib \
2821 target-libgomp \
2822 target-liboffloadmic \
2823 target-libatomic \
2824 target-libitm \
2825 target-libstdc++-v3 \
2826 target-libsanitizer \
2827 target-libvtv \
2828 target-libssp \
2829 target-libquadmath \
2830 target-libgfortran \
2831 target-libffi \
2832 target-libobjc \
2833 target-libada \
2834 target-libgo \
2835 target-libphobos \
2836 target-zlib"
2838 # these tools are built using the target libraries, and are intended to
2839 # run only in the target environment
2841 # note: any program that *uses* libraries that are in the "target_libraries"
2842 # list belongs in this list.
2844 target_tools="target-rda"
2846 ################################################################################
2848 ## All tools belong in one of the four categories, and are assigned above
2849 ## We assign ${configdirs} this way to remove all embedded newlines. This
2850 ## is important because configure will choke if they ever get through.
2851 ## ${configdirs} is directories we build using the host tools.
2852 ## ${target_configdirs} is directories we build using the target tools.
2853 configdirs=`echo ${host_libs} ${host_tools}`
2854 target_configdirs=`echo ${target_libraries} ${target_tools}`
2855 build_configdirs=`echo ${build_libs} ${build_tools}`
2859 ################################################################################
2861 srcname="gnu development package"
2863 # This gets set non-empty for some net releases of packages.
2864 appdirs=""
2866 # Define is_cross_compiler to save on calls to 'test'.
2867 is_cross_compiler=
2868 if test x"${host}" = x"${target}" ; then
2869 is_cross_compiler=no
2870 else
2871 is_cross_compiler=yes
2874 # Find the build and target subdir names.
2876 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2877 # have matching libraries, they should use host libraries: Makefile.tpl
2878 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2879 # However, they still use the build modules, because the corresponding
2880 # host modules (e.g. bison) are only built for the host when bootstrap
2881 # finishes. So:
2882 # - build_subdir is where we find build modules, and never changes.
2883 # - build_libsubdir is where we find build libraries, and can be overridden.
2885 # Prefix 'build-' so this never conflicts with target_subdir.
2886 build_subdir="build-${build_noncanonical}"
2888 # Check whether --with-build-libsubdir was given.
2889 if test "${with_build_libsubdir+set}" = set; then :
2890 withval=$with_build_libsubdir; build_libsubdir="$withval"
2891 else
2892 build_libsubdir="$build_subdir"
2895 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2896 if ( test $srcdir = . && test -d gcc ) \
2897 || test -d $srcdir/../host-${host_noncanonical}; then
2898 host_subdir="host-${host_noncanonical}"
2899 else
2900 host_subdir=.
2902 # No prefix.
2903 target_subdir=${target_noncanonical}
2905 # Be sure to cover against remnants of an in-tree build.
2906 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2907 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2908 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2911 # Skipdirs are removed silently.
2912 skipdirs=
2913 # Noconfigdirs are removed loudly.
2914 noconfigdirs=""
2916 use_gnu_ld=
2917 # Make sure we don't let GNU ld be added if we didn't want it.
2918 if test x$with_gnu_ld = xno ; then
2919 use_gnu_ld=no
2920 noconfigdirs="$noconfigdirs ld gold"
2923 use_gnu_as=
2924 # Make sure we don't let GNU as be added if we didn't want it.
2925 if test x$with_gnu_as = xno ; then
2926 use_gnu_as=no
2927 noconfigdirs="$noconfigdirs gas"
2930 use_included_zlib=
2932 # Check whether --with-system-zlib was given.
2933 if test "${with_system_zlib+set}" = set; then :
2934 withval=$with_system_zlib;
2937 # Make sure we don't let ZLIB be added if we didn't want it.
2938 if test x$with_system_zlib = xyes ; then
2939 use_included_zlib=no
2940 noconfigdirs="$noconfigdirs zlib"
2943 # some tools are so dependent upon X11 that if we're not building with X,
2944 # it's not even worth trying to configure, much less build, that tool.
2946 case ${with_x} in
2947 yes | "") ;; # the default value for this tree is that X11 is available
2949 skipdirs="${skipdirs} tk itcl libgui"
2950 # We won't be able to build gdbtk without X.
2951 enable_gdbtk=no
2953 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2954 esac
2956 # Some are only suitable for cross toolchains.
2957 # Remove these if host=target.
2958 cross_only="target-libgloss target-newlib target-opcodes"
2960 case $is_cross_compiler in
2961 no) skipdirs="${skipdirs} ${cross_only}" ;;
2962 esac
2964 # If both --with-headers and --with-libs are specified, default to
2965 # --without-newlib.
2966 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2967 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2968 if test x"${with_newlib}" = x ; then
2969 with_newlib=no
2973 # Recognize --with-newlib/--without-newlib.
2974 case ${with_newlib} in
2975 no) skipdirs="${skipdirs} target-newlib" ;;
2976 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2977 esac
2979 # Check whether --enable-as-accelerator-for was given.
2980 if test "${enable_as_accelerator_for+set}" = set; then :
2981 enableval=$enable_as_accelerator_for;
2985 # Check whether --enable-offload-targets was given.
2986 if test "${enable_offload_targets+set}" = set; then :
2987 enableval=$enable_offload_targets;
2988 if test x"$enable_offload_targets" = x; then
2989 as_fn_error $? "no offload targets specified" "$LINENO" 5
2992 else
2993 enable_offload_targets=
2997 # Check whether --enable-offload-defaulted was given.
2998 if test "${enable_offload_defaulted+set}" = set; then :
2999 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3000 else
3001 enable_offload_defaulted=
3005 # Handle --enable-gold, --enable-ld.
3006 # --disable-gold [--enable-ld]
3007 # Build only ld. Default option.
3008 # --enable-gold [--enable-ld]
3009 # Build both gold and ld. Install gold as "ld.gold", install ld
3010 # as "ld.bfd" and "ld".
3011 # --enable-gold=default [--enable-ld]
3012 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3013 # install ld as "ld.bfd".
3014 # --enable-gold[=default] --disable-ld
3015 # Build only gold, which is then installed as both "ld.gold" and "ld".
3016 # --enable-gold --enable-ld=default
3017 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3018 # and ld.bfd).
3019 # In other words, ld is default
3020 # --enable-gold=default --enable-ld=default
3021 # Error.
3023 default_ld=
3024 # Check whether --enable-gold was given.
3025 if test "${enable_gold+set}" = set; then :
3026 enableval=$enable_gold; ENABLE_GOLD=$enableval
3027 else
3028 ENABLE_GOLD=no
3031 case "${ENABLE_GOLD}" in
3032 yes|default)
3033 # Check for ELF target.
3034 is_elf=no
3035 case "${target}" in
3036 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3037 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3038 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3039 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3040 case "${target}" in
3041 *-*-linux*aout* | *-*-linux*oldld*)
3044 is_elf=yes
3046 esac
3047 esac
3049 if test "$is_elf" = "yes"; then
3050 # Check for target supported by gold.
3051 case "${target}" in
3052 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3053 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3054 configdirs="$configdirs gold"
3055 if test x${ENABLE_GOLD} = xdefault; then
3056 default_ld=gold
3058 ENABLE_GOLD=yes
3060 esac
3066 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3068 esac
3070 # Check whether --enable-ld was given.
3071 if test "${enable_ld+set}" = set; then :
3072 enableval=$enable_ld; ENABLE_LD=$enableval
3073 else
3074 ENABLE_LD=yes
3078 case "${ENABLE_LD}" in
3079 default)
3080 if test x${default_ld} != x; then
3081 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3084 yes)
3087 if test x${ENABLE_GOLD} != xyes; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3089 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3091 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3094 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3096 esac
3098 # PR gas/19109
3099 # Decide the default method for compressing debug sections.
3100 # Provide a configure time option to override our default.
3101 # Check whether --enable-compressed_debug_sections was given.
3102 if test "${enable_compressed_debug_sections+set}" = set; then :
3103 enableval=$enable_compressed_debug_sections;
3104 if test x"$enable_compressed_debug_sections" = xyes; then
3105 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3108 else
3109 enable_compressed_debug_sections=
3113 # Configure extra directories which are host specific
3115 case "${host}" in
3116 *-cygwin*)
3117 configdirs="$configdirs libtermcap" ;;
3118 esac
3120 # A target can indicate whether a language isn't supported for some reason.
3121 # Only spaces may be used in this macro; not newlines or tabs.
3122 unsupported_languages=
3124 # Remove more programs from consideration, based on the host or
3125 # target this usually means that a port of the program doesn't
3126 # exist yet.
3128 case "${host}" in
3129 i[3456789]86-*-msdosdjgpp*)
3130 noconfigdirs="$noconfigdirs tcl tk itcl"
3132 esac
3135 # Check whether --enable-libquadmath was given.
3136 if test "${enable_libquadmath+set}" = set; then :
3137 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3138 else
3139 ENABLE_LIBQUADMATH=yes
3142 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3143 noconfigdirs="$noconfigdirs target-libquadmath"
3147 # Check whether --enable-libquadmath-support was given.
3148 if test "${enable_libquadmath_support+set}" = set; then :
3149 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3150 else
3151 ENABLE_LIBQUADMATH_SUPPORT=yes
3154 enable_libquadmath_support=
3155 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3156 enable_libquadmath_support=no
3160 # Check whether --enable-libada was given.
3161 if test "${enable_libada+set}" = set; then :
3162 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3163 else
3164 ENABLE_LIBADA=yes
3167 if test "${ENABLE_LIBADA}" != "yes" ; then
3168 noconfigdirs="$noconfigdirs gnattools"
3171 # Check whether --enable-libssp was given.
3172 if test "${enable_libssp+set}" = set; then :
3173 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3174 else
3175 ENABLE_LIBSSP=yes
3179 # Check whether --enable-libstdcxx was given.
3180 if test "${enable_libstdcxx+set}" = set; then :
3181 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3182 else
3183 ENABLE_LIBSTDCXX=default
3186 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3187 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3190 # If this is accelerator compiler and its target is intelmic we enable
3191 # target liboffloadmic by default. If this is compiler with offloading
3192 # for intelmic we enable host liboffloadmic by default. Otherwise
3193 # liboffloadmic is disabled by default.
3194 # Check whether --enable-liboffloadmic was given.
3195 if test "${enable_liboffloadmic+set}" = set; then :
3196 enableval=$enable_liboffloadmic; case "$enableval" in
3197 no | host | target)
3198 enable_liboffloadmic=$enableval ;;
3200 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3201 esac
3202 else
3203 if test x"$enable_as_accelerator_for" != x; then
3204 case "${target}" in
3205 *-intelmic-* | *-intelmicemul-*)
3206 enable_liboffloadmic=target
3207 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3210 enable_liboffloadmic=no
3212 esac
3213 else
3214 case "${enable_offload_targets}" in
3215 *-intelmic-* | *-intelmicemul-*)
3216 enable_liboffloadmic=host
3217 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3220 enable_liboffloadmic=no
3222 esac
3228 # Enable libgomp by default on hosted POSIX systems, and a few others.
3229 if test x$enable_libgomp = x ; then
3230 case "${target}" in
3231 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3233 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3235 *-*-solaris2* | *-*-hpux11*)
3237 *-*-darwin* | *-*-aix*)
3239 nvptx*-*-* | amdgcn*-*-*)
3242 noconfigdirs="$noconfigdirs target-libgomp"
3244 esac
3247 # Disable libatomic on unsupported systems.
3248 if test -d ${srcdir}/libatomic; then
3249 if test x$enable_libatomic = x; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3251 $as_echo_n "checking for libatomic support... " >&6; }
3252 if (srcdir=${srcdir}/libatomic; \
3253 . ${srcdir}/configure.tgt; \
3254 test -n "$UNSUPPORTED")
3255 then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 noconfigdirs="$noconfigdirs target-libatomic"
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3266 # Disable liboffloadmic on unsupported systems.
3267 if test -d ${srcdir}/liboffloadmic; then
3268 if test x$enable_liboffloadmic != xno; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3270 $as_echo_n "checking for liboffloadmic support... " >&6; }
3271 if (srcdir=${srcdir}/liboffloadmic; \
3272 . ${srcdir}/configure.tgt; \
3273 test -n "$UNSUPPORTED")
3274 then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 noconfigdirs="$noconfigdirs target-liboffloadmic"
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280 $as_echo "yes" >&6; }
3285 # Disable libitm on unsupported systems.
3286 if test -d ${srcdir}/libitm; then
3287 if test x$enable_libitm = x; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3289 $as_echo_n "checking for libitm support... " >&6; }
3290 if (srcdir=${srcdir}/libitm; \
3291 . ${srcdir}/configure.tgt; \
3292 test -n "$UNSUPPORTED")
3293 then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 noconfigdirs="$noconfigdirs target-libitm"
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3304 # Disable libsanitizer on unsupported systems.
3305 if test -d ${srcdir}/libsanitizer; then
3306 if test x$enable_libsanitizer = x; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3308 $as_echo_n "checking for libsanitizer support... " >&6; }
3309 if (srcdir=${srcdir}/libsanitizer; \
3310 . ${srcdir}/configure.tgt; \
3311 test -n "$UNSUPPORTED")
3312 then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 noconfigdirs="$noconfigdirs target-libsanitizer"
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3323 # Disable libvtv on unsupported systems.
3324 if test -d ${srcdir}/libvtv; then
3325 if test x$enable_libvtv = x; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3327 $as_echo_n "checking for libvtv support... " >&6; }
3328 if (srcdir=${srcdir}/libvtv; \
3329 . ${srcdir}/configure.tgt; \
3330 test "$VTV_SUPPORTED" != "yes")
3331 then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 noconfigdirs="$noconfigdirs target-libvtv"
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 $as_echo "yes" >&6; }
3342 # Disable libquadmath for some systems.
3343 case "${target}" in
3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-*-aix* | rs6000-*-aix*)
3350 noconfigdirs="$noconfigdirs target-libquadmath"
3352 esac
3354 # Disable libssp for some systems.
3355 case "${target}" in
3356 avr-*-*)
3357 # No hosted I/O support.
3358 noconfigdirs="$noconfigdirs target-libssp"
3360 bpf-*-*)
3361 noconfigdirs="$noconfigdirs target-libssp"
3363 powerpc-*-aix* | rs6000-*-aix*)
3364 noconfigdirs="$noconfigdirs target-libssp"
3366 pru-*-*)
3367 # No hosted I/O support.
3368 noconfigdirs="$noconfigdirs target-libssp"
3370 rl78-*-*)
3371 # libssp uses a misaligned load to trigger a fault, but the RL78
3372 # doesn't fault for those - instead, it gives a build-time error
3373 # for explicit misaligned loads.
3374 noconfigdirs="$noconfigdirs target-libssp"
3376 visium-*-*)
3377 # No hosted I/O support.
3378 noconfigdirs="$noconfigdirs target-libssp"
3380 esac
3382 # Disable libstdc++-v3 for some systems.
3383 # Allow user to override this if they pass --enable-libstdc++-v3
3384 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3385 case "${target}" in
3386 *-*-vxworks*)
3387 # VxWorks uses the Dinkumware C++ library.
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3390 amdgcn*-*-*)
3391 # Not ported/fails to build when using newlib.
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3394 arm*-wince-pe*)
3395 # the C++ libraries don't build on top of CE's C libraries
3396 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3398 avr-*-*)
3399 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 bpf-*-*)
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3404 ft32-*-*)
3405 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3407 esac
3410 # Disable C++ on systems where it is known to not work.
3411 # For testing, you can override this with --enable-languages=c++.
3412 case ,${enable_languages}, in
3413 *,c++,*)
3416 case "${target}" in
3417 bpf-*-*)
3418 unsupported_languages="$unsupported_languages c++"
3420 esac
3422 esac
3424 # Disable Objc on systems where it is known to not work.
3425 # For testing, you can override this with --enable-languages=objc.
3426 case ,${enable_languages}, in
3427 *,objc,*)
3430 case "${target}" in
3431 bpf-*-*)
3432 unsupported_languages="$unsupported_languages objc"
3434 esac
3436 esac
3438 # Disable D on systems where it is known to not work.
3439 # For testing, you can override this with --enable-languages=d.
3440 case ,${enable_languages}, in
3441 *,d,*)
3444 case "${target}" in
3445 bpf-*-*)
3446 unsupported_languages="$unsupported_languages d"
3448 esac
3450 esac
3452 # Disable libphobos on unsupported systems.
3453 # For testing, you can override this with --enable-libphobos.
3454 if test -d ${srcdir}/libphobos; then
3455 if test x$enable_libphobos = x; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3457 $as_echo_n "checking for libphobos support... " >&6; }
3458 if (srcdir=${srcdir}/libphobos; \
3459 . ${srcdir}/configure.tgt; \
3460 test "$LIBPHOBOS_SUPPORTED" != "yes")
3461 then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3464 noconfigdirs="$noconfigdirs target-libphobos"
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3467 $as_echo "yes" >&6; }
3472 # Disable Fortran for some systems.
3473 case "${target}" in
3474 mmix-*-*)
3475 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3476 unsupported_languages="$unsupported_languages fortran"
3478 bpf-*-*)
3479 unsupported_languages="$unsupported_languages fortran"
3481 esac
3483 # Disable libffi for some systems.
3484 case "${target}" in
3485 powerpc-*-darwin*)
3487 i[3456789]86-*-darwin*)
3489 x86_64-*-darwin[912]*)
3491 *-*-darwin*)
3492 noconfigdirs="$noconfigdirs target-libffi"
3494 *-*-netware*)
3495 noconfigdirs="$noconfigdirs target-libffi"
3497 *-*-phoenix*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3500 *-*-rtems*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3503 *-*-tpf*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3506 *-*-uclinux*)
3507 noconfigdirs="$noconfigdirs target-libffi"
3509 *-*-vxworks*)
3510 noconfigdirs="$noconfigdirs target-libffi"
3512 aarch64*-*-freebsd*)
3513 noconfigdirs="$noconfigdirs target-libffi"
3515 alpha*-*-*vms*)
3516 noconfigdirs="$noconfigdirs target-libffi"
3518 arm*-*-freebsd*)
3519 noconfigdirs="$noconfigdirs target-libffi"
3521 arm-wince-pe)
3522 noconfigdirs="$noconfigdirs target-libffi"
3524 arm*-*-symbianelf*)
3525 noconfigdirs="$noconfigdirs target-libffi"
3527 bpf-*-*)
3528 noconfigdirs="$noconfigdirs target-libffi"
3530 cris-*-* | crisv32-*-*)
3531 case "${target}" in
3532 *-*-linux*)
3534 *) # See PR46792 regarding target-libffi.
3535 noconfigdirs="$noconfigdirs target-libffi";;
3536 esac
3538 hppa*64*-*-hpux*)
3539 noconfigdirs="$noconfigdirs target-libffi"
3541 hppa*-hp-hpux11*)
3543 hppa*-*-hpux*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3546 ia64*-*-*vms*)
3547 noconfigdirs="$noconfigdirs target-libffi"
3549 i[3456789]86-w64-mingw*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3552 i[3456789]86-*-mingw*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3555 x86_64-*-mingw*)
3556 noconfigdirs="$noconfigdirs target-libffi"
3558 mmix-*-*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3561 powerpc-*-aix*)
3563 rs6000-*-aix*)
3565 ft32-*-*)
3566 noconfigdirs="$noconfigdirs target-libffi"
3568 *-*-lynxos*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3571 esac
3573 # Disable the go frontend on systems where it is known to not work. Please keep
3574 # this in sync with contrib/config-list.mk.
3575 case "${target}" in
3576 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3577 unsupported_languages="$unsupported_languages go"
3579 esac
3581 # Only allow gdbserver on some systems.
3582 if test -d ${srcdir}/gdbserver; then
3583 if test x$enable_gdbserver = x; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3585 $as_echo_n "checking for gdbserver support... " >&6; }
3586 if (srcdir=${srcdir}/gdbserver; \
3587 . ${srcdir}/configure.srv; \
3588 test -n "$UNSUPPORTED")
3589 then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3592 noconfigdirs="$noconfigdirs gdbserver"
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3595 $as_echo "yes" >&6; }
3600 # Disable libgo for some systems where it is known to not work.
3601 # For testing, you can easily override this with --enable-libgo.
3602 if test x$enable_libgo = x; then
3603 case "${target}" in
3604 *-*-darwin*)
3605 # PR 46986
3606 noconfigdirs="$noconfigdirs target-libgo"
3608 *-*-cygwin* | *-*-mingw*)
3609 noconfigdirs="$noconfigdirs target-libgo"
3611 bpf-*-*)
3612 noconfigdirs="$noconfigdirs target-libgo"
3614 esac
3617 # Default libgloss CPU subdirectory.
3618 libgloss_dir="$target_cpu"
3620 case "${target}" in
3621 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3622 libgloss_dir=wince
3624 aarch64*-*-* )
3625 libgloss_dir=aarch64
3627 arm*-*-*)
3628 libgloss_dir=arm
3630 cris-*-* | crisv32-*-*)
3631 libgloss_dir=cris
3633 hppa*-*-*)
3634 libgloss_dir=pa
3636 i[3456789]86-*-*)
3637 libgloss_dir=i386
3639 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3640 libgloss_dir=m68hc11
3642 m68*-*-* | fido-*-*)
3643 libgloss_dir=m68k
3645 mips*-*-*)
3646 libgloss_dir=mips
3648 powerpc*-*-*)
3649 libgloss_dir=rs6000
3651 pru-*-*)
3652 libgloss_dir=pru
3654 sparc*-*-*)
3655 libgloss_dir=sparc
3657 esac
3659 # Disable newlib and libgloss for various target OSes.
3660 case "${target}" in
3661 alpha*-dec-osf*)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 i[3456789]86-*-linux*)
3665 # This section makes it possible to build newlib natively on linux.
3666 # If we are using a cross compiler then don't configure newlib.
3667 if test x${is_cross_compiler} != xno ; then
3668 noconfigdirs="$noconfigdirs target-newlib"
3670 noconfigdirs="$noconfigdirs target-libgloss"
3671 # If we are not using a cross compiler, do configure newlib.
3672 # Note however, that newlib will only be configured in this situation
3673 # if the --with-newlib option has been given, because otherwise
3674 # 'target-newlib' will appear in skipdirs.
3676 i[3456789]86-*-rdos*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 sparc-*-sunos4*)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 bpf-*-*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688 *-*-aix*)
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691 *-*-beos*)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 *-*-chorusos)
3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 *-*-dragonfly*)
3698 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 *-*-freebsd*)
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3703 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3704 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3706 *-*-lynxos*)
3707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3709 *-*-mingw*)
3710 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3712 *-*-netbsd*)
3713 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3715 *-*-netware*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 *-*-tpf*)
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3721 *-*-uclinux*)
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3724 *-*-vxworks*)
3725 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3727 esac
3729 case "${target}" in
3730 *-*-chorusos)
3732 aarch64-*-darwin*)
3733 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3734 noconfigdirs="$noconfigdirs sim target-rda"
3736 amdgcn*-*-*)
3738 arm-*-darwin*)
3739 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3740 noconfigdirs="$noconfigdirs sim target-rda"
3742 powerpc-*-darwin*)
3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs="$noconfigdirs sim target-rda"
3746 i[3456789]86-*-darwin*)
3747 noconfigdirs="$noconfigdirs ld gprof"
3748 noconfigdirs="$noconfigdirs sim target-rda"
3750 x86_64-*-darwin[912]*)
3751 noconfigdirs="$noconfigdirs ld gas gprof"
3752 noconfigdirs="$noconfigdirs sim target-rda"
3754 *-*-darwin*)
3755 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3756 noconfigdirs="$noconfigdirs sim target-rda"
3758 *-*-dragonfly*)
3760 *-*-freebsd*)
3761 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3762 && ! test -d ${srcdir}/gmp \
3763 && test -f /usr/local/include/gmp.h; then
3764 with_gmp=/usr/local
3767 *-*-kaos*)
3768 # Remove unsupported stuff on all kaOS configurations.
3769 noconfigdirs="$noconfigdirs target-libgloss"
3771 *-*-netbsd*)
3773 *-*-netware*)
3775 *-*-phoenix*)
3776 noconfigdirs="$noconfigdirs target-libgloss"
3778 *-*-rtems*)
3779 noconfigdirs="$noconfigdirs target-libgloss"
3781 # The tpf target doesn't support gdb yet.
3782 *-*-tpf*)
3783 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3785 *-*-uclinux*)
3786 noconfigdirs="$noconfigdirs target-rda"
3788 *-*-vxworks*)
3790 alpha*-dec-osf*)
3791 # ld works, but does not support shared libraries.
3792 # gas doesn't generate exception information.
3793 noconfigdirs="$noconfigdirs gas ld"
3795 alpha*-*-*vms*)
3796 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3798 alpha*-*-*)
3799 # newlib is not 64 bit ready
3800 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3802 bpf-*-*)
3803 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3805 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3806 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3808 arc*-*-*)
3809 noconfigdirs="$noconfigdirs sim"
3811 arm-*-pe*)
3812 noconfigdirs="$noconfigdirs target-libgloss"
3814 arm-*-riscix*)
3815 noconfigdirs="$noconfigdirs ld target-libgloss"
3817 avr-*-*)
3818 if test x${with_avrlibc} != xno; then
3819 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3822 c4x-*-* | tic4x-*-*)
3823 noconfigdirs="$noconfigdirs target-libgloss"
3825 tic54x-*-*)
3826 noconfigdirs="$noconfigdirs target-libgloss gdb"
3828 d10v-*-*)
3829 noconfigdirs="$noconfigdirs target-libgloss"
3831 d30v-*-*)
3832 noconfigdirs="$noconfigdirs gdb"
3834 fr30-*-elf*)
3835 noconfigdirs="$noconfigdirs gdb"
3837 ft32-*-*)
3838 noconfigdirs="$noconfigdirs target-rda gprof"
3840 moxie-*-*)
3841 noconfigdirs="$noconfigdirs"
3843 h8300*-*-*)
3844 noconfigdirs="$noconfigdirs target-libgloss"
3846 h8500-*-*)
3847 noconfigdirs="$noconfigdirs target-libgloss"
3849 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3851 hppa*64*-*-hpux*)
3852 noconfigdirs="$noconfigdirs gdb"
3854 hppa*-*-hpux11*)
3855 noconfigdirs="$noconfigdirs gdb ld"
3857 hppa*64*-*-linux*)
3859 hppa*-*-linux*)
3861 hppa*-*-*elf* | \
3862 hppa*-*-lites* | \
3863 hppa*-*-openbsd* | \
3864 hppa*64*-*-*)
3866 hppa*-*-pro*)
3868 hppa*-*-*)
3869 noconfigdirs="$noconfigdirs ld"
3871 i960-*-*)
3872 noconfigdirs="$noconfigdirs gdb"
3874 ia64*-*-elf*)
3875 # No gdb support yet.
3876 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3878 ia64*-**-hpux*)
3879 # No ld support yet.
3880 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3882 ia64*-*-*vms*)
3883 # No ld support yet.
3884 noconfigdirs="$noconfigdirs libgui itcl ld"
3886 i[3456789]86-w64-mingw*)
3888 i[3456789]86-*-mingw*)
3889 target_configdirs="$target_configdirs target-winsup"
3891 *-*-cygwin*)
3892 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3893 noconfigdirs="$noconfigdirs target-libgloss"
3894 # always build newlib if winsup directory is present.
3895 if test -d "$srcdir/winsup/cygwin"; then
3896 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3897 elif test -d "$srcdir/newlib"; then
3898 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3901 i[3456789]86-*-pe)
3902 noconfigdirs="$noconfigdirs target-libgloss"
3904 i[3456789]86-*-sco3.2v5*)
3905 # The linker does not yet know about weak symbols in COFF,
3906 # and is not configured to handle mixed ELF and COFF.
3907 noconfigdirs="$noconfigdirs ld target-libgloss"
3909 i[3456789]86-*-sco*)
3910 noconfigdirs="$noconfigdirs gprof target-libgloss"
3912 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3913 noconfigdirs="$noconfigdirs target-libgloss"
3915 i[3456789]86-*-sysv4*)
3916 noconfigdirs="$noconfigdirs target-libgloss"
3918 i[3456789]86-*-beos*)
3919 noconfigdirs="$noconfigdirs gdb"
3921 i[3456789]86-*-rdos*)
3922 noconfigdirs="$noconfigdirs gdb"
3924 mmix-*-*)
3925 noconfigdirs="$noconfigdirs gdb"
3927 mt-*-*)
3928 noconfigdirs="$noconfigdirs sim"
3930 nfp-*-*)
3931 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3932 noconfigdirs="$noconfigdirs $target_libraries"
3934 pdp11-*-*)
3935 noconfigdirs="$noconfigdirs gdb gprof"
3937 powerpc-*-aix*)
3938 # copied from rs6000-*-* entry
3939 noconfigdirs="$noconfigdirs gprof"
3941 powerpc*-*-winnt* | powerpc*-*-pe*)
3942 target_configdirs="$target_configdirs target-winsup"
3943 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3944 # always build newlib.
3945 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3947 # This is temporary until we can link against shared libraries
3948 powerpcle-*-solaris*)
3949 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3951 powerpc-*-beos*)
3952 noconfigdirs="$noconfigdirs gdb"
3954 rs6000-*-lynxos*)
3955 noconfigdirs="$noconfigdirs gprof"
3957 rs6000-*-aix*)
3958 noconfigdirs="$noconfigdirs gprof"
3960 rs6000-*-*)
3961 noconfigdirs="$noconfigdirs gprof"
3963 m68k-apollo-*)
3964 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3966 microblaze*)
3967 noconfigdirs="$noconfigdirs gprof"
3969 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3970 if test x$with_newlib = xyes; then
3971 noconfigdirs="$noconfigdirs gprof"
3974 mips*-*-irix5*)
3975 noconfigdirs="$noconfigdirs gprof target-libgloss"
3977 mips*-*-irix6*)
3978 noconfigdirs="$noconfigdirs gprof target-libgloss"
3980 mips*-*-bsd*)
3981 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3983 mips*-*-linux*)
3985 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3986 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3987 noconfigdirs="$noconfigdirs ld gas gprof"
3989 mips*-*-*)
3990 noconfigdirs="$noconfigdirs gprof"
3992 nvptx*-*-*)
3993 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3995 sh-*-*)
3996 case "${target}" in
3997 sh*-*-elf)
4000 noconfigdirs="$noconfigdirs target-libgloss" ;;
4001 esac
4003 sparc-*-sunos4*)
4004 if test x${is_cross_compiler} = xno ; then
4005 use_gnu_ld=no
4008 tic6x-*-*)
4009 noconfigdirs="$noconfigdirs sim"
4011 tilepro*-*-* | tilegx*-*-*)
4012 noconfigdirs="$noconfigdirs sim"
4014 v810-*-*)
4015 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4017 vax-*-*)
4018 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4020 wasm32-*-*)
4021 noconfigdirs="$noconfigdirs ld"
4023 esac
4025 # If we aren't building newlib, then don't build libgloss, since libgloss
4026 # depends upon some newlib header files.
4027 case "${noconfigdirs}" in
4028 *target-libgloss*) ;;
4029 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4030 esac
4032 # Work in distributions that contain no compiler tools, like Autoconf.
4033 host_makefile_frag=/dev/null
4034 if test -d ${srcdir}/config ; then
4035 case "${host}" in
4036 i[3456789]86-*-msdosdjgpp*)
4037 host_makefile_frag="config/mh-djgpp"
4039 *-cygwin*)
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4042 $as_echo_n "checking to see if cat works as expected... " >&6; }
4043 echo a >cygwin-cat-check
4044 if test `cat cygwin-cat-check` = a ; then
4045 rm cygwin-cat-check
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4047 $as_echo "yes" >&6; }
4048 else
4049 rm cygwin-cat-check
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4052 as_fn_error $? "The cat command does not ignore carriage return characters.
4053 Please either mount the build directory in binary mode or run the following
4054 commands before running any configure script:
4055 set -o igncr
4056 export SHELLOPTS
4057 " "$LINENO" 5
4060 host_makefile_frag="config/mh-cygwin"
4062 *-mingw*)
4063 host_makefile_frag="config/mh-mingw"
4065 alpha*-linux*)
4066 host_makefile_frag="config/mh-alpha-linux"
4068 hppa*-hp-hpux10*)
4069 host_makefile_frag="config/mh-pa-hpux10"
4071 hppa*-hp-hpux*)
4072 host_makefile_frag="config/mh-pa"
4074 hppa*-*)
4075 host_makefile_frag="config/mh-pa"
4077 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4078 host_makefile_frag="config/mh-darwin"
4080 powerpc-*-aix*)
4081 host_makefile_frag="config/mh-ppc-aix"
4083 rs6000-*-aix*)
4084 host_makefile_frag="config/mh-ppc-aix"
4086 esac
4089 if test "${build}" != "${host}" ; then
4090 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4091 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4092 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4093 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4094 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4095 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4096 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4097 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4098 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4099 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4100 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4101 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4102 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4103 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4104 else
4105 AR_FOR_BUILD="\$(AR)"
4106 AS_FOR_BUILD="\$(AS)"
4107 CC_FOR_BUILD="\$(CC)"
4108 CXX_FOR_BUILD="\$(CXX)"
4109 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4110 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4111 GOC_FOR_BUILD="\$(GOC)"
4112 GDC_FOR_BUILD="\$(GDC)"
4113 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4114 LD_FOR_BUILD="\$(LD)"
4115 NM_FOR_BUILD="\$(NM)"
4116 RANLIB_FOR_BUILD="\$(RANLIB)"
4117 WINDRES_FOR_BUILD="\$(WINDRES)"
4118 WINDMC_FOR_BUILD="\$(WINDMC)"
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_CC+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4148 done
4149 done
4150 IFS=$as_save_IFS
4154 CC=$ac_cv_prog_CC
4155 if test -n "$CC"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4157 $as_echo "$CC" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4165 if test -z "$ac_cv_prog_CC"; then
4166 ac_ct_CC=$CC
4167 # Extract the first word of "gcc", so it can be a program name with args.
4168 set dummy gcc; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$ac_ct_CC"; then
4175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_ac_ct_CC="gcc"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4188 done
4189 done
4190 IFS=$as_save_IFS
4194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4195 if test -n "$ac_ct_CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4197 $as_echo "$ac_ct_CC" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4203 if test "x$ac_ct_CC" = x; then
4204 CC=""
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210 ac_tool_warned=yes ;;
4211 esac
4212 CC=$ac_ct_CC
4214 else
4215 CC="$ac_cv_prog_CC"
4218 if test -z "$CC"; then
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4221 set dummy ${ac_tool_prefix}cc; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_CC+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_CC="${ac_tool_prefix}cc"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4241 done
4242 done
4243 IFS=$as_save_IFS
4247 CC=$ac_cv_prog_CC
4248 if test -n "$CC"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 $as_echo "$CC" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4259 if test -z "$CC"; then
4260 # Extract the first word of "cc", so it can be a program name with args.
4261 set dummy cc; ac_word=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_prog_CC+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC="$CC" # Let the user override the test.
4269 else
4270 ac_prog_rejected=no
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4279 ac_prog_rejected=yes
4280 continue
4282 ac_cv_prog_CC="cc"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4288 IFS=$as_save_IFS
4290 if test $ac_prog_rejected = yes; then
4291 # We found a bogon in the path, so make sure we never use it.
4292 set dummy $ac_cv_prog_CC
4293 shift
4294 if test $# != 0; then
4295 # We chose a different compiler from the bogus one.
4296 # However, it has the same basename, so the bogon will be chosen
4297 # first if we set CC to just the basename; use the full file name.
4298 shift
4299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4304 CC=$ac_cv_prog_CC
4305 if test -n "$CC"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307 $as_echo "$CC" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4315 if test -z "$CC"; then
4316 if test -n "$ac_tool_prefix"; then
4317 for ac_prog in cl.exe
4319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322 $as_echo_n "checking for $ac_word... " >&6; }
4323 if ${ac_cv_prog_CC+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 if test -n "$CC"; then
4327 ac_cv_prog_CC="$CC" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4340 done
4341 done
4342 IFS=$as_save_IFS
4346 CC=$ac_cv_prog_CC
4347 if test -n "$CC"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349 $as_echo "$CC" >&6; }
4350 else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4356 test -n "$CC" && break
4357 done
4359 if test -z "$CC"; then
4360 ac_ct_CC=$CC
4361 for ac_prog in cl.exe
4363 # Extract the first word of "$ac_prog", so it can be a program name with args.
4364 set dummy $ac_prog; ac_word=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 if test -n "$ac_ct_CC"; then
4371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_ac_ct_CC="$ac_prog"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4384 done
4385 done
4386 IFS=$as_save_IFS
4390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4391 if test -n "$ac_ct_CC"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4393 $as_echo "$ac_ct_CC" >&6; }
4394 else
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4400 test -n "$ac_ct_CC" && break
4401 done
4403 if test "x$ac_ct_CC" = x; then
4404 CC=""
4405 else
4406 case $cross_compiling:$ac_tool_warned in
4407 yes:)
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410 ac_tool_warned=yes ;;
4411 esac
4412 CC=$ac_ct_CC
4419 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error $? "no acceptable C compiler found in \$PATH
4422 See \`config.log' for more details" "$LINENO" 5; }
4424 # Provide some information about the compiler.
4425 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4426 set X $ac_compile
4427 ac_compiler=$2
4428 for ac_option in --version -v -V -qversion; do
4429 { { ac_try="$ac_compiler $ac_option >&5"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4437 ac_status=$?
4438 if test -s conftest.err; then
4439 sed '10a\
4440 ... rest of stderr output deleted ...
4441 10q' conftest.err >conftest.er1
4442 cat conftest.er1 >&5
4444 rm -f conftest.er1 conftest.err
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }
4447 done
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4453 main ()
4457 return 0;
4459 _ACEOF
4460 ac_clean_files_save=$ac_clean_files
4461 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4462 # Try to create an executable without -o first, disregard a.out.
4463 # It will help us diagnose broken compilers, and finding out an intuition
4464 # of exeext.
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4466 $as_echo_n "checking whether the C compiler works... " >&6; }
4467 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4469 # The possible output files:
4470 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4472 ac_rmfiles=
4473 for ac_file in $ac_files
4475 case $ac_file in
4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4477 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4478 esac
4479 done
4480 rm -f $ac_rmfiles
4482 if { { ac_try="$ac_link_default"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488 $as_echo "$ac_try_echo"; } >&5
4489 (eval "$ac_link_default") 2>&5
4490 ac_status=$?
4491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492 test $ac_status = 0; }; then :
4493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4495 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4496 # so that the user can short-circuit this test for compilers unknown to
4497 # Autoconf.
4498 for ac_file in $ac_files ''
4500 test -f "$ac_file" || continue
4501 case $ac_file in
4502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4504 [ab].out )
4505 # We found the default executable, but exeext='' is most
4506 # certainly right.
4507 break;;
4508 *.* )
4509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4510 then :; else
4511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4513 # We set ac_cv_exeext here because the later test for it is not
4514 # safe: cross compilers may not add the suffix if given an `-o'
4515 # argument, so we may need to know it at that point already.
4516 # Even if this section looks crufty: it has the advantage of
4517 # actually working.
4518 break;;
4520 break;;
4521 esac
4522 done
4523 test "$ac_cv_exeext" = no && ac_cv_exeext=
4525 else
4526 ac_file=''
4528 if test -z "$ac_file"; then :
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 $as_echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error 77 "C compiler cannot create executables
4537 See \`config.log' for more details" "$LINENO" 5; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540 $as_echo "yes" >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4543 $as_echo_n "checking for C compiler default output file name... " >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4545 $as_echo "$ac_file" >&6; }
4546 ac_exeext=$ac_cv_exeext
4548 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4549 ac_clean_files=$ac_clean_files_save
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4551 $as_echo_n "checking for suffix of executables... " >&6; }
4552 if { { ac_try="$ac_link"
4553 case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556 esac
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 $as_echo "$ac_try_echo"; } >&5
4559 (eval "$ac_link") 2>&5
4560 ac_status=$?
4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }; then :
4563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4565 # work properly (i.e., refer to `conftest.exe'), while it won't with
4566 # `rm'.
4567 for ac_file in conftest.exe conftest conftest.*; do
4568 test -f "$ac_file" || continue
4569 case $ac_file in
4570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4572 break;;
4573 * ) break;;
4574 esac
4575 done
4576 else
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 $? "cannot compute suffix of executables: cannot compile and link
4580 See \`config.log' for more details" "$LINENO" 5; }
4582 rm -f conftest conftest$ac_cv_exeext
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4584 $as_echo "$ac_cv_exeext" >&6; }
4586 rm -f conftest.$ac_ext
4587 EXEEXT=$ac_cv_exeext
4588 ac_exeext=$EXEEXT
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 #include <stdio.h>
4593 main ()
4595 FILE *f = fopen ("conftest.out", "w");
4596 return ferror (f) || fclose (f) != 0;
4599 return 0;
4601 _ACEOF
4602 ac_clean_files="$ac_clean_files conftest.out"
4603 # Check that the compiler produces executables we can run. If not, either
4604 # the compiler is broken, or we cross compile.
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4606 $as_echo_n "checking whether we are cross compiling... " >&6; }
4607 if test "$cross_compiling" != yes; then
4608 { { ac_try="$ac_link"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615 (eval "$ac_link") 2>&5
4616 ac_status=$?
4617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618 test $ac_status = 0; }
4619 if { ac_try='./conftest$ac_cv_exeext'
4620 { { case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_try") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }; }; then
4630 cross_compiling=no
4631 else
4632 if test "$cross_compiling" = maybe; then
4633 cross_compiling=yes
4634 else
4635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4637 as_fn_error $? "cannot run C compiled programs.
4638 If you meant to cross compile, use \`--host'.
4639 See \`config.log' for more details" "$LINENO" 5; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4644 $as_echo "$cross_compiling" >&6; }
4646 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4647 ac_clean_files=$ac_clean_files_save
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4649 $as_echo_n "checking for suffix of object files... " >&6; }
4650 if ${ac_cv_objext+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4657 main ()
4661 return 0;
4663 _ACEOF
4664 rm -f conftest.o conftest.obj
4665 if { { ac_try="$ac_compile"
4666 case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669 esac
4670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4671 $as_echo "$ac_try_echo"; } >&5
4672 (eval "$ac_compile") 2>&5
4673 ac_status=$?
4674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675 test $ac_status = 0; }; then :
4676 for ac_file in conftest.o conftest.obj conftest.*; do
4677 test -f "$ac_file" || continue;
4678 case $ac_file in
4679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4681 break;;
4682 esac
4683 done
4684 else
4685 $as_echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 as_fn_error $? "cannot compute suffix of object files: cannot compile
4691 See \`config.log' for more details" "$LINENO" 5; }
4693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4696 $as_echo "$ac_cv_objext" >&6; }
4697 OBJEXT=$ac_cv_objext
4698 ac_objext=$OBJEXT
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4700 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4701 if ${ac_cv_c_compiler_gnu+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4708 main ()
4710 #ifndef __GNUC__
4711 choke me
4712 #endif
4715 return 0;
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719 ac_compiler_gnu=yes
4720 else
4721 ac_compiler_gnu=no
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4728 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4729 if test $ac_compiler_gnu = yes; then
4730 GCC=yes
4731 else
4732 GCC=
4734 ac_test_CFLAGS=${CFLAGS+set}
4735 ac_save_CFLAGS=$CFLAGS
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4737 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4738 if ${ac_cv_prog_cc_g+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 ac_save_c_werror_flag=$ac_c_werror_flag
4742 ac_c_werror_flag=yes
4743 ac_cv_prog_cc_g=no
4744 CFLAGS="-g"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4749 main ()
4753 return 0;
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 ac_cv_prog_cc_g=yes
4758 else
4759 CFLAGS=""
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4764 main ()
4768 return 0;
4770 _ACEOF
4771 if ac_fn_c_try_compile "$LINENO"; then :
4773 else
4774 ac_c_werror_flag=$ac_save_c_werror_flag
4775 CFLAGS="-g"
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4780 main ()
4784 return 0;
4786 _ACEOF
4787 if ac_fn_c_try_compile "$LINENO"; then :
4788 ac_cv_prog_cc_g=yes
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4798 $as_echo "$ac_cv_prog_cc_g" >&6; }
4799 if test "$ac_test_CFLAGS" = set; then
4800 CFLAGS=$ac_save_CFLAGS
4801 elif test $ac_cv_prog_cc_g = yes; then
4802 if test "$GCC" = yes; then
4803 CFLAGS="-g -O2"
4804 else
4805 CFLAGS="-g"
4807 else
4808 if test "$GCC" = yes; then
4809 CFLAGS="-O2"
4810 else
4811 CFLAGS=
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4815 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4816 if ${ac_cv_prog_cc_c89+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 ac_cv_prog_cc_c89=no
4820 ac_save_CC=$CC
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4823 #include <stdarg.h>
4824 #include <stdio.h>
4825 struct stat;
4826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4827 struct buf { int x; };
4828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4829 static char *e (p, i)
4830 char **p;
4831 int i;
4833 return p[i];
4835 static char *f (char * (*g) (char **, int), char **p, ...)
4837 char *s;
4838 va_list v;
4839 va_start (v,p);
4840 s = g (p, va_arg (v,int));
4841 va_end (v);
4842 return s;
4845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4846 function prototypes and stuff, but not '\xHH' hex character constants.
4847 These don't provoke an error unfortunately, instead are silently treated
4848 as 'x'. The following induces an error, until -std is added to get
4849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4850 array size at least. It's necessary to write '\x00'==0 to get something
4851 that's true only with -std. */
4852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4855 inside strings and character constants. */
4856 #define FOO(x) 'x'
4857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4859 int test (int i, double x);
4860 struct s1 {int (*f) (int a);};
4861 struct s2 {int (*f) (double a);};
4862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4863 int argc;
4864 char **argv;
4866 main ()
4868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4870 return 0;
4872 _ACEOF
4873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4876 CC="$ac_save_CC $ac_arg"
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_prog_cc_c89=$ac_arg
4880 rm -f core conftest.err conftest.$ac_objext
4881 test "x$ac_cv_prog_cc_c89" != "xno" && break
4882 done
4883 rm -f conftest.$ac_ext
4884 CC=$ac_save_CC
4887 # AC_CACHE_VAL
4888 case "x$ac_cv_prog_cc_c89" in
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4891 $as_echo "none needed" >&6; } ;;
4892 xno)
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4894 $as_echo "unsupported" >&6; } ;;
4896 CC="$CC $ac_cv_prog_cc_c89"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4898 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4899 esac
4900 if test "x$ac_cv_prog_cc_c89" != xno; then :
4904 ac_ext=c
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4911 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4912 if ${ac_cv_prog_cc_c99+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 ac_cv_prog_cc_c99=no
4916 ac_save_CC=$CC
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 #include <stdarg.h>
4920 #include <stdbool.h>
4921 #include <stdlib.h>
4922 #include <wchar.h>
4923 #include <stdio.h>
4925 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4926 #define debug(...) fprintf (stderr, __VA_ARGS__)
4927 #define showlist(...) puts (#__VA_ARGS__)
4928 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4929 static void
4930 test_varargs_macros (void)
4932 int x = 1234;
4933 int y = 5678;
4934 debug ("Flag");
4935 debug ("X = %d\n", x);
4936 showlist (The first, second, and third items.);
4937 report (x>y, "x is %d but y is %d", x, y);
4940 // Check long long types.
4941 #define BIG64 18446744073709551615ull
4942 #define BIG32 4294967295ul
4943 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4944 #if !BIG_OK
4945 your preprocessor is broken;
4946 #endif
4947 #if BIG_OK
4948 #else
4949 your preprocessor is broken;
4950 #endif
4951 static long long int bignum = -9223372036854775807LL;
4952 static unsigned long long int ubignum = BIG64;
4954 struct incomplete_array
4956 int datasize;
4957 double data[];
4960 struct named_init {
4961 int number;
4962 const wchar_t *name;
4963 double average;
4966 typedef const char *ccp;
4968 static inline int
4969 test_restrict (ccp restrict text)
4971 // See if C++-style comments work.
4972 // Iterate through items via the restricted pointer.
4973 // Also check for declarations in for loops.
4974 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4975 continue;
4976 return 0;
4979 // Check varargs and va_copy.
4980 static void
4981 test_varargs (const char *format, ...)
4983 va_list args;
4984 va_start (args, format);
4985 va_list args_copy;
4986 va_copy (args_copy, args);
4988 const char *str;
4989 int number;
4990 float fnumber;
4992 while (*format)
4994 switch (*format++)
4996 case 's': // string
4997 str = va_arg (args_copy, const char *);
4998 break;
4999 case 'd': // int
5000 number = va_arg (args_copy, int);
5001 break;
5002 case 'f': // float
5003 fnumber = va_arg (args_copy, double);
5004 break;
5005 default:
5006 break;
5009 va_end (args_copy);
5010 va_end (args);
5014 main ()
5017 // Check bool.
5018 _Bool success = false;
5020 // Check restrict.
5021 if (test_restrict ("String literal") == 0)
5022 success = true;
5023 char *restrict newvar = "Another string";
5025 // Check varargs.
5026 test_varargs ("s, d' f .", "string", 65, 34.234);
5027 test_varargs_macros ();
5029 // Check flexible array members.
5030 struct incomplete_array *ia =
5031 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5032 ia->datasize = 10;
5033 for (int i = 0; i < ia->datasize; ++i)
5034 ia->data[i] = i * 1.234;
5036 // Check named initializers.
5037 struct named_init ni = {
5038 .number = 34,
5039 .name = L"Test wide string",
5040 .average = 543.34343,
5043 ni.number = 58;
5045 int dynamic_array[ni.number];
5046 dynamic_array[ni.number - 1] = 543;
5048 // work around unused variable warnings
5049 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5050 || dynamic_array[ni.number - 1] != 543);
5053 return 0;
5055 _ACEOF
5056 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5058 CC="$ac_save_CC $ac_arg"
5059 if ac_fn_c_try_compile "$LINENO"; then :
5060 ac_cv_prog_cc_c99=$ac_arg
5062 rm -f core conftest.err conftest.$ac_objext
5063 test "x$ac_cv_prog_cc_c99" != "xno" && break
5064 done
5065 rm -f conftest.$ac_ext
5066 CC=$ac_save_CC
5069 # AC_CACHE_VAL
5070 case "x$ac_cv_prog_cc_c99" in
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5073 $as_echo "none needed" >&6; } ;;
5074 xno)
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5076 $as_echo "unsupported" >&6; } ;;
5078 CC="$CC $ac_cv_prog_cc_c99"
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5080 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5081 esac
5082 if test "x$ac_cv_prog_cc_c99" != xno; then :
5087 ac_ext=cpp
5088 ac_cpp='$CXXCPP $CPPFLAGS'
5089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5092 if test -z "$CXX"; then
5093 if test -n "$CCC"; then
5094 CXX=$CCC
5095 else
5096 if test -n "$ac_tool_prefix"; then
5097 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if ${ac_cv_prog_CXX+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 if test -n "$CXX"; then
5107 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5120 done
5121 done
5122 IFS=$as_save_IFS
5126 CXX=$ac_cv_prog_CXX
5127 if test -n "$CXX"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5129 $as_echo "$CXX" >&6; }
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5136 test -n "$CXX" && break
5137 done
5139 if test -z "$CXX"; then
5140 ac_ct_CXX=$CXX
5141 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5143 # Extract the first word of "$ac_prog", so it can be a program name with args.
5144 set dummy $ac_prog; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$ac_ct_CXX"; then
5151 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_ac_ct_CXX="$ac_prog"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5170 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5171 if test -n "$ac_ct_CXX"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5173 $as_echo "$ac_ct_CXX" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5180 test -n "$ac_ct_CXX" && break
5181 done
5183 if test "x$ac_ct_CXX" = x; then
5184 CXX="g++"
5185 else
5186 case $cross_compiling:$ac_tool_warned in
5187 yes:)
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5190 ac_tool_warned=yes ;;
5191 esac
5192 CXX=$ac_ct_CXX
5198 # Provide some information about the compiler.
5199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5200 set X $ac_compile
5201 ac_compiler=$2
5202 for ac_option in --version -v -V -qversion; do
5203 { { ac_try="$ac_compiler $ac_option >&5"
5204 case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207 esac
5208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5209 $as_echo "$ac_try_echo"; } >&5
5210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5211 ac_status=$?
5212 if test -s conftest.err; then
5213 sed '10a\
5214 ... rest of stderr output deleted ...
5215 10q' conftest.err >conftest.er1
5216 cat conftest.er1 >&5
5218 rm -f conftest.er1 conftest.err
5219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5220 test $ac_status = 0; }
5221 done
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5224 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5225 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5232 main ()
5234 #ifndef __GNUC__
5235 choke me
5236 #endif
5239 return 0;
5241 _ACEOF
5242 if ac_fn_cxx_try_compile "$LINENO"; then :
5243 ac_compiler_gnu=yes
5244 else
5245 ac_compiler_gnu=no
5247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5252 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5253 if test $ac_compiler_gnu = yes; then
5254 GXX=yes
5255 else
5256 GXX=
5258 ac_test_CXXFLAGS=${CXXFLAGS+set}
5259 ac_save_CXXFLAGS=$CXXFLAGS
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5261 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5262 if ${ac_cv_prog_cxx_g+:} false; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5266 ac_cxx_werror_flag=yes
5267 ac_cv_prog_cxx_g=no
5268 CXXFLAGS="-g"
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5273 main ()
5277 return 0;
5279 _ACEOF
5280 if ac_fn_cxx_try_compile "$LINENO"; then :
5281 ac_cv_prog_cxx_g=yes
5282 else
5283 CXXFLAGS=""
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5288 main ()
5292 return 0;
5294 _ACEOF
5295 if ac_fn_cxx_try_compile "$LINENO"; then :
5297 else
5298 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5299 CXXFLAGS="-g"
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5304 main ()
5308 return 0;
5310 _ACEOF
5311 if ac_fn_cxx_try_compile "$LINENO"; then :
5312 ac_cv_prog_cxx_g=yes
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5322 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5323 if test "$ac_test_CXXFLAGS" = set; then
5324 CXXFLAGS=$ac_save_CXXFLAGS
5325 elif test $ac_cv_prog_cxx_g = yes; then
5326 if test "$GXX" = yes; then
5327 CXXFLAGS="-g -O2"
5328 else
5329 CXXFLAGS="-g"
5331 else
5332 if test "$GXX" = yes; then
5333 CXXFLAGS="-O2"
5334 else
5335 CXXFLAGS=
5338 ac_ext=c
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5345 # We must set the default linker to the linker used by gcc for the correct
5346 # operation of libtool. If LD is not defined and we are using gcc, try to
5347 # set the LD default to the ld used by gcc.
5348 if test -z "$LD"; then
5349 if test "$GCC" = yes; then
5350 case $build in
5351 *-*-mingw*)
5352 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5354 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5355 esac
5356 case $gcc_prog_ld in
5357 # Accept absolute paths.
5358 [\\/]* | [A-Za-z]:[\\/]*)
5359 LD="$gcc_prog_ld" ;;
5360 esac
5364 # Check whether -static-libstdc++ -static-libgcc is supported.
5365 have_static_libs=no
5366 if test "$GCC" = yes; then
5367 saved_LDFLAGS="$LDFLAGS"
5369 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5371 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5372 ac_ext=cpp
5373 ac_cpp='$CXXCPP $CPPFLAGS'
5374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5382 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5383 #error -static-libstdc++ not implemented
5384 #endif
5385 int main() {}
5386 _ACEOF
5387 if ac_fn_cxx_try_link "$LINENO"; then :
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5389 $as_echo "yes" >&6; }; have_static_libs=yes
5390 else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5394 rm -f core conftest.err conftest.$ac_objext \
5395 conftest$ac_exeext conftest.$ac_ext
5396 ac_ext=c
5397 ac_cpp='$CPP $CPPFLAGS'
5398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403 LDFLAGS="$saved_LDFLAGS"
5409 if test -n "$ac_tool_prefix"; then
5410 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5411 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if ${ac_cv_prog_GNATBIND+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 if test -n "$GNATBIND"; then
5418 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5431 done
5432 done
5433 IFS=$as_save_IFS
5437 GNATBIND=$ac_cv_prog_GNATBIND
5438 if test -n "$GNATBIND"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5440 $as_echo "$GNATBIND" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5448 if test -z "$ac_cv_prog_GNATBIND"; then
5449 ac_ct_GNATBIND=$GNATBIND
5450 # Extract the first word of "gnatbind", so it can be a program name with args.
5451 set dummy gnatbind; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$ac_ct_GNATBIND"; then
5458 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5471 done
5472 done
5473 IFS=$as_save_IFS
5477 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5478 if test -n "$ac_ct_GNATBIND"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5480 $as_echo "$ac_ct_GNATBIND" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5486 if test "x$ac_ct_GNATBIND" = x; then
5487 GNATBIND="no"
5488 else
5489 case $cross_compiling:$ac_tool_warned in
5490 yes:)
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5494 esac
5495 GNATBIND=$ac_ct_GNATBIND
5497 else
5498 GNATBIND="$ac_cv_prog_GNATBIND"
5501 if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5503 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_prog_GNATMAKE+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 if test -n "$GNATMAKE"; then
5510 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5523 done
5524 done
5525 IFS=$as_save_IFS
5529 GNATMAKE=$ac_cv_prog_GNATMAKE
5530 if test -n "$GNATMAKE"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5532 $as_echo "$GNATMAKE" >&6; }
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5540 if test -z "$ac_cv_prog_GNATMAKE"; then
5541 ac_ct_GNATMAKE=$GNATMAKE
5542 # Extract the first word of "gnatmake", so it can be a program name with args.
5543 set dummy gnatmake; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 if test -n "$ac_ct_GNATMAKE"; then
5550 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5563 done
5564 done
5565 IFS=$as_save_IFS
5569 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5570 if test -n "$ac_ct_GNATMAKE"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5572 $as_echo "$ac_ct_GNATMAKE" >&6; }
5573 else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5578 if test "x$ac_ct_GNATMAKE" = x; then
5579 GNATMAKE="no"
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582 yes:)
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585 ac_tool_warned=yes ;;
5586 esac
5587 GNATMAKE=$ac_ct_GNATMAKE
5589 else
5590 GNATMAKE="$ac_cv_prog_GNATMAKE"
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5594 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5595 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 cat >conftest.adb <<EOF
5599 procedure conftest is begin null; end conftest;
5601 acx_cv_cc_gcc_supports_ada=no
5602 # There is a bug in old released versions of GCC which causes the
5603 # driver to exit successfully when the appropriate language module
5604 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5605 # Therefore we must check for the error message as well as an
5606 # unsuccessful exit.
5607 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5608 # given a .adb file, but produce no object file. So we must check
5609 # if an object file was really produced to guard against this.
5610 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5611 if test x"$errors" = x && test -f conftest.$ac_objext; then
5612 acx_cv_cc_gcc_supports_ada=yes
5614 rm -f conftest.*
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5617 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5619 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5620 have_gnat=yes
5621 else
5622 have_gnat=no
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5626 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5627 if ${gcc_cv_prog_cmp_skip+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 echo abfoo >t1
5631 echo cdfoo >t2
5632 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5633 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5634 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5636 else
5637 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5640 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5641 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5643 else
5644 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5647 rm t1 t2
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5651 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5652 do_compare="$gcc_cv_prog_cmp_skip"
5656 # Check whether --enable-bootstrap was given.
5657 if test "${enable_bootstrap+set}" = set; then :
5658 enableval=$enable_bootstrap;
5659 else
5660 enable_bootstrap=default
5664 # Issue errors and warnings for invalid/strange bootstrap combinations.
5665 if test -r $srcdir/gcc/configure; then
5666 have_compiler=yes
5667 else
5668 have_compiler=no
5671 case "$have_compiler:$host:$target:$enable_bootstrap" in
5672 *:*:*:no) ;;
5674 # Default behavior. Enable bootstrap if we have a compiler
5675 # and we are in a native configuration.
5676 yes:$build:$build:default)
5677 enable_bootstrap=yes ;;
5679 *:*:*:default)
5680 enable_bootstrap=no ;;
5682 # We have a compiler and we are in a native configuration, bootstrap is ok
5683 yes:$build:$build:yes)
5686 # Other configurations, but we have a compiler. Assume the user knows
5687 # what he's doing.
5688 yes:*:*:yes)
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5690 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5693 # No compiler: if they passed --enable-bootstrap explicitly, fail
5694 no:*:*:yes)
5695 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5697 # Fail if wrong command line
5699 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5701 esac
5703 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5704 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5705 # require C++11 (or higher).
5706 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5707 CXX="$CXX -std=c++11"
5708 elif test "$have_compiler" = yes; then
5709 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5710 ac_ext=cpp
5711 ac_cpp='$CXXCPP $CPPFLAGS'
5712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5715 ac_success=no
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5718 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5719 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5726 // If the compiler admits that it is not ready for C++11, why torture it?
5727 // Hopefully, this will speed up the test.
5729 #ifndef __cplusplus
5731 #error "This is not a C++ compiler"
5733 #elif __cplusplus < 201103L
5735 #error "This is not a C++11 compiler"
5737 #else
5739 namespace cxx11
5742 namespace test_static_assert
5745 template <typename T>
5746 struct check
5748 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5753 namespace test_final_override
5756 struct Base
5758 virtual ~Base() {}
5759 virtual void f() {}
5762 struct Derived : public Base
5764 virtual ~Derived() override {}
5765 virtual void f() override {}
5770 namespace test_double_right_angle_brackets
5773 template < typename T >
5774 struct check {};
5776 typedef check<void> single_type;
5777 typedef check<check<void>> double_type;
5778 typedef check<check<check<void>>> triple_type;
5779 typedef check<check<check<check<void>>>> quadruple_type;
5783 namespace test_decltype
5789 int a = 1;
5790 decltype(a) b = 2;
5791 return a + b;
5796 namespace test_type_deduction
5799 template < typename T1, typename T2 >
5800 struct is_same
5802 static const bool value = false;
5805 template < typename T >
5806 struct is_same<T, T>
5808 static const bool value = true;
5811 template < typename T1, typename T2 >
5812 auto
5813 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5815 return a1 + a2;
5819 test(const int c, volatile int v)
5821 static_assert(is_same<int, decltype(0)>::value == true, "");
5822 static_assert(is_same<int, decltype(c)>::value == false, "");
5823 static_assert(is_same<int, decltype(v)>::value == false, "");
5824 auto ac = c;
5825 auto av = v;
5826 auto sumi = ac + av + 'x';
5827 auto sumf = ac + av + 1.0;
5828 static_assert(is_same<int, decltype(ac)>::value == true, "");
5829 static_assert(is_same<int, decltype(av)>::value == true, "");
5830 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5831 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5832 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5833 return (sumf > 0.0) ? sumi : add(c, v);
5838 namespace test_noexcept
5841 int f() { return 0; }
5842 int g() noexcept { return 0; }
5844 static_assert(noexcept(f()) == false, "");
5845 static_assert(noexcept(g()) == true, "");
5849 namespace test_constexpr
5852 template < typename CharT >
5853 unsigned long constexpr
5854 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5856 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5859 template < typename CharT >
5860 unsigned long constexpr
5861 strlen_c(const CharT *const s) noexcept
5863 return strlen_c_r(s, 0UL);
5866 static_assert(strlen_c("") == 0UL, "");
5867 static_assert(strlen_c("1") == 1UL, "");
5868 static_assert(strlen_c("example") == 7UL, "");
5869 static_assert(strlen_c("another\0example") == 7UL, "");
5873 namespace test_rvalue_references
5876 template < int N >
5877 struct answer
5879 static constexpr int value = N;
5882 answer<1> f(int&) { return answer<1>(); }
5883 answer<2> f(const int&) { return answer<2>(); }
5884 answer<3> f(int&&) { return answer<3>(); }
5886 void
5887 test()
5889 int i = 0;
5890 const int c = 0;
5891 static_assert(decltype(f(i))::value == 1, "");
5892 static_assert(decltype(f(c))::value == 2, "");
5893 static_assert(decltype(f(0))::value == 3, "");
5898 namespace test_uniform_initialization
5901 struct test
5903 static const int zero {};
5904 static const int one {1};
5907 static_assert(test::zero == 0, "");
5908 static_assert(test::one == 1, "");
5912 namespace test_lambdas
5915 void
5916 test1()
5918 auto lambda1 = [](){};
5919 auto lambda2 = lambda1;
5920 lambda1();
5921 lambda2();
5925 test2()
5927 auto a = [](int i, int j){ return i + j; }(1, 2);
5928 auto b = []() -> int { return '0'; }();
5929 auto c = [=](){ return a + b; }();
5930 auto d = [&](){ return c; }();
5931 auto e = [a, &b](int x) mutable {
5932 const auto identity = [](int y){ return y; };
5933 for (auto i = 0; i < a; ++i)
5934 a += b--;
5935 return x + identity(a + b);
5936 }(0);
5937 return a + b + c + d + e;
5941 test3()
5943 const auto nullary = [](){ return 0; };
5944 const auto unary = [](int x){ return x; };
5945 using nullary_t = decltype(nullary);
5946 using unary_t = decltype(unary);
5947 const auto higher1st = [](nullary_t f){ return f(); };
5948 const auto higher2nd = [unary](nullary_t f1){
5949 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5951 return higher1st(nullary) + higher2nd(nullary)(unary);
5956 namespace test_variadic_templates
5959 template <int...>
5960 struct sum;
5962 template <int N0, int... N1toN>
5963 struct sum<N0, N1toN...>
5965 static constexpr auto value = N0 + sum<N1toN...>::value;
5968 template <>
5969 struct sum<>
5971 static constexpr auto value = 0;
5974 static_assert(sum<>::value == 0, "");
5975 static_assert(sum<1>::value == 1, "");
5976 static_assert(sum<23>::value == 23, "");
5977 static_assert(sum<1, 2>::value == 3, "");
5978 static_assert(sum<5, 5, 11>::value == 21, "");
5979 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5983 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5984 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5985 // because of this.
5986 namespace test_template_alias_sfinae
5989 struct foo {};
5991 template<typename T>
5992 using member = typename T::member_type;
5994 template<typename T>
5995 void func(...) {}
5997 template<typename T>
5998 void func(member<T>*) {}
6000 void test();
6002 void test() { func<foo>(0); }
6006 } // namespace cxx11
6008 #endif // __cplusplus >= 201103L
6012 _ACEOF
6013 if ac_fn_cxx_try_compile "$LINENO"; then :
6014 ax_cv_cxx_compile_cxx11=yes
6015 else
6016 ax_cv_cxx_compile_cxx11=no
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6021 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6022 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6023 ac_success=yes
6026 if test x$ac_success = xno; then
6027 for alternative in ${ax_cxx_compile_alternatives}; do
6028 switch="-std=gnu++${alternative}"
6029 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6031 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6032 if eval \${$cachevar+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 ac_save_CXX="$CXX"
6036 CXX="$CXX $switch"
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6041 // If the compiler admits that it is not ready for C++11, why torture it?
6042 // Hopefully, this will speed up the test.
6044 #ifndef __cplusplus
6046 #error "This is not a C++ compiler"
6048 #elif __cplusplus < 201103L
6050 #error "This is not a C++11 compiler"
6052 #else
6054 namespace cxx11
6057 namespace test_static_assert
6060 template <typename T>
6061 struct check
6063 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6068 namespace test_final_override
6071 struct Base
6073 virtual ~Base() {}
6074 virtual void f() {}
6077 struct Derived : public Base
6079 virtual ~Derived() override {}
6080 virtual void f() override {}
6085 namespace test_double_right_angle_brackets
6088 template < typename T >
6089 struct check {};
6091 typedef check<void> single_type;
6092 typedef check<check<void>> double_type;
6093 typedef check<check<check<void>>> triple_type;
6094 typedef check<check<check<check<void>>>> quadruple_type;
6098 namespace test_decltype
6104 int a = 1;
6105 decltype(a) b = 2;
6106 return a + b;
6111 namespace test_type_deduction
6114 template < typename T1, typename T2 >
6115 struct is_same
6117 static const bool value = false;
6120 template < typename T >
6121 struct is_same<T, T>
6123 static const bool value = true;
6126 template < typename T1, typename T2 >
6127 auto
6128 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6130 return a1 + a2;
6134 test(const int c, volatile int v)
6136 static_assert(is_same<int, decltype(0)>::value == true, "");
6137 static_assert(is_same<int, decltype(c)>::value == false, "");
6138 static_assert(is_same<int, decltype(v)>::value == false, "");
6139 auto ac = c;
6140 auto av = v;
6141 auto sumi = ac + av + 'x';
6142 auto sumf = ac + av + 1.0;
6143 static_assert(is_same<int, decltype(ac)>::value == true, "");
6144 static_assert(is_same<int, decltype(av)>::value == true, "");
6145 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6146 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6147 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6148 return (sumf > 0.0) ? sumi : add(c, v);
6153 namespace test_noexcept
6156 int f() { return 0; }
6157 int g() noexcept { return 0; }
6159 static_assert(noexcept(f()) == false, "");
6160 static_assert(noexcept(g()) == true, "");
6164 namespace test_constexpr
6167 template < typename CharT >
6168 unsigned long constexpr
6169 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6171 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6174 template < typename CharT >
6175 unsigned long constexpr
6176 strlen_c(const CharT *const s) noexcept
6178 return strlen_c_r(s, 0UL);
6181 static_assert(strlen_c("") == 0UL, "");
6182 static_assert(strlen_c("1") == 1UL, "");
6183 static_assert(strlen_c("example") == 7UL, "");
6184 static_assert(strlen_c("another\0example") == 7UL, "");
6188 namespace test_rvalue_references
6191 template < int N >
6192 struct answer
6194 static constexpr int value = N;
6197 answer<1> f(int&) { return answer<1>(); }
6198 answer<2> f(const int&) { return answer<2>(); }
6199 answer<3> f(int&&) { return answer<3>(); }
6201 void
6202 test()
6204 int i = 0;
6205 const int c = 0;
6206 static_assert(decltype(f(i))::value == 1, "");
6207 static_assert(decltype(f(c))::value == 2, "");
6208 static_assert(decltype(f(0))::value == 3, "");
6213 namespace test_uniform_initialization
6216 struct test
6218 static const int zero {};
6219 static const int one {1};
6222 static_assert(test::zero == 0, "");
6223 static_assert(test::one == 1, "");
6227 namespace test_lambdas
6230 void
6231 test1()
6233 auto lambda1 = [](){};
6234 auto lambda2 = lambda1;
6235 lambda1();
6236 lambda2();
6240 test2()
6242 auto a = [](int i, int j){ return i + j; }(1, 2);
6243 auto b = []() -> int { return '0'; }();
6244 auto c = [=](){ return a + b; }();
6245 auto d = [&](){ return c; }();
6246 auto e = [a, &b](int x) mutable {
6247 const auto identity = [](int y){ return y; };
6248 for (auto i = 0; i < a; ++i)
6249 a += b--;
6250 return x + identity(a + b);
6251 }(0);
6252 return a + b + c + d + e;
6256 test3()
6258 const auto nullary = [](){ return 0; };
6259 const auto unary = [](int x){ return x; };
6260 using nullary_t = decltype(nullary);
6261 using unary_t = decltype(unary);
6262 const auto higher1st = [](nullary_t f){ return f(); };
6263 const auto higher2nd = [unary](nullary_t f1){
6264 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6266 return higher1st(nullary) + higher2nd(nullary)(unary);
6271 namespace test_variadic_templates
6274 template <int...>
6275 struct sum;
6277 template <int N0, int... N1toN>
6278 struct sum<N0, N1toN...>
6280 static constexpr auto value = N0 + sum<N1toN...>::value;
6283 template <>
6284 struct sum<>
6286 static constexpr auto value = 0;
6289 static_assert(sum<>::value == 0, "");
6290 static_assert(sum<1>::value == 1, "");
6291 static_assert(sum<23>::value == 23, "");
6292 static_assert(sum<1, 2>::value == 3, "");
6293 static_assert(sum<5, 5, 11>::value == 21, "");
6294 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6298 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6299 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6300 // because of this.
6301 namespace test_template_alias_sfinae
6304 struct foo {};
6306 template<typename T>
6307 using member = typename T::member_type;
6309 template<typename T>
6310 void func(...) {}
6312 template<typename T>
6313 void func(member<T>*) {}
6315 void test();
6317 void test() { func<foo>(0); }
6321 } // namespace cxx11
6323 #endif // __cplusplus >= 201103L
6327 _ACEOF
6328 if ac_fn_cxx_try_compile "$LINENO"; then :
6329 eval $cachevar=yes
6330 else
6331 eval $cachevar=no
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 CXX="$ac_save_CXX"
6336 eval ac_res=\$$cachevar
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6338 $as_echo "$ac_res" >&6; }
6339 if eval test x\$$cachevar = xyes; then
6340 CXX="$CXX $switch"
6341 if test -n "$CXXCPP" ; then
6342 CXXCPP="$CXXCPP $switch"
6344 ac_success=yes
6345 break
6347 done
6350 if test x$ac_success = xno; then
6351 for alternative in ${ax_cxx_compile_alternatives}; do
6352 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6353 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6355 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6356 if eval \${$cachevar+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 ac_save_CXX="$CXX"
6360 CXX="$CXX $switch"
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6365 // If the compiler admits that it is not ready for C++11, why torture it?
6366 // Hopefully, this will speed up the test.
6368 #ifndef __cplusplus
6370 #error "This is not a C++ compiler"
6372 #elif __cplusplus < 201103L
6374 #error "This is not a C++11 compiler"
6376 #else
6378 namespace cxx11
6381 namespace test_static_assert
6384 template <typename T>
6385 struct check
6387 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6392 namespace test_final_override
6395 struct Base
6397 virtual ~Base() {}
6398 virtual void f() {}
6401 struct Derived : public Base
6403 virtual ~Derived() override {}
6404 virtual void f() override {}
6409 namespace test_double_right_angle_brackets
6412 template < typename T >
6413 struct check {};
6415 typedef check<void> single_type;
6416 typedef check<check<void>> double_type;
6417 typedef check<check<check<void>>> triple_type;
6418 typedef check<check<check<check<void>>>> quadruple_type;
6422 namespace test_decltype
6428 int a = 1;
6429 decltype(a) b = 2;
6430 return a + b;
6435 namespace test_type_deduction
6438 template < typename T1, typename T2 >
6439 struct is_same
6441 static const bool value = false;
6444 template < typename T >
6445 struct is_same<T, T>
6447 static const bool value = true;
6450 template < typename T1, typename T2 >
6451 auto
6452 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6454 return a1 + a2;
6458 test(const int c, volatile int v)
6460 static_assert(is_same<int, decltype(0)>::value == true, "");
6461 static_assert(is_same<int, decltype(c)>::value == false, "");
6462 static_assert(is_same<int, decltype(v)>::value == false, "");
6463 auto ac = c;
6464 auto av = v;
6465 auto sumi = ac + av + 'x';
6466 auto sumf = ac + av + 1.0;
6467 static_assert(is_same<int, decltype(ac)>::value == true, "");
6468 static_assert(is_same<int, decltype(av)>::value == true, "");
6469 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6470 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6471 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6472 return (sumf > 0.0) ? sumi : add(c, v);
6477 namespace test_noexcept
6480 int f() { return 0; }
6481 int g() noexcept { return 0; }
6483 static_assert(noexcept(f()) == false, "");
6484 static_assert(noexcept(g()) == true, "");
6488 namespace test_constexpr
6491 template < typename CharT >
6492 unsigned long constexpr
6493 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6495 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6498 template < typename CharT >
6499 unsigned long constexpr
6500 strlen_c(const CharT *const s) noexcept
6502 return strlen_c_r(s, 0UL);
6505 static_assert(strlen_c("") == 0UL, "");
6506 static_assert(strlen_c("1") == 1UL, "");
6507 static_assert(strlen_c("example") == 7UL, "");
6508 static_assert(strlen_c("another\0example") == 7UL, "");
6512 namespace test_rvalue_references
6515 template < int N >
6516 struct answer
6518 static constexpr int value = N;
6521 answer<1> f(int&) { return answer<1>(); }
6522 answer<2> f(const int&) { return answer<2>(); }
6523 answer<3> f(int&&) { return answer<3>(); }
6525 void
6526 test()
6528 int i = 0;
6529 const int c = 0;
6530 static_assert(decltype(f(i))::value == 1, "");
6531 static_assert(decltype(f(c))::value == 2, "");
6532 static_assert(decltype(f(0))::value == 3, "");
6537 namespace test_uniform_initialization
6540 struct test
6542 static const int zero {};
6543 static const int one {1};
6546 static_assert(test::zero == 0, "");
6547 static_assert(test::one == 1, "");
6551 namespace test_lambdas
6554 void
6555 test1()
6557 auto lambda1 = [](){};
6558 auto lambda2 = lambda1;
6559 lambda1();
6560 lambda2();
6564 test2()
6566 auto a = [](int i, int j){ return i + j; }(1, 2);
6567 auto b = []() -> int { return '0'; }();
6568 auto c = [=](){ return a + b; }();
6569 auto d = [&](){ return c; }();
6570 auto e = [a, &b](int x) mutable {
6571 const auto identity = [](int y){ return y; };
6572 for (auto i = 0; i < a; ++i)
6573 a += b--;
6574 return x + identity(a + b);
6575 }(0);
6576 return a + b + c + d + e;
6580 test3()
6582 const auto nullary = [](){ return 0; };
6583 const auto unary = [](int x){ return x; };
6584 using nullary_t = decltype(nullary);
6585 using unary_t = decltype(unary);
6586 const auto higher1st = [](nullary_t f){ return f(); };
6587 const auto higher2nd = [unary](nullary_t f1){
6588 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6590 return higher1st(nullary) + higher2nd(nullary)(unary);
6595 namespace test_variadic_templates
6598 template <int...>
6599 struct sum;
6601 template <int N0, int... N1toN>
6602 struct sum<N0, N1toN...>
6604 static constexpr auto value = N0 + sum<N1toN...>::value;
6607 template <>
6608 struct sum<>
6610 static constexpr auto value = 0;
6613 static_assert(sum<>::value == 0, "");
6614 static_assert(sum<1>::value == 1, "");
6615 static_assert(sum<23>::value == 23, "");
6616 static_assert(sum<1, 2>::value == 3, "");
6617 static_assert(sum<5, 5, 11>::value == 21, "");
6618 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6622 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6623 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6624 // because of this.
6625 namespace test_template_alias_sfinae
6628 struct foo {};
6630 template<typename T>
6631 using member = typename T::member_type;
6633 template<typename T>
6634 void func(...) {}
6636 template<typename T>
6637 void func(member<T>*) {}
6639 void test();
6641 void test() { func<foo>(0); }
6645 } // namespace cxx11
6647 #endif // __cplusplus >= 201103L
6651 _ACEOF
6652 if ac_fn_cxx_try_compile "$LINENO"; then :
6653 eval $cachevar=yes
6654 else
6655 eval $cachevar=no
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 CXX="$ac_save_CXX"
6660 eval ac_res=\$$cachevar
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6662 $as_echo "$ac_res" >&6; }
6663 if eval test x\$$cachevar = xyes; then
6664 CXX="$CXX $switch"
6665 if test -n "$CXXCPP" ; then
6666 CXXCPP="$CXXCPP $switch"
6668 ac_success=yes
6669 break
6671 done
6672 if test x$ac_success = xyes; then
6673 break
6675 done
6678 ac_ext=c
6679 ac_cpp='$CPP $CPPFLAGS'
6680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6684 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6685 if test x$ac_success = xno; then
6686 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6689 if test x$ac_success = xno; then
6690 HAVE_CXX11=0
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6692 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6693 else
6694 HAVE_CXX11=1
6696 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6702 if test "${build}" != "${host}"; then
6703 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6704 ac_ext=cpp
6705 ac_cpp='$CXXCPP $CPPFLAGS'
6706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6709 ac_success=no
6710 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6711 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6712 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6713 CXX="$CXX_FOR_BUILD"
6714 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6715 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6717 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6718 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6725 // If the compiler admits that it is not ready for C++11, why torture it?
6726 // Hopefully, this will speed up the test.
6728 #ifndef __cplusplus
6730 #error "This is not a C++ compiler"
6732 #elif __cplusplus < 201103L
6734 #error "This is not a C++11 compiler"
6736 #else
6738 namespace cxx11
6741 namespace test_static_assert
6744 template <typename T>
6745 struct check
6747 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6752 namespace test_final_override
6755 struct Base
6757 virtual ~Base() {}
6758 virtual void f() {}
6761 struct Derived : public Base
6763 virtual ~Derived() override {}
6764 virtual void f() override {}
6769 namespace test_double_right_angle_brackets
6772 template < typename T >
6773 struct check {};
6775 typedef check<void> single_type;
6776 typedef check<check<void>> double_type;
6777 typedef check<check<check<void>>> triple_type;
6778 typedef check<check<check<check<void>>>> quadruple_type;
6782 namespace test_decltype
6788 int a = 1;
6789 decltype(a) b = 2;
6790 return a + b;
6795 namespace test_type_deduction
6798 template < typename T1, typename T2 >
6799 struct is_same
6801 static const bool value = false;
6804 template < typename T >
6805 struct is_same<T, T>
6807 static const bool value = true;
6810 template < typename T1, typename T2 >
6811 auto
6812 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6814 return a1 + a2;
6818 test(const int c, volatile int v)
6820 static_assert(is_same<int, decltype(0)>::value == true, "");
6821 static_assert(is_same<int, decltype(c)>::value == false, "");
6822 static_assert(is_same<int, decltype(v)>::value == false, "");
6823 auto ac = c;
6824 auto av = v;
6825 auto sumi = ac + av + 'x';
6826 auto sumf = ac + av + 1.0;
6827 static_assert(is_same<int, decltype(ac)>::value == true, "");
6828 static_assert(is_same<int, decltype(av)>::value == true, "");
6829 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6830 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6831 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6832 return (sumf > 0.0) ? sumi : add(c, v);
6837 namespace test_noexcept
6840 int f() { return 0; }
6841 int g() noexcept { return 0; }
6843 static_assert(noexcept(f()) == false, "");
6844 static_assert(noexcept(g()) == true, "");
6848 namespace test_constexpr
6851 template < typename CharT >
6852 unsigned long constexpr
6853 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6855 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6858 template < typename CharT >
6859 unsigned long constexpr
6860 strlen_c(const CharT *const s) noexcept
6862 return strlen_c_r(s, 0UL);
6865 static_assert(strlen_c("") == 0UL, "");
6866 static_assert(strlen_c("1") == 1UL, "");
6867 static_assert(strlen_c("example") == 7UL, "");
6868 static_assert(strlen_c("another\0example") == 7UL, "");
6872 namespace test_rvalue_references
6875 template < int N >
6876 struct answer
6878 static constexpr int value = N;
6881 answer<1> f(int&) { return answer<1>(); }
6882 answer<2> f(const int&) { return answer<2>(); }
6883 answer<3> f(int&&) { return answer<3>(); }
6885 void
6886 test()
6888 int i = 0;
6889 const int c = 0;
6890 static_assert(decltype(f(i))::value == 1, "");
6891 static_assert(decltype(f(c))::value == 2, "");
6892 static_assert(decltype(f(0))::value == 3, "");
6897 namespace test_uniform_initialization
6900 struct test
6902 static const int zero {};
6903 static const int one {1};
6906 static_assert(test::zero == 0, "");
6907 static_assert(test::one == 1, "");
6911 namespace test_lambdas
6914 void
6915 test1()
6917 auto lambda1 = [](){};
6918 auto lambda2 = lambda1;
6919 lambda1();
6920 lambda2();
6924 test2()
6926 auto a = [](int i, int j){ return i + j; }(1, 2);
6927 auto b = []() -> int { return '0'; }();
6928 auto c = [=](){ return a + b; }();
6929 auto d = [&](){ return c; }();
6930 auto e = [a, &b](int x) mutable {
6931 const auto identity = [](int y){ return y; };
6932 for (auto i = 0; i < a; ++i)
6933 a += b--;
6934 return x + identity(a + b);
6935 }(0);
6936 return a + b + c + d + e;
6940 test3()
6942 const auto nullary = [](){ return 0; };
6943 const auto unary = [](int x){ return x; };
6944 using nullary_t = decltype(nullary);
6945 using unary_t = decltype(unary);
6946 const auto higher1st = [](nullary_t f){ return f(); };
6947 const auto higher2nd = [unary](nullary_t f1){
6948 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6950 return higher1st(nullary) + higher2nd(nullary)(unary);
6955 namespace test_variadic_templates
6958 template <int...>
6959 struct sum;
6961 template <int N0, int... N1toN>
6962 struct sum<N0, N1toN...>
6964 static constexpr auto value = N0 + sum<N1toN...>::value;
6967 template <>
6968 struct sum<>
6970 static constexpr auto value = 0;
6973 static_assert(sum<>::value == 0, "");
6974 static_assert(sum<1>::value == 1, "");
6975 static_assert(sum<23>::value == 23, "");
6976 static_assert(sum<1, 2>::value == 3, "");
6977 static_assert(sum<5, 5, 11>::value == 21, "");
6978 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6982 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6983 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6984 // because of this.
6985 namespace test_template_alias_sfinae
6988 struct foo {};
6990 template<typename T>
6991 using member = typename T::member_type;
6993 template<typename T>
6994 void func(...) {}
6996 template<typename T>
6997 void func(member<T>*) {}
6999 void test();
7001 void test() { func<foo>(0); }
7005 } // namespace cxx11
7007 #endif // __cplusplus >= 201103L
7011 _ACEOF
7012 if ac_fn_cxx_try_compile "$LINENO"; then :
7013 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7014 else
7015 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7020 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7021 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7022 ac_success=yes
7025 if test x$ac_success = xno; then
7026 for alternative in ${ax_cxx_compile_alternatives}; do
7027 switch="-std=gnu++${alternative}"
7028 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7030 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7031 if eval \${$cachevar+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 ac_save_CXX="$CXX"
7035 CXX="$CXX $switch"
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7040 // If the compiler admits that it is not ready for C++11, why torture it?
7041 // Hopefully, this will speed up the test.
7043 #ifndef __cplusplus
7045 #error "This is not a C++ compiler"
7047 #elif __cplusplus < 201103L
7049 #error "This is not a C++11 compiler"
7051 #else
7053 namespace cxx11
7056 namespace test_static_assert
7059 template <typename T>
7060 struct check
7062 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7067 namespace test_final_override
7070 struct Base
7072 virtual ~Base() {}
7073 virtual void f() {}
7076 struct Derived : public Base
7078 virtual ~Derived() override {}
7079 virtual void f() override {}
7084 namespace test_double_right_angle_brackets
7087 template < typename T >
7088 struct check {};
7090 typedef check<void> single_type;
7091 typedef check<check<void>> double_type;
7092 typedef check<check<check<void>>> triple_type;
7093 typedef check<check<check<check<void>>>> quadruple_type;
7097 namespace test_decltype
7103 int a = 1;
7104 decltype(a) b = 2;
7105 return a + b;
7110 namespace test_type_deduction
7113 template < typename T1, typename T2 >
7114 struct is_same
7116 static const bool value = false;
7119 template < typename T >
7120 struct is_same<T, T>
7122 static const bool value = true;
7125 template < typename T1, typename T2 >
7126 auto
7127 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7129 return a1 + a2;
7133 test(const int c, volatile int v)
7135 static_assert(is_same<int, decltype(0)>::value == true, "");
7136 static_assert(is_same<int, decltype(c)>::value == false, "");
7137 static_assert(is_same<int, decltype(v)>::value == false, "");
7138 auto ac = c;
7139 auto av = v;
7140 auto sumi = ac + av + 'x';
7141 auto sumf = ac + av + 1.0;
7142 static_assert(is_same<int, decltype(ac)>::value == true, "");
7143 static_assert(is_same<int, decltype(av)>::value == true, "");
7144 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7145 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7146 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7147 return (sumf > 0.0) ? sumi : add(c, v);
7152 namespace test_noexcept
7155 int f() { return 0; }
7156 int g() noexcept { return 0; }
7158 static_assert(noexcept(f()) == false, "");
7159 static_assert(noexcept(g()) == true, "");
7163 namespace test_constexpr
7166 template < typename CharT >
7167 unsigned long constexpr
7168 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7170 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7173 template < typename CharT >
7174 unsigned long constexpr
7175 strlen_c(const CharT *const s) noexcept
7177 return strlen_c_r(s, 0UL);
7180 static_assert(strlen_c("") == 0UL, "");
7181 static_assert(strlen_c("1") == 1UL, "");
7182 static_assert(strlen_c("example") == 7UL, "");
7183 static_assert(strlen_c("another\0example") == 7UL, "");
7187 namespace test_rvalue_references
7190 template < int N >
7191 struct answer
7193 static constexpr int value = N;
7196 answer<1> f(int&) { return answer<1>(); }
7197 answer<2> f(const int&) { return answer<2>(); }
7198 answer<3> f(int&&) { return answer<3>(); }
7200 void
7201 test()
7203 int i = 0;
7204 const int c = 0;
7205 static_assert(decltype(f(i))::value == 1, "");
7206 static_assert(decltype(f(c))::value == 2, "");
7207 static_assert(decltype(f(0))::value == 3, "");
7212 namespace test_uniform_initialization
7215 struct test
7217 static const int zero {};
7218 static const int one {1};
7221 static_assert(test::zero == 0, "");
7222 static_assert(test::one == 1, "");
7226 namespace test_lambdas
7229 void
7230 test1()
7232 auto lambda1 = [](){};
7233 auto lambda2 = lambda1;
7234 lambda1();
7235 lambda2();
7239 test2()
7241 auto a = [](int i, int j){ return i + j; }(1, 2);
7242 auto b = []() -> int { return '0'; }();
7243 auto c = [=](){ return a + b; }();
7244 auto d = [&](){ return c; }();
7245 auto e = [a, &b](int x) mutable {
7246 const auto identity = [](int y){ return y; };
7247 for (auto i = 0; i < a; ++i)
7248 a += b--;
7249 return x + identity(a + b);
7250 }(0);
7251 return a + b + c + d + e;
7255 test3()
7257 const auto nullary = [](){ return 0; };
7258 const auto unary = [](int x){ return x; };
7259 using nullary_t = decltype(nullary);
7260 using unary_t = decltype(unary);
7261 const auto higher1st = [](nullary_t f){ return f(); };
7262 const auto higher2nd = [unary](nullary_t f1){
7263 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7265 return higher1st(nullary) + higher2nd(nullary)(unary);
7270 namespace test_variadic_templates
7273 template <int...>
7274 struct sum;
7276 template <int N0, int... N1toN>
7277 struct sum<N0, N1toN...>
7279 static constexpr auto value = N0 + sum<N1toN...>::value;
7282 template <>
7283 struct sum<>
7285 static constexpr auto value = 0;
7288 static_assert(sum<>::value == 0, "");
7289 static_assert(sum<1>::value == 1, "");
7290 static_assert(sum<23>::value == 23, "");
7291 static_assert(sum<1, 2>::value == 3, "");
7292 static_assert(sum<5, 5, 11>::value == 21, "");
7293 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7297 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7298 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7299 // because of this.
7300 namespace test_template_alias_sfinae
7303 struct foo {};
7305 template<typename T>
7306 using member = typename T::member_type;
7308 template<typename T>
7309 void func(...) {}
7311 template<typename T>
7312 void func(member<T>*) {}
7314 void test();
7316 void test() { func<foo>(0); }
7320 } // namespace cxx11
7322 #endif // __cplusplus >= 201103L
7326 _ACEOF
7327 if ac_fn_cxx_try_compile "$LINENO"; then :
7328 eval $cachevar=yes
7329 else
7330 eval $cachevar=no
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 CXX="$ac_save_CXX"
7335 eval ac_res=\$$cachevar
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7337 $as_echo "$ac_res" >&6; }
7338 if eval test x\$$cachevar = xyes; then
7339 CXX="$CXX $switch"
7340 if test -n "$CXXCPP" ; then
7341 CXXCPP="$CXXCPP $switch"
7343 ac_success=yes
7344 break
7346 done
7349 if test x$ac_success = xno; then
7350 for alternative in ${ax_cxx_compile_alternatives}; do
7351 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7352 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7354 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7355 if eval \${$cachevar+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 ac_save_CXX="$CXX"
7359 CXX="$CXX $switch"
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7364 // If the compiler admits that it is not ready for C++11, why torture it?
7365 // Hopefully, this will speed up the test.
7367 #ifndef __cplusplus
7369 #error "This is not a C++ compiler"
7371 #elif __cplusplus < 201103L
7373 #error "This is not a C++11 compiler"
7375 #else
7377 namespace cxx11
7380 namespace test_static_assert
7383 template <typename T>
7384 struct check
7386 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7391 namespace test_final_override
7394 struct Base
7396 virtual ~Base() {}
7397 virtual void f() {}
7400 struct Derived : public Base
7402 virtual ~Derived() override {}
7403 virtual void f() override {}
7408 namespace test_double_right_angle_brackets
7411 template < typename T >
7412 struct check {};
7414 typedef check<void> single_type;
7415 typedef check<check<void>> double_type;
7416 typedef check<check<check<void>>> triple_type;
7417 typedef check<check<check<check<void>>>> quadruple_type;
7421 namespace test_decltype
7427 int a = 1;
7428 decltype(a) b = 2;
7429 return a + b;
7434 namespace test_type_deduction
7437 template < typename T1, typename T2 >
7438 struct is_same
7440 static const bool value = false;
7443 template < typename T >
7444 struct is_same<T, T>
7446 static const bool value = true;
7449 template < typename T1, typename T2 >
7450 auto
7451 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7453 return a1 + a2;
7457 test(const int c, volatile int v)
7459 static_assert(is_same<int, decltype(0)>::value == true, "");
7460 static_assert(is_same<int, decltype(c)>::value == false, "");
7461 static_assert(is_same<int, decltype(v)>::value == false, "");
7462 auto ac = c;
7463 auto av = v;
7464 auto sumi = ac + av + 'x';
7465 auto sumf = ac + av + 1.0;
7466 static_assert(is_same<int, decltype(ac)>::value == true, "");
7467 static_assert(is_same<int, decltype(av)>::value == true, "");
7468 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7469 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7470 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7471 return (sumf > 0.0) ? sumi : add(c, v);
7476 namespace test_noexcept
7479 int f() { return 0; }
7480 int g() noexcept { return 0; }
7482 static_assert(noexcept(f()) == false, "");
7483 static_assert(noexcept(g()) == true, "");
7487 namespace test_constexpr
7490 template < typename CharT >
7491 unsigned long constexpr
7492 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7494 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7497 template < typename CharT >
7498 unsigned long constexpr
7499 strlen_c(const CharT *const s) noexcept
7501 return strlen_c_r(s, 0UL);
7504 static_assert(strlen_c("") == 0UL, "");
7505 static_assert(strlen_c("1") == 1UL, "");
7506 static_assert(strlen_c("example") == 7UL, "");
7507 static_assert(strlen_c("another\0example") == 7UL, "");
7511 namespace test_rvalue_references
7514 template < int N >
7515 struct answer
7517 static constexpr int value = N;
7520 answer<1> f(int&) { return answer<1>(); }
7521 answer<2> f(const int&) { return answer<2>(); }
7522 answer<3> f(int&&) { return answer<3>(); }
7524 void
7525 test()
7527 int i = 0;
7528 const int c = 0;
7529 static_assert(decltype(f(i))::value == 1, "");
7530 static_assert(decltype(f(c))::value == 2, "");
7531 static_assert(decltype(f(0))::value == 3, "");
7536 namespace test_uniform_initialization
7539 struct test
7541 static const int zero {};
7542 static const int one {1};
7545 static_assert(test::zero == 0, "");
7546 static_assert(test::one == 1, "");
7550 namespace test_lambdas
7553 void
7554 test1()
7556 auto lambda1 = [](){};
7557 auto lambda2 = lambda1;
7558 lambda1();
7559 lambda2();
7563 test2()
7565 auto a = [](int i, int j){ return i + j; }(1, 2);
7566 auto b = []() -> int { return '0'; }();
7567 auto c = [=](){ return a + b; }();
7568 auto d = [&](){ return c; }();
7569 auto e = [a, &b](int x) mutable {
7570 const auto identity = [](int y){ return y; };
7571 for (auto i = 0; i < a; ++i)
7572 a += b--;
7573 return x + identity(a + b);
7574 }(0);
7575 return a + b + c + d + e;
7579 test3()
7581 const auto nullary = [](){ return 0; };
7582 const auto unary = [](int x){ return x; };
7583 using nullary_t = decltype(nullary);
7584 using unary_t = decltype(unary);
7585 const auto higher1st = [](nullary_t f){ return f(); };
7586 const auto higher2nd = [unary](nullary_t f1){
7587 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7589 return higher1st(nullary) + higher2nd(nullary)(unary);
7594 namespace test_variadic_templates
7597 template <int...>
7598 struct sum;
7600 template <int N0, int... N1toN>
7601 struct sum<N0, N1toN...>
7603 static constexpr auto value = N0 + sum<N1toN...>::value;
7606 template <>
7607 struct sum<>
7609 static constexpr auto value = 0;
7612 static_assert(sum<>::value == 0, "");
7613 static_assert(sum<1>::value == 1, "");
7614 static_assert(sum<23>::value == 23, "");
7615 static_assert(sum<1, 2>::value == 3, "");
7616 static_assert(sum<5, 5, 11>::value == 21, "");
7617 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7621 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7622 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7623 // because of this.
7624 namespace test_template_alias_sfinae
7627 struct foo {};
7629 template<typename T>
7630 using member = typename T::member_type;
7632 template<typename T>
7633 void func(...) {}
7635 template<typename T>
7636 void func(member<T>*) {}
7638 void test();
7640 void test() { func<foo>(0); }
7644 } // namespace cxx11
7646 #endif // __cplusplus >= 201103L
7650 _ACEOF
7651 if ac_fn_cxx_try_compile "$LINENO"; then :
7652 eval $cachevar=yes
7653 else
7654 eval $cachevar=no
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 CXX="$ac_save_CXX"
7659 eval ac_res=\$$cachevar
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7661 $as_echo "$ac_res" >&6; }
7662 if eval test x\$$cachevar = xyes; then
7663 CXX="$CXX $switch"
7664 if test -n "$CXXCPP" ; then
7665 CXXCPP="$CXXCPP $switch"
7667 ac_success=yes
7668 break
7670 done
7671 if test x$ac_success = xyes; then
7672 break
7674 done
7676 CXX_FOR_BUILD="$CXX"
7677 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7678 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7679 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7680 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7681 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7682 ac_ext=c
7683 ac_cpp='$CPP $CPPFLAGS'
7684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7688 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7689 if test x$ac_success = xno; then
7690 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7693 if test x$ac_success = xno; then
7694 HAVE_CXX11_FOR_BUILD=0
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7696 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7697 else
7698 HAVE_CXX11_FOR_BUILD=1
7700 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7708 # Used for setting $lt_cv_objdir
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7710 $as_echo_n "checking for objdir... " >&6; }
7711 if ${lt_cv_objdir+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 rm -f .libs 2>/dev/null
7715 mkdir .libs 2>/dev/null
7716 if test -d .libs; then
7717 lt_cv_objdir=.libs
7718 else
7719 # MS-DOS does not allow filenames that begin with a dot.
7720 lt_cv_objdir=_libs
7722 rmdir .libs 2>/dev/null
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7725 $as_echo "$lt_cv_objdir" >&6; }
7726 objdir=$lt_cv_objdir
7732 cat >>confdefs.h <<_ACEOF
7733 #define LT_OBJDIR "$lt_cv_objdir/"
7734 _ACEOF
7738 # Check for GMP, MPFR and MPC
7739 gmplibs="-lmpc -lmpfr -lgmp"
7740 gmpinc=
7741 have_gmp=no
7743 # Specify a location for mpc
7744 # check for this first so it ends up on the link line before mpfr.
7746 # Check whether --with-mpc was given.
7747 if test "${with_mpc+set}" = set; then :
7748 withval=$with_mpc;
7752 # Check whether --with-mpc-include was given.
7753 if test "${with_mpc_include+set}" = set; then :
7754 withval=$with_mpc_include;
7758 # Check whether --with-mpc-lib was given.
7759 if test "${with_mpc_lib+set}" = set; then :
7760 withval=$with_mpc_lib;
7764 if test "x$with_mpc" != x; then
7765 gmplibs="-L$with_mpc/lib $gmplibs"
7766 gmpinc="-I$with_mpc/include $gmpinc"
7768 if test "x$with_mpc_include" != x; then
7769 gmpinc="-I$with_mpc_include $gmpinc"
7771 if test "x$with_mpc_lib" != x; then
7772 gmplibs="-L$with_mpc_lib $gmplibs"
7774 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7775 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7776 gmpinc='-I$$s/mpc/src '"$gmpinc"
7777 # Do not test the mpc version. Assume that it is sufficient, since
7778 # it is in the source tree, and the library has not been built yet
7779 # but it would be included on the link line in the version check below
7780 # hence making the test fail.
7781 have_gmp=yes
7784 # Specify a location for mpfr
7785 # check for this first so it ends up on the link line before gmp.
7787 # Check whether --with-mpfr-dir was given.
7788 if test "${with_mpfr_dir+set}" = set; then :
7789 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7790 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7795 # Check whether --with-mpfr was given.
7796 if test "${with_mpfr+set}" = set; then :
7797 withval=$with_mpfr;
7801 # Check whether --with-mpfr-include was given.
7802 if test "${with_mpfr_include+set}" = set; then :
7803 withval=$with_mpfr_include;
7807 # Check whether --with-mpfr-lib was given.
7808 if test "${with_mpfr_lib+set}" = set; then :
7809 withval=$with_mpfr_lib;
7813 if test "x$with_mpfr" != x; then
7814 gmplibs="-L$with_mpfr/lib $gmplibs"
7815 gmpinc="-I$with_mpfr/include $gmpinc"
7817 if test "x$with_mpfr_include" != x; then
7818 gmpinc="-I$with_mpfr_include $gmpinc"
7820 if test "x$with_mpfr_lib" != x; then
7821 gmplibs="-L$with_mpfr_lib $gmplibs"
7823 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7824 # MPFR v3.1.0 moved the sources into a src sub-directory.
7825 if ! test -d ${srcdir}/mpfr/src; then
7826 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7828 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7829 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7830 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7831 # Do not test the mpfr version. Assume that it is sufficient, since
7832 # it is in the source tree, and the library has not been built yet
7833 # but it would be included on the link line in the version check below
7834 # hence making the test fail.
7835 have_gmp=yes
7838 # Specify a location for gmp
7840 # Check whether --with-gmp-dir was given.
7841 if test "${with_gmp_dir+set}" = set; then :
7842 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7843 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7848 # Check whether --with-gmp was given.
7849 if test "${with_gmp+set}" = set; then :
7850 withval=$with_gmp;
7854 # Check whether --with-gmp-include was given.
7855 if test "${with_gmp_include+set}" = set; then :
7856 withval=$with_gmp_include;
7860 # Check whether --with-gmp-lib was given.
7861 if test "${with_gmp_lib+set}" = set; then :
7862 withval=$with_gmp_lib;
7867 if test "x$with_gmp" != x; then
7868 gmplibs="-L$with_gmp/lib $gmplibs"
7869 gmpinc="-I$with_gmp/include $gmpinc"
7871 if test "x$with_gmp_include" != x; then
7872 gmpinc="-I$with_gmp_include $gmpinc"
7874 if test "x$with_gmp_lib" != x; then
7875 gmplibs="-L$with_gmp_lib $gmplibs"
7877 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7878 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7879 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7880 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7881 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7882 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7883 # Do not test the gmp version. Assume that it is sufficient, since
7884 # it is in the source tree, and the library has not been built yet
7885 # but it would be included on the link line in the version check below
7886 # hence making the test fail.
7887 have_gmp=yes
7890 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7891 have_gmp=yes
7892 saved_CFLAGS="$CFLAGS"
7893 CFLAGS="$CFLAGS $gmpinc"
7894 # Check for the recommended and required versions of GMP.
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7896 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 #include "gmp.h"
7902 main ()
7905 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7906 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7907 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7908 choke me
7909 #endif
7912 return 0;
7914 _ACEOF
7915 if ac_fn_c_try_compile "$LINENO"; then :
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7918 #include <gmp.h>
7920 main ()
7923 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7924 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7925 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7926 choke me
7927 #endif
7930 return 0;
7932 _ACEOF
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7935 $as_echo "yes" >&6; }
7936 else
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7938 $as_echo "buggy but acceptable" >&6; }
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }; have_gmp=no
7945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947 # If we have GMP, check the MPFR version.
7948 if test x"$have_gmp" = xyes; then
7949 # Check for the recommended and required versions of MPFR.
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7951 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7954 #include <gmp.h>
7955 #include <mpfr.h>
7957 main ()
7960 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7961 choke me
7962 #endif
7965 return 0;
7967 _ACEOF
7968 if ac_fn_c_try_compile "$LINENO"; then :
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 #include <gmp.h>
7972 #include <mpfr.h>
7974 main ()
7977 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
7978 choke me
7979 #endif
7982 return 0;
7984 _ACEOF
7985 if ac_fn_c_try_compile "$LINENO"; then :
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7987 $as_echo "yes" >&6; }
7988 else
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7990 $as_echo "buggy but acceptable" >&6; }
7992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }; have_gmp=no
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 # Check for the MPC header version.
8001 if test x"$have_gmp" = xyes ; then
8002 # Check for the recommended and required versions of MPC.
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8004 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 #include <mpc.h>
8009 main ()
8012 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8013 choke me
8014 #endif
8017 return 0;
8019 _ACEOF
8020 if ac_fn_c_try_compile "$LINENO"; then :
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8023 #include <mpc.h>
8025 main ()
8028 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8029 choke me
8030 #endif
8033 return 0;
8035 _ACEOF
8036 if ac_fn_c_try_compile "$LINENO"; then :
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8038 $as_echo "yes" >&6; }
8039 else
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8041 $as_echo "buggy but acceptable" >&6; }
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }; have_gmp=no
8048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051 # Now check the MPFR library.
8052 if test x"$have_gmp" = xyes; then
8053 saved_LIBS="$LIBS"
8054 LIBS="$LIBS $gmplibs"
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8056 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8059 #include <mpc.h>
8061 main ()
8064 mpfr_t n;
8065 mpfr_t x;
8066 mpc_t c;
8067 int t;
8068 mpfr_init (n);
8069 mpfr_init (x);
8070 mpfr_atan2 (n, n, x, MPFR_RNDN);
8071 mpfr_erfc (n, x, MPFR_RNDN);
8072 mpfr_subnormalize (x, t, MPFR_RNDN);
8073 mpfr_clear(n);
8074 mpfr_clear(x);
8075 mpc_init2 (c, 53);
8076 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8077 mpc_cosh (c, c, MPC_RNDNN);
8078 mpc_pow (c, c, c, MPC_RNDNN);
8079 mpc_acosh (c, c, MPC_RNDNN);
8080 mpc_clear (c);
8083 return 0;
8085 _ACEOF
8086 if ac_fn_c_try_link "$LINENO"; then :
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8088 $as_echo "yes" >&6; }
8089 else
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }; have_gmp=no
8093 rm -f core conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8095 LIBS="$saved_LIBS"
8098 CFLAGS="$saved_CFLAGS"
8100 # The library versions listed in the error message below should match
8101 # the HARD-minimums enforced above.
8102 if test x$have_gmp != xyes; then
8103 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8104 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8105 their locations. Source code for these libraries can be found at
8106 their respective hosting sites as well as at
8107 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8108 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8109 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8110 make sure that you have installed both the libraries and the header
8111 files. They may be located in separate packages." "$LINENO" 5
8115 # Flags needed for both GMP, MPFR and/or MPC.
8123 # Libraries to use for stage1 or when not bootstrapping.
8125 # Check whether --with-stage1-libs was given.
8126 if test "${with_stage1_libs+set}" = set; then :
8127 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8128 stage1_libs=
8129 else
8130 stage1_libs=$withval
8132 else
8133 stage1_libs=
8138 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8139 # default is yes if gcc is being built; no otherwise. The reason for
8140 # this default is that gdb is sometimes linked against GNU Source
8141 # Highlight, which is a shared library that uses C++ exceptions. In
8142 # this case, -static-libstdc++ will cause crashes.
8144 # Check whether --with-static-standard-libraries was given.
8145 if test "${with_static_standard_libraries+set}" = set; then :
8146 withval=$with_static_standard_libraries;
8147 else
8148 with_static_standard_libraries=auto
8151 if test "$with_static_standard_libraries" = auto; then
8152 with_static_standard_libraries=$have_compiler
8155 # Linker flags to use for stage1 or when not bootstrapping.
8157 # Check whether --with-stage1-ldflags was given.
8158 if test "${with_stage1_ldflags+set}" = set; then :
8159 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8160 stage1_ldflags=
8161 else
8162 stage1_ldflags=$withval
8164 else
8165 stage1_ldflags=
8166 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8167 # if supported. But if the user explicitly specified the libraries to use,
8168 # trust that they are doing what they want.
8169 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8170 -a "$have_static_libs" = yes; then
8171 stage1_ldflags="-static-libstdc++ -static-libgcc"
8177 # Libraries to use for stage2 and later builds.
8179 # Check whether --with-boot-libs was given.
8180 if test "${with_boot_libs+set}" = set; then :
8181 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8182 poststage1_libs=
8183 else
8184 poststage1_libs=$withval
8186 else
8187 poststage1_libs=
8192 # Linker flags to use for stage2 and later builds.
8194 # Check whether --with-boot-ldflags was given.
8195 if test "${with_boot_ldflags+set}" = set; then :
8196 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8197 poststage1_ldflags=
8198 else
8199 poststage1_ldflags=$withval
8201 else
8202 poststage1_ldflags=
8203 # In stages 2 and 3, default to linking libstdc++ and libgcc
8204 # statically. But if the user explicitly specified the libraries to
8205 # use, trust that they are doing what they want.
8206 if test "$poststage1_libs" = ""; then
8207 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8213 # GCC GRAPHITE dependency isl.
8214 # Basic setup is inlined here, actual checks are in config/isl.m4
8217 # Check whether --with-isl was given.
8218 if test "${with_isl+set}" = set; then :
8219 withval=$with_isl;
8223 # Treat --without-isl as a request to disable
8224 # GRAPHITE support and skip all following checks.
8225 if test "x$with_isl" != "xno"; then
8226 # Check for isl
8229 # Check whether --with-isl-include was given.
8230 if test "${with_isl_include+set}" = set; then :
8231 withval=$with_isl_include;
8235 # Check whether --with-isl-lib was given.
8236 if test "${with_isl_lib+set}" = set; then :
8237 withval=$with_isl_lib;
8241 # Check whether --enable-isl-version-check was given.
8242 if test "${enable_isl_version_check+set}" = set; then :
8243 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8244 else
8245 ENABLE_ISL_CHECK=yes
8249 # Initialize isllibs and islinc.
8250 case $with_isl in
8252 isllibs=
8253 islinc=
8255 "" | yes)
8258 isllibs="-L$with_isl/lib"
8259 islinc="-I$with_isl/include"
8261 esac
8262 if test "x${with_isl_include}" != x ; then
8263 islinc="-I$with_isl_include"
8265 if test "x${with_isl_lib}" != x; then
8266 isllibs="-L$with_isl_lib"
8268 if test "x${islinc}" = x && test "x${isllibs}" = x \
8269 && test -d ${srcdir}/isl; then
8270 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8271 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8272 ENABLE_ISL_CHECK=no
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8274 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8277 isllibs="${isllibs} -lisl"
8281 if test "${ENABLE_ISL_CHECK}" = yes ; then
8282 _isl_saved_CFLAGS=$CFLAGS
8283 _isl_saved_LDFLAGS=$LDFLAGS
8284 _isl_saved_LIBS=$LIBS
8286 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8287 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8288 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8291 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294 #include <isl/schedule.h>
8296 main ()
8298 isl_options_set_schedule_serialize_sccs (NULL, 0);
8300 return 0;
8302 _ACEOF
8303 if ac_fn_c_try_link "$LINENO"; then :
8304 gcc_cv_isl=yes
8305 else
8306 gcc_cv_isl=no
8308 rm -f core conftest.err conftest.$ac_objext \
8309 conftest$ac_exeext conftest.$ac_ext
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8311 $as_echo "$gcc_cv_isl" >&6; }
8313 if test "${gcc_cv_isl}" = no ; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8315 $as_echo "required isl version is 0.15 or later" >&6; }
8318 CFLAGS=$_isl_saved_CFLAGS
8319 LDFLAGS=$_isl_saved_LDFLAGS
8320 LIBS=$_isl_saved_LIBS
8328 if test "x${with_isl}" = xno; then
8329 graphite_requested=no
8330 elif test "x${with_isl}" != x \
8331 || test "x${with_isl_include}" != x \
8332 || test "x${with_isl_lib}" != x ; then
8333 graphite_requested=yes
8334 else
8335 graphite_requested=no
8340 if test "${gcc_cv_isl}" = no ; then
8341 isllibs=
8342 islinc=
8345 if test "${graphite_requested}" = yes \
8346 && test "x${isllibs}" = x \
8347 && test "x${islinc}" = x ; then
8349 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8355 # If the isl check failed, disable builds of in-tree variant of isl
8356 if test "x$with_isl" = xno ||
8357 test "x$gcc_cv_isl" = xno; then
8358 noconfigdirs="$noconfigdirs isl"
8359 islinc=
8365 # Check for LTO support.
8366 # Check whether --enable-lto was given.
8367 if test "${enable_lto+set}" = set; then :
8368 enableval=$enable_lto; enable_lto=$enableval
8369 else
8370 enable_lto=yes; default_enable_lto=yes
8377 target_elf=no
8378 case $target in
8379 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8380 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8381 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8382 nvptx-*-none)
8383 target_elf=no
8386 target_elf=yes
8388 esac
8390 if test $target_elf = yes; then :
8391 # ELF platforms build the lto-plugin always.
8392 build_lto_plugin=yes
8394 else
8395 if test x"$default_enable_lto" = x"yes" ; then
8396 case $target in
8397 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8398 # On other non-ELF platforms, LTO has yet to be validated.
8399 *) enable_lto=no ;;
8400 esac
8401 else
8402 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8403 # It would also be nice to check the binutils support, but we don't
8404 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8405 # warn during gcc/ subconfigure; unless you're bootstrapping with
8406 # -flto it won't be needed until after installation anyway.
8407 case $target in
8408 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8409 *) if test x"$enable_lto" = x"yes"; then
8410 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8413 esac
8415 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8416 # Build it unless LTO was explicitly disabled.
8417 case $target in
8418 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8419 *) ;;
8420 esac
8425 # Check whether --enable-linker-plugin-configure-flags was given.
8426 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8427 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8428 else
8429 extra_linker_plugin_configure_flags=
8433 # Check whether --enable-linker-plugin-flags was given.
8434 if test "${enable_linker_plugin_flags+set}" = set; then :
8435 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8436 else
8437 extra_linker_plugin_flags=
8442 # Enable --enable-host-shared.
8443 # Checked early to determine whether jit is an 'all' language
8444 # Check whether --enable-host-shared was given.
8445 if test "${enable_host_shared+set}" = set; then :
8446 enableval=$enable_host_shared; host_shared=$enableval
8447 else
8448 host_shared=no
8453 # By default, C and C++ are the only stage 1 languages.
8454 stage1_languages=,c,
8456 # Target libraries that we bootstrap.
8457 bootstrap_target_libs=,target-libgcc,
8459 # Figure out what language subdirectories are present.
8460 # Look if the user specified --enable-languages="..."; if not, use
8461 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8462 # go away some day.
8463 # NB: embedded tabs in this IF block -- do not untabify
8464 if test -d ${srcdir}/gcc; then
8465 if test x"${enable_languages+set}" != xset; then
8466 if test x"${LANGUAGES+set}" = xset; then
8467 enable_languages="${LANGUAGES}"
8468 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8469 else
8470 enable_languages=default
8472 else
8473 if test x"${enable_languages}" = x ||
8474 test x"${enable_languages}" = xyes;
8475 then
8476 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8477 exit 1
8480 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8482 # 'f95' is the old name for the 'fortran' language. We issue a warning
8483 # and make the substitution.
8484 case ,${enable_languages}, in
8485 *,f95,*)
8486 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8487 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8489 esac
8491 # If bootstrapping, C++ must be enabled.
8492 case ",$enable_languages,:$enable_bootstrap" in
8493 *,c++,*:*) ;;
8494 *:yes)
8495 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8496 enable_languages="${enable_languages},c++"
8497 else
8498 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8501 esac
8503 # First scan to see if an enabled language requires some other language.
8504 # We assume that a given config-lang.in will list all the language
8505 # front ends it requires, even if some are required indirectly.
8506 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8507 case ${lang_frag} in
8508 ..) ;;
8509 # The odd quoting in the next line works around
8510 # an apparent bug in bash 1.12 on linux.
8511 ${srcdir}/gcc/[*]/config-lang.in) ;;
8513 # From the config-lang.in, get $language, $lang_requires, and
8514 # $lang_requires_boot_languages.
8515 language=
8516 lang_requires=
8517 lang_requires_boot_languages=
8518 # set srcdir during sourcing lang_frag to the gcc dir.
8519 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8520 # polutes this shell
8521 saved_srcdir=${srcdir}
8522 srcdir=${srcdir}/gcc . ${lang_frag}
8523 srcdir=${saved_srcdir}
8524 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8525 case ,${enable_languages}, in
8526 *,$other,*) ;;
8527 *,default,*) ;;
8528 *,all,*) ;;
8529 *,$language,*)
8530 echo " \`$other' language required by \`$language'; enabling" 1>&2
8531 enable_languages="${enable_languages},${other}"
8533 esac
8534 done
8535 for other in ${lang_requires_boot_languages} ; do
8536 if test "$other" != "c"; then
8537 case ,${enable_stage1_languages}, in
8538 *,$other,*) ;;
8539 *,default,*) ;;
8540 *,all,*) ;;
8542 case ,${enable_languages}, in
8543 *,$language,*)
8544 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8545 enable_stage1_languages="$enable_stage1_languages,${other}"
8547 esac
8549 esac
8551 done
8553 esac
8554 done
8556 new_enable_languages=,c,
8558 # If LTO is enabled, add the LTO front end.
8559 if test "$enable_lto" = "yes" ; then
8560 case ,${enable_languages}, in
8561 *,lto,*) ;;
8562 *) enable_languages="${enable_languages},lto" ;;
8563 esac
8564 if test "${build_lto_plugin}" = "yes" ; then
8565 configdirs="$configdirs lto-plugin"
8569 # If we're building an offloading compiler, add the LTO front end.
8570 if test x"$enable_as_accelerator_for" != x ; then
8571 case ,${enable_languages}, in
8572 *,lto,*) ;;
8573 *) enable_languages="${enable_languages},lto" ;;
8574 esac
8577 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8578 potential_languages=,c,
8580 enabled_target_libs=
8581 disabled_target_libs=
8583 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8584 case ${lang_frag} in
8585 ..) ;;
8586 # The odd quoting in the next line works around
8587 # an apparent bug in bash 1.12 on linux.
8588 ${srcdir}/gcc/[*]/config-lang.in) ;;
8590 # From the config-lang.in, get $language, $target_libs,
8591 # $lang_dirs, $boot_language, and $build_by_default
8592 language=
8593 target_libs=
8594 lang_dirs=
8595 subdir_requires=
8596 boot_language=no
8597 build_by_default=yes
8598 # set srcdir during sourcing. See above about save & restore
8599 saved_srcdir=${srcdir}
8600 srcdir=${srcdir}/gcc . ${lang_frag}
8601 srcdir=${saved_srcdir}
8602 if test x${language} = x; then
8603 echo "${lang_frag} doesn't set \$language." 1>&2
8604 exit 1
8607 if test "$language" = "c++"; then
8608 boot_language=yes
8611 add_this_lang=no
8612 # C is always enabled, so no need to add it again
8613 if test "$language" != "c"; then
8614 case ,${enable_languages}, in
8615 *,${language},*)
8616 # Language was explicitly selected; include it
8617 add_this_lang=yes
8619 *,all,*)
8620 # All languages are enabled
8621 add_this_lang=all
8623 *,default,*)
8624 # 'default' was selected, select it if it is a default language
8625 add_this_lang=${build_by_default}
8627 esac
8630 # Disable languages that need other directories if these aren't available.
8631 for i in $subdir_requires; do
8632 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8633 case ${add_this_lang} in
8634 yes)
8635 # Specifically requested language; tell them.
8636 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8638 all)
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8640 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8641 add_this_lang=unsupported
8644 # Silently disable.
8645 add_this_lang=unsupported
8647 esac
8648 done
8650 # Disable Ada if no preexisting GNAT is available.
8651 case ${add_this_lang}:${language}:${have_gnat} in
8652 yes:ada:no)
8653 # Specifically requested language; tell them.
8654 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8656 all:ada:no)
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8658 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8659 add_this_lang=unsupported
8661 *:ada:no)
8662 # Silently disable.
8663 add_this_lang=unsupported
8665 esac
8667 # Disable jit if -enable-host-shared not specified
8668 # but not if building for Mingw. All code in Windows
8669 # is position independent code (PIC).
8670 case $target in
8671 *mingw*) ;;
8673 case ${add_this_lang}:${language}:${host_shared} in
8674 yes:jit:no)
8675 # PR jit/64780: explicitly specify --enable-host-shared
8676 as_fn_error $? "
8677 Enabling language \"jit\" requires --enable-host-shared.
8679 --enable-host-shared typically slows the rest of the compiler down by
8680 a few %, so you must explicitly enable it.
8682 If you want to build both the jit and the regular compiler, it is often
8683 best to do this via two separate configure/builds, in separate
8684 directories, to avoid imposing the performance cost of
8685 --enable-host-shared on the regular compiler." "$LINENO" 5
8687 all:jit:no)
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8689 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8690 add_this_lang=unsupported
8692 *:jit:no)
8693 # Silently disable.
8694 add_this_lang=unsupported
8696 esac
8698 esac
8700 # Disable a language that is unsupported by the target.
8701 case "${add_this_lang}: $unsupported_languages " in
8702 no:*) ;;
8703 unsupported:*) ;;
8704 *:*" $language "*)
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8706 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8707 add_this_lang=unsupported
8709 esac
8711 case $add_this_lang in
8712 unsupported)
8713 # Remove language-dependent dirs.
8714 disabled_target_libs="$disabled_target_libs $target_libs"
8715 noconfigdirs="$noconfigdirs $lang_dirs"
8718 # Remove language-dependent dirs; still show language as supported.
8719 disabled_target_libs="$disabled_target_libs $target_libs"
8720 noconfigdirs="$noconfigdirs $lang_dirs"
8721 potential_languages="${potential_languages}${language},"
8723 all|yes)
8724 new_enable_languages="${new_enable_languages}${language},"
8725 potential_languages="${potential_languages}${language},"
8726 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8727 enabled_target_libs="$enabled_target_libs $target_libs"
8728 case "${boot_language}:,$enable_stage1_languages," in
8729 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8730 # Add to (comma-separated) list of stage 1 languages.
8731 case ",$stage1_languages," in
8732 *,$language,* | ,yes, | ,all,) ;;
8733 *) stage1_languages="${stage1_languages}${language}," ;;
8734 esac
8735 # We need to bootstrap any supporting libraries.
8736 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
8738 esac
8740 esac
8742 esac
8743 done
8745 # Add target libraries which are only needed for disabled languages
8746 # to noconfigdirs.
8747 if test -n "$disabled_target_libs"; then
8748 for dir in $disabled_target_libs; do
8749 case " $enabled_target_libs " in
8750 *" ${dir} "*) ;;
8751 *) noconfigdirs="$noconfigdirs $dir" ;;
8752 esac
8753 done
8756 # Check whether --enable-stage1-languages was given.
8757 if test "${enable_stage1_languages+set}" = set; then :
8758 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8759 ,no,|,,)
8760 # Set it to something that will have no effect in the loop below
8761 enable_stage1_languages=c ;;
8762 ,yes,)
8763 enable_stage1_languages=`echo $new_enable_languages | \
8764 sed -e "s/^,//" -e "s/,$//" ` ;;
8765 *,all,*)
8766 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8767 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8768 esac
8770 # Add "good" languages from enable_stage1_languages to stage1_languages,
8771 # while "bad" languages go in missing_languages. Leave no duplicates.
8772 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8773 case $potential_languages in
8774 *,$i,*)
8775 case $stage1_languages in
8776 *,$i,*) ;;
8777 *) stage1_languages="$stage1_languages$i," ;;
8778 esac ;;
8780 case $missing_languages in
8781 *,$i,*) ;;
8782 *) missing_languages="$missing_languages$i," ;;
8783 esac ;;
8784 esac
8785 done
8789 # Remove leading/trailing commas that were added for simplicity
8790 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8791 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8792 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8793 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8795 if test "x$missing_languages" != x; then
8796 as_fn_error $? "
8797 The following requested languages could not be built: ${missing_languages}
8798 Supported languages are: ${potential_languages}" "$LINENO" 5
8800 if test "x$new_enable_languages" != "x$enable_languages"; then
8801 echo The following languages will be built: ${new_enable_languages}
8802 enable_languages="$new_enable_languages"
8806 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8809 # Handle --disable-<component> generically.
8810 for dir in $configdirs $build_configdirs $target_configdirs ; do
8811 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8812 varname=`echo $dirname | sed -e s/+/_/g`
8813 if eval test x\${enable_${varname}} "=" xno ; then
8814 noconfigdirs="$noconfigdirs $dir"
8816 done
8818 # Check for Boehm's garbage collector
8819 # Check whether --enable-objc-gc was given.
8820 if test "${enable_objc_gc+set}" = set; then :
8821 enableval=$enable_objc_gc;
8825 # Check whether --with-target-bdw-gc was given.
8826 if test "${with_target_bdw_gc+set}" = set; then :
8827 withval=$with_target_bdw_gc;
8831 # Check whether --with-target-bdw-gc-include was given.
8832 if test "${with_target_bdw_gc_include+set}" = set; then :
8833 withval=$with_target_bdw_gc_include;
8837 # Check whether --with-target-bdw-gc-lib was given.
8838 if test "${with_target_bdw_gc_lib+set}" = set; then :
8839 withval=$with_target_bdw_gc_lib;
8843 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8845 $as_echo_n "checking for bdw garbage collector... " >&6; }
8846 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8848 $as_echo "using bdw-gc in default locations" >&6; }
8849 else
8850 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8851 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8852 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8853 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8854 else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8856 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8859 esac
8861 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8862 case ,${enable_languages}, in
8863 *,c++,*)
8864 # Disable libitm, libsanitizer if we're not building libstdc++
8865 case "${noconfigdirs}" in
8866 *target-libstdc++-v3*)
8867 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
8869 *) ;;
8870 esac
8873 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8875 esac
8877 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8878 # $build_configdirs and $target_configdirs.
8879 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8881 notsupp=""
8882 for dir in . $skipdirs $noconfigdirs ; do
8883 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8884 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8885 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8886 if test -r $srcdir/$dirname/configure ; then
8887 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8888 true
8889 else
8890 notsupp="$notsupp $dir"
8894 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8895 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8896 if test -r $srcdir/$dirname/configure ; then
8897 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8898 true
8899 else
8900 notsupp="$notsupp $dir"
8904 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8905 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8906 if test -r $srcdir/$dirname/configure ; then
8907 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8908 true
8909 else
8910 notsupp="$notsupp $dir"
8914 done
8916 # Quietly strip out all directories which aren't configurable in this tree.
8917 # This relies on all configurable subdirectories being autoconfiscated, which
8918 # is now the case.
8919 build_configdirs_all="$build_configdirs"
8920 build_configdirs=
8921 for i in ${build_configdirs_all} ; do
8922 j=`echo $i | sed -e s/build-//g`
8923 if test -f ${srcdir}/$j/configure ; then
8924 build_configdirs="${build_configdirs} $i"
8926 done
8928 configdirs_all="$configdirs"
8929 configdirs=
8930 for i in ${configdirs_all} ; do
8931 if test -f ${srcdir}/$i/configure ; then
8932 configdirs="${configdirs} $i"
8934 done
8936 target_configdirs_all="$target_configdirs"
8937 target_configdirs=
8938 for i in ${target_configdirs_all} ; do
8939 j=`echo $i | sed -e s/target-//g`
8940 if test -f ${srcdir}/$j/configure ; then
8941 target_configdirs="${target_configdirs} $i"
8943 done
8945 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8946 # so we have to add it after the preceding checks.
8947 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8948 then
8949 case " $configdirs " in
8950 *" libiberty "*)
8951 # If we can build libiberty, we can also build libiberty-linker-plugin.
8952 configdirs="$configdirs libiberty-linker-plugin"
8953 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8954 --with-libiberty=../libiberty-linker-plugin";;
8956 as_fn_error $? "libiberty missing" "$LINENO" 5;;
8957 esac
8960 # Sometimes we have special requirements for the host libiberty.
8961 extra_host_libiberty_configure_flags=
8962 extra_host_zlib_configure_flags=
8963 case " $configdirs " in
8964 *" lto-plugin "* | *" libcc1 "*)
8965 # When these are to be built as shared libraries, the same applies to
8966 # libiberty.
8967 extra_host_libiberty_configure_flags=--enable-shared
8969 *" bfd "*)
8970 # When bfd is to be built as a shared library, the same applies to
8971 # zlib.
8972 if test "$enable_shared" = "yes"; then
8973 extra_host_zlib_configure_flags=--enable-host-shared
8976 esac
8980 # Produce a warning message for the subdirs we can't configure.
8981 # This isn't especially interesting in the Cygnus tree, but in the individual
8982 # FSF releases, it's important to let people know when their machine isn't
8983 # supported by the one or two programs in a package.
8985 if test -n "${notsupp}" && test -z "${norecursion}" ; then
8986 # If $appdirs is non-empty, at least one of those directories must still
8987 # be configured, or we error out. (E.g., if the gas release supports a
8988 # specified target in some subdirs but not the gas subdir, we shouldn't
8989 # pretend that all is well.)
8990 if test -n "$appdirs" ; then
8991 for dir in $appdirs ; do
8992 if test -r $dir/Makefile.in ; then
8993 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8994 appdirs=""
8995 break
8997 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8998 appdirs=""
8999 break
9002 done
9003 if test -n "$appdirs" ; then
9004 echo "*** This configuration is not supported by this package." 1>&2
9005 exit 1
9008 # Okay, some application will build, or we don't care to check. Still
9009 # notify of subdirs not getting built.
9010 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9011 echo " ${notsupp}" 1>&2
9012 echo " (Any other directories should still work fine.)" 1>&2
9015 case "$host" in
9016 *msdosdjgpp*)
9017 enable_gdbtk=no ;;
9018 esac
9020 # To find our prefix, in gcc_cv_tool_prefix.
9022 # The user is always right.
9023 if test "${PATH_SEPARATOR+set}" != set; then
9024 echo "#! /bin/sh" >conf$$.sh
9025 echo "exit 0" >>conf$$.sh
9026 chmod +x conf$$.sh
9027 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9028 PATH_SEPARATOR=';'
9029 else
9030 PATH_SEPARATOR=:
9032 rm -f conf$$.sh
9036 get_gcc_base_ver="cat"
9038 # Check whether --with-gcc-major-version-only was given.
9039 if test "${with_gcc_major_version_only+set}" = set; then :
9040 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9041 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9051 if test "x$exec_prefix" = xNONE; then
9052 if test "x$prefix" = xNONE; then
9053 gcc_cv_tool_prefix=$ac_default_prefix
9054 else
9055 gcc_cv_tool_prefix=$prefix
9057 else
9058 gcc_cv_tool_prefix=$exec_prefix
9061 # If there is no compiler in the tree, use the PATH only. In any
9062 # case, if there is no compiler in the tree nobody should use
9063 # AS_FOR_TARGET and LD_FOR_TARGET.
9064 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9065 if test x$with_gcc_major_version_only = xyes ; then
9066 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9067 else
9068 gcc_version=`cat $srcdir/gcc/BASE-VER`
9070 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9071 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9072 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9073 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9074 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9076 else
9077 gcc_cv_tool_dirs=
9080 if test x$build = x$target && test -n "$md_exec_prefix"; then
9081 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9086 copy_dirs=
9089 # Check whether --with-build-sysroot was given.
9090 if test "${with_build_sysroot+set}" = set; then :
9091 withval=$with_build_sysroot; if test x"$withval" != x ; then
9092 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9094 else
9095 SYSROOT_CFLAGS_FOR_TARGET=
9101 # Check whether --with-debug-prefix-map was given.
9102 if test "${with_debug_prefix_map+set}" = set; then :
9103 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9104 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9105 for debug_map in $withval; do
9106 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9107 done
9109 else
9110 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9115 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9116 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9117 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9118 # We want to ensure that TARGET libraries (which we know are built with
9119 # gcc) are built with "-O2 -g", so include those options when setting
9120 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9121 if test "x$CFLAGS_FOR_TARGET" = x; then
9122 if test "x${is_cross_compiler}" = xyes; then
9123 CFLAGS_FOR_TARGET="-g -O2"
9124 else
9125 CFLAGS_FOR_TARGET=$CFLAGS
9126 case " $CFLAGS " in
9127 *" -O2 "*) ;;
9128 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9129 esac
9130 case " $CFLAGS " in
9131 *" -g "* | *" -g3 "*) ;;
9132 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9133 esac
9138 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9139 if test "x${is_cross_compiler}" = xyes; then
9140 CXXFLAGS_FOR_TARGET="-g -O2"
9141 else
9142 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9143 case " $CXXFLAGS " in
9144 *" -O2 "*) ;;
9145 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9146 esac
9147 case " $CXXFLAGS " in
9148 *" -g "* | *" -g3 "*) ;;
9149 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9150 esac
9157 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9158 # the named directory are copied to $(tooldir)/sys-include.
9159 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9160 if test x${is_cross_compiler} = xno ; then
9161 echo 1>&2 '***' --with-headers is only supported when cross compiling
9162 exit 1
9164 if test x"${with_headers}" != xyes ; then
9165 x=${gcc_cv_tool_prefix}
9166 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9170 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9171 # the name directories are copied to $(tooldir)/lib. Multiple directories
9172 # are permitted.
9173 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9174 if test x${is_cross_compiler} = xno ; then
9175 echo 1>&2 '***' --with-libs is only supported when cross compiling
9176 exit 1
9178 if test x"${with_libs}" != xyes ; then
9179 # Copy the libraries in reverse order, so that files in the first named
9180 # library override files in subsequent libraries.
9181 x=${gcc_cv_tool_prefix}
9182 for l in ${with_libs}; do
9183 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9184 done
9188 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9190 # This is done by determining whether or not the appropriate directory
9191 # is available, and by checking whether or not specific configurations
9192 # have requested that this magic not happen.
9194 # The command line options always override the explicit settings in
9195 # configure.ac, and the settings in configure.ac override this magic.
9197 # If the default for a toolchain is to use GNU as and ld, and you don't
9198 # want to do that, then you should use the --without-gnu-as and
9199 # --without-gnu-ld options for the configure script. Similarly, if
9200 # the default is to use the included zlib and you don't want to do that,
9201 # you should use the --with-system-zlib option for the configure script.
9203 if test x${use_gnu_as} = x &&
9204 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9205 with_gnu_as=yes
9206 extra_host_args="$extra_host_args --with-gnu-as"
9209 if test x${use_gnu_ld} = x &&
9210 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9211 with_gnu_ld=yes
9212 extra_host_args="$extra_host_args --with-gnu-ld"
9215 if test x${use_included_zlib} = x &&
9216 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9218 else
9219 with_system_zlib=yes
9220 extra_host_args="$extra_host_args --with-system-zlib"
9223 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9224 # can detect this case.
9226 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9227 with_newlib=yes
9228 extra_host_args="$extra_host_args --with-newlib"
9231 # Handle ${copy_dirs}
9232 set fnord ${copy_dirs}
9233 shift
9234 while test $# != 0 ; do
9235 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9237 else
9238 echo Copying $1 to $2
9240 # Use the install script to create the directory and all required
9241 # parent directories.
9242 if test -d $2 ; then
9244 else
9245 echo >config.temp
9246 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9249 # Copy the directory, assuming we have tar.
9250 # FIXME: Should we use B in the second tar? Not all systems support it.
9251 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9253 # It is the responsibility of the user to correctly adjust all
9254 # symlinks. If somebody can figure out how to handle them correctly
9255 # here, feel free to add the code.
9257 echo $1 > $2/COPIED
9259 shift; shift
9260 done
9262 # Determine a target-dependent exec_prefix that the installed
9263 # gcc will search in. Keep this list sorted by triplet, with
9264 # the *-*-osname triplets last.
9265 md_exec_prefix=
9266 case "${target}" in
9267 i[34567]86-pc-msdosdjgpp*)
9268 md_exec_prefix=/dev/env/DJDIR/bin
9270 *-*-hpux* | \
9271 *-*-nto-qnx* | \
9272 *-*-solaris2*)
9273 md_exec_prefix=/usr/ccs/bin
9275 esac
9277 extra_arflags_for_target=
9278 extra_nmflags_for_target=
9279 extra_ranlibflags_for_target=
9280 target_makefile_frag=/dev/null
9281 case "${target}" in
9282 spu-*-*)
9283 target_makefile_frag="config/mt-spu"
9285 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9286 target_makefile_frag="config/mt-sde"
9288 mipsisa*-*-elfoabi*)
9289 target_makefile_frag="config/mt-mips-elfoabi"
9291 mips*-*-*linux* | mips*-*-gnu*)
9292 target_makefile_frag="config/mt-mips-gnu"
9294 nios2-*-elf*)
9295 target_makefile_frag="config/mt-nios2-elf"
9297 *-*-linux-android*)
9298 target_makefile_frag="config/mt-android"
9300 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9301 target_makefile_frag="config/mt-gnu"
9303 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9304 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9305 # commands to handle both 32-bit and 64-bit objects. These flags are
9306 # harmless if we're using GNU nm or ar.
9307 extra_arflags_for_target=" -X32_64"
9308 extra_nmflags_for_target=" -B -X32_64"
9310 esac
9312 alphaieee_frag=/dev/null
9313 case $target in
9314 alpha*-*-*)
9315 # This just makes sure to use the -mieee option to build target libs.
9316 # This should probably be set individually by each library.
9317 alphaieee_frag="config/mt-alphaieee"
9319 esac
9321 # If --enable-target-optspace always use -Os instead of -O2 to build
9322 # the target libraries, similarly if it is not specified, use -Os
9323 # on selected platforms.
9324 ospace_frag=/dev/null
9325 case "${enable_target_optspace}:${target}" in
9326 yes:*)
9327 ospace_frag="config/mt-ospace"
9329 :d30v-*)
9330 ospace_frag="config/mt-d30v"
9332 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9333 ospace_frag="config/mt-ospace"
9335 no:* | :*)
9338 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9340 esac
9342 # Some systems (e.g., one of the i386-aix systems the gas testers are
9343 # using) don't handle "\$" correctly, so don't use it here.
9344 tooldir='${exec_prefix}'/${target_noncanonical}
9345 build_tooldir=${tooldir}
9347 # Create a .gdbinit file which runs the one in srcdir
9348 # and tells GDB to look there for source files.
9350 if test -r ${srcdir}/.gdbinit ; then
9351 case ${srcdir} in
9352 .) ;;
9353 *) cat > ./.gdbinit <<EOF
9354 # ${NO_EDIT}
9355 dir ${srcdir}
9356 dir .
9357 source ${srcdir}/.gdbinit
9360 esac
9363 # Make sure that the compiler is able to generate an executable. If it
9364 # can't, we are probably in trouble. We don't care whether we can run the
9365 # executable--we might be using a cross compiler--we only care whether it
9366 # can be created. At this point the main configure script has set CC.
9367 we_are_ok=no
9368 echo "int main () { return 0; }" > conftest.c
9369 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9370 if test $? = 0 ; then
9371 if test -s conftest || test -s conftest.exe ; then
9372 we_are_ok=yes
9375 case $we_are_ok in
9377 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9378 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9379 rm -f conftest*
9380 exit 1
9382 esac
9383 rm -f conftest*
9385 # Decide which environment variable is used to find dynamic libraries.
9386 case "${host}" in
9387 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9388 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9389 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9390 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9391 esac
9393 # On systems where the dynamic library environment variable is PATH,
9394 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9395 # built executables to PATH.
9396 if test "$RPATH_ENVVAR" = PATH; then
9397 GCC_SHLIB_SUBDIR=/shlib
9398 else
9399 GCC_SHLIB_SUBDIR=
9402 # Adjust the toplevel makefile according to whether bootstrap was selected.
9403 case $enable_bootstrap in
9404 yes)
9405 bootstrap_suffix=bootstrap
9406 BUILD_CONFIG=bootstrap-debug
9409 bootstrap_suffix=no-bootstrap
9410 BUILD_CONFIG=
9412 esac
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9415 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9418 # Check whether --with-build-config was given.
9419 if test "${with_build_config+set}" = set; then :
9420 withval=$with_build_config; case $with_build_config in
9421 yes) with_build_config= ;;
9422 no) with_build_config= BUILD_CONFIG= ;;
9423 esac
9427 if test "x${with_build_config}" != x; then
9428 BUILD_CONFIG=$with_build_config
9429 else
9430 case $BUILD_CONFIG in
9431 bootstrap-debug)
9432 if echo "int f (void) { return 0; }" > conftest.c &&
9433 ${CC} -c conftest.c &&
9434 mv conftest.o conftest.o.g0 &&
9435 ${CC} -c -g conftest.c &&
9436 mv conftest.o conftest.o.g &&
9437 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9439 else
9440 BUILD_CONFIG=
9442 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9444 esac
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9447 $as_echo "$BUILD_CONFIG" >&6; }
9450 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9452 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9453 # Check whether --enable-vtable-verify was given.
9454 if test "${enable_vtable_verify+set}" = set; then :
9455 enableval=$enable_vtable_verify; case "$enableval" in
9456 yes) enable_vtable_verify=yes ;;
9457 no) enable_vtable_verify=no ;;
9458 *) enable_vtable_verify=no;;
9459 esac
9460 else
9461 enable_vtable_verify=no
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9465 $as_echo "$enable_vtable_verify" >&6; }
9467 # Record target_configdirs and the configure arguments for target and
9468 # build configuration in Makefile.
9469 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9470 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9471 bootstrap_fixincludes=no
9473 # If we are building libgomp, bootstrap it.
9474 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9475 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9478 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9479 # or bootstrap-ubsan, bootstrap it.
9480 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9481 case "$BUILD_CONFIG" in
9482 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9483 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9484 bootstrap_fixincludes=yes
9486 esac
9489 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9490 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9491 test "$enable_vtable_verify" != no; then
9492 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9495 # Determine whether gdb needs tk/tcl or not.
9496 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9497 # and in that case we want gdb to be built without tk. Ugh!
9498 # In fact I believe gdb is the *only* package directly dependent on tk,
9499 # so we should be able to put the 'maybe's in unconditionally and
9500 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9501 # 100% sure that that's safe though.
9503 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9504 case "$enable_gdbtk" in
9506 GDB_TK="" ;;
9507 yes)
9508 GDB_TK="${gdb_tk}" ;;
9510 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9511 # distro. Eventually someone will fix this and move Insight, nee
9512 # gdbtk to a separate directory.
9513 if test -d ${srcdir}/gdb/gdbtk ; then
9514 GDB_TK="${gdb_tk}"
9515 else
9516 GDB_TK=""
9519 esac
9520 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9521 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9523 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9524 # else does, only include them if one of these is built. The Makefile
9525 # provides the ordering, so it's enough here to add to the list.
9526 case " ${configdirs} " in
9527 *\ gdb\ *)
9528 configdirs="${configdirs} gnulib gdbsupport"
9530 *\ gdbserver\ *)
9531 configdirs="${configdirs} gnulib gdbsupport"
9533 *\ sim\ *)
9534 configdirs="${configdirs} gnulib"
9536 esac
9538 # Strip out unwanted targets.
9540 # While at that, we remove Makefiles if we were started for recursive
9541 # configuration, so that the top-level Makefile reconfigures them,
9542 # like we used to do when configure itself was recursive.
9544 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9545 # but now we're fixing up the Makefile ourselves with the additional
9546 # commands passed to AC_CONFIG_FILES. Use separate variables
9547 # extrasub-{build,host,target} not because there is any reason to split
9548 # the substitutions up that way, but only to remain below the limit of
9549 # 99 commands in a script, for HP-UX sed.
9551 # Do not nest @if/@endif or @unless/@endunless pairs, because
9552 # configure will not warn you at all.
9554 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9555 yes:yes:*\ gold\ *:*,c++,*) ;;
9556 yes:yes:*\ gold\ *:*)
9557 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9559 esac
9561 extrasub_build=
9562 for module in ${build_configdirs} ; do
9563 if test -z "${no_recursion}" \
9564 && test -f ${build_subdir}/${module}/Makefile; then
9565 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9566 rm -f ${build_subdir}/${module}/Makefile
9568 extrasub_build="$extrasub_build
9569 /^@if build-$module\$/d
9570 /^@endif build-$module\$/d
9571 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9572 /^@if build-$module-$bootstrap_suffix\$/d
9573 /^@endif build-$module-$bootstrap_suffix\$/d
9574 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9575 done
9576 extrasub_host=
9577 for module in ${configdirs} ; do
9578 if test -z "${no_recursion}"; then
9579 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9580 if test -f ${file}; then
9581 echo 1>&2 "*** removing ${file} to force reconfigure"
9582 rm -f ${file}
9584 done
9586 case ${module},${bootstrap_fixincludes} in
9587 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9588 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9589 esac
9590 extrasub_host="$extrasub_host
9591 /^@if $module\$/d
9592 /^@endif $module\$/d
9593 /^@unless $module\$/,/^@endunless $module\$/d
9594 /^@if $module-$host_bootstrap_suffix\$/d
9595 /^@endif $module-$host_bootstrap_suffix\$/d
9596 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9597 done
9598 extrasub_target=
9599 for module in ${target_configdirs} ; do
9600 if test -z "${no_recursion}" \
9601 && test -f ${target_subdir}/${module}/Makefile; then
9602 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9603 rm -f ${target_subdir}/${module}/Makefile
9606 # We only bootstrap target libraries listed in bootstrap_target_libs.
9607 case $bootstrap_target_libs in
9608 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9609 *) target_bootstrap_suffix=no-bootstrap ;;
9610 esac
9612 extrasub_target="$extrasub_target
9613 /^@if target-$module\$/d
9614 /^@endif target-$module\$/d
9615 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9616 /^@if target-$module-$target_bootstrap_suffix\$/d
9617 /^@endif target-$module-$target_bootstrap_suffix\$/d
9618 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9619 done
9621 # Do the final fixup along with target modules.
9622 extrasub_target="$extrasub_target
9623 /^@if /,/^@endif /d
9624 /^@unless /d
9625 /^@endunless /d"
9627 # Create the serialization dependencies. This uses a temporary file.
9629 # Check whether --enable-serial-configure was given.
9630 if test "${enable_serial_configure+set}" = set; then :
9631 enableval=$enable_serial_configure;
9635 case ${enable_serial_configure} in
9636 yes)
9637 enable_serial_build_configure=yes
9638 enable_serial_host_configure=yes
9639 enable_serial_target_configure=yes
9641 esac
9643 # These force 'configure's to be done one at a time, to avoid problems
9644 # with contention over a shared config.cache.
9645 rm -f serdep.tmp
9646 echo '# serdep.tmp' > serdep.tmp
9647 olditem=
9648 test "x${enable_serial_build_configure}" = xyes &&
9649 for item in ${build_configdirs} ; do
9650 case ${olditem} in
9651 "") ;;
9652 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9653 esac
9654 olditem=${item}
9655 done
9656 olditem=
9657 test "x${enable_serial_host_configure}" = xyes &&
9658 for item in ${configdirs} ; do
9659 case ${olditem} in
9660 "") ;;
9661 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9662 esac
9663 olditem=${item}
9664 done
9665 olditem=
9666 test "x${enable_serial_target_configure}" = xyes &&
9667 for item in ${target_configdirs} ; do
9668 case ${olditem} in
9669 "") ;;
9670 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9671 esac
9672 olditem=${item}
9673 done
9674 serialization_dependencies=serdep.tmp
9677 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9678 # target, nonopt, and variable assignments. These are the ones we
9679 # might not want to pass down to subconfigures. The exception being
9680 # --cache-file=/dev/null, which is used to turn off the use of cache
9681 # files altogether, and which should be passed on to subconfigures.
9682 # Also strip program-prefix, program-suffix, and program-transform-name,
9683 # so that we can pass down a consistent program-transform-name.
9684 baseargs=
9685 tbaseargs=
9686 keep_next=no
9687 skip_next=no
9688 eval "set -- $ac_configure_args"
9689 for ac_arg
9691 if test X"$skip_next" = X"yes"; then
9692 skip_next=no
9693 continue
9695 if test X"$keep_next" = X"yes"; then
9696 case $ac_arg in
9697 *\'*)
9698 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9699 esac
9700 baseargs="$baseargs '$ac_arg'"
9701 tbaseargs="$tbaseargs '$ac_arg'"
9702 keep_next=no
9703 continue
9706 # Handle separated arguments. Based on the logic generated by
9707 # autoconf 2.59.
9708 case $ac_arg in
9709 *=* | --config-cache | -C | -disable-* | --disable-* \
9710 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9711 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9712 | -with-* | --with-* | -without-* | --without-* | --x)
9713 separate_arg=no
9716 separate_arg=yes
9719 separate_arg=no
9721 esac
9723 skip_targ=no
9724 case $ac_arg in
9726 --with-* | --without-*)
9727 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9729 case $libopt in
9730 *[-_]include)
9731 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9733 *[-_]lib)
9734 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9737 lib=$libopt
9739 esac
9742 case $lib in
9743 mpc | mpfr | gmp | isl)
9744 # If we're processing --with-$lib, --with-$lib-include or
9745 # --with-$lib-lib, for one of the libs above, and target is
9746 # different from host, don't pass the current argument to any
9747 # target library's configure.
9748 if test x$is_cross_compiler = xyes; then
9749 skip_targ=yes
9752 esac
9754 esac
9756 case "$ac_arg" in
9757 --cache-file=/dev/null | \
9758 -cache-file=/dev/null )
9759 # Handled here to avoid the test to skip args below.
9760 baseargs="$baseargs '$ac_arg'"
9761 tbaseargs="$tbaseargs '$ac_arg'"
9762 # Assert: $separate_arg should always be no.
9763 keep_next=$separate_arg
9765 --no*)
9766 continue
9768 --c* | \
9769 --sr* | \
9770 --ho* | \
9771 --bu* | \
9772 --t* | \
9773 --program-* | \
9774 -cache_file* | \
9775 -srcdir* | \
9776 -host* | \
9777 -build* | \
9778 -target* | \
9779 -program-prefix* | \
9780 -program-suffix* | \
9781 -program-transform-name* )
9782 skip_next=$separate_arg
9783 continue
9786 # An option. Add it.
9787 case $ac_arg in
9788 *\'*)
9789 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9790 esac
9791 baseargs="$baseargs '$ac_arg'"
9792 if test X"$skip_targ" = Xno; then
9793 tbaseargs="$tbaseargs '$ac_arg'"
9795 keep_next=$separate_arg
9798 # Either a variable assignment, or a nonopt (triplet). Don't
9799 # pass it down; let the Makefile handle this.
9800 continue
9802 esac
9803 done
9804 # Remove the initial space we just introduced and, as these will be
9805 # expanded by make, quote '$'.
9806 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9808 # Add in --program-transform-name, after --program-prefix and
9809 # --program-suffix have been applied to it. Autoconf has already
9810 # doubled dollar signs and backslashes in program_transform_name; we want
9811 # the backslashes un-doubled, and then the entire thing wrapped in single
9812 # quotes, because this will be expanded first by make and then by the shell.
9813 # Also, because we want to override the logic in subdir configure scripts to
9814 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9815 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9816 ${program_transform_name}
9817 EOF_SED
9818 gcc_transform_name=`cat conftestsed.out`
9819 rm -f conftestsed.out
9820 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9821 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9822 if test "$silent" = yes; then
9823 baseargs="$baseargs --silent"
9824 tbaseargs="$tbaseargs --silent"
9826 baseargs="$baseargs --disable-option-checking"
9827 tbaseargs="$tbaseargs --disable-option-checking"
9829 # Record and document user additions to sub configure arguments.
9834 # For the build-side libraries, we just need to pretend we're native,
9835 # and not use the same cache file. Multilibs are neither needed nor
9836 # desired. We can't even use the same cache file for all build-side
9837 # libraries, as they're compiled differently; some with C, some with
9838 # C++ or with different feature-enabling options.
9839 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9841 # For host modules, accept cache file option, or specification as blank.
9842 case "${cache_file}" in
9843 "") # empty
9844 cache_file_option="" ;;
9845 /* | [A-Za-z]:[\\/]* ) # absolute path
9846 cache_file_option="--cache-file=${cache_file}" ;;
9847 *) # relative path
9848 cache_file_option="--cache-file=../${cache_file}" ;;
9849 esac
9851 # Host dirs don't like to share a cache file either, horribly enough.
9852 # This seems to be due to autoconf 2.5x stupidity.
9853 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9855 target_configargs="$target_configargs ${tbaseargs}"
9857 # Passing a --with-cross-host argument lets the target libraries know
9858 # whether they are being built with a cross-compiler or being built
9859 # native. However, it would be better to use other mechanisms to make the
9860 # sorts of decisions they want to make on this basis. Please consider
9861 # this option to be deprecated. FIXME.
9862 if test x${is_cross_compiler} = xyes ; then
9863 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
9866 # Special user-friendly check for native x86_64-linux build, if
9867 # multilib is not explicitly enabled.
9868 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9869 x86_64-*linux*:yes:$build:$build:)
9870 # Make sure we have a development environment that handles 32-bit
9871 dev64=no
9872 echo "int main () { return 0; }" > conftest.c
9873 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9874 if test $? = 0 ; then
9875 if test -s conftest || test -s conftest.exe ; then
9876 dev64=yes
9879 rm -f conftest*
9880 if test x${dev64} != xyes ; then
9881 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
9884 esac
9886 # Default to --enable-multilib.
9887 if test x${enable_multilib} = x ; then
9888 target_configargs="--enable-multilib ${target_configargs}"
9891 # Pass --with-newlib if appropriate. Note that target_configdirs has
9892 # changed from the earlier setting of with_newlib.
9893 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9894 target_configargs="--with-newlib ${target_configargs}"
9897 # Different target subdirs use different values of certain variables
9898 # (notably CXX). Worse, multilibs use *lots* of different values.
9899 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9900 # it doesn't automatically accept command-line overrides of them.
9901 # This means it's not safe for target subdirs to share a cache file,
9902 # which is disgusting, but there you have it. Hopefully this can be
9903 # fixed in future. It's still worthwhile to use a cache file for each
9904 # directory. I think.
9906 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9907 # We need to pass --target, as newer autoconf's requires consistency
9908 # for target_alias and gcc doesn't manage it consistently.
9909 target_configargs="--cache-file=./config.cache ${target_configargs}"
9911 FLAGS_FOR_TARGET=
9912 case " $target_configdirs " in
9913 *" newlib "*)
9914 case " $target_configargs " in
9915 *" --with-newlib "*)
9916 case "$target" in
9917 *-cygwin*)
9918 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9920 esac
9922 # If we're not building GCC, don't discard standard headers.
9923 if test -d ${srcdir}/gcc; then
9924 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9926 if test "${build}" != "${host}"; then
9927 # On Canadian crosses, CC_FOR_TARGET will have already been set
9928 # by `configure', so we won't have an opportunity to add -Bgcc/
9929 # to it. This is right: we don't want to search that directory
9930 # for binaries, but we want the header files in there, so add
9931 # them explicitly.
9932 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9934 # Someone might think of using the pre-installed headers on
9935 # Canadian crosses, in case the installed compiler is not fully
9936 # compatible with the compiler being built. In this case, it
9937 # would be better to flag an error than risking having
9938 # incompatible object files being constructed. We can't
9939 # guarantee that an error will be flagged, but let's hope the
9940 # compiler will do it, when presented with incompatible header
9941 # files.
9945 case "${target}-${is_cross_compiler}" in
9946 i[3456789]86-*-linux*-no)
9947 # Here host == target, so we don't need to build gcc,
9948 # so we don't want to discard standard headers.
9949 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9952 # If we're building newlib, use its generic headers last, but search
9953 # for any libc-related directories first (so make it the last -B
9954 # switch).
9955 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9957 # If we're building libgloss, find the startup file, simulator library
9958 # and linker script.
9959 case " $target_configdirs " in
9960 *" libgloss "*)
9961 # Look for startup file, simulator library and maybe linker script.
9962 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9963 # Look for libnosys.a in case the target needs it.
9964 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9965 # Most targets have the linker script in the source directory.
9966 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9968 esac
9970 esac
9972 esac
9974 esac
9976 case "$target" in
9977 x86_64-*mingw* | *-w64-mingw*)
9978 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9979 # however, use a symlink named 'mingw' in ${prefix} .
9980 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9982 *-mingw*)
9983 # MinGW can't be handled as Cygwin above since it does not use newlib.
9984 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'
9986 esac
9988 # Allow the user to override the flags for
9989 # our build compiler if desired.
9990 if test x"${build}" = x"${host}" ; then
9991 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
9992 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
9993 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
9996 # On Canadian crosses, we'll be searching the right directories for
9997 # the previously-installed cross compiler, so don't bother to add
9998 # flags for directories within the install tree of the compiler
9999 # being built; programs in there won't even run.
10000 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10001 # Search for pre-installed headers if nothing else fits.
10002 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10005 if test "x${use_gnu_ld}" = x &&
10006 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10007 # Arrange for us to find uninstalled linker scripts.
10008 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10011 # Search for other target-specific linker scripts and such.
10012 case "${target}" in
10013 mep*)
10014 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10016 esac
10018 # Makefile fragments.
10019 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10021 eval fragval=\$$frag
10022 if test $fragval != /dev/null; then
10023 eval $frag=${srcdir}/$fragval
10025 done
10031 # Miscellanea: directories, flags, etc.
10040 # Build module lists & subconfigure args.
10044 # Host module lists & subconfigure args.
10049 # Target module lists & subconfigure args.
10053 # Build tools.
10072 # Generate default definitions for YACC, M4, LEX and other programs that run
10073 # on the build machine. These are used if the Makefile can't locate these
10074 # programs in objdir.
10075 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10077 for ac_prog in 'bison -y' byacc yacc
10079 # Extract the first word of "$ac_prog", so it can be a program name with args.
10080 set dummy $ac_prog; ac_word=$2
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 $as_echo_n "checking for $ac_word... " >&6; }
10083 if ${ac_cv_prog_YACC+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 if test -n "$YACC"; then
10087 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10088 else
10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096 ac_cv_prog_YACC="$ac_prog"
10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 break 2
10100 done
10101 done
10102 IFS=$as_save_IFS
10106 YACC=$ac_cv_prog_YACC
10107 if test -n "$YACC"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10109 $as_echo "$YACC" >&6; }
10110 else
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10116 test -n "$YACC" && break
10117 done
10118 test -n "$YACC" || YACC="$MISSING bison -y"
10120 case " $build_configdirs " in
10121 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10122 esac
10124 for ac_prog in bison
10126 # Extract the first word of "$ac_prog", so it can be a program name with args.
10127 set dummy $ac_prog; ac_word=$2
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 $as_echo_n "checking for $ac_word... " >&6; }
10130 if ${ac_cv_prog_BISON+:} false; then :
10131 $as_echo_n "(cached) " >&6
10132 else
10133 if test -n "$BISON"; then
10134 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10135 else
10136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137 for as_dir in $PATH
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
10141 for ac_exec_ext in '' $ac_executable_extensions; do
10142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10143 ac_cv_prog_BISON="$ac_prog"
10144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10145 break 2
10147 done
10148 done
10149 IFS=$as_save_IFS
10153 BISON=$ac_cv_prog_BISON
10154 if test -n "$BISON"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10156 $as_echo "$BISON" >&6; }
10157 else
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159 $as_echo "no" >&6; }
10163 test -n "$BISON" && break
10164 done
10165 test -n "$BISON" || BISON="$MISSING bison"
10167 case " $build_configdirs " in
10168 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10169 esac
10171 for ac_prog in gm4 gnum4 m4
10173 # Extract the first word of "$ac_prog", so it can be a program name with args.
10174 set dummy $ac_prog; ac_word=$2
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10176 $as_echo_n "checking for $ac_word... " >&6; }
10177 if ${ac_cv_prog_M4+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 if test -n "$M4"; then
10181 ac_cv_prog_M4="$M4" # Let the user override the test.
10182 else
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in $PATH
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_prog_M4="$ac_prog"
10191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10194 done
10195 done
10196 IFS=$as_save_IFS
10200 M4=$ac_cv_prog_M4
10201 if test -n "$M4"; then
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10203 $as_echo "$M4" >&6; }
10204 else
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206 $as_echo "no" >&6; }
10210 test -n "$M4" && break
10211 done
10212 test -n "$M4" || M4="$MISSING m4"
10214 case " $build_configdirs " in
10215 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10216 esac
10218 for ac_prog in flex lex
10220 # Extract the first word of "$ac_prog", so it can be a program name with args.
10221 set dummy $ac_prog; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if ${ac_cv_prog_LEX+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 if test -n "$LEX"; then
10228 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10229 else
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237 ac_cv_prog_LEX="$ac_prog"
10238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10241 done
10242 done
10243 IFS=$as_save_IFS
10247 LEX=$ac_cv_prog_LEX
10248 if test -n "$LEX"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10250 $as_echo "$LEX" >&6; }
10251 else
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10257 test -n "$LEX" && break
10258 done
10259 test -n "$LEX" || LEX="$MISSING flex"
10261 case " $build_configdirs " in
10262 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10263 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10264 esac
10266 for ac_prog in flex
10268 # Extract the first word of "$ac_prog", so it can be a program name with args.
10269 set dummy $ac_prog; ac_word=$2
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271 $as_echo_n "checking for $ac_word... " >&6; }
10272 if ${ac_cv_prog_FLEX+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274 else
10275 if test -n "$FLEX"; then
10276 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10277 else
10278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285 ac_cv_prog_FLEX="$ac_prog"
10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10287 break 2
10289 done
10290 done
10291 IFS=$as_save_IFS
10295 FLEX=$ac_cv_prog_FLEX
10296 if test -n "$FLEX"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10298 $as_echo "$FLEX" >&6; }
10299 else
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10305 test -n "$FLEX" && break
10306 done
10307 test -n "$FLEX" || FLEX="$MISSING flex"
10309 case " $build_configdirs " in
10310 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10311 esac
10313 for ac_prog in makeinfo
10315 # Extract the first word of "$ac_prog", so it can be a program name with args.
10316 set dummy $ac_prog; ac_word=$2
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10318 $as_echo_n "checking for $ac_word... " >&6; }
10319 if ${ac_cv_prog_MAKEINFO+:} false; then :
10320 $as_echo_n "(cached) " >&6
10321 else
10322 if test -n "$MAKEINFO"; then
10323 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10324 else
10325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326 for as_dir in $PATH
10328 IFS=$as_save_IFS
10329 test -z "$as_dir" && as_dir=.
10330 for ac_exec_ext in '' $ac_executable_extensions; do
10331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10332 ac_cv_prog_MAKEINFO="$ac_prog"
10333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10334 break 2
10336 done
10337 done
10338 IFS=$as_save_IFS
10342 MAKEINFO=$ac_cv_prog_MAKEINFO
10343 if test -n "$MAKEINFO"; then
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10345 $as_echo "$MAKEINFO" >&6; }
10346 else
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348 $as_echo "no" >&6; }
10352 test -n "$MAKEINFO" && break
10353 done
10354 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10356 case " $build_configdirs " in
10357 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10360 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10361 # higher, else we use the "missing" dummy.
10362 if ${MAKEINFO} --version \
10363 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10365 else
10366 MAKEINFO="$MISSING makeinfo"
10370 esac
10372 # FIXME: expect and dejagnu may become build tools?
10374 for ac_prog in expect
10376 # Extract the first word of "$ac_prog", so it can be a program name with args.
10377 set dummy $ac_prog; ac_word=$2
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379 $as_echo_n "checking for $ac_word... " >&6; }
10380 if ${ac_cv_prog_EXPECT+:} false; then :
10381 $as_echo_n "(cached) " >&6
10382 else
10383 if test -n "$EXPECT"; then
10384 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10385 else
10386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387 for as_dir in $PATH
10389 IFS=$as_save_IFS
10390 test -z "$as_dir" && as_dir=.
10391 for ac_exec_ext in '' $ac_executable_extensions; do
10392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10393 ac_cv_prog_EXPECT="$ac_prog"
10394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10395 break 2
10397 done
10398 done
10399 IFS=$as_save_IFS
10403 EXPECT=$ac_cv_prog_EXPECT
10404 if test -n "$EXPECT"; then
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10406 $as_echo "$EXPECT" >&6; }
10407 else
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409 $as_echo "no" >&6; }
10413 test -n "$EXPECT" && break
10414 done
10415 test -n "$EXPECT" || EXPECT="expect"
10417 case " $configdirs " in
10418 *" expect "*)
10419 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10421 esac
10423 for ac_prog in runtest
10425 # Extract the first word of "$ac_prog", so it can be a program name with args.
10426 set dummy $ac_prog; ac_word=$2
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 $as_echo_n "checking for $ac_word... " >&6; }
10429 if ${ac_cv_prog_RUNTEST+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 if test -n "$RUNTEST"; then
10433 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10434 else
10435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436 for as_dir in $PATH
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10442 ac_cv_prog_RUNTEST="$ac_prog"
10443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 break 2
10446 done
10447 done
10448 IFS=$as_save_IFS
10452 RUNTEST=$ac_cv_prog_RUNTEST
10453 if test -n "$RUNTEST"; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10455 $as_echo "$RUNTEST" >&6; }
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }
10462 test -n "$RUNTEST" && break
10463 done
10464 test -n "$RUNTEST" || RUNTEST="runtest"
10466 case " $configdirs " in
10467 *" dejagnu "*)
10468 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10470 esac
10473 # Host tools.
10474 ncn_tool_prefix=
10475 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10476 ncn_target_tool_prefix=
10477 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10481 if test -n "$AR"; then
10482 ac_cv_prog_AR=$AR
10483 elif test -n "$ac_cv_prog_AR"; then
10484 AR=$ac_cv_prog_AR
10487 if test -n "$ac_cv_prog_AR"; then
10488 for ncn_progname in ar; do
10489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10490 set dummy ${ncn_progname}; ac_word=$2
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492 $as_echo_n "checking for $ac_word... " >&6; }
10493 if ${ac_cv_prog_AR+:} false; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 if test -n "$AR"; then
10497 ac_cv_prog_AR="$AR" # Let the user override the test.
10498 else
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10506 ac_cv_prog_AR="${ncn_progname}"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10510 done
10511 done
10512 IFS=$as_save_IFS
10516 AR=$ac_cv_prog_AR
10517 if test -n "$AR"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10519 $as_echo "$AR" >&6; }
10520 else
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; }
10526 done
10529 for ncn_progname in ar; do
10530 if test -n "$ncn_tool_prefix"; then
10531 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10532 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534 $as_echo_n "checking for $ac_word... " >&6; }
10535 if ${ac_cv_prog_AR+:} false; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 if test -n "$AR"; then
10539 ac_cv_prog_AR="$AR" # Let the user override the test.
10540 else
10541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542 for as_dir in $PATH
10544 IFS=$as_save_IFS
10545 test -z "$as_dir" && as_dir=.
10546 for ac_exec_ext in '' $ac_executable_extensions; do
10547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10548 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10550 break 2
10552 done
10553 done
10554 IFS=$as_save_IFS
10558 AR=$ac_cv_prog_AR
10559 if test -n "$AR"; then
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10561 $as_echo "$AR" >&6; }
10562 else
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 $as_echo "no" >&6; }
10569 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10571 set dummy ${ncn_progname}; ac_word=$2
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10573 $as_echo_n "checking for $ac_word... " >&6; }
10574 if ${ac_cv_prog_AR+:} false; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10577 if test -n "$AR"; then
10578 ac_cv_prog_AR="$AR" # Let the user override the test.
10579 else
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581 for as_dir in $PATH
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
10585 for ac_exec_ext in '' $ac_executable_extensions; do
10586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10587 ac_cv_prog_AR="${ncn_progname}"
10588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10589 break 2
10591 done
10592 done
10593 IFS=$as_save_IFS
10597 AR=$ac_cv_prog_AR
10598 if test -n "$AR"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10600 $as_echo "$AR" >&6; }
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10608 test -n "$ac_cv_prog_AR" && break
10609 done
10611 if test -z "$ac_cv_prog_AR" ; then
10612 set dummy ar
10613 if test $build = $host ; then
10614 AR="$2"
10615 else
10616 AR="${ncn_tool_prefix}$2"
10622 if test -n "$AS"; then
10623 ac_cv_prog_AS=$AS
10624 elif test -n "$ac_cv_prog_AS"; then
10625 AS=$ac_cv_prog_AS
10628 if test -n "$ac_cv_prog_AS"; then
10629 for ncn_progname in as; do
10630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10631 set dummy ${ncn_progname}; ac_word=$2
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633 $as_echo_n "checking for $ac_word... " >&6; }
10634 if ${ac_cv_prog_AS+:} false; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 if test -n "$AS"; then
10638 ac_cv_prog_AS="$AS" # Let the user override the test.
10639 else
10640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641 for as_dir in $PATH
10643 IFS=$as_save_IFS
10644 test -z "$as_dir" && as_dir=.
10645 for ac_exec_ext in '' $ac_executable_extensions; do
10646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10647 ac_cv_prog_AS="${ncn_progname}"
10648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 break 2
10651 done
10652 done
10653 IFS=$as_save_IFS
10657 AS=$ac_cv_prog_AS
10658 if test -n "$AS"; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10660 $as_echo "$AS" >&6; }
10661 else
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; }
10667 done
10670 for ncn_progname in as; do
10671 if test -n "$ncn_tool_prefix"; then
10672 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10673 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675 $as_echo_n "checking for $ac_word... " >&6; }
10676 if ${ac_cv_prog_AS+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 if test -n "$AS"; then
10680 ac_cv_prog_AS="$AS" # Let the user override the test.
10681 else
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10685 IFS=$as_save_IFS
10686 test -z "$as_dir" && as_dir=.
10687 for ac_exec_ext in '' $ac_executable_extensions; do
10688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10691 break 2
10693 done
10694 done
10695 IFS=$as_save_IFS
10699 AS=$ac_cv_prog_AS
10700 if test -n "$AS"; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10702 $as_echo "$AS" >&6; }
10703 else
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; }
10710 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10712 set dummy ${ncn_progname}; ac_word=$2
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714 $as_echo_n "checking for $ac_word... " >&6; }
10715 if ${ac_cv_prog_AS+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 if test -n "$AS"; then
10719 ac_cv_prog_AS="$AS" # Let the user override the test.
10720 else
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10724 IFS=$as_save_IFS
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10728 ac_cv_prog_AS="${ncn_progname}"
10729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 break 2
10732 done
10733 done
10734 IFS=$as_save_IFS
10738 AS=$ac_cv_prog_AS
10739 if test -n "$AS"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10741 $as_echo "$AS" >&6; }
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10749 test -n "$ac_cv_prog_AS" && break
10750 done
10752 if test -z "$ac_cv_prog_AS" ; then
10753 set dummy as
10754 if test $build = $host ; then
10755 AS="$2"
10756 else
10757 AS="${ncn_tool_prefix}$2"
10763 if test -n "$DLLTOOL"; then
10764 ac_cv_prog_DLLTOOL=$DLLTOOL
10765 elif test -n "$ac_cv_prog_DLLTOOL"; then
10766 DLLTOOL=$ac_cv_prog_DLLTOOL
10769 if test -n "$ac_cv_prog_DLLTOOL"; then
10770 for ncn_progname in dlltool; do
10771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10772 set dummy ${ncn_progname}; ac_word=$2
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10774 $as_echo_n "checking for $ac_word... " >&6; }
10775 if ${ac_cv_prog_DLLTOOL+:} false; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 if test -n "$DLLTOOL"; then
10779 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10780 else
10781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782 for as_dir in $PATH
10784 IFS=$as_save_IFS
10785 test -z "$as_dir" && as_dir=.
10786 for ac_exec_ext in '' $ac_executable_extensions; do
10787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10788 ac_cv_prog_DLLTOOL="${ncn_progname}"
10789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10790 break 2
10792 done
10793 done
10794 IFS=$as_save_IFS
10798 DLLTOOL=$ac_cv_prog_DLLTOOL
10799 if test -n "$DLLTOOL"; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10801 $as_echo "$DLLTOOL" >&6; }
10802 else
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804 $as_echo "no" >&6; }
10808 done
10811 for ncn_progname in dlltool; do
10812 if test -n "$ncn_tool_prefix"; then
10813 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10814 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10816 $as_echo_n "checking for $ac_word... " >&6; }
10817 if ${ac_cv_prog_DLLTOOL+:} false; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 if test -n "$DLLTOOL"; then
10821 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10822 else
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 break 2
10834 done
10835 done
10836 IFS=$as_save_IFS
10840 DLLTOOL=$ac_cv_prog_DLLTOOL
10841 if test -n "$DLLTOOL"; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10843 $as_echo "$DLLTOOL" >&6; }
10844 else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846 $as_echo "no" >&6; }
10851 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10853 set dummy ${ncn_progname}; ac_word=$2
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10855 $as_echo_n "checking for $ac_word... " >&6; }
10856 if ${ac_cv_prog_DLLTOOL+:} false; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 if test -n "$DLLTOOL"; then
10860 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10861 else
10862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863 for as_dir in $PATH
10865 IFS=$as_save_IFS
10866 test -z "$as_dir" && as_dir=.
10867 for ac_exec_ext in '' $ac_executable_extensions; do
10868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10869 ac_cv_prog_DLLTOOL="${ncn_progname}"
10870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10871 break 2
10873 done
10874 done
10875 IFS=$as_save_IFS
10879 DLLTOOL=$ac_cv_prog_DLLTOOL
10880 if test -n "$DLLTOOL"; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10882 $as_echo "$DLLTOOL" >&6; }
10883 else
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885 $as_echo "no" >&6; }
10890 test -n "$ac_cv_prog_DLLTOOL" && break
10891 done
10893 if test -z "$ac_cv_prog_DLLTOOL" ; then
10894 set dummy dlltool
10895 if test $build = $host ; then
10896 DLLTOOL="$2"
10897 else
10898 DLLTOOL="${ncn_tool_prefix}$2"
10904 if test -n "$DSYMUTIL"; then
10905 ac_cv_prog_DSYMUTIL=$DSYMUTIL
10906 elif test -n "$ac_cv_prog_DSYMUTIL"; then
10907 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10910 if test -n "$ac_cv_prog_DSYMUTIL"; then
10911 for ncn_progname in dsymutil; do
10912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10913 set dummy ${ncn_progname}; ac_word=$2
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915 $as_echo_n "checking for $ac_word... " >&6; }
10916 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 if test -n "$DSYMUTIL"; then
10920 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10921 else
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10929 ac_cv_prog_DSYMUTIL="${ncn_progname}"
10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10933 done
10934 done
10935 IFS=$as_save_IFS
10939 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10940 if test -n "$DSYMUTIL"; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10942 $as_echo "$DSYMUTIL" >&6; }
10943 else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; }
10949 done
10952 for ncn_progname in dsymutil; do
10953 if test -n "$ncn_tool_prefix"; then
10954 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10955 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10957 $as_echo_n "checking for $ac_word... " >&6; }
10958 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10959 $as_echo_n "(cached) " >&6
10960 else
10961 if test -n "$DSYMUTIL"; then
10962 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10963 else
10964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965 for as_dir in $PATH
10967 IFS=$as_save_IFS
10968 test -z "$as_dir" && as_dir=.
10969 for ac_exec_ext in '' $ac_executable_extensions; do
10970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10971 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
10972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10973 break 2
10975 done
10976 done
10977 IFS=$as_save_IFS
10981 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10982 if test -n "$DSYMUTIL"; then
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10984 $as_echo "$DSYMUTIL" >&6; }
10985 else
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10987 $as_echo "no" >&6; }
10992 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
10993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10994 set dummy ${ncn_progname}; ac_word=$2
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996 $as_echo_n "checking for $ac_word... " >&6; }
10997 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 if test -n "$DSYMUTIL"; then
11001 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11002 else
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11010 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11014 done
11015 done
11016 IFS=$as_save_IFS
11020 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11021 if test -n "$DSYMUTIL"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11023 $as_echo "$DSYMUTIL" >&6; }
11024 else
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026 $as_echo "no" >&6; }
11031 test -n "$ac_cv_prog_DSYMUTIL" && break
11032 done
11034 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11035 set dummy dsymutil
11036 if test $build = $host ; then
11037 DSYMUTIL="$2"
11038 else
11039 DSYMUTIL="${ncn_tool_prefix}$2"
11045 if test -n "$LD"; then
11046 ac_cv_prog_LD=$LD
11047 elif test -n "$ac_cv_prog_LD"; then
11048 LD=$ac_cv_prog_LD
11051 if test -n "$ac_cv_prog_LD"; then
11052 for ncn_progname in ld; do
11053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11054 set dummy ${ncn_progname}; ac_word=$2
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11056 $as_echo_n "checking for $ac_word... " >&6; }
11057 if ${ac_cv_prog_LD+:} false; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 if test -n "$LD"; then
11061 ac_cv_prog_LD="$LD" # Let the user override the test.
11062 else
11063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064 for as_dir in $PATH
11066 IFS=$as_save_IFS
11067 test -z "$as_dir" && as_dir=.
11068 for ac_exec_ext in '' $ac_executable_extensions; do
11069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11070 ac_cv_prog_LD="${ncn_progname}"
11071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11072 break 2
11074 done
11075 done
11076 IFS=$as_save_IFS
11080 LD=$ac_cv_prog_LD
11081 if test -n "$LD"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11083 $as_echo "$LD" >&6; }
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11090 done
11093 for ncn_progname in ld; do
11094 if test -n "$ncn_tool_prefix"; then
11095 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11096 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098 $as_echo_n "checking for $ac_word... " >&6; }
11099 if ${ac_cv_prog_LD+:} false; then :
11100 $as_echo_n "(cached) " >&6
11101 else
11102 if test -n "$LD"; then
11103 ac_cv_prog_LD="$LD" # Let the user override the test.
11104 else
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11112 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 break 2
11116 done
11117 done
11118 IFS=$as_save_IFS
11122 LD=$ac_cv_prog_LD
11123 if test -n "$LD"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11125 $as_echo "$LD" >&6; }
11126 else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11133 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11135 set dummy ${ncn_progname}; ac_word=$2
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11137 $as_echo_n "checking for $ac_word... " >&6; }
11138 if ${ac_cv_prog_LD+:} false; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 if test -n "$LD"; then
11142 ac_cv_prog_LD="$LD" # Let the user override the test.
11143 else
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $PATH
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_prog_LD="${ncn_progname}"
11152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11153 break 2
11155 done
11156 done
11157 IFS=$as_save_IFS
11161 LD=$ac_cv_prog_LD
11162 if test -n "$LD"; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11164 $as_echo "$LD" >&6; }
11165 else
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11172 test -n "$ac_cv_prog_LD" && break
11173 done
11175 if test -z "$ac_cv_prog_LD" ; then
11176 set dummy ld
11177 if test $build = $host ; then
11178 LD="$2"
11179 else
11180 LD="${ncn_tool_prefix}$2"
11186 if test -n "$LIPO"; then
11187 ac_cv_prog_LIPO=$LIPO
11188 elif test -n "$ac_cv_prog_LIPO"; then
11189 LIPO=$ac_cv_prog_LIPO
11192 if test -n "$ac_cv_prog_LIPO"; then
11193 for ncn_progname in lipo; do
11194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11195 set dummy ${ncn_progname}; ac_word=$2
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197 $as_echo_n "checking for $ac_word... " >&6; }
11198 if ${ac_cv_prog_LIPO+:} false; then :
11199 $as_echo_n "(cached) " >&6
11200 else
11201 if test -n "$LIPO"; then
11202 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11203 else
11204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $PATH
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11211 ac_cv_prog_LIPO="${ncn_progname}"
11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11213 break 2
11215 done
11216 done
11217 IFS=$as_save_IFS
11221 LIPO=$ac_cv_prog_LIPO
11222 if test -n "$LIPO"; then
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11224 $as_echo "$LIPO" >&6; }
11225 else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227 $as_echo "no" >&6; }
11231 done
11234 for ncn_progname in lipo; do
11235 if test -n "$ncn_tool_prefix"; then
11236 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11237 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239 $as_echo_n "checking for $ac_word... " >&6; }
11240 if ${ac_cv_prog_LIPO+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 if test -n "$LIPO"; then
11244 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11245 else
11246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247 for as_dir in $PATH
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
11251 for ac_exec_ext in '' $ac_executable_extensions; do
11252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11253 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 break 2
11257 done
11258 done
11259 IFS=$as_save_IFS
11263 LIPO=$ac_cv_prog_LIPO
11264 if test -n "$LIPO"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11266 $as_echo "$LIPO" >&6; }
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11274 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11276 set dummy ${ncn_progname}; ac_word=$2
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11278 $as_echo_n "checking for $ac_word... " >&6; }
11279 if ${ac_cv_prog_LIPO+:} false; then :
11280 $as_echo_n "(cached) " >&6
11281 else
11282 if test -n "$LIPO"; then
11283 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11284 else
11285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286 for as_dir in $PATH
11288 IFS=$as_save_IFS
11289 test -z "$as_dir" && as_dir=.
11290 for ac_exec_ext in '' $ac_executable_extensions; do
11291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11292 ac_cv_prog_LIPO="${ncn_progname}"
11293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11294 break 2
11296 done
11297 done
11298 IFS=$as_save_IFS
11302 LIPO=$ac_cv_prog_LIPO
11303 if test -n "$LIPO"; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11305 $as_echo "$LIPO" >&6; }
11306 else
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11308 $as_echo "no" >&6; }
11313 test -n "$ac_cv_prog_LIPO" && break
11314 done
11316 if test -z "$ac_cv_prog_LIPO" ; then
11317 set dummy lipo
11318 if test $build = $host ; then
11319 LIPO="$2"
11320 else
11321 LIPO="${ncn_tool_prefix}$2"
11327 if test -n "$NM"; then
11328 ac_cv_prog_NM=$NM
11329 elif test -n "$ac_cv_prog_NM"; then
11330 NM=$ac_cv_prog_NM
11333 if test -n "$ac_cv_prog_NM"; then
11334 for ncn_progname in nm; do
11335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11336 set dummy ${ncn_progname}; ac_word=$2
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338 $as_echo_n "checking for $ac_word... " >&6; }
11339 if ${ac_cv_prog_NM+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 if test -n "$NM"; then
11343 ac_cv_prog_NM="$NM" # Let the user override the test.
11344 else
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11352 ac_cv_prog_NM="${ncn_progname}"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 break 2
11356 done
11357 done
11358 IFS=$as_save_IFS
11362 NM=$ac_cv_prog_NM
11363 if test -n "$NM"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11365 $as_echo "$NM" >&6; }
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11372 done
11375 for ncn_progname in nm; do
11376 if test -n "$ncn_tool_prefix"; then
11377 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11378 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380 $as_echo_n "checking for $ac_word... " >&6; }
11381 if ${ac_cv_prog_NM+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 if test -n "$NM"; then
11385 ac_cv_prog_NM="$NM" # Let the user override the test.
11386 else
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11394 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 break 2
11398 done
11399 done
11400 IFS=$as_save_IFS
11404 NM=$ac_cv_prog_NM
11405 if test -n "$NM"; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11407 $as_echo "$NM" >&6; }
11408 else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11415 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11417 set dummy ${ncn_progname}; ac_word=$2
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419 $as_echo_n "checking for $ac_word... " >&6; }
11420 if ${ac_cv_prog_NM+:} false; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 if test -n "$NM"; then
11424 ac_cv_prog_NM="$NM" # Let the user override the test.
11425 else
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11433 ac_cv_prog_NM="${ncn_progname}"
11434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11435 break 2
11437 done
11438 done
11439 IFS=$as_save_IFS
11443 NM=$ac_cv_prog_NM
11444 if test -n "$NM"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11446 $as_echo "$NM" >&6; }
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 $as_echo "no" >&6; }
11454 test -n "$ac_cv_prog_NM" && break
11455 done
11457 if test -z "$ac_cv_prog_NM" ; then
11458 set dummy nm
11459 if test $build = $host ; then
11460 NM="$2"
11461 else
11462 NM="${ncn_tool_prefix}$2"
11468 if test -n "$RANLIB"; then
11469 ac_cv_prog_RANLIB=$RANLIB
11470 elif test -n "$ac_cv_prog_RANLIB"; then
11471 RANLIB=$ac_cv_prog_RANLIB
11474 if test -n "$ac_cv_prog_RANLIB"; then
11475 for ncn_progname in ranlib; do
11476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11477 set dummy ${ncn_progname}; ac_word=$2
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479 $as_echo_n "checking for $ac_word... " >&6; }
11480 if ${ac_cv_prog_RANLIB+:} false; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 if test -n "$RANLIB"; then
11484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11485 else
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11489 IFS=$as_save_IFS
11490 test -z "$as_dir" && as_dir=.
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11493 ac_cv_prog_RANLIB="${ncn_progname}"
11494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11495 break 2
11497 done
11498 done
11499 IFS=$as_save_IFS
11503 RANLIB=$ac_cv_prog_RANLIB
11504 if test -n "$RANLIB"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11506 $as_echo "$RANLIB" >&6; }
11507 else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11513 done
11516 for ncn_progname in ranlib; do
11517 if test -n "$ncn_tool_prefix"; then
11518 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11519 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11521 $as_echo_n "checking for $ac_word... " >&6; }
11522 if ${ac_cv_prog_RANLIB+:} false; then :
11523 $as_echo_n "(cached) " >&6
11524 else
11525 if test -n "$RANLIB"; then
11526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11527 else
11528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529 for as_dir in $PATH
11531 IFS=$as_save_IFS
11532 test -z "$as_dir" && as_dir=.
11533 for ac_exec_ext in '' $ac_executable_extensions; do
11534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11535 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11537 break 2
11539 done
11540 done
11541 IFS=$as_save_IFS
11545 RANLIB=$ac_cv_prog_RANLIB
11546 if test -n "$RANLIB"; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11548 $as_echo "$RANLIB" >&6; }
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11556 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11558 set dummy ${ncn_progname}; ac_word=$2
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11560 $as_echo_n "checking for $ac_word... " >&6; }
11561 if ${ac_cv_prog_RANLIB+:} false; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 if test -n "$RANLIB"; then
11565 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11566 else
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11570 IFS=$as_save_IFS
11571 test -z "$as_dir" && as_dir=.
11572 for ac_exec_ext in '' $ac_executable_extensions; do
11573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11574 ac_cv_prog_RANLIB="${ncn_progname}"
11575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11576 break 2
11578 done
11579 done
11580 IFS=$as_save_IFS
11584 RANLIB=$ac_cv_prog_RANLIB
11585 if test -n "$RANLIB"; then
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11587 $as_echo "$RANLIB" >&6; }
11588 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590 $as_echo "no" >&6; }
11595 test -n "$ac_cv_prog_RANLIB" && break
11596 done
11598 if test -z "$ac_cv_prog_RANLIB" ; then
11599 RANLIB="true"
11604 if test -n "$STRIP"; then
11605 ac_cv_prog_STRIP=$STRIP
11606 elif test -n "$ac_cv_prog_STRIP"; then
11607 STRIP=$ac_cv_prog_STRIP
11610 if test -n "$ac_cv_prog_STRIP"; then
11611 for ncn_progname in strip; do
11612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11613 set dummy ${ncn_progname}; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if ${ac_cv_prog_STRIP+:} false; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 if test -n "$STRIP"; then
11620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11621 else
11622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623 for as_dir in $PATH
11625 IFS=$as_save_IFS
11626 test -z "$as_dir" && as_dir=.
11627 for ac_exec_ext in '' $ac_executable_extensions; do
11628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11629 ac_cv_prog_STRIP="${ncn_progname}"
11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11631 break 2
11633 done
11634 done
11635 IFS=$as_save_IFS
11639 STRIP=$ac_cv_prog_STRIP
11640 if test -n "$STRIP"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11642 $as_echo "$STRIP" >&6; }
11643 else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11649 done
11652 for ncn_progname in strip; do
11653 if test -n "$ncn_tool_prefix"; then
11654 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11655 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if ${ac_cv_prog_STRIP+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 if test -n "$STRIP"; then
11662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11663 else
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11675 done
11676 done
11677 IFS=$as_save_IFS
11681 STRIP=$ac_cv_prog_STRIP
11682 if test -n "$STRIP"; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11684 $as_echo "$STRIP" >&6; }
11685 else
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11692 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11694 set dummy ${ncn_progname}; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if ${ac_cv_prog_STRIP+:} false; then :
11698 $as_echo_n "(cached) " >&6
11699 else
11700 if test -n "$STRIP"; then
11701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11702 else
11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11706 IFS=$as_save_IFS
11707 test -z "$as_dir" && as_dir=.
11708 for ac_exec_ext in '' $ac_executable_extensions; do
11709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11710 ac_cv_prog_STRIP="${ncn_progname}"
11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 break 2
11714 done
11715 done
11716 IFS=$as_save_IFS
11720 STRIP=$ac_cv_prog_STRIP
11721 if test -n "$STRIP"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11723 $as_echo "$STRIP" >&6; }
11724 else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11731 test -n "$ac_cv_prog_STRIP" && break
11732 done
11734 if test -z "$ac_cv_prog_STRIP" ; then
11735 STRIP="true"
11740 if test -n "$WINDRES"; then
11741 ac_cv_prog_WINDRES=$WINDRES
11742 elif test -n "$ac_cv_prog_WINDRES"; then
11743 WINDRES=$ac_cv_prog_WINDRES
11746 if test -n "$ac_cv_prog_WINDRES"; then
11747 for ncn_progname in windres; do
11748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11749 set dummy ${ncn_progname}; ac_word=$2
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11751 $as_echo_n "checking for $ac_word... " >&6; }
11752 if ${ac_cv_prog_WINDRES+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 if test -n "$WINDRES"; then
11756 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11757 else
11758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759 for as_dir in $PATH
11761 IFS=$as_save_IFS
11762 test -z "$as_dir" && as_dir=.
11763 for ac_exec_ext in '' $ac_executable_extensions; do
11764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11765 ac_cv_prog_WINDRES="${ncn_progname}"
11766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11767 break 2
11769 done
11770 done
11771 IFS=$as_save_IFS
11775 WINDRES=$ac_cv_prog_WINDRES
11776 if test -n "$WINDRES"; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11778 $as_echo "$WINDRES" >&6; }
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11785 done
11788 for ncn_progname in windres; do
11789 if test -n "$ncn_tool_prefix"; then
11790 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11791 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if ${ac_cv_prog_WINDRES+:} false; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 if test -n "$WINDRES"; then
11798 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11799 else
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11811 done
11812 done
11813 IFS=$as_save_IFS
11817 WINDRES=$ac_cv_prog_WINDRES
11818 if test -n "$WINDRES"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11820 $as_echo "$WINDRES" >&6; }
11821 else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11828 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11830 set dummy ${ncn_progname}; ac_word=$2
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11832 $as_echo_n "checking for $ac_word... " >&6; }
11833 if ${ac_cv_prog_WINDRES+:} false; then :
11834 $as_echo_n "(cached) " >&6
11835 else
11836 if test -n "$WINDRES"; then
11837 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11838 else
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840 for as_dir in $PATH
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11846 ac_cv_prog_WINDRES="${ncn_progname}"
11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11848 break 2
11850 done
11851 done
11852 IFS=$as_save_IFS
11856 WINDRES=$ac_cv_prog_WINDRES
11857 if test -n "$WINDRES"; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11859 $as_echo "$WINDRES" >&6; }
11860 else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11867 test -n "$ac_cv_prog_WINDRES" && break
11868 done
11870 if test -z "$ac_cv_prog_WINDRES" ; then
11871 set dummy windres
11872 if test $build = $host ; then
11873 WINDRES="$2"
11874 else
11875 WINDRES="${ncn_tool_prefix}$2"
11881 if test -n "$WINDMC"; then
11882 ac_cv_prog_WINDMC=$WINDMC
11883 elif test -n "$ac_cv_prog_WINDMC"; then
11884 WINDMC=$ac_cv_prog_WINDMC
11887 if test -n "$ac_cv_prog_WINDMC"; then
11888 for ncn_progname in windmc; do
11889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11890 set dummy ${ncn_progname}; ac_word=$2
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892 $as_echo_n "checking for $ac_word... " >&6; }
11893 if ${ac_cv_prog_WINDMC+:} false; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11896 if test -n "$WINDMC"; then
11897 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11898 else
11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH
11902 IFS=$as_save_IFS
11903 test -z "$as_dir" && as_dir=.
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11906 ac_cv_prog_WINDMC="${ncn_progname}"
11907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908 break 2
11910 done
11911 done
11912 IFS=$as_save_IFS
11916 WINDMC=$ac_cv_prog_WINDMC
11917 if test -n "$WINDMC"; then
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11919 $as_echo "$WINDMC" >&6; }
11920 else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11926 done
11929 for ncn_progname in windmc; do
11930 if test -n "$ncn_tool_prefix"; then
11931 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11932 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11934 $as_echo_n "checking for $ac_word... " >&6; }
11935 if ${ac_cv_prog_WINDMC+:} false; then :
11936 $as_echo_n "(cached) " >&6
11937 else
11938 if test -n "$WINDMC"; then
11939 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11940 else
11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942 for as_dir in $PATH
11944 IFS=$as_save_IFS
11945 test -z "$as_dir" && as_dir=.
11946 for ac_exec_ext in '' $ac_executable_extensions; do
11947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11948 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11950 break 2
11952 done
11953 done
11954 IFS=$as_save_IFS
11958 WINDMC=$ac_cv_prog_WINDMC
11959 if test -n "$WINDMC"; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11961 $as_echo "$WINDMC" >&6; }
11962 else
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11969 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11971 set dummy ${ncn_progname}; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if ${ac_cv_prog_WINDMC+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 if test -n "$WINDMC"; then
11978 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11979 else
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11983 IFS=$as_save_IFS
11984 test -z "$as_dir" && as_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11987 ac_cv_prog_WINDMC="${ncn_progname}"
11988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11989 break 2
11991 done
11992 done
11993 IFS=$as_save_IFS
11997 WINDMC=$ac_cv_prog_WINDMC
11998 if test -n "$WINDMC"; then
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12000 $as_echo "$WINDMC" >&6; }
12001 else
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003 $as_echo "no" >&6; }
12008 test -n "$ac_cv_prog_WINDMC" && break
12009 done
12011 if test -z "$ac_cv_prog_WINDMC" ; then
12012 set dummy windmc
12013 if test $build = $host ; then
12014 WINDMC="$2"
12015 else
12016 WINDMC="${ncn_tool_prefix}$2"
12022 if test -n "$OBJCOPY"; then
12023 ac_cv_prog_OBJCOPY=$OBJCOPY
12024 elif test -n "$ac_cv_prog_OBJCOPY"; then
12025 OBJCOPY=$ac_cv_prog_OBJCOPY
12028 if test -n "$ac_cv_prog_OBJCOPY"; then
12029 for ncn_progname in objcopy; do
12030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12031 set dummy ${ncn_progname}; ac_word=$2
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033 $as_echo_n "checking for $ac_word... " >&6; }
12034 if ${ac_cv_prog_OBJCOPY+:} false; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 if test -n "$OBJCOPY"; then
12038 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12039 else
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12043 IFS=$as_save_IFS
12044 test -z "$as_dir" && as_dir=.
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047 ac_cv_prog_OBJCOPY="${ncn_progname}"
12048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12049 break 2
12051 done
12052 done
12053 IFS=$as_save_IFS
12057 OBJCOPY=$ac_cv_prog_OBJCOPY
12058 if test -n "$OBJCOPY"; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12060 $as_echo "$OBJCOPY" >&6; }
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12067 done
12070 for ncn_progname in objcopy; do
12071 if test -n "$ncn_tool_prefix"; then
12072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12073 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075 $as_echo_n "checking for $ac_word... " >&6; }
12076 if ${ac_cv_prog_OBJCOPY+:} false; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 if test -n "$OBJCOPY"; then
12080 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12081 else
12082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083 for as_dir in $PATH
12085 IFS=$as_save_IFS
12086 test -z "$as_dir" && as_dir=.
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12089 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12091 break 2
12093 done
12094 done
12095 IFS=$as_save_IFS
12099 OBJCOPY=$ac_cv_prog_OBJCOPY
12100 if test -n "$OBJCOPY"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12102 $as_echo "$OBJCOPY" >&6; }
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12110 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12112 set dummy ${ncn_progname}; ac_word=$2
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114 $as_echo_n "checking for $ac_word... " >&6; }
12115 if ${ac_cv_prog_OBJCOPY+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 if test -n "$OBJCOPY"; then
12119 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12120 else
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12128 ac_cv_prog_OBJCOPY="${ncn_progname}"
12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 break 2
12132 done
12133 done
12134 IFS=$as_save_IFS
12138 OBJCOPY=$ac_cv_prog_OBJCOPY
12139 if test -n "$OBJCOPY"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12141 $as_echo "$OBJCOPY" >&6; }
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12149 test -n "$ac_cv_prog_OBJCOPY" && break
12150 done
12152 if test -z "$ac_cv_prog_OBJCOPY" ; then
12153 set dummy objcopy
12154 if test $build = $host ; then
12155 OBJCOPY="$2"
12156 else
12157 OBJCOPY="${ncn_tool_prefix}$2"
12163 if test -n "$OBJDUMP"; then
12164 ac_cv_prog_OBJDUMP=$OBJDUMP
12165 elif test -n "$ac_cv_prog_OBJDUMP"; then
12166 OBJDUMP=$ac_cv_prog_OBJDUMP
12169 if test -n "$ac_cv_prog_OBJDUMP"; then
12170 for ncn_progname in objdump; do
12171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12172 set dummy ${ncn_progname}; ac_word=$2
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12174 $as_echo_n "checking for $ac_word... " >&6; }
12175 if ${ac_cv_prog_OBJDUMP+:} false; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 if test -n "$OBJDUMP"; then
12179 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12180 else
12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH
12184 IFS=$as_save_IFS
12185 test -z "$as_dir" && as_dir=.
12186 for ac_exec_ext in '' $ac_executable_extensions; do
12187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12188 ac_cv_prog_OBJDUMP="${ncn_progname}"
12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12190 break 2
12192 done
12193 done
12194 IFS=$as_save_IFS
12198 OBJDUMP=$ac_cv_prog_OBJDUMP
12199 if test -n "$OBJDUMP"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12201 $as_echo "$OBJDUMP" >&6; }
12202 else
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12208 done
12211 for ncn_progname in objdump; do
12212 if test -n "$ncn_tool_prefix"; then
12213 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12214 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216 $as_echo_n "checking for $ac_word... " >&6; }
12217 if ${ac_cv_prog_OBJDUMP+:} false; then :
12218 $as_echo_n "(cached) " >&6
12219 else
12220 if test -n "$OBJDUMP"; then
12221 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12222 else
12223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224 for as_dir in $PATH
12226 IFS=$as_save_IFS
12227 test -z "$as_dir" && as_dir=.
12228 for ac_exec_ext in '' $ac_executable_extensions; do
12229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12230 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12232 break 2
12234 done
12235 done
12236 IFS=$as_save_IFS
12240 OBJDUMP=$ac_cv_prog_OBJDUMP
12241 if test -n "$OBJDUMP"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12243 $as_echo "$OBJDUMP" >&6; }
12244 else
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12251 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12253 set dummy ${ncn_progname}; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if ${ac_cv_prog_OBJDUMP+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 if test -n "$OBJDUMP"; then
12260 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12261 else
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12269 ac_cv_prog_OBJDUMP="${ncn_progname}"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12273 done
12274 done
12275 IFS=$as_save_IFS
12279 OBJDUMP=$ac_cv_prog_OBJDUMP
12280 if test -n "$OBJDUMP"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12282 $as_echo "$OBJDUMP" >&6; }
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12290 test -n "$ac_cv_prog_OBJDUMP" && break
12291 done
12293 if test -z "$ac_cv_prog_OBJDUMP" ; then
12294 set dummy objdump
12295 if test $build = $host ; then
12296 OBJDUMP="$2"
12297 else
12298 OBJDUMP="${ncn_tool_prefix}$2"
12304 if test -n "$OTOOL"; then
12305 ac_cv_prog_OTOOL=$OTOOL
12306 elif test -n "$ac_cv_prog_OTOOL"; then
12307 OTOOL=$ac_cv_prog_OTOOL
12310 if test -n "$ac_cv_prog_OTOOL"; then
12311 for ncn_progname in otool; do
12312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12313 set dummy ${ncn_progname}; ac_word=$2
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315 $as_echo_n "checking for $ac_word... " >&6; }
12316 if ${ac_cv_prog_OTOOL+:} false; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12319 if test -n "$OTOOL"; then
12320 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12321 else
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12329 ac_cv_prog_OTOOL="${ncn_progname}"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12333 done
12334 done
12335 IFS=$as_save_IFS
12339 OTOOL=$ac_cv_prog_OTOOL
12340 if test -n "$OTOOL"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12342 $as_echo "$OTOOL" >&6; }
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12349 done
12352 for ncn_progname in otool; do
12353 if test -n "$ncn_tool_prefix"; then
12354 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12355 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357 $as_echo_n "checking for $ac_word... " >&6; }
12358 if ${ac_cv_prog_OTOOL+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 if test -n "$OTOOL"; then
12362 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12363 else
12364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 for as_dir in $PATH
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12371 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12375 done
12376 done
12377 IFS=$as_save_IFS
12381 OTOOL=$ac_cv_prog_OTOOL
12382 if test -n "$OTOOL"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12384 $as_echo "$OTOOL" >&6; }
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12392 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12394 set dummy ${ncn_progname}; ac_word=$2
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396 $as_echo_n "checking for $ac_word... " >&6; }
12397 if ${ac_cv_prog_OTOOL+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 if test -n "$OTOOL"; then
12401 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12402 else
12403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in $PATH
12406 IFS=$as_save_IFS
12407 test -z "$as_dir" && as_dir=.
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12410 ac_cv_prog_OTOOL="${ncn_progname}"
12411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12412 break 2
12414 done
12415 done
12416 IFS=$as_save_IFS
12420 OTOOL=$ac_cv_prog_OTOOL
12421 if test -n "$OTOOL"; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12423 $as_echo "$OTOOL" >&6; }
12424 else
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 $as_echo "no" >&6; }
12431 test -n "$ac_cv_prog_OTOOL" && break
12432 done
12434 if test -z "$ac_cv_prog_OTOOL" ; then
12435 set dummy otool
12436 if test $build = $host ; then
12437 OTOOL="$2"
12438 else
12439 OTOOL="${ncn_tool_prefix}$2"
12445 if test -n "$READELF"; then
12446 ac_cv_prog_READELF=$READELF
12447 elif test -n "$ac_cv_prog_READELF"; then
12448 READELF=$ac_cv_prog_READELF
12451 if test -n "$ac_cv_prog_READELF"; then
12452 for ncn_progname in readelf; do
12453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12454 set dummy ${ncn_progname}; ac_word=$2
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if ${ac_cv_prog_READELF+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 if test -n "$READELF"; then
12461 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12462 else
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12470 ac_cv_prog_READELF="${ncn_progname}"
12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 break 2
12474 done
12475 done
12476 IFS=$as_save_IFS
12480 READELF=$ac_cv_prog_READELF
12481 if test -n "$READELF"; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12483 $as_echo "$READELF" >&6; }
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12490 done
12493 for ncn_progname in readelf; do
12494 if test -n "$ncn_tool_prefix"; then
12495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12496 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498 $as_echo_n "checking for $ac_word... " >&6; }
12499 if ${ac_cv_prog_READELF+:} false; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 if test -n "$READELF"; then
12503 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12504 else
12505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506 for as_dir in $PATH
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
12510 for ac_exec_ext in '' $ac_executable_extensions; do
12511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12512 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514 break 2
12516 done
12517 done
12518 IFS=$as_save_IFS
12522 READELF=$ac_cv_prog_READELF
12523 if test -n "$READELF"; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12525 $as_echo "$READELF" >&6; }
12526 else
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528 $as_echo "no" >&6; }
12533 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12535 set dummy ${ncn_progname}; ac_word=$2
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537 $as_echo_n "checking for $ac_word... " >&6; }
12538 if ${ac_cv_prog_READELF+:} false; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 if test -n "$READELF"; then
12542 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12543 else
12544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545 for as_dir in $PATH
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
12550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12551 ac_cv_prog_READELF="${ncn_progname}"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12553 break 2
12555 done
12556 done
12557 IFS=$as_save_IFS
12561 READELF=$ac_cv_prog_READELF
12562 if test -n "$READELF"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12564 $as_echo "$READELF" >&6; }
12565 else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 $as_echo "no" >&6; }
12572 test -n "$ac_cv_prog_READELF" && break
12573 done
12575 if test -z "$ac_cv_prog_READELF" ; then
12576 set dummy readelf
12577 if test $build = $host ; then
12578 READELF="$2"
12579 else
12580 READELF="${ncn_tool_prefix}$2"
12589 # Target tools.
12591 # Check whether --with-build-time-tools was given.
12592 if test "${with_build_time_tools+set}" = set; then :
12593 withval=$with_build_time_tools; case x"$withval" in
12594 x/*) ;;
12596 with_build_time_tools=
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12598 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12600 esac
12601 else
12602 with_build_time_tools=
12608 if test -n "$CC_FOR_TARGET"; then
12609 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12610 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12611 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12614 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12615 for ncn_progname in cc gcc; 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_CC_FOR_TARGET+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 if test -n "$CC_FOR_TARGET"; then
12624 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # 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_CC_FOR_TARGET="${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 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12644 if test -n "$CC_FOR_TARGET"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12646 $as_echo "$CC_FOR_TARGET" >&6; }
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12653 done
12656 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12657 for ncn_progname in cc gcc; do
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12659 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12660 if test -x $with_build_time_tools/${ncn_progname}; then
12661 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12663 $as_echo "yes" >&6; }
12664 break
12665 else
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12669 done
12672 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12673 for ncn_progname in cc gcc; do
12674 if test -n "$ncn_target_tool_prefix"; then
12675 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12676 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12678 $as_echo_n "checking for $ac_word... " >&6; }
12679 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 if test -n "$CC_FOR_TARGET"; then
12683 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12684 else
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12692 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12696 done
12697 done
12698 IFS=$as_save_IFS
12702 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12703 if test -n "$CC_FOR_TARGET"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12705 $as_echo "$CC_FOR_TARGET" >&6; }
12706 else
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708 $as_echo "no" >&6; }
12713 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12715 set dummy ${ncn_progname}; ac_word=$2
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717 $as_echo_n "checking for $ac_word... " >&6; }
12718 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 if test -n "$CC_FOR_TARGET"; then
12722 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12723 else
12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12727 IFS=$as_save_IFS
12728 test -z "$as_dir" && as_dir=.
12729 for ac_exec_ext in '' $ac_executable_extensions; do
12730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12731 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12733 break 2
12735 done
12736 done
12737 IFS=$as_save_IFS
12741 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12742 if test -n "$CC_FOR_TARGET"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12744 $as_echo "$CC_FOR_TARGET" >&6; }
12745 else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747 $as_echo "no" >&6; }
12752 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12753 done
12756 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12757 set dummy cc gcc
12758 if test $build = $target ; then
12759 CC_FOR_TARGET="$2"
12760 else
12761 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12763 else
12764 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12769 if test -n "$CXX_FOR_TARGET"; then
12770 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12771 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12772 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12775 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12776 for ncn_progname in c++ g++ cxx gxx; do
12777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12778 set dummy ${ncn_progname}; ac_word=$2
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780 $as_echo_n "checking for $ac_word... " >&6; }
12781 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12782 $as_echo_n "(cached) " >&6
12783 else
12784 if test -n "$CXX_FOR_TARGET"; then
12785 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12786 else
12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788 for as_dir in $PATH
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12794 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796 break 2
12798 done
12799 done
12800 IFS=$as_save_IFS
12804 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12805 if test -n "$CXX_FOR_TARGET"; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12807 $as_echo "$CXX_FOR_TARGET" >&6; }
12808 else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 $as_echo "no" >&6; }
12814 done
12817 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12818 for ncn_progname in c++ g++ cxx gxx; do
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12820 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12821 if test -x $with_build_time_tools/${ncn_progname}; then
12822 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12824 $as_echo "yes" >&6; }
12825 break
12826 else
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12830 done
12833 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12834 for ncn_progname in c++ g++ cxx gxx; do
12835 if test -n "$ncn_target_tool_prefix"; then
12836 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12837 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843 if test -n "$CXX_FOR_TARGET"; then
12844 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12845 else
12846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847 for as_dir in $PATH
12849 IFS=$as_save_IFS
12850 test -z "$as_dir" && as_dir=.
12851 for ac_exec_ext in '' $ac_executable_extensions; do
12852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12853 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12855 break 2
12857 done
12858 done
12859 IFS=$as_save_IFS
12863 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12864 if test -n "$CXX_FOR_TARGET"; then
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12866 $as_echo "$CXX_FOR_TARGET" >&6; }
12867 else
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 $as_echo "no" >&6; }
12874 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12876 set dummy ${ncn_progname}; ac_word=$2
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878 $as_echo_n "checking for $ac_word... " >&6; }
12879 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12880 $as_echo_n "(cached) " >&6
12881 else
12882 if test -n "$CXX_FOR_TARGET"; then
12883 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12884 else
12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12892 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 break 2
12896 done
12897 done
12898 IFS=$as_save_IFS
12902 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12903 if test -n "$CXX_FOR_TARGET"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12905 $as_echo "$CXX_FOR_TARGET" >&6; }
12906 else
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 $as_echo "no" >&6; }
12913 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12914 done
12917 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12918 set dummy c++ g++ cxx gxx
12919 if test $build = $target ; then
12920 CXX_FOR_TARGET="$2"
12921 else
12922 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12924 else
12925 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12930 if test -n "$GCC_FOR_TARGET"; then
12931 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12932 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12933 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12936 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12937 for ncn_progname in gcc; do
12938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12939 set dummy ${ncn_progname}; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941 $as_echo_n "checking for $ac_word... " >&6; }
12942 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12945 if test -n "$GCC_FOR_TARGET"; then
12946 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12947 else
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12955 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12959 done
12960 done
12961 IFS=$as_save_IFS
12965 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12966 if test -n "$GCC_FOR_TARGET"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12968 $as_echo "$GCC_FOR_TARGET" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12975 done
12978 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12979 for ncn_progname in gcc; do
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12981 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12982 if test -x $with_build_time_tools/${ncn_progname}; then
12983 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12985 $as_echo "yes" >&6; }
12986 break
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12991 done
12994 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12995 for ncn_progname in gcc; do
12996 if test -n "$ncn_target_tool_prefix"; then
12997 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12998 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 if test -n "$GCC_FOR_TARGET"; then
13005 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13006 else
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13014 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016 break 2
13018 done
13019 done
13020 IFS=$as_save_IFS
13024 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13025 if test -n "$GCC_FOR_TARGET"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13027 $as_echo "$GCC_FOR_TARGET" >&6; }
13028 else
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13035 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13037 set dummy ${ncn_progname}; ac_word=$2
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039 $as_echo_n "checking for $ac_word... " >&6; }
13040 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 if test -n "$GCC_FOR_TARGET"; then
13044 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13045 else
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $PATH
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13053 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 break 2
13057 done
13058 done
13059 IFS=$as_save_IFS
13063 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13064 if test -n "$GCC_FOR_TARGET"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13066 $as_echo "$GCC_FOR_TARGET" >&6; }
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13074 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13075 done
13078 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13079 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13080 else
13081 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13086 if test -n "$GFORTRAN_FOR_TARGET"; then
13087 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13088 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13089 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13092 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13093 for ncn_progname in gfortran; do
13094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13095 set dummy ${ncn_progname}; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097 $as_echo_n "checking for $ac_word... " >&6; }
13098 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 if test -n "$GFORTRAN_FOR_TARGET"; then
13102 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13103 else
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13107 IFS=$as_save_IFS
13108 test -z "$as_dir" && as_dir=.
13109 for ac_exec_ext in '' $ac_executable_extensions; do
13110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13111 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13113 break 2
13115 done
13116 done
13117 IFS=$as_save_IFS
13121 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13122 if test -n "$GFORTRAN_FOR_TARGET"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13124 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13125 else
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13131 done
13134 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13135 for ncn_progname in gfortran; do
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13137 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13138 if test -x $with_build_time_tools/${ncn_progname}; then
13139 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13141 $as_echo "yes" >&6; }
13142 break
13143 else
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145 $as_echo "no" >&6; }
13147 done
13150 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13151 for ncn_progname in gfortran; do
13152 if test -n "$ncn_target_tool_prefix"; then
13153 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13154 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156 $as_echo_n "checking for $ac_word... " >&6; }
13157 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 if test -n "$GFORTRAN_FOR_TARGET"; then
13161 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13162 else
13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164 for as_dir in $PATH
13166 IFS=$as_save_IFS
13167 test -z "$as_dir" && as_dir=.
13168 for ac_exec_ext in '' $ac_executable_extensions; do
13169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13170 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13172 break 2
13174 done
13175 done
13176 IFS=$as_save_IFS
13180 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13181 if test -n "$GFORTRAN_FOR_TARGET"; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13183 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13184 else
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13191 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13193 set dummy ${ncn_progname}; ac_word=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195 $as_echo_n "checking for $ac_word... " >&6; }
13196 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 if test -n "$GFORTRAN_FOR_TARGET"; then
13200 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13201 else
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13205 IFS=$as_save_IFS
13206 test -z "$as_dir" && as_dir=.
13207 for ac_exec_ext in '' $ac_executable_extensions; do
13208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13209 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211 break 2
13213 done
13214 done
13215 IFS=$as_save_IFS
13219 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13220 if test -n "$GFORTRAN_FOR_TARGET"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13222 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13223 else
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13230 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13231 done
13234 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13235 set dummy gfortran
13236 if test $build = $target ; then
13237 GFORTRAN_FOR_TARGET="$2"
13238 else
13239 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13241 else
13242 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13247 if test -n "$GOC_FOR_TARGET"; then
13248 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13249 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13250 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13253 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13254 for ncn_progname in gccgo; do
13255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13256 set dummy ${ncn_progname}; ac_word=$2
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13258 $as_echo_n "checking for $ac_word... " >&6; }
13259 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 if test -n "$GOC_FOR_TARGET"; then
13263 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13264 else
13265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13266 for as_dir in $PATH
13268 IFS=$as_save_IFS
13269 test -z "$as_dir" && as_dir=.
13270 for ac_exec_ext in '' $ac_executable_extensions; do
13271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13272 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13274 break 2
13276 done
13277 done
13278 IFS=$as_save_IFS
13282 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13283 if test -n "$GOC_FOR_TARGET"; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13285 $as_echo "$GOC_FOR_TARGET" >&6; }
13286 else
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288 $as_echo "no" >&6; }
13292 done
13295 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13296 for ncn_progname in gccgo; do
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13298 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13299 if test -x $with_build_time_tools/${ncn_progname}; then
13300 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13302 $as_echo "yes" >&6; }
13303 break
13304 else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13308 done
13311 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13312 for ncn_progname in gccgo; do
13313 if test -n "$ncn_target_tool_prefix"; then
13314 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13315 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 if test -n "$GOC_FOR_TARGET"; then
13322 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13331 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13335 done
13336 done
13337 IFS=$as_save_IFS
13341 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13342 if test -n "$GOC_FOR_TARGET"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13344 $as_echo "$GOC_FOR_TARGET" >&6; }
13345 else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13352 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13354 set dummy ${ncn_progname}; ac_word=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13358 $as_echo_n "(cached) " >&6
13359 else
13360 if test -n "$GOC_FOR_TARGET"; then
13361 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13362 else
13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364 for as_dir in $PATH
13366 IFS=$as_save_IFS
13367 test -z "$as_dir" && as_dir=.
13368 for ac_exec_ext in '' $ac_executable_extensions; do
13369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13370 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13372 break 2
13374 done
13375 done
13376 IFS=$as_save_IFS
13380 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13381 if test -n "$GOC_FOR_TARGET"; then
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13383 $as_echo "$GOC_FOR_TARGET" >&6; }
13384 else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13391 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13392 done
13395 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13396 set dummy gccgo
13397 if test $build = $target ; then
13398 GOC_FOR_TARGET="$2"
13399 else
13400 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13402 else
13403 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13408 if test -n "$GDC_FOR_TARGET"; then
13409 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13410 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13411 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13414 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13415 for ncn_progname in gdc; do
13416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13417 set dummy ${ncn_progname}; ac_word=$2
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13419 $as_echo_n "checking for $ac_word... " >&6; }
13420 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13421 $as_echo_n "(cached) " >&6
13422 else
13423 if test -n "$GDC_FOR_TARGET"; then
13424 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13425 else
13426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13427 for as_dir in $PATH
13429 IFS=$as_save_IFS
13430 test -z "$as_dir" && as_dir=.
13431 for ac_exec_ext in '' $ac_executable_extensions; do
13432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13433 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13435 break 2
13437 done
13438 done
13439 IFS=$as_save_IFS
13443 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13444 if test -n "$GDC_FOR_TARGET"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13446 $as_echo "$GDC_FOR_TARGET" >&6; }
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13453 done
13456 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13457 for ncn_progname in gdc; do
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13459 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13460 if test -x $with_build_time_tools/${ncn_progname}; then
13461 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13463 $as_echo "yes" >&6; }
13464 break
13465 else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467 $as_echo "no" >&6; }
13469 done
13472 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13473 for ncn_progname in gdc; do
13474 if test -n "$ncn_target_tool_prefix"; then
13475 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13476 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 if test -n "$GDC_FOR_TARGET"; then
13483 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13484 else
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 for as_dir in $PATH
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
13491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13492 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13496 done
13497 done
13498 IFS=$as_save_IFS
13502 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13503 if test -n "$GDC_FOR_TARGET"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13505 $as_echo "$GDC_FOR_TARGET" >&6; }
13506 else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13513 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13515 set dummy ${ncn_progname}; ac_word=$2
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13517 $as_echo_n "checking for $ac_word... " >&6; }
13518 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 if test -n "$GDC_FOR_TARGET"; then
13522 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13523 else
13524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13525 for as_dir in $PATH
13527 IFS=$as_save_IFS
13528 test -z "$as_dir" && as_dir=.
13529 for ac_exec_ext in '' $ac_executable_extensions; do
13530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13531 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13533 break 2
13535 done
13536 done
13537 IFS=$as_save_IFS
13541 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13542 if test -n "$GDC_FOR_TARGET"; then
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13544 $as_echo "$GDC_FOR_TARGET" >&6; }
13545 else
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547 $as_echo "no" >&6; }
13552 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13553 done
13556 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13557 set dummy gdc
13558 if test $build = $target ; then
13559 GDC_FOR_TARGET="$2"
13560 else
13561 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13563 else
13564 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13569 cat > conftest.c << \EOF
13570 #ifdef __GNUC__
13571 gcc_yay;
13572 #endif
13574 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13575 have_gcc_for_target=yes
13576 else
13577 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13578 have_gcc_for_target=no
13580 rm conftest.c
13585 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13586 if test -n "$with_build_time_tools"; then
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13588 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13589 if test -x $with_build_time_tools/ar; then
13590 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13591 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13593 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13594 else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13598 elif test $build != $host && test $have_gcc_for_target = yes; then
13599 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13600 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13601 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13604 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13605 # Extract the first word of "ar", so it can be a program name with args.
13606 set dummy ar; ac_word=$2
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 $as_echo_n "checking for $ac_word... " >&6; }
13609 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 case $AR_FOR_TARGET in
13613 [\\/]* | ?:[\\/]*)
13614 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618 for as_dir in $gcc_cv_tool_dirs
13620 IFS=$as_save_IFS
13621 test -z "$as_dir" && as_dir=.
13622 for ac_exec_ext in '' $ac_executable_extensions; do
13623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13624 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 break 2
13628 done
13629 done
13630 IFS=$as_save_IFS
13633 esac
13635 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13636 if test -n "$AR_FOR_TARGET"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13638 $as_echo "$AR_FOR_TARGET" >&6; }
13639 else
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13646 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13649 if test -n "$AR_FOR_TARGET"; then
13650 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13651 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13652 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13655 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13656 for ncn_progname in ar; do
13657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13658 set dummy ${ncn_progname}; ac_word=$2
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13660 $as_echo_n "checking for $ac_word... " >&6; }
13661 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 if test -n "$AR_FOR_TARGET"; then
13665 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13666 else
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13670 IFS=$as_save_IFS
13671 test -z "$as_dir" && as_dir=.
13672 for ac_exec_ext in '' $ac_executable_extensions; do
13673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13674 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 break 2
13678 done
13679 done
13680 IFS=$as_save_IFS
13684 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13685 if test -n "$AR_FOR_TARGET"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13687 $as_echo "$AR_FOR_TARGET" >&6; }
13688 else
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690 $as_echo "no" >&6; }
13694 done
13697 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13698 for ncn_progname in ar; do
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13700 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13701 if test -x $with_build_time_tools/${ncn_progname}; then
13702 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13704 $as_echo "yes" >&6; }
13705 break
13706 else
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13710 done
13713 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13714 for ncn_progname in ar; do
13715 if test -n "$ncn_target_tool_prefix"; then
13716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13717 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13719 $as_echo_n "checking for $ac_word... " >&6; }
13720 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723 if test -n "$AR_FOR_TARGET"; then
13724 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13725 else
13726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727 for as_dir in $PATH
13729 IFS=$as_save_IFS
13730 test -z "$as_dir" && as_dir=.
13731 for ac_exec_ext in '' $ac_executable_extensions; do
13732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13733 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13735 break 2
13737 done
13738 done
13739 IFS=$as_save_IFS
13743 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13744 if test -n "$AR_FOR_TARGET"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13746 $as_echo "$AR_FOR_TARGET" >&6; }
13747 else
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749 $as_echo "no" >&6; }
13754 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13756 set dummy ${ncn_progname}; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 $as_echo_n "checking for $ac_word... " >&6; }
13759 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 if test -n "$AR_FOR_TARGET"; then
13763 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13764 else
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13768 IFS=$as_save_IFS
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13772 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13774 break 2
13776 done
13777 done
13778 IFS=$as_save_IFS
13782 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13783 if test -n "$AR_FOR_TARGET"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13785 $as_echo "$AR_FOR_TARGET" >&6; }
13786 else
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13793 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13794 done
13797 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13798 set dummy ar
13799 if test $build = $target ; then
13800 AR_FOR_TARGET="$2"
13801 else
13802 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13804 else
13805 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13808 else
13809 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13815 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13816 if test -n "$with_build_time_tools"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13818 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13819 if test -x $with_build_time_tools/as; then
13820 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13821 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13823 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13824 else
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13828 elif test $build != $host && test $have_gcc_for_target = yes; then
13829 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13830 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13831 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13834 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13835 # Extract the first word of "as", so it can be a program name with args.
13836 set dummy as; ac_word=$2
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838 $as_echo_n "checking for $ac_word... " >&6; }
13839 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 case $AS_FOR_TARGET in
13843 [\\/]* | ?:[\\/]*)
13844 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848 for as_dir in $gcc_cv_tool_dirs
13850 IFS=$as_save_IFS
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
13853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13854 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13856 break 2
13858 done
13859 done
13860 IFS=$as_save_IFS
13863 esac
13865 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13866 if test -n "$AS_FOR_TARGET"; then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13868 $as_echo "$AS_FOR_TARGET" >&6; }
13869 else
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871 $as_echo "no" >&6; }
13876 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13879 if test -n "$AS_FOR_TARGET"; then
13880 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13881 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13882 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13885 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13886 for ncn_progname in as; do
13887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13888 set dummy ${ncn_progname}; ac_word=$2
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13890 $as_echo_n "checking for $ac_word... " >&6; }
13891 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13892 $as_echo_n "(cached) " >&6
13893 else
13894 if test -n "$AS_FOR_TARGET"; then
13895 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13896 else
13897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13898 for as_dir in $PATH
13900 IFS=$as_save_IFS
13901 test -z "$as_dir" && as_dir=.
13902 for ac_exec_ext in '' $ac_executable_extensions; do
13903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13904 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13906 break 2
13908 done
13909 done
13910 IFS=$as_save_IFS
13914 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13915 if test -n "$AS_FOR_TARGET"; then
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13917 $as_echo "$AS_FOR_TARGET" >&6; }
13918 else
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13920 $as_echo "no" >&6; }
13924 done
13927 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13928 for ncn_progname in as; do
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13930 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13931 if test -x $with_build_time_tools/${ncn_progname}; then
13932 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13934 $as_echo "yes" >&6; }
13935 break
13936 else
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13938 $as_echo "no" >&6; }
13940 done
13943 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13944 for ncn_progname in as; do
13945 if test -n "$ncn_target_tool_prefix"; then
13946 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13947 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13949 $as_echo_n "checking for $ac_word... " >&6; }
13950 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 if test -n "$AS_FOR_TARGET"; then
13954 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13955 else
13956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957 for as_dir in $PATH
13959 IFS=$as_save_IFS
13960 test -z "$as_dir" && as_dir=.
13961 for ac_exec_ext in '' $ac_executable_extensions; do
13962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13963 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13965 break 2
13967 done
13968 done
13969 IFS=$as_save_IFS
13973 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13974 if test -n "$AS_FOR_TARGET"; then
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13976 $as_echo "$AS_FOR_TARGET" >&6; }
13977 else
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979 $as_echo "no" >&6; }
13984 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13986 set dummy ${ncn_progname}; ac_word=$2
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13988 $as_echo_n "checking for $ac_word... " >&6; }
13989 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 if test -n "$AS_FOR_TARGET"; then
13993 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13994 else
13995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996 for as_dir in $PATH
13998 IFS=$as_save_IFS
13999 test -z "$as_dir" && as_dir=.
14000 for ac_exec_ext in '' $ac_executable_extensions; do
14001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14002 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14004 break 2
14006 done
14007 done
14008 IFS=$as_save_IFS
14012 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14013 if test -n "$AS_FOR_TARGET"; then
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14015 $as_echo "$AS_FOR_TARGET" >&6; }
14016 else
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018 $as_echo "no" >&6; }
14023 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14024 done
14027 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14028 set dummy as
14029 if test $build = $target ; then
14030 AS_FOR_TARGET="$2"
14031 else
14032 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14034 else
14035 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14038 else
14039 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14045 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14046 if test -n "$with_build_time_tools"; then
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14048 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14049 if test -x $with_build_time_tools/dlltool; then
14050 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14051 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14053 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14054 else
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14056 $as_echo "no" >&6; }
14058 elif test $build != $host && test $have_gcc_for_target = yes; then
14059 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14060 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14061 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14064 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14065 # Extract the first word of "dlltool", so it can be a program name with args.
14066 set dummy dlltool; ac_word=$2
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14068 $as_echo_n "checking for $ac_word... " >&6; }
14069 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14070 $as_echo_n "(cached) " >&6
14071 else
14072 case $DLLTOOL_FOR_TARGET in
14073 [\\/]* | ?:[\\/]*)
14074 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078 for as_dir in $gcc_cv_tool_dirs
14080 IFS=$as_save_IFS
14081 test -z "$as_dir" && as_dir=.
14082 for ac_exec_ext in '' $ac_executable_extensions; do
14083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14084 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14086 break 2
14088 done
14089 done
14090 IFS=$as_save_IFS
14093 esac
14095 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14096 if test -n "$DLLTOOL_FOR_TARGET"; then
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14098 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14099 else
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14106 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14109 if test -n "$DLLTOOL_FOR_TARGET"; then
14110 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14111 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14112 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14115 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14116 for ncn_progname in dlltool; do
14117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14118 set dummy ${ncn_progname}; ac_word=$2
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14120 $as_echo_n "checking for $ac_word... " >&6; }
14121 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14122 $as_echo_n "(cached) " >&6
14123 else
14124 if test -n "$DLLTOOL_FOR_TARGET"; then
14125 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14126 else
14127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14128 for as_dir in $PATH
14130 IFS=$as_save_IFS
14131 test -z "$as_dir" && as_dir=.
14132 for ac_exec_ext in '' $ac_executable_extensions; do
14133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14134 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14136 break 2
14138 done
14139 done
14140 IFS=$as_save_IFS
14144 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14145 if test -n "$DLLTOOL_FOR_TARGET"; then
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14147 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14148 else
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14150 $as_echo "no" >&6; }
14154 done
14157 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14158 for ncn_progname in dlltool; do
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14160 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14161 if test -x $with_build_time_tools/${ncn_progname}; then
14162 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14164 $as_echo "yes" >&6; }
14165 break
14166 else
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14168 $as_echo "no" >&6; }
14170 done
14173 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14174 for ncn_progname in dlltool; do
14175 if test -n "$ncn_target_tool_prefix"; then
14176 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14177 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14179 $as_echo_n "checking for $ac_word... " >&6; }
14180 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14181 $as_echo_n "(cached) " >&6
14182 else
14183 if test -n "$DLLTOOL_FOR_TARGET"; then
14184 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14185 else
14186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187 for as_dir in $PATH
14189 IFS=$as_save_IFS
14190 test -z "$as_dir" && as_dir=.
14191 for ac_exec_ext in '' $ac_executable_extensions; do
14192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14193 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14195 break 2
14197 done
14198 done
14199 IFS=$as_save_IFS
14203 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14204 if test -n "$DLLTOOL_FOR_TARGET"; then
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14206 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14207 else
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209 $as_echo "no" >&6; }
14214 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14216 set dummy ${ncn_progname}; ac_word=$2
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14218 $as_echo_n "checking for $ac_word... " >&6; }
14219 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14220 $as_echo_n "(cached) " >&6
14221 else
14222 if test -n "$DLLTOOL_FOR_TARGET"; then
14223 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14224 else
14225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226 for as_dir in $PATH
14228 IFS=$as_save_IFS
14229 test -z "$as_dir" && as_dir=.
14230 for ac_exec_ext in '' $ac_executable_extensions; do
14231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14232 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14234 break 2
14236 done
14237 done
14238 IFS=$as_save_IFS
14242 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14243 if test -n "$DLLTOOL_FOR_TARGET"; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14245 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14246 else
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248 $as_echo "no" >&6; }
14253 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14254 done
14257 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14258 set dummy dlltool
14259 if test $build = $target ; then
14260 DLLTOOL_FOR_TARGET="$2"
14261 else
14262 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14264 else
14265 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14268 else
14269 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14275 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14276 if test -n "$with_build_time_tools"; then
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14278 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14279 if test -x $with_build_time_tools/dsymutil; then
14280 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14281 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14283 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14284 else
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286 $as_echo "no" >&6; }
14288 elif test $build != $host && test $have_gcc_for_target = yes; then
14289 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14290 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14291 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14294 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14295 # Extract the first word of "dsymutil", so it can be a program name with args.
14296 set dummy dsymutil; ac_word=$2
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14298 $as_echo_n "checking for $ac_word... " >&6; }
14299 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14300 $as_echo_n "(cached) " >&6
14301 else
14302 case $DSYMUTIL_FOR_TARGET in
14303 [\\/]* | ?:[\\/]*)
14304 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14308 for as_dir in $gcc_cv_tool_dirs
14310 IFS=$as_save_IFS
14311 test -z "$as_dir" && as_dir=.
14312 for ac_exec_ext in '' $ac_executable_extensions; do
14313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14314 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14316 break 2
14318 done
14319 done
14320 IFS=$as_save_IFS
14323 esac
14325 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14326 if test -n "$DSYMUTIL_FOR_TARGET"; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14328 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14329 else
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331 $as_echo "no" >&6; }
14336 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14339 if test -n "$DSYMUTIL_FOR_TARGET"; then
14340 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14341 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14342 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14345 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14346 for ncn_progname in dsymutil; do
14347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14348 set dummy ${ncn_progname}; ac_word=$2
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14350 $as_echo_n "checking for $ac_word... " >&6; }
14351 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14352 $as_echo_n "(cached) " >&6
14353 else
14354 if test -n "$DSYMUTIL_FOR_TARGET"; then
14355 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14356 else
14357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14358 for as_dir in $PATH
14360 IFS=$as_save_IFS
14361 test -z "$as_dir" && as_dir=.
14362 for ac_exec_ext in '' $ac_executable_extensions; do
14363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14364 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14366 break 2
14368 done
14369 done
14370 IFS=$as_save_IFS
14374 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14375 if test -n "$DSYMUTIL_FOR_TARGET"; then
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14377 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14378 else
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14380 $as_echo "no" >&6; }
14384 done
14387 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14388 for ncn_progname in dsymutil; do
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14390 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14391 if test -x $with_build_time_tools/${ncn_progname}; then
14392 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14394 $as_echo "yes" >&6; }
14395 break
14396 else
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398 $as_echo "no" >&6; }
14400 done
14403 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14404 for ncn_progname in dsymutil; do
14405 if test -n "$ncn_target_tool_prefix"; then
14406 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14407 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14409 $as_echo_n "checking for $ac_word... " >&6; }
14410 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14411 $as_echo_n "(cached) " >&6
14412 else
14413 if test -n "$DSYMUTIL_FOR_TARGET"; then
14414 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14415 else
14416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14417 for as_dir in $PATH
14419 IFS=$as_save_IFS
14420 test -z "$as_dir" && as_dir=.
14421 for ac_exec_ext in '' $ac_executable_extensions; do
14422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14423 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14425 break 2
14427 done
14428 done
14429 IFS=$as_save_IFS
14433 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14434 if test -n "$DSYMUTIL_FOR_TARGET"; then
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14436 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14437 else
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439 $as_echo "no" >&6; }
14444 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14446 set dummy ${ncn_progname}; ac_word=$2
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14448 $as_echo_n "checking for $ac_word... " >&6; }
14449 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14450 $as_echo_n "(cached) " >&6
14451 else
14452 if test -n "$DSYMUTIL_FOR_TARGET"; then
14453 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14454 else
14455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456 for as_dir in $PATH
14458 IFS=$as_save_IFS
14459 test -z "$as_dir" && as_dir=.
14460 for ac_exec_ext in '' $ac_executable_extensions; do
14461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14462 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14464 break 2
14466 done
14467 done
14468 IFS=$as_save_IFS
14472 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14473 if test -n "$DSYMUTIL_FOR_TARGET"; then
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14475 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14476 else
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14478 $as_echo "no" >&6; }
14483 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14484 done
14487 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14488 set dummy dsymutil
14489 if test $build = $target ; then
14490 DSYMUTIL_FOR_TARGET="$2"
14491 else
14492 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14494 else
14495 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14498 else
14499 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14505 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14506 if test -n "$with_build_time_tools"; then
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14508 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14509 if test -x $with_build_time_tools/ld; then
14510 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14511 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14513 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14514 else
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14516 $as_echo "no" >&6; }
14518 elif test $build != $host && test $have_gcc_for_target = yes; then
14519 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14520 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14521 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14524 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14525 # Extract the first word of "ld", so it can be a program name with args.
14526 set dummy ld; ac_word=$2
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14528 $as_echo_n "checking for $ac_word... " >&6; }
14529 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14530 $as_echo_n "(cached) " >&6
14531 else
14532 case $LD_FOR_TARGET in
14533 [\\/]* | ?:[\\/]*)
14534 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14538 for as_dir in $gcc_cv_tool_dirs
14540 IFS=$as_save_IFS
14541 test -z "$as_dir" && as_dir=.
14542 for ac_exec_ext in '' $ac_executable_extensions; do
14543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14544 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14546 break 2
14548 done
14549 done
14550 IFS=$as_save_IFS
14553 esac
14555 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14556 if test -n "$LD_FOR_TARGET"; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14558 $as_echo "$LD_FOR_TARGET" >&6; }
14559 else
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561 $as_echo "no" >&6; }
14566 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14569 if test -n "$LD_FOR_TARGET"; then
14570 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14571 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14572 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14575 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14576 for ncn_progname in ld; do
14577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14578 set dummy ${ncn_progname}; ac_word=$2
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14580 $as_echo_n "checking for $ac_word... " >&6; }
14581 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14582 $as_echo_n "(cached) " >&6
14583 else
14584 if test -n "$LD_FOR_TARGET"; then
14585 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14586 else
14587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14588 for as_dir in $PATH
14590 IFS=$as_save_IFS
14591 test -z "$as_dir" && as_dir=.
14592 for ac_exec_ext in '' $ac_executable_extensions; do
14593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14594 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14596 break 2
14598 done
14599 done
14600 IFS=$as_save_IFS
14604 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14605 if test -n "$LD_FOR_TARGET"; then
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14607 $as_echo "$LD_FOR_TARGET" >&6; }
14608 else
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14610 $as_echo "no" >&6; }
14614 done
14617 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14618 for ncn_progname in ld; do
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14620 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14621 if test -x $with_build_time_tools/${ncn_progname}; then
14622 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14624 $as_echo "yes" >&6; }
14625 break
14626 else
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14628 $as_echo "no" >&6; }
14630 done
14633 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14634 for ncn_progname in ld; do
14635 if test -n "$ncn_target_tool_prefix"; then
14636 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14637 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14639 $as_echo_n "checking for $ac_word... " >&6; }
14640 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 if test -n "$LD_FOR_TARGET"; then
14644 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14645 else
14646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14647 for as_dir in $PATH
14649 IFS=$as_save_IFS
14650 test -z "$as_dir" && as_dir=.
14651 for ac_exec_ext in '' $ac_executable_extensions; do
14652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14653 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14655 break 2
14657 done
14658 done
14659 IFS=$as_save_IFS
14663 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14664 if test -n "$LD_FOR_TARGET"; then
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14666 $as_echo "$LD_FOR_TARGET" >&6; }
14667 else
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14669 $as_echo "no" >&6; }
14674 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14676 set dummy ${ncn_progname}; ac_word=$2
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14678 $as_echo_n "checking for $ac_word... " >&6; }
14679 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14680 $as_echo_n "(cached) " >&6
14681 else
14682 if test -n "$LD_FOR_TARGET"; then
14683 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14684 else
14685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14686 for as_dir in $PATH
14688 IFS=$as_save_IFS
14689 test -z "$as_dir" && as_dir=.
14690 for ac_exec_ext in '' $ac_executable_extensions; do
14691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14692 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14694 break 2
14696 done
14697 done
14698 IFS=$as_save_IFS
14702 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14703 if test -n "$LD_FOR_TARGET"; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14705 $as_echo "$LD_FOR_TARGET" >&6; }
14706 else
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14708 $as_echo "no" >&6; }
14713 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14714 done
14717 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14718 set dummy ld
14719 if test $build = $target ; then
14720 LD_FOR_TARGET="$2"
14721 else
14722 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14724 else
14725 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14728 else
14729 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14735 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14736 if test -n "$with_build_time_tools"; then
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14738 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14739 if test -x $with_build_time_tools/lipo; then
14740 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14741 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14743 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14744 else
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14746 $as_echo "no" >&6; }
14748 elif test $build != $host && test $have_gcc_for_target = yes; then
14749 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14750 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14751 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14754 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14755 # Extract the first word of "lipo", so it can be a program name with args.
14756 set dummy lipo; ac_word=$2
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14758 $as_echo_n "checking for $ac_word... " >&6; }
14759 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14760 $as_echo_n "(cached) " >&6
14761 else
14762 case $LIPO_FOR_TARGET in
14763 [\\/]* | ?:[\\/]*)
14764 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14768 for as_dir in $gcc_cv_tool_dirs
14770 IFS=$as_save_IFS
14771 test -z "$as_dir" && as_dir=.
14772 for ac_exec_ext in '' $ac_executable_extensions; do
14773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14774 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14776 break 2
14778 done
14779 done
14780 IFS=$as_save_IFS
14783 esac
14785 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14786 if test -n "$LIPO_FOR_TARGET"; then
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14788 $as_echo "$LIPO_FOR_TARGET" >&6; }
14789 else
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14791 $as_echo "no" >&6; }
14796 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14799 if test -n "$LIPO_FOR_TARGET"; then
14800 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14801 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14802 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14805 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14806 for ncn_progname in lipo; do
14807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14808 set dummy ${ncn_progname}; ac_word=$2
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14810 $as_echo_n "checking for $ac_word... " >&6; }
14811 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14812 $as_echo_n "(cached) " >&6
14813 else
14814 if test -n "$LIPO_FOR_TARGET"; then
14815 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14816 else
14817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14818 for as_dir in $PATH
14820 IFS=$as_save_IFS
14821 test -z "$as_dir" && as_dir=.
14822 for ac_exec_ext in '' $ac_executable_extensions; do
14823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14824 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14826 break 2
14828 done
14829 done
14830 IFS=$as_save_IFS
14834 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14835 if test -n "$LIPO_FOR_TARGET"; then
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14837 $as_echo "$LIPO_FOR_TARGET" >&6; }
14838 else
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14840 $as_echo "no" >&6; }
14844 done
14847 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14848 for ncn_progname in lipo; do
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14850 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14851 if test -x $with_build_time_tools/${ncn_progname}; then
14852 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14854 $as_echo "yes" >&6; }
14855 break
14856 else
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14858 $as_echo "no" >&6; }
14860 done
14863 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14864 for ncn_progname in lipo; do
14865 if test -n "$ncn_target_tool_prefix"; then
14866 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14867 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14869 $as_echo_n "checking for $ac_word... " >&6; }
14870 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14871 $as_echo_n "(cached) " >&6
14872 else
14873 if test -n "$LIPO_FOR_TARGET"; then
14874 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14875 else
14876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14877 for as_dir in $PATH
14879 IFS=$as_save_IFS
14880 test -z "$as_dir" && as_dir=.
14881 for ac_exec_ext in '' $ac_executable_extensions; do
14882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14883 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14885 break 2
14887 done
14888 done
14889 IFS=$as_save_IFS
14893 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14894 if test -n "$LIPO_FOR_TARGET"; then
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14896 $as_echo "$LIPO_FOR_TARGET" >&6; }
14897 else
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14899 $as_echo "no" >&6; }
14904 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14906 set dummy ${ncn_progname}; ac_word=$2
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14908 $as_echo_n "checking for $ac_word... " >&6; }
14909 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 if test -n "$LIPO_FOR_TARGET"; then
14913 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14914 else
14915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14916 for as_dir in $PATH
14918 IFS=$as_save_IFS
14919 test -z "$as_dir" && as_dir=.
14920 for ac_exec_ext in '' $ac_executable_extensions; do
14921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14922 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14924 break 2
14926 done
14927 done
14928 IFS=$as_save_IFS
14932 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14933 if test -n "$LIPO_FOR_TARGET"; then
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14935 $as_echo "$LIPO_FOR_TARGET" >&6; }
14936 else
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14938 $as_echo "no" >&6; }
14943 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14944 done
14947 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14948 set dummy lipo
14949 if test $build = $target ; then
14950 LIPO_FOR_TARGET="$2"
14951 else
14952 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14954 else
14955 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
14958 else
14959 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14965 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14966 if test -n "$with_build_time_tools"; then
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14968 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
14969 if test -x $with_build_time_tools/nm; then
14970 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14971 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14973 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
14974 else
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976 $as_echo "no" >&6; }
14978 elif test $build != $host && test $have_gcc_for_target = yes; then
14979 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
14980 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14981 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14984 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14985 # Extract the first word of "nm", so it can be a program name with args.
14986 set dummy nm; ac_word=$2
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14988 $as_echo_n "checking for $ac_word... " >&6; }
14989 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
14990 $as_echo_n "(cached) " >&6
14991 else
14992 case $NM_FOR_TARGET in
14993 [\\/]* | ?:[\\/]*)
14994 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
14997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14998 for as_dir in $gcc_cv_tool_dirs
15000 IFS=$as_save_IFS
15001 test -z "$as_dir" && as_dir=.
15002 for ac_exec_ext in '' $ac_executable_extensions; do
15003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15004 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15006 break 2
15008 done
15009 done
15010 IFS=$as_save_IFS
15013 esac
15015 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15016 if test -n "$NM_FOR_TARGET"; then
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15018 $as_echo "$NM_FOR_TARGET" >&6; }
15019 else
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15021 $as_echo "no" >&6; }
15026 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15029 if test -n "$NM_FOR_TARGET"; then
15030 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15031 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15032 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15035 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15036 for ncn_progname in nm; do
15037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15038 set dummy ${ncn_progname}; ac_word=$2
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15040 $as_echo_n "checking for $ac_word... " >&6; }
15041 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15042 $as_echo_n "(cached) " >&6
15043 else
15044 if test -n "$NM_FOR_TARGET"; then
15045 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15046 else
15047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15048 for as_dir in $PATH
15050 IFS=$as_save_IFS
15051 test -z "$as_dir" && as_dir=.
15052 for ac_exec_ext in '' $ac_executable_extensions; do
15053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15054 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15056 break 2
15058 done
15059 done
15060 IFS=$as_save_IFS
15064 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15065 if test -n "$NM_FOR_TARGET"; then
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15067 $as_echo "$NM_FOR_TARGET" >&6; }
15068 else
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15070 $as_echo "no" >&6; }
15074 done
15077 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15078 for ncn_progname in nm; do
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15080 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15081 if test -x $with_build_time_tools/${ncn_progname}; then
15082 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15084 $as_echo "yes" >&6; }
15085 break
15086 else
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15088 $as_echo "no" >&6; }
15090 done
15093 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15094 for ncn_progname in nm; do
15095 if test -n "$ncn_target_tool_prefix"; then
15096 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15097 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15099 $as_echo_n "checking for $ac_word... " >&6; }
15100 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15101 $as_echo_n "(cached) " >&6
15102 else
15103 if test -n "$NM_FOR_TARGET"; then
15104 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15105 else
15106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107 for as_dir in $PATH
15109 IFS=$as_save_IFS
15110 test -z "$as_dir" && as_dir=.
15111 for ac_exec_ext in '' $ac_executable_extensions; do
15112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15113 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15115 break 2
15117 done
15118 done
15119 IFS=$as_save_IFS
15123 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15124 if test -n "$NM_FOR_TARGET"; then
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15126 $as_echo "$NM_FOR_TARGET" >&6; }
15127 else
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129 $as_echo "no" >&6; }
15134 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15136 set dummy ${ncn_progname}; ac_word=$2
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15138 $as_echo_n "checking for $ac_word... " >&6; }
15139 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15140 $as_echo_n "(cached) " >&6
15141 else
15142 if test -n "$NM_FOR_TARGET"; then
15143 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15144 else
15145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15146 for as_dir in $PATH
15148 IFS=$as_save_IFS
15149 test -z "$as_dir" && as_dir=.
15150 for ac_exec_ext in '' $ac_executable_extensions; do
15151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15152 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15154 break 2
15156 done
15157 done
15158 IFS=$as_save_IFS
15162 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15163 if test -n "$NM_FOR_TARGET"; then
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15165 $as_echo "$NM_FOR_TARGET" >&6; }
15166 else
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15168 $as_echo "no" >&6; }
15173 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15174 done
15177 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15178 set dummy nm
15179 if test $build = $target ; then
15180 NM_FOR_TARGET="$2"
15181 else
15182 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15184 else
15185 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15188 else
15189 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15195 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15196 if test -n "$with_build_time_tools"; then
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15198 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15199 if test -x $with_build_time_tools/objcopy; then
15200 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15201 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15203 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15204 else
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15206 $as_echo "no" >&6; }
15208 elif test $build != $host && test $have_gcc_for_target = yes; then
15209 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15210 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15211 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15214 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15215 # Extract the first word of "objcopy", so it can be a program name with args.
15216 set dummy objcopy; ac_word=$2
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15218 $as_echo_n "checking for $ac_word... " >&6; }
15219 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15220 $as_echo_n "(cached) " >&6
15221 else
15222 case $OBJCOPY_FOR_TARGET in
15223 [\\/]* | ?:[\\/]*)
15224 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15228 for as_dir in $gcc_cv_tool_dirs
15230 IFS=$as_save_IFS
15231 test -z "$as_dir" && as_dir=.
15232 for ac_exec_ext in '' $ac_executable_extensions; do
15233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15234 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15236 break 2
15238 done
15239 done
15240 IFS=$as_save_IFS
15243 esac
15245 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15246 if test -n "$OBJCOPY_FOR_TARGET"; then
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15248 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15249 else
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15251 $as_echo "no" >&6; }
15256 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15259 if test -n "$OBJCOPY_FOR_TARGET"; then
15260 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15261 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15262 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15265 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15266 for ncn_progname in objcopy; do
15267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15268 set dummy ${ncn_progname}; ac_word=$2
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15270 $as_echo_n "checking for $ac_word... " >&6; }
15271 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15274 if test -n "$OBJCOPY_FOR_TARGET"; then
15275 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15276 else
15277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15278 for as_dir in $PATH
15280 IFS=$as_save_IFS
15281 test -z "$as_dir" && as_dir=.
15282 for ac_exec_ext in '' $ac_executable_extensions; do
15283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15284 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15286 break 2
15288 done
15289 done
15290 IFS=$as_save_IFS
15294 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15295 if test -n "$OBJCOPY_FOR_TARGET"; then
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15297 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15298 else
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15300 $as_echo "no" >&6; }
15304 done
15307 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15308 for ncn_progname in objcopy; do
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15310 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15311 if test -x $with_build_time_tools/${ncn_progname}; then
15312 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15314 $as_echo "yes" >&6; }
15315 break
15316 else
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15318 $as_echo "no" >&6; }
15320 done
15323 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15324 for ncn_progname in objcopy; do
15325 if test -n "$ncn_target_tool_prefix"; then
15326 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15327 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15329 $as_echo_n "checking for $ac_word... " >&6; }
15330 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15331 $as_echo_n "(cached) " >&6
15332 else
15333 if test -n "$OBJCOPY_FOR_TARGET"; then
15334 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15335 else
15336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15337 for as_dir in $PATH
15339 IFS=$as_save_IFS
15340 test -z "$as_dir" && as_dir=.
15341 for ac_exec_ext in '' $ac_executable_extensions; do
15342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15343 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15345 break 2
15347 done
15348 done
15349 IFS=$as_save_IFS
15353 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15354 if test -n "$OBJCOPY_FOR_TARGET"; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15356 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15357 else
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15359 $as_echo "no" >&6; }
15364 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15366 set dummy ${ncn_progname}; ac_word=$2
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15368 $as_echo_n "checking for $ac_word... " >&6; }
15369 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15370 $as_echo_n "(cached) " >&6
15371 else
15372 if test -n "$OBJCOPY_FOR_TARGET"; then
15373 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15374 else
15375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15376 for as_dir in $PATH
15378 IFS=$as_save_IFS
15379 test -z "$as_dir" && as_dir=.
15380 for ac_exec_ext in '' $ac_executable_extensions; do
15381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15382 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15384 break 2
15386 done
15387 done
15388 IFS=$as_save_IFS
15392 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15393 if test -n "$OBJCOPY_FOR_TARGET"; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15395 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15396 else
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15398 $as_echo "no" >&6; }
15403 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15404 done
15407 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15408 set dummy objcopy
15409 if test $build = $target ; then
15410 OBJCOPY_FOR_TARGET="$2"
15411 else
15412 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15414 else
15415 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15418 else
15419 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15425 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15426 if test -n "$with_build_time_tools"; then
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15428 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15429 if test -x $with_build_time_tools/objdump; then
15430 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15431 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15433 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15434 else
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15436 $as_echo "no" >&6; }
15438 elif test $build != $host && test $have_gcc_for_target = yes; then
15439 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15440 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15441 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15444 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15445 # Extract the first word of "objdump", so it can be a program name with args.
15446 set dummy objdump; ac_word=$2
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15448 $as_echo_n "checking for $ac_word... " >&6; }
15449 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15450 $as_echo_n "(cached) " >&6
15451 else
15452 case $OBJDUMP_FOR_TARGET in
15453 [\\/]* | ?:[\\/]*)
15454 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15458 for as_dir in $gcc_cv_tool_dirs
15460 IFS=$as_save_IFS
15461 test -z "$as_dir" && as_dir=.
15462 for ac_exec_ext in '' $ac_executable_extensions; do
15463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15464 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15466 break 2
15468 done
15469 done
15470 IFS=$as_save_IFS
15473 esac
15475 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15476 if test -n "$OBJDUMP_FOR_TARGET"; then
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15478 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15479 else
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15481 $as_echo "no" >&6; }
15486 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15489 if test -n "$OBJDUMP_FOR_TARGET"; then
15490 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15491 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15492 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15495 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15496 for ncn_progname in objdump; do
15497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15498 set dummy ${ncn_progname}; ac_word=$2
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15500 $as_echo_n "checking for $ac_word... " >&6; }
15501 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15502 $as_echo_n "(cached) " >&6
15503 else
15504 if test -n "$OBJDUMP_FOR_TARGET"; then
15505 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15506 else
15507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15508 for as_dir in $PATH
15510 IFS=$as_save_IFS
15511 test -z "$as_dir" && as_dir=.
15512 for ac_exec_ext in '' $ac_executable_extensions; do
15513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15514 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15516 break 2
15518 done
15519 done
15520 IFS=$as_save_IFS
15524 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15525 if test -n "$OBJDUMP_FOR_TARGET"; then
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15527 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15528 else
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15530 $as_echo "no" >&6; }
15534 done
15537 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15538 for ncn_progname in objdump; do
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15540 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15541 if test -x $with_build_time_tools/${ncn_progname}; then
15542 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15544 $as_echo "yes" >&6; }
15545 break
15546 else
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15548 $as_echo "no" >&6; }
15550 done
15553 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15554 for ncn_progname in objdump; do
15555 if test -n "$ncn_target_tool_prefix"; then
15556 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15557 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15559 $as_echo_n "checking for $ac_word... " >&6; }
15560 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15561 $as_echo_n "(cached) " >&6
15562 else
15563 if test -n "$OBJDUMP_FOR_TARGET"; then
15564 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15565 else
15566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15567 for as_dir in $PATH
15569 IFS=$as_save_IFS
15570 test -z "$as_dir" && as_dir=.
15571 for ac_exec_ext in '' $ac_executable_extensions; do
15572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15573 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15575 break 2
15577 done
15578 done
15579 IFS=$as_save_IFS
15583 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15584 if test -n "$OBJDUMP_FOR_TARGET"; then
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15586 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15587 else
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15589 $as_echo "no" >&6; }
15594 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15596 set dummy ${ncn_progname}; ac_word=$2
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15598 $as_echo_n "checking for $ac_word... " >&6; }
15599 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15600 $as_echo_n "(cached) " >&6
15601 else
15602 if test -n "$OBJDUMP_FOR_TARGET"; then
15603 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15604 else
15605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606 for as_dir in $PATH
15608 IFS=$as_save_IFS
15609 test -z "$as_dir" && as_dir=.
15610 for ac_exec_ext in '' $ac_executable_extensions; do
15611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15612 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15614 break 2
15616 done
15617 done
15618 IFS=$as_save_IFS
15622 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15623 if test -n "$OBJDUMP_FOR_TARGET"; then
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15625 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15626 else
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15628 $as_echo "no" >&6; }
15633 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15634 done
15637 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15638 set dummy objdump
15639 if test $build = $target ; then
15640 OBJDUMP_FOR_TARGET="$2"
15641 else
15642 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15644 else
15645 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15648 else
15649 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15655 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15656 if test -n "$with_build_time_tools"; then
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15658 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15659 if test -x $with_build_time_tools/otool; then
15660 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15661 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15663 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15664 else
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15666 $as_echo "no" >&6; }
15668 elif test $build != $host && test $have_gcc_for_target = yes; then
15669 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15670 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15671 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15674 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15675 # Extract the first word of "otool", so it can be a program name with args.
15676 set dummy otool; ac_word=$2
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15678 $as_echo_n "checking for $ac_word... " >&6; }
15679 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15680 $as_echo_n "(cached) " >&6
15681 else
15682 case $OTOOL_FOR_TARGET in
15683 [\\/]* | ?:[\\/]*)
15684 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15688 for as_dir in $gcc_cv_tool_dirs
15690 IFS=$as_save_IFS
15691 test -z "$as_dir" && as_dir=.
15692 for ac_exec_ext in '' $ac_executable_extensions; do
15693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15694 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15696 break 2
15698 done
15699 done
15700 IFS=$as_save_IFS
15703 esac
15705 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15706 if test -n "$OTOOL_FOR_TARGET"; then
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15708 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15709 else
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15711 $as_echo "no" >&6; }
15716 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15719 if test -n "$OTOOL_FOR_TARGET"; then
15720 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15721 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15722 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15725 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15726 for ncn_progname in otool; do
15727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15728 set dummy ${ncn_progname}; ac_word=$2
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15730 $as_echo_n "checking for $ac_word... " >&6; }
15731 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15732 $as_echo_n "(cached) " >&6
15733 else
15734 if test -n "$OTOOL_FOR_TARGET"; then
15735 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15736 else
15737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15738 for as_dir in $PATH
15740 IFS=$as_save_IFS
15741 test -z "$as_dir" && as_dir=.
15742 for ac_exec_ext in '' $ac_executable_extensions; do
15743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15744 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15746 break 2
15748 done
15749 done
15750 IFS=$as_save_IFS
15754 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15755 if test -n "$OTOOL_FOR_TARGET"; then
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15757 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15758 else
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15760 $as_echo "no" >&6; }
15764 done
15767 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15768 for ncn_progname in otool; do
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15770 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15771 if test -x $with_build_time_tools/${ncn_progname}; then
15772 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15774 $as_echo "yes" >&6; }
15775 break
15776 else
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778 $as_echo "no" >&6; }
15780 done
15783 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15784 for ncn_progname in otool; do
15785 if test -n "$ncn_target_tool_prefix"; then
15786 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15787 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15789 $as_echo_n "checking for $ac_word... " >&6; }
15790 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15791 $as_echo_n "(cached) " >&6
15792 else
15793 if test -n "$OTOOL_FOR_TARGET"; then
15794 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15795 else
15796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15797 for as_dir in $PATH
15799 IFS=$as_save_IFS
15800 test -z "$as_dir" && as_dir=.
15801 for ac_exec_ext in '' $ac_executable_extensions; do
15802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15803 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15805 break 2
15807 done
15808 done
15809 IFS=$as_save_IFS
15813 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15814 if test -n "$OTOOL_FOR_TARGET"; then
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15816 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15817 else
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15819 $as_echo "no" >&6; }
15824 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15826 set dummy ${ncn_progname}; ac_word=$2
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15828 $as_echo_n "checking for $ac_word... " >&6; }
15829 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15830 $as_echo_n "(cached) " >&6
15831 else
15832 if test -n "$OTOOL_FOR_TARGET"; then
15833 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15834 else
15835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15836 for as_dir in $PATH
15838 IFS=$as_save_IFS
15839 test -z "$as_dir" && as_dir=.
15840 for ac_exec_ext in '' $ac_executable_extensions; do
15841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15842 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15844 break 2
15846 done
15847 done
15848 IFS=$as_save_IFS
15852 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15853 if test -n "$OTOOL_FOR_TARGET"; then
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15855 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15856 else
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15858 $as_echo "no" >&6; }
15863 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15864 done
15867 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15868 set dummy otool
15869 if test $build = $target ; then
15870 OTOOL_FOR_TARGET="$2"
15871 else
15872 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15874 else
15875 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15878 else
15879 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15885 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15886 if test -n "$with_build_time_tools"; then
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15888 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
15889 if test -x $with_build_time_tools/ranlib; then
15890 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15891 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15893 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15894 else
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15896 $as_echo "no" >&6; }
15898 elif test $build != $host && test $have_gcc_for_target = yes; then
15899 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15900 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15901 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15904 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15905 # Extract the first word of "ranlib", so it can be a program name with args.
15906 set dummy ranlib; ac_word=$2
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15908 $as_echo_n "checking for $ac_word... " >&6; }
15909 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
15910 $as_echo_n "(cached) " >&6
15911 else
15912 case $RANLIB_FOR_TARGET in
15913 [\\/]* | ?:[\\/]*)
15914 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15918 for as_dir in $gcc_cv_tool_dirs
15920 IFS=$as_save_IFS
15921 test -z "$as_dir" && as_dir=.
15922 for ac_exec_ext in '' $ac_executable_extensions; do
15923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15924 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15926 break 2
15928 done
15929 done
15930 IFS=$as_save_IFS
15933 esac
15935 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15936 if test -n "$RANLIB_FOR_TARGET"; then
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15938 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15939 else
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 $as_echo "no" >&6; }
15946 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15949 if test -n "$RANLIB_FOR_TARGET"; then
15950 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15951 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15952 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15955 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15956 for ncn_progname in ranlib; do
15957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15958 set dummy ${ncn_progname}; ac_word=$2
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15960 $as_echo_n "checking for $ac_word... " >&6; }
15961 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15962 $as_echo_n "(cached) " >&6
15963 else
15964 if test -n "$RANLIB_FOR_TARGET"; then
15965 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15966 else
15967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15968 for as_dir in $PATH
15970 IFS=$as_save_IFS
15971 test -z "$as_dir" && as_dir=.
15972 for ac_exec_ext in '' $ac_executable_extensions; do
15973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15974 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15976 break 2
15978 done
15979 done
15980 IFS=$as_save_IFS
15984 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15985 if test -n "$RANLIB_FOR_TARGET"; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15987 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15988 else
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15990 $as_echo "no" >&6; }
15994 done
15997 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
15998 for ncn_progname in ranlib; do
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16000 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16001 if test -x $with_build_time_tools/${ncn_progname}; then
16002 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16004 $as_echo "yes" >&6; }
16005 break
16006 else
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16008 $as_echo "no" >&6; }
16010 done
16013 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16014 for ncn_progname in ranlib; do
16015 if test -n "$ncn_target_tool_prefix"; then
16016 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16017 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16019 $as_echo_n "checking for $ac_word... " >&6; }
16020 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16021 $as_echo_n "(cached) " >&6
16022 else
16023 if test -n "$RANLIB_FOR_TARGET"; then
16024 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16025 else
16026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16027 for as_dir in $PATH
16029 IFS=$as_save_IFS
16030 test -z "$as_dir" && as_dir=.
16031 for ac_exec_ext in '' $ac_executable_extensions; do
16032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16033 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16035 break 2
16037 done
16038 done
16039 IFS=$as_save_IFS
16043 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16044 if test -n "$RANLIB_FOR_TARGET"; then
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16046 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16047 else
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16049 $as_echo "no" >&6; }
16054 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16056 set dummy ${ncn_progname}; ac_word=$2
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16058 $as_echo_n "checking for $ac_word... " >&6; }
16059 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16060 $as_echo_n "(cached) " >&6
16061 else
16062 if test -n "$RANLIB_FOR_TARGET"; then
16063 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16064 else
16065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16066 for as_dir in $PATH
16068 IFS=$as_save_IFS
16069 test -z "$as_dir" && as_dir=.
16070 for ac_exec_ext in '' $ac_executable_extensions; do
16071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16072 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16074 break 2
16076 done
16077 done
16078 IFS=$as_save_IFS
16082 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16083 if test -n "$RANLIB_FOR_TARGET"; then
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16085 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16086 else
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16088 $as_echo "no" >&6; }
16093 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16094 done
16097 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16098 set dummy ranlib
16099 if test $build = $target ; then
16100 RANLIB_FOR_TARGET="$2"
16101 else
16102 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16104 else
16105 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16108 else
16109 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16115 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16116 if test -n "$with_build_time_tools"; then
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16118 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16119 if test -x $with_build_time_tools/readelf; then
16120 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16121 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16123 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16124 else
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16128 elif test $build != $host && test $have_gcc_for_target = yes; then
16129 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16130 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16131 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16134 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16135 # Extract the first word of "readelf", so it can be a program name with args.
16136 set dummy readelf; ac_word=$2
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16138 $as_echo_n "checking for $ac_word... " >&6; }
16139 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16140 $as_echo_n "(cached) " >&6
16141 else
16142 case $READELF_FOR_TARGET in
16143 [\\/]* | ?:[\\/]*)
16144 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16148 for as_dir in $gcc_cv_tool_dirs
16150 IFS=$as_save_IFS
16151 test -z "$as_dir" && as_dir=.
16152 for ac_exec_ext in '' $ac_executable_extensions; do
16153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16154 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16156 break 2
16158 done
16159 done
16160 IFS=$as_save_IFS
16163 esac
16165 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16166 if test -n "$READELF_FOR_TARGET"; then
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16168 $as_echo "$READELF_FOR_TARGET" >&6; }
16169 else
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16171 $as_echo "no" >&6; }
16176 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16179 if test -n "$READELF_FOR_TARGET"; then
16180 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16181 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16182 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16185 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16186 for ncn_progname in readelf; do
16187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16188 set dummy ${ncn_progname}; ac_word=$2
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16190 $as_echo_n "checking for $ac_word... " >&6; }
16191 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16192 $as_echo_n "(cached) " >&6
16193 else
16194 if test -n "$READELF_FOR_TARGET"; then
16195 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16196 else
16197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16198 for as_dir in $PATH
16200 IFS=$as_save_IFS
16201 test -z "$as_dir" && as_dir=.
16202 for ac_exec_ext in '' $ac_executable_extensions; do
16203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16204 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16206 break 2
16208 done
16209 done
16210 IFS=$as_save_IFS
16214 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16215 if test -n "$READELF_FOR_TARGET"; then
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16217 $as_echo "$READELF_FOR_TARGET" >&6; }
16218 else
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16220 $as_echo "no" >&6; }
16224 done
16227 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16228 for ncn_progname in readelf; do
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16230 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16231 if test -x $with_build_time_tools/${ncn_progname}; then
16232 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16234 $as_echo "yes" >&6; }
16235 break
16236 else
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16240 done
16243 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16244 for ncn_progname in readelf; do
16245 if test -n "$ncn_target_tool_prefix"; then
16246 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16247 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16249 $as_echo_n "checking for $ac_word... " >&6; }
16250 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16251 $as_echo_n "(cached) " >&6
16252 else
16253 if test -n "$READELF_FOR_TARGET"; then
16254 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16255 else
16256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16257 for as_dir in $PATH
16259 IFS=$as_save_IFS
16260 test -z "$as_dir" && as_dir=.
16261 for ac_exec_ext in '' $ac_executable_extensions; do
16262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16263 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16265 break 2
16267 done
16268 done
16269 IFS=$as_save_IFS
16273 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16274 if test -n "$READELF_FOR_TARGET"; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16276 $as_echo "$READELF_FOR_TARGET" >&6; }
16277 else
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16279 $as_echo "no" >&6; }
16284 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16286 set dummy ${ncn_progname}; ac_word=$2
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16288 $as_echo_n "checking for $ac_word... " >&6; }
16289 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16290 $as_echo_n "(cached) " >&6
16291 else
16292 if test -n "$READELF_FOR_TARGET"; then
16293 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16294 else
16295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16296 for as_dir in $PATH
16298 IFS=$as_save_IFS
16299 test -z "$as_dir" && as_dir=.
16300 for ac_exec_ext in '' $ac_executable_extensions; do
16301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16302 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16304 break 2
16306 done
16307 done
16308 IFS=$as_save_IFS
16312 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16313 if test -n "$READELF_FOR_TARGET"; then
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16315 $as_echo "$READELF_FOR_TARGET" >&6; }
16316 else
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16318 $as_echo "no" >&6; }
16323 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16324 done
16327 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16328 set dummy readelf
16329 if test $build = $target ; then
16330 READELF_FOR_TARGET="$2"
16331 else
16332 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16334 else
16335 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16338 else
16339 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16345 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16346 if test -n "$with_build_time_tools"; then
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16348 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16349 if test -x $with_build_time_tools/strip; then
16350 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16351 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16353 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16354 else
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16356 $as_echo "no" >&6; }
16358 elif test $build != $host && test $have_gcc_for_target = yes; then
16359 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16360 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16361 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16364 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16365 # Extract the first word of "strip", so it can be a program name with args.
16366 set dummy strip; ac_word=$2
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16368 $as_echo_n "checking for $ac_word... " >&6; }
16369 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16370 $as_echo_n "(cached) " >&6
16371 else
16372 case $STRIP_FOR_TARGET in
16373 [\\/]* | ?:[\\/]*)
16374 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16378 for as_dir in $gcc_cv_tool_dirs
16380 IFS=$as_save_IFS
16381 test -z "$as_dir" && as_dir=.
16382 for ac_exec_ext in '' $ac_executable_extensions; do
16383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16384 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16386 break 2
16388 done
16389 done
16390 IFS=$as_save_IFS
16393 esac
16395 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16396 if test -n "$STRIP_FOR_TARGET"; then
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16398 $as_echo "$STRIP_FOR_TARGET" >&6; }
16399 else
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16401 $as_echo "no" >&6; }
16406 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16409 if test -n "$STRIP_FOR_TARGET"; then
16410 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16411 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16412 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16415 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16416 for ncn_progname in strip; do
16417 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16418 set dummy ${ncn_progname}; ac_word=$2
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16420 $as_echo_n "checking for $ac_word... " >&6; }
16421 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16422 $as_echo_n "(cached) " >&6
16423 else
16424 if test -n "$STRIP_FOR_TARGET"; then
16425 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16426 else
16427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16428 for as_dir in $PATH
16430 IFS=$as_save_IFS
16431 test -z "$as_dir" && as_dir=.
16432 for ac_exec_ext in '' $ac_executable_extensions; do
16433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16434 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16436 break 2
16438 done
16439 done
16440 IFS=$as_save_IFS
16444 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16445 if test -n "$STRIP_FOR_TARGET"; then
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16447 $as_echo "$STRIP_FOR_TARGET" >&6; }
16448 else
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16450 $as_echo "no" >&6; }
16454 done
16457 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16458 for ncn_progname in strip; do
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16460 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16461 if test -x $with_build_time_tools/${ncn_progname}; then
16462 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16464 $as_echo "yes" >&6; }
16465 break
16466 else
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468 $as_echo "no" >&6; }
16470 done
16473 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16474 for ncn_progname in strip; do
16475 if test -n "$ncn_target_tool_prefix"; then
16476 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16477 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16479 $as_echo_n "checking for $ac_word... " >&6; }
16480 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16481 $as_echo_n "(cached) " >&6
16482 else
16483 if test -n "$STRIP_FOR_TARGET"; then
16484 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16485 else
16486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16487 for as_dir in $PATH
16489 IFS=$as_save_IFS
16490 test -z "$as_dir" && as_dir=.
16491 for ac_exec_ext in '' $ac_executable_extensions; do
16492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16493 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16495 break 2
16497 done
16498 done
16499 IFS=$as_save_IFS
16503 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16504 if test -n "$STRIP_FOR_TARGET"; then
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16506 $as_echo "$STRIP_FOR_TARGET" >&6; }
16507 else
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16509 $as_echo "no" >&6; }
16514 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16516 set dummy ${ncn_progname}; ac_word=$2
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16518 $as_echo_n "checking for $ac_word... " >&6; }
16519 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16520 $as_echo_n "(cached) " >&6
16521 else
16522 if test -n "$STRIP_FOR_TARGET"; then
16523 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16524 else
16525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16526 for as_dir in $PATH
16528 IFS=$as_save_IFS
16529 test -z "$as_dir" && as_dir=.
16530 for ac_exec_ext in '' $ac_executable_extensions; do
16531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16532 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16534 break 2
16536 done
16537 done
16538 IFS=$as_save_IFS
16542 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16543 if test -n "$STRIP_FOR_TARGET"; then
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16545 $as_echo "$STRIP_FOR_TARGET" >&6; }
16546 else
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16548 $as_echo "no" >&6; }
16553 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16554 done
16557 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16558 set dummy strip
16559 if test $build = $target ; then
16560 STRIP_FOR_TARGET="$2"
16561 else
16562 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16564 else
16565 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16568 else
16569 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16575 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16576 if test -n "$with_build_time_tools"; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16578 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16579 if test -x $with_build_time_tools/windres; then
16580 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16581 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16583 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16584 else
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586 $as_echo "no" >&6; }
16588 elif test $build != $host && test $have_gcc_for_target = yes; then
16589 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16590 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16591 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16594 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16595 # Extract the first word of "windres", so it can be a program name with args.
16596 set dummy windres; ac_word=$2
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16598 $as_echo_n "checking for $ac_word... " >&6; }
16599 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16600 $as_echo_n "(cached) " >&6
16601 else
16602 case $WINDRES_FOR_TARGET in
16603 [\\/]* | ?:[\\/]*)
16604 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16608 for as_dir in $gcc_cv_tool_dirs
16610 IFS=$as_save_IFS
16611 test -z "$as_dir" && as_dir=.
16612 for ac_exec_ext in '' $ac_executable_extensions; do
16613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16614 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16616 break 2
16618 done
16619 done
16620 IFS=$as_save_IFS
16623 esac
16625 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16626 if test -n "$WINDRES_FOR_TARGET"; then
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16628 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16629 else
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16631 $as_echo "no" >&6; }
16636 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16639 if test -n "$WINDRES_FOR_TARGET"; then
16640 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16641 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16642 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16645 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16646 for ncn_progname in windres; do
16647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16648 set dummy ${ncn_progname}; ac_word=$2
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16650 $as_echo_n "checking for $ac_word... " >&6; }
16651 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16652 $as_echo_n "(cached) " >&6
16653 else
16654 if test -n "$WINDRES_FOR_TARGET"; then
16655 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16656 else
16657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16658 for as_dir in $PATH
16660 IFS=$as_save_IFS
16661 test -z "$as_dir" && as_dir=.
16662 for ac_exec_ext in '' $ac_executable_extensions; do
16663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16664 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16666 break 2
16668 done
16669 done
16670 IFS=$as_save_IFS
16674 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16675 if test -n "$WINDRES_FOR_TARGET"; then
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16677 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16678 else
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16680 $as_echo "no" >&6; }
16684 done
16687 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16688 for ncn_progname in windres; do
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16690 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16691 if test -x $with_build_time_tools/${ncn_progname}; then
16692 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16694 $as_echo "yes" >&6; }
16695 break
16696 else
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16698 $as_echo "no" >&6; }
16700 done
16703 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16704 for ncn_progname in windres; do
16705 if test -n "$ncn_target_tool_prefix"; then
16706 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16707 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16709 $as_echo_n "checking for $ac_word... " >&6; }
16710 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713 if test -n "$WINDRES_FOR_TARGET"; then
16714 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16715 else
16716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16717 for as_dir in $PATH
16719 IFS=$as_save_IFS
16720 test -z "$as_dir" && as_dir=.
16721 for ac_exec_ext in '' $ac_executable_extensions; do
16722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16723 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16725 break 2
16727 done
16728 done
16729 IFS=$as_save_IFS
16733 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16734 if test -n "$WINDRES_FOR_TARGET"; then
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16736 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16737 else
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16739 $as_echo "no" >&6; }
16744 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16746 set dummy ${ncn_progname}; ac_word=$2
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16748 $as_echo_n "checking for $ac_word... " >&6; }
16749 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16750 $as_echo_n "(cached) " >&6
16751 else
16752 if test -n "$WINDRES_FOR_TARGET"; then
16753 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16754 else
16755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16756 for as_dir in $PATH
16758 IFS=$as_save_IFS
16759 test -z "$as_dir" && as_dir=.
16760 for ac_exec_ext in '' $ac_executable_extensions; do
16761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16762 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16764 break 2
16766 done
16767 done
16768 IFS=$as_save_IFS
16772 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16773 if test -n "$WINDRES_FOR_TARGET"; then
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16775 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16776 else
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16778 $as_echo "no" >&6; }
16783 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16784 done
16787 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16788 set dummy windres
16789 if test $build = $target ; then
16790 WINDRES_FOR_TARGET="$2"
16791 else
16792 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16794 else
16795 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16798 else
16799 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16805 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16806 if test -n "$with_build_time_tools"; then
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16808 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16809 if test -x $with_build_time_tools/windmc; then
16810 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16811 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16813 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16814 else
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16816 $as_echo "no" >&6; }
16818 elif test $build != $host && test $have_gcc_for_target = yes; then
16819 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16820 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16821 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16824 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16825 # Extract the first word of "windmc", so it can be a program name with args.
16826 set dummy windmc; ac_word=$2
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16828 $as_echo_n "checking for $ac_word... " >&6; }
16829 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16830 $as_echo_n "(cached) " >&6
16831 else
16832 case $WINDMC_FOR_TARGET in
16833 [\\/]* | ?:[\\/]*)
16834 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16838 for as_dir in $gcc_cv_tool_dirs
16840 IFS=$as_save_IFS
16841 test -z "$as_dir" && as_dir=.
16842 for ac_exec_ext in '' $ac_executable_extensions; do
16843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16844 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16846 break 2
16848 done
16849 done
16850 IFS=$as_save_IFS
16853 esac
16855 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16856 if test -n "$WINDMC_FOR_TARGET"; then
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16858 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16859 else
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16861 $as_echo "no" >&6; }
16866 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16869 if test -n "$WINDMC_FOR_TARGET"; then
16870 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16871 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16872 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16875 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16876 for ncn_progname in windmc; do
16877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16878 set dummy ${ncn_progname}; ac_word=$2
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16880 $as_echo_n "checking for $ac_word... " >&6; }
16881 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16882 $as_echo_n "(cached) " >&6
16883 else
16884 if test -n "$WINDMC_FOR_TARGET"; then
16885 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16886 else
16887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16888 for as_dir in $PATH
16890 IFS=$as_save_IFS
16891 test -z "$as_dir" && as_dir=.
16892 for ac_exec_ext in '' $ac_executable_extensions; do
16893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16894 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16896 break 2
16898 done
16899 done
16900 IFS=$as_save_IFS
16904 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16905 if test -n "$WINDMC_FOR_TARGET"; then
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16907 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16908 else
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16910 $as_echo "no" >&6; }
16914 done
16917 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16918 for ncn_progname in windmc; do
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16920 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16921 if test -x $with_build_time_tools/${ncn_progname}; then
16922 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16924 $as_echo "yes" >&6; }
16925 break
16926 else
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16928 $as_echo "no" >&6; }
16930 done
16933 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16934 for ncn_progname in windmc; do
16935 if test -n "$ncn_target_tool_prefix"; then
16936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16937 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16939 $as_echo_n "checking for $ac_word... " >&6; }
16940 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16941 $as_echo_n "(cached) " >&6
16942 else
16943 if test -n "$WINDMC_FOR_TARGET"; then
16944 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16945 else
16946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16947 for as_dir in $PATH
16949 IFS=$as_save_IFS
16950 test -z "$as_dir" && as_dir=.
16951 for ac_exec_ext in '' $ac_executable_extensions; do
16952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16953 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16955 break 2
16957 done
16958 done
16959 IFS=$as_save_IFS
16963 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16964 if test -n "$WINDMC_FOR_TARGET"; then
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16966 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16967 else
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16969 $as_echo "no" >&6; }
16974 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16976 set dummy ${ncn_progname}; ac_word=$2
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16978 $as_echo_n "checking for $ac_word... " >&6; }
16979 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16980 $as_echo_n "(cached) " >&6
16981 else
16982 if test -n "$WINDMC_FOR_TARGET"; then
16983 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16984 else
16985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16986 for as_dir in $PATH
16988 IFS=$as_save_IFS
16989 test -z "$as_dir" && as_dir=.
16990 for ac_exec_ext in '' $ac_executable_extensions; do
16991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16992 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16994 break 2
16996 done
16997 done
16998 IFS=$as_save_IFS
17002 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17003 if test -n "$WINDMC_FOR_TARGET"; then
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17005 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17006 else
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17008 $as_echo "no" >&6; }
17013 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17014 done
17017 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17018 set dummy windmc
17019 if test $build = $target ; then
17020 WINDMC_FOR_TARGET="$2"
17021 else
17022 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17024 else
17025 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17028 else
17029 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17033 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17036 $as_echo_n "checking where to find the target ar... " >&6; }
17037 if test "x${build}" != "x${host}" ; then
17038 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17039 # We already found the complete path
17040 ac_dir=`dirname $AR_FOR_TARGET`
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17042 $as_echo "pre-installed in $ac_dir" >&6; }
17043 else
17044 # Canadian cross, just use what we found
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17046 $as_echo "pre-installed" >&6; }
17048 else
17049 ok=yes
17050 case " ${configdirs} " in
17051 *" binutils "*) ;;
17052 *) ok=no ;;
17053 esac
17055 if test $ok = yes; then
17056 # An in-tree tool is available and we can use it
17057 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17059 $as_echo "just compiled" >&6; }
17060 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17061 # We already found the complete path
17062 ac_dir=`dirname $AR_FOR_TARGET`
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17064 $as_echo "pre-installed in $ac_dir" >&6; }
17065 elif test "x$target" = "x$host"; then
17066 # We can use an host tool
17067 AR_FOR_TARGET='$(AR)'
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17069 $as_echo "host tool" >&6; }
17070 else
17071 # We need a cross tool
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17073 $as_echo "pre-installed" >&6; }
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17078 $as_echo_n "checking where to find the target as... " >&6; }
17079 if test "x${build}" != "x${host}" ; then
17080 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17081 # We already found the complete path
17082 ac_dir=`dirname $AS_FOR_TARGET`
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17084 $as_echo "pre-installed in $ac_dir" >&6; }
17085 else
17086 # Canadian cross, just use what we found
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17088 $as_echo "pre-installed" >&6; }
17090 else
17091 ok=yes
17092 case " ${configdirs} " in
17093 *" gas "*) ;;
17094 *) ok=no ;;
17095 esac
17097 if test $ok = yes; then
17098 # An in-tree tool is available and we can use it
17099 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17101 $as_echo "just compiled" >&6; }
17102 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17103 # We already found the complete path
17104 ac_dir=`dirname $AS_FOR_TARGET`
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17106 $as_echo "pre-installed in $ac_dir" >&6; }
17107 elif test "x$target" = "x$host"; then
17108 # We can use an host tool
17109 AS_FOR_TARGET='$(AS)'
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17111 $as_echo "host tool" >&6; }
17112 else
17113 # We need a cross tool
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17115 $as_echo "pre-installed" >&6; }
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17120 $as_echo_n "checking where to find the target cc... " >&6; }
17121 if test "x${build}" != "x${host}" ; then
17122 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17123 # We already found the complete path
17124 ac_dir=`dirname $CC_FOR_TARGET`
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17126 $as_echo "pre-installed in $ac_dir" >&6; }
17127 else
17128 # Canadian cross, just use what we found
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17130 $as_echo "pre-installed" >&6; }
17132 else
17133 ok=yes
17134 case " ${configdirs} " in
17135 *" gcc "*) ;;
17136 *) ok=no ;;
17137 esac
17139 if test $ok = yes; then
17140 # An in-tree tool is available and we can use it
17141 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17143 $as_echo "just compiled" >&6; }
17144 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17145 # We already found the complete path
17146 ac_dir=`dirname $CC_FOR_TARGET`
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17148 $as_echo "pre-installed in $ac_dir" >&6; }
17149 elif test "x$target" = "x$host"; then
17150 # We can use an host tool
17151 CC_FOR_TARGET='$(CC)'
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17153 $as_echo "host tool" >&6; }
17154 else
17155 # We need a cross tool
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17157 $as_echo "pre-installed" >&6; }
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17162 $as_echo_n "checking where to find the target c++... " >&6; }
17163 if test "x${build}" != "x${host}" ; then
17164 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17165 # We already found the complete path
17166 ac_dir=`dirname $CXX_FOR_TARGET`
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17168 $as_echo "pre-installed in $ac_dir" >&6; }
17169 else
17170 # Canadian cross, just use what we found
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17172 $as_echo "pre-installed" >&6; }
17174 else
17175 ok=yes
17176 case " ${configdirs} " in
17177 *" gcc "*) ;;
17178 *) ok=no ;;
17179 esac
17180 case ,${enable_languages}, in
17181 *,c++,*) ;;
17182 *) ok=no ;;
17183 esac
17184 if test $ok = yes; then
17185 # An in-tree tool is available and we can use it
17186 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'
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17188 $as_echo "just compiled" >&6; }
17189 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17190 # We already found the complete path
17191 ac_dir=`dirname $CXX_FOR_TARGET`
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17193 $as_echo "pre-installed in $ac_dir" >&6; }
17194 elif test "x$target" = "x$host"; then
17195 # We can use an host tool
17196 CXX_FOR_TARGET='$(CXX)'
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17198 $as_echo "host tool" >&6; }
17199 else
17200 # We need a cross tool
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17202 $as_echo "pre-installed" >&6; }
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17207 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17208 if test "x${build}" != "x${host}" ; then
17209 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17210 # We already found the complete path
17211 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17213 $as_echo "pre-installed in $ac_dir" >&6; }
17214 else
17215 # Canadian cross, just use what we found
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17217 $as_echo "pre-installed" >&6; }
17219 else
17220 ok=yes
17221 case " ${configdirs} " in
17222 *" gcc "*) ;;
17223 *) ok=no ;;
17224 esac
17225 case ,${enable_languages}, in
17226 *,c++,*) ;;
17227 *) ok=no ;;
17228 esac
17229 if test $ok = yes; then
17230 # An in-tree tool is available and we can use it
17231 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'
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17233 $as_echo "just compiled" >&6; }
17234 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17235 # We already found the complete path
17236 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17238 $as_echo "pre-installed in $ac_dir" >&6; }
17239 elif test "x$target" = "x$host"; then
17240 # We can use an host tool
17241 RAW_CXX_FOR_TARGET='$(CXX)'
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17243 $as_echo "host tool" >&6; }
17244 else
17245 # We need a cross tool
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17247 $as_echo "pre-installed" >&6; }
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17252 $as_echo_n "checking where to find the target dlltool... " >&6; }
17253 if test "x${build}" != "x${host}" ; then
17254 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17255 # We already found the complete path
17256 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17258 $as_echo "pre-installed in $ac_dir" >&6; }
17259 else
17260 # Canadian cross, just use what we found
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17262 $as_echo "pre-installed" >&6; }
17264 else
17265 ok=yes
17266 case " ${configdirs} " in
17267 *" binutils "*) ;;
17268 *) ok=no ;;
17269 esac
17271 if test $ok = yes; then
17272 # An in-tree tool is available and we can use it
17273 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17275 $as_echo "just compiled" >&6; }
17276 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17277 # We already found the complete path
17278 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17280 $as_echo "pre-installed in $ac_dir" >&6; }
17281 elif test "x$target" = "x$host"; then
17282 # We can use an host tool
17283 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17285 $as_echo "host tool" >&6; }
17286 else
17287 # We need a cross tool
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17289 $as_echo "pre-installed" >&6; }
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17294 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17295 if test "x${build}" != "x${host}" ; then
17296 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17297 # We already found the complete path
17298 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17300 $as_echo "pre-installed in $ac_dir" >&6; }
17301 else
17302 # Canadian cross, just use what we found
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17304 $as_echo "pre-installed" >&6; }
17306 else
17307 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17308 # We already found the complete path
17309 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17311 $as_echo "pre-installed in $ac_dir" >&6; }
17312 elif test "x$target" = "x$host"; then
17313 # We can use an host tool
17314 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17316 $as_echo "host tool" >&6; }
17317 else
17318 # We need a cross tool
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17320 $as_echo "pre-installed" >&6; }
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17325 $as_echo_n "checking where to find the target gcc... " >&6; }
17326 if test "x${build}" != "x${host}" ; then
17327 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17328 # We already found the complete path
17329 ac_dir=`dirname $GCC_FOR_TARGET`
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17331 $as_echo "pre-installed in $ac_dir" >&6; }
17332 else
17333 # Canadian cross, just use what we found
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17335 $as_echo "pre-installed" >&6; }
17337 else
17338 ok=yes
17339 case " ${configdirs} " in
17340 *" gcc "*) ;;
17341 *) ok=no ;;
17342 esac
17344 if test $ok = yes; then
17345 # An in-tree tool is available and we can use it
17346 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17348 $as_echo "just compiled" >&6; }
17349 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17350 # We already found the complete path
17351 ac_dir=`dirname $GCC_FOR_TARGET`
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17353 $as_echo "pre-installed in $ac_dir" >&6; }
17354 elif test "x$target" = "x$host"; then
17355 # We can use an host tool
17356 GCC_FOR_TARGET='$()'
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17358 $as_echo "host tool" >&6; }
17359 else
17360 # We need a cross tool
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17362 $as_echo "pre-installed" >&6; }
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17367 $as_echo_n "checking where to find the target gfortran... " >&6; }
17368 if test "x${build}" != "x${host}" ; then
17369 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17370 # We already found the complete path
17371 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17373 $as_echo "pre-installed in $ac_dir" >&6; }
17374 else
17375 # Canadian cross, just use what we found
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17377 $as_echo "pre-installed" >&6; }
17379 else
17380 ok=yes
17381 case " ${configdirs} " in
17382 *" gcc "*) ;;
17383 *) ok=no ;;
17384 esac
17385 case ,${enable_languages}, in
17386 *,fortran,*) ;;
17387 *) ok=no ;;
17388 esac
17389 if test $ok = yes; then
17390 # An in-tree tool is available and we can use it
17391 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17393 $as_echo "just compiled" >&6; }
17394 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17395 # We already found the complete path
17396 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17398 $as_echo "pre-installed in $ac_dir" >&6; }
17399 elif test "x$target" = "x$host"; then
17400 # We can use an host tool
17401 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17403 $as_echo "host tool" >&6; }
17404 else
17405 # We need a cross tool
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17407 $as_echo "pre-installed" >&6; }
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17412 $as_echo_n "checking where to find the target gccgo... " >&6; }
17413 if test "x${build}" != "x${host}" ; then
17414 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17415 # We already found the complete path
17416 ac_dir=`dirname $GOC_FOR_TARGET`
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17418 $as_echo "pre-installed in $ac_dir" >&6; }
17419 else
17420 # Canadian cross, just use what we found
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17422 $as_echo "pre-installed" >&6; }
17424 else
17425 ok=yes
17426 case " ${configdirs} " in
17427 *" gcc "*) ;;
17428 *) ok=no ;;
17429 esac
17430 case ,${enable_languages}, in
17431 *,go,*) ;;
17432 *) ok=no ;;
17433 esac
17434 if test $ok = yes; then
17435 # An in-tree tool is available and we can use it
17436 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17438 $as_echo "just compiled" >&6; }
17439 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17440 # We already found the complete path
17441 ac_dir=`dirname $GOC_FOR_TARGET`
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17443 $as_echo "pre-installed in $ac_dir" >&6; }
17444 elif test "x$target" = "x$host"; then
17445 # We can use an host tool
17446 GOC_FOR_TARGET='$(GOC)'
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17448 $as_echo "host tool" >&6; }
17449 else
17450 # We need a cross tool
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17452 $as_echo "pre-installed" >&6; }
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17457 $as_echo_n "checking where to find the target gdc... " >&6; }
17458 if test "x${build}" != "x${host}" ; then
17459 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17460 # We already found the complete path
17461 ac_dir=`dirname $GDC_FOR_TARGET`
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17463 $as_echo "pre-installed in $ac_dir" >&6; }
17464 else
17465 # Canadian cross, just use what we found
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17467 $as_echo "pre-installed" >&6; }
17469 else
17470 ok=yes
17471 case " ${configdirs} " in
17472 *" gcc "*) ;;
17473 *) ok=no ;;
17474 esac
17475 case ,${enable_languages}, in
17476 *,d,*) ;;
17477 *) ok=no ;;
17478 esac
17479 if test $ok = yes; then
17480 # An in-tree tool is available and we can use it
17481 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17483 $as_echo "just compiled" >&6; }
17484 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17485 # We already found the complete path
17486 ac_dir=`dirname $GDC_FOR_TARGET`
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17488 $as_echo "pre-installed in $ac_dir" >&6; }
17489 elif test "x$target" = "x$host"; then
17490 # We can use an host tool
17491 GDC_FOR_TARGET='$(GDC)'
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17493 $as_echo "host tool" >&6; }
17494 else
17495 # We need a cross tool
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17497 $as_echo "pre-installed" >&6; }
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17502 $as_echo_n "checking where to find the target ld... " >&6; }
17503 if test "x${build}" != "x${host}" ; then
17504 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17505 # We already found the complete path
17506 ac_dir=`dirname $LD_FOR_TARGET`
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17508 $as_echo "pre-installed in $ac_dir" >&6; }
17509 else
17510 # Canadian cross, just use what we found
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17512 $as_echo "pre-installed" >&6; }
17514 else
17515 ok=yes
17516 case " ${configdirs} " in
17517 *" ld "*) ;;
17518 *) ok=no ;;
17519 esac
17521 if test $ok = yes; then
17522 # An in-tree tool is available and we can use it
17523 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17525 $as_echo "just compiled" >&6; }
17526 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17527 # We already found the complete path
17528 ac_dir=`dirname $LD_FOR_TARGET`
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17530 $as_echo "pre-installed in $ac_dir" >&6; }
17531 elif test "x$target" = "x$host"; then
17532 # We can use an host tool
17533 LD_FOR_TARGET='$(LD)'
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17535 $as_echo "host tool" >&6; }
17536 else
17537 # We need a cross tool
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17539 $as_echo "pre-installed" >&6; }
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17544 $as_echo_n "checking where to find the target lipo... " >&6; }
17545 if test "x${build}" != "x${host}" ; then
17546 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17547 # We already found the complete path
17548 ac_dir=`dirname $LIPO_FOR_TARGET`
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17550 $as_echo "pre-installed in $ac_dir" >&6; }
17551 else
17552 # Canadian cross, just use what we found
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17554 $as_echo "pre-installed" >&6; }
17556 else
17557 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17558 # We already found the complete path
17559 ac_dir=`dirname $LIPO_FOR_TARGET`
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17561 $as_echo "pre-installed in $ac_dir" >&6; }
17562 elif test "x$target" = "x$host"; then
17563 # We can use an host tool
17564 LIPO_FOR_TARGET='$(LIPO)'
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17566 $as_echo "host tool" >&6; }
17567 else
17568 # We need a cross tool
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17570 $as_echo "pre-installed" >&6; }
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17575 $as_echo_n "checking where to find the target nm... " >&6; }
17576 if test "x${build}" != "x${host}" ; then
17577 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17578 # We already found the complete path
17579 ac_dir=`dirname $NM_FOR_TARGET`
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17581 $as_echo "pre-installed in $ac_dir" >&6; }
17582 else
17583 # Canadian cross, just use what we found
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17585 $as_echo "pre-installed" >&6; }
17587 else
17588 ok=yes
17589 case " ${configdirs} " in
17590 *" binutils "*) ;;
17591 *) ok=no ;;
17592 esac
17594 if test $ok = yes; then
17595 # An in-tree tool is available and we can use it
17596 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17598 $as_echo "just compiled" >&6; }
17599 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17600 # We already found the complete path
17601 ac_dir=`dirname $NM_FOR_TARGET`
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17603 $as_echo "pre-installed in $ac_dir" >&6; }
17604 elif test "x$target" = "x$host"; then
17605 # We can use an host tool
17606 NM_FOR_TARGET='$(NM)'
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17608 $as_echo "host tool" >&6; }
17609 else
17610 # We need a cross tool
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17612 $as_echo "pre-installed" >&6; }
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17617 $as_echo_n "checking where to find the target objcopy... " >&6; }
17618 if test "x${build}" != "x${host}" ; then
17619 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17620 # We already found the complete path
17621 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17623 $as_echo "pre-installed in $ac_dir" >&6; }
17624 else
17625 # Canadian cross, just use what we found
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17627 $as_echo "pre-installed" >&6; }
17629 else
17630 ok=yes
17631 case " ${configdirs} " in
17632 *" binutils "*) ;;
17633 *) ok=no ;;
17634 esac
17636 if test $ok = yes; then
17637 # An in-tree tool is available and we can use it
17638 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17640 $as_echo "just compiled" >&6; }
17641 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17642 # We already found the complete path
17643 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17645 $as_echo "pre-installed in $ac_dir" >&6; }
17646 elif test "x$target" = "x$host"; then
17647 # We can use an host tool
17648 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17650 $as_echo "host tool" >&6; }
17651 else
17652 # We need a cross tool
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17654 $as_echo "pre-installed" >&6; }
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17659 $as_echo_n "checking where to find the target objdump... " >&6; }
17660 if test "x${build}" != "x${host}" ; then
17661 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17662 # We already found the complete path
17663 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17665 $as_echo "pre-installed in $ac_dir" >&6; }
17666 else
17667 # Canadian cross, just use what we found
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17669 $as_echo "pre-installed" >&6; }
17671 else
17672 ok=yes
17673 case " ${configdirs} " in
17674 *" binutils "*) ;;
17675 *) ok=no ;;
17676 esac
17678 if test $ok = yes; then
17679 # An in-tree tool is available and we can use it
17680 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17682 $as_echo "just compiled" >&6; }
17683 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17684 # We already found the complete path
17685 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17687 $as_echo "pre-installed in $ac_dir" >&6; }
17688 elif test "x$target" = "x$host"; then
17689 # We can use an host tool
17690 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17692 $as_echo "host tool" >&6; }
17693 else
17694 # We need a cross tool
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17696 $as_echo "pre-installed" >&6; }
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17701 $as_echo_n "checking where to find the target otool... " >&6; }
17702 if test "x${build}" != "x${host}" ; then
17703 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17704 # We already found the complete path
17705 ac_dir=`dirname $OTOOL_FOR_TARGET`
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17707 $as_echo "pre-installed in $ac_dir" >&6; }
17708 else
17709 # Canadian cross, just use what we found
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17711 $as_echo "pre-installed" >&6; }
17713 else
17714 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17715 # We already found the complete path
17716 ac_dir=`dirname $OTOOL_FOR_TARGET`
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17718 $as_echo "pre-installed in $ac_dir" >&6; }
17719 elif test "x$target" = "x$host"; then
17720 # We can use an host tool
17721 OTOOL_FOR_TARGET='$(OTOOL)'
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17723 $as_echo "host tool" >&6; }
17724 else
17725 # We need a cross tool
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17727 $as_echo "pre-installed" >&6; }
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17732 $as_echo_n "checking where to find the target ranlib... " >&6; }
17733 if test "x${build}" != "x${host}" ; then
17734 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17735 # We already found the complete path
17736 ac_dir=`dirname $RANLIB_FOR_TARGET`
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17738 $as_echo "pre-installed in $ac_dir" >&6; }
17739 else
17740 # Canadian cross, just use what we found
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17742 $as_echo "pre-installed" >&6; }
17744 else
17745 ok=yes
17746 case " ${configdirs} " in
17747 *" binutils "*) ;;
17748 *) ok=no ;;
17749 esac
17751 if test $ok = yes; then
17752 # An in-tree tool is available and we can use it
17753 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17755 $as_echo "just compiled" >&6; }
17756 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17757 # We already found the complete path
17758 ac_dir=`dirname $RANLIB_FOR_TARGET`
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17760 $as_echo "pre-installed in $ac_dir" >&6; }
17761 elif test "x$target" = "x$host"; then
17762 # We can use an host tool
17763 RANLIB_FOR_TARGET='$(RANLIB)'
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17765 $as_echo "host tool" >&6; }
17766 else
17767 # We need a cross tool
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17769 $as_echo "pre-installed" >&6; }
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17774 $as_echo_n "checking where to find the target readelf... " >&6; }
17775 if test "x${build}" != "x${host}" ; then
17776 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17777 # We already found the complete path
17778 ac_dir=`dirname $READELF_FOR_TARGET`
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17780 $as_echo "pre-installed in $ac_dir" >&6; }
17781 else
17782 # Canadian cross, just use what we found
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17784 $as_echo "pre-installed" >&6; }
17786 else
17787 ok=yes
17788 case " ${configdirs} " in
17789 *" binutils "*) ;;
17790 *) ok=no ;;
17791 esac
17793 if test $ok = yes; then
17794 # An in-tree tool is available and we can use it
17795 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17797 $as_echo "just compiled" >&6; }
17798 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17799 # We already found the complete path
17800 ac_dir=`dirname $READELF_FOR_TARGET`
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17802 $as_echo "pre-installed in $ac_dir" >&6; }
17803 elif test "x$target" = "x$host"; then
17804 # We can use an host tool
17805 READELF_FOR_TARGET='$(READELF)'
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17807 $as_echo "host tool" >&6; }
17808 else
17809 # We need a cross tool
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17811 $as_echo "pre-installed" >&6; }
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17816 $as_echo_n "checking where to find the target strip... " >&6; }
17817 if test "x${build}" != "x${host}" ; then
17818 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17819 # We already found the complete path
17820 ac_dir=`dirname $STRIP_FOR_TARGET`
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17822 $as_echo "pre-installed in $ac_dir" >&6; }
17823 else
17824 # Canadian cross, just use what we found
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17826 $as_echo "pre-installed" >&6; }
17828 else
17829 ok=yes
17830 case " ${configdirs} " in
17831 *" binutils "*) ;;
17832 *) ok=no ;;
17833 esac
17835 if test $ok = yes; then
17836 # An in-tree tool is available and we can use it
17837 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17839 $as_echo "just compiled" >&6; }
17840 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17841 # We already found the complete path
17842 ac_dir=`dirname $STRIP_FOR_TARGET`
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17844 $as_echo "pre-installed in $ac_dir" >&6; }
17845 elif test "x$target" = "x$host"; then
17846 # We can use an host tool
17847 STRIP_FOR_TARGET='$(STRIP)'
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17849 $as_echo "host tool" >&6; }
17850 else
17851 # We need a cross tool
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17853 $as_echo "pre-installed" >&6; }
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17858 $as_echo_n "checking where to find the target windres... " >&6; }
17859 if test "x${build}" != "x${host}" ; then
17860 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17861 # We already found the complete path
17862 ac_dir=`dirname $WINDRES_FOR_TARGET`
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17864 $as_echo "pre-installed in $ac_dir" >&6; }
17865 else
17866 # Canadian cross, just use what we found
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17868 $as_echo "pre-installed" >&6; }
17870 else
17871 ok=yes
17872 case " ${configdirs} " in
17873 *" binutils "*) ;;
17874 *) ok=no ;;
17875 esac
17877 if test $ok = yes; then
17878 # An in-tree tool is available and we can use it
17879 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17881 $as_echo "just compiled" >&6; }
17882 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17883 # We already found the complete path
17884 ac_dir=`dirname $WINDRES_FOR_TARGET`
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17886 $as_echo "pre-installed in $ac_dir" >&6; }
17887 elif test "x$target" = "x$host"; then
17888 # We can use an host tool
17889 WINDRES_FOR_TARGET='$(WINDRES)'
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17891 $as_echo "host tool" >&6; }
17892 else
17893 # We need a cross tool
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17895 $as_echo "pre-installed" >&6; }
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17900 $as_echo_n "checking where to find the target windmc... " >&6; }
17901 if test "x${build}" != "x${host}" ; then
17902 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17903 # We already found the complete path
17904 ac_dir=`dirname $WINDMC_FOR_TARGET`
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17906 $as_echo "pre-installed in $ac_dir" >&6; }
17907 else
17908 # Canadian cross, just use what we found
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17910 $as_echo "pre-installed" >&6; }
17912 else
17913 ok=yes
17914 case " ${configdirs} " in
17915 *" binutils "*) ;;
17916 *) ok=no ;;
17917 esac
17919 if test $ok = yes; then
17920 # An in-tree tool is available and we can use it
17921 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17923 $as_echo "just compiled" >&6; }
17924 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17925 # We already found the complete path
17926 ac_dir=`dirname $WINDMC_FOR_TARGET`
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17928 $as_echo "pre-installed in $ac_dir" >&6; }
17929 elif test "x$target" = "x$host"; then
17930 # We can use an host tool
17931 WINDMC_FOR_TARGET='$(WINDMC)'
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17933 $as_echo "host tool" >&6; }
17934 else
17935 # We need a cross tool
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17937 $as_echo "pre-installed" >&6; }
17945 # Certain tools may need extra flags.
17946 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17947 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17948 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17950 # When building target libraries, except in a Canadian cross, we use
17951 # the same toolchain as the compiler we just built.
17952 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17953 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17954 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17955 if test $host = $build; then
17956 case " $configdirs " in
17957 *" gcc "*)
17958 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17959 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17960 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17962 esac
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17970 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17971 # Check whether --enable-maintainer-mode was given.
17972 if test "${enable_maintainer_mode+set}" = set; then :
17973 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17974 else
17975 USE_MAINTAINER_MODE=no
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17979 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17982 if test "$USE_MAINTAINER_MODE" = yes; then
17983 MAINTAINER_MODE_TRUE=
17984 MAINTAINER_MODE_FALSE='#'
17985 else
17986 MAINTAINER_MODE_TRUE='#'
17987 MAINTAINER_MODE_FALSE=
17989 MAINT=$MAINTAINER_MODE_TRUE
17991 # ---------------------
17992 # GCC bootstrap support
17993 # ---------------------
17995 # Stage specific cflags for build.
17996 stage1_cflags="-g"
17997 case $build in
17998 vax-*-*)
17999 case ${GCC} in
18000 yes) stage1_cflags="-g -Wa,-J" ;;
18001 *) stage1_cflags="-g -J" ;;
18002 esac ;;
18003 esac
18007 # Enable --enable-checking in stage1 of the compiler.
18008 # Check whether --enable-stage1-checking was given.
18009 if test "${enable_stage1_checking+set}" = set; then :
18010 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18011 else
18012 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18013 # For --disable-checking or implicit --enable-checking=release, avoid
18014 # setting --enable-checking=gc in the default stage1 checking for LTO
18015 # bootstraps. See PR62077.
18016 case $BUILD_CONFIG in
18017 *lto*)
18018 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18020 stage1_checking=--enable-checking=yes,types;;
18021 esac
18022 if test "x$enable_checking" = x && \
18023 test -d ${srcdir}/gcc && \
18024 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18025 stage1_checking=--enable-checking=yes,types,extra
18027 else
18028 stage1_checking=--enable-checking=$enable_checking,types
18034 # Enable -Werror in bootstrap stage2 and later.
18035 # Check whether --enable-werror was given.
18036 if test "${enable_werror+set}" = set; then :
18037 enableval=$enable_werror;
18038 case ${enable_werror} in
18039 yes) stage2_werror_flag="--enable-werror-always" ;;
18040 *) stage2_werror_flag="" ;;
18041 esac
18043 else
18045 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18046 case $BUILD_CONFIG in
18047 bootstrap-debug)
18048 stage2_werror_flag="--enable-werror-always" ;;
18050 stage2_werror_flag="--enable-werror-always" ;;
18051 esac
18059 # Specify what files to not compare during bootstrap.
18061 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18062 case "$target" in
18063 hppa*64*-*-hpux*) ;;
18064 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18065 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18066 esac
18069 ac_config_files="$ac_config_files Makefile"
18071 cat >confcache <<\_ACEOF
18072 # This file is a shell script that caches the results of configure
18073 # tests run on this system so they can be shared between configure
18074 # scripts and configure runs, see configure's option --config-cache.
18075 # It is not useful on other systems. If it contains results you don't
18076 # want to keep, you may remove or edit it.
18078 # config.status only pays attention to the cache file if you give it
18079 # the --recheck option to rerun configure.
18081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18083 # following values.
18085 _ACEOF
18087 # The following way of writing the cache mishandles newlines in values,
18088 # but we know of no workaround that is simple, portable, and efficient.
18089 # So, we kill variables containing newlines.
18090 # Ultrix sh set writes to stderr and can't be redirected directly,
18091 # and sets the high bit in the cache file unless we assign to the vars.
18093 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18094 eval ac_val=\$$ac_var
18095 case $ac_val in #(
18096 *${as_nl}*)
18097 case $ac_var in #(
18098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18100 esac
18101 case $ac_var in #(
18102 _ | IFS | as_nl) ;; #(
18103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18104 *) { eval $ac_var=; unset $ac_var;} ;;
18105 esac ;;
18106 esac
18107 done
18109 (set) 2>&1 |
18110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18111 *${as_nl}ac_space=\ *)
18112 # `set' does not quote correctly, so add quotes: double-quote
18113 # substitution turns \\\\ into \\, and sed turns \\ into \.
18114 sed -n \
18115 "s/'/'\\\\''/g;
18116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18117 ;; #(
18119 # `set' quotes correctly as required by POSIX, so do not add quotes.
18120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18122 esac |
18123 sort
18125 sed '
18126 /^ac_cv_env_/b end
18127 t clear
18128 :clear
18129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18130 t end
18131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18132 :end' >>confcache
18133 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18134 if test -w "$cache_file"; then
18135 if test "x$cache_file" != "x/dev/null"; then
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18137 $as_echo "$as_me: updating cache $cache_file" >&6;}
18138 if test ! -f "$cache_file" || test -h "$cache_file"; then
18139 cat confcache >"$cache_file"
18140 else
18141 case $cache_file in #(
18142 */* | ?:*)
18143 mv -f confcache "$cache_file"$$ &&
18144 mv -f "$cache_file"$$ "$cache_file" ;; #(
18146 mv -f confcache "$cache_file" ;;
18147 esac
18150 else
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18152 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18155 rm -f confcache
18157 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18158 # Let make expand exec_prefix.
18159 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18161 # Transform confdefs.h into DEFS.
18162 # Protect against shell expansion while executing Makefile rules.
18163 # Protect against Makefile macro expansion.
18165 # If the first sed substitution is executed (which looks for macros that
18166 # take arguments), then branch to the quote section. Otherwise,
18167 # look for a macro that doesn't take arguments.
18168 ac_script='
18169 :mline
18170 /\\$/{
18172 s,\\\n,,
18173 b mline
18175 t clear
18176 :clear
18177 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18178 t quote
18179 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18180 t quote
18181 b any
18182 :quote
18183 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18184 s/\[/\\&/g
18185 s/\]/\\&/g
18186 s/\$/$$/g
18188 :any
18191 s/^\n//
18192 s/\n/ /g
18196 DEFS=`sed -n "$ac_script" confdefs.h`
18199 ac_libobjs=
18200 ac_ltlibobjs=
18202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18203 # 1. Remove the extension, and $U if already installed.
18204 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18205 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18206 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18207 # will be set to the directory where LIBOBJS objects are built.
18208 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18209 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18210 done
18211 LIBOBJS=$ac_libobjs
18213 LTLIBOBJS=$ac_ltlibobjs
18217 : "${CONFIG_STATUS=./config.status}"
18218 ac_write_fail=0
18219 ac_clean_files_save=$ac_clean_files
18220 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18222 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18223 as_write_fail=0
18224 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18225 #! $SHELL
18226 # Generated by $as_me.
18227 # Run this file to recreate the current configuration.
18228 # Compiler output produced by configure, useful for debugging
18229 # configure, is in config.log if it exists.
18231 debug=false
18232 ac_cs_recheck=false
18233 ac_cs_silent=false
18235 SHELL=\${CONFIG_SHELL-$SHELL}
18236 export SHELL
18237 _ASEOF
18238 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18239 ## -------------------- ##
18240 ## M4sh Initialization. ##
18241 ## -------------------- ##
18243 # Be more Bourne compatible
18244 DUALCASE=1; export DUALCASE # for MKS sh
18245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18246 emulate sh
18247 NULLCMD=:
18248 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18249 # is contrary to our usage. Disable this feature.
18250 alias -g '${1+"$@"}'='"$@"'
18251 setopt NO_GLOB_SUBST
18252 else
18253 case `(set -o) 2>/dev/null` in #(
18254 *posix*) :
18255 set -o posix ;; #(
18256 *) :
18258 esac
18262 as_nl='
18264 export as_nl
18265 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18266 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18268 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18269 # Prefer a ksh shell builtin over an external printf program on Solaris,
18270 # but without wasting forks for bash or zsh.
18271 if test -z "$BASH_VERSION$ZSH_VERSION" \
18272 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18273 as_echo='print -r --'
18274 as_echo_n='print -rn --'
18275 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18276 as_echo='printf %s\n'
18277 as_echo_n='printf %s'
18278 else
18279 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18280 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18281 as_echo_n='/usr/ucb/echo -n'
18282 else
18283 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18284 as_echo_n_body='eval
18285 arg=$1;
18286 case $arg in #(
18287 *"$as_nl"*)
18288 expr "X$arg" : "X\\(.*\\)$as_nl";
18289 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18290 esac;
18291 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18293 export as_echo_n_body
18294 as_echo_n='sh -c $as_echo_n_body as_echo'
18296 export as_echo_body
18297 as_echo='sh -c $as_echo_body as_echo'
18300 # The user is always right.
18301 if test "${PATH_SEPARATOR+set}" != set; then
18302 PATH_SEPARATOR=:
18303 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18304 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18305 PATH_SEPARATOR=';'
18310 # IFS
18311 # We need space, tab and new line, in precisely that order. Quoting is
18312 # there to prevent editors from complaining about space-tab.
18313 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18314 # splitting by setting IFS to empty value.)
18315 IFS=" "" $as_nl"
18317 # Find who we are. Look in the path if we contain no directory separator.
18318 as_myself=
18319 case $0 in #((
18320 *[\\/]* ) as_myself=$0 ;;
18321 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18322 for as_dir in $PATH
18324 IFS=$as_save_IFS
18325 test -z "$as_dir" && as_dir=.
18326 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18327 done
18328 IFS=$as_save_IFS
18331 esac
18332 # We did not find ourselves, most probably we were run as `sh COMMAND'
18333 # in which case we are not to be found in the path.
18334 if test "x$as_myself" = x; then
18335 as_myself=$0
18337 if test ! -f "$as_myself"; then
18338 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18339 exit 1
18342 # Unset variables that we do not need and which cause bugs (e.g. in
18343 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18344 # suppresses any "Segmentation fault" message there. '((' could
18345 # trigger a bug in pdksh 5.2.14.
18346 for as_var in BASH_ENV ENV MAIL MAILPATH
18347 do eval test x\${$as_var+set} = xset \
18348 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18349 done
18350 PS1='$ '
18351 PS2='> '
18352 PS4='+ '
18354 # NLS nuisances.
18355 LC_ALL=C
18356 export LC_ALL
18357 LANGUAGE=C
18358 export LANGUAGE
18360 # CDPATH.
18361 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18364 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18365 # ----------------------------------------
18366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18368 # script with STATUS, using 1 if that was 0.
18369 as_fn_error ()
18371 as_status=$1; test $as_status -eq 0 && as_status=1
18372 if test "$4"; then
18373 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18376 $as_echo "$as_me: error: $2" >&2
18377 as_fn_exit $as_status
18378 } # as_fn_error
18381 # as_fn_set_status STATUS
18382 # -----------------------
18383 # Set $? to STATUS, without forking.
18384 as_fn_set_status ()
18386 return $1
18387 } # as_fn_set_status
18389 # as_fn_exit STATUS
18390 # -----------------
18391 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18392 as_fn_exit ()
18394 set +e
18395 as_fn_set_status $1
18396 exit $1
18397 } # as_fn_exit
18399 # as_fn_unset VAR
18400 # ---------------
18401 # Portably unset VAR.
18402 as_fn_unset ()
18404 { eval $1=; unset $1;}
18406 as_unset=as_fn_unset
18407 # as_fn_append VAR VALUE
18408 # ----------------------
18409 # Append the text in VALUE to the end of the definition contained in VAR. Take
18410 # advantage of any shell optimizations that allow amortized linear growth over
18411 # repeated appends, instead of the typical quadratic growth present in naive
18412 # implementations.
18413 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18414 eval 'as_fn_append ()
18416 eval $1+=\$2
18418 else
18419 as_fn_append ()
18421 eval $1=\$$1\$2
18423 fi # as_fn_append
18425 # as_fn_arith ARG...
18426 # ------------------
18427 # Perform arithmetic evaluation on the ARGs, and store the result in the
18428 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18429 # must be portable across $(()) and expr.
18430 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18431 eval 'as_fn_arith ()
18433 as_val=$(( $* ))
18435 else
18436 as_fn_arith ()
18438 as_val=`expr "$@" || test $? -eq 1`
18440 fi # as_fn_arith
18443 if expr a : '\(a\)' >/dev/null 2>&1 &&
18444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18445 as_expr=expr
18446 else
18447 as_expr=false
18450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18451 as_basename=basename
18452 else
18453 as_basename=false
18456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18457 as_dirname=dirname
18458 else
18459 as_dirname=false
18462 as_me=`$as_basename -- "$0" ||
18463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18464 X"$0" : 'X\(//\)$' \| \
18465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18466 $as_echo X/"$0" |
18467 sed '/^.*\/\([^/][^/]*\)\/*$/{
18468 s//\1/
18471 /^X\/\(\/\/\)$/{
18472 s//\1/
18475 /^X\/\(\/\).*/{
18476 s//\1/
18479 s/.*/./; q'`
18481 # Avoid depending upon Character Ranges.
18482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18485 as_cr_digits='0123456789'
18486 as_cr_alnum=$as_cr_Letters$as_cr_digits
18488 ECHO_C= ECHO_N= ECHO_T=
18489 case `echo -n x` in #(((((
18490 -n*)
18491 case `echo 'xy\c'` in
18492 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18493 xy) ECHO_C='\c';;
18494 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18495 ECHO_T=' ';;
18496 esac;;
18498 ECHO_N='-n';;
18499 esac
18501 rm -f conf$$ conf$$.exe conf$$.file
18502 if test -d conf$$.dir; then
18503 rm -f conf$$.dir/conf$$.file
18504 else
18505 rm -f conf$$.dir
18506 mkdir conf$$.dir 2>/dev/null
18508 if (echo >conf$$.file) 2>/dev/null; then
18509 if ln -s conf$$.file conf$$ 2>/dev/null; then
18510 as_ln_s='ln -s'
18511 # ... but there are two gotchas:
18512 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18513 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18514 # In both cases, we have to default to `cp -pR'.
18515 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18516 as_ln_s='cp -pR'
18517 elif ln conf$$.file conf$$ 2>/dev/null; then
18518 as_ln_s=ln
18519 else
18520 as_ln_s='cp -pR'
18522 else
18523 as_ln_s='cp -pR'
18525 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18526 rmdir conf$$.dir 2>/dev/null
18529 # as_fn_mkdir_p
18530 # -------------
18531 # Create "$as_dir" as a directory, including parents if necessary.
18532 as_fn_mkdir_p ()
18535 case $as_dir in #(
18536 -*) as_dir=./$as_dir;;
18537 esac
18538 test -d "$as_dir" || eval $as_mkdir_p || {
18539 as_dirs=
18540 while :; do
18541 case $as_dir in #(
18542 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18543 *) as_qdir=$as_dir;;
18544 esac
18545 as_dirs="'$as_qdir' $as_dirs"
18546 as_dir=`$as_dirname -- "$as_dir" ||
18547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18548 X"$as_dir" : 'X\(//\)[^/]' \| \
18549 X"$as_dir" : 'X\(//\)$' \| \
18550 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18551 $as_echo X"$as_dir" |
18552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18553 s//\1/
18556 /^X\(\/\/\)[^/].*/{
18557 s//\1/
18560 /^X\(\/\/\)$/{
18561 s//\1/
18564 /^X\(\/\).*/{
18565 s//\1/
18568 s/.*/./; q'`
18569 test -d "$as_dir" && break
18570 done
18571 test -z "$as_dirs" || eval "mkdir $as_dirs"
18572 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18575 } # as_fn_mkdir_p
18576 if mkdir -p . 2>/dev/null; then
18577 as_mkdir_p='mkdir -p "$as_dir"'
18578 else
18579 test -d ./-p && rmdir ./-p
18580 as_mkdir_p=false
18584 # as_fn_executable_p FILE
18585 # -----------------------
18586 # Test if FILE is an executable regular file.
18587 as_fn_executable_p ()
18589 test -f "$1" && test -x "$1"
18590 } # as_fn_executable_p
18591 as_test_x='test -x'
18592 as_executable_p=as_fn_executable_p
18594 # Sed expression to map a string onto a valid CPP name.
18595 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18597 # Sed expression to map a string onto a valid variable name.
18598 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18601 exec 6>&1
18602 ## ----------------------------------- ##
18603 ## Main body of $CONFIG_STATUS script. ##
18604 ## ----------------------------------- ##
18605 _ASEOF
18606 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18609 # Save the log message, to keep $0 and so on meaningful, and to
18610 # report actual input values of CONFIG_FILES etc. instead of their
18611 # values after options handling.
18612 ac_log="
18613 This file was extended by $as_me, which was
18614 generated by GNU Autoconf 2.69. Invocation command line was
18616 CONFIG_FILES = $CONFIG_FILES
18617 CONFIG_HEADERS = $CONFIG_HEADERS
18618 CONFIG_LINKS = $CONFIG_LINKS
18619 CONFIG_COMMANDS = $CONFIG_COMMANDS
18620 $ $0 $@
18622 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18625 _ACEOF
18627 case $ac_config_files in *"
18628 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18629 esac
18633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18634 # Files that config.status was made for.
18635 config_files="$ac_config_files"
18637 _ACEOF
18639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18640 ac_cs_usage="\
18641 \`$as_me' instantiates files and other configuration actions
18642 from templates according to the current configuration. Unless the files
18643 and actions are specified as TAGs, all are instantiated by default.
18645 Usage: $0 [OPTION]... [TAG]...
18647 -h, --help print this help, then exit
18648 -V, --version print version number and configuration settings, then exit
18649 --config print configuration, then exit
18650 -q, --quiet, --silent
18651 do not print progress messages
18652 -d, --debug don't remove temporary files
18653 --recheck update $as_me by reconfiguring in the same conditions
18654 --file=FILE[:TEMPLATE]
18655 instantiate the configuration file FILE
18657 Configuration files:
18658 $config_files
18660 Report bugs to the package provider."
18662 _ACEOF
18663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18664 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18665 ac_cs_version="\\
18666 config.status
18667 configured by $0, generated by GNU Autoconf 2.69,
18668 with options \\"\$ac_cs_config\\"
18670 Copyright (C) 2012 Free Software Foundation, Inc.
18671 This config.status script is free software; the Free Software Foundation
18672 gives unlimited permission to copy, distribute and modify it."
18674 ac_pwd='$ac_pwd'
18675 srcdir='$srcdir'
18676 INSTALL='$INSTALL'
18677 AWK='$AWK'
18678 test -n "\$AWK" || AWK=awk
18679 _ACEOF
18681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18682 # The default lists apply if the user does not specify any file.
18683 ac_need_defaults=:
18684 while test $# != 0
18686 case $1 in
18687 --*=?*)
18688 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18689 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18690 ac_shift=:
18692 --*=)
18693 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18694 ac_optarg=
18695 ac_shift=:
18698 ac_option=$1
18699 ac_optarg=$2
18700 ac_shift=shift
18702 esac
18704 case $ac_option in
18705 # Handling of the options.
18706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18707 ac_cs_recheck=: ;;
18708 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18709 $as_echo "$ac_cs_version"; exit ;;
18710 --config | --confi | --conf | --con | --co | --c )
18711 $as_echo "$ac_cs_config"; exit ;;
18712 --debug | --debu | --deb | --de | --d | -d )
18713 debug=: ;;
18714 --file | --fil | --fi | --f )
18715 $ac_shift
18716 case $ac_optarg in
18717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18718 '') as_fn_error $? "missing file argument" ;;
18719 esac
18720 as_fn_append CONFIG_FILES " '$ac_optarg'"
18721 ac_need_defaults=false;;
18722 --he | --h | --help | --hel | -h )
18723 $as_echo "$ac_cs_usage"; exit ;;
18724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18725 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18726 ac_cs_silent=: ;;
18728 # This is an error.
18729 -*) as_fn_error $? "unrecognized option: \`$1'
18730 Try \`$0 --help' for more information." ;;
18732 *) as_fn_append ac_config_targets " $1"
18733 ac_need_defaults=false ;;
18735 esac
18736 shift
18737 done
18739 ac_configure_extra_args=
18741 if $ac_cs_silent; then
18742 exec 6>/dev/null
18743 ac_configure_extra_args="$ac_configure_extra_args --silent"
18746 _ACEOF
18747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18748 if \$ac_cs_recheck; then
18749 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18750 shift
18751 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18752 CONFIG_SHELL='$SHELL'
18753 export CONFIG_SHELL
18754 exec "\$@"
18757 _ACEOF
18758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18759 exec 5>>config.log
18761 echo
18762 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18763 ## Running $as_me. ##
18764 _ASBOX
18765 $as_echo "$ac_log"
18766 } >&5
18768 _ACEOF
18769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18771 # INIT-COMMANDS
18773 extrasub_build="$extrasub_build"
18774 extrasub_host="$extrasub_host"
18775 extrasub_target="$extrasub_target"
18777 _ACEOF
18779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18781 # Handling of arguments.
18782 for ac_config_target in $ac_config_targets
18784 case $ac_config_target in
18785 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18787 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18788 esac
18789 done
18792 # If the user did not use the arguments to specify the items to instantiate,
18793 # then the envvar interface is used. Set only those that are not.
18794 # We use the long form for the default assignment because of an extremely
18795 # bizarre bug on SunOS 4.1.3.
18796 if $ac_need_defaults; then
18797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18800 # Have a temporary directory for convenience. Make it in the build tree
18801 # simply because there is no reason against having it here, and in addition,
18802 # creating and moving files from /tmp can sometimes cause problems.
18803 # Hook for its removal unless debugging.
18804 # Note that there is a small window in which the directory will not be cleaned:
18805 # after its creation but before its name has been assigned to `$tmp'.
18806 $debug ||
18808 tmp= ac_tmp=
18809 trap 'exit_status=$?
18810 : "${ac_tmp:=$tmp}"
18811 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18813 trap 'as_fn_exit 1' 1 2 13 15
18815 # Create a (secure) tmp directory for tmp files.
18818 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18819 test -d "$tmp"
18820 } ||
18822 tmp=./conf$$-$RANDOM
18823 (umask 077 && mkdir "$tmp")
18824 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18825 ac_tmp=$tmp
18827 # Set up the scripts for CONFIG_FILES section.
18828 # No need to generate them if there are no CONFIG_FILES.
18829 # This happens for instance with `./config.status config.h'.
18830 if test -n "$CONFIG_FILES"; then
18832 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18833 ac_cs_awk_getline=:
18834 ac_cs_awk_pipe_init=
18835 ac_cs_awk_read_file='
18836 while ((getline aline < (F[key])) > 0)
18837 print(aline)
18838 close(F[key])'
18839 ac_cs_awk_pipe_fini=
18840 else
18841 ac_cs_awk_getline=false
18842 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18843 ac_cs_awk_read_file='
18844 print "|#_!!_#|"
18845 print "cat " F[key] " &&"
18846 '$ac_cs_awk_pipe_init
18847 # The final `:' finishes the AND list.
18848 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18850 ac_cr=`echo X | tr X '\015'`
18851 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18852 # But we know of no other shell where ac_cr would be empty at this
18853 # point, so we can use a bashism as a fallback.
18854 if test "x$ac_cr" = x; then
18855 eval ac_cr=\$\'\\r\'
18857 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18858 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18859 ac_cs_awk_cr='\\r'
18860 else
18861 ac_cs_awk_cr=$ac_cr
18864 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18865 _ACEOF
18867 # Create commands to substitute file output variables.
18869 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18870 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18871 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18872 echo "_ACAWK" &&
18873 echo "_ACEOF"
18874 } >conf$$files.sh &&
18875 . ./conf$$files.sh ||
18876 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18877 rm -f conf$$files.sh
18880 echo "cat >conf$$subs.awk <<_ACEOF" &&
18881 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18882 echo "_ACEOF"
18883 } >conf$$subs.sh ||
18884 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18885 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18886 ac_delim='%!_!# '
18887 for ac_last_try in false false false false false :; do
18888 . ./conf$$subs.sh ||
18889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18891 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18892 if test $ac_delim_n = $ac_delim_num; then
18893 break
18894 elif $ac_last_try; then
18895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18896 else
18897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18899 done
18900 rm -f conf$$subs.sh
18902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18903 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18904 _ACEOF
18905 sed -n '
18907 s/^/S["/; s/!.*/"]=/
18910 s/^[^!]*!//
18911 :repl
18912 t repl
18913 s/'"$ac_delim"'$//
18914 t delim
18917 s/\(.\{148\}\)..*/\1/
18918 t more1
18919 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18922 b repl
18923 :more1
18924 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18927 s/.\{148\}//
18928 t nl
18929 :delim
18931 s/\(.\{148\}\)..*/\1/
18932 t more2
18933 s/["\\]/\\&/g; s/^/"/; s/$/"/
18936 :more2
18937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18940 s/.\{148\}//
18941 t delim
18942 ' <conf$$subs.awk | sed '
18943 /^[^""]/{
18945 s/\n//
18947 ' >>$CONFIG_STATUS || ac_write_fail=1
18948 rm -f conf$$subs.awk
18949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18950 _ACAWK
18951 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18952 for (key in S) S_is_set[key] = 1
18953 FS = "\a"
18954 \$ac_cs_awk_pipe_init
18957 line = $ 0
18958 nfields = split(line, field, "@")
18959 substed = 0
18960 len = length(field[1])
18961 for (i = 2; i < nfields; i++) {
18962 key = field[i]
18963 keylen = length(key)
18964 if (S_is_set[key]) {
18965 value = S[key]
18966 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18967 len += length(value) + length(field[++i])
18968 substed = 1
18969 } else
18970 len += 1 + keylen
18972 if (nfields == 3 && !substed) {
18973 key = field[2]
18974 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18975 \$ac_cs_awk_read_file
18976 next
18979 print line
18981 \$ac_cs_awk_pipe_fini
18982 _ACAWK
18983 _ACEOF
18984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18985 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18986 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18987 else
18989 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18990 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18991 _ACEOF
18993 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18994 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18995 # trailing colons and then remove the whole line if VPATH becomes empty
18996 # (actually we leave an empty line to preserve line numbers).
18997 if test "x$srcdir" = x.; then
18998 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19000 s///
19001 s/^/:/
19002 s/[ ]*$/:/
19003 s/:\$(srcdir):/:/g
19004 s/:\${srcdir}:/:/g
19005 s/:@srcdir@:/:/g
19006 s/^:*//
19007 s/:*$//
19009 s/\(=[ ]*\).*/\1/
19011 s/\n//
19012 s/^[^=]*=[ ]*$//
19016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19017 fi # test -n "$CONFIG_FILES"
19020 eval set X " :F $CONFIG_FILES "
19021 shift
19022 for ac_tag
19024 case $ac_tag in
19025 :[FHLC]) ac_mode=$ac_tag; continue;;
19026 esac
19027 case $ac_mode$ac_tag in
19028 :[FHL]*:*);;
19029 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19030 :[FH]-) ac_tag=-:-;;
19031 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19032 esac
19033 ac_save_IFS=$IFS
19034 IFS=:
19035 set x $ac_tag
19036 IFS=$ac_save_IFS
19037 shift
19038 ac_file=$1
19039 shift
19041 case $ac_mode in
19042 :L) ac_source=$1;;
19043 :[FH])
19044 ac_file_inputs=
19045 for ac_f
19047 case $ac_f in
19048 -) ac_f="$ac_tmp/stdin";;
19049 *) # Look for the file first in the build tree, then in the source tree
19050 # (if the path is not absolute). The absolute path cannot be DOS-style,
19051 # because $ac_f cannot contain `:'.
19052 test -f "$ac_f" ||
19053 case $ac_f in
19054 [\\/$]*) false;;
19055 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19056 esac ||
19057 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19058 esac
19059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19060 as_fn_append ac_file_inputs " '$ac_f'"
19061 done
19063 # Let's still pretend it is `configure' which instantiates (i.e., don't
19064 # use $as_me), people would be surprised to read:
19065 # /* config.h. Generated by config.status. */
19066 configure_input='Generated from '`
19067 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19068 `' by configure.'
19069 if test x"$ac_file" != x-; then
19070 configure_input="$ac_file. $configure_input"
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19072 $as_echo "$as_me: creating $ac_file" >&6;}
19074 # Neutralize special characters interpreted by sed in replacement strings.
19075 case $configure_input in #(
19076 *\&* | *\|* | *\\* )
19077 ac_sed_conf_input=`$as_echo "$configure_input" |
19078 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19079 *) ac_sed_conf_input=$configure_input;;
19080 esac
19082 case $ac_tag in
19083 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19085 esac
19087 esac
19089 ac_dir=`$as_dirname -- "$ac_file" ||
19090 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19091 X"$ac_file" : 'X\(//\)[^/]' \| \
19092 X"$ac_file" : 'X\(//\)$' \| \
19093 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19094 $as_echo X"$ac_file" |
19095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19096 s//\1/
19099 /^X\(\/\/\)[^/].*/{
19100 s//\1/
19103 /^X\(\/\/\)$/{
19104 s//\1/
19107 /^X\(\/\).*/{
19108 s//\1/
19111 s/.*/./; q'`
19112 as_dir="$ac_dir"; as_fn_mkdir_p
19113 ac_builddir=.
19115 case "$ac_dir" in
19116 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19118 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19119 # A ".." for each directory in $ac_dir_suffix.
19120 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19121 case $ac_top_builddir_sub in
19122 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19123 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19124 esac ;;
19125 esac
19126 ac_abs_top_builddir=$ac_pwd
19127 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19128 # for backward compatibility:
19129 ac_top_builddir=$ac_top_build_prefix
19131 case $srcdir in
19132 .) # We are building in place.
19133 ac_srcdir=.
19134 ac_top_srcdir=$ac_top_builddir_sub
19135 ac_abs_top_srcdir=$ac_pwd ;;
19136 [\\/]* | ?:[\\/]* ) # Absolute name.
19137 ac_srcdir=$srcdir$ac_dir_suffix;
19138 ac_top_srcdir=$srcdir
19139 ac_abs_top_srcdir=$srcdir ;;
19140 *) # Relative name.
19141 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19142 ac_top_srcdir=$ac_top_build_prefix$srcdir
19143 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19144 esac
19145 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19148 case $ac_mode in
19151 # CONFIG_FILE
19154 case $INSTALL in
19155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19156 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19157 esac
19158 _ACEOF
19160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19161 # If the template does not know about datarootdir, expand it.
19162 # FIXME: This hack should be removed a few years after 2.60.
19163 ac_datarootdir_hack=; ac_datarootdir_seen=
19164 ac_sed_dataroot='
19165 /datarootdir/ {
19169 /@datadir@/p
19170 /@docdir@/p
19171 /@infodir@/p
19172 /@localedir@/p
19173 /@mandir@/p'
19174 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19175 *datarootdir*) ac_datarootdir_seen=yes;;
19176 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19178 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19179 _ACEOF
19180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19181 ac_datarootdir_hack='
19182 s&@datadir@&$datadir&g
19183 s&@docdir@&$docdir&g
19184 s&@infodir@&$infodir&g
19185 s&@localedir@&$localedir&g
19186 s&@mandir@&$mandir&g
19187 s&\\\${datarootdir}&$datarootdir&g' ;;
19188 esac
19189 _ACEOF
19191 # Neutralize VPATH when `$srcdir' = `.'.
19192 # Shell code in configure.ac might set extrasub.
19193 # FIXME: do we really want to maintain this feature?
19194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19195 ac_sed_extra="$ac_vpsub
19196 $extrasub
19197 _ACEOF
19198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19201 s|@configure_input@|$ac_sed_conf_input|;t t
19202 s&@top_builddir@&$ac_top_builddir_sub&;t t
19203 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19204 s&@srcdir@&$ac_srcdir&;t t
19205 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19206 s&@top_srcdir@&$ac_top_srcdir&;t t
19207 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19208 s&@builddir@&$ac_builddir&;t t
19209 s&@abs_builddir@&$ac_abs_builddir&;t t
19210 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19211 s&@INSTALL@&$ac_INSTALL&;t t
19212 $ac_datarootdir_hack
19214 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19215 if $ac_cs_awk_getline; then
19216 $AWK -f "$ac_tmp/subs.awk"
19217 else
19218 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19219 fi \
19220 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19222 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19223 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19224 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19225 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19227 which seems to be undefined. Please make sure it is defined" >&5
19228 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19229 which seems to be undefined. Please make sure it is defined" >&2;}
19231 rm -f "$ac_tmp/stdin"
19232 case $ac_file in
19233 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19234 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19235 esac \
19236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19241 esac
19244 case $ac_file$ac_mode in
19245 "Makefile":F) sed "$extrasub_build" Makefile |
19246 sed "$extrasub_host" |
19247 sed "$extrasub_target" > mf$$
19248 mv -f mf$$ Makefile ;;
19250 esac
19251 done # for ac_tag
19254 as_fn_exit 0
19255 _ACEOF
19256 ac_clean_files=$ac_clean_files_save
19258 test $ac_write_fail = 0 ||
19259 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19262 # configure is writing to config.log, and then calls config.status.
19263 # config.status does its own redirection, appending to config.log.
19264 # Unfortunately, on DOS this fails, as config.log is still kept open
19265 # by configure, so config.status won't be able to write to it; its
19266 # output is simply discarded. So we exec the FD to /dev/null,
19267 # effectively closing config.log, so it can be properly (re)opened and
19268 # appended to by config.status. When coming back to configure, we
19269 # need to make the FD available again.
19270 if test "$no_create" != yes; then
19271 ac_cs_success=:
19272 ac_config_status_args=
19273 test "$silent" = yes &&
19274 ac_config_status_args="$ac_config_status_args --quiet"
19275 exec 5>/dev/null
19276 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19277 exec 5>>config.log
19278 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19279 # would make configure fail if this is the last instruction.
19280 $ac_cs_success || as_fn_exit 1
19282 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19284 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}