aix: remove libgomp and libatomic archives before creating FAT archives
[official-gcc.git] / configure
bloba2ea1a329b69de06906315e54a49c694c9704522
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 DLLTOOL_FOR_TARGET
613 AS_FOR_TARGET
614 AR_FOR_TARGET
615 GDC_FOR_TARGET
616 GOC_FOR_TARGET
617 GFORTRAN_FOR_TARGET
618 GCC_FOR_TARGET
619 CXX_FOR_TARGET
620 CC_FOR_TARGET
621 READELF
622 OTOOL
623 OBJDUMP
624 OBJCOPY
625 WINDMC
626 WINDRES
627 STRIP
628 RANLIB
630 LIPO
632 DLLTOOL
635 RUNTEST
636 EXPECT
637 MAKEINFO
638 FLEX
641 BISON
642 YACC
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GDC_FOR_BUILD
650 GOC_FOR_BUILD
651 GFORTRAN_FOR_BUILD
652 DLLTOOL_FOR_BUILD
653 CXX_FOR_BUILD
654 CXXFLAGS_FOR_BUILD
655 CFLAGS_FOR_BUILD
656 CC_FOR_BUILD
657 AS_FOR_BUILD
658 AR_FOR_BUILD
659 target_configdirs
660 configdirs
661 build_configdirs
662 INSTALL_GDB_TK
663 GDB_TK
664 CONFIGURE_GDB_TK
665 build_tooldir
666 tooldir
667 GCC_SHLIB_SUBDIR
668 RPATH_ENVVAR
669 target_configargs
670 host_configargs
671 build_configargs
672 BUILD_CONFIG
673 LDFLAGS_FOR_TARGET
674 CXXFLAGS_FOR_TARGET
675 CFLAGS_FOR_TARGET
676 DEBUG_PREFIX_CFLAGS_FOR_TARGET
677 SYSROOT_CFLAGS_FOR_TARGET
678 get_gcc_base_ver
679 extra_host_zlib_configure_flags
680 extra_host_libiberty_configure_flags
681 stage1_languages
682 host_shared
683 extra_linker_plugin_flags
684 extra_linker_plugin_configure_flags
685 islinc
686 isllibs
687 poststage1_ldflags
688 poststage1_libs
689 stage1_ldflags
690 stage1_libs
691 extra_isl_gmp_configure_flags
692 extra_mpc_mpfr_configure_flags
693 extra_mpc_gmp_configure_flags
694 extra_mpfr_configure_flags
695 gmpinc
696 gmplibs
697 HAVE_CXX11_FOR_BUILD
698 HAVE_CXX11
699 do_compare
700 GNATMAKE
701 GNATBIND
702 ac_ct_CXX
703 CXXFLAGS
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
712 extra_liboffloadmic_configure_flags
713 target_subdir
714 host_subdir
715 build_subdir
716 build_libsubdir
719 LN_S
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 target_noncanonical
733 host_noncanonical
734 build_noncanonical
735 build_os
736 build_vendor
737 build_cpu
738 build
739 TOPLEVEL_CONFIGURE_ARGUMENTS
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files='serialization_dependencies
779 host_makefile_frag
780 target_makefile_frag
781 alphaieee_frag
782 ospace_frag'
783 ac_user_opts='
784 enable_option_checking
785 with_build_libsubdir
786 with_system_zlib
787 enable_as_accelerator_for
788 enable_offload_targets
789 enable_gold
790 enable_ld
791 enable_compressed_debug_sections
792 enable_libquadmath
793 enable_libquadmath_support
794 enable_libada
795 enable_libssp
796 enable_libstdcxx
797 enable_liboffloadmic
798 enable_bootstrap
799 with_mpc
800 with_mpc_include
801 with_mpc_lib
802 with_mpfr_dir
803 with_mpfr
804 with_mpfr_include
805 with_mpfr_lib
806 with_gmp_dir
807 with_gmp
808 with_gmp_include
809 with_gmp_lib
810 with_stage1_libs
811 with_static_standard_libraries
812 with_stage1_ldflags
813 with_boot_libs
814 with_boot_ldflags
815 with_isl
816 with_isl_include
817 with_isl_lib
818 enable_isl_version_check
819 enable_lto
820 enable_linker_plugin_configure_flags
821 enable_linker_plugin_flags
822 enable_host_shared
823 enable_stage1_languages
824 enable_objc_gc
825 with_target_bdw_gc
826 with_target_bdw_gc_include
827 with_target_bdw_gc_lib
828 with_gcc_major_version_only
829 with_build_sysroot
830 with_debug_prefix_map
831 with_build_config
832 enable_vtable_verify
833 enable_serial_configure
834 with_build_time_tools
835 enable_maintainer_mode
836 enable_stage1_checking
837 enable_werror
839 ac_precious_vars='build_alias
840 host_alias
841 target_alias
843 CFLAGS
844 LDFLAGS
845 LIBS
846 CPPFLAGS
848 CXXFLAGS
850 build_configargs
851 host_configargs
852 target_configargs
855 DLLTOOL
857 LIPO
859 RANLIB
860 STRIP
861 WINDRES
862 WINDMC
863 OBJCOPY
864 OBJDUMP
865 OTOOL
866 READELF
867 CC_FOR_TARGET
868 CXX_FOR_TARGET
869 GCC_FOR_TARGET
870 GFORTRAN_FOR_TARGET
871 GOC_FOR_TARGET
872 GDC_FOR_TARGET
873 AR_FOR_TARGET
874 AS_FOR_TARGET
875 DLLTOOL_FOR_TARGET
876 LD_FOR_TARGET
877 LIPO_FOR_TARGET
878 NM_FOR_TARGET
879 OBJCOPY_FOR_TARGET
880 OBJDUMP_FOR_TARGET
881 OTOOL_FOR_TARGET
882 RANLIB_FOR_TARGET
883 READELF_FOR_TARGET
884 STRIP_FOR_TARGET
885 WINDRES_FOR_TARGET
886 WINDMC_FOR_TARGET'
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
937 ac_prev=
938 ac_dashdash=
939 for ac_option
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
944 ac_prev=
945 continue
948 case $ac_option in
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *=) ac_optarg= ;;
951 *) ac_optarg=yes ;;
952 esac
954 # Accept the important Cygnus configure options, so we can diagnose typos.
956 case $ac_dashdash$ac_option in
958 ac_dashdash=yes ;;
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
977 --config-cache | -C)
978 cache_file=config.cache ;;
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1222 -with-* | --with-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
1238 -without-* | --without-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information"
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282 esac
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1294 esac
1295 done
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 as_fn_error $? "missing argument to $ac_option"
1302 if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 esac
1310 # Check all directory arguments for consistency.
1311 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329 done
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350 test "$silent" = yes && exec 6>/dev/null
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 as_fn_error $? "pwd does not report name of working directory"
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1379 /^X\(\/\/\)$/{
1380 s//\1/
1383 /^X\(\/\).*/{
1384 s//\1/
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1392 else
1393 ac_srcdir_defaulted=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 case $srcdir in
1414 *" "*)
1415 as_fn_error $? "path to source, $srcdir, contains spaces"
1417 esac
1418 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434 \`configure' configures this package to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1443 Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking ...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1489 cat <<\_ACEOF
1491 Program names:
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 --target=TARGET configure for building compilers for TARGET [HOST]
1500 _ACEOF
1503 if test -n "$ac_init_help"; then
1505 cat <<\_ACEOF
1507 Optional Features:
1508 --disable-option-checking ignore unrecognized --enable/--with options
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1511 --enable-as-accelerator-for=ARG
1512 build as offload target compiler. Specify offload
1513 host triple by ARG
1514 --enable-offload-targets=LIST
1515 enable offloading to devices from comma-separated
1516 LIST of TARGET[=DIR]. Use optional path to find
1517 offload target compiler during the build
1518 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1519 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1520 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1521 Enable compressed debug sections for gas, gold or ld
1522 by default
1523 --disable-libquadmath do not build libquadmath directory
1524 --disable-libquadmath-support
1525 disable libquadmath support for Fortran
1526 --enable-libada build libada directory
1527 --enable-libssp build libssp directory
1528 --disable-libstdcxx do not build libstdc++-v3 directory
1529 --enable-liboffloadmic=ARG
1530 build liboffloadmic [ARG={no,host,target}]
1531 --enable-bootstrap enable bootstrapping [yes if native build]
1532 --disable-isl-version-check
1533 disable check for isl version
1534 --enable-lto enable link time optimization support
1535 --enable-linker-plugin-configure-flags=FLAGS
1536 additional flags for configuring linker plugins
1537 [none]
1538 --enable-linker-plugin-flags=FLAGS
1539 additional flags for configuring and building linker
1540 plugins [none]
1541 --enable-host-shared build host code as shared libraries
1542 --enable-stage1-languages[=all]
1543 choose additional languages to build during stage1.
1544 Mostly useful for compiler development
1545 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1546 Objective-C runtime
1547 --enable-vtable-verify Enable vtable verification feature
1548 --enable-serial-[{host,target,build}-]configure
1549 force sequential configuration of sub-packages for
1550 the host, target or build machine, or all
1551 sub-packages
1552 --enable-maintainer-mode
1553 enable make rules and dependencies not useful (and
1554 sometimes confusing) to the casual installer
1555 --enable-stage1-checking[=all]
1556 choose additional checking for stage1 of the
1557 compiler
1558 --enable-werror enable -Werror in bootstrap stage2 and later
1560 Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-build-libsubdir=DIR Directory where to find libraries for build system
1564 --with-system-zlib use installed libz
1565 --with-mpc=PATH specify prefix directory for installed MPC package.
1566 Equivalent to --with-mpc-include=PATH/include plus
1567 --with-mpc-lib=PATH/lib
1568 --with-mpc-include=PATH specify directory for installed MPC include files
1569 --with-mpc-lib=PATH specify directory for the installed MPC library
1570 --with-mpfr-dir=PATH this option has been REMOVED
1571 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1572 Equivalent to --with-mpfr-include=PATH/include plus
1573 --with-mpfr-lib=PATH/lib
1574 --with-mpfr-include=PATH
1575 specify directory for installed MPFR include files
1576 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1577 --with-gmp-dir=PATH this option has been REMOVED
1578 --with-gmp=PATH specify prefix directory for the installed GMP
1579 package. Equivalent to
1580 --with-gmp-include=PATH/include plus
1581 --with-gmp-lib=PATH/lib
1582 --with-gmp-include=PATH specify directory for installed GMP include files
1583 --with-gmp-lib=PATH specify directory for the installed GMP library
1584 --with-stage1-libs=LIBS libraries for stage1
1585 --with-static-standard-libraries
1586 use -static-libstdc++ and -static-libgcc
1587 (default=auto)
1588 --with-stage1-ldflags=FLAGS
1589 linker flags for stage1
1590 --with-boot-libs=LIBS libraries for stage2 and later
1591 --with-boot-ldflags=FLAGS
1592 linker flags for stage2 and later
1593 --with-isl=PATH Specify prefix directory for the installed isl
1594 package. Equivalent to
1595 --with-isl-include=PATH/include plus
1596 --with-isl-lib=PATH/lib
1597 --with-isl-include=PATH Specify directory for installed isl include files
1598 --with-isl-lib=PATH Specify the directory for the installed isl library
1599 --with-target-bdw-gc=PATHLIST
1600 specify prefix directory for installed bdw-gc
1601 package. Equivalent to
1602 --with-target-bdw-gc-include=PATH/include plus
1603 --with-target-bdw-gc-lib=PATH/lib
1604 --with-target-bdw-gc-include=PATHLIST
1605 specify directories for installed bdw-gc include
1606 files
1607 --with-target-bdw-gc-lib=PATHLIST
1608 specify directories for installed bdw-gc library
1609 --with-gcc-major-version-only
1610 use only GCC major number in filesystem paths
1611 --with-build-sysroot=SYSROOT
1612 use sysroot as the system root during the build
1613 --with-debug-prefix-map='A=B C=D ...'
1614 map A to B, C to D ... in debug information
1615 --with-build-config='NAME NAME2...'
1616 use config/NAME.mk build configuration
1617 --with-build-time-tools=PATH
1618 use given path to find target tools during the build
1620 Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
1625 LIBS libraries to pass to the linker, e.g. -l<library>
1626 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
1628 CXX C++ compiler command
1629 CXXFLAGS C++ compiler flags
1630 build_configargs
1631 additional configure arguments for build directories
1632 host_configargs
1633 additional configure arguments for host directories
1634 target_configargs
1635 additional configure arguments for target directories
1636 AR AR for the host
1637 AS AS for the host
1638 DLLTOOL DLLTOOL for the host
1639 LD LD for the host
1640 LIPO LIPO for the host
1641 NM NM for the host
1642 RANLIB RANLIB for the host
1643 STRIP STRIP for the host
1644 WINDRES WINDRES for the host
1645 WINDMC WINDMC for the host
1646 OBJCOPY OBJCOPY for the host
1647 OBJDUMP OBJDUMP for the host
1648 OTOOL OTOOL for the host
1649 READELF READELF for the host
1650 CC_FOR_TARGET
1651 CC for the target
1652 CXX_FOR_TARGET
1653 CXX for the target
1654 GCC_FOR_TARGET
1655 GCC for the target
1656 GFORTRAN_FOR_TARGET
1657 GFORTRAN for the target
1658 GOC_FOR_TARGET
1659 GOC for the target
1660 GDC_FOR_TARGET
1661 GDC for the target
1662 AR_FOR_TARGET
1663 AR for the target
1664 AS_FOR_TARGET
1665 AS for the target
1666 DLLTOOL_FOR_TARGET
1667 DLLTOOL for the target
1668 LD_FOR_TARGET
1669 LD for the target
1670 LIPO_FOR_TARGET
1671 LIPO for the target
1672 NM_FOR_TARGET
1673 NM for the target
1674 OBJCOPY_FOR_TARGET
1675 OBJCOPY for the target
1676 OBJDUMP_FOR_TARGET
1677 OBJDUMP for the target
1678 OTOOL_FOR_TARGET
1679 OTOOL for the target
1680 RANLIB_FOR_TARGET
1681 RANLIB for the target
1682 READELF_FOR_TARGET
1683 READELF for the target
1684 STRIP_FOR_TARGET
1685 STRIP for the target
1686 WINDRES_FOR_TARGET
1687 WINDRES for the target
1688 WINDMC_FOR_TARGET
1689 WINDMC for the target
1691 Use these variables to override the choices made by `configure' or to help
1692 it to find libraries and programs with nonstandard names/locations.
1694 Report bugs to the package provider.
1695 _ACEOF
1696 ac_status=$?
1699 if test "$ac_init_help" = "recursive"; then
1700 # If there are subdirs, report their specific --help.
1701 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1702 test -d "$ac_dir" ||
1703 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704 continue
1705 ac_builddir=.
1707 case "$ac_dir" in
1708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711 # A ".." for each directory in $ac_dir_suffix.
1712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713 case $ac_top_builddir_sub in
1714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716 esac ;;
1717 esac
1718 ac_abs_top_builddir=$ac_pwd
1719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir=$ac_top_build_prefix
1723 case $srcdir in
1724 .) # We are building in place.
1725 ac_srcdir=.
1726 ac_top_srcdir=$ac_top_builddir_sub
1727 ac_abs_top_srcdir=$ac_pwd ;;
1728 [\\/]* | ?:[\\/]* ) # Absolute name.
1729 ac_srcdir=$srcdir$ac_dir_suffix;
1730 ac_top_srcdir=$srcdir
1731 ac_abs_top_srcdir=$srcdir ;;
1732 *) # Relative name.
1733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734 ac_top_srcdir=$ac_top_build_prefix$srcdir
1735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1736 esac
1737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1739 cd "$ac_dir" || { ac_status=$?; continue; }
1740 # Check for guested configure.
1741 if test -f "$ac_srcdir/configure.gnu"; then
1742 echo &&
1743 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744 elif test -f "$ac_srcdir/configure"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure" --help=recursive
1747 else
1748 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749 fi || ac_status=$?
1750 cd "$ac_pwd" || { ac_status=$?; break; }
1751 done
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1756 cat <<\_ACEOF
1757 configure
1758 generated by GNU Autoconf 2.69
1760 Copyright (C) 2012 Free Software Foundation, Inc.
1761 This configure script is free software; the Free Software Foundation
1762 gives unlimited permission to copy, distribute and modify it.
1763 _ACEOF
1764 exit
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1771 # ac_fn_c_try_compile LINENO
1772 # --------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_compile ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 ac_retval=1
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1807 } # ac_fn_c_try_compile
1809 # ac_fn_cxx_try_compile LINENO
1810 # ----------------------------
1811 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_cxx_try_compile ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext
1816 if { { ac_try="$ac_compile"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_cxx_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext; then :
1835 ac_retval=0
1836 else
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1840 ac_retval=1
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1845 } # ac_fn_cxx_try_compile
1847 # ac_fn_cxx_try_link LINENO
1848 # -------------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_cxx_try_link ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_cxx_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 test -x conftest$ac_exeext
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=1
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_cxx_try_link
1893 # ac_fn_c_try_link LINENO
1894 # -----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_link ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest$ac_exeext
1921 }; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1927 ac_retval=1
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1937 } # ac_fn_c_try_link
1938 cat >config.log <<_ACEOF
1939 This file contains any messages produced by compilers while
1940 running configure, to aid debugging if configure makes a mistake.
1942 It was created by $as_me, which was
1943 generated by GNU Autoconf 2.69. Invocation command line was
1945 $ $0 $@
1947 _ACEOF
1948 exec 5>>config.log
1950 cat <<_ASUNAME
1951 ## --------- ##
1952 ## Platform. ##
1953 ## --------- ##
1955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1964 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1965 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1968 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1969 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1970 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1972 _ASUNAME
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 $as_echo "PATH: $as_dir"
1980 done
1981 IFS=$as_save_IFS
1983 } >&5
1985 cat >&5 <<_ACEOF
1988 ## ----------- ##
1989 ## Core tests. ##
1990 ## ----------- ##
1992 _ACEOF
1995 # Keep a trace of the command line.
1996 # Strip out --no-create and --no-recursion so they do not pile up.
1997 # Strip out --silent because we don't want to record it for future runs.
1998 # Also quote any args containing shell meta-characters.
1999 # Make two passes to allow for proper duplicate-argument suppression.
2000 ac_configure_args=
2001 ac_configure_args0=
2002 ac_configure_args1=
2003 ac_must_keep_next=false
2004 for ac_pass in 1 2
2006 for ac_arg
2008 case $ac_arg in
2009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2011 | -silent | --silent | --silen | --sile | --sil)
2012 continue ;;
2013 *\'*)
2014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2015 esac
2016 case $ac_pass in
2017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2019 as_fn_append ac_configure_args1 " '$ac_arg'"
2020 if test $ac_must_keep_next = true; then
2021 ac_must_keep_next=false # Got value, back to normal.
2022 else
2023 case $ac_arg in
2024 *=* | --config-cache | -C | -disable-* | --disable-* \
2025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2027 | -with-* | --with-* | -without-* | --without-* | --x)
2028 case "$ac_configure_args0 " in
2029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2030 esac
2032 -* ) ac_must_keep_next=true ;;
2033 esac
2035 as_fn_append ac_configure_args " '$ac_arg'"
2037 esac
2038 done
2039 done
2040 { ac_configure_args0=; unset ac_configure_args0;}
2041 { ac_configure_args1=; unset ac_configure_args1;}
2043 # When interrupted or exit'd, cleanup temporary files, and complete
2044 # config.log. We remove comments because anyway the quotes in there
2045 # would cause problems or look ugly.
2046 # WARNING: Use '\'' to represent an apostrophe within the trap.
2047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2048 trap 'exit_status=$?
2049 # Save into config.log some information that might help in debugging.
2051 echo
2053 $as_echo "## ---------------- ##
2054 ## Cache variables. ##
2055 ## ---------------- ##"
2056 echo
2057 # The following way of writing the cache mishandles newlines in values,
2059 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2060 eval ac_val=\$$ac_var
2061 case $ac_val in #(
2062 *${as_nl}*)
2063 case $ac_var in #(
2064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2066 esac
2067 case $ac_var in #(
2068 _ | IFS | as_nl) ;; #(
2069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2070 *) { eval $ac_var=; unset $ac_var;} ;;
2071 esac ;;
2072 esac
2073 done
2074 (set) 2>&1 |
2075 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2076 *${as_nl}ac_space=\ *)
2077 sed -n \
2078 "s/'\''/'\''\\\\'\'''\''/g;
2079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2080 ;; #(
2082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2084 esac |
2085 sort
2087 echo
2089 $as_echo "## ----------------- ##
2090 ## Output variables. ##
2091 ## ----------------- ##"
2092 echo
2093 for ac_var in $ac_subst_vars
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2103 if test -n "$ac_subst_files"; then
2104 $as_echo "## ------------------- ##
2105 ## File substitutions. ##
2106 ## ------------------- ##"
2107 echo
2108 for ac_var in $ac_subst_files
2110 eval ac_val=\$$ac_var
2111 case $ac_val in
2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113 esac
2114 $as_echo "$ac_var='\''$ac_val'\''"
2115 done | sort
2116 echo
2119 if test -s confdefs.h; then
2120 $as_echo "## ----------- ##
2121 ## confdefs.h. ##
2122 ## ----------- ##"
2123 echo
2124 cat confdefs.h
2125 echo
2127 test "$ac_signal" != 0 &&
2128 $as_echo "$as_me: caught signal $ac_signal"
2129 $as_echo "$as_me: exit $exit_status"
2130 } >&5
2131 rm -f core *.core core.conftest.* &&
2132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2133 exit $exit_status
2135 for ac_signal in 1 2 13 15; do
2136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2137 done
2138 ac_signal=0
2140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2141 rm -f -r conftest* confdefs.h
2143 $as_echo "/* confdefs.h */" > confdefs.h
2145 # Predefined preprocessor variables.
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_NAME "$PACKAGE_NAME"
2149 _ACEOF
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2153 _ACEOF
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2157 _ACEOF
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_STRING "$PACKAGE_STRING"
2161 _ACEOF
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2165 _ACEOF
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_URL "$PACKAGE_URL"
2169 _ACEOF
2172 # Let the site file select an alternate cache file if it wants to.
2173 # Prefer an explicitly selected file to automatically selected ones.
2174 ac_site_file1=NONE
2175 ac_site_file2=NONE
2176 if test -n "$CONFIG_SITE"; then
2177 # We do not want a PATH search for config.site.
2178 case $CONFIG_SITE in #((
2179 -*) ac_site_file1=./$CONFIG_SITE;;
2180 */*) ac_site_file1=$CONFIG_SITE;;
2181 *) ac_site_file1=./$CONFIG_SITE;;
2182 esac
2183 elif test "x$prefix" != xNONE; then
2184 ac_site_file1=$prefix/share/config.site
2185 ac_site_file2=$prefix/etc/config.site
2186 else
2187 ac_site_file1=$ac_default_prefix/share/config.site
2188 ac_site_file2=$ac_default_prefix/etc/config.site
2190 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2192 test "x$ac_site_file" = xNONE && continue
2193 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2195 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2196 sed 's/^/| /' "$ac_site_file" >&5
2197 . "$ac_site_file" \
2198 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200 as_fn_error $? "failed to load site script $ac_site_file
2201 See \`config.log' for more details" "$LINENO" 5; }
2203 done
2205 if test -r "$cache_file"; then
2206 # Some versions of bash will fail to source /dev/null (special files
2207 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2210 $as_echo "$as_me: loading cache $cache_file" >&6;}
2211 case $cache_file in
2212 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2213 *) . "./$cache_file";;
2214 esac
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2218 $as_echo "$as_me: creating cache $cache_file" >&6;}
2219 >$cache_file
2222 # Check that the precious variables saved in the cache have kept the same
2223 # value.
2224 ac_cache_corrupted=false
2225 for ac_var in $ac_precious_vars; do
2226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2227 eval ac_new_set=\$ac_env_${ac_var}_set
2228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2229 eval ac_new_val=\$ac_env_${ac_var}_value
2230 case $ac_old_set,$ac_new_set in
2231 set,)
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2233 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2234 ac_cache_corrupted=: ;;
2235 ,set)
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2237 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2238 ac_cache_corrupted=: ;;
2239 ,);;
2241 if test "x$ac_old_val" != "x$ac_new_val"; then
2242 # differences in whitespace do not lead to failure.
2243 ac_old_val_w=`echo x $ac_old_val`
2244 ac_new_val_w=`echo x $ac_new_val`
2245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2248 ac_cache_corrupted=:
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2252 eval $ac_var=\$ac_old_val
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2255 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2257 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2258 fi;;
2259 esac
2260 # Pass precious variables to config.status.
2261 if test "$ac_new_set" = set; then
2262 case $ac_new_val in
2263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2264 *) ac_arg=$ac_var=$ac_new_val ;;
2265 esac
2266 case " $ac_configure_args " in
2267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2269 esac
2271 done
2272 if $ac_cache_corrupted; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2277 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2279 ## -------------------- ##
2280 ## Main body of script. ##
2281 ## -------------------- ##
2283 ac_ext=c
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296 progname=$0
2297 # if PWD already has a value, it is probably wrong.
2298 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2300 # Export original configure arguments for use by sub-configures.
2301 # Quote arguments with shell meta charatcers.
2302 TOPLEVEL_CONFIGURE_ARGUMENTS=
2303 set -- "$progname" "$@"
2304 for ac_arg
2306 case "$ac_arg" in
2307 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2308 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2309 # if the argument is of the form -foo=baz, quote the baz part only
2310 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2311 *) ;;
2312 esac
2313 # Add the quoted argument to the list.
2314 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2315 done
2316 if test "$silent" = yes; then
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2319 # Remove the initial space we just introduced and, as these will be
2320 # expanded by make, quote '$'.
2321 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2324 # Find the build, host, and target systems.
2325 ac_aux_dir=
2326 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2327 if test -f "$ac_dir/install-sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install-sh -c"
2330 break
2331 elif test -f "$ac_dir/install.sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install.sh -c"
2334 break
2335 elif test -f "$ac_dir/shtool"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/shtool install -c"
2338 break
2340 done
2341 if test -z "$ac_aux_dir"; then
2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2345 # These three variables are undocumented and unsupported,
2346 # and are intended to be withdrawn in a future Autoconf release.
2347 # They can cause serious problems if a builder's source tree is in a directory
2348 # whose full name contains unusual characters.
2349 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2354 # Make sure we can run config.sub.
2355 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2356 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2359 $as_echo_n "checking build system type... " >&6; }
2360 if ${ac_cv_build+:} false; then :
2361 $as_echo_n "(cached) " >&6
2362 else
2363 ac_build_alias=$build_alias
2364 test "x$ac_build_alias" = x &&
2365 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2366 test "x$ac_build_alias" = x &&
2367 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2368 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2369 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2373 $as_echo "$ac_cv_build" >&6; }
2374 case $ac_cv_build in
2375 *-*-*) ;;
2376 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2377 esac
2378 build=$ac_cv_build
2379 ac_save_IFS=$IFS; IFS='-'
2380 set x $ac_cv_build
2381 shift
2382 build_cpu=$1
2383 build_vendor=$2
2384 shift; shift
2385 # Remember, the first character of IFS is used to create $*,
2386 # except with old shells:
2387 build_os=$*
2388 IFS=$ac_save_IFS
2389 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2392 case ${build_alias} in
2393 "") build_noncanonical=${build} ;;
2394 *) build_noncanonical=${build_alias} ;;
2395 esac
2399 case ${host_alias} in
2400 "") host_noncanonical=${build_noncanonical} ;;
2401 *) host_noncanonical=${host_alias} ;;
2402 esac
2406 case ${target_alias} in
2407 "") target_noncanonical=${host_noncanonical} ;;
2408 *) target_noncanonical=${target_alias} ;;
2409 esac
2414 test "$host_noncanonical" = "$target_noncanonical" &&
2415 test "$program_prefix$program_suffix$program_transform_name" = \
2416 NONENONEs,x,x, &&
2417 program_transform_name=s,y,y,
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2420 $as_echo_n "checking host system type... " >&6; }
2421 if ${ac_cv_host+:} false; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 if test "x$host_alias" = x; then
2425 ac_cv_host=$ac_cv_build
2426 else
2427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2433 $as_echo "$ac_cv_host" >&6; }
2434 case $ac_cv_host in
2435 *-*-*) ;;
2436 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2437 esac
2438 host=$ac_cv_host
2439 ac_save_IFS=$IFS; IFS='-'
2440 set x $ac_cv_host
2441 shift
2442 host_cpu=$1
2443 host_vendor=$2
2444 shift; shift
2445 # Remember, the first character of IFS is used to create $*,
2446 # except with old shells:
2447 host_os=$*
2448 IFS=$ac_save_IFS
2449 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2453 $as_echo_n "checking target system type... " >&6; }
2454 if ${ac_cv_target+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test "x$target_alias" = x; then
2458 ac_cv_target=$ac_cv_host
2459 else
2460 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2466 $as_echo "$ac_cv_target" >&6; }
2467 case $ac_cv_target in
2468 *-*-*) ;;
2469 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2470 esac
2471 target=$ac_cv_target
2472 ac_save_IFS=$IFS; IFS='-'
2473 set x $ac_cv_target
2474 shift
2475 target_cpu=$1
2476 target_vendor=$2
2477 shift; shift
2478 # Remember, the first character of IFS is used to create $*,
2479 # except with old shells:
2480 target_os=$*
2481 IFS=$ac_save_IFS
2482 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2485 # The aliases save the names the user supplied, while $host etc.
2486 # will get canonicalized.
2487 test -n "$target_alias" &&
2488 test "$program_prefix$program_suffix$program_transform_name" = \
2489 NONENONEs,x,x, &&
2490 program_prefix=${target_alias}-
2492 test "$program_prefix" != NONE &&
2493 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2494 # Use a double $ so make ignores it.
2495 test "$program_suffix" != NONE &&
2496 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2497 # Double any \ or $.
2498 # By default was `s,x,x', remove it if useless.
2499 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2500 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2504 # Get 'install' or 'install-sh' and its variants.
2505 # Find a good install program. We prefer a C program (faster),
2506 # so one script is as good as another. But avoid the broken or
2507 # incompatible versions:
2508 # SysV /etc/install, /usr/sbin/install
2509 # SunOS /usr/etc/install
2510 # IRIX /sbin/install
2511 # AIX /bin/install
2512 # AmigaOS /C/install, which installs bootblocks on floppy discs
2513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516 # OS/2's system install, which has a completely different semantic
2517 # ./install, which can be erroneously created by make from ./install.sh.
2518 # Reject install programs that cannot install multiple files.
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2521 if test -z "$INSTALL"; then
2522 if ${ac_cv_path_install+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 # Account for people who put trailing slashes in PATH elements.
2531 case $as_dir/ in #((
2532 ./ | .// | /[cC]/* | \
2533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2534 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2535 /usr/ucb/* ) ;;
2537 # OSF1 and SCO ODT 3.0 have their own names for install.
2538 # Don't use installbsd from OSF since it installs stuff as root
2539 # by default.
2540 for ac_prog in ginstall scoinst install; do
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2543 if test $ac_prog = install &&
2544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # AIX install. It has an incompatible calling convention.
2547 elif test $ac_prog = install &&
2548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549 # program-specific install script used by HP pwplus--don't use.
2551 else
2552 rm -rf conftest.one conftest.two conftest.dir
2553 echo one > conftest.one
2554 echo two > conftest.two
2555 mkdir conftest.dir
2556 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2557 test -s conftest.one && test -s conftest.two &&
2558 test -s conftest.dir/conftest.one &&
2559 test -s conftest.dir/conftest.two
2560 then
2561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2562 break 3
2566 done
2567 done
2569 esac
2571 done
2572 IFS=$as_save_IFS
2574 rm -rf conftest.one conftest.two conftest.dir
2577 if test "${ac_cv_path_install+set}" = set; then
2578 INSTALL=$ac_cv_path_install
2579 else
2580 # As a last resort, use the slow shell script. Don't cache a
2581 # value for INSTALL within a source directory, because that will
2582 # break other packages using the cache if that directory is
2583 # removed, or if the value is a relative name.
2584 INSTALL=$ac_install_sh
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2588 $as_echo "$INSTALL" >&6; }
2590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2591 # It thinks the first close brace ends the variable substitution.
2592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2599 $as_echo_n "checking whether ln works... " >&6; }
2600 if ${acx_cv_prog_LN+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 rm -f conftestdata_t
2604 echo >conftestdata_f
2605 if ln conftestdata_f conftestdata_t 2>/dev/null
2606 then
2607 acx_cv_prog_LN=ln
2608 else
2609 acx_cv_prog_LN=no
2611 rm -f conftestdata_f conftestdata_t
2614 if test $acx_cv_prog_LN = no; then
2615 LN="cp"
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2617 $as_echo "no, using $LN" >&6; }
2618 else
2619 LN="$acx_cv_prog_LN"
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2625 $as_echo_n "checking whether ln -s works... " >&6; }
2626 LN_S=$as_ln_s
2627 if test "$LN_S" = "ln -s"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2629 $as_echo "yes" >&6; }
2630 else
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2632 $as_echo "no, using $LN_S" >&6; }
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2636 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2637 if ${ac_cv_path_SED+:} false; then :
2638 $as_echo_n "(cached) " >&6
2639 else
2640 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2641 for ac_i in 1 2 3 4 5 6 7; do
2642 ac_script="$ac_script$as_nl$ac_script"
2643 done
2644 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2645 { ac_script=; unset ac_script;}
2646 if test -z "$SED"; then
2647 ac_path_SED_found=false
2648 # Loop through the user's path and test for each of PROGNAME-LIST
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_prog in sed gsed; do
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2657 as_fn_executable_p "$ac_path_SED" || continue
2658 # Check for GNU ac_path_SED and select it if it is found.
2659 # Check for GNU $ac_path_SED
2660 case `"$ac_path_SED" --version 2>&1` in
2661 *GNU*)
2662 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2664 ac_count=0
2665 $as_echo_n 0123456789 >"conftest.in"
2666 while :
2668 cat "conftest.in" "conftest.in" >"conftest.tmp"
2669 mv "conftest.tmp" "conftest.in"
2670 cp "conftest.in" "conftest.nl"
2671 $as_echo '' >> "conftest.nl"
2672 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2674 as_fn_arith $ac_count + 1 && ac_count=$as_val
2675 if test $ac_count -gt ${ac_path_SED_max-0}; then
2676 # Best one so far, save it but keep looking for a better one
2677 ac_cv_path_SED="$ac_path_SED"
2678 ac_path_SED_max=$ac_count
2680 # 10*(2^10) chars as input seems more than enough
2681 test $ac_count -gt 10 && break
2682 done
2683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2684 esac
2686 $ac_path_SED_found && break 3
2687 done
2688 done
2689 done
2690 IFS=$as_save_IFS
2691 if test -z "$ac_cv_path_SED"; then
2692 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2694 else
2695 ac_cv_path_SED=$SED
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2700 $as_echo "$ac_cv_path_SED" >&6; }
2701 SED="$ac_cv_path_SED"
2702 rm -f conftest.sed
2704 for ac_prog in gawk mawk nawk awk
2706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2707 set dummy $ac_prog; ac_word=$2
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if ${ac_cv_prog_AWK+:} false; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 if test -n "$AWK"; then
2714 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2723 ac_cv_prog_AWK="$ac_prog"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2727 done
2728 done
2729 IFS=$as_save_IFS
2733 AWK=$ac_cv_prog_AWK
2734 if test -n "$AWK"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2736 $as_echo "$AWK" >&6; }
2737 else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2743 test -n "$AWK" && break
2744 done
2747 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2749 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2750 # a relative path.
2751 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2752 INSTALL="${srcpwd}/install-sh -c"
2755 # Set srcdir to "." if that's what it is.
2756 # This is important for multilib support.
2757 pwd=`${PWDCMD-pwd}`
2758 if test "${pwd}" = "${srcpwd}" ; then
2759 srcdir=.
2762 topsrcdir=$srcpwd
2764 extra_host_args=
2766 ### To add a new directory to the tree, first choose whether it is a target
2767 ### or a host dependent tool. Then put it into the appropriate list
2768 ### (library or tools, host or target), doing a dependency sort.
2770 # Subdirs will be configured in the order listed in build_configdirs,
2771 # configdirs, or target_configdirs; see the serialization section below.
2773 # Dependency sorting is only needed when *configuration* must be done in
2774 # a particular order. In all cases a dependency should be specified in
2775 # the Makefile, whether or not it's implicitly specified here.
2777 # Double entries in build_configdirs, configdirs, or target_configdirs may
2778 # cause circular dependencies and break everything horribly.
2780 # these library is used by various programs built for the build
2781 # environment
2783 build_libs="build-libiberty build-libcpp"
2785 # these tools are built for the build environment
2786 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2788 # these libraries are used by various programs built for the host environment
2790 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2792 # these tools are built for the host environment
2793 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2794 # know that we are building the simulator.
2795 # binutils, gas and ld appear in that order because it makes sense to run
2796 # "make check" in that particular order.
2797 # If --enable-gold is used, "gold" may replace "ld".
2798 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"
2800 # these libraries are built for the target environment, and are built after
2801 # the host libraries and the host tools (which may be a cross compiler)
2802 # Note that libiberty is not a target library.
2803 target_libraries="target-libgcc \
2804 target-libbacktrace \
2805 target-libgloss \
2806 target-newlib \
2807 target-libgomp \
2808 target-liboffloadmic \
2809 target-libhsail-rt \
2810 target-libatomic \
2811 target-libitm \
2812 target-libstdc++-v3 \
2813 target-libsanitizer \
2814 target-libvtv \
2815 target-libssp \
2816 target-libquadmath \
2817 target-libgfortran \
2818 target-libffi \
2819 target-libobjc \
2820 target-libada \
2821 target-libgo \
2822 target-libphobos \
2823 target-zlib"
2825 # these tools are built using the target libraries, and are intended to
2826 # run only in the target environment
2828 # note: any program that *uses* libraries that are in the "target_libraries"
2829 # list belongs in this list.
2831 target_tools="target-rda"
2833 ################################################################################
2835 ## All tools belong in one of the four categories, and are assigned above
2836 ## We assign ${configdirs} this way to remove all embedded newlines. This
2837 ## is important because configure will choke if they ever get through.
2838 ## ${configdirs} is directories we build using the host tools.
2839 ## ${target_configdirs} is directories we build using the target tools.
2840 configdirs=`echo ${host_libs} ${host_tools}`
2841 target_configdirs=`echo ${target_libraries} ${target_tools}`
2842 build_configdirs=`echo ${build_libs} ${build_tools}`
2846 ################################################################################
2848 srcname="gnu development package"
2850 # This gets set non-empty for some net releases of packages.
2851 appdirs=""
2853 # Define is_cross_compiler to save on calls to 'test'.
2854 is_cross_compiler=
2855 if test x"${host}" = x"${target}" ; then
2856 is_cross_compiler=no
2857 else
2858 is_cross_compiler=yes
2861 # Find the build and target subdir names.
2863 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2864 # have matching libraries, they should use host libraries: Makefile.tpl
2865 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2866 # However, they still use the build modules, because the corresponding
2867 # host modules (e.g. bison) are only built for the host when bootstrap
2868 # finishes. So:
2869 # - build_subdir is where we find build modules, and never changes.
2870 # - build_libsubdir is where we find build libraries, and can be overridden.
2872 # Prefix 'build-' so this never conflicts with target_subdir.
2873 build_subdir="build-${build_noncanonical}"
2875 # Check whether --with-build-libsubdir was given.
2876 if test "${with_build_libsubdir+set}" = set; then :
2877 withval=$with_build_libsubdir; build_libsubdir="$withval"
2878 else
2879 build_libsubdir="$build_subdir"
2882 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2883 if ( test $srcdir = . && test -d gcc ) \
2884 || test -d $srcdir/../host-${host_noncanonical}; then
2885 host_subdir="host-${host_noncanonical}"
2886 else
2887 host_subdir=.
2889 # No prefix.
2890 target_subdir=${target_noncanonical}
2892 # Be sure to cover against remnants of an in-tree build.
2893 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2894 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2895 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2898 # Skipdirs are removed silently.
2899 skipdirs=
2900 # Noconfigdirs are removed loudly.
2901 noconfigdirs=""
2903 use_gnu_ld=
2904 # Make sure we don't let GNU ld be added if we didn't want it.
2905 if test x$with_gnu_ld = xno ; then
2906 use_gnu_ld=no
2907 noconfigdirs="$noconfigdirs ld gold"
2910 use_gnu_as=
2911 # Make sure we don't let GNU as be added if we didn't want it.
2912 if test x$with_gnu_as = xno ; then
2913 use_gnu_as=no
2914 noconfigdirs="$noconfigdirs gas"
2917 use_included_zlib=
2919 # Check whether --with-system-zlib was given.
2920 if test "${with_system_zlib+set}" = set; then :
2921 withval=$with_system_zlib;
2924 # Make sure we don't let ZLIB be added if we didn't want it.
2925 if test x$with_system_zlib = xyes ; then
2926 use_included_zlib=no
2927 noconfigdirs="$noconfigdirs zlib"
2930 # some tools are so dependent upon X11 that if we're not building with X,
2931 # it's not even worth trying to configure, much less build, that tool.
2933 case ${with_x} in
2934 yes | "") ;; # the default value for this tree is that X11 is available
2936 skipdirs="${skipdirs} tk itcl libgui"
2937 # We won't be able to build gdbtk without X.
2938 enable_gdbtk=no
2940 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2941 esac
2943 # Some are only suitable for cross toolchains.
2944 # Remove these if host=target.
2945 cross_only="target-libgloss target-newlib target-opcodes"
2947 case $is_cross_compiler in
2948 no) skipdirs="${skipdirs} ${cross_only}" ;;
2949 esac
2951 # If both --with-headers and --with-libs are specified, default to
2952 # --without-newlib.
2953 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2954 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2955 if test x"${with_newlib}" = x ; then
2956 with_newlib=no
2960 # Recognize --with-newlib/--without-newlib.
2961 case ${with_newlib} in
2962 no) skipdirs="${skipdirs} target-newlib" ;;
2963 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2964 esac
2966 # Check whether --enable-as-accelerator-for was given.
2967 if test "${enable_as_accelerator_for+set}" = set; then :
2968 enableval=$enable_as_accelerator_for;
2972 # Check whether --enable-offload-targets was given.
2973 if test "${enable_offload_targets+set}" = set; then :
2974 enableval=$enable_offload_targets;
2975 if test x"$enable_offload_targets" = x; then
2976 as_fn_error $? "no offload targets specified" "$LINENO" 5
2979 else
2980 enable_offload_targets=
2984 # Handle --enable-gold, --enable-ld.
2985 # --disable-gold [--enable-ld]
2986 # Build only ld. Default option.
2987 # --enable-gold [--enable-ld]
2988 # Build both gold and ld. Install gold as "ld.gold", install ld
2989 # as "ld.bfd" and "ld".
2990 # --enable-gold=default [--enable-ld]
2991 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2992 # install ld as "ld.bfd".
2993 # --enable-gold[=default] --disable-ld
2994 # Build only gold, which is then installed as both "ld.gold" and "ld".
2995 # --enable-gold --enable-ld=default
2996 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2997 # and ld.bfd).
2998 # In other words, ld is default
2999 # --enable-gold=default --enable-ld=default
3000 # Error.
3002 default_ld=
3003 # Check whether --enable-gold was given.
3004 if test "${enable_gold+set}" = set; then :
3005 enableval=$enable_gold; ENABLE_GOLD=$enableval
3006 else
3007 ENABLE_GOLD=no
3010 case "${ENABLE_GOLD}" in
3011 yes|default)
3012 # Check for ELF target.
3013 is_elf=no
3014 case "${target}" in
3015 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3016 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3017 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3018 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3019 case "${target}" in
3020 *-*-linux*aout* | *-*-linux*oldld*)
3023 is_elf=yes
3025 esac
3026 esac
3028 if test "$is_elf" = "yes"; then
3029 # Check for target supported by gold.
3030 case "${target}" in
3031 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3032 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3033 configdirs="$configdirs gold"
3034 if test x${ENABLE_GOLD} = xdefault; then
3035 default_ld=gold
3037 ENABLE_GOLD=yes
3039 esac
3045 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3047 esac
3049 # Check whether --enable-ld was given.
3050 if test "${enable_ld+set}" = set; then :
3051 enableval=$enable_ld; ENABLE_LD=$enableval
3052 else
3053 ENABLE_LD=yes
3057 case "${ENABLE_LD}" in
3058 default)
3059 if test x${default_ld} != x; then
3060 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3063 yes)
3066 if test x${ENABLE_GOLD} != xyes; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3068 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3070 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3073 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3075 esac
3077 # PR gas/19109
3078 # Decide the default method for compressing debug sections.
3079 # Provide a configure time option to override our default.
3080 # Check whether --enable-compressed_debug_sections was given.
3081 if test "${enable_compressed_debug_sections+set}" = set; then :
3082 enableval=$enable_compressed_debug_sections;
3083 if test x"$enable_compressed_debug_sections" = xyes; then
3084 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3087 else
3088 enable_compressed_debug_sections=
3092 # Configure extra directories which are host specific
3094 case "${host}" in
3095 *-cygwin*)
3096 configdirs="$configdirs libtermcap" ;;
3097 esac
3099 # A target can indicate whether a language isn't supported for some reason.
3100 # Only spaces may be used in this macro; not newlines or tabs.
3101 unsupported_languages=
3103 # Remove more programs from consideration, based on the host or
3104 # target this usually means that a port of the program doesn't
3105 # exist yet.
3107 case "${host}" in
3108 i[3456789]86-*-msdosdjgpp*)
3109 noconfigdirs="$noconfigdirs tcl tk itcl"
3111 esac
3114 # Check whether --enable-libquadmath was given.
3115 if test "${enable_libquadmath+set}" = set; then :
3116 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3117 else
3118 ENABLE_LIBQUADMATH=yes
3121 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3122 noconfigdirs="$noconfigdirs target-libquadmath"
3126 # Check whether --enable-libquadmath-support was given.
3127 if test "${enable_libquadmath_support+set}" = set; then :
3128 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3129 else
3130 ENABLE_LIBQUADMATH_SUPPORT=yes
3133 enable_libquadmath_support=
3134 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3135 enable_libquadmath_support=no
3139 # Check whether --enable-libada was given.
3140 if test "${enable_libada+set}" = set; then :
3141 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3142 else
3143 ENABLE_LIBADA=yes
3146 if test "${ENABLE_LIBADA}" != "yes" ; then
3147 noconfigdirs="$noconfigdirs gnattools"
3150 # Check whether --enable-libssp was given.
3151 if test "${enable_libssp+set}" = set; then :
3152 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3153 else
3154 ENABLE_LIBSSP=yes
3158 # Check whether --enable-libstdcxx was given.
3159 if test "${enable_libstdcxx+set}" = set; then :
3160 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3161 else
3162 ENABLE_LIBSTDCXX=default
3165 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3166 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3169 # If this is accelerator compiler and its target is intelmic we enable
3170 # target liboffloadmic by default. If this is compiler with offloading
3171 # for intelmic we enable host liboffloadmic by default. Otherwise
3172 # liboffloadmic is disabled by default.
3173 # Check whether --enable-liboffloadmic was given.
3174 if test "${enable_liboffloadmic+set}" = set; then :
3175 enableval=$enable_liboffloadmic; case "$enableval" in
3176 no | host | target)
3177 enable_liboffloadmic=$enableval ;;
3179 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3180 esac
3181 else
3182 if test x"$enable_as_accelerator_for" != x; then
3183 case "${target}" in
3184 *-intelmic-* | *-intelmicemul-*)
3185 enable_liboffloadmic=target
3186 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3189 enable_liboffloadmic=no
3191 esac
3192 else
3193 case "${enable_offload_targets}" in
3194 *-intelmic-* | *-intelmicemul-*)
3195 enable_liboffloadmic=host
3196 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3199 enable_liboffloadmic=no
3201 esac
3207 # Enable libgomp by default on hosted POSIX systems, and a few others.
3208 if test x$enable_libgomp = x ; then
3209 case "${target}" in
3210 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3212 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3214 *-*-solaris2* | *-*-hpux11*)
3216 *-*-darwin* | *-*-aix*)
3218 nvptx*-*-* | amdgcn*-*-*)
3221 noconfigdirs="$noconfigdirs target-libgomp"
3223 esac
3226 # Disable libatomic on unsupported systems.
3227 if test -d ${srcdir}/libatomic; then
3228 if test x$enable_libatomic = x; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3230 $as_echo_n "checking for libatomic support... " >&6; }
3231 if (srcdir=${srcdir}/libatomic; \
3232 . ${srcdir}/configure.tgt; \
3233 test -n "$UNSUPPORTED")
3234 then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 noconfigdirs="$noconfigdirs target-libatomic"
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3245 # Disable liboffloadmic on unsupported systems.
3246 if test -d ${srcdir}/liboffloadmic; then
3247 if test x$enable_liboffloadmic != xno; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3249 $as_echo_n "checking for liboffloadmic support... " >&6; }
3250 if (srcdir=${srcdir}/liboffloadmic; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-liboffloadmic"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3264 # Disable libitm on unsupported systems.
3265 if test -d ${srcdir}/libitm; then
3266 if test x$enable_libitm = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3268 $as_echo_n "checking for libitm support... " >&6; }
3269 if (srcdir=${srcdir}/libitm; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 noconfigdirs="$noconfigdirs target-libitm"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278 $as_echo "yes" >&6; }
3283 # Disable libsanitizer on unsupported systems.
3284 if test -d ${srcdir}/libsanitizer; then
3285 if test x$enable_libsanitizer = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3287 $as_echo_n "checking for libsanitizer support... " >&6; }
3288 if (srcdir=${srcdir}/libsanitizer; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libsanitizer"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3302 # Disable libvtv on unsupported systems.
3303 if test -d ${srcdir}/libvtv; then
3304 if test x$enable_libvtv = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3306 $as_echo_n "checking for libvtv support... " >&6; }
3307 if (srcdir=${srcdir}/libvtv; \
3308 . ${srcdir}/configure.tgt; \
3309 test "$VTV_SUPPORTED" != "yes")
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libvtv"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3322 # Disable libhsail-rt on unsupported systems.
3323 if test -d ${srcdir}/libhsail-rt; then
3324 if test x$enable_libhsail_rt = x; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3326 $as_echo_n "checking for libhsail-rt support... " >&6; }
3327 if (srcdir=${srcdir}/libhsail-rt; \
3328 . ${srcdir}/configure.tgt; \
3329 test -n "$UNSUPPORTED")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 unsupported_languages="$unsupported_languages brig"
3334 # This implicitly disables also target-libhsail-rt as it won't
3335 # get added to the build without BRIG FE.
3336 else
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338 $as_echo "yes" >&6; }
3344 # Disable libquadmath for some systems.
3345 case "${target}" in
3346 avr-*-*)
3347 noconfigdirs="$noconfigdirs target-libquadmath"
3349 # libquadmath is unused on AIX and libquadmath build process use of
3350 # LD_LIBRARY_PATH can break AIX bootstrap.
3351 powerpc-*-aix* | rs6000-*-aix*)
3352 noconfigdirs="$noconfigdirs target-libquadmath"
3354 esac
3356 # Disable libssp for some systems.
3357 case "${target}" in
3358 avr-*-*)
3359 # No hosted I/O support.
3360 noconfigdirs="$noconfigdirs target-libssp"
3362 bpf-*-*)
3363 noconfigdirs="$noconfigdirs target-libssp"
3365 powerpc-*-aix* | rs6000-*-aix*)
3366 noconfigdirs="$noconfigdirs target-libssp"
3368 pru-*-*)
3369 # No hosted I/O support.
3370 noconfigdirs="$noconfigdirs target-libssp"
3372 rl78-*-*)
3373 # libssp uses a misaligned load to trigger a fault, but the RL78
3374 # doesn't fault for those - instead, it gives a build-time error
3375 # for explicit misaligned loads.
3376 noconfigdirs="$noconfigdirs target-libssp"
3378 visium-*-*)
3379 # No hosted I/O support.
3380 noconfigdirs="$noconfigdirs target-libssp"
3382 esac
3384 # Disable libstdc++-v3 for some systems.
3385 # Allow user to override this if they pass --enable-libstdc++-v3
3386 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3387 case "${target}" in
3388 *-*-vxworks*)
3389 # VxWorks uses the Dinkumware C++ library.
3390 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3392 amdgcn*-*-*)
3393 # Not ported/fails to build when using newlib.
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3396 arm*-wince-pe*)
3397 # the C++ libraries don't build on top of CE's C libraries
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3400 avr-*-*)
3401 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403 bpf-*-*)
3404 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406 ft32-*-*)
3407 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3409 esac
3412 # Disable C++ on systems where it is known to not work.
3413 # For testing, you can override this with --enable-languages=c++.
3414 case ,${enable_languages}, in
3415 *,c++,*)
3418 case "${target}" in
3419 bpf-*-*)
3420 unsupported_languages="$unsupported_languages c++"
3422 esac
3424 esac
3426 # Disable Objc on systems where it is known to not work.
3427 # For testing, you can override this with --enable-languages=objc.
3428 case ,${enable_languages}, in
3429 *,objc,*)
3432 case "${target}" in
3433 bpf-*-*)
3434 unsupported_languages="$unsupported_languages objc"
3436 esac
3438 esac
3440 # Disable D on systems where it is known to not work.
3441 # For testing, you can override this with --enable-languages=d.
3442 case ,${enable_languages}, in
3443 *,d,*)
3446 case "${target}" in
3447 *-*-darwin*)
3448 unsupported_languages="$unsupported_languages d"
3450 bpf-*-*)
3451 unsupported_languages="$unsupported_languages d"
3453 esac
3455 esac
3457 # Disable libphobos on unsupported systems.
3458 # For testing, you can override this with --enable-libphobos.
3459 if test -d ${srcdir}/libphobos; then
3460 if test x$enable_libphobos = x; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3462 $as_echo_n "checking for libphobos support... " >&6; }
3463 if (srcdir=${srcdir}/libphobos; \
3464 . ${srcdir}/configure.tgt; \
3465 test "$LIBPHOBOS_SUPPORTED" != "yes")
3466 then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 noconfigdirs="$noconfigdirs target-libphobos"
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3472 $as_echo "yes" >&6; }
3477 # Disable Fortran for some systems.
3478 case "${target}" in
3479 mmix-*-*)
3480 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3481 unsupported_languages="$unsupported_languages fortran"
3483 bpf-*-*)
3484 unsupported_languages="$unsupported_languages fortran"
3486 esac
3488 # Disable libffi for some systems.
3489 case "${target}" in
3490 powerpc-*-darwin*)
3492 i[3456789]86-*-darwin*)
3494 x86_64-*-darwin[912]*)
3496 *-*-darwin*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3499 *-*-netware*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3502 *-*-phoenix*)
3503 noconfigdirs="$noconfigdirs target-libffi"
3505 *-*-rtems*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3508 *-*-tpf*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3511 *-*-uclinux*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3514 *-*-vxworks*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3517 aarch64*-*-freebsd*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3520 alpha*-*-*vms*)
3521 noconfigdirs="$noconfigdirs target-libffi"
3523 arm*-*-freebsd*)
3524 noconfigdirs="$noconfigdirs target-libffi"
3526 arm-wince-pe)
3527 noconfigdirs="$noconfigdirs target-libffi"
3529 arm*-*-symbianelf*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3532 bpf-*-*)
3533 noconfigdirs="$noconfigdirs target-libffi"
3535 cris-*-* | crisv32-*-*)
3536 case "${target}" in
3537 *-*-linux*)
3539 *) # See PR46792 regarding target-libffi.
3540 noconfigdirs="$noconfigdirs target-libffi";;
3541 esac
3543 hppa*64*-*-hpux*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3546 hppa*-hp-hpux11*)
3548 hppa*-*-hpux*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3551 ia64*-*-*vms*)
3552 noconfigdirs="$noconfigdirs target-libffi"
3554 i[3456789]86-w64-mingw*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3557 i[3456789]86-*-mingw*)
3558 noconfigdirs="$noconfigdirs target-libffi"
3560 x86_64-*-mingw*)
3561 noconfigdirs="$noconfigdirs target-libffi"
3563 mmix-*-*)
3564 noconfigdirs="$noconfigdirs target-libffi"
3566 powerpc-*-aix*)
3568 rs6000-*-aix*)
3570 ft32-*-*)
3571 noconfigdirs="$noconfigdirs target-libffi"
3573 *-*-lynxos*)
3574 noconfigdirs="$noconfigdirs target-libffi"
3576 esac
3578 # Disable the go frontend on systems where it is known to not work. Please keep
3579 # this in sync with contrib/config-list.mk.
3580 case "${target}" in
3581 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3582 unsupported_languages="$unsupported_languages go"
3584 esac
3586 # Only allow gdbserver on some systems.
3587 if test -d ${srcdir}/gdbserver; then
3588 if test x$enable_gdbserver = x; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3590 $as_echo_n "checking for gdbserver support... " >&6; }
3591 if (srcdir=${srcdir}/gdbserver; \
3592 . ${srcdir}/configure.srv; \
3593 test -n "$UNSUPPORTED")
3594 then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 noconfigdirs="$noconfigdirs gdbserver"
3598 else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600 $as_echo "yes" >&6; }
3605 # Disable libgo for some systems where it is known to not work.
3606 # For testing, you can easily override this with --enable-libgo.
3607 if test x$enable_libgo = x; then
3608 case "${target}" in
3609 *-*-darwin*)
3610 # PR 46986
3611 noconfigdirs="$noconfigdirs target-libgo"
3613 *-*-cygwin* | *-*-mingw*)
3614 noconfigdirs="$noconfigdirs target-libgo"
3616 bpf-*-*)
3617 noconfigdirs="$noconfigdirs target-libgo"
3619 esac
3622 # Default libgloss CPU subdirectory.
3623 libgloss_dir="$target_cpu"
3625 case "${target}" in
3626 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3627 libgloss_dir=wince
3629 aarch64*-*-* )
3630 libgloss_dir=aarch64
3632 arm*-*-*)
3633 libgloss_dir=arm
3635 cris-*-* | crisv32-*-*)
3636 libgloss_dir=cris
3638 hppa*-*-*)
3639 libgloss_dir=pa
3641 i[3456789]86-*-*)
3642 libgloss_dir=i386
3644 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3645 libgloss_dir=m68hc11
3647 m68*-*-* | fido-*-*)
3648 libgloss_dir=m68k
3650 mips*-*-*)
3651 libgloss_dir=mips
3653 powerpc*-*-*)
3654 libgloss_dir=rs6000
3656 pru-*-*)
3657 libgloss_dir=pru
3659 sparc*-*-*)
3660 libgloss_dir=sparc
3662 esac
3664 # Disable newlib and libgloss for various target OSes.
3665 case "${target}" in
3666 alpha*-dec-osf*)
3667 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669 i[3456789]86-*-linux*)
3670 # This section makes it possible to build newlib natively on linux.
3671 # If we are using a cross compiler then don't configure newlib.
3672 if test x${is_cross_compiler} != xno ; then
3673 noconfigdirs="$noconfigdirs target-newlib"
3675 noconfigdirs="$noconfigdirs target-libgloss"
3676 # If we are not using a cross compiler, do configure newlib.
3677 # Note however, that newlib will only be configured in this situation
3678 # if the --with-newlib option has been given, because otherwise
3679 # 'target-newlib' will appear in skipdirs.
3681 i[3456789]86-*-rdos*)
3682 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3685 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 sparc-*-sunos4*)
3688 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690 bpf-*-*)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 *-*-aix*)
3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696 *-*-beos*)
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699 *-*-chorusos)
3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 *-*-dragonfly*)
3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705 *-*-freebsd*)
3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711 *-*-lynxos*)
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714 *-*-mingw*)
3715 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 *-*-netbsd*)
3718 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 *-*-netware*)
3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 *-*-tpf*)
3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726 *-*-uclinux*)
3727 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729 *-*-vxworks*)
3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732 esac
3734 case "${target}" in
3735 *-*-chorusos)
3737 aarch64-*-darwin*)
3738 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3739 noconfigdirs="$noconfigdirs sim target-rda"
3741 amdgcn*-*-*)
3743 arm-*-darwin*)
3744 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3745 noconfigdirs="$noconfigdirs sim target-rda"
3747 powerpc-*-darwin*)
3748 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3749 noconfigdirs="$noconfigdirs sim target-rda"
3751 i[3456789]86-*-darwin*)
3752 noconfigdirs="$noconfigdirs ld gprof"
3753 noconfigdirs="$noconfigdirs sim target-rda"
3755 x86_64-*-darwin[912]*)
3756 noconfigdirs="$noconfigdirs ld gas gprof"
3757 noconfigdirs="$noconfigdirs sim target-rda"
3759 *-*-darwin*)
3760 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3761 noconfigdirs="$noconfigdirs sim target-rda"
3763 *-*-dragonfly*)
3765 *-*-freebsd*)
3766 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3767 && ! test -d ${srcdir}/gmp \
3768 && test -f /usr/local/include/gmp.h; then
3769 with_gmp=/usr/local
3772 *-*-kaos*)
3773 # Remove unsupported stuff on all kaOS configurations.
3774 noconfigdirs="$noconfigdirs target-libgloss"
3776 *-*-netbsd*)
3778 *-*-netware*)
3780 *-*-phoenix*)
3781 noconfigdirs="$noconfigdirs target-libgloss"
3783 *-*-rtems*)
3784 noconfigdirs="$noconfigdirs target-libgloss"
3786 # The tpf target doesn't support gdb yet.
3787 *-*-tpf*)
3788 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3790 *-*-uclinux*)
3791 noconfigdirs="$noconfigdirs target-rda"
3793 *-*-vxworks*)
3795 alpha*-dec-osf*)
3796 # ld works, but does not support shared libraries.
3797 # gas doesn't generate exception information.
3798 noconfigdirs="$noconfigdirs gas ld"
3800 alpha*-*-*vms*)
3801 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3803 alpha*-*-*)
3804 # newlib is not 64 bit ready
3805 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3807 bpf-*-*)
3808 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3810 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3811 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3813 arc*-*-*)
3814 noconfigdirs="$noconfigdirs sim"
3816 arm-*-pe*)
3817 noconfigdirs="$noconfigdirs target-libgloss"
3819 arm-*-riscix*)
3820 noconfigdirs="$noconfigdirs ld target-libgloss"
3822 avr-*-*)
3823 if test x${with_avrlibc} != xno; then
3824 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3827 c4x-*-* | tic4x-*-*)
3828 noconfigdirs="$noconfigdirs target-libgloss"
3830 tic54x-*-*)
3831 noconfigdirs="$noconfigdirs target-libgloss gdb"
3833 d10v-*-*)
3834 noconfigdirs="$noconfigdirs target-libgloss"
3836 d30v-*-*)
3837 noconfigdirs="$noconfigdirs gdb"
3839 fr30-*-elf*)
3840 noconfigdirs="$noconfigdirs gdb"
3842 ft32-*-*)
3843 noconfigdirs="$noconfigdirs target-rda gprof"
3845 moxie-*-*)
3846 noconfigdirs="$noconfigdirs"
3848 h8300*-*-*)
3849 noconfigdirs="$noconfigdirs target-libgloss"
3851 h8500-*-*)
3852 noconfigdirs="$noconfigdirs target-libgloss"
3854 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3856 hppa*64*-*-hpux*)
3857 noconfigdirs="$noconfigdirs gdb"
3859 hppa*-*-hpux11*)
3860 noconfigdirs="$noconfigdirs gdb ld"
3862 hppa*64*-*-linux*)
3864 hppa*-*-linux*)
3866 hppa*-*-*elf* | \
3867 hppa*-*-lites* | \
3868 hppa*-*-openbsd* | \
3869 hppa*64*-*-*)
3871 hppa*-*-pro*)
3873 hppa*-*-*)
3874 noconfigdirs="$noconfigdirs ld"
3876 i960-*-*)
3877 noconfigdirs="$noconfigdirs gdb"
3879 ia64*-*-elf*)
3880 # No gdb support yet.
3881 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3883 ia64*-**-hpux*)
3884 # No ld support yet.
3885 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3887 ia64*-*-*vms*)
3888 # No ld support yet.
3889 noconfigdirs="$noconfigdirs libgui itcl ld"
3891 i[3456789]86-w64-mingw*)
3893 i[3456789]86-*-mingw*)
3894 target_configdirs="$target_configdirs target-winsup"
3896 *-*-cygwin*)
3897 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3898 noconfigdirs="$noconfigdirs target-libgloss"
3899 # always build newlib if winsup directory is present.
3900 if test -d "$srcdir/winsup/cygwin"; then
3901 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3902 elif test -d "$srcdir/newlib"; then
3903 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3906 i[3456789]86-*-pe)
3907 noconfigdirs="$noconfigdirs target-libgloss"
3909 i[3456789]86-*-sco3.2v5*)
3910 # The linker does not yet know about weak symbols in COFF,
3911 # and is not configured to handle mixed ELF and COFF.
3912 noconfigdirs="$noconfigdirs ld target-libgloss"
3914 i[3456789]86-*-sco*)
3915 noconfigdirs="$noconfigdirs gprof target-libgloss"
3917 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3918 noconfigdirs="$noconfigdirs target-libgloss"
3920 i[3456789]86-*-sysv4*)
3921 noconfigdirs="$noconfigdirs target-libgloss"
3923 i[3456789]86-*-beos*)
3924 noconfigdirs="$noconfigdirs gdb"
3926 i[3456789]86-*-rdos*)
3927 noconfigdirs="$noconfigdirs gdb"
3929 mmix-*-*)
3930 noconfigdirs="$noconfigdirs gdb"
3932 mt-*-*)
3933 noconfigdirs="$noconfigdirs sim"
3935 nfp-*-*)
3936 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3937 noconfigdirs="$noconfigdirs $target_libraries"
3939 pdp11-*-*)
3940 noconfigdirs="$noconfigdirs gdb gprof"
3942 powerpc-*-aix*)
3943 # copied from rs6000-*-* entry
3944 noconfigdirs="$noconfigdirs gprof"
3946 powerpc*-*-winnt* | powerpc*-*-pe*)
3947 target_configdirs="$target_configdirs target-winsup"
3948 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3949 # always build newlib.
3950 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3952 # This is temporary until we can link against shared libraries
3953 powerpcle-*-solaris*)
3954 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3956 powerpc-*-beos*)
3957 noconfigdirs="$noconfigdirs gdb"
3959 rs6000-*-lynxos*)
3960 noconfigdirs="$noconfigdirs gprof"
3962 rs6000-*-aix*)
3963 noconfigdirs="$noconfigdirs gprof"
3965 rs6000-*-*)
3966 noconfigdirs="$noconfigdirs gprof"
3968 m68k-apollo-*)
3969 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3971 microblaze*)
3972 noconfigdirs="$noconfigdirs gprof"
3974 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3975 if test x$with_newlib = xyes; then
3976 noconfigdirs="$noconfigdirs gprof"
3979 mips*-*-irix5*)
3980 noconfigdirs="$noconfigdirs gprof target-libgloss"
3982 mips*-*-irix6*)
3983 noconfigdirs="$noconfigdirs gprof target-libgloss"
3985 mips*-*-bsd*)
3986 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3988 mips*-*-linux*)
3990 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3991 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3992 noconfigdirs="$noconfigdirs ld gas gprof"
3994 mips*-*-*)
3995 noconfigdirs="$noconfigdirs gprof"
3997 nvptx*-*-*)
3998 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4000 sh-*-*)
4001 case "${target}" in
4002 sh*-*-elf)
4005 noconfigdirs="$noconfigdirs target-libgloss" ;;
4006 esac
4008 sparc-*-sunos4*)
4009 if test x${is_cross_compiler} = xno ; then
4010 use_gnu_ld=no
4013 tic6x-*-*)
4014 noconfigdirs="$noconfigdirs sim"
4016 tilepro*-*-* | tilegx*-*-*)
4017 noconfigdirs="$noconfigdirs sim"
4019 v810-*-*)
4020 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4022 vax-*-*)
4023 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4025 wasm32-*-*)
4026 noconfigdirs="$noconfigdirs ld"
4028 esac
4030 # If we aren't building newlib, then don't build libgloss, since libgloss
4031 # depends upon some newlib header files.
4032 case "${noconfigdirs}" in
4033 *target-libgloss*) ;;
4034 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4035 esac
4037 # Work in distributions that contain no compiler tools, like Autoconf.
4038 host_makefile_frag=/dev/null
4039 if test -d ${srcdir}/config ; then
4040 case "${host}" in
4041 i[3456789]86-*-msdosdjgpp*)
4042 host_makefile_frag="config/mh-djgpp"
4044 *-cygwin*)
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4047 $as_echo_n "checking to see if cat works as expected... " >&6; }
4048 echo a >cygwin-cat-check
4049 if test `cat cygwin-cat-check` = a ; then
4050 rm cygwin-cat-check
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4052 $as_echo "yes" >&6; }
4053 else
4054 rm cygwin-cat-check
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4057 as_fn_error $? "The cat command does not ignore carriage return characters.
4058 Please either mount the build directory in binary mode or run the following
4059 commands before running any configure script:
4060 set -o igncr
4061 export SHELLOPTS
4062 " "$LINENO" 5
4065 host_makefile_frag="config/mh-cygwin"
4067 *-mingw*)
4068 host_makefile_frag="config/mh-mingw"
4070 alpha*-linux*)
4071 host_makefile_frag="config/mh-alpha-linux"
4073 hppa*-hp-hpux10*)
4074 host_makefile_frag="config/mh-pa-hpux10"
4076 hppa*-hp-hpux*)
4077 host_makefile_frag="config/mh-pa"
4079 hppa*-*)
4080 host_makefile_frag="config/mh-pa"
4082 *-*-darwin*)
4083 host_makefile_frag="config/mh-darwin"
4085 powerpc-*-aix*)
4086 host_makefile_frag="config/mh-ppc-aix"
4088 rs6000-*-aix*)
4089 host_makefile_frag="config/mh-ppc-aix"
4091 esac
4094 if test "${build}" != "${host}" ; then
4095 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4096 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4097 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4098 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4099 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4100 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4101 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4102 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4103 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4104 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4105 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4106 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4107 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4108 else
4109 AR_FOR_BUILD="\$(AR)"
4110 AS_FOR_BUILD="\$(AS)"
4111 CC_FOR_BUILD="\$(CC)"
4112 CXX_FOR_BUILD="\$(CXX)"
4113 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4114 GOC_FOR_BUILD="\$(GOC)"
4115 GDC_FOR_BUILD="\$(GDC)"
4116 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4117 LD_FOR_BUILD="\$(LD)"
4118 NM_FOR_BUILD="\$(NM)"
4119 RANLIB_FOR_BUILD="\$(RANLIB)"
4120 WINDRES_FOR_BUILD="\$(WINDRES)"
4121 WINDMC_FOR_BUILD="\$(WINDMC)"
4124 ac_ext=c
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129 if test -n "$ac_tool_prefix"; then
4130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_prog_CC+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4151 done
4152 done
4153 IFS=$as_save_IFS
4157 CC=$ac_cv_prog_CC
4158 if test -n "$CC"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4160 $as_echo "$CC" >&6; }
4161 else
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4168 if test -z "$ac_cv_prog_CC"; then
4169 ac_ct_CC=$CC
4170 # Extract the first word of "gcc", so it can be a program name with args.
4171 set dummy gcc; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if test -n "$ac_ct_CC"; then
4178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_ac_ct_CC="gcc"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4191 done
4192 done
4193 IFS=$as_save_IFS
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4200 $as_echo "$ac_ct_CC" >&6; }
4201 else
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4206 if test "x$ac_ct_CC" = x; then
4207 CC=""
4208 else
4209 case $cross_compiling:$ac_tool_warned in
4210 yes:)
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213 ac_tool_warned=yes ;;
4214 esac
4215 CC=$ac_ct_CC
4217 else
4218 CC="$ac_cv_prog_CC"
4221 if test -z "$CC"; then
4222 if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4224 set dummy ${ac_tool_prefix}cc; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if ${ac_cv_prog_CC+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -n "$CC"; then
4231 ac_cv_prog_CC="$CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 ac_cv_prog_CC="${ac_tool_prefix}cc"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4244 done
4245 done
4246 IFS=$as_save_IFS
4250 CC=$ac_cv_prog_CC
4251 if test -n "$CC"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4253 $as_echo "$CC" >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4262 if test -z "$CC"; then
4263 # Extract the first word of "cc", so it can be a program name with args.
4264 set dummy cc; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_CC+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272 else
4273 ac_prog_rejected=no
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4282 ac_prog_rejected=yes
4283 continue
4285 ac_cv_prog_CC="cc"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4289 done
4290 done
4291 IFS=$as_save_IFS
4293 if test $ac_prog_rejected = yes; then
4294 # We found a bogon in the path, so make sure we never use it.
4295 set dummy $ac_cv_prog_CC
4296 shift
4297 if test $# != 0; then
4298 # We chose a different compiler from the bogus one.
4299 # However, it has the same basename, so the bogon will be chosen
4300 # first if we set CC to just the basename; use the full file name.
4301 shift
4302 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4307 CC=$ac_cv_prog_CC
4308 if test -n "$CC"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4310 $as_echo "$CC" >&6; }
4311 else
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4318 if test -z "$CC"; then
4319 if test -n "$ac_tool_prefix"; then
4320 for ac_prog in cl.exe
4322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_prog_CC+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 if test -n "$CC"; then
4330 ac_cv_prog_CC="$CC" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4339 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4343 done
4344 done
4345 IFS=$as_save_IFS
4349 CC=$ac_cv_prog_CC
4350 if test -n "$CC"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4352 $as_echo "$CC" >&6; }
4353 else
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4359 test -n "$CC" && break
4360 done
4362 if test -z "$CC"; then
4363 ac_ct_CC=$CC
4364 for ac_prog in cl.exe
4366 # Extract the first word of "$ac_prog", so it can be a program name with args.
4367 set dummy $ac_prog; ac_word=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if test -n "$ac_ct_CC"; then
4374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4383 ac_cv_prog_ac_ct_CC="$ac_prog"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4387 done
4388 done
4389 IFS=$as_save_IFS
4393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4394 if test -n "$ac_ct_CC"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4396 $as_echo "$ac_ct_CC" >&6; }
4397 else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4403 test -n "$ac_ct_CC" && break
4404 done
4406 if test "x$ac_ct_CC" = x; then
4407 CC=""
4408 else
4409 case $cross_compiling:$ac_tool_warned in
4410 yes:)
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4413 ac_tool_warned=yes ;;
4414 esac
4415 CC=$ac_ct_CC
4422 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4424 as_fn_error $? "no acceptable C compiler found in \$PATH
4425 See \`config.log' for more details" "$LINENO" 5; }
4427 # Provide some information about the compiler.
4428 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4429 set X $ac_compile
4430 ac_compiler=$2
4431 for ac_option in --version -v -V -qversion; do
4432 { { ac_try="$ac_compiler $ac_option >&5"
4433 case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436 esac
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 $as_echo "$ac_try_echo"; } >&5
4439 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4440 ac_status=$?
4441 if test -s conftest.err; then
4442 sed '10a\
4443 ... rest of stderr output deleted ...
4444 10q' conftest.err >conftest.er1
4445 cat conftest.er1 >&5
4447 rm -f conftest.er1 conftest.err
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }
4450 done
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4456 main ()
4460 return 0;
4462 _ACEOF
4463 ac_clean_files_save=$ac_clean_files
4464 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4465 # Try to create an executable without -o first, disregard a.out.
4466 # It will help us diagnose broken compilers, and finding out an intuition
4467 # of exeext.
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4469 $as_echo_n "checking whether the C compiler works... " >&6; }
4470 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4472 # The possible output files:
4473 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4475 ac_rmfiles=
4476 for ac_file in $ac_files
4478 case $ac_file in
4479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4480 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4481 esac
4482 done
4483 rm -f $ac_rmfiles
4485 if { { ac_try="$ac_link_default"
4486 case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489 esac
4490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491 $as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_link_default") 2>&5
4493 ac_status=$?
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; then :
4496 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4497 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4498 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4499 # so that the user can short-circuit this test for compilers unknown to
4500 # Autoconf.
4501 for ac_file in $ac_files ''
4503 test -f "$ac_file" || continue
4504 case $ac_file in
4505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4507 [ab].out )
4508 # We found the default executable, but exeext='' is most
4509 # certainly right.
4510 break;;
4511 *.* )
4512 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4513 then :; else
4514 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4516 # We set ac_cv_exeext here because the later test for it is not
4517 # safe: cross compilers may not add the suffix if given an `-o'
4518 # argument, so we may need to know it at that point already.
4519 # Even if this section looks crufty: it has the advantage of
4520 # actually working.
4521 break;;
4523 break;;
4524 esac
4525 done
4526 test "$ac_cv_exeext" = no && ac_cv_exeext=
4528 else
4529 ac_file=''
4531 if test -z "$ac_file"; then :
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4534 $as_echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4539 as_fn_error 77 "C compiler cannot create executables
4540 See \`config.log' for more details" "$LINENO" 5; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4543 $as_echo "yes" >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4546 $as_echo_n "checking for C compiler default output file name... " >&6; }
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4548 $as_echo "$ac_file" >&6; }
4549 ac_exeext=$ac_cv_exeext
4551 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4552 ac_clean_files=$ac_clean_files_save
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4554 $as_echo_n "checking for suffix of executables... " >&6; }
4555 if { { ac_try="$ac_link"
4556 case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559 esac
4560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4561 $as_echo "$ac_try_echo"; } >&5
4562 (eval "$ac_link") 2>&5
4563 ac_status=$?
4564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4565 test $ac_status = 0; }; then :
4566 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4567 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4568 # work properly (i.e., refer to `conftest.exe'), while it won't with
4569 # `rm'.
4570 for ac_file in conftest.exe conftest conftest.*; do
4571 test -f "$ac_file" || continue
4572 case $ac_file in
4573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4574 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4575 break;;
4576 * ) break;;
4577 esac
4578 done
4579 else
4580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4583 See \`config.log' for more details" "$LINENO" 5; }
4585 rm -f conftest conftest$ac_cv_exeext
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4587 $as_echo "$ac_cv_exeext" >&6; }
4589 rm -f conftest.$ac_ext
4590 EXEEXT=$ac_cv_exeext
4591 ac_exeext=$EXEEXT
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594 #include <stdio.h>
4596 main ()
4598 FILE *f = fopen ("conftest.out", "w");
4599 return ferror (f) || fclose (f) != 0;
4602 return 0;
4604 _ACEOF
4605 ac_clean_files="$ac_clean_files conftest.out"
4606 # Check that the compiler produces executables we can run. If not, either
4607 # the compiler is broken, or we cross compile.
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4609 $as_echo_n "checking whether we are cross compiling... " >&6; }
4610 if test "$cross_compiling" != yes; then
4611 { { ac_try="$ac_link"
4612 case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615 esac
4616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617 $as_echo "$ac_try_echo"; } >&5
4618 (eval "$ac_link") 2>&5
4619 ac_status=$?
4620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4621 test $ac_status = 0; }
4622 if { ac_try='./conftest$ac_cv_exeext'
4623 { { case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_try") 2>&5
4630 ac_status=$?
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }; }; then
4633 cross_compiling=no
4634 else
4635 if test "$cross_compiling" = maybe; then
4636 cross_compiling=yes
4637 else
4638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4640 as_fn_error $? "cannot run C compiled programs.
4641 If you meant to cross compile, use \`--host'.
4642 See \`config.log' for more details" "$LINENO" 5; }
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4647 $as_echo "$cross_compiling" >&6; }
4649 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4650 ac_clean_files=$ac_clean_files_save
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4652 $as_echo_n "checking for suffix of object files... " >&6; }
4653 if ${ac_cv_objext+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4660 main ()
4664 return 0;
4666 _ACEOF
4667 rm -f conftest.o conftest.obj
4668 if { { ac_try="$ac_compile"
4669 case "(($ac_try" in
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4672 esac
4673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4674 $as_echo "$ac_try_echo"; } >&5
4675 (eval "$ac_compile") 2>&5
4676 ac_status=$?
4677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4678 test $ac_status = 0; }; then :
4679 for ac_file in conftest.o conftest.obj conftest.*; do
4680 test -f "$ac_file" || continue;
4681 case $ac_file in
4682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4683 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4684 break;;
4685 esac
4686 done
4687 else
4688 $as_echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4693 as_fn_error $? "cannot compute suffix of object files: cannot compile
4694 See \`config.log' for more details" "$LINENO" 5; }
4696 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4699 $as_echo "$ac_cv_objext" >&6; }
4700 OBJEXT=$ac_cv_objext
4701 ac_objext=$OBJEXT
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4703 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4704 if ${ac_cv_c_compiler_gnu+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4711 main ()
4713 #ifndef __GNUC__
4714 choke me
4715 #endif
4718 return 0;
4720 _ACEOF
4721 if ac_fn_c_try_compile "$LINENO"; then :
4722 ac_compiler_gnu=yes
4723 else
4724 ac_compiler_gnu=no
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4731 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4732 if test $ac_compiler_gnu = yes; then
4733 GCC=yes
4734 else
4735 GCC=
4737 ac_test_CFLAGS=${CFLAGS+set}
4738 ac_save_CFLAGS=$CFLAGS
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4740 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4741 if ${ac_cv_prog_cc_g+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 ac_save_c_werror_flag=$ac_c_werror_flag
4745 ac_c_werror_flag=yes
4746 ac_cv_prog_cc_g=no
4747 CFLAGS="-g"
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4752 main ()
4756 return 0;
4758 _ACEOF
4759 if ac_fn_c_try_compile "$LINENO"; then :
4760 ac_cv_prog_cc_g=yes
4761 else
4762 CFLAGS=""
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4767 main ()
4771 return 0;
4773 _ACEOF
4774 if ac_fn_c_try_compile "$LINENO"; then :
4776 else
4777 ac_c_werror_flag=$ac_save_c_werror_flag
4778 CFLAGS="-g"
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4783 main ()
4787 return 0;
4789 _ACEOF
4790 if ac_fn_c_try_compile "$LINENO"; then :
4791 ac_cv_prog_cc_g=yes
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_c_werror_flag=$ac_save_c_werror_flag
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4801 $as_echo "$ac_cv_prog_cc_g" >&6; }
4802 if test "$ac_test_CFLAGS" = set; then
4803 CFLAGS=$ac_save_CFLAGS
4804 elif test $ac_cv_prog_cc_g = yes; then
4805 if test "$GCC" = yes; then
4806 CFLAGS="-g -O2"
4807 else
4808 CFLAGS="-g"
4810 else
4811 if test "$GCC" = yes; then
4812 CFLAGS="-O2"
4813 else
4814 CFLAGS=
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4818 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4819 if ${ac_cv_prog_cc_c89+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 ac_cv_prog_cc_c89=no
4823 ac_save_CC=$CC
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826 #include <stdarg.h>
4827 #include <stdio.h>
4828 struct stat;
4829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4830 struct buf { int x; };
4831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4832 static char *e (p, i)
4833 char **p;
4834 int i;
4836 return p[i];
4838 static char *f (char * (*g) (char **, int), char **p, ...)
4840 char *s;
4841 va_list v;
4842 va_start (v,p);
4843 s = g (p, va_arg (v,int));
4844 va_end (v);
4845 return s;
4848 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4849 function prototypes and stuff, but not '\xHH' hex character constants.
4850 These don't provoke an error unfortunately, instead are silently treated
4851 as 'x'. The following induces an error, until -std is added to get
4852 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4853 array size at least. It's necessary to write '\x00'==0 to get something
4854 that's true only with -std. */
4855 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4857 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4858 inside strings and character constants. */
4859 #define FOO(x) 'x'
4860 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4862 int test (int i, double x);
4863 struct s1 {int (*f) (int a);};
4864 struct s2 {int (*f) (double a);};
4865 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4866 int argc;
4867 char **argv;
4869 main ()
4871 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4873 return 0;
4875 _ACEOF
4876 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4877 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4879 CC="$ac_save_CC $ac_arg"
4880 if ac_fn_c_try_compile "$LINENO"; then :
4881 ac_cv_prog_cc_c89=$ac_arg
4883 rm -f core conftest.err conftest.$ac_objext
4884 test "x$ac_cv_prog_cc_c89" != "xno" && break
4885 done
4886 rm -f conftest.$ac_ext
4887 CC=$ac_save_CC
4890 # AC_CACHE_VAL
4891 case "x$ac_cv_prog_cc_c89" in
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4894 $as_echo "none needed" >&6; } ;;
4895 xno)
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4897 $as_echo "unsupported" >&6; } ;;
4899 CC="$CC $ac_cv_prog_cc_c89"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4901 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4902 esac
4903 if test "x$ac_cv_prog_cc_c89" != xno; then :
4907 ac_ext=c
4908 ac_cpp='$CPP $CPPFLAGS'
4909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913 ac_ext=cpp
4914 ac_cpp='$CXXCPP $CPPFLAGS'
4915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4918 if test -z "$CXX"; then
4919 if test -n "$CCC"; then
4920 CXX=$CCC
4921 else
4922 if test -n "$ac_tool_prefix"; then
4923 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_prog_CXX+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test -n "$CXX"; then
4933 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4946 done
4947 done
4948 IFS=$as_save_IFS
4952 CXX=$ac_cv_prog_CXX
4953 if test -n "$CXX"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4955 $as_echo "$CXX" >&6; }
4956 else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4962 test -n "$CXX" && break
4963 done
4965 if test -z "$CXX"; then
4966 ac_ct_CXX=$CXX
4967 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4969 # Extract the first word of "$ac_prog", so it can be a program name with args.
4970 set dummy $ac_prog; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 if test -n "$ac_ct_CXX"; then
4977 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_ac_ct_CXX="$ac_prog"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4992 IFS=$as_save_IFS
4996 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4997 if test -n "$ac_ct_CXX"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4999 $as_echo "$ac_ct_CXX" >&6; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5006 test -n "$ac_ct_CXX" && break
5007 done
5009 if test "x$ac_ct_CXX" = x; then
5010 CXX="g++"
5011 else
5012 case $cross_compiling:$ac_tool_warned in
5013 yes:)
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5016 ac_tool_warned=yes ;;
5017 esac
5018 CXX=$ac_ct_CXX
5024 # Provide some information about the compiler.
5025 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5026 set X $ac_compile
5027 ac_compiler=$2
5028 for ac_option in --version -v -V -qversion; do
5029 { { ac_try="$ac_compiler $ac_option >&5"
5030 case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033 esac
5034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5035 $as_echo "$ac_try_echo"; } >&5
5036 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5037 ac_status=$?
5038 if test -s conftest.err; then
5039 sed '10a\
5040 ... rest of stderr output deleted ...
5041 10q' conftest.err >conftest.er1
5042 cat conftest.er1 >&5
5044 rm -f conftest.er1 conftest.err
5045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5046 test $ac_status = 0; }
5047 done
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5050 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5051 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5058 main ()
5060 #ifndef __GNUC__
5061 choke me
5062 #endif
5065 return 0;
5067 _ACEOF
5068 if ac_fn_cxx_try_compile "$LINENO"; then :
5069 ac_compiler_gnu=yes
5070 else
5071 ac_compiler_gnu=no
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5078 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5079 if test $ac_compiler_gnu = yes; then
5080 GXX=yes
5081 else
5082 GXX=
5084 ac_test_CXXFLAGS=${CXXFLAGS+set}
5085 ac_save_CXXFLAGS=$CXXFLAGS
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5087 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5088 if ${ac_cv_prog_cxx_g+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5092 ac_cxx_werror_flag=yes
5093 ac_cv_prog_cxx_g=no
5094 CXXFLAGS="-g"
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5099 main ()
5103 return 0;
5105 _ACEOF
5106 if ac_fn_cxx_try_compile "$LINENO"; then :
5107 ac_cv_prog_cxx_g=yes
5108 else
5109 CXXFLAGS=""
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5114 main ()
5118 return 0;
5120 _ACEOF
5121 if ac_fn_cxx_try_compile "$LINENO"; then :
5123 else
5124 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5125 CXXFLAGS="-g"
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5130 main ()
5134 return 0;
5136 _ACEOF
5137 if ac_fn_cxx_try_compile "$LINENO"; then :
5138 ac_cv_prog_cxx_g=yes
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5148 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5149 if test "$ac_test_CXXFLAGS" = set; then
5150 CXXFLAGS=$ac_save_CXXFLAGS
5151 elif test $ac_cv_prog_cxx_g = yes; then
5152 if test "$GXX" = yes; then
5153 CXXFLAGS="-g -O2"
5154 else
5155 CXXFLAGS="-g"
5157 else
5158 if test "$GXX" = yes; then
5159 CXXFLAGS="-O2"
5160 else
5161 CXXFLAGS=
5164 ac_ext=c
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5171 # We must set the default linker to the linker used by gcc for the correct
5172 # operation of libtool. If LD is not defined and we are using gcc, try to
5173 # set the LD default to the ld used by gcc.
5174 if test -z "$LD"; then
5175 if test "$GCC" = yes; then
5176 case $build in
5177 *-*-mingw*)
5178 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5180 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5181 esac
5182 case $gcc_prog_ld in
5183 # Accept absolute paths.
5184 [\\/]* | [A-Za-z]:[\\/]*)
5185 LD="$gcc_prog_ld" ;;
5186 esac
5190 # Check whether -static-libstdc++ -static-libgcc is supported.
5191 have_static_libs=no
5192 if test "$GCC" = yes; then
5193 saved_LDFLAGS="$LDFLAGS"
5195 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5197 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5198 ac_ext=cpp
5199 ac_cpp='$CXXCPP $CPPFLAGS'
5200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5208 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5209 #error -static-libstdc++ not implemented
5210 #endif
5211 int main() {}
5212 _ACEOF
5213 if ac_fn_cxx_try_link "$LINENO"; then :
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215 $as_echo "yes" >&6; }; have_static_libs=yes
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5220 rm -f core conftest.err conftest.$ac_objext \
5221 conftest$ac_exeext conftest.$ac_ext
5222 ac_ext=c
5223 ac_cpp='$CPP $CPPFLAGS'
5224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229 LDFLAGS="$saved_LDFLAGS"
5235 if test -n "$ac_tool_prefix"; then
5236 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5237 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_prog_GNATBIND+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 if test -n "$GNATBIND"; then
5244 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5259 IFS=$as_save_IFS
5263 GNATBIND=$ac_cv_prog_GNATBIND
5264 if test -n "$GNATBIND"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5266 $as_echo "$GNATBIND" >&6; }
5267 else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5274 if test -z "$ac_cv_prog_GNATBIND"; then
5275 ac_ct_GNATBIND=$GNATBIND
5276 # Extract the first word of "gnatbind", so it can be a program name with args.
5277 set dummy gnatbind; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 if test -n "$ac_ct_GNATBIND"; then
5284 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5297 done
5298 done
5299 IFS=$as_save_IFS
5303 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5304 if test -n "$ac_ct_GNATBIND"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5306 $as_echo "$ac_ct_GNATBIND" >&6; }
5307 else
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5312 if test "x$ac_ct_GNATBIND" = x; then
5313 GNATBIND="no"
5314 else
5315 case $cross_compiling:$ac_tool_warned in
5316 yes:)
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5319 ac_tool_warned=yes ;;
5320 esac
5321 GNATBIND=$ac_ct_GNATBIND
5323 else
5324 GNATBIND="$ac_cv_prog_GNATBIND"
5327 if test -n "$ac_tool_prefix"; then
5328 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5329 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if ${ac_cv_prog_GNATMAKE+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 if test -n "$GNATMAKE"; then
5336 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 break 2
5349 done
5350 done
5351 IFS=$as_save_IFS
5355 GNATMAKE=$ac_cv_prog_GNATMAKE
5356 if test -n "$GNATMAKE"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5358 $as_echo "$GNATMAKE" >&6; }
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5366 if test -z "$ac_cv_prog_GNATMAKE"; then
5367 ac_ct_GNATMAKE=$GNATMAKE
5368 # Extract the first word of "gnatmake", so it can be a program name with args.
5369 set dummy gnatmake; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 if test -n "$ac_ct_GNATMAKE"; then
5376 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5389 done
5390 done
5391 IFS=$as_save_IFS
5395 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5396 if test -n "$ac_ct_GNATMAKE"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5398 $as_echo "$ac_ct_GNATMAKE" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5404 if test "x$ac_ct_GNATMAKE" = x; then
5405 GNATMAKE="no"
5406 else
5407 case $cross_compiling:$ac_tool_warned in
5408 yes:)
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5411 ac_tool_warned=yes ;;
5412 esac
5413 GNATMAKE=$ac_ct_GNATMAKE
5415 else
5416 GNATMAKE="$ac_cv_prog_GNATMAKE"
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5420 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5421 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 cat >conftest.adb <<EOF
5425 procedure conftest is begin null; end conftest;
5427 acx_cv_cc_gcc_supports_ada=no
5428 # There is a bug in old released versions of GCC which causes the
5429 # driver to exit successfully when the appropriate language module
5430 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5431 # Therefore we must check for the error message as well as an
5432 # unsuccessful exit.
5433 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5434 # given a .adb file, but produce no object file. So we must check
5435 # if an object file was really produced to guard against this.
5436 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5437 if test x"$errors" = x && test -f conftest.$ac_objext; then
5438 acx_cv_cc_gcc_supports_ada=yes
5440 rm -f conftest.*
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5443 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5445 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5446 have_gnat=yes
5447 else
5448 have_gnat=no
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5452 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5453 if ${gcc_cv_prog_cmp_skip+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 echo abfoo >t1
5457 echo cdfoo >t2
5458 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5459 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5460 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5462 else
5463 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5466 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5467 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5469 else
5470 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5473 rm t1 t2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5477 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5478 do_compare="$gcc_cv_prog_cmp_skip"
5482 # Check whether --enable-bootstrap was given.
5483 if test "${enable_bootstrap+set}" = set; then :
5484 enableval=$enable_bootstrap;
5485 else
5486 enable_bootstrap=default
5490 # Issue errors and warnings for invalid/strange bootstrap combinations.
5491 if test -r $srcdir/gcc/configure; then
5492 have_compiler=yes
5493 else
5494 have_compiler=no
5497 case "$have_compiler:$host:$target:$enable_bootstrap" in
5498 *:*:*:no) ;;
5500 # Default behavior. Enable bootstrap if we have a compiler
5501 # and we are in a native configuration.
5502 yes:$build:$build:default)
5503 enable_bootstrap=yes ;;
5505 *:*:*:default)
5506 enable_bootstrap=no ;;
5508 # We have a compiler and we are in a native configuration, bootstrap is ok
5509 yes:$build:$build:yes)
5512 # Other configurations, but we have a compiler. Assume the user knows
5513 # what he's doing.
5514 yes:*:*:yes)
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5516 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5519 # No compiler: if they passed --enable-bootstrap explicitly, fail
5520 no:*:*:yes)
5521 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5523 # Fail if wrong command line
5525 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5527 esac
5529 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5530 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5531 # require C++11 (or higher).
5532 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5533 CXX="$CXX -std=c++11"
5534 elif test "$have_compiler" = yes; then
5535 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5536 ac_ext=cpp
5537 ac_cpp='$CXXCPP $CPPFLAGS'
5538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5541 ac_success=no
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5544 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5545 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5552 // If the compiler admits that it is not ready for C++11, why torture it?
5553 // Hopefully, this will speed up the test.
5555 #ifndef __cplusplus
5557 #error "This is not a C++ compiler"
5559 #elif __cplusplus < 201103L
5561 #error "This is not a C++11 compiler"
5563 #else
5565 namespace cxx11
5568 namespace test_static_assert
5571 template <typename T>
5572 struct check
5574 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5579 namespace test_final_override
5582 struct Base
5584 virtual ~Base() {}
5585 virtual void f() {}
5588 struct Derived : public Base
5590 virtual ~Derived() override {}
5591 virtual void f() override {}
5596 namespace test_double_right_angle_brackets
5599 template < typename T >
5600 struct check {};
5602 typedef check<void> single_type;
5603 typedef check<check<void>> double_type;
5604 typedef check<check<check<void>>> triple_type;
5605 typedef check<check<check<check<void>>>> quadruple_type;
5609 namespace test_decltype
5615 int a = 1;
5616 decltype(a) b = 2;
5617 return a + b;
5622 namespace test_type_deduction
5625 template < typename T1, typename T2 >
5626 struct is_same
5628 static const bool value = false;
5631 template < typename T >
5632 struct is_same<T, T>
5634 static const bool value = true;
5637 template < typename T1, typename T2 >
5638 auto
5639 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5641 return a1 + a2;
5645 test(const int c, volatile int v)
5647 static_assert(is_same<int, decltype(0)>::value == true, "");
5648 static_assert(is_same<int, decltype(c)>::value == false, "");
5649 static_assert(is_same<int, decltype(v)>::value == false, "");
5650 auto ac = c;
5651 auto av = v;
5652 auto sumi = ac + av + 'x';
5653 auto sumf = ac + av + 1.0;
5654 static_assert(is_same<int, decltype(ac)>::value == true, "");
5655 static_assert(is_same<int, decltype(av)>::value == true, "");
5656 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5657 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5658 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5659 return (sumf > 0.0) ? sumi : add(c, v);
5664 namespace test_noexcept
5667 int f() { return 0; }
5668 int g() noexcept { return 0; }
5670 static_assert(noexcept(f()) == false, "");
5671 static_assert(noexcept(g()) == true, "");
5675 namespace test_constexpr
5678 template < typename CharT >
5679 unsigned long constexpr
5680 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5682 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5685 template < typename CharT >
5686 unsigned long constexpr
5687 strlen_c(const CharT *const s) noexcept
5689 return strlen_c_r(s, 0UL);
5692 static_assert(strlen_c("") == 0UL, "");
5693 static_assert(strlen_c("1") == 1UL, "");
5694 static_assert(strlen_c("example") == 7UL, "");
5695 static_assert(strlen_c("another\0example") == 7UL, "");
5699 namespace test_rvalue_references
5702 template < int N >
5703 struct answer
5705 static constexpr int value = N;
5708 answer<1> f(int&) { return answer<1>(); }
5709 answer<2> f(const int&) { return answer<2>(); }
5710 answer<3> f(int&&) { return answer<3>(); }
5712 void
5713 test()
5715 int i = 0;
5716 const int c = 0;
5717 static_assert(decltype(f(i))::value == 1, "");
5718 static_assert(decltype(f(c))::value == 2, "");
5719 static_assert(decltype(f(0))::value == 3, "");
5724 namespace test_uniform_initialization
5727 struct test
5729 static const int zero {};
5730 static const int one {1};
5733 static_assert(test::zero == 0, "");
5734 static_assert(test::one == 1, "");
5738 namespace test_lambdas
5741 void
5742 test1()
5744 auto lambda1 = [](){};
5745 auto lambda2 = lambda1;
5746 lambda1();
5747 lambda2();
5751 test2()
5753 auto a = [](int i, int j){ return i + j; }(1, 2);
5754 auto b = []() -> int { return '0'; }();
5755 auto c = [=](){ return a + b; }();
5756 auto d = [&](){ return c; }();
5757 auto e = [a, &b](int x) mutable {
5758 const auto identity = [](int y){ return y; };
5759 for (auto i = 0; i < a; ++i)
5760 a += b--;
5761 return x + identity(a + b);
5762 }(0);
5763 return a + b + c + d + e;
5767 test3()
5769 const auto nullary = [](){ return 0; };
5770 const auto unary = [](int x){ return x; };
5771 using nullary_t = decltype(nullary);
5772 using unary_t = decltype(unary);
5773 const auto higher1st = [](nullary_t f){ return f(); };
5774 const auto higher2nd = [unary](nullary_t f1){
5775 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5777 return higher1st(nullary) + higher2nd(nullary)(unary);
5782 namespace test_variadic_templates
5785 template <int...>
5786 struct sum;
5788 template <int N0, int... N1toN>
5789 struct sum<N0, N1toN...>
5791 static constexpr auto value = N0 + sum<N1toN...>::value;
5794 template <>
5795 struct sum<>
5797 static constexpr auto value = 0;
5800 static_assert(sum<>::value == 0, "");
5801 static_assert(sum<1>::value == 1, "");
5802 static_assert(sum<23>::value == 23, "");
5803 static_assert(sum<1, 2>::value == 3, "");
5804 static_assert(sum<5, 5, 11>::value == 21, "");
5805 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5809 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5810 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5811 // because of this.
5812 namespace test_template_alias_sfinae
5815 struct foo {};
5817 template<typename T>
5818 using member = typename T::member_type;
5820 template<typename T>
5821 void func(...) {}
5823 template<typename T>
5824 void func(member<T>*) {}
5826 void test();
5828 void test() { func<foo>(0); }
5832 } // namespace cxx11
5834 #endif // __cplusplus >= 201103L
5838 _ACEOF
5839 if ac_fn_cxx_try_compile "$LINENO"; then :
5840 ax_cv_cxx_compile_cxx11=yes
5841 else
5842 ax_cv_cxx_compile_cxx11=no
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5847 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5848 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5849 ac_success=yes
5852 if test x$ac_success = xno; then
5853 for alternative in ${ax_cxx_compile_alternatives}; do
5854 switch="-std=gnu++${alternative}"
5855 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5857 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5858 if eval \${$cachevar+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 ac_save_CXX="$CXX"
5862 CXX="$CXX $switch"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5867 // If the compiler admits that it is not ready for C++11, why torture it?
5868 // Hopefully, this will speed up the test.
5870 #ifndef __cplusplus
5872 #error "This is not a C++ compiler"
5874 #elif __cplusplus < 201103L
5876 #error "This is not a C++11 compiler"
5878 #else
5880 namespace cxx11
5883 namespace test_static_assert
5886 template <typename T>
5887 struct check
5889 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5894 namespace test_final_override
5897 struct Base
5899 virtual ~Base() {}
5900 virtual void f() {}
5903 struct Derived : public Base
5905 virtual ~Derived() override {}
5906 virtual void f() override {}
5911 namespace test_double_right_angle_brackets
5914 template < typename T >
5915 struct check {};
5917 typedef check<void> single_type;
5918 typedef check<check<void>> double_type;
5919 typedef check<check<check<void>>> triple_type;
5920 typedef check<check<check<check<void>>>> quadruple_type;
5924 namespace test_decltype
5930 int a = 1;
5931 decltype(a) b = 2;
5932 return a + b;
5937 namespace test_type_deduction
5940 template < typename T1, typename T2 >
5941 struct is_same
5943 static const bool value = false;
5946 template < typename T >
5947 struct is_same<T, T>
5949 static const bool value = true;
5952 template < typename T1, typename T2 >
5953 auto
5954 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5956 return a1 + a2;
5960 test(const int c, volatile int v)
5962 static_assert(is_same<int, decltype(0)>::value == true, "");
5963 static_assert(is_same<int, decltype(c)>::value == false, "");
5964 static_assert(is_same<int, decltype(v)>::value == false, "");
5965 auto ac = c;
5966 auto av = v;
5967 auto sumi = ac + av + 'x';
5968 auto sumf = ac + av + 1.0;
5969 static_assert(is_same<int, decltype(ac)>::value == true, "");
5970 static_assert(is_same<int, decltype(av)>::value == true, "");
5971 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5972 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5973 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5974 return (sumf > 0.0) ? sumi : add(c, v);
5979 namespace test_noexcept
5982 int f() { return 0; }
5983 int g() noexcept { return 0; }
5985 static_assert(noexcept(f()) == false, "");
5986 static_assert(noexcept(g()) == true, "");
5990 namespace test_constexpr
5993 template < typename CharT >
5994 unsigned long constexpr
5995 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5997 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6000 template < typename CharT >
6001 unsigned long constexpr
6002 strlen_c(const CharT *const s) noexcept
6004 return strlen_c_r(s, 0UL);
6007 static_assert(strlen_c("") == 0UL, "");
6008 static_assert(strlen_c("1") == 1UL, "");
6009 static_assert(strlen_c("example") == 7UL, "");
6010 static_assert(strlen_c("another\0example") == 7UL, "");
6014 namespace test_rvalue_references
6017 template < int N >
6018 struct answer
6020 static constexpr int value = N;
6023 answer<1> f(int&) { return answer<1>(); }
6024 answer<2> f(const int&) { return answer<2>(); }
6025 answer<3> f(int&&) { return answer<3>(); }
6027 void
6028 test()
6030 int i = 0;
6031 const int c = 0;
6032 static_assert(decltype(f(i))::value == 1, "");
6033 static_assert(decltype(f(c))::value == 2, "");
6034 static_assert(decltype(f(0))::value == 3, "");
6039 namespace test_uniform_initialization
6042 struct test
6044 static const int zero {};
6045 static const int one {1};
6048 static_assert(test::zero == 0, "");
6049 static_assert(test::one == 1, "");
6053 namespace test_lambdas
6056 void
6057 test1()
6059 auto lambda1 = [](){};
6060 auto lambda2 = lambda1;
6061 lambda1();
6062 lambda2();
6066 test2()
6068 auto a = [](int i, int j){ return i + j; }(1, 2);
6069 auto b = []() -> int { return '0'; }();
6070 auto c = [=](){ return a + b; }();
6071 auto d = [&](){ return c; }();
6072 auto e = [a, &b](int x) mutable {
6073 const auto identity = [](int y){ return y; };
6074 for (auto i = 0; i < a; ++i)
6075 a += b--;
6076 return x + identity(a + b);
6077 }(0);
6078 return a + b + c + d + e;
6082 test3()
6084 const auto nullary = [](){ return 0; };
6085 const auto unary = [](int x){ return x; };
6086 using nullary_t = decltype(nullary);
6087 using unary_t = decltype(unary);
6088 const auto higher1st = [](nullary_t f){ return f(); };
6089 const auto higher2nd = [unary](nullary_t f1){
6090 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6092 return higher1st(nullary) + higher2nd(nullary)(unary);
6097 namespace test_variadic_templates
6100 template <int...>
6101 struct sum;
6103 template <int N0, int... N1toN>
6104 struct sum<N0, N1toN...>
6106 static constexpr auto value = N0 + sum<N1toN...>::value;
6109 template <>
6110 struct sum<>
6112 static constexpr auto value = 0;
6115 static_assert(sum<>::value == 0, "");
6116 static_assert(sum<1>::value == 1, "");
6117 static_assert(sum<23>::value == 23, "");
6118 static_assert(sum<1, 2>::value == 3, "");
6119 static_assert(sum<5, 5, 11>::value == 21, "");
6120 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6124 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6125 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6126 // because of this.
6127 namespace test_template_alias_sfinae
6130 struct foo {};
6132 template<typename T>
6133 using member = typename T::member_type;
6135 template<typename T>
6136 void func(...) {}
6138 template<typename T>
6139 void func(member<T>*) {}
6141 void test();
6143 void test() { func<foo>(0); }
6147 } // namespace cxx11
6149 #endif // __cplusplus >= 201103L
6153 _ACEOF
6154 if ac_fn_cxx_try_compile "$LINENO"; then :
6155 eval $cachevar=yes
6156 else
6157 eval $cachevar=no
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160 CXX="$ac_save_CXX"
6162 eval ac_res=\$$cachevar
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6164 $as_echo "$ac_res" >&6; }
6165 if eval test x\$$cachevar = xyes; then
6166 CXX="$CXX $switch"
6167 if test -n "$CXXCPP" ; then
6168 CXXCPP="$CXXCPP $switch"
6170 ac_success=yes
6171 break
6173 done
6176 if test x$ac_success = xno; then
6177 for alternative in ${ax_cxx_compile_alternatives}; do
6178 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6179 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6181 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6182 if eval \${$cachevar+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 ac_save_CXX="$CXX"
6186 CXX="$CXX $switch"
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6191 // If the compiler admits that it is not ready for C++11, why torture it?
6192 // Hopefully, this will speed up the test.
6194 #ifndef __cplusplus
6196 #error "This is not a C++ compiler"
6198 #elif __cplusplus < 201103L
6200 #error "This is not a C++11 compiler"
6202 #else
6204 namespace cxx11
6207 namespace test_static_assert
6210 template <typename T>
6211 struct check
6213 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6218 namespace test_final_override
6221 struct Base
6223 virtual ~Base() {}
6224 virtual void f() {}
6227 struct Derived : public Base
6229 virtual ~Derived() override {}
6230 virtual void f() override {}
6235 namespace test_double_right_angle_brackets
6238 template < typename T >
6239 struct check {};
6241 typedef check<void> single_type;
6242 typedef check<check<void>> double_type;
6243 typedef check<check<check<void>>> triple_type;
6244 typedef check<check<check<check<void>>>> quadruple_type;
6248 namespace test_decltype
6254 int a = 1;
6255 decltype(a) b = 2;
6256 return a + b;
6261 namespace test_type_deduction
6264 template < typename T1, typename T2 >
6265 struct is_same
6267 static const bool value = false;
6270 template < typename T >
6271 struct is_same<T, T>
6273 static const bool value = true;
6276 template < typename T1, typename T2 >
6277 auto
6278 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6280 return a1 + a2;
6284 test(const int c, volatile int v)
6286 static_assert(is_same<int, decltype(0)>::value == true, "");
6287 static_assert(is_same<int, decltype(c)>::value == false, "");
6288 static_assert(is_same<int, decltype(v)>::value == false, "");
6289 auto ac = c;
6290 auto av = v;
6291 auto sumi = ac + av + 'x';
6292 auto sumf = ac + av + 1.0;
6293 static_assert(is_same<int, decltype(ac)>::value == true, "");
6294 static_assert(is_same<int, decltype(av)>::value == true, "");
6295 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6296 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6297 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6298 return (sumf > 0.0) ? sumi : add(c, v);
6303 namespace test_noexcept
6306 int f() { return 0; }
6307 int g() noexcept { return 0; }
6309 static_assert(noexcept(f()) == false, "");
6310 static_assert(noexcept(g()) == true, "");
6314 namespace test_constexpr
6317 template < typename CharT >
6318 unsigned long constexpr
6319 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6321 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6324 template < typename CharT >
6325 unsigned long constexpr
6326 strlen_c(const CharT *const s) noexcept
6328 return strlen_c_r(s, 0UL);
6331 static_assert(strlen_c("") == 0UL, "");
6332 static_assert(strlen_c("1") == 1UL, "");
6333 static_assert(strlen_c("example") == 7UL, "");
6334 static_assert(strlen_c("another\0example") == 7UL, "");
6338 namespace test_rvalue_references
6341 template < int N >
6342 struct answer
6344 static constexpr int value = N;
6347 answer<1> f(int&) { return answer<1>(); }
6348 answer<2> f(const int&) { return answer<2>(); }
6349 answer<3> f(int&&) { return answer<3>(); }
6351 void
6352 test()
6354 int i = 0;
6355 const int c = 0;
6356 static_assert(decltype(f(i))::value == 1, "");
6357 static_assert(decltype(f(c))::value == 2, "");
6358 static_assert(decltype(f(0))::value == 3, "");
6363 namespace test_uniform_initialization
6366 struct test
6368 static const int zero {};
6369 static const int one {1};
6372 static_assert(test::zero == 0, "");
6373 static_assert(test::one == 1, "");
6377 namespace test_lambdas
6380 void
6381 test1()
6383 auto lambda1 = [](){};
6384 auto lambda2 = lambda1;
6385 lambda1();
6386 lambda2();
6390 test2()
6392 auto a = [](int i, int j){ return i + j; }(1, 2);
6393 auto b = []() -> int { return '0'; }();
6394 auto c = [=](){ return a + b; }();
6395 auto d = [&](){ return c; }();
6396 auto e = [a, &b](int x) mutable {
6397 const auto identity = [](int y){ return y; };
6398 for (auto i = 0; i < a; ++i)
6399 a += b--;
6400 return x + identity(a + b);
6401 }(0);
6402 return a + b + c + d + e;
6406 test3()
6408 const auto nullary = [](){ return 0; };
6409 const auto unary = [](int x){ return x; };
6410 using nullary_t = decltype(nullary);
6411 using unary_t = decltype(unary);
6412 const auto higher1st = [](nullary_t f){ return f(); };
6413 const auto higher2nd = [unary](nullary_t f1){
6414 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6416 return higher1st(nullary) + higher2nd(nullary)(unary);
6421 namespace test_variadic_templates
6424 template <int...>
6425 struct sum;
6427 template <int N0, int... N1toN>
6428 struct sum<N0, N1toN...>
6430 static constexpr auto value = N0 + sum<N1toN...>::value;
6433 template <>
6434 struct sum<>
6436 static constexpr auto value = 0;
6439 static_assert(sum<>::value == 0, "");
6440 static_assert(sum<1>::value == 1, "");
6441 static_assert(sum<23>::value == 23, "");
6442 static_assert(sum<1, 2>::value == 3, "");
6443 static_assert(sum<5, 5, 11>::value == 21, "");
6444 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6448 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6449 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6450 // because of this.
6451 namespace test_template_alias_sfinae
6454 struct foo {};
6456 template<typename T>
6457 using member = typename T::member_type;
6459 template<typename T>
6460 void func(...) {}
6462 template<typename T>
6463 void func(member<T>*) {}
6465 void test();
6467 void test() { func<foo>(0); }
6471 } // namespace cxx11
6473 #endif // __cplusplus >= 201103L
6477 _ACEOF
6478 if ac_fn_cxx_try_compile "$LINENO"; then :
6479 eval $cachevar=yes
6480 else
6481 eval $cachevar=no
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 CXX="$ac_save_CXX"
6486 eval ac_res=\$$cachevar
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6488 $as_echo "$ac_res" >&6; }
6489 if eval test x\$$cachevar = xyes; then
6490 CXX="$CXX $switch"
6491 if test -n "$CXXCPP" ; then
6492 CXXCPP="$CXXCPP $switch"
6494 ac_success=yes
6495 break
6497 done
6498 if test x$ac_success = xyes; then
6499 break
6501 done
6504 ac_ext=c
6505 ac_cpp='$CPP $CPPFLAGS'
6506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6510 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6511 if test x$ac_success = xno; then
6512 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6515 if test x$ac_success = xno; then
6516 HAVE_CXX11=0
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6518 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6519 else
6520 HAVE_CXX11=1
6522 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6528 if test "${build}" != "${host}"; then
6529 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6530 ac_ext=cpp
6531 ac_cpp='$CXXCPP $CPPFLAGS'
6532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6535 ac_success=no
6536 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6537 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6538 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6539 CXX="$CXX_FOR_BUILD"
6540 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6541 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6543 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6544 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6551 // If the compiler admits that it is not ready for C++11, why torture it?
6552 // Hopefully, this will speed up the test.
6554 #ifndef __cplusplus
6556 #error "This is not a C++ compiler"
6558 #elif __cplusplus < 201103L
6560 #error "This is not a C++11 compiler"
6562 #else
6564 namespace cxx11
6567 namespace test_static_assert
6570 template <typename T>
6571 struct check
6573 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6578 namespace test_final_override
6581 struct Base
6583 virtual ~Base() {}
6584 virtual void f() {}
6587 struct Derived : public Base
6589 virtual ~Derived() override {}
6590 virtual void f() override {}
6595 namespace test_double_right_angle_brackets
6598 template < typename T >
6599 struct check {};
6601 typedef check<void> single_type;
6602 typedef check<check<void>> double_type;
6603 typedef check<check<check<void>>> triple_type;
6604 typedef check<check<check<check<void>>>> quadruple_type;
6608 namespace test_decltype
6614 int a = 1;
6615 decltype(a) b = 2;
6616 return a + b;
6621 namespace test_type_deduction
6624 template < typename T1, typename T2 >
6625 struct is_same
6627 static const bool value = false;
6630 template < typename T >
6631 struct is_same<T, T>
6633 static const bool value = true;
6636 template < typename T1, typename T2 >
6637 auto
6638 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6640 return a1 + a2;
6644 test(const int c, volatile int v)
6646 static_assert(is_same<int, decltype(0)>::value == true, "");
6647 static_assert(is_same<int, decltype(c)>::value == false, "");
6648 static_assert(is_same<int, decltype(v)>::value == false, "");
6649 auto ac = c;
6650 auto av = v;
6651 auto sumi = ac + av + 'x';
6652 auto sumf = ac + av + 1.0;
6653 static_assert(is_same<int, decltype(ac)>::value == true, "");
6654 static_assert(is_same<int, decltype(av)>::value == true, "");
6655 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6656 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6657 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6658 return (sumf > 0.0) ? sumi : add(c, v);
6663 namespace test_noexcept
6666 int f() { return 0; }
6667 int g() noexcept { return 0; }
6669 static_assert(noexcept(f()) == false, "");
6670 static_assert(noexcept(g()) == true, "");
6674 namespace test_constexpr
6677 template < typename CharT >
6678 unsigned long constexpr
6679 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6681 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6684 template < typename CharT >
6685 unsigned long constexpr
6686 strlen_c(const CharT *const s) noexcept
6688 return strlen_c_r(s, 0UL);
6691 static_assert(strlen_c("") == 0UL, "");
6692 static_assert(strlen_c("1") == 1UL, "");
6693 static_assert(strlen_c("example") == 7UL, "");
6694 static_assert(strlen_c("another\0example") == 7UL, "");
6698 namespace test_rvalue_references
6701 template < int N >
6702 struct answer
6704 static constexpr int value = N;
6707 answer<1> f(int&) { return answer<1>(); }
6708 answer<2> f(const int&) { return answer<2>(); }
6709 answer<3> f(int&&) { return answer<3>(); }
6711 void
6712 test()
6714 int i = 0;
6715 const int c = 0;
6716 static_assert(decltype(f(i))::value == 1, "");
6717 static_assert(decltype(f(c))::value == 2, "");
6718 static_assert(decltype(f(0))::value == 3, "");
6723 namespace test_uniform_initialization
6726 struct test
6728 static const int zero {};
6729 static const int one {1};
6732 static_assert(test::zero == 0, "");
6733 static_assert(test::one == 1, "");
6737 namespace test_lambdas
6740 void
6741 test1()
6743 auto lambda1 = [](){};
6744 auto lambda2 = lambda1;
6745 lambda1();
6746 lambda2();
6750 test2()
6752 auto a = [](int i, int j){ return i + j; }(1, 2);
6753 auto b = []() -> int { return '0'; }();
6754 auto c = [=](){ return a + b; }();
6755 auto d = [&](){ return c; }();
6756 auto e = [a, &b](int x) mutable {
6757 const auto identity = [](int y){ return y; };
6758 for (auto i = 0; i < a; ++i)
6759 a += b--;
6760 return x + identity(a + b);
6761 }(0);
6762 return a + b + c + d + e;
6766 test3()
6768 const auto nullary = [](){ return 0; };
6769 const auto unary = [](int x){ return x; };
6770 using nullary_t = decltype(nullary);
6771 using unary_t = decltype(unary);
6772 const auto higher1st = [](nullary_t f){ return f(); };
6773 const auto higher2nd = [unary](nullary_t f1){
6774 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6776 return higher1st(nullary) + higher2nd(nullary)(unary);
6781 namespace test_variadic_templates
6784 template <int...>
6785 struct sum;
6787 template <int N0, int... N1toN>
6788 struct sum<N0, N1toN...>
6790 static constexpr auto value = N0 + sum<N1toN...>::value;
6793 template <>
6794 struct sum<>
6796 static constexpr auto value = 0;
6799 static_assert(sum<>::value == 0, "");
6800 static_assert(sum<1>::value == 1, "");
6801 static_assert(sum<23>::value == 23, "");
6802 static_assert(sum<1, 2>::value == 3, "");
6803 static_assert(sum<5, 5, 11>::value == 21, "");
6804 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6808 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6809 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6810 // because of this.
6811 namespace test_template_alias_sfinae
6814 struct foo {};
6816 template<typename T>
6817 using member = typename T::member_type;
6819 template<typename T>
6820 void func(...) {}
6822 template<typename T>
6823 void func(member<T>*) {}
6825 void test();
6827 void test() { func<foo>(0); }
6831 } // namespace cxx11
6833 #endif // __cplusplus >= 201103L
6837 _ACEOF
6838 if ac_fn_cxx_try_compile "$LINENO"; then :
6839 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
6840 else
6841 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
6846 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
6847 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
6848 ac_success=yes
6851 if test x$ac_success = xno; then
6852 for alternative in ${ax_cxx_compile_alternatives}; do
6853 switch="-std=gnu++${alternative}"
6854 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6856 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6857 if eval \${$cachevar+:} false; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 ac_save_CXX="$CXX"
6861 CXX="$CXX $switch"
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6866 // If the compiler admits that it is not ready for C++11, why torture it?
6867 // Hopefully, this will speed up the test.
6869 #ifndef __cplusplus
6871 #error "This is not a C++ compiler"
6873 #elif __cplusplus < 201103L
6875 #error "This is not a C++11 compiler"
6877 #else
6879 namespace cxx11
6882 namespace test_static_assert
6885 template <typename T>
6886 struct check
6888 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6893 namespace test_final_override
6896 struct Base
6898 virtual ~Base() {}
6899 virtual void f() {}
6902 struct Derived : public Base
6904 virtual ~Derived() override {}
6905 virtual void f() override {}
6910 namespace test_double_right_angle_brackets
6913 template < typename T >
6914 struct check {};
6916 typedef check<void> single_type;
6917 typedef check<check<void>> double_type;
6918 typedef check<check<check<void>>> triple_type;
6919 typedef check<check<check<check<void>>>> quadruple_type;
6923 namespace test_decltype
6929 int a = 1;
6930 decltype(a) b = 2;
6931 return a + b;
6936 namespace test_type_deduction
6939 template < typename T1, typename T2 >
6940 struct is_same
6942 static const bool value = false;
6945 template < typename T >
6946 struct is_same<T, T>
6948 static const bool value = true;
6951 template < typename T1, typename T2 >
6952 auto
6953 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6955 return a1 + a2;
6959 test(const int c, volatile int v)
6961 static_assert(is_same<int, decltype(0)>::value == true, "");
6962 static_assert(is_same<int, decltype(c)>::value == false, "");
6963 static_assert(is_same<int, decltype(v)>::value == false, "");
6964 auto ac = c;
6965 auto av = v;
6966 auto sumi = ac + av + 'x';
6967 auto sumf = ac + av + 1.0;
6968 static_assert(is_same<int, decltype(ac)>::value == true, "");
6969 static_assert(is_same<int, decltype(av)>::value == true, "");
6970 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6971 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6972 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6973 return (sumf > 0.0) ? sumi : add(c, v);
6978 namespace test_noexcept
6981 int f() { return 0; }
6982 int g() noexcept { return 0; }
6984 static_assert(noexcept(f()) == false, "");
6985 static_assert(noexcept(g()) == true, "");
6989 namespace test_constexpr
6992 template < typename CharT >
6993 unsigned long constexpr
6994 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6996 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6999 template < typename CharT >
7000 unsigned long constexpr
7001 strlen_c(const CharT *const s) noexcept
7003 return strlen_c_r(s, 0UL);
7006 static_assert(strlen_c("") == 0UL, "");
7007 static_assert(strlen_c("1") == 1UL, "");
7008 static_assert(strlen_c("example") == 7UL, "");
7009 static_assert(strlen_c("another\0example") == 7UL, "");
7013 namespace test_rvalue_references
7016 template < int N >
7017 struct answer
7019 static constexpr int value = N;
7022 answer<1> f(int&) { return answer<1>(); }
7023 answer<2> f(const int&) { return answer<2>(); }
7024 answer<3> f(int&&) { return answer<3>(); }
7026 void
7027 test()
7029 int i = 0;
7030 const int c = 0;
7031 static_assert(decltype(f(i))::value == 1, "");
7032 static_assert(decltype(f(c))::value == 2, "");
7033 static_assert(decltype(f(0))::value == 3, "");
7038 namespace test_uniform_initialization
7041 struct test
7043 static const int zero {};
7044 static const int one {1};
7047 static_assert(test::zero == 0, "");
7048 static_assert(test::one == 1, "");
7052 namespace test_lambdas
7055 void
7056 test1()
7058 auto lambda1 = [](){};
7059 auto lambda2 = lambda1;
7060 lambda1();
7061 lambda2();
7065 test2()
7067 auto a = [](int i, int j){ return i + j; }(1, 2);
7068 auto b = []() -> int { return '0'; }();
7069 auto c = [=](){ return a + b; }();
7070 auto d = [&](){ return c; }();
7071 auto e = [a, &b](int x) mutable {
7072 const auto identity = [](int y){ return y; };
7073 for (auto i = 0; i < a; ++i)
7074 a += b--;
7075 return x + identity(a + b);
7076 }(0);
7077 return a + b + c + d + e;
7081 test3()
7083 const auto nullary = [](){ return 0; };
7084 const auto unary = [](int x){ return x; };
7085 using nullary_t = decltype(nullary);
7086 using unary_t = decltype(unary);
7087 const auto higher1st = [](nullary_t f){ return f(); };
7088 const auto higher2nd = [unary](nullary_t f1){
7089 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7091 return higher1st(nullary) + higher2nd(nullary)(unary);
7096 namespace test_variadic_templates
7099 template <int...>
7100 struct sum;
7102 template <int N0, int... N1toN>
7103 struct sum<N0, N1toN...>
7105 static constexpr auto value = N0 + sum<N1toN...>::value;
7108 template <>
7109 struct sum<>
7111 static constexpr auto value = 0;
7114 static_assert(sum<>::value == 0, "");
7115 static_assert(sum<1>::value == 1, "");
7116 static_assert(sum<23>::value == 23, "");
7117 static_assert(sum<1, 2>::value == 3, "");
7118 static_assert(sum<5, 5, 11>::value == 21, "");
7119 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7123 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7124 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7125 // because of this.
7126 namespace test_template_alias_sfinae
7129 struct foo {};
7131 template<typename T>
7132 using member = typename T::member_type;
7134 template<typename T>
7135 void func(...) {}
7137 template<typename T>
7138 void func(member<T>*) {}
7140 void test();
7142 void test() { func<foo>(0); }
7146 } // namespace cxx11
7148 #endif // __cplusplus >= 201103L
7152 _ACEOF
7153 if ac_fn_cxx_try_compile "$LINENO"; then :
7154 eval $cachevar=yes
7155 else
7156 eval $cachevar=no
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 CXX="$ac_save_CXX"
7161 eval ac_res=\$$cachevar
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7163 $as_echo "$ac_res" >&6; }
7164 if eval test x\$$cachevar = xyes; then
7165 CXX="$CXX $switch"
7166 if test -n "$CXXCPP" ; then
7167 CXXCPP="$CXXCPP $switch"
7169 ac_success=yes
7170 break
7172 done
7175 if test x$ac_success = xno; then
7176 for alternative in ${ax_cxx_compile_alternatives}; do
7177 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7178 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7180 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7181 if eval \${$cachevar+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 ac_save_CXX="$CXX"
7185 CXX="$CXX $switch"
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7190 // If the compiler admits that it is not ready for C++11, why torture it?
7191 // Hopefully, this will speed up the test.
7193 #ifndef __cplusplus
7195 #error "This is not a C++ compiler"
7197 #elif __cplusplus < 201103L
7199 #error "This is not a C++11 compiler"
7201 #else
7203 namespace cxx11
7206 namespace test_static_assert
7209 template <typename T>
7210 struct check
7212 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7217 namespace test_final_override
7220 struct Base
7222 virtual ~Base() {}
7223 virtual void f() {}
7226 struct Derived : public Base
7228 virtual ~Derived() override {}
7229 virtual void f() override {}
7234 namespace test_double_right_angle_brackets
7237 template < typename T >
7238 struct check {};
7240 typedef check<void> single_type;
7241 typedef check<check<void>> double_type;
7242 typedef check<check<check<void>>> triple_type;
7243 typedef check<check<check<check<void>>>> quadruple_type;
7247 namespace test_decltype
7253 int a = 1;
7254 decltype(a) b = 2;
7255 return a + b;
7260 namespace test_type_deduction
7263 template < typename T1, typename T2 >
7264 struct is_same
7266 static const bool value = false;
7269 template < typename T >
7270 struct is_same<T, T>
7272 static const bool value = true;
7275 template < typename T1, typename T2 >
7276 auto
7277 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7279 return a1 + a2;
7283 test(const int c, volatile int v)
7285 static_assert(is_same<int, decltype(0)>::value == true, "");
7286 static_assert(is_same<int, decltype(c)>::value == false, "");
7287 static_assert(is_same<int, decltype(v)>::value == false, "");
7288 auto ac = c;
7289 auto av = v;
7290 auto sumi = ac + av + 'x';
7291 auto sumf = ac + av + 1.0;
7292 static_assert(is_same<int, decltype(ac)>::value == true, "");
7293 static_assert(is_same<int, decltype(av)>::value == true, "");
7294 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7295 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7296 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7297 return (sumf > 0.0) ? sumi : add(c, v);
7302 namespace test_noexcept
7305 int f() { return 0; }
7306 int g() noexcept { return 0; }
7308 static_assert(noexcept(f()) == false, "");
7309 static_assert(noexcept(g()) == true, "");
7313 namespace test_constexpr
7316 template < typename CharT >
7317 unsigned long constexpr
7318 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7320 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7323 template < typename CharT >
7324 unsigned long constexpr
7325 strlen_c(const CharT *const s) noexcept
7327 return strlen_c_r(s, 0UL);
7330 static_assert(strlen_c("") == 0UL, "");
7331 static_assert(strlen_c("1") == 1UL, "");
7332 static_assert(strlen_c("example") == 7UL, "");
7333 static_assert(strlen_c("another\0example") == 7UL, "");
7337 namespace test_rvalue_references
7340 template < int N >
7341 struct answer
7343 static constexpr int value = N;
7346 answer<1> f(int&) { return answer<1>(); }
7347 answer<2> f(const int&) { return answer<2>(); }
7348 answer<3> f(int&&) { return answer<3>(); }
7350 void
7351 test()
7353 int i = 0;
7354 const int c = 0;
7355 static_assert(decltype(f(i))::value == 1, "");
7356 static_assert(decltype(f(c))::value == 2, "");
7357 static_assert(decltype(f(0))::value == 3, "");
7362 namespace test_uniform_initialization
7365 struct test
7367 static const int zero {};
7368 static const int one {1};
7371 static_assert(test::zero == 0, "");
7372 static_assert(test::one == 1, "");
7376 namespace test_lambdas
7379 void
7380 test1()
7382 auto lambda1 = [](){};
7383 auto lambda2 = lambda1;
7384 lambda1();
7385 lambda2();
7389 test2()
7391 auto a = [](int i, int j){ return i + j; }(1, 2);
7392 auto b = []() -> int { return '0'; }();
7393 auto c = [=](){ return a + b; }();
7394 auto d = [&](){ return c; }();
7395 auto e = [a, &b](int x) mutable {
7396 const auto identity = [](int y){ return y; };
7397 for (auto i = 0; i < a; ++i)
7398 a += b--;
7399 return x + identity(a + b);
7400 }(0);
7401 return a + b + c + d + e;
7405 test3()
7407 const auto nullary = [](){ return 0; };
7408 const auto unary = [](int x){ return x; };
7409 using nullary_t = decltype(nullary);
7410 using unary_t = decltype(unary);
7411 const auto higher1st = [](nullary_t f){ return f(); };
7412 const auto higher2nd = [unary](nullary_t f1){
7413 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7415 return higher1st(nullary) + higher2nd(nullary)(unary);
7420 namespace test_variadic_templates
7423 template <int...>
7424 struct sum;
7426 template <int N0, int... N1toN>
7427 struct sum<N0, N1toN...>
7429 static constexpr auto value = N0 + sum<N1toN...>::value;
7432 template <>
7433 struct sum<>
7435 static constexpr auto value = 0;
7438 static_assert(sum<>::value == 0, "");
7439 static_assert(sum<1>::value == 1, "");
7440 static_assert(sum<23>::value == 23, "");
7441 static_assert(sum<1, 2>::value == 3, "");
7442 static_assert(sum<5, 5, 11>::value == 21, "");
7443 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7447 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7448 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7449 // because of this.
7450 namespace test_template_alias_sfinae
7453 struct foo {};
7455 template<typename T>
7456 using member = typename T::member_type;
7458 template<typename T>
7459 void func(...) {}
7461 template<typename T>
7462 void func(member<T>*) {}
7464 void test();
7466 void test() { func<foo>(0); }
7470 } // namespace cxx11
7472 #endif // __cplusplus >= 201103L
7476 _ACEOF
7477 if ac_fn_cxx_try_compile "$LINENO"; then :
7478 eval $cachevar=yes
7479 else
7480 eval $cachevar=no
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 CXX="$ac_save_CXX"
7485 eval ac_res=\$$cachevar
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7487 $as_echo "$ac_res" >&6; }
7488 if eval test x\$$cachevar = xyes; then
7489 CXX="$CXX $switch"
7490 if test -n "$CXXCPP" ; then
7491 CXXCPP="$CXXCPP $switch"
7493 ac_success=yes
7494 break
7496 done
7497 if test x$ac_success = xyes; then
7498 break
7500 done
7502 CXX_FOR_BUILD="$CXX"
7503 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7504 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7505 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7506 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7507 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7508 ac_ext=c
7509 ac_cpp='$CPP $CPPFLAGS'
7510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7514 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7515 if test x$ac_success = xno; then
7516 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7519 if test x$ac_success = xno; then
7520 HAVE_CXX11_FOR_BUILD=0
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7522 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7523 else
7524 HAVE_CXX11_FOR_BUILD=1
7526 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7534 # Used for setting $lt_cv_objdir
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7536 $as_echo_n "checking for objdir... " >&6; }
7537 if ${lt_cv_objdir+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 rm -f .libs 2>/dev/null
7541 mkdir .libs 2>/dev/null
7542 if test -d .libs; then
7543 lt_cv_objdir=.libs
7544 else
7545 # MS-DOS does not allow filenames that begin with a dot.
7546 lt_cv_objdir=_libs
7548 rmdir .libs 2>/dev/null
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7551 $as_echo "$lt_cv_objdir" >&6; }
7552 objdir=$lt_cv_objdir
7558 cat >>confdefs.h <<_ACEOF
7559 #define LT_OBJDIR "$lt_cv_objdir/"
7560 _ACEOF
7564 # Check for GMP, MPFR and MPC
7565 gmplibs="-lmpc -lmpfr -lgmp"
7566 gmpinc=
7567 have_gmp=no
7569 # Specify a location for mpc
7570 # check for this first so it ends up on the link line before mpfr.
7572 # Check whether --with-mpc was given.
7573 if test "${with_mpc+set}" = set; then :
7574 withval=$with_mpc;
7578 # Check whether --with-mpc-include was given.
7579 if test "${with_mpc_include+set}" = set; then :
7580 withval=$with_mpc_include;
7584 # Check whether --with-mpc-lib was given.
7585 if test "${with_mpc_lib+set}" = set; then :
7586 withval=$with_mpc_lib;
7590 if test "x$with_mpc" != x; then
7591 gmplibs="-L$with_mpc/lib $gmplibs"
7592 gmpinc="-I$with_mpc/include $gmpinc"
7594 if test "x$with_mpc_include" != x; then
7595 gmpinc="-I$with_mpc_include $gmpinc"
7597 if test "x$with_mpc_lib" != x; then
7598 gmplibs="-L$with_mpc_lib $gmplibs"
7600 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7601 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7602 gmpinc='-I$$s/mpc/src '"$gmpinc"
7603 # Do not test the mpc version. Assume that it is sufficient, since
7604 # it is in the source tree, and the library has not been built yet
7605 # but it would be included on the link line in the version check below
7606 # hence making the test fail.
7607 have_gmp=yes
7610 # Specify a location for mpfr
7611 # check for this first so it ends up on the link line before gmp.
7613 # Check whether --with-mpfr-dir was given.
7614 if test "${with_mpfr_dir+set}" = set; then :
7615 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7616 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7621 # Check whether --with-mpfr was given.
7622 if test "${with_mpfr+set}" = set; then :
7623 withval=$with_mpfr;
7627 # Check whether --with-mpfr-include was given.
7628 if test "${with_mpfr_include+set}" = set; then :
7629 withval=$with_mpfr_include;
7633 # Check whether --with-mpfr-lib was given.
7634 if test "${with_mpfr_lib+set}" = set; then :
7635 withval=$with_mpfr_lib;
7639 if test "x$with_mpfr" != x; then
7640 gmplibs="-L$with_mpfr/lib $gmplibs"
7641 gmpinc="-I$with_mpfr/include $gmpinc"
7643 if test "x$with_mpfr_include" != x; then
7644 gmpinc="-I$with_mpfr_include $gmpinc"
7646 if test "x$with_mpfr_lib" != x; then
7647 gmplibs="-L$with_mpfr_lib $gmplibs"
7649 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7650 # MPFR v3.1.0 moved the sources into a src sub-directory.
7651 if ! test -d ${srcdir}/mpfr/src; then
7652 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7654 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7655 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7656 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7657 # Do not test the mpfr version. Assume that it is sufficient, since
7658 # it is in the source tree, and the library has not been built yet
7659 # but it would be included on the link line in the version check below
7660 # hence making the test fail.
7661 have_gmp=yes
7664 # Specify a location for gmp
7666 # Check whether --with-gmp-dir was given.
7667 if test "${with_gmp_dir+set}" = set; then :
7668 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7669 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7674 # Check whether --with-gmp was given.
7675 if test "${with_gmp+set}" = set; then :
7676 withval=$with_gmp;
7680 # Check whether --with-gmp-include was given.
7681 if test "${with_gmp_include+set}" = set; then :
7682 withval=$with_gmp_include;
7686 # Check whether --with-gmp-lib was given.
7687 if test "${with_gmp_lib+set}" = set; then :
7688 withval=$with_gmp_lib;
7693 if test "x$with_gmp" != x; then
7694 gmplibs="-L$with_gmp/lib $gmplibs"
7695 gmpinc="-I$with_gmp/include $gmpinc"
7697 if test "x$with_gmp_include" != x; then
7698 gmpinc="-I$with_gmp_include $gmpinc"
7700 if test "x$with_gmp_lib" != x; then
7701 gmplibs="-L$with_gmp_lib $gmplibs"
7703 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7704 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7705 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7706 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7707 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7708 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7709 # Do not test the gmp version. Assume that it is sufficient, since
7710 # it is in the source tree, and the library has not been built yet
7711 # but it would be included on the link line in the version check below
7712 # hence making the test fail.
7713 have_gmp=yes
7716 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7717 have_gmp=yes
7718 saved_CFLAGS="$CFLAGS"
7719 CFLAGS="$CFLAGS $gmpinc"
7720 # Check for the recommended and required versions of GMP.
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7722 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 #include "gmp.h"
7728 main ()
7731 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7732 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7733 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7734 choke me
7735 #endif
7738 return 0;
7740 _ACEOF
7741 if ac_fn_c_try_compile "$LINENO"; then :
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744 #include <gmp.h>
7746 main ()
7749 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7750 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7751 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7752 choke me
7753 #endif
7756 return 0;
7758 _ACEOF
7759 if ac_fn_c_try_compile "$LINENO"; then :
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7761 $as_echo "yes" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7764 $as_echo "buggy but acceptable" >&6; }
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 else
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }; have_gmp=no
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773 # If we have GMP, check the MPFR version.
7774 if test x"$have_gmp" = xyes; then
7775 # Check for the recommended and required versions of MPFR.
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7777 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 #include <gmp.h>
7781 #include <mpfr.h>
7783 main ()
7786 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7787 choke me
7788 #endif
7791 return 0;
7793 _ACEOF
7794 if ac_fn_c_try_compile "$LINENO"; then :
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797 #include <gmp.h>
7798 #include <mpfr.h>
7800 main ()
7803 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
7804 choke me
7805 #endif
7808 return 0;
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7813 $as_echo "yes" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7816 $as_echo "buggy but acceptable" >&6; }
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }; have_gmp=no
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826 # Check for the MPC header version.
7827 if test x"$have_gmp" = xyes ; then
7828 # Check for the recommended and required versions of MPC.
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
7830 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 #include <mpc.h>
7835 main ()
7838 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
7839 choke me
7840 #endif
7843 return 0;
7845 _ACEOF
7846 if ac_fn_c_try_compile "$LINENO"; then :
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 #include <mpc.h>
7851 main ()
7854 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
7855 choke me
7856 #endif
7859 return 0;
7861 _ACEOF
7862 if ac_fn_c_try_compile "$LINENO"; then :
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7864 $as_echo "yes" >&6; }
7865 else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7867 $as_echo "buggy but acceptable" >&6; }
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }; have_gmp=no
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 # Now check the MPFR library.
7878 if test x"$have_gmp" = xyes; then
7879 saved_LIBS="$LIBS"
7880 LIBS="$LIBS $gmplibs"
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
7882 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885 #include <mpc.h>
7887 main ()
7890 mpfr_t n;
7891 mpfr_t x;
7892 mpc_t c;
7893 int t;
7894 mpfr_init (n);
7895 mpfr_init (x);
7896 mpfr_atan2 (n, n, x, MPFR_RNDN);
7897 mpfr_erfc (n, x, MPFR_RNDN);
7898 mpfr_subnormalize (x, t, MPFR_RNDN);
7899 mpfr_clear(n);
7900 mpfr_clear(x);
7901 mpc_init2 (c, 53);
7902 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
7903 mpc_cosh (c, c, MPC_RNDNN);
7904 mpc_pow (c, c, c, MPC_RNDNN);
7905 mpc_acosh (c, c, MPC_RNDNN);
7906 mpc_clear (c);
7909 return 0;
7911 _ACEOF
7912 if ac_fn_c_try_link "$LINENO"; then :
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914 $as_echo "yes" >&6; }
7915 else
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }; have_gmp=no
7919 rm -f core conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7921 LIBS="$saved_LIBS"
7924 CFLAGS="$saved_CFLAGS"
7926 # The library versions listed in the error message below should match
7927 # the HARD-minimums enforced above.
7928 if test x$have_gmp != xyes; then
7929 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
7930 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
7931 their locations. Source code for these libraries can be found at
7932 their respective hosting sites as well as at
7933 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
7934 http://gcc.gnu.org/install/prerequisites.html for additional info. If
7935 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
7936 make sure that you have installed both the libraries and the header
7937 files. They may be located in separate packages." "$LINENO" 5
7941 # Flags needed for both GMP, MPFR and/or MPC.
7949 # Libraries to use for stage1 or when not bootstrapping.
7951 # Check whether --with-stage1-libs was given.
7952 if test "${with_stage1_libs+set}" = set; then :
7953 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
7954 stage1_libs=
7955 else
7956 stage1_libs=$withval
7958 else
7959 stage1_libs=
7964 # Whether or not to use -static-libstdc++ and -static-libgcc. The
7965 # default is yes if gcc is being built; no otherwise. The reason for
7966 # this default is that gdb is sometimes linked against GNU Source
7967 # Highlight, which is a shared library that uses C++ exceptions. In
7968 # this case, -static-libstdc++ will cause crashes.
7970 # Check whether --with-static-standard-libraries was given.
7971 if test "${with_static_standard_libraries+set}" = set; then :
7972 withval=$with_static_standard_libraries;
7973 else
7974 with_static_standard_libraries=auto
7977 if test "$with_static_standard_libraries" = auto; then
7978 with_static_standard_libraries=$have_compiler
7981 # Linker flags to use for stage1 or when not bootstrapping.
7983 # Check whether --with-stage1-ldflags was given.
7984 if test "${with_stage1_ldflags+set}" = set; then :
7985 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7986 stage1_ldflags=
7987 else
7988 stage1_ldflags=$withval
7990 else
7991 stage1_ldflags=
7992 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
7993 # if supported. But if the user explicitly specified the libraries to use,
7994 # trust that they are doing what they want.
7995 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
7996 -a "$have_static_libs" = yes; then
7997 stage1_ldflags="-static-libstdc++ -static-libgcc"
8003 # Libraries to use for stage2 and later builds.
8005 # Check whether --with-boot-libs was given.
8006 if test "${with_boot_libs+set}" = set; then :
8007 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8008 poststage1_libs=
8009 else
8010 poststage1_libs=$withval
8012 else
8013 poststage1_libs=
8018 # Linker flags to use for stage2 and later builds.
8020 # Check whether --with-boot-ldflags was given.
8021 if test "${with_boot_ldflags+set}" = set; then :
8022 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8023 poststage1_ldflags=
8024 else
8025 poststage1_ldflags=$withval
8027 else
8028 poststage1_ldflags=
8029 # In stages 2 and 3, default to linking libstdc++ and libgcc
8030 # statically. But if the user explicitly specified the libraries to
8031 # use, trust that they are doing what they want.
8032 if test "$poststage1_libs" = ""; then
8033 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8039 # GCC GRAPHITE dependency isl.
8040 # Basic setup is inlined here, actual checks are in config/isl.m4
8043 # Check whether --with-isl was given.
8044 if test "${with_isl+set}" = set; then :
8045 withval=$with_isl;
8049 # Treat --without-isl as a request to disable
8050 # GRAPHITE support and skip all following checks.
8051 if test "x$with_isl" != "xno"; then
8052 # Check for isl
8055 # Check whether --with-isl-include was given.
8056 if test "${with_isl_include+set}" = set; then :
8057 withval=$with_isl_include;
8061 # Check whether --with-isl-lib was given.
8062 if test "${with_isl_lib+set}" = set; then :
8063 withval=$with_isl_lib;
8067 # Check whether --enable-isl-version-check was given.
8068 if test "${enable_isl_version_check+set}" = set; then :
8069 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8070 else
8071 ENABLE_ISL_CHECK=yes
8075 # Initialize isllibs and islinc.
8076 case $with_isl in
8078 isllibs=
8079 islinc=
8081 "" | yes)
8084 isllibs="-L$with_isl/lib"
8085 islinc="-I$with_isl/include"
8087 esac
8088 if test "x${with_isl_include}" != x ; then
8089 islinc="-I$with_isl_include"
8091 if test "x${with_isl_lib}" != x; then
8092 isllibs="-L$with_isl_lib"
8094 if test "x${islinc}" = x && test "x${isllibs}" = x \
8095 && test -d ${srcdir}/isl; then
8096 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8097 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8098 ENABLE_ISL_CHECK=no
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8100 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8103 isllibs="${isllibs} -lisl"
8107 if test "${ENABLE_ISL_CHECK}" = yes ; then
8108 _isl_saved_CFLAGS=$CFLAGS
8109 _isl_saved_LDFLAGS=$LDFLAGS
8110 _isl_saved_LIBS=$LIBS
8112 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8113 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8114 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8117 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 #include <isl/schedule.h>
8122 main ()
8124 isl_options_set_schedule_serialize_sccs (NULL, 0);
8126 return 0;
8128 _ACEOF
8129 if ac_fn_c_try_link "$LINENO"; then :
8130 gcc_cv_isl=yes
8131 else
8132 gcc_cv_isl=no
8134 rm -f core conftest.err conftest.$ac_objext \
8135 conftest$ac_exeext conftest.$ac_ext
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8137 $as_echo "$gcc_cv_isl" >&6; }
8139 if test "${gcc_cv_isl}" = no ; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8141 $as_echo "required isl version is 0.15 or later" >&6; }
8144 CFLAGS=$_isl_saved_CFLAGS
8145 LDFLAGS=$_isl_saved_LDFLAGS
8146 LIBS=$_isl_saved_LIBS
8154 if test "x${with_isl}" = xno; then
8155 graphite_requested=no
8156 elif test "x${with_isl}" != x \
8157 || test "x${with_isl_include}" != x \
8158 || test "x${with_isl_lib}" != x ; then
8159 graphite_requested=yes
8160 else
8161 graphite_requested=no
8166 if test "${gcc_cv_isl}" = no ; then
8167 isllibs=
8168 islinc=
8171 if test "${graphite_requested}" = yes \
8172 && test "x${isllibs}" = x \
8173 && test "x${islinc}" = x ; then
8175 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8181 # If the isl check failed, disable builds of in-tree variant of isl
8182 if test "x$with_isl" = xno ||
8183 test "x$gcc_cv_isl" = xno; then
8184 noconfigdirs="$noconfigdirs isl"
8185 islinc=
8191 # Check for LTO support.
8192 # Check whether --enable-lto was given.
8193 if test "${enable_lto+set}" = set; then :
8194 enableval=$enable_lto; enable_lto=$enableval
8195 else
8196 enable_lto=yes; default_enable_lto=yes
8203 target_elf=no
8204 case $target in
8205 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8206 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8207 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8208 nvptx-*-none)
8209 target_elf=no
8212 target_elf=yes
8214 esac
8216 if test $target_elf = yes; then :
8217 # ELF platforms build the lto-plugin always.
8218 build_lto_plugin=yes
8220 else
8221 if test x"$default_enable_lto" = x"yes" ; then
8222 case $target in
8223 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8224 # On other non-ELF platforms, LTO has yet to be validated.
8225 *) enable_lto=no ;;
8226 esac
8227 else
8228 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8229 # It would also be nice to check the binutils support, but we don't
8230 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8231 # warn during gcc/ subconfigure; unless you're bootstrapping with
8232 # -flto it won't be needed until after installation anyway.
8233 case $target in
8234 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8235 *) if test x"$enable_lto" = x"yes"; then
8236 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8239 esac
8241 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8242 # Build it unless LTO was explicitly disabled.
8243 case $target in
8244 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8245 *) ;;
8246 esac
8251 # Check whether --enable-linker-plugin-configure-flags was given.
8252 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8253 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8254 else
8255 extra_linker_plugin_configure_flags=
8259 # Check whether --enable-linker-plugin-flags was given.
8260 if test "${enable_linker_plugin_flags+set}" = set; then :
8261 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8262 else
8263 extra_linker_plugin_flags=
8268 # Enable --enable-host-shared.
8269 # Checked early to determine whether jit is an 'all' language
8270 # Check whether --enable-host-shared was given.
8271 if test "${enable_host_shared+set}" = set; then :
8272 enableval=$enable_host_shared; host_shared=$enableval
8273 else
8274 host_shared=no
8279 # By default, C and C++ are the only stage 1 languages.
8280 stage1_languages=,c,
8282 # Target libraries that we bootstrap.
8283 bootstrap_target_libs=,target-libgcc,
8285 # Figure out what language subdirectories are present.
8286 # Look if the user specified --enable-languages="..."; if not, use
8287 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8288 # go away some day.
8289 # NB: embedded tabs in this IF block -- do not untabify
8290 if test -d ${srcdir}/gcc; then
8291 if test x"${enable_languages+set}" != xset; then
8292 if test x"${LANGUAGES+set}" = xset; then
8293 enable_languages="${LANGUAGES}"
8294 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8295 else
8296 enable_languages=default
8298 else
8299 if test x"${enable_languages}" = x ||
8300 test x"${enable_languages}" = xyes;
8301 then
8302 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8303 exit 1
8306 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8308 # 'f95' is the old name for the 'fortran' language. We issue a warning
8309 # and make the substitution.
8310 case ,${enable_languages}, in
8311 *,f95,*)
8312 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8313 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8315 esac
8317 # If bootstrapping, C++ must be enabled.
8318 case ",$enable_languages,:$enable_bootstrap" in
8319 *,c++,*:*) ;;
8320 *:yes)
8321 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8322 enable_languages="${enable_languages},c++"
8323 else
8324 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8327 esac
8329 # First scan to see if an enabled language requires some other language.
8330 # We assume that a given config-lang.in will list all the language
8331 # front ends it requires, even if some are required indirectly.
8332 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8333 case ${lang_frag} in
8334 ..) ;;
8335 # The odd quoting in the next line works around
8336 # an apparent bug in bash 1.12 on linux.
8337 ${srcdir}/gcc/[*]/config-lang.in) ;;
8339 # From the config-lang.in, get $language, $lang_requires, and
8340 # $lang_requires_boot_languages.
8341 language=
8342 lang_requires=
8343 lang_requires_boot_languages=
8344 # set srcdir during sourcing lang_frag to the gcc dir.
8345 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8346 # polutes this shell
8347 saved_srcdir=${srcdir}
8348 srcdir=${srcdir}/gcc . ${lang_frag}
8349 srcdir=${saved_srcdir}
8350 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8351 case ,${enable_languages}, in
8352 *,$other,*) ;;
8353 *,default,*) ;;
8354 *,all,*) ;;
8355 *,$language,*)
8356 echo " \`$other' language required by \`$language'; enabling" 1>&2
8357 enable_languages="${enable_languages},${other}"
8359 esac
8360 done
8361 for other in ${lang_requires_boot_languages} ; do
8362 if test "$other" != "c"; then
8363 case ,${enable_stage1_languages}, in
8364 *,$other,*) ;;
8365 *,default,*) ;;
8366 *,all,*) ;;
8368 case ,${enable_languages}, in
8369 *,$language,*)
8370 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8371 enable_stage1_languages="$enable_stage1_languages,${other}"
8373 esac
8375 esac
8377 done
8379 esac
8380 done
8382 new_enable_languages=,c,
8384 # If LTO is enabled, add the LTO front end.
8385 if test "$enable_lto" = "yes" ; then
8386 case ,${enable_languages}, in
8387 *,lto,*) ;;
8388 *) enable_languages="${enable_languages},lto" ;;
8389 esac
8390 if test "${build_lto_plugin}" = "yes" ; then
8391 configdirs="$configdirs lto-plugin"
8395 # If we're building an offloading compiler, add the LTO front end.
8396 if test x"$enable_as_accelerator_for" != x ; then
8397 case ,${enable_languages}, in
8398 *,lto,*) ;;
8399 *) enable_languages="${enable_languages},lto" ;;
8400 esac
8403 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8404 potential_languages=,c,
8406 enabled_target_libs=
8407 disabled_target_libs=
8409 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8410 case ${lang_frag} in
8411 ..) ;;
8412 # The odd quoting in the next line works around
8413 # an apparent bug in bash 1.12 on linux.
8414 ${srcdir}/gcc/[*]/config-lang.in) ;;
8416 # From the config-lang.in, get $language, $target_libs,
8417 # $lang_dirs, $boot_language, and $build_by_default
8418 language=
8419 target_libs=
8420 lang_dirs=
8421 subdir_requires=
8422 boot_language=no
8423 build_by_default=yes
8424 # set srcdir during sourcing. See above about save & restore
8425 saved_srcdir=${srcdir}
8426 srcdir=${srcdir}/gcc . ${lang_frag}
8427 srcdir=${saved_srcdir}
8428 if test x${language} = x; then
8429 echo "${lang_frag} doesn't set \$language." 1>&2
8430 exit 1
8433 if test "$language" = "c++"; then
8434 boot_language=yes
8437 add_this_lang=no
8438 # C is always enabled, so no need to add it again
8439 if test "$language" != "c"; then
8440 case ,${enable_languages}, in
8441 *,${language},*)
8442 # Language was explicitly selected; include it
8443 add_this_lang=yes
8445 *,all,*)
8446 # All languages are enabled
8447 add_this_lang=all
8449 *,default,*)
8450 # 'default' was selected, select it if it is a default language
8451 add_this_lang=${build_by_default}
8453 esac
8456 # Disable languages that need other directories if these aren't available.
8457 for i in $subdir_requires; do
8458 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8459 case ${add_this_lang} in
8460 yes)
8461 # Specifically requested language; tell them.
8462 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8464 all)
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8466 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8467 add_this_lang=unsupported
8470 # Silently disable.
8471 add_this_lang=unsupported
8473 esac
8474 done
8476 # Disable Ada if no preexisting GNAT is available.
8477 case ${add_this_lang}:${language}:${have_gnat} in
8478 yes:ada:no)
8479 # Specifically requested language; tell them.
8480 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8482 all:ada:no)
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8484 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8485 add_this_lang=unsupported
8487 *:ada:no)
8488 # Silently disable.
8489 add_this_lang=unsupported
8491 esac
8493 # Disable jit if -enable-host-shared not specified
8494 # but not if building for Mingw. All code in Windows
8495 # is position independent code (PIC).
8496 case $target in
8497 *mingw*) ;;
8499 case ${add_this_lang}:${language}:${host_shared} in
8500 yes:jit:no)
8501 # PR jit/64780: explicitly specify --enable-host-shared
8502 as_fn_error $? "
8503 Enabling language \"jit\" requires --enable-host-shared.
8505 --enable-host-shared typically slows the rest of the compiler down by
8506 a few %, so you must explicitly enable it.
8508 If you want to build both the jit and the regular compiler, it is often
8509 best to do this via two separate configure/builds, in separate
8510 directories, to avoid imposing the performance cost of
8511 --enable-host-shared on the regular compiler." "$LINENO" 5
8513 all:jit:no)
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8515 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8516 add_this_lang=unsupported
8518 *:jit:no)
8519 # Silently disable.
8520 add_this_lang=unsupported
8522 esac
8524 esac
8526 # Disable a language that is unsupported by the target.
8527 case "${add_this_lang}: $unsupported_languages " in
8528 no:*) ;;
8529 unsupported:*) ;;
8530 *:*" $language "*)
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8532 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8533 add_this_lang=unsupported
8535 esac
8537 case $add_this_lang in
8538 unsupported)
8539 # Remove language-dependent dirs.
8540 disabled_target_libs="$disabled_target_libs $target_libs"
8541 noconfigdirs="$noconfigdirs $lang_dirs"
8544 # Remove language-dependent dirs; still show language as supported.
8545 disabled_target_libs="$disabled_target_libs $target_libs"
8546 noconfigdirs="$noconfigdirs $lang_dirs"
8547 potential_languages="${potential_languages}${language},"
8549 all|yes)
8550 new_enable_languages="${new_enable_languages}${language},"
8551 potential_languages="${potential_languages}${language},"
8552 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8553 enabled_target_libs="$enabled_target_libs $target_libs"
8554 case "${boot_language}:,$enable_stage1_languages," in
8555 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8556 # Add to (comma-separated) list of stage 1 languages.
8557 case ",$stage1_languages," in
8558 *,$language,* | ,yes, | ,all,) ;;
8559 *) stage1_languages="${stage1_languages}${language}," ;;
8560 esac
8561 # We need to bootstrap any supporting libraries.
8562 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
8564 esac
8566 esac
8568 esac
8569 done
8571 # Add target libraries which are only needed for disabled languages
8572 # to noconfigdirs.
8573 if test -n "$disabled_target_libs"; then
8574 for dir in $disabled_target_libs; do
8575 case " $enabled_target_libs " in
8576 *" ${dir} "*) ;;
8577 *) noconfigdirs="$noconfigdirs $dir" ;;
8578 esac
8579 done
8582 # Check whether --enable-stage1-languages was given.
8583 if test "${enable_stage1_languages+set}" = set; then :
8584 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8585 ,no,|,,)
8586 # Set it to something that will have no effect in the loop below
8587 enable_stage1_languages=c ;;
8588 ,yes,)
8589 enable_stage1_languages=`echo $new_enable_languages | \
8590 sed -e "s/^,//" -e "s/,$//" ` ;;
8591 *,all,*)
8592 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8593 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8594 esac
8596 # Add "good" languages from enable_stage1_languages to stage1_languages,
8597 # while "bad" languages go in missing_languages. Leave no duplicates.
8598 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8599 case $potential_languages in
8600 *,$i,*)
8601 case $stage1_languages in
8602 *,$i,*) ;;
8603 *) stage1_languages="$stage1_languages$i," ;;
8604 esac ;;
8606 case $missing_languages in
8607 *,$i,*) ;;
8608 *) missing_languages="$missing_languages$i," ;;
8609 esac ;;
8610 esac
8611 done
8615 # Remove leading/trailing commas that were added for simplicity
8616 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8617 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8618 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8619 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8621 if test "x$missing_languages" != x; then
8622 as_fn_error $? "
8623 The following requested languages could not be built: ${missing_languages}
8624 Supported languages are: ${potential_languages}" "$LINENO" 5
8626 if test "x$new_enable_languages" != "x$enable_languages"; then
8627 echo The following languages will be built: ${new_enable_languages}
8628 enable_languages="$new_enable_languages"
8632 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8635 # Handle --disable-<component> generically.
8636 for dir in $configdirs $build_configdirs $target_configdirs ; do
8637 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8638 varname=`echo $dirname | sed -e s/+/_/g`
8639 if eval test x\${enable_${varname}} "=" xno ; then
8640 noconfigdirs="$noconfigdirs $dir"
8642 done
8644 # Check for Boehm's garbage collector
8645 # Check whether --enable-objc-gc was given.
8646 if test "${enable_objc_gc+set}" = set; then :
8647 enableval=$enable_objc_gc;
8651 # Check whether --with-target-bdw-gc was given.
8652 if test "${with_target_bdw_gc+set}" = set; then :
8653 withval=$with_target_bdw_gc;
8657 # Check whether --with-target-bdw-gc-include was given.
8658 if test "${with_target_bdw_gc_include+set}" = set; then :
8659 withval=$with_target_bdw_gc_include;
8663 # Check whether --with-target-bdw-gc-lib was given.
8664 if test "${with_target_bdw_gc_lib+set}" = set; then :
8665 withval=$with_target_bdw_gc_lib;
8669 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8671 $as_echo_n "checking for bdw garbage collector... " >&6; }
8672 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8674 $as_echo "using bdw-gc in default locations" >&6; }
8675 else
8676 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8677 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8678 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8679 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8680 else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8682 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8685 esac
8687 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8688 case ,${enable_languages}, in
8689 *,c++,*)
8690 # Disable libitm, libsanitizer if we're not building libstdc++
8691 case "${noconfigdirs}" in
8692 *target-libstdc++-v3*)
8693 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
8695 *) ;;
8696 esac
8699 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8701 esac
8703 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8704 # $build_configdirs and $target_configdirs.
8705 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8707 notsupp=""
8708 for dir in . $skipdirs $noconfigdirs ; do
8709 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8710 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8711 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8712 if test -r $srcdir/$dirname/configure ; then
8713 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8714 true
8715 else
8716 notsupp="$notsupp $dir"
8720 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8721 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8722 if test -r $srcdir/$dirname/configure ; then
8723 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8724 true
8725 else
8726 notsupp="$notsupp $dir"
8730 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8731 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8732 if test -r $srcdir/$dirname/configure ; then
8733 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8734 true
8735 else
8736 notsupp="$notsupp $dir"
8740 done
8742 # Quietly strip out all directories which aren't configurable in this tree.
8743 # This relies on all configurable subdirectories being autoconfiscated, which
8744 # is now the case.
8745 build_configdirs_all="$build_configdirs"
8746 build_configdirs=
8747 for i in ${build_configdirs_all} ; do
8748 j=`echo $i | sed -e s/build-//g`
8749 if test -f ${srcdir}/$j/configure ; then
8750 build_configdirs="${build_configdirs} $i"
8752 done
8754 configdirs_all="$configdirs"
8755 configdirs=
8756 for i in ${configdirs_all} ; do
8757 if test -f ${srcdir}/$i/configure ; then
8758 configdirs="${configdirs} $i"
8760 done
8762 target_configdirs_all="$target_configdirs"
8763 target_configdirs=
8764 for i in ${target_configdirs_all} ; do
8765 j=`echo $i | sed -e s/target-//g`
8766 if test -f ${srcdir}/$j/configure ; then
8767 target_configdirs="${target_configdirs} $i"
8769 done
8771 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8772 # so we have to add it after the preceding checks.
8773 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8774 then
8775 case " $configdirs " in
8776 *" libiberty "*)
8777 # If we can build libiberty, we can also build libiberty-linker-plugin.
8778 configdirs="$configdirs libiberty-linker-plugin"
8779 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8780 --with-libiberty=../libiberty-linker-plugin";;
8782 as_fn_error $? "libiberty missing" "$LINENO" 5;;
8783 esac
8786 # Sometimes we have special requirements for the host libiberty.
8787 extra_host_libiberty_configure_flags=
8788 extra_host_zlib_configure_flags=
8789 case " $configdirs " in
8790 *" lto-plugin "* | *" libcc1 "*)
8791 # When these are to be built as shared libraries, the same applies to
8792 # libiberty.
8793 extra_host_libiberty_configure_flags=--enable-shared
8795 *" bfd "*)
8796 # When bfd is to be built as a shared library, the same applies to
8797 # zlib.
8798 if test "$enable_shared" = "yes"; then
8799 extra_host_zlib_configure_flags=--enable-host-shared
8802 esac
8806 # Produce a warning message for the subdirs we can't configure.
8807 # This isn't especially interesting in the Cygnus tree, but in the individual
8808 # FSF releases, it's important to let people know when their machine isn't
8809 # supported by the one or two programs in a package.
8811 if test -n "${notsupp}" && test -z "${norecursion}" ; then
8812 # If $appdirs is non-empty, at least one of those directories must still
8813 # be configured, or we error out. (E.g., if the gas release supports a
8814 # specified target in some subdirs but not the gas subdir, we shouldn't
8815 # pretend that all is well.)
8816 if test -n "$appdirs" ; then
8817 for dir in $appdirs ; do
8818 if test -r $dir/Makefile.in ; then
8819 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8820 appdirs=""
8821 break
8823 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8824 appdirs=""
8825 break
8828 done
8829 if test -n "$appdirs" ; then
8830 echo "*** This configuration is not supported by this package." 1>&2
8831 exit 1
8834 # Okay, some application will build, or we don't care to check. Still
8835 # notify of subdirs not getting built.
8836 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
8837 echo " ${notsupp}" 1>&2
8838 echo " (Any other directories should still work fine.)" 1>&2
8841 case "$host" in
8842 *msdosdjgpp*)
8843 enable_gdbtk=no ;;
8844 esac
8846 # To find our prefix, in gcc_cv_tool_prefix.
8848 # The user is always right.
8849 if test "${PATH_SEPARATOR+set}" != set; then
8850 echo "#! /bin/sh" >conf$$.sh
8851 echo "exit 0" >>conf$$.sh
8852 chmod +x conf$$.sh
8853 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8854 PATH_SEPARATOR=';'
8855 else
8856 PATH_SEPARATOR=:
8858 rm -f conf$$.sh
8862 get_gcc_base_ver="cat"
8864 # Check whether --with-gcc-major-version-only was given.
8865 if test "${with_gcc_major_version_only+set}" = set; then :
8866 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
8867 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
8877 if test "x$exec_prefix" = xNONE; then
8878 if test "x$prefix" = xNONE; then
8879 gcc_cv_tool_prefix=$ac_default_prefix
8880 else
8881 gcc_cv_tool_prefix=$prefix
8883 else
8884 gcc_cv_tool_prefix=$exec_prefix
8887 # If there is no compiler in the tree, use the PATH only. In any
8888 # case, if there is no compiler in the tree nobody should use
8889 # AS_FOR_TARGET and LD_FOR_TARGET.
8890 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
8891 if test x$with_gcc_major_version_only = xyes ; then
8892 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
8893 else
8894 gcc_version=`cat $srcdir/gcc/BASE-VER`
8896 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8897 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
8898 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8899 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
8900 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8901 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
8902 else
8903 gcc_cv_tool_dirs=
8906 if test x$build = x$target && test -n "$md_exec_prefix"; then
8907 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
8912 copy_dirs=
8915 # Check whether --with-build-sysroot was given.
8916 if test "${with_build_sysroot+set}" = set; then :
8917 withval=$with_build_sysroot; if test x"$withval" != x ; then
8918 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
8920 else
8921 SYSROOT_CFLAGS_FOR_TARGET=
8927 # Check whether --with-debug-prefix-map was given.
8928 if test "${with_debug_prefix_map+set}" = set; then :
8929 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8930 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
8931 for debug_map in $withval; do
8932 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
8933 done
8935 else
8936 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
8941 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
8942 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
8943 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
8944 # We want to ensure that TARGET libraries (which we know are built with
8945 # gcc) are built with "-O2 -g", so include those options when setting
8946 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
8947 if test "x$CFLAGS_FOR_TARGET" = x; then
8948 if test "x${is_cross_compiler}" = xyes; then
8949 CFLAGS_FOR_TARGET="-g -O2"
8950 else
8951 CFLAGS_FOR_TARGET=$CFLAGS
8952 case " $CFLAGS " in
8953 *" -O2 "*) ;;
8954 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
8955 esac
8956 case " $CFLAGS " in
8957 *" -g "* | *" -g3 "*) ;;
8958 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
8959 esac
8964 if test "x$CXXFLAGS_FOR_TARGET" = x; then
8965 if test "x${is_cross_compiler}" = xyes; then
8966 CXXFLAGS_FOR_TARGET="-g -O2"
8967 else
8968 CXXFLAGS_FOR_TARGET=$CXXFLAGS
8969 case " $CXXFLAGS " in
8970 *" -O2 "*) ;;
8971 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
8972 esac
8973 case " $CXXFLAGS " in
8974 *" -g "* | *" -g3 "*) ;;
8975 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
8976 esac
8983 # Handle --with-headers=XXX. If the value is not "yes", the contents of
8984 # the named directory are copied to $(tooldir)/sys-include.
8985 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
8986 if test x${is_cross_compiler} = xno ; then
8987 echo 1>&2 '***' --with-headers is only supported when cross compiling
8988 exit 1
8990 if test x"${with_headers}" != xyes ; then
8991 x=${gcc_cv_tool_prefix}
8992 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8996 # Handle --with-libs=XXX. If the value is not "yes", the contents of
8997 # the name directories are copied to $(tooldir)/lib. Multiple directories
8998 # are permitted.
8999 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9000 if test x${is_cross_compiler} = xno ; then
9001 echo 1>&2 '***' --with-libs is only supported when cross compiling
9002 exit 1
9004 if test x"${with_libs}" != xyes ; then
9005 # Copy the libraries in reverse order, so that files in the first named
9006 # library override files in subsequent libraries.
9007 x=${gcc_cv_tool_prefix}
9008 for l in ${with_libs}; do
9009 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9010 done
9014 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9016 # This is done by determining whether or not the appropriate directory
9017 # is available, and by checking whether or not specific configurations
9018 # have requested that this magic not happen.
9020 # The command line options always override the explicit settings in
9021 # configure.ac, and the settings in configure.ac override this magic.
9023 # If the default for a toolchain is to use GNU as and ld, and you don't
9024 # want to do that, then you should use the --without-gnu-as and
9025 # --without-gnu-ld options for the configure script. Similarly, if
9026 # the default is to use the included zlib and you don't want to do that,
9027 # you should use the --with-system-zlib option for the configure script.
9029 if test x${use_gnu_as} = x &&
9030 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9031 with_gnu_as=yes
9032 extra_host_args="$extra_host_args --with-gnu-as"
9035 if test x${use_gnu_ld} = x &&
9036 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9037 with_gnu_ld=yes
9038 extra_host_args="$extra_host_args --with-gnu-ld"
9041 if test x${use_included_zlib} = x &&
9042 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9044 else
9045 with_system_zlib=yes
9046 extra_host_args="$extra_host_args --with-system-zlib"
9049 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9050 # can detect this case.
9052 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9053 with_newlib=yes
9054 extra_host_args="$extra_host_args --with-newlib"
9057 # Handle ${copy_dirs}
9058 set fnord ${copy_dirs}
9059 shift
9060 while test $# != 0 ; do
9061 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9063 else
9064 echo Copying $1 to $2
9066 # Use the install script to create the directory and all required
9067 # parent directories.
9068 if test -d $2 ; then
9070 else
9071 echo >config.temp
9072 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9075 # Copy the directory, assuming we have tar.
9076 # FIXME: Should we use B in the second tar? Not all systems support it.
9077 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9079 # It is the responsibility of the user to correctly adjust all
9080 # symlinks. If somebody can figure out how to handle them correctly
9081 # here, feel free to add the code.
9083 echo $1 > $2/COPIED
9085 shift; shift
9086 done
9088 # Determine a target-dependent exec_prefix that the installed
9089 # gcc will search in. Keep this list sorted by triplet, with
9090 # the *-*-osname triplets last.
9091 md_exec_prefix=
9092 case "${target}" in
9093 i[34567]86-pc-msdosdjgpp*)
9094 md_exec_prefix=/dev/env/DJDIR/bin
9096 *-*-hpux* | \
9097 *-*-nto-qnx* | \
9098 *-*-solaris2*)
9099 md_exec_prefix=/usr/ccs/bin
9101 esac
9103 extra_arflags_for_target=
9104 extra_nmflags_for_target=
9105 extra_ranlibflags_for_target=
9106 target_makefile_frag=/dev/null
9107 case "${target}" in
9108 spu-*-*)
9109 target_makefile_frag="config/mt-spu"
9111 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9112 target_makefile_frag="config/mt-sde"
9114 mipsisa*-*-elfoabi*)
9115 target_makefile_frag="config/mt-mips-elfoabi"
9117 mips*-*-*linux* | mips*-*-gnu*)
9118 target_makefile_frag="config/mt-mips-gnu"
9120 nios2-*-elf*)
9121 target_makefile_frag="config/mt-nios2-elf"
9123 *-*-linux-android*)
9124 target_makefile_frag="config/mt-android"
9126 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9127 target_makefile_frag="config/mt-gnu"
9129 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9130 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9131 # commands to handle both 32-bit and 64-bit objects. These flags are
9132 # harmless if we're using GNU nm or ar.
9133 extra_arflags_for_target=" -X32_64"
9134 extra_nmflags_for_target=" -B -X32_64"
9136 esac
9138 alphaieee_frag=/dev/null
9139 case $target in
9140 alpha*-*-*)
9141 # This just makes sure to use the -mieee option to build target libs.
9142 # This should probably be set individually by each library.
9143 alphaieee_frag="config/mt-alphaieee"
9145 esac
9147 # If --enable-target-optspace always use -Os instead of -O2 to build
9148 # the target libraries, similarly if it is not specified, use -Os
9149 # on selected platforms.
9150 ospace_frag=/dev/null
9151 case "${enable_target_optspace}:${target}" in
9152 yes:*)
9153 ospace_frag="config/mt-ospace"
9155 :d30v-*)
9156 ospace_frag="config/mt-d30v"
9158 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9159 ospace_frag="config/mt-ospace"
9161 no:* | :*)
9164 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9166 esac
9168 # Some systems (e.g., one of the i386-aix systems the gas testers are
9169 # using) don't handle "\$" correctly, so don't use it here.
9170 tooldir='${exec_prefix}'/${target_noncanonical}
9171 build_tooldir=${tooldir}
9173 # Create a .gdbinit file which runs the one in srcdir
9174 # and tells GDB to look there for source files.
9176 if test -r ${srcdir}/.gdbinit ; then
9177 case ${srcdir} in
9178 .) ;;
9179 *) cat > ./.gdbinit <<EOF
9180 # ${NO_EDIT}
9181 dir ${srcdir}
9182 dir .
9183 source ${srcdir}/.gdbinit
9186 esac
9189 # Make sure that the compiler is able to generate an executable. If it
9190 # can't, we are probably in trouble. We don't care whether we can run the
9191 # executable--we might be using a cross compiler--we only care whether it
9192 # can be created. At this point the main configure script has set CC.
9193 we_are_ok=no
9194 echo "int main () { return 0; }" > conftest.c
9195 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9196 if test $? = 0 ; then
9197 if test -s conftest || test -s conftest.exe ; then
9198 we_are_ok=yes
9201 case $we_are_ok in
9203 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9204 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9205 rm -f conftest*
9206 exit 1
9208 esac
9209 rm -f conftest*
9211 # Decide which environment variable is used to find dynamic libraries.
9212 case "${host}" in
9213 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9214 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9215 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9216 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9217 esac
9219 # On systems where the dynamic library environment variable is PATH,
9220 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9221 # built executables to PATH.
9222 if test "$RPATH_ENVVAR" = PATH; then
9223 GCC_SHLIB_SUBDIR=/shlib
9224 else
9225 GCC_SHLIB_SUBDIR=
9228 # Adjust the toplevel makefile according to whether bootstrap was selected.
9229 case $enable_bootstrap in
9230 yes)
9231 bootstrap_suffix=bootstrap
9232 BUILD_CONFIG=bootstrap-debug
9235 bootstrap_suffix=no-bootstrap
9236 BUILD_CONFIG=
9238 esac
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9241 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9244 # Check whether --with-build-config was given.
9245 if test "${with_build_config+set}" = set; then :
9246 withval=$with_build_config; case $with_build_config in
9247 yes) with_build_config= ;;
9248 no) with_build_config= BUILD_CONFIG= ;;
9249 esac
9253 if test "x${with_build_config}" != x; then
9254 BUILD_CONFIG=$with_build_config
9255 else
9256 case $BUILD_CONFIG in
9257 bootstrap-debug)
9258 if echo "int f (void) { return 0; }" > conftest.c &&
9259 ${CC} -c conftest.c &&
9260 mv conftest.o conftest.o.g0 &&
9261 ${CC} -c -g conftest.c &&
9262 mv conftest.o conftest.o.g &&
9263 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9265 else
9266 BUILD_CONFIG=
9268 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9270 esac
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9273 $as_echo "$BUILD_CONFIG" >&6; }
9276 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9278 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9279 # Check whether --enable-vtable-verify was given.
9280 if test "${enable_vtable_verify+set}" = set; then :
9281 enableval=$enable_vtable_verify; case "$enableval" in
9282 yes) enable_vtable_verify=yes ;;
9283 no) enable_vtable_verify=no ;;
9284 *) enable_vtable_verify=no;;
9285 esac
9286 else
9287 enable_vtable_verify=no
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9291 $as_echo "$enable_vtable_verify" >&6; }
9293 # Record target_configdirs and the configure arguments for target and
9294 # build configuration in Makefile.
9295 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9296 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9297 bootstrap_fixincludes=no
9299 # If we are building libgomp, bootstrap it.
9300 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9301 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9304 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9305 # or bootstrap-ubsan, bootstrap it.
9306 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9307 case "$BUILD_CONFIG" in
9308 *bootstrap-asan* | *bootstrap-ubsan* )
9309 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9310 bootstrap_fixincludes=yes
9312 esac
9315 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9316 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9317 test "$enable_vtable_verify" != no; then
9318 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9321 # Determine whether gdb needs tk/tcl or not.
9322 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9323 # and in that case we want gdb to be built without tk. Ugh!
9324 # In fact I believe gdb is the *only* package directly dependent on tk,
9325 # so we should be able to put the 'maybe's in unconditionally and
9326 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9327 # 100% sure that that's safe though.
9329 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9330 case "$enable_gdbtk" in
9332 GDB_TK="" ;;
9333 yes)
9334 GDB_TK="${gdb_tk}" ;;
9336 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9337 # distro. Eventually someone will fix this and move Insight, nee
9338 # gdbtk to a separate directory.
9339 if test -d ${srcdir}/gdb/gdbtk ; then
9340 GDB_TK="${gdb_tk}"
9341 else
9342 GDB_TK=""
9345 esac
9346 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9347 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9349 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9350 # else does, only include them if one of these is built. The Makefile
9351 # provides the ordering, so it's enough here to add to the list.
9352 case " ${configdirs} " in
9353 *\ gdb\ *)
9354 configdirs="${configdirs} gnulib gdbsupport"
9356 *\ gdbserver\ *)
9357 configdirs="${configdirs} gnulib gdbsupport"
9359 esac
9361 # Strip out unwanted targets.
9363 # While at that, we remove Makefiles if we were started for recursive
9364 # configuration, so that the top-level Makefile reconfigures them,
9365 # like we used to do when configure itself was recursive.
9367 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9368 # but now we're fixing up the Makefile ourselves with the additional
9369 # commands passed to AC_CONFIG_FILES. Use separate variables
9370 # extrasub-{build,host,target} not because there is any reason to split
9371 # the substitutions up that way, but only to remain below the limit of
9372 # 99 commands in a script, for HP-UX sed.
9374 # Do not nest @if/@endif or @unless/@endunless pairs, because
9375 # configure will not warn you at all.
9377 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9378 yes:yes:*\ gold\ *:*,c++,*) ;;
9379 yes:yes:*\ gold\ *:*)
9380 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9382 esac
9384 extrasub_build=
9385 for module in ${build_configdirs} ; do
9386 if test -z "${no_recursion}" \
9387 && test -f ${build_subdir}/${module}/Makefile; then
9388 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9389 rm -f ${build_subdir}/${module}/Makefile
9391 extrasub_build="$extrasub_build
9392 /^@if build-$module\$/d
9393 /^@endif build-$module\$/d
9394 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9395 /^@if build-$module-$bootstrap_suffix\$/d
9396 /^@endif build-$module-$bootstrap_suffix\$/d
9397 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9398 done
9399 extrasub_host=
9400 for module in ${configdirs} ; do
9401 if test -z "${no_recursion}"; then
9402 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9403 if test -f ${file}; then
9404 echo 1>&2 "*** removing ${file} to force reconfigure"
9405 rm -f ${file}
9407 done
9409 case ${module},${bootstrap_fixincludes} in
9410 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9411 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9412 esac
9413 extrasub_host="$extrasub_host
9414 /^@if $module\$/d
9415 /^@endif $module\$/d
9416 /^@unless $module\$/,/^@endunless $module\$/d
9417 /^@if $module-$host_bootstrap_suffix\$/d
9418 /^@endif $module-$host_bootstrap_suffix\$/d
9419 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9420 done
9421 extrasub_target=
9422 for module in ${target_configdirs} ; do
9423 if test -z "${no_recursion}" \
9424 && test -f ${target_subdir}/${module}/Makefile; then
9425 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9426 rm -f ${target_subdir}/${module}/Makefile
9429 # We only bootstrap target libraries listed in bootstrap_target_libs.
9430 case $bootstrap_target_libs in
9431 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9432 *) target_bootstrap_suffix=no-bootstrap ;;
9433 esac
9435 extrasub_target="$extrasub_target
9436 /^@if target-$module\$/d
9437 /^@endif target-$module\$/d
9438 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9439 /^@if target-$module-$target_bootstrap_suffix\$/d
9440 /^@endif target-$module-$target_bootstrap_suffix\$/d
9441 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9442 done
9444 # Do the final fixup along with target modules.
9445 extrasub_target="$extrasub_target
9446 /^@if /,/^@endif /d
9447 /^@unless /d
9448 /^@endunless /d"
9450 # Create the serialization dependencies. This uses a temporary file.
9452 # Check whether --enable-serial-configure was given.
9453 if test "${enable_serial_configure+set}" = set; then :
9454 enableval=$enable_serial_configure;
9458 case ${enable_serial_configure} in
9459 yes)
9460 enable_serial_build_configure=yes
9461 enable_serial_host_configure=yes
9462 enable_serial_target_configure=yes
9464 esac
9466 # These force 'configure's to be done one at a time, to avoid problems
9467 # with contention over a shared config.cache.
9468 rm -f serdep.tmp
9469 echo '# serdep.tmp' > serdep.tmp
9470 olditem=
9471 test "x${enable_serial_build_configure}" = xyes &&
9472 for item in ${build_configdirs} ; do
9473 case ${olditem} in
9474 "") ;;
9475 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9476 esac
9477 olditem=${item}
9478 done
9479 olditem=
9480 test "x${enable_serial_host_configure}" = xyes &&
9481 for item in ${configdirs} ; do
9482 case ${olditem} in
9483 "") ;;
9484 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9485 esac
9486 olditem=${item}
9487 done
9488 olditem=
9489 test "x${enable_serial_target_configure}" = xyes &&
9490 for item in ${target_configdirs} ; do
9491 case ${olditem} in
9492 "") ;;
9493 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9494 esac
9495 olditem=${item}
9496 done
9497 serialization_dependencies=serdep.tmp
9500 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9501 # target, nonopt, and variable assignments. These are the ones we
9502 # might not want to pass down to subconfigures. The exception being
9503 # --cache-file=/dev/null, which is used to turn off the use of cache
9504 # files altogether, and which should be passed on to subconfigures.
9505 # Also strip program-prefix, program-suffix, and program-transform-name,
9506 # so that we can pass down a consistent program-transform-name.
9507 baseargs=
9508 tbaseargs=
9509 keep_next=no
9510 skip_next=no
9511 eval "set -- $ac_configure_args"
9512 for ac_arg
9514 if test X"$skip_next" = X"yes"; then
9515 skip_next=no
9516 continue
9518 if test X"$keep_next" = X"yes"; then
9519 case $ac_arg in
9520 *\'*)
9521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9522 esac
9523 baseargs="$baseargs '$ac_arg'"
9524 tbaseargs="$tbaseargs '$ac_arg'"
9525 keep_next=no
9526 continue
9529 # Handle separated arguments. Based on the logic generated by
9530 # autoconf 2.59.
9531 case $ac_arg in
9532 *=* | --config-cache | -C | -disable-* | --disable-* \
9533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9535 | -with-* | --with-* | -without-* | --without-* | --x)
9536 separate_arg=no
9539 separate_arg=yes
9542 separate_arg=no
9544 esac
9546 skip_targ=no
9547 case $ac_arg in
9549 --with-* | --without-*)
9550 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9552 case $libopt in
9553 *[-_]include)
9554 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9556 *[-_]lib)
9557 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9560 lib=$libopt
9562 esac
9565 case $lib in
9566 mpc | mpfr | gmp | isl)
9567 # If we're processing --with-$lib, --with-$lib-include or
9568 # --with-$lib-lib, for one of the libs above, and target is
9569 # different from host, don't pass the current argument to any
9570 # target library's configure.
9571 if test x$is_cross_compiler = xyes; then
9572 skip_targ=yes
9575 esac
9577 esac
9579 case "$ac_arg" in
9580 --cache-file=/dev/null | \
9581 -cache-file=/dev/null )
9582 # Handled here to avoid the test to skip args below.
9583 baseargs="$baseargs '$ac_arg'"
9584 tbaseargs="$tbaseargs '$ac_arg'"
9585 # Assert: $separate_arg should always be no.
9586 keep_next=$separate_arg
9588 --no*)
9589 continue
9591 --c* | \
9592 --sr* | \
9593 --ho* | \
9594 --bu* | \
9595 --t* | \
9596 --program-* | \
9597 -cache_file* | \
9598 -srcdir* | \
9599 -host* | \
9600 -build* | \
9601 -target* | \
9602 -program-prefix* | \
9603 -program-suffix* | \
9604 -program-transform-name* )
9605 skip_next=$separate_arg
9606 continue
9609 # An option. Add it.
9610 case $ac_arg in
9611 *\'*)
9612 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9613 esac
9614 baseargs="$baseargs '$ac_arg'"
9615 if test X"$skip_targ" = Xno; then
9616 tbaseargs="$tbaseargs '$ac_arg'"
9618 keep_next=$separate_arg
9621 # Either a variable assignment, or a nonopt (triplet). Don't
9622 # pass it down; let the Makefile handle this.
9623 continue
9625 esac
9626 done
9627 # Remove the initial space we just introduced and, as these will be
9628 # expanded by make, quote '$'.
9629 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9631 # Add in --program-transform-name, after --program-prefix and
9632 # --program-suffix have been applied to it. Autoconf has already
9633 # doubled dollar signs and backslashes in program_transform_name; we want
9634 # the backslashes un-doubled, and then the entire thing wrapped in single
9635 # quotes, because this will be expanded first by make and then by the shell.
9636 # Also, because we want to override the logic in subdir configure scripts to
9637 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9638 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9639 ${program_transform_name}
9640 EOF_SED
9641 gcc_transform_name=`cat conftestsed.out`
9642 rm -f conftestsed.out
9643 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9644 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9645 if test "$silent" = yes; then
9646 baseargs="$baseargs --silent"
9647 tbaseargs="$tbaseargs --silent"
9649 baseargs="$baseargs --disable-option-checking"
9650 tbaseargs="$tbaseargs --disable-option-checking"
9652 # Record and document user additions to sub configure arguments.
9657 # For the build-side libraries, we just need to pretend we're native,
9658 # and not use the same cache file. Multilibs are neither needed nor
9659 # desired. We can't even use the same cache file for all build-side
9660 # libraries, as they're compiled differently; some with C, some with
9661 # C++ or with different feature-enabling options.
9662 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9664 # For host modules, accept cache file option, or specification as blank.
9665 case "${cache_file}" in
9666 "") # empty
9667 cache_file_option="" ;;
9668 /* | [A-Za-z]:[\\/]* ) # absolute path
9669 cache_file_option="--cache-file=${cache_file}" ;;
9670 *) # relative path
9671 cache_file_option="--cache-file=../${cache_file}" ;;
9672 esac
9674 # Host dirs don't like to share a cache file either, horribly enough.
9675 # This seems to be due to autoconf 2.5x stupidity.
9676 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9678 target_configargs="$target_configargs ${tbaseargs}"
9680 # Passing a --with-cross-host argument lets the target libraries know
9681 # whether they are being built with a cross-compiler or being built
9682 # native. However, it would be better to use other mechanisms to make the
9683 # sorts of decisions they want to make on this basis. Please consider
9684 # this option to be deprecated. FIXME.
9685 if test x${is_cross_compiler} = xyes ; then
9686 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
9689 # Special user-friendly check for native x86_64-linux build, if
9690 # multilib is not explicitly enabled.
9691 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9692 x86_64-*linux*:yes:$build:$build:)
9693 # Make sure we have a development environment that handles 32-bit
9694 dev64=no
9695 echo "int main () { return 0; }" > conftest.c
9696 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9697 if test $? = 0 ; then
9698 if test -s conftest || test -s conftest.exe ; then
9699 dev64=yes
9702 rm -f conftest*
9703 if test x${dev64} != xyes ; then
9704 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
9707 esac
9709 # Default to --enable-multilib.
9710 if test x${enable_multilib} = x ; then
9711 target_configargs="--enable-multilib ${target_configargs}"
9714 # Pass --with-newlib if appropriate. Note that target_configdirs has
9715 # changed from the earlier setting of with_newlib.
9716 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9717 target_configargs="--with-newlib ${target_configargs}"
9720 # Different target subdirs use different values of certain variables
9721 # (notably CXX). Worse, multilibs use *lots* of different values.
9722 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9723 # it doesn't automatically accept command-line overrides of them.
9724 # This means it's not safe for target subdirs to share a cache file,
9725 # which is disgusting, but there you have it. Hopefully this can be
9726 # fixed in future. It's still worthwhile to use a cache file for each
9727 # directory. I think.
9729 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9730 # We need to pass --target, as newer autoconf's requires consistency
9731 # for target_alias and gcc doesn't manage it consistently.
9732 target_configargs="--cache-file=./config.cache ${target_configargs}"
9734 FLAGS_FOR_TARGET=
9735 case " $target_configdirs " in
9736 *" newlib "*)
9737 case " $target_configargs " in
9738 *" --with-newlib "*)
9739 case "$target" in
9740 *-cygwin*)
9741 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9743 esac
9745 # If we're not building GCC, don't discard standard headers.
9746 if test -d ${srcdir}/gcc; then
9747 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9749 if test "${build}" != "${host}"; then
9750 # On Canadian crosses, CC_FOR_TARGET will have already been set
9751 # by `configure', so we won't have an opportunity to add -Bgcc/
9752 # to it. This is right: we don't want to search that directory
9753 # for binaries, but we want the header files in there, so add
9754 # them explicitly.
9755 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9757 # Someone might think of using the pre-installed headers on
9758 # Canadian crosses, in case the installed compiler is not fully
9759 # compatible with the compiler being built. In this case, it
9760 # would be better to flag an error than risking having
9761 # incompatible object files being constructed. We can't
9762 # guarantee that an error will be flagged, but let's hope the
9763 # compiler will do it, when presented with incompatible header
9764 # files.
9768 case "${target}-${is_cross_compiler}" in
9769 i[3456789]86-*-linux*-no)
9770 # Here host == target, so we don't need to build gcc,
9771 # so we don't want to discard standard headers.
9772 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9775 # If we're building newlib, use its generic headers last, but search
9776 # for any libc-related directories first (so make it the last -B
9777 # switch).
9778 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9780 # If we're building libgloss, find the startup file, simulator library
9781 # and linker script.
9782 case " $target_configdirs " in
9783 *" libgloss "*)
9784 # Look for startup file, simulator library and maybe linker script.
9785 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9786 # Look for libnosys.a in case the target needs it.
9787 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9788 # Most targets have the linker script in the source directory.
9789 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9791 esac
9793 esac
9795 esac
9797 esac
9799 case "$target" in
9800 x86_64-*mingw* | *-w64-mingw*)
9801 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9802 # however, use a symlink named 'mingw' in ${prefix} .
9803 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9805 *-mingw*)
9806 # MinGW can't be handled as Cygwin above since it does not use newlib.
9807 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'
9809 esac
9811 # Allow the user to override the flags for
9812 # our build compiler if desired.
9813 if test x"${build}" = x"${host}" ; then
9814 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
9815 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
9816 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
9819 # On Canadian crosses, we'll be searching the right directories for
9820 # the previously-installed cross compiler, so don't bother to add
9821 # flags for directories within the install tree of the compiler
9822 # being built; programs in there won't even run.
9823 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
9824 # Search for pre-installed headers if nothing else fits.
9825 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
9828 if test "x${use_gnu_ld}" = x &&
9829 echo " ${configdirs} " | grep " ld " > /dev/null ; then
9830 # Arrange for us to find uninstalled linker scripts.
9831 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
9834 # Search for other target-specific linker scripts and such.
9835 case "${target}" in
9836 mep*)
9837 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
9839 esac
9841 # Makefile fragments.
9842 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
9844 eval fragval=\$$frag
9845 if test $fragval != /dev/null; then
9846 eval $frag=${srcdir}/$fragval
9848 done
9854 # Miscellanea: directories, flags, etc.
9863 # Build module lists & subconfigure args.
9867 # Host module lists & subconfigure args.
9872 # Target module lists & subconfigure args.
9876 # Build tools.
9894 # Generate default definitions for YACC, M4, LEX and other programs that run
9895 # on the build machine. These are used if the Makefile can't locate these
9896 # programs in objdir.
9897 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
9899 for ac_prog in 'bison -y' byacc yacc
9901 # Extract the first word of "$ac_prog", so it can be a program name with args.
9902 set dummy $ac_prog; ac_word=$2
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9904 $as_echo_n "checking for $ac_word... " >&6; }
9905 if ${ac_cv_prog_YACC+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 if test -n "$YACC"; then
9909 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9910 else
9911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912 for as_dir in $PATH
9914 IFS=$as_save_IFS
9915 test -z "$as_dir" && as_dir=.
9916 for ac_exec_ext in '' $ac_executable_extensions; do
9917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9918 ac_cv_prog_YACC="$ac_prog"
9919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9920 break 2
9922 done
9923 done
9924 IFS=$as_save_IFS
9928 YACC=$ac_cv_prog_YACC
9929 if test -n "$YACC"; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
9931 $as_echo "$YACC" >&6; }
9932 else
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; }
9938 test -n "$YACC" && break
9939 done
9940 test -n "$YACC" || YACC="$MISSING bison -y"
9942 case " $build_configdirs " in
9943 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
9944 esac
9946 for ac_prog in bison
9948 # Extract the first word of "$ac_prog", so it can be a program name with args.
9949 set dummy $ac_prog; ac_word=$2
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951 $as_echo_n "checking for $ac_word... " >&6; }
9952 if ${ac_cv_prog_BISON+:} false; then :
9953 $as_echo_n "(cached) " >&6
9954 else
9955 if test -n "$BISON"; then
9956 ac_cv_prog_BISON="$BISON" # Let the user override the test.
9957 else
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 for as_dir in $PATH
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9965 ac_cv_prog_BISON="$ac_prog"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 break 2
9969 done
9970 done
9971 IFS=$as_save_IFS
9975 BISON=$ac_cv_prog_BISON
9976 if test -n "$BISON"; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9978 $as_echo "$BISON" >&6; }
9979 else
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9985 test -n "$BISON" && break
9986 done
9987 test -n "$BISON" || BISON="$MISSING bison"
9989 case " $build_configdirs " in
9990 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
9991 esac
9993 for ac_prog in gm4 gnum4 m4
9995 # Extract the first word of "$ac_prog", so it can be a program name with args.
9996 set dummy $ac_prog; ac_word=$2
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998 $as_echo_n "checking for $ac_word... " >&6; }
9999 if ${ac_cv_prog_M4+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 if test -n "$M4"; then
10003 ac_cv_prog_M4="$M4" # Let the user override the test.
10004 else
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10008 IFS=$as_save_IFS
10009 test -z "$as_dir" && as_dir=.
10010 for ac_exec_ext in '' $ac_executable_extensions; do
10011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10012 ac_cv_prog_M4="$ac_prog"
10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 break 2
10016 done
10017 done
10018 IFS=$as_save_IFS
10022 M4=$ac_cv_prog_M4
10023 if test -n "$M4"; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10025 $as_echo "$M4" >&6; }
10026 else
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10032 test -n "$M4" && break
10033 done
10034 test -n "$M4" || M4="$MISSING m4"
10036 case " $build_configdirs " in
10037 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10038 esac
10040 for ac_prog in flex lex
10042 # Extract the first word of "$ac_prog", so it can be a program name with args.
10043 set dummy $ac_prog; ac_word=$2
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 $as_echo_n "checking for $ac_word... " >&6; }
10046 if ${ac_cv_prog_LEX+:} false; then :
10047 $as_echo_n "(cached) " >&6
10048 else
10049 if test -n "$LEX"; then
10050 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10051 else
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10055 IFS=$as_save_IFS
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10059 ac_cv_prog_LEX="$ac_prog"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 break 2
10063 done
10064 done
10065 IFS=$as_save_IFS
10069 LEX=$ac_cv_prog_LEX
10070 if test -n "$LEX"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10072 $as_echo "$LEX" >&6; }
10073 else
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 $as_echo "no" >&6; }
10079 test -n "$LEX" && break
10080 done
10081 test -n "$LEX" || LEX="$MISSING flex"
10083 case " $build_configdirs " in
10084 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10085 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10086 esac
10088 for ac_prog in flex
10090 # Extract the first word of "$ac_prog", so it can be a program name with args.
10091 set dummy $ac_prog; ac_word=$2
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093 $as_echo_n "checking for $ac_word... " >&6; }
10094 if ${ac_cv_prog_FLEX+:} false; then :
10095 $as_echo_n "(cached) " >&6
10096 else
10097 if test -n "$FLEX"; then
10098 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10099 else
10100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101 for as_dir in $PATH
10103 IFS=$as_save_IFS
10104 test -z "$as_dir" && as_dir=.
10105 for ac_exec_ext in '' $ac_executable_extensions; do
10106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10107 ac_cv_prog_FLEX="$ac_prog"
10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 break 2
10111 done
10112 done
10113 IFS=$as_save_IFS
10117 FLEX=$ac_cv_prog_FLEX
10118 if test -n "$FLEX"; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10120 $as_echo "$FLEX" >&6; }
10121 else
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123 $as_echo "no" >&6; }
10127 test -n "$FLEX" && break
10128 done
10129 test -n "$FLEX" || FLEX="$MISSING flex"
10131 case " $build_configdirs " in
10132 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10133 esac
10135 for ac_prog in makeinfo
10137 # Extract the first word of "$ac_prog", so it can be a program name with args.
10138 set dummy $ac_prog; ac_word=$2
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140 $as_echo_n "checking for $ac_word... " >&6; }
10141 if ${ac_cv_prog_MAKEINFO+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 if test -n "$MAKEINFO"; then
10145 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10146 else
10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148 for as_dir in $PATH
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
10153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10154 ac_cv_prog_MAKEINFO="$ac_prog"
10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 break 2
10158 done
10159 done
10160 IFS=$as_save_IFS
10164 MAKEINFO=$ac_cv_prog_MAKEINFO
10165 if test -n "$MAKEINFO"; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10167 $as_echo "$MAKEINFO" >&6; }
10168 else
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170 $as_echo "no" >&6; }
10174 test -n "$MAKEINFO" && break
10175 done
10176 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10178 case " $build_configdirs " in
10179 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10182 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10183 # higher, else we use the "missing" dummy.
10184 if ${MAKEINFO} --version \
10185 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10187 else
10188 MAKEINFO="$MISSING makeinfo"
10192 esac
10194 # FIXME: expect and dejagnu may become build tools?
10196 for ac_prog in expect
10198 # Extract the first word of "$ac_prog", so it can be a program name with args.
10199 set dummy $ac_prog; ac_word=$2
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201 $as_echo_n "checking for $ac_word... " >&6; }
10202 if ${ac_cv_prog_EXPECT+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 if test -n "$EXPECT"; then
10206 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10207 else
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10215 ac_cv_prog_EXPECT="$ac_prog"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10219 done
10220 done
10221 IFS=$as_save_IFS
10225 EXPECT=$ac_cv_prog_EXPECT
10226 if test -n "$EXPECT"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10228 $as_echo "$EXPECT" >&6; }
10229 else
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231 $as_echo "no" >&6; }
10235 test -n "$EXPECT" && break
10236 done
10237 test -n "$EXPECT" || EXPECT="expect"
10239 case " $configdirs " in
10240 *" expect "*)
10241 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10243 esac
10245 for ac_prog in runtest
10247 # Extract the first word of "$ac_prog", so it can be a program name with args.
10248 set dummy $ac_prog; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if ${ac_cv_prog_RUNTEST+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 if test -n "$RUNTEST"; then
10255 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10256 else
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10260 IFS=$as_save_IFS
10261 test -z "$as_dir" && as_dir=.
10262 for ac_exec_ext in '' $ac_executable_extensions; do
10263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10264 ac_cv_prog_RUNTEST="$ac_prog"
10265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266 break 2
10268 done
10269 done
10270 IFS=$as_save_IFS
10274 RUNTEST=$ac_cv_prog_RUNTEST
10275 if test -n "$RUNTEST"; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10277 $as_echo "$RUNTEST" >&6; }
10278 else
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10284 test -n "$RUNTEST" && break
10285 done
10286 test -n "$RUNTEST" || RUNTEST="runtest"
10288 case " $configdirs " in
10289 *" dejagnu "*)
10290 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10292 esac
10295 # Host tools.
10296 ncn_tool_prefix=
10297 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10298 ncn_target_tool_prefix=
10299 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10303 if test -n "$AR"; then
10304 ac_cv_prog_AR=$AR
10305 elif test -n "$ac_cv_prog_AR"; then
10306 AR=$ac_cv_prog_AR
10309 if test -n "$ac_cv_prog_AR"; then
10310 for ncn_progname in ar; do
10311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10312 set dummy ${ncn_progname}; ac_word=$2
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314 $as_echo_n "checking for $ac_word... " >&6; }
10315 if ${ac_cv_prog_AR+:} false; then :
10316 $as_echo_n "(cached) " >&6
10317 else
10318 if test -n "$AR"; then
10319 ac_cv_prog_AR="$AR" # Let the user override the test.
10320 else
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 ac_cv_prog_AR="${ncn_progname}"
10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10332 done
10333 done
10334 IFS=$as_save_IFS
10338 AR=$ac_cv_prog_AR
10339 if test -n "$AR"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10341 $as_echo "$AR" >&6; }
10342 else
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10348 done
10351 for ncn_progname in ar; do
10352 if test -n "$ncn_tool_prefix"; then
10353 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10354 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if ${ac_cv_prog_AR+:} false; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 if test -n "$AR"; then
10361 ac_cv_prog_AR="$AR" # Let the user override the test.
10362 else
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in $PATH
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10370 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10374 done
10375 done
10376 IFS=$as_save_IFS
10380 AR=$ac_cv_prog_AR
10381 if test -n "$AR"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10383 $as_echo "$AR" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10391 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10393 set dummy ${ncn_progname}; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_prog_AR+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 if test -n "$AR"; then
10400 ac_cv_prog_AR="$AR" # Let the user override the test.
10401 else
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409 ac_cv_prog_AR="${ncn_progname}"
10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 break 2
10413 done
10414 done
10415 IFS=$as_save_IFS
10419 AR=$ac_cv_prog_AR
10420 if test -n "$AR"; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10422 $as_echo "$AR" >&6; }
10423 else
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10430 test -n "$ac_cv_prog_AR" && break
10431 done
10433 if test -z "$ac_cv_prog_AR" ; then
10434 set dummy ar
10435 if test $build = $host ; then
10436 AR="$2"
10437 else
10438 AR="${ncn_tool_prefix}$2"
10444 if test -n "$AS"; then
10445 ac_cv_prog_AS=$AS
10446 elif test -n "$ac_cv_prog_AS"; then
10447 AS=$ac_cv_prog_AS
10450 if test -n "$ac_cv_prog_AS"; then
10451 for ncn_progname in as; do
10452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10453 set dummy ${ncn_progname}; ac_word=$2
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10455 $as_echo_n "checking for $ac_word... " >&6; }
10456 if ${ac_cv_prog_AS+:} false; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 if test -n "$AS"; then
10460 ac_cv_prog_AS="$AS" # Let the user override the test.
10461 else
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463 for as_dir in $PATH
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
10467 for ac_exec_ext in '' $ac_executable_extensions; do
10468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10469 ac_cv_prog_AS="${ncn_progname}"
10470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10471 break 2
10473 done
10474 done
10475 IFS=$as_save_IFS
10479 AS=$ac_cv_prog_AS
10480 if test -n "$AS"; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10482 $as_echo "$AS" >&6; }
10483 else
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10489 done
10492 for ncn_progname in as; do
10493 if test -n "$ncn_tool_prefix"; then
10494 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10495 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497 $as_echo_n "checking for $ac_word... " >&6; }
10498 if ${ac_cv_prog_AS+:} false; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 if test -n "$AS"; then
10502 ac_cv_prog_AS="$AS" # Let the user override the test.
10503 else
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10515 done
10516 done
10517 IFS=$as_save_IFS
10521 AS=$ac_cv_prog_AS
10522 if test -n "$AS"; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10524 $as_echo "$AS" >&6; }
10525 else
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527 $as_echo "no" >&6; }
10532 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10534 set dummy ${ncn_progname}; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536 $as_echo_n "checking for $ac_word... " >&6; }
10537 if ${ac_cv_prog_AS+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 if test -n "$AS"; then
10541 ac_cv_prog_AS="$AS" # Let the user override the test.
10542 else
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_AS="${ncn_progname}"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10554 done
10555 done
10556 IFS=$as_save_IFS
10560 AS=$ac_cv_prog_AS
10561 if test -n "$AS"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10563 $as_echo "$AS" >&6; }
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10571 test -n "$ac_cv_prog_AS" && break
10572 done
10574 if test -z "$ac_cv_prog_AS" ; then
10575 set dummy as
10576 if test $build = $host ; then
10577 AS="$2"
10578 else
10579 AS="${ncn_tool_prefix}$2"
10585 if test -n "$DLLTOOL"; then
10586 ac_cv_prog_DLLTOOL=$DLLTOOL
10587 elif test -n "$ac_cv_prog_DLLTOOL"; then
10588 DLLTOOL=$ac_cv_prog_DLLTOOL
10591 if test -n "$ac_cv_prog_DLLTOOL"; then
10592 for ncn_progname in dlltool; do
10593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10594 set dummy ${ncn_progname}; ac_word=$2
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10596 $as_echo_n "checking for $ac_word... " >&6; }
10597 if ${ac_cv_prog_DLLTOOL+:} false; then :
10598 $as_echo_n "(cached) " >&6
10599 else
10600 if test -n "$DLLTOOL"; then
10601 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10602 else
10603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10604 for as_dir in $PATH
10606 IFS=$as_save_IFS
10607 test -z "$as_dir" && as_dir=.
10608 for ac_exec_ext in '' $ac_executable_extensions; do
10609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10610 ac_cv_prog_DLLTOOL="${ncn_progname}"
10611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10612 break 2
10614 done
10615 done
10616 IFS=$as_save_IFS
10620 DLLTOOL=$ac_cv_prog_DLLTOOL
10621 if test -n "$DLLTOOL"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10623 $as_echo "$DLLTOOL" >&6; }
10624 else
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10630 done
10633 for ncn_progname in dlltool; do
10634 if test -n "$ncn_tool_prefix"; then
10635 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10636 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10638 $as_echo_n "checking for $ac_word... " >&6; }
10639 if ${ac_cv_prog_DLLTOOL+:} false; then :
10640 $as_echo_n "(cached) " >&6
10641 else
10642 if test -n "$DLLTOOL"; then
10643 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10644 else
10645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10646 for as_dir in $PATH
10648 IFS=$as_save_IFS
10649 test -z "$as_dir" && as_dir=.
10650 for ac_exec_ext in '' $ac_executable_extensions; do
10651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10652 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10654 break 2
10656 done
10657 done
10658 IFS=$as_save_IFS
10662 DLLTOOL=$ac_cv_prog_DLLTOOL
10663 if test -n "$DLLTOOL"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10665 $as_echo "$DLLTOOL" >&6; }
10666 else
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 $as_echo "no" >&6; }
10673 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10675 set dummy ${ncn_progname}; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if ${ac_cv_prog_DLLTOOL+:} false; then :
10679 $as_echo_n "(cached) " >&6
10680 else
10681 if test -n "$DLLTOOL"; then
10682 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10683 else
10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685 for as_dir in $PATH
10687 IFS=$as_save_IFS
10688 test -z "$as_dir" && as_dir=.
10689 for ac_exec_ext in '' $ac_executable_extensions; do
10690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10691 ac_cv_prog_DLLTOOL="${ncn_progname}"
10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10693 break 2
10695 done
10696 done
10697 IFS=$as_save_IFS
10701 DLLTOOL=$ac_cv_prog_DLLTOOL
10702 if test -n "$DLLTOOL"; then
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10704 $as_echo "$DLLTOOL" >&6; }
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10712 test -n "$ac_cv_prog_DLLTOOL" && break
10713 done
10715 if test -z "$ac_cv_prog_DLLTOOL" ; then
10716 set dummy dlltool
10717 if test $build = $host ; then
10718 DLLTOOL="$2"
10719 else
10720 DLLTOOL="${ncn_tool_prefix}$2"
10726 if test -n "$LD"; then
10727 ac_cv_prog_LD=$LD
10728 elif test -n "$ac_cv_prog_LD"; then
10729 LD=$ac_cv_prog_LD
10732 if test -n "$ac_cv_prog_LD"; then
10733 for ncn_progname in ld; do
10734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10735 set dummy ${ncn_progname}; ac_word=$2
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737 $as_echo_n "checking for $ac_word... " >&6; }
10738 if ${ac_cv_prog_LD+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 if test -n "$LD"; then
10742 ac_cv_prog_LD="$LD" # Let the user override the test.
10743 else
10744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745 for as_dir in $PATH
10747 IFS=$as_save_IFS
10748 test -z "$as_dir" && as_dir=.
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10751 ac_cv_prog_LD="${ncn_progname}"
10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10753 break 2
10755 done
10756 done
10757 IFS=$as_save_IFS
10761 LD=$ac_cv_prog_LD
10762 if test -n "$LD"; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10764 $as_echo "$LD" >&6; }
10765 else
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767 $as_echo "no" >&6; }
10771 done
10774 for ncn_progname in ld; do
10775 if test -n "$ncn_tool_prefix"; then
10776 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10777 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779 $as_echo_n "checking for $ac_word... " >&6; }
10780 if ${ac_cv_prog_LD+:} false; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 if test -n "$LD"; then
10784 ac_cv_prog_LD="$LD" # Let the user override the test.
10785 else
10786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787 for as_dir in $PATH
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
10791 for ac_exec_ext in '' $ac_executable_extensions; do
10792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10793 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
10794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 break 2
10797 done
10798 done
10799 IFS=$as_save_IFS
10803 LD=$ac_cv_prog_LD
10804 if test -n "$LD"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10806 $as_echo "$LD" >&6; }
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10814 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
10815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10816 set dummy ${ncn_progname}; ac_word=$2
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818 $as_echo_n "checking for $ac_word... " >&6; }
10819 if ${ac_cv_prog_LD+:} false; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 if test -n "$LD"; then
10823 ac_cv_prog_LD="$LD" # Let the user override the test.
10824 else
10825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826 for as_dir in $PATH
10828 IFS=$as_save_IFS
10829 test -z "$as_dir" && as_dir=.
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10832 ac_cv_prog_LD="${ncn_progname}"
10833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10834 break 2
10836 done
10837 done
10838 IFS=$as_save_IFS
10842 LD=$ac_cv_prog_LD
10843 if test -n "$LD"; then
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10845 $as_echo "$LD" >&6; }
10846 else
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848 $as_echo "no" >&6; }
10853 test -n "$ac_cv_prog_LD" && break
10854 done
10856 if test -z "$ac_cv_prog_LD" ; then
10857 set dummy ld
10858 if test $build = $host ; then
10859 LD="$2"
10860 else
10861 LD="${ncn_tool_prefix}$2"
10867 if test -n "$LIPO"; then
10868 ac_cv_prog_LIPO=$LIPO
10869 elif test -n "$ac_cv_prog_LIPO"; then
10870 LIPO=$ac_cv_prog_LIPO
10873 if test -n "$ac_cv_prog_LIPO"; then
10874 for ncn_progname in lipo; do
10875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10876 set dummy ${ncn_progname}; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878 $as_echo_n "checking for $ac_word... " >&6; }
10879 if ${ac_cv_prog_LIPO+:} false; then :
10880 $as_echo_n "(cached) " >&6
10881 else
10882 if test -n "$LIPO"; then
10883 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10884 else
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10892 ac_cv_prog_LIPO="${ncn_progname}"
10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 break 2
10896 done
10897 done
10898 IFS=$as_save_IFS
10902 LIPO=$ac_cv_prog_LIPO
10903 if test -n "$LIPO"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10905 $as_echo "$LIPO" >&6; }
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10912 done
10915 for ncn_progname in lipo; do
10916 if test -n "$ncn_tool_prefix"; then
10917 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10918 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if ${ac_cv_prog_LIPO+:} false; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 if test -n "$LIPO"; then
10925 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10926 else
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in $PATH
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10934 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10938 done
10939 done
10940 IFS=$as_save_IFS
10944 LIPO=$ac_cv_prog_LIPO
10945 if test -n "$LIPO"; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10947 $as_echo "$LIPO" >&6; }
10948 else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; }
10955 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
10956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10957 set dummy ${ncn_progname}; ac_word=$2
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if ${ac_cv_prog_LIPO+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 if test -n "$LIPO"; then
10964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10965 else
10966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967 for as_dir in $PATH
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
10971 for ac_exec_ext in '' $ac_executable_extensions; do
10972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10973 ac_cv_prog_LIPO="${ncn_progname}"
10974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 break 2
10977 done
10978 done
10979 IFS=$as_save_IFS
10983 LIPO=$ac_cv_prog_LIPO
10984 if test -n "$LIPO"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10986 $as_echo "$LIPO" >&6; }
10987 else
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989 $as_echo "no" >&6; }
10994 test -n "$ac_cv_prog_LIPO" && break
10995 done
10997 if test -z "$ac_cv_prog_LIPO" ; then
10998 set dummy lipo
10999 if test $build = $host ; then
11000 LIPO="$2"
11001 else
11002 LIPO="${ncn_tool_prefix}$2"
11008 if test -n "$NM"; then
11009 ac_cv_prog_NM=$NM
11010 elif test -n "$ac_cv_prog_NM"; then
11011 NM=$ac_cv_prog_NM
11014 if test -n "$ac_cv_prog_NM"; then
11015 for ncn_progname in nm; do
11016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11017 set dummy ${ncn_progname}; ac_word=$2
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019 $as_echo_n "checking for $ac_word... " >&6; }
11020 if ${ac_cv_prog_NM+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 if test -n "$NM"; then
11024 ac_cv_prog_NM="$NM" # Let the user override the test.
11025 else
11026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11033 ac_cv_prog_NM="${ncn_progname}"
11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11035 break 2
11037 done
11038 done
11039 IFS=$as_save_IFS
11043 NM=$ac_cv_prog_NM
11044 if test -n "$NM"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11046 $as_echo "$NM" >&6; }
11047 else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11053 done
11056 for ncn_progname in nm; do
11057 if test -n "$ncn_tool_prefix"; then
11058 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11059 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if ${ac_cv_prog_NM+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 if test -n "$NM"; then
11066 ac_cv_prog_NM="$NM" # Let the user override the test.
11067 else
11068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069 for as_dir in $PATH
11071 IFS=$as_save_IFS
11072 test -z "$as_dir" && as_dir=.
11073 for ac_exec_ext in '' $ac_executable_extensions; do
11074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11075 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 break 2
11079 done
11080 done
11081 IFS=$as_save_IFS
11085 NM=$ac_cv_prog_NM
11086 if test -n "$NM"; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11088 $as_echo "$NM" >&6; }
11089 else
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11096 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11098 set dummy ${ncn_progname}; ac_word=$2
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100 $as_echo_n "checking for $ac_word... " >&6; }
11101 if ${ac_cv_prog_NM+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 if test -n "$NM"; then
11105 ac_cv_prog_NM="$NM" # Let the user override the test.
11106 else
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11110 IFS=$as_save_IFS
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11114 ac_cv_prog_NM="${ncn_progname}"
11115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116 break 2
11118 done
11119 done
11120 IFS=$as_save_IFS
11124 NM=$ac_cv_prog_NM
11125 if test -n "$NM"; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11127 $as_echo "$NM" >&6; }
11128 else
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11135 test -n "$ac_cv_prog_NM" && break
11136 done
11138 if test -z "$ac_cv_prog_NM" ; then
11139 set dummy nm
11140 if test $build = $host ; then
11141 NM="$2"
11142 else
11143 NM="${ncn_tool_prefix}$2"
11149 if test -n "$RANLIB"; then
11150 ac_cv_prog_RANLIB=$RANLIB
11151 elif test -n "$ac_cv_prog_RANLIB"; then
11152 RANLIB=$ac_cv_prog_RANLIB
11155 if test -n "$ac_cv_prog_RANLIB"; then
11156 for ncn_progname in ranlib; do
11157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11158 set dummy ${ncn_progname}; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if ${ac_cv_prog_RANLIB+:} false; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 if test -n "$RANLIB"; then
11165 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11166 else
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11174 ac_cv_prog_RANLIB="${ncn_progname}"
11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 break 2
11178 done
11179 done
11180 IFS=$as_save_IFS
11184 RANLIB=$ac_cv_prog_RANLIB
11185 if test -n "$RANLIB"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11187 $as_echo "$RANLIB" >&6; }
11188 else
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11194 done
11197 for ncn_progname in ranlib; do
11198 if test -n "$ncn_tool_prefix"; then
11199 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11200 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11202 $as_echo_n "checking for $ac_word... " >&6; }
11203 if ${ac_cv_prog_RANLIB+:} false; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 if test -n "$RANLIB"; then
11207 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11208 else
11209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210 for as_dir in $PATH
11212 IFS=$as_save_IFS
11213 test -z "$as_dir" && as_dir=.
11214 for ac_exec_ext in '' $ac_executable_extensions; do
11215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11216 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11218 break 2
11220 done
11221 done
11222 IFS=$as_save_IFS
11226 RANLIB=$ac_cv_prog_RANLIB
11227 if test -n "$RANLIB"; then
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11229 $as_echo "$RANLIB" >&6; }
11230 else
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11237 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11239 set dummy ${ncn_progname}; ac_word=$2
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241 $as_echo_n "checking for $ac_word... " >&6; }
11242 if ${ac_cv_prog_RANLIB+:} false; then :
11243 $as_echo_n "(cached) " >&6
11244 else
11245 if test -n "$RANLIB"; then
11246 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11247 else
11248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249 for as_dir in $PATH
11251 IFS=$as_save_IFS
11252 test -z "$as_dir" && as_dir=.
11253 for ac_exec_ext in '' $ac_executable_extensions; do
11254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11255 ac_cv_prog_RANLIB="${ncn_progname}"
11256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11257 break 2
11259 done
11260 done
11261 IFS=$as_save_IFS
11265 RANLIB=$ac_cv_prog_RANLIB
11266 if test -n "$RANLIB"; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11268 $as_echo "$RANLIB" >&6; }
11269 else
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11276 test -n "$ac_cv_prog_RANLIB" && break
11277 done
11279 if test -z "$ac_cv_prog_RANLIB" ; then
11280 RANLIB="true"
11285 if test -n "$STRIP"; then
11286 ac_cv_prog_STRIP=$STRIP
11287 elif test -n "$ac_cv_prog_STRIP"; then
11288 STRIP=$ac_cv_prog_STRIP
11291 if test -n "$ac_cv_prog_STRIP"; then
11292 for ncn_progname in strip; do
11293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11294 set dummy ${ncn_progname}; ac_word=$2
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11296 $as_echo_n "checking for $ac_word... " >&6; }
11297 if ${ac_cv_prog_STRIP+:} false; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 if test -n "$STRIP"; then
11301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11302 else
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11306 IFS=$as_save_IFS
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310 ac_cv_prog_STRIP="${ncn_progname}"
11311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11312 break 2
11314 done
11315 done
11316 IFS=$as_save_IFS
11320 STRIP=$ac_cv_prog_STRIP
11321 if test -n "$STRIP"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11323 $as_echo "$STRIP" >&6; }
11324 else
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; }
11330 done
11333 for ncn_progname in strip; do
11334 if test -n "$ncn_tool_prefix"; then
11335 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11336 set dummy ${ncn_tool_prefix}${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_STRIP+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 if test -n "$STRIP"; then
11343 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ncn_tool_prefix}${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 STRIP=$ac_cv_prog_STRIP
11363 if test -n "$STRIP"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11365 $as_echo "$STRIP" >&6; }
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11373 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11375 set dummy ${ncn_progname}; ac_word=$2
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11377 $as_echo_n "checking for $ac_word... " >&6; }
11378 if ${ac_cv_prog_STRIP+:} false; then :
11379 $as_echo_n "(cached) " >&6
11380 else
11381 if test -n "$STRIP"; then
11382 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11383 else
11384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385 for as_dir in $PATH
11387 IFS=$as_save_IFS
11388 test -z "$as_dir" && as_dir=.
11389 for ac_exec_ext in '' $ac_executable_extensions; do
11390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11391 ac_cv_prog_STRIP="${ncn_progname}"
11392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11393 break 2
11395 done
11396 done
11397 IFS=$as_save_IFS
11401 STRIP=$ac_cv_prog_STRIP
11402 if test -n "$STRIP"; then
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11404 $as_echo "$STRIP" >&6; }
11405 else
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407 $as_echo "no" >&6; }
11412 test -n "$ac_cv_prog_STRIP" && break
11413 done
11415 if test -z "$ac_cv_prog_STRIP" ; then
11416 STRIP="true"
11421 if test -n "$WINDRES"; then
11422 ac_cv_prog_WINDRES=$WINDRES
11423 elif test -n "$ac_cv_prog_WINDRES"; then
11424 WINDRES=$ac_cv_prog_WINDRES
11427 if test -n "$ac_cv_prog_WINDRES"; then
11428 for ncn_progname in windres; do
11429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11430 set dummy ${ncn_progname}; ac_word=$2
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432 $as_echo_n "checking for $ac_word... " >&6; }
11433 if ${ac_cv_prog_WINDRES+:} false; then :
11434 $as_echo_n "(cached) " >&6
11435 else
11436 if test -n "$WINDRES"; then
11437 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11438 else
11439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440 for as_dir in $PATH
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446 ac_cv_prog_WINDRES="${ncn_progname}"
11447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11450 done
11451 done
11452 IFS=$as_save_IFS
11456 WINDRES=$ac_cv_prog_WINDRES
11457 if test -n "$WINDRES"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11459 $as_echo "$WINDRES" >&6; }
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11466 done
11469 for ncn_progname in windres; do
11470 if test -n "$ncn_tool_prefix"; then
11471 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11472 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474 $as_echo_n "checking for $ac_word... " >&6; }
11475 if ${ac_cv_prog_WINDRES+:} false; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 if test -n "$WINDRES"; then
11479 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11480 else
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11488 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 break 2
11492 done
11493 done
11494 IFS=$as_save_IFS
11498 WINDRES=$ac_cv_prog_WINDRES
11499 if test -n "$WINDRES"; then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11501 $as_echo "$WINDRES" >&6; }
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11509 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11511 set dummy ${ncn_progname}; ac_word=$2
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513 $as_echo_n "checking for $ac_word... " >&6; }
11514 if ${ac_cv_prog_WINDRES+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 if test -n "$WINDRES"; then
11518 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11519 else
11520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521 for as_dir in $PATH
11523 IFS=$as_save_IFS
11524 test -z "$as_dir" && as_dir=.
11525 for ac_exec_ext in '' $ac_executable_extensions; do
11526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11527 ac_cv_prog_WINDRES="${ncn_progname}"
11528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11529 break 2
11531 done
11532 done
11533 IFS=$as_save_IFS
11537 WINDRES=$ac_cv_prog_WINDRES
11538 if test -n "$WINDRES"; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11540 $as_echo "$WINDRES" >&6; }
11541 else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11548 test -n "$ac_cv_prog_WINDRES" && break
11549 done
11551 if test -z "$ac_cv_prog_WINDRES" ; then
11552 set dummy windres
11553 if test $build = $host ; then
11554 WINDRES="$2"
11555 else
11556 WINDRES="${ncn_tool_prefix}$2"
11562 if test -n "$WINDMC"; then
11563 ac_cv_prog_WINDMC=$WINDMC
11564 elif test -n "$ac_cv_prog_WINDMC"; then
11565 WINDMC=$ac_cv_prog_WINDMC
11568 if test -n "$ac_cv_prog_WINDMC"; then
11569 for ncn_progname in windmc; do
11570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11571 set dummy ${ncn_progname}; ac_word=$2
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573 $as_echo_n "checking for $ac_word... " >&6; }
11574 if ${ac_cv_prog_WINDMC+:} false; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 if test -n "$WINDMC"; then
11578 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11579 else
11580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11581 for as_dir in $PATH
11583 IFS=$as_save_IFS
11584 test -z "$as_dir" && as_dir=.
11585 for ac_exec_ext in '' $ac_executable_extensions; do
11586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11587 ac_cv_prog_WINDMC="${ncn_progname}"
11588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11589 break 2
11591 done
11592 done
11593 IFS=$as_save_IFS
11597 WINDMC=$ac_cv_prog_WINDMC
11598 if test -n "$WINDMC"; then
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11600 $as_echo "$WINDMC" >&6; }
11601 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11607 done
11610 for ncn_progname in windmc; do
11611 if test -n "$ncn_tool_prefix"; then
11612 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11613 set dummy ${ncn_tool_prefix}${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_WINDMC+:} false; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 if test -n "$WINDMC"; then
11620 ac_cv_prog_WINDMC="$WINDMC" # 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_WINDMC="${ncn_tool_prefix}${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 WINDMC=$ac_cv_prog_WINDMC
11640 if test -n "$WINDMC"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11642 $as_echo "$WINDMC" >&6; }
11643 else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11650 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11652 set dummy ${ncn_progname}; ac_word=$2
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654 $as_echo_n "checking for $ac_word... " >&6; }
11655 if ${ac_cv_prog_WINDMC+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 if test -n "$WINDMC"; then
11659 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11660 else
11661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662 for as_dir in $PATH
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11668 ac_cv_prog_WINDMC="${ncn_progname}"
11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 break 2
11672 done
11673 done
11674 IFS=$as_save_IFS
11678 WINDMC=$ac_cv_prog_WINDMC
11679 if test -n "$WINDMC"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11681 $as_echo "$WINDMC" >&6; }
11682 else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11689 test -n "$ac_cv_prog_WINDMC" && break
11690 done
11692 if test -z "$ac_cv_prog_WINDMC" ; then
11693 set dummy windmc
11694 if test $build = $host ; then
11695 WINDMC="$2"
11696 else
11697 WINDMC="${ncn_tool_prefix}$2"
11703 if test -n "$OBJCOPY"; then
11704 ac_cv_prog_OBJCOPY=$OBJCOPY
11705 elif test -n "$ac_cv_prog_OBJCOPY"; then
11706 OBJCOPY=$ac_cv_prog_OBJCOPY
11709 if test -n "$ac_cv_prog_OBJCOPY"; then
11710 for ncn_progname in objcopy; do
11711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11712 set dummy ${ncn_progname}; ac_word=$2
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714 $as_echo_n "checking for $ac_word... " >&6; }
11715 if ${ac_cv_prog_OBJCOPY+:} false; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 if test -n "$OBJCOPY"; then
11719 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11720 else
11721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11728 ac_cv_prog_OBJCOPY="${ncn_progname}"
11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 break 2
11732 done
11733 done
11734 IFS=$as_save_IFS
11738 OBJCOPY=$ac_cv_prog_OBJCOPY
11739 if test -n "$OBJCOPY"; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11741 $as_echo "$OBJCOPY" >&6; }
11742 else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11748 done
11751 for ncn_progname in objcopy; do
11752 if test -n "$ncn_tool_prefix"; then
11753 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11754 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11756 $as_echo_n "checking for $ac_word... " >&6; }
11757 if ${ac_cv_prog_OBJCOPY+:} false; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 if test -n "$OBJCOPY"; then
11761 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11762 else
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11770 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
11771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11772 break 2
11774 done
11775 done
11776 IFS=$as_save_IFS
11780 OBJCOPY=$ac_cv_prog_OBJCOPY
11781 if test -n "$OBJCOPY"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11783 $as_echo "$OBJCOPY" >&6; }
11784 else
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11791 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
11792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11793 set dummy ${ncn_progname}; ac_word=$2
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if ${ac_cv_prog_OBJCOPY+:} false; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 if test -n "$OBJCOPY"; then
11800 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11801 else
11802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803 for as_dir in $PATH
11805 IFS=$as_save_IFS
11806 test -z "$as_dir" && as_dir=.
11807 for ac_exec_ext in '' $ac_executable_extensions; do
11808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11809 ac_cv_prog_OBJCOPY="${ncn_progname}"
11810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11811 break 2
11813 done
11814 done
11815 IFS=$as_save_IFS
11819 OBJCOPY=$ac_cv_prog_OBJCOPY
11820 if test -n "$OBJCOPY"; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11822 $as_echo "$OBJCOPY" >&6; }
11823 else
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11830 test -n "$ac_cv_prog_OBJCOPY" && break
11831 done
11833 if test -z "$ac_cv_prog_OBJCOPY" ; then
11834 set dummy objcopy
11835 if test $build = $host ; then
11836 OBJCOPY="$2"
11837 else
11838 OBJCOPY="${ncn_tool_prefix}$2"
11844 if test -n "$OBJDUMP"; then
11845 ac_cv_prog_OBJDUMP=$OBJDUMP
11846 elif test -n "$ac_cv_prog_OBJDUMP"; then
11847 OBJDUMP=$ac_cv_prog_OBJDUMP
11850 if test -n "$ac_cv_prog_OBJDUMP"; then
11851 for ncn_progname in objdump; do
11852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11853 set dummy ${ncn_progname}; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if ${ac_cv_prog_OBJDUMP+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 if test -n "$OBJDUMP"; then
11860 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11861 else
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11869 ac_cv_prog_OBJDUMP="${ncn_progname}"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 break 2
11873 done
11874 done
11875 IFS=$as_save_IFS
11879 OBJDUMP=$ac_cv_prog_OBJDUMP
11880 if test -n "$OBJDUMP"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11882 $as_echo "$OBJDUMP" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11889 done
11892 for ncn_progname in objdump; do
11893 if test -n "$ncn_tool_prefix"; then
11894 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11895 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if ${ac_cv_prog_OBJDUMP+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 if test -n "$OBJDUMP"; then
11902 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11903 else
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11911 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913 break 2
11915 done
11916 done
11917 IFS=$as_save_IFS
11921 OBJDUMP=$ac_cv_prog_OBJDUMP
11922 if test -n "$OBJDUMP"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11924 $as_echo "$OBJDUMP" >&6; }
11925 else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11932 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
11933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11934 set dummy ${ncn_progname}; ac_word=$2
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11936 $as_echo_n "checking for $ac_word... " >&6; }
11937 if ${ac_cv_prog_OBJDUMP+:} false; then :
11938 $as_echo_n "(cached) " >&6
11939 else
11940 if test -n "$OBJDUMP"; then
11941 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11942 else
11943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944 for as_dir in $PATH
11946 IFS=$as_save_IFS
11947 test -z "$as_dir" && as_dir=.
11948 for ac_exec_ext in '' $ac_executable_extensions; do
11949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11950 ac_cv_prog_OBJDUMP="${ncn_progname}"
11951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11952 break 2
11954 done
11955 done
11956 IFS=$as_save_IFS
11960 OBJDUMP=$ac_cv_prog_OBJDUMP
11961 if test -n "$OBJDUMP"; then
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11963 $as_echo "$OBJDUMP" >&6; }
11964 else
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11966 $as_echo "no" >&6; }
11971 test -n "$ac_cv_prog_OBJDUMP" && break
11972 done
11974 if test -z "$ac_cv_prog_OBJDUMP" ; then
11975 set dummy objdump
11976 if test $build = $host ; then
11977 OBJDUMP="$2"
11978 else
11979 OBJDUMP="${ncn_tool_prefix}$2"
11985 if test -n "$OTOOL"; then
11986 ac_cv_prog_OTOOL=$OTOOL
11987 elif test -n "$ac_cv_prog_OTOOL"; then
11988 OTOOL=$ac_cv_prog_OTOOL
11991 if test -n "$ac_cv_prog_OTOOL"; then
11992 for ncn_progname in otool; do
11993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11994 set dummy ${ncn_progname}; ac_word=$2
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996 $as_echo_n "checking for $ac_word... " >&6; }
11997 if ${ac_cv_prog_OTOOL+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 if test -n "$OTOOL"; then
12001 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12002 else
12003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12010 ac_cv_prog_OTOOL="${ncn_progname}"
12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012 break 2
12014 done
12015 done
12016 IFS=$as_save_IFS
12020 OTOOL=$ac_cv_prog_OTOOL
12021 if test -n "$OTOOL"; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12023 $as_echo "$OTOOL" >&6; }
12024 else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12030 done
12033 for ncn_progname in otool; do
12034 if test -n "$ncn_tool_prefix"; then
12035 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12036 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038 $as_echo_n "checking for $ac_word... " >&6; }
12039 if ${ac_cv_prog_OTOOL+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 if test -n "$OTOOL"; then
12043 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12044 else
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $PATH
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12052 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054 break 2
12056 done
12057 done
12058 IFS=$as_save_IFS
12062 OTOOL=$ac_cv_prog_OTOOL
12063 if test -n "$OTOOL"; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12065 $as_echo "$OTOOL" >&6; }
12066 else
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12073 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12075 set dummy ${ncn_progname}; ac_word=$2
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077 $as_echo_n "checking for $ac_word... " >&6; }
12078 if ${ac_cv_prog_OTOOL+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 if test -n "$OTOOL"; then
12082 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12083 else
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12087 IFS=$as_save_IFS
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091 ac_cv_prog_OTOOL="${ncn_progname}"
12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093 break 2
12095 done
12096 done
12097 IFS=$as_save_IFS
12101 OTOOL=$ac_cv_prog_OTOOL
12102 if test -n "$OTOOL"; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12104 $as_echo "$OTOOL" >&6; }
12105 else
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12112 test -n "$ac_cv_prog_OTOOL" && break
12113 done
12115 if test -z "$ac_cv_prog_OTOOL" ; then
12116 set dummy otool
12117 if test $build = $host ; then
12118 OTOOL="$2"
12119 else
12120 OTOOL="${ncn_tool_prefix}$2"
12126 if test -n "$READELF"; then
12127 ac_cv_prog_READELF=$READELF
12128 elif test -n "$ac_cv_prog_READELF"; then
12129 READELF=$ac_cv_prog_READELF
12132 if test -n "$ac_cv_prog_READELF"; then
12133 for ncn_progname in readelf; do
12134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12135 set dummy ${ncn_progname}; ac_word=$2
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137 $as_echo_n "checking for $ac_word... " >&6; }
12138 if ${ac_cv_prog_READELF+:} false; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 if test -n "$READELF"; then
12142 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12143 else
12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12147 IFS=$as_save_IFS
12148 test -z "$as_dir" && as_dir=.
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12151 ac_cv_prog_READELF="${ncn_progname}"
12152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12153 break 2
12155 done
12156 done
12157 IFS=$as_save_IFS
12161 READELF=$ac_cv_prog_READELF
12162 if test -n "$READELF"; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12164 $as_echo "$READELF" >&6; }
12165 else
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12171 done
12174 for ncn_progname in readelf; do
12175 if test -n "$ncn_tool_prefix"; then
12176 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12177 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179 $as_echo_n "checking for $ac_word... " >&6; }
12180 if ${ac_cv_prog_READELF+:} false; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 if test -n "$READELF"; then
12184 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12185 else
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187 for as_dir in $PATH
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12193 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 break 2
12197 done
12198 done
12199 IFS=$as_save_IFS
12203 READELF=$ac_cv_prog_READELF
12204 if test -n "$READELF"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12206 $as_echo "$READELF" >&6; }
12207 else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12214 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12216 set dummy ${ncn_progname}; ac_word=$2
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12218 $as_echo_n "checking for $ac_word... " >&6; }
12219 if ${ac_cv_prog_READELF+:} false; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 if test -n "$READELF"; then
12223 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12224 else
12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226 for as_dir in $PATH
12228 IFS=$as_save_IFS
12229 test -z "$as_dir" && as_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12232 ac_cv_prog_READELF="${ncn_progname}"
12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234 break 2
12236 done
12237 done
12238 IFS=$as_save_IFS
12242 READELF=$ac_cv_prog_READELF
12243 if test -n "$READELF"; then
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12245 $as_echo "$READELF" >&6; }
12246 else
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12253 test -n "$ac_cv_prog_READELF" && break
12254 done
12256 if test -z "$ac_cv_prog_READELF" ; then
12257 set dummy readelf
12258 if test $build = $host ; then
12259 READELF="$2"
12260 else
12261 READELF="${ncn_tool_prefix}$2"
12270 # Target tools.
12272 # Check whether --with-build-time-tools was given.
12273 if test "${with_build_time_tools+set}" = set; then :
12274 withval=$with_build_time_tools; case x"$withval" in
12275 x/*) ;;
12277 with_build_time_tools=
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12279 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12281 esac
12282 else
12283 with_build_time_tools=
12289 if test -n "$CC_FOR_TARGET"; then
12290 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12291 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12292 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12295 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12296 for ncn_progname in cc gcc; do
12297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12298 set dummy ${ncn_progname}; ac_word=$2
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12300 $as_echo_n "checking for $ac_word... " >&6; }
12301 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12302 $as_echo_n "(cached) " >&6
12303 else
12304 if test -n "$CC_FOR_TARGET"; then
12305 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12306 else
12307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308 for as_dir in $PATH
12310 IFS=$as_save_IFS
12311 test -z "$as_dir" && as_dir=.
12312 for ac_exec_ext in '' $ac_executable_extensions; do
12313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12314 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12316 break 2
12318 done
12319 done
12320 IFS=$as_save_IFS
12324 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12325 if test -n "$CC_FOR_TARGET"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12327 $as_echo "$CC_FOR_TARGET" >&6; }
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12334 done
12337 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12338 for ncn_progname in cc gcc; do
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12340 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12341 if test -x $with_build_time_tools/${ncn_progname}; then
12342 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12344 $as_echo "yes" >&6; }
12345 break
12346 else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12350 done
12353 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12354 for ncn_progname in cc gcc; do
12355 if test -n "$ncn_target_tool_prefix"; then
12356 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12357 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359 $as_echo_n "checking for $ac_word... " >&6; }
12360 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 if test -n "$CC_FOR_TARGET"; then
12364 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12365 else
12366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367 for as_dir in $PATH
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
12372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12373 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 break 2
12377 done
12378 done
12379 IFS=$as_save_IFS
12383 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12384 if test -n "$CC_FOR_TARGET"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12386 $as_echo "$CC_FOR_TARGET" >&6; }
12387 else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12394 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12396 set dummy ${ncn_progname}; ac_word=$2
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12398 $as_echo_n "checking for $ac_word... " >&6; }
12399 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 if test -n "$CC_FOR_TARGET"; then
12403 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12404 else
12405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $PATH
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
12410 for ac_exec_ext in '' $ac_executable_extensions; do
12411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12412 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12414 break 2
12416 done
12417 done
12418 IFS=$as_save_IFS
12422 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12423 if test -n "$CC_FOR_TARGET"; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12425 $as_echo "$CC_FOR_TARGET" >&6; }
12426 else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12433 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12434 done
12437 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12438 set dummy cc gcc
12439 if test $build = $target ; then
12440 CC_FOR_TARGET="$2"
12441 else
12442 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12444 else
12445 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12450 if test -n "$CXX_FOR_TARGET"; then
12451 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12452 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12453 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12456 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12457 for ncn_progname in c++ g++ cxx gxx; do
12458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12459 set dummy ${ncn_progname}; ac_word=$2
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461 $as_echo_n "checking for $ac_word... " >&6; }
12462 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12463 $as_echo_n "(cached) " >&6
12464 else
12465 if test -n "$CXX_FOR_TARGET"; then
12466 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12467 else
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12475 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 break 2
12479 done
12480 done
12481 IFS=$as_save_IFS
12485 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12486 if test -n "$CXX_FOR_TARGET"; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12488 $as_echo "$CXX_FOR_TARGET" >&6; }
12489 else
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12495 done
12498 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12499 for ncn_progname in c++ g++ cxx gxx; do
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12501 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12502 if test -x $with_build_time_tools/${ncn_progname}; then
12503 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12505 $as_echo "yes" >&6; }
12506 break
12507 else
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509 $as_echo "no" >&6; }
12511 done
12514 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12515 for ncn_progname in c++ g++ cxx gxx; do
12516 if test -n "$ncn_target_tool_prefix"; then
12517 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12518 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520 $as_echo_n "checking for $ac_word... " >&6; }
12521 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 if test -n "$CXX_FOR_TARGET"; then
12525 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12526 else
12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12530 IFS=$as_save_IFS
12531 test -z "$as_dir" && as_dir=.
12532 for ac_exec_ext in '' $ac_executable_extensions; do
12533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536 break 2
12538 done
12539 done
12540 IFS=$as_save_IFS
12544 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12545 if test -n "$CXX_FOR_TARGET"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12547 $as_echo "$CXX_FOR_TARGET" >&6; }
12548 else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12555 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12557 set dummy ${ncn_progname}; ac_word=$2
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559 $as_echo_n "checking for $ac_word... " >&6; }
12560 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 if test -n "$CXX_FOR_TARGET"; then
12564 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12565 else
12566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567 for as_dir in $PATH
12569 IFS=$as_save_IFS
12570 test -z "$as_dir" && as_dir=.
12571 for ac_exec_ext in '' $ac_executable_extensions; do
12572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12573 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 break 2
12577 done
12578 done
12579 IFS=$as_save_IFS
12583 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12584 if test -n "$CXX_FOR_TARGET"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12586 $as_echo "$CXX_FOR_TARGET" >&6; }
12587 else
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12594 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12595 done
12598 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12599 set dummy c++ g++ cxx gxx
12600 if test $build = $target ; then
12601 CXX_FOR_TARGET="$2"
12602 else
12603 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12605 else
12606 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12611 if test -n "$GCC_FOR_TARGET"; then
12612 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12613 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12614 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12617 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12618 for ncn_progname in gcc; do
12619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12620 set dummy ${ncn_progname}; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 if test -n "$GCC_FOR_TARGET"; then
12627 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12628 else
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638 break 2
12640 done
12641 done
12642 IFS=$as_save_IFS
12646 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12647 if test -n "$GCC_FOR_TARGET"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12649 $as_echo "$GCC_FOR_TARGET" >&6; }
12650 else
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12656 done
12659 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12660 for ncn_progname in gcc; do
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12662 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12663 if test -x $with_build_time_tools/${ncn_progname}; then
12664 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12666 $as_echo "yes" >&6; }
12667 break
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; }
12672 done
12675 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12676 for ncn_progname in gcc; do
12677 if test -n "$ncn_target_tool_prefix"; then
12678 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12679 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12681 $as_echo_n "checking for $ac_word... " >&6; }
12682 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12683 $as_echo_n "(cached) " >&6
12684 else
12685 if test -n "$GCC_FOR_TARGET"; then
12686 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12687 else
12688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12689 for as_dir in $PATH
12691 IFS=$as_save_IFS
12692 test -z "$as_dir" && as_dir=.
12693 for ac_exec_ext in '' $ac_executable_extensions; do
12694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12695 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12697 break 2
12699 done
12700 done
12701 IFS=$as_save_IFS
12705 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12706 if test -n "$GCC_FOR_TARGET"; then
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12708 $as_echo "$GCC_FOR_TARGET" >&6; }
12709 else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12716 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
12717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12718 set dummy ${ncn_progname}; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 if test -n "$GCC_FOR_TARGET"; then
12725 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12726 else
12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728 for as_dir in $PATH
12730 IFS=$as_save_IFS
12731 test -z "$as_dir" && as_dir=.
12732 for ac_exec_ext in '' $ac_executable_extensions; do
12733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12734 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12736 break 2
12738 done
12739 done
12740 IFS=$as_save_IFS
12744 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12745 if test -n "$GCC_FOR_TARGET"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12747 $as_echo "$GCC_FOR_TARGET" >&6; }
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12755 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
12756 done
12759 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
12760 GCC_FOR_TARGET="${CC_FOR_TARGET}"
12761 else
12762 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
12767 if test -n "$GFORTRAN_FOR_TARGET"; then
12768 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
12769 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12770 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12773 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12774 for ncn_progname in gfortran; do
12775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12776 set dummy ${ncn_progname}; ac_word=$2
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 $as_echo_n "checking for $ac_word... " >&6; }
12779 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 if test -n "$GFORTRAN_FOR_TARGET"; then
12783 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12784 else
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12792 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12796 done
12797 done
12798 IFS=$as_save_IFS
12802 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12803 if test -n "$GFORTRAN_FOR_TARGET"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12805 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12812 done
12815 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
12816 for ncn_progname in gfortran; do
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12818 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12819 if test -x $with_build_time_tools/${ncn_progname}; then
12820 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822 $as_echo "yes" >&6; }
12823 break
12824 else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12828 done
12831 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12832 for ncn_progname in gfortran; do
12833 if test -n "$ncn_target_tool_prefix"; then
12834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12835 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837 $as_echo_n "checking for $ac_word... " >&6; }
12838 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 if test -n "$GFORTRAN_FOR_TARGET"; then
12842 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12843 else
12844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845 for as_dir in $PATH
12847 IFS=$as_save_IFS
12848 test -z "$as_dir" && as_dir=.
12849 for ac_exec_ext in '' $ac_executable_extensions; do
12850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12851 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12853 break 2
12855 done
12856 done
12857 IFS=$as_save_IFS
12861 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12862 if test -n "$GFORTRAN_FOR_TARGET"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12864 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12865 else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12872 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
12873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12874 set dummy ${ncn_progname}; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 if test -n "$GFORTRAN_FOR_TARGET"; then
12881 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12882 else
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12890 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 break 2
12894 done
12895 done
12896 IFS=$as_save_IFS
12900 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12901 if test -n "$GFORTRAN_FOR_TARGET"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12903 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12911 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
12912 done
12915 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
12916 set dummy gfortran
12917 if test $build = $target ; then
12918 GFORTRAN_FOR_TARGET="$2"
12919 else
12920 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
12922 else
12923 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
12928 if test -n "$GOC_FOR_TARGET"; then
12929 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
12930 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
12931 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
12934 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
12935 for ncn_progname in gccgo; do
12936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12937 set dummy ${ncn_progname}; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 if test -n "$GOC_FOR_TARGET"; then
12944 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
12945 else
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12953 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12957 done
12958 done
12959 IFS=$as_save_IFS
12963 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
12964 if test -n "$GOC_FOR_TARGET"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
12966 $as_echo "$GOC_FOR_TARGET" >&6; }
12967 else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12973 done
12976 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12977 for ncn_progname in gccgo; do
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12979 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12980 if test -x $with_build_time_tools/${ncn_progname}; then
12981 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12983 $as_echo "yes" >&6; }
12984 break
12985 else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987 $as_echo "no" >&6; }
12989 done
12992 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
12993 for ncn_progname in gccgo; do
12994 if test -n "$ncn_target_tool_prefix"; then
12995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12996 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 if test -n "$GOC_FOR_TARGET"; then
13003 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13004 else
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13012 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 break 2
13016 done
13017 done
13018 IFS=$as_save_IFS
13022 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13023 if test -n "$GOC_FOR_TARGET"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13025 $as_echo "$GOC_FOR_TARGET" >&6; }
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13033 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13035 set dummy ${ncn_progname}; ac_word=$2
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037 $as_echo_n "checking for $ac_word... " >&6; }
13038 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13039 $as_echo_n "(cached) " >&6
13040 else
13041 if test -n "$GOC_FOR_TARGET"; then
13042 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13043 else
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13051 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053 break 2
13055 done
13056 done
13057 IFS=$as_save_IFS
13061 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13062 if test -n "$GOC_FOR_TARGET"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13064 $as_echo "$GOC_FOR_TARGET" >&6; }
13065 else
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13072 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13073 done
13076 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13077 set dummy gccgo
13078 if test $build = $target ; then
13079 GOC_FOR_TARGET="$2"
13080 else
13081 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13083 else
13084 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13089 if test -n "$GDC_FOR_TARGET"; then
13090 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13091 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13092 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13095 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13096 for ncn_progname in gdc; do
13097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13098 set dummy ${ncn_progname}; ac_word=$2
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100 $as_echo_n "checking for $ac_word... " >&6; }
13101 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 if test -n "$GDC_FOR_TARGET"; then
13105 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13106 else
13107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108 for as_dir in $PATH
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
13112 for ac_exec_ext in '' $ac_executable_extensions; do
13113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13114 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 break 2
13118 done
13119 done
13120 IFS=$as_save_IFS
13124 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13125 if test -n "$GDC_FOR_TARGET"; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13127 $as_echo "$GDC_FOR_TARGET" >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13134 done
13137 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13138 for ncn_progname in gdc; do
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13140 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13141 if test -x $with_build_time_tools/${ncn_progname}; then
13142 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144 $as_echo "yes" >&6; }
13145 break
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13150 done
13153 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13154 for ncn_progname in gdc; do
13155 if test -n "$ncn_target_tool_prefix"; then
13156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13157 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159 $as_echo_n "checking for $ac_word... " >&6; }
13160 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 if test -n "$GDC_FOR_TARGET"; then
13164 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13165 else
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13173 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13177 done
13178 done
13179 IFS=$as_save_IFS
13183 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13184 if test -n "$GDC_FOR_TARGET"; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13186 $as_echo "$GDC_FOR_TARGET" >&6; }
13187 else
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13194 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13196 set dummy ${ncn_progname}; ac_word=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 $as_echo_n "checking for $ac_word... " >&6; }
13199 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 if test -n "$GDC_FOR_TARGET"; then
13203 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13204 else
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13212 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13216 done
13217 done
13218 IFS=$as_save_IFS
13222 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13223 if test -n "$GDC_FOR_TARGET"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13225 $as_echo "$GDC_FOR_TARGET" >&6; }
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13233 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13234 done
13237 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13238 set dummy gdc
13239 if test $build = $target ; then
13240 GDC_FOR_TARGET="$2"
13241 else
13242 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13244 else
13245 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13250 cat > conftest.c << \EOF
13251 #ifdef __GNUC__
13252 gcc_yay;
13253 #endif
13255 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13256 have_gcc_for_target=yes
13257 else
13258 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13259 have_gcc_for_target=no
13261 rm conftest.c
13266 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13267 if test -n "$with_build_time_tools"; then
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13269 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13270 if test -x $with_build_time_tools/ar; then
13271 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13272 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13274 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13275 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13279 elif test $build != $host && test $have_gcc_for_target = yes; then
13280 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13281 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13282 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13285 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13286 # Extract the first word of "ar", so it can be a program name with args.
13287 set dummy ar; ac_word=$2
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289 $as_echo_n "checking for $ac_word... " >&6; }
13290 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 case $AR_FOR_TARGET in
13294 [\\/]* | ?:[\\/]*)
13295 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $gcc_cv_tool_dirs
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13305 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13309 done
13310 done
13311 IFS=$as_save_IFS
13314 esac
13316 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13317 if test -n "$AR_FOR_TARGET"; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13319 $as_echo "$AR_FOR_TARGET" >&6; }
13320 else
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13327 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13330 if test -n "$AR_FOR_TARGET"; then
13331 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13332 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13333 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13336 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13337 for ncn_progname in ar; do
13338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13339 set dummy ${ncn_progname}; ac_word=$2
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341 $as_echo_n "checking for $ac_word... " >&6; }
13342 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13343 $as_echo_n "(cached) " >&6
13344 else
13345 if test -n "$AR_FOR_TARGET"; then
13346 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13347 else
13348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349 for as_dir in $PATH
13351 IFS=$as_save_IFS
13352 test -z "$as_dir" && as_dir=.
13353 for ac_exec_ext in '' $ac_executable_extensions; do
13354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13355 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357 break 2
13359 done
13360 done
13361 IFS=$as_save_IFS
13365 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13366 if test -n "$AR_FOR_TARGET"; then
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13368 $as_echo "$AR_FOR_TARGET" >&6; }
13369 else
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371 $as_echo "no" >&6; }
13375 done
13378 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13379 for ncn_progname in ar; do
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13381 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13382 if test -x $with_build_time_tools/${ncn_progname}; then
13383 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13385 $as_echo "yes" >&6; }
13386 break
13387 else
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13391 done
13394 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13395 for ncn_progname in ar; do
13396 if test -n "$ncn_target_tool_prefix"; then
13397 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13398 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13400 $as_echo_n "checking for $ac_word... " >&6; }
13401 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13402 $as_echo_n "(cached) " >&6
13403 else
13404 if test -n "$AR_FOR_TARGET"; then
13405 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13406 else
13407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408 for as_dir in $PATH
13410 IFS=$as_save_IFS
13411 test -z "$as_dir" && as_dir=.
13412 for ac_exec_ext in '' $ac_executable_extensions; do
13413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13414 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416 break 2
13418 done
13419 done
13420 IFS=$as_save_IFS
13424 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13425 if test -n "$AR_FOR_TARGET"; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13427 $as_echo "$AR_FOR_TARGET" >&6; }
13428 else
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13435 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13437 set dummy ${ncn_progname}; ac_word=$2
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13439 $as_echo_n "checking for $ac_word... " >&6; }
13440 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13441 $as_echo_n "(cached) " >&6
13442 else
13443 if test -n "$AR_FOR_TARGET"; then
13444 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13445 else
13446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447 for as_dir in $PATH
13449 IFS=$as_save_IFS
13450 test -z "$as_dir" && as_dir=.
13451 for ac_exec_ext in '' $ac_executable_extensions; do
13452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13453 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 break 2
13457 done
13458 done
13459 IFS=$as_save_IFS
13463 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13464 if test -n "$AR_FOR_TARGET"; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13466 $as_echo "$AR_FOR_TARGET" >&6; }
13467 else
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469 $as_echo "no" >&6; }
13474 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13475 done
13478 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13479 set dummy ar
13480 if test $build = $target ; then
13481 AR_FOR_TARGET="$2"
13482 else
13483 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13485 else
13486 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13489 else
13490 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13496 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13497 if test -n "$with_build_time_tools"; then
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13499 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13500 if test -x $with_build_time_tools/as; then
13501 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13502 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13504 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13505 else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 $as_echo "no" >&6; }
13509 elif test $build != $host && test $have_gcc_for_target = yes; then
13510 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13511 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13512 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13515 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13516 # Extract the first word of "as", so it can be a program name with args.
13517 set dummy as; ac_word=$2
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13519 $as_echo_n "checking for $ac_word... " >&6; }
13520 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13521 $as_echo_n "(cached) " >&6
13522 else
13523 case $AS_FOR_TARGET in
13524 [\\/]* | ?:[\\/]*)
13525 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $gcc_cv_tool_dirs
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13535 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13539 done
13540 done
13541 IFS=$as_save_IFS
13544 esac
13546 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13547 if test -n "$AS_FOR_TARGET"; then
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13549 $as_echo "$AS_FOR_TARGET" >&6; }
13550 else
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552 $as_echo "no" >&6; }
13557 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13560 if test -n "$AS_FOR_TARGET"; then
13561 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13562 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13563 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13566 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13567 for ncn_progname in as; do
13568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13569 set dummy ${ncn_progname}; ac_word=$2
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13571 $as_echo_n "checking for $ac_word... " >&6; }
13572 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 if test -n "$AS_FOR_TARGET"; then
13576 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13577 else
13578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13581 IFS=$as_save_IFS
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
13584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13585 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 break 2
13589 done
13590 done
13591 IFS=$as_save_IFS
13595 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13596 if test -n "$AS_FOR_TARGET"; then
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13598 $as_echo "$AS_FOR_TARGET" >&6; }
13599 else
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13605 done
13608 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13609 for ncn_progname in as; do
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13611 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13612 if test -x $with_build_time_tools/${ncn_progname}; then
13613 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13615 $as_echo "yes" >&6; }
13616 break
13617 else
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619 $as_echo "no" >&6; }
13621 done
13624 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13625 for ncn_progname in as; do
13626 if test -n "$ncn_target_tool_prefix"; then
13627 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13628 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630 $as_echo_n "checking for $ac_word... " >&6; }
13631 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 if test -n "$AS_FOR_TARGET"; then
13635 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13636 else
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638 for as_dir in $PATH
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
13643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13644 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 break 2
13648 done
13649 done
13650 IFS=$as_save_IFS
13654 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13655 if test -n "$AS_FOR_TARGET"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13657 $as_echo "$AS_FOR_TARGET" >&6; }
13658 else
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660 $as_echo "no" >&6; }
13665 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13667 set dummy ${ncn_progname}; ac_word=$2
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13669 $as_echo_n "checking for $ac_word... " >&6; }
13670 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13671 $as_echo_n "(cached) " >&6
13672 else
13673 if test -n "$AS_FOR_TARGET"; then
13674 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13675 else
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 for as_dir in $PATH
13679 IFS=$as_save_IFS
13680 test -z "$as_dir" && as_dir=.
13681 for ac_exec_ext in '' $ac_executable_extensions; do
13682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13683 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13685 break 2
13687 done
13688 done
13689 IFS=$as_save_IFS
13693 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13694 if test -n "$AS_FOR_TARGET"; then
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13696 $as_echo "$AS_FOR_TARGET" >&6; }
13697 else
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699 $as_echo "no" >&6; }
13704 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
13705 done
13708 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
13709 set dummy as
13710 if test $build = $target ; then
13711 AS_FOR_TARGET="$2"
13712 else
13713 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
13715 else
13716 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
13719 else
13720 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13726 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13727 if test -n "$with_build_time_tools"; then
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
13729 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
13730 if test -x $with_build_time_tools/dlltool; then
13731 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
13732 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
13734 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
13735 else
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13739 elif test $build != $host && test $have_gcc_for_target = yes; then
13740 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
13741 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
13742 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13745 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13746 # Extract the first word of "dlltool", so it can be a program name with args.
13747 set dummy dlltool; ac_word=$2
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13749 $as_echo_n "checking for $ac_word... " >&6; }
13750 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 case $DLLTOOL_FOR_TARGET in
13754 [\\/]* | ?:[\\/]*)
13755 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
13758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759 for as_dir in $gcc_cv_tool_dirs
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
13764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13765 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13767 break 2
13769 done
13770 done
13771 IFS=$as_save_IFS
13774 esac
13776 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
13777 if test -n "$DLLTOOL_FOR_TARGET"; then
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13779 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13780 else
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782 $as_echo "no" >&6; }
13787 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13790 if test -n "$DLLTOOL_FOR_TARGET"; then
13791 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13792 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13793 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13796 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13797 for ncn_progname in dlltool; do
13798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13799 set dummy ${ncn_progname}; ac_word=$2
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13801 $as_echo_n "checking for $ac_word... " >&6; }
13802 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 if test -n "$DLLTOOL_FOR_TARGET"; then
13806 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13807 else
13808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809 for as_dir in $PATH
13811 IFS=$as_save_IFS
13812 test -z "$as_dir" && as_dir=.
13813 for ac_exec_ext in '' $ac_executable_extensions; do
13814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13815 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
13816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13817 break 2
13819 done
13820 done
13821 IFS=$as_save_IFS
13825 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13826 if test -n "$DLLTOOL_FOR_TARGET"; then
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13828 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13829 else
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13831 $as_echo "no" >&6; }
13835 done
13838 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13839 for ncn_progname in dlltool; do
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13841 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13842 if test -x $with_build_time_tools/${ncn_progname}; then
13843 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13845 $as_echo "yes" >&6; }
13846 break
13847 else
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849 $as_echo "no" >&6; }
13851 done
13854 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13855 for ncn_progname in dlltool; do
13856 if test -n "$ncn_target_tool_prefix"; then
13857 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13858 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13860 $as_echo_n "checking for $ac_word... " >&6; }
13861 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13862 $as_echo_n "(cached) " >&6
13863 else
13864 if test -n "$DLLTOOL_FOR_TARGET"; then
13865 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13866 else
13867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868 for as_dir in $PATH
13870 IFS=$as_save_IFS
13871 test -z "$as_dir" && as_dir=.
13872 for ac_exec_ext in '' $ac_executable_extensions; do
13873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13874 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13876 break 2
13878 done
13879 done
13880 IFS=$as_save_IFS
13884 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13885 if test -n "$DLLTOOL_FOR_TARGET"; then
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13887 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13888 else
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890 $as_echo "no" >&6; }
13895 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
13896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13897 set dummy ${ncn_progname}; ac_word=$2
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13899 $as_echo_n "checking for $ac_word... " >&6; }
13900 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 if test -n "$DLLTOOL_FOR_TARGET"; then
13904 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13905 else
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13909 IFS=$as_save_IFS
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13913 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
13914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13915 break 2
13917 done
13918 done
13919 IFS=$as_save_IFS
13923 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13924 if test -n "$DLLTOOL_FOR_TARGET"; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13926 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13927 else
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929 $as_echo "no" >&6; }
13934 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
13935 done
13938 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
13939 set dummy dlltool
13940 if test $build = $target ; then
13941 DLLTOOL_FOR_TARGET="$2"
13942 else
13943 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13945 else
13946 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
13949 else
13950 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
13956 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
13957 if test -n "$with_build_time_tools"; then
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
13959 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
13960 if test -x $with_build_time_tools/ld; then
13961 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
13962 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
13964 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
13965 else
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13967 $as_echo "no" >&6; }
13969 elif test $build != $host && test $have_gcc_for_target = yes; then
13970 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
13971 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
13972 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
13975 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13976 # Extract the first word of "ld", so it can be a program name with args.
13977 set dummy ld; ac_word=$2
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13979 $as_echo_n "checking for $ac_word... " >&6; }
13980 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
13981 $as_echo_n "(cached) " >&6
13982 else
13983 case $LD_FOR_TARGET in
13984 [\\/]* | ?:[\\/]*)
13985 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
13988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13989 for as_dir in $gcc_cv_tool_dirs
13991 IFS=$as_save_IFS
13992 test -z "$as_dir" && as_dir=.
13993 for ac_exec_ext in '' $ac_executable_extensions; do
13994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13995 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13997 break 2
13999 done
14000 done
14001 IFS=$as_save_IFS
14004 esac
14006 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14007 if test -n "$LD_FOR_TARGET"; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14009 $as_echo "$LD_FOR_TARGET" >&6; }
14010 else
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012 $as_echo "no" >&6; }
14017 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14020 if test -n "$LD_FOR_TARGET"; then
14021 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14022 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14023 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14026 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14027 for ncn_progname in ld; do
14028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14029 set dummy ${ncn_progname}; ac_word=$2
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14031 $as_echo_n "checking for $ac_word... " >&6; }
14032 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14033 $as_echo_n "(cached) " >&6
14034 else
14035 if test -n "$LD_FOR_TARGET"; then
14036 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14037 else
14038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14039 for as_dir in $PATH
14041 IFS=$as_save_IFS
14042 test -z "$as_dir" && as_dir=.
14043 for ac_exec_ext in '' $ac_executable_extensions; do
14044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14045 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14047 break 2
14049 done
14050 done
14051 IFS=$as_save_IFS
14055 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14056 if test -n "$LD_FOR_TARGET"; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14058 $as_echo "$LD_FOR_TARGET" >&6; }
14059 else
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14065 done
14068 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14069 for ncn_progname in ld; do
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14071 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14072 if test -x $with_build_time_tools/${ncn_progname}; then
14073 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075 $as_echo "yes" >&6; }
14076 break
14077 else
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 $as_echo "no" >&6; }
14081 done
14084 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14085 for ncn_progname in ld; do
14086 if test -n "$ncn_target_tool_prefix"; then
14087 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14088 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14090 $as_echo_n "checking for $ac_word... " >&6; }
14091 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14092 $as_echo_n "(cached) " >&6
14093 else
14094 if test -n "$LD_FOR_TARGET"; then
14095 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14096 else
14097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14098 for as_dir in $PATH
14100 IFS=$as_save_IFS
14101 test -z "$as_dir" && as_dir=.
14102 for ac_exec_ext in '' $ac_executable_extensions; do
14103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14104 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14106 break 2
14108 done
14109 done
14110 IFS=$as_save_IFS
14114 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14115 if test -n "$LD_FOR_TARGET"; then
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14117 $as_echo "$LD_FOR_TARGET" >&6; }
14118 else
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14120 $as_echo "no" >&6; }
14125 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14127 set dummy ${ncn_progname}; ac_word=$2
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14129 $as_echo_n "checking for $ac_word... " >&6; }
14130 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132 else
14133 if test -n "$LD_FOR_TARGET"; then
14134 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14135 else
14136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137 for as_dir in $PATH
14139 IFS=$as_save_IFS
14140 test -z "$as_dir" && as_dir=.
14141 for ac_exec_ext in '' $ac_executable_extensions; do
14142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14143 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14145 break 2
14147 done
14148 done
14149 IFS=$as_save_IFS
14153 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14154 if test -n "$LD_FOR_TARGET"; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14156 $as_echo "$LD_FOR_TARGET" >&6; }
14157 else
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159 $as_echo "no" >&6; }
14164 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14165 done
14168 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14169 set dummy ld
14170 if test $build = $target ; then
14171 LD_FOR_TARGET="$2"
14172 else
14173 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14175 else
14176 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14179 else
14180 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14186 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14187 if test -n "$with_build_time_tools"; then
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14189 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14190 if test -x $with_build_time_tools/lipo; then
14191 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14192 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14194 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14195 else
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197 $as_echo "no" >&6; }
14199 elif test $build != $host && test $have_gcc_for_target = yes; then
14200 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14201 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14202 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14205 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14206 # Extract the first word of "lipo", so it can be a program name with args.
14207 set dummy lipo; ac_word=$2
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14209 $as_echo_n "checking for $ac_word... " >&6; }
14210 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 case $LIPO_FOR_TARGET in
14214 [\\/]* | ?:[\\/]*)
14215 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219 for as_dir in $gcc_cv_tool_dirs
14221 IFS=$as_save_IFS
14222 test -z "$as_dir" && as_dir=.
14223 for ac_exec_ext in '' $ac_executable_extensions; do
14224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14225 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14227 break 2
14229 done
14230 done
14231 IFS=$as_save_IFS
14234 esac
14236 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14237 if test -n "$LIPO_FOR_TARGET"; then
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14239 $as_echo "$LIPO_FOR_TARGET" >&6; }
14240 else
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242 $as_echo "no" >&6; }
14247 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14250 if test -n "$LIPO_FOR_TARGET"; then
14251 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14252 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14253 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14256 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14257 for ncn_progname in lipo; do
14258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14259 set dummy ${ncn_progname}; ac_word=$2
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14261 $as_echo_n "checking for $ac_word... " >&6; }
14262 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14263 $as_echo_n "(cached) " >&6
14264 else
14265 if test -n "$LIPO_FOR_TARGET"; then
14266 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14267 else
14268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269 for as_dir in $PATH
14271 IFS=$as_save_IFS
14272 test -z "$as_dir" && as_dir=.
14273 for ac_exec_ext in '' $ac_executable_extensions; do
14274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14275 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14277 break 2
14279 done
14280 done
14281 IFS=$as_save_IFS
14285 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14286 if test -n "$LIPO_FOR_TARGET"; then
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14288 $as_echo "$LIPO_FOR_TARGET" >&6; }
14289 else
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14291 $as_echo "no" >&6; }
14295 done
14298 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14299 for ncn_progname in lipo; do
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14301 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14302 if test -x $with_build_time_tools/${ncn_progname}; then
14303 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14305 $as_echo "yes" >&6; }
14306 break
14307 else
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14311 done
14314 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14315 for ncn_progname in lipo; do
14316 if test -n "$ncn_target_tool_prefix"; then
14317 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14318 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14320 $as_echo_n "checking for $ac_word... " >&6; }
14321 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14322 $as_echo_n "(cached) " >&6
14323 else
14324 if test -n "$LIPO_FOR_TARGET"; then
14325 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14326 else
14327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328 for as_dir in $PATH
14330 IFS=$as_save_IFS
14331 test -z "$as_dir" && as_dir=.
14332 for ac_exec_ext in '' $ac_executable_extensions; do
14333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14334 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14336 break 2
14338 done
14339 done
14340 IFS=$as_save_IFS
14344 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14345 if test -n "$LIPO_FOR_TARGET"; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14347 $as_echo "$LIPO_FOR_TARGET" >&6; }
14348 else
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14350 $as_echo "no" >&6; }
14355 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14357 set dummy ${ncn_progname}; ac_word=$2
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14359 $as_echo_n "checking for $ac_word... " >&6; }
14360 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 if test -n "$LIPO_FOR_TARGET"; then
14364 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14365 else
14366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14367 for as_dir in $PATH
14369 IFS=$as_save_IFS
14370 test -z "$as_dir" && as_dir=.
14371 for ac_exec_ext in '' $ac_executable_extensions; do
14372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14373 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14375 break 2
14377 done
14378 done
14379 IFS=$as_save_IFS
14383 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14384 if test -n "$LIPO_FOR_TARGET"; then
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14386 $as_echo "$LIPO_FOR_TARGET" >&6; }
14387 else
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14389 $as_echo "no" >&6; }
14394 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14395 done
14398 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14399 set dummy lipo
14400 if test $build = $target ; then
14401 LIPO_FOR_TARGET="$2"
14402 else
14403 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14405 else
14406 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
14409 else
14410 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14416 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14417 if test -n "$with_build_time_tools"; then
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14419 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
14420 if test -x $with_build_time_tools/nm; then
14421 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14422 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14424 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
14425 else
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427 $as_echo "no" >&6; }
14429 elif test $build != $host && test $have_gcc_for_target = yes; then
14430 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
14431 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14432 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14435 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14436 # Extract the first word of "nm", so it can be a program name with args.
14437 set dummy nm; ac_word=$2
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14439 $as_echo_n "checking for $ac_word... " >&6; }
14440 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
14441 $as_echo_n "(cached) " >&6
14442 else
14443 case $NM_FOR_TARGET in
14444 [\\/]* | ?:[\\/]*)
14445 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
14448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14449 for as_dir in $gcc_cv_tool_dirs
14451 IFS=$as_save_IFS
14452 test -z "$as_dir" && as_dir=.
14453 for ac_exec_ext in '' $ac_executable_extensions; do
14454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14455 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14457 break 2
14459 done
14460 done
14461 IFS=$as_save_IFS
14464 esac
14466 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14467 if test -n "$NM_FOR_TARGET"; then
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14469 $as_echo "$NM_FOR_TARGET" >&6; }
14470 else
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472 $as_echo "no" >&6; }
14477 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14480 if test -n "$NM_FOR_TARGET"; then
14481 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
14482 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14483 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14486 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14487 for ncn_progname in nm; do
14488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14489 set dummy ${ncn_progname}; ac_word=$2
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14491 $as_echo_n "checking for $ac_word... " >&6; }
14492 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14493 $as_echo_n "(cached) " >&6
14494 else
14495 if test -n "$NM_FOR_TARGET"; then
14496 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14497 else
14498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499 for as_dir in $PATH
14501 IFS=$as_save_IFS
14502 test -z "$as_dir" && as_dir=.
14503 for ac_exec_ext in '' $ac_executable_extensions; do
14504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14505 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14507 break 2
14509 done
14510 done
14511 IFS=$as_save_IFS
14515 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14516 if test -n "$NM_FOR_TARGET"; then
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14518 $as_echo "$NM_FOR_TARGET" >&6; }
14519 else
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14521 $as_echo "no" >&6; }
14525 done
14528 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
14529 for ncn_progname in nm; do
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14531 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14532 if test -x $with_build_time_tools/${ncn_progname}; then
14533 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14535 $as_echo "yes" >&6; }
14536 break
14537 else
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14539 $as_echo "no" >&6; }
14541 done
14544 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
14545 for ncn_progname in nm; do
14546 if test -n "$ncn_target_tool_prefix"; then
14547 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14548 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14550 $as_echo_n "checking for $ac_word... " >&6; }
14551 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 if test -n "$NM_FOR_TARGET"; then
14555 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14556 else
14557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558 for as_dir in $PATH
14560 IFS=$as_save_IFS
14561 test -z "$as_dir" && as_dir=.
14562 for ac_exec_ext in '' $ac_executable_extensions; do
14563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14564 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14566 break 2
14568 done
14569 done
14570 IFS=$as_save_IFS
14574 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14575 if test -n "$NM_FOR_TARGET"; then
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14577 $as_echo "$NM_FOR_TARGET" >&6; }
14578 else
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14580 $as_echo "no" >&6; }
14585 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
14586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14587 set dummy ${ncn_progname}; ac_word=$2
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14589 $as_echo_n "checking for $ac_word... " >&6; }
14590 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14591 $as_echo_n "(cached) " >&6
14592 else
14593 if test -n "$NM_FOR_TARGET"; then
14594 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14595 else
14596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14597 for as_dir in $PATH
14599 IFS=$as_save_IFS
14600 test -z "$as_dir" && as_dir=.
14601 for ac_exec_ext in '' $ac_executable_extensions; do
14602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14603 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14605 break 2
14607 done
14608 done
14609 IFS=$as_save_IFS
14613 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14614 if test -n "$NM_FOR_TARGET"; then
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14616 $as_echo "$NM_FOR_TARGET" >&6; }
14617 else
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14624 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
14625 done
14628 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
14629 set dummy nm
14630 if test $build = $target ; then
14631 NM_FOR_TARGET="$2"
14632 else
14633 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
14635 else
14636 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
14639 else
14640 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14646 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14647 if test -n "$with_build_time_tools"; then
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
14649 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
14650 if test -x $with_build_time_tools/objcopy; then
14651 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
14652 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
14654 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
14655 else
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657 $as_echo "no" >&6; }
14659 elif test $build != $host && test $have_gcc_for_target = yes; then
14660 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
14661 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
14662 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14665 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14666 # Extract the first word of "objcopy", so it can be a program name with args.
14667 set dummy objcopy; ac_word=$2
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14669 $as_echo_n "checking for $ac_word... " >&6; }
14670 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
14671 $as_echo_n "(cached) " >&6
14672 else
14673 case $OBJCOPY_FOR_TARGET in
14674 [\\/]* | ?:[\\/]*)
14675 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
14678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14679 for as_dir in $gcc_cv_tool_dirs
14681 IFS=$as_save_IFS
14682 test -z "$as_dir" && as_dir=.
14683 for ac_exec_ext in '' $ac_executable_extensions; do
14684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14685 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14687 break 2
14689 done
14690 done
14691 IFS=$as_save_IFS
14694 esac
14696 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14697 if test -n "$OBJCOPY_FOR_TARGET"; then
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14699 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14700 else
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14702 $as_echo "no" >&6; }
14707 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14710 if test -n "$OBJCOPY_FOR_TARGET"; then
14711 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14712 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14713 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14716 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14717 for ncn_progname in objcopy; do
14718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14719 set dummy ${ncn_progname}; ac_word=$2
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14721 $as_echo_n "checking for $ac_word... " >&6; }
14722 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14723 $as_echo_n "(cached) " >&6
14724 else
14725 if test -n "$OBJCOPY_FOR_TARGET"; then
14726 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14727 else
14728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14729 for as_dir in $PATH
14731 IFS=$as_save_IFS
14732 test -z "$as_dir" && as_dir=.
14733 for ac_exec_ext in '' $ac_executable_extensions; do
14734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14735 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14737 break 2
14739 done
14740 done
14741 IFS=$as_save_IFS
14745 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14746 if test -n "$OBJCOPY_FOR_TARGET"; then
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14748 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14749 else
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14751 $as_echo "no" >&6; }
14755 done
14758 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
14759 for ncn_progname in objcopy; do
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14761 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14762 if test -x $with_build_time_tools/${ncn_progname}; then
14763 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14765 $as_echo "yes" >&6; }
14766 break
14767 else
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14769 $as_echo "no" >&6; }
14771 done
14774 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14775 for ncn_progname in objcopy; do
14776 if test -n "$ncn_target_tool_prefix"; then
14777 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14778 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14780 $as_echo_n "checking for $ac_word... " >&6; }
14781 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14782 $as_echo_n "(cached) " >&6
14783 else
14784 if test -n "$OBJCOPY_FOR_TARGET"; then
14785 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14786 else
14787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14788 for as_dir in $PATH
14790 IFS=$as_save_IFS
14791 test -z "$as_dir" && as_dir=.
14792 for ac_exec_ext in '' $ac_executable_extensions; do
14793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14794 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14796 break 2
14798 done
14799 done
14800 IFS=$as_save_IFS
14804 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14805 if test -n "$OBJCOPY_FOR_TARGET"; then
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14807 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14808 else
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14810 $as_echo "no" >&6; }
14815 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
14816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14817 set dummy ${ncn_progname}; ac_word=$2
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14819 $as_echo_n "checking for $ac_word... " >&6; }
14820 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14821 $as_echo_n "(cached) " >&6
14822 else
14823 if test -n "$OBJCOPY_FOR_TARGET"; then
14824 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14825 else
14826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14827 for as_dir in $PATH
14829 IFS=$as_save_IFS
14830 test -z "$as_dir" && as_dir=.
14831 for ac_exec_ext in '' $ac_executable_extensions; do
14832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14833 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14835 break 2
14837 done
14838 done
14839 IFS=$as_save_IFS
14843 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14844 if test -n "$OBJCOPY_FOR_TARGET"; then
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14846 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14847 else
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14849 $as_echo "no" >&6; }
14854 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
14855 done
14858 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
14859 set dummy objcopy
14860 if test $build = $target ; then
14861 OBJCOPY_FOR_TARGET="$2"
14862 else
14863 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
14865 else
14866 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
14869 else
14870 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14876 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
14877 if test -n "$with_build_time_tools"; then
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
14879 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
14880 if test -x $with_build_time_tools/objdump; then
14881 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
14882 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
14884 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
14885 else
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14887 $as_echo "no" >&6; }
14889 elif test $build != $host && test $have_gcc_for_target = yes; then
14890 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
14891 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
14892 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14895 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14896 # Extract the first word of "objdump", so it can be a program name with args.
14897 set dummy objdump; ac_word=$2
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14899 $as_echo_n "checking for $ac_word... " >&6; }
14900 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
14901 $as_echo_n "(cached) " >&6
14902 else
14903 case $OBJDUMP_FOR_TARGET in
14904 [\\/]* | ?:[\\/]*)
14905 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
14908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14909 for as_dir in $gcc_cv_tool_dirs
14911 IFS=$as_save_IFS
14912 test -z "$as_dir" && as_dir=.
14913 for ac_exec_ext in '' $ac_executable_extensions; do
14914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14915 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14917 break 2
14919 done
14920 done
14921 IFS=$as_save_IFS
14924 esac
14926 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
14927 if test -n "$OBJDUMP_FOR_TARGET"; then
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
14929 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
14930 else
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932 $as_echo "no" >&6; }
14937 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
14940 if test -n "$OBJDUMP_FOR_TARGET"; then
14941 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14942 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
14943 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
14946 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
14947 for ncn_progname in objdump; do
14948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14949 set dummy ${ncn_progname}; ac_word=$2
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14951 $as_echo_n "checking for $ac_word... " >&6; }
14952 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
14953 $as_echo_n "(cached) " >&6
14954 else
14955 if test -n "$OBJDUMP_FOR_TARGET"; then
14956 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
14957 else
14958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14959 for as_dir in $PATH
14961 IFS=$as_save_IFS
14962 test -z "$as_dir" && as_dir=.
14963 for ac_exec_ext in '' $ac_executable_extensions; do
14964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14965 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
14966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14967 break 2
14969 done
14970 done
14971 IFS=$as_save_IFS
14975 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
14976 if test -n "$OBJDUMP_FOR_TARGET"; then
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
14978 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
14979 else
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14981 $as_echo "no" >&6; }
14985 done
14988 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
14989 for ncn_progname in objdump; do
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14991 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14992 if test -x $with_build_time_tools/${ncn_progname}; then
14993 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14995 $as_echo "yes" >&6; }
14996 break
14997 else
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14999 $as_echo "no" >&6; }
15001 done
15004 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15005 for ncn_progname in objdump; do
15006 if test -n "$ncn_target_tool_prefix"; then
15007 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15008 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15010 $as_echo_n "checking for $ac_word... " >&6; }
15011 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15012 $as_echo_n "(cached) " >&6
15013 else
15014 if test -n "$OBJDUMP_FOR_TARGET"; then
15015 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15016 else
15017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15018 for as_dir in $PATH
15020 IFS=$as_save_IFS
15021 test -z "$as_dir" && as_dir=.
15022 for ac_exec_ext in '' $ac_executable_extensions; do
15023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15024 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15026 break 2
15028 done
15029 done
15030 IFS=$as_save_IFS
15034 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15035 if test -n "$OBJDUMP_FOR_TARGET"; then
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15037 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15038 else
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040 $as_echo "no" >&6; }
15045 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15047 set dummy ${ncn_progname}; ac_word=$2
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15049 $as_echo_n "checking for $ac_word... " >&6; }
15050 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15051 $as_echo_n "(cached) " >&6
15052 else
15053 if test -n "$OBJDUMP_FOR_TARGET"; then
15054 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15055 else
15056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15057 for as_dir in $PATH
15059 IFS=$as_save_IFS
15060 test -z "$as_dir" && as_dir=.
15061 for ac_exec_ext in '' $ac_executable_extensions; do
15062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15063 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15065 break 2
15067 done
15068 done
15069 IFS=$as_save_IFS
15073 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15074 if test -n "$OBJDUMP_FOR_TARGET"; then
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15076 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15077 else
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15079 $as_echo "no" >&6; }
15084 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15085 done
15088 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15089 set dummy objdump
15090 if test $build = $target ; then
15091 OBJDUMP_FOR_TARGET="$2"
15092 else
15093 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15095 else
15096 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15099 else
15100 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15106 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15107 if test -n "$with_build_time_tools"; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15109 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15110 if test -x $with_build_time_tools/otool; then
15111 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15112 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15114 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15115 else
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15117 $as_echo "no" >&6; }
15119 elif test $build != $host && test $have_gcc_for_target = yes; then
15120 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15121 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15122 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15125 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15126 # Extract the first word of "otool", so it can be a program name with args.
15127 set dummy otool; ac_word=$2
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15129 $as_echo_n "checking for $ac_word... " >&6; }
15130 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15131 $as_echo_n "(cached) " >&6
15132 else
15133 case $OTOOL_FOR_TARGET in
15134 [\\/]* | ?:[\\/]*)
15135 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15139 for as_dir in $gcc_cv_tool_dirs
15141 IFS=$as_save_IFS
15142 test -z "$as_dir" && as_dir=.
15143 for ac_exec_ext in '' $ac_executable_extensions; do
15144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15145 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15147 break 2
15149 done
15150 done
15151 IFS=$as_save_IFS
15154 esac
15156 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15157 if test -n "$OTOOL_FOR_TARGET"; then
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15159 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15160 else
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162 $as_echo "no" >&6; }
15167 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15170 if test -n "$OTOOL_FOR_TARGET"; then
15171 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15172 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15173 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15176 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15177 for ncn_progname in otool; do
15178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15179 set dummy ${ncn_progname}; ac_word=$2
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15181 $as_echo_n "checking for $ac_word... " >&6; }
15182 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15183 $as_echo_n "(cached) " >&6
15184 else
15185 if test -n "$OTOOL_FOR_TARGET"; then
15186 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15187 else
15188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15189 for as_dir in $PATH
15191 IFS=$as_save_IFS
15192 test -z "$as_dir" && as_dir=.
15193 for ac_exec_ext in '' $ac_executable_extensions; do
15194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15195 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15197 break 2
15199 done
15200 done
15201 IFS=$as_save_IFS
15205 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15206 if test -n "$OTOOL_FOR_TARGET"; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15208 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15209 else
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15211 $as_echo "no" >&6; }
15215 done
15218 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15219 for ncn_progname in otool; do
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15221 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15222 if test -x $with_build_time_tools/${ncn_progname}; then
15223 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15225 $as_echo "yes" >&6; }
15226 break
15227 else
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15229 $as_echo "no" >&6; }
15231 done
15234 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15235 for ncn_progname in otool; do
15236 if test -n "$ncn_target_tool_prefix"; then
15237 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15238 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15240 $as_echo_n "checking for $ac_word... " >&6; }
15241 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15242 $as_echo_n "(cached) " >&6
15243 else
15244 if test -n "$OTOOL_FOR_TARGET"; then
15245 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15246 else
15247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15248 for as_dir in $PATH
15250 IFS=$as_save_IFS
15251 test -z "$as_dir" && as_dir=.
15252 for ac_exec_ext in '' $ac_executable_extensions; do
15253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15254 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15256 break 2
15258 done
15259 done
15260 IFS=$as_save_IFS
15264 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15265 if test -n "$OTOOL_FOR_TARGET"; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15267 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15268 else
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15270 $as_echo "no" >&6; }
15275 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15277 set dummy ${ncn_progname}; ac_word=$2
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15279 $as_echo_n "checking for $ac_word... " >&6; }
15280 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15281 $as_echo_n "(cached) " >&6
15282 else
15283 if test -n "$OTOOL_FOR_TARGET"; then
15284 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15285 else
15286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15287 for as_dir in $PATH
15289 IFS=$as_save_IFS
15290 test -z "$as_dir" && as_dir=.
15291 for ac_exec_ext in '' $ac_executable_extensions; do
15292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15293 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15295 break 2
15297 done
15298 done
15299 IFS=$as_save_IFS
15303 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15304 if test -n "$OTOOL_FOR_TARGET"; then
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15306 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15307 else
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15309 $as_echo "no" >&6; }
15314 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15315 done
15318 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15319 set dummy otool
15320 if test $build = $target ; then
15321 OTOOL_FOR_TARGET="$2"
15322 else
15323 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15325 else
15326 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15329 else
15330 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15336 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15337 if test -n "$with_build_time_tools"; then
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15339 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
15340 if test -x $with_build_time_tools/ranlib; then
15341 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15342 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15344 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15345 else
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15347 $as_echo "no" >&6; }
15349 elif test $build != $host && test $have_gcc_for_target = yes; then
15350 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15351 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15352 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15355 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15356 # Extract the first word of "ranlib", so it can be a program name with args.
15357 set dummy ranlib; ac_word=$2
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15359 $as_echo_n "checking for $ac_word... " >&6; }
15360 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
15361 $as_echo_n "(cached) " >&6
15362 else
15363 case $RANLIB_FOR_TARGET in
15364 [\\/]* | ?:[\\/]*)
15365 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15369 for as_dir in $gcc_cv_tool_dirs
15371 IFS=$as_save_IFS
15372 test -z "$as_dir" && as_dir=.
15373 for ac_exec_ext in '' $ac_executable_extensions; do
15374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15375 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15377 break 2
15379 done
15380 done
15381 IFS=$as_save_IFS
15384 esac
15386 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15387 if test -n "$RANLIB_FOR_TARGET"; then
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15389 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15390 else
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15392 $as_echo "no" >&6; }
15397 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15400 if test -n "$RANLIB_FOR_TARGET"; then
15401 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15402 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15403 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15406 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15407 for ncn_progname in ranlib; do
15408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15409 set dummy ${ncn_progname}; ac_word=$2
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15411 $as_echo_n "checking for $ac_word... " >&6; }
15412 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15413 $as_echo_n "(cached) " >&6
15414 else
15415 if test -n "$RANLIB_FOR_TARGET"; then
15416 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15417 else
15418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15419 for as_dir in $PATH
15421 IFS=$as_save_IFS
15422 test -z "$as_dir" && as_dir=.
15423 for ac_exec_ext in '' $ac_executable_extensions; do
15424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15425 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15427 break 2
15429 done
15430 done
15431 IFS=$as_save_IFS
15435 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15436 if test -n "$RANLIB_FOR_TARGET"; then
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15438 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15439 else
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15441 $as_echo "no" >&6; }
15445 done
15448 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
15449 for ncn_progname in ranlib; do
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15451 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15452 if test -x $with_build_time_tools/${ncn_progname}; then
15453 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15455 $as_echo "yes" >&6; }
15456 break
15457 else
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459 $as_echo "no" >&6; }
15461 done
15464 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15465 for ncn_progname in ranlib; do
15466 if test -n "$ncn_target_tool_prefix"; then
15467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15468 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15470 $as_echo_n "checking for $ac_word... " >&6; }
15471 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15472 $as_echo_n "(cached) " >&6
15473 else
15474 if test -n "$RANLIB_FOR_TARGET"; then
15475 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15476 else
15477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15478 for as_dir in $PATH
15480 IFS=$as_save_IFS
15481 test -z "$as_dir" && as_dir=.
15482 for ac_exec_ext in '' $ac_executable_extensions; do
15483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15484 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15486 break 2
15488 done
15489 done
15490 IFS=$as_save_IFS
15494 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15495 if test -n "$RANLIB_FOR_TARGET"; then
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15497 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15498 else
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15500 $as_echo "no" >&6; }
15505 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
15506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15507 set dummy ${ncn_progname}; ac_word=$2
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15509 $as_echo_n "checking for $ac_word... " >&6; }
15510 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15511 $as_echo_n "(cached) " >&6
15512 else
15513 if test -n "$RANLIB_FOR_TARGET"; then
15514 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15515 else
15516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517 for as_dir in $PATH
15519 IFS=$as_save_IFS
15520 test -z "$as_dir" && as_dir=.
15521 for ac_exec_ext in '' $ac_executable_extensions; do
15522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15523 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15525 break 2
15527 done
15528 done
15529 IFS=$as_save_IFS
15533 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15534 if test -n "$RANLIB_FOR_TARGET"; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15536 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15537 else
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539 $as_echo "no" >&6; }
15544 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
15545 done
15548 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
15549 set dummy ranlib
15550 if test $build = $target ; then
15551 RANLIB_FOR_TARGET="$2"
15552 else
15553 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
15555 else
15556 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
15559 else
15560 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15566 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15567 if test -n "$with_build_time_tools"; then
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
15569 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
15570 if test -x $with_build_time_tools/readelf; then
15571 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
15572 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
15574 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
15575 else
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577 $as_echo "no" >&6; }
15579 elif test $build != $host && test $have_gcc_for_target = yes; then
15580 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
15581 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
15582 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15585 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15586 # Extract the first word of "readelf", so it can be a program name with args.
15587 set dummy readelf; ac_word=$2
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15589 $as_echo_n "checking for $ac_word... " >&6; }
15590 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
15591 $as_echo_n "(cached) " >&6
15592 else
15593 case $READELF_FOR_TARGET in
15594 [\\/]* | ?:[\\/]*)
15595 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
15598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15599 for as_dir in $gcc_cv_tool_dirs
15601 IFS=$as_save_IFS
15602 test -z "$as_dir" && as_dir=.
15603 for ac_exec_ext in '' $ac_executable_extensions; do
15604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15605 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15607 break 2
15609 done
15610 done
15611 IFS=$as_save_IFS
15614 esac
15616 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15617 if test -n "$READELF_FOR_TARGET"; then
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15619 $as_echo "$READELF_FOR_TARGET" >&6; }
15620 else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15622 $as_echo "no" >&6; }
15627 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15630 if test -n "$READELF_FOR_TARGET"; then
15631 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
15632 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15633 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15636 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15637 for ncn_progname in readelf; do
15638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15639 set dummy ${ncn_progname}; ac_word=$2
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15641 $as_echo_n "checking for $ac_word... " >&6; }
15642 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15643 $as_echo_n "(cached) " >&6
15644 else
15645 if test -n "$READELF_FOR_TARGET"; then
15646 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15647 else
15648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15649 for as_dir in $PATH
15651 IFS=$as_save_IFS
15652 test -z "$as_dir" && as_dir=.
15653 for ac_exec_ext in '' $ac_executable_extensions; do
15654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15655 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15657 break 2
15659 done
15660 done
15661 IFS=$as_save_IFS
15665 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15666 if test -n "$READELF_FOR_TARGET"; then
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15668 $as_echo "$READELF_FOR_TARGET" >&6; }
15669 else
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15671 $as_echo "no" >&6; }
15675 done
15678 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
15679 for ncn_progname in readelf; do
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15681 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15682 if test -x $with_build_time_tools/${ncn_progname}; then
15683 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15685 $as_echo "yes" >&6; }
15686 break
15687 else
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15689 $as_echo "no" >&6; }
15691 done
15694 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
15695 for ncn_progname in readelf; do
15696 if test -n "$ncn_target_tool_prefix"; then
15697 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15698 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15700 $as_echo_n "checking for $ac_word... " >&6; }
15701 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15702 $as_echo_n "(cached) " >&6
15703 else
15704 if test -n "$READELF_FOR_TARGET"; then
15705 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15706 else
15707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15708 for as_dir in $PATH
15710 IFS=$as_save_IFS
15711 test -z "$as_dir" && as_dir=.
15712 for ac_exec_ext in '' $ac_executable_extensions; do
15713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15714 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15716 break 2
15718 done
15719 done
15720 IFS=$as_save_IFS
15724 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15725 if test -n "$READELF_FOR_TARGET"; then
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15727 $as_echo "$READELF_FOR_TARGET" >&6; }
15728 else
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730 $as_echo "no" >&6; }
15735 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
15736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15737 set dummy ${ncn_progname}; ac_word=$2
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15739 $as_echo_n "checking for $ac_word... " >&6; }
15740 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15741 $as_echo_n "(cached) " >&6
15742 else
15743 if test -n "$READELF_FOR_TARGET"; then
15744 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15745 else
15746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15747 for as_dir in $PATH
15749 IFS=$as_save_IFS
15750 test -z "$as_dir" && as_dir=.
15751 for ac_exec_ext in '' $ac_executable_extensions; do
15752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15753 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15755 break 2
15757 done
15758 done
15759 IFS=$as_save_IFS
15763 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15764 if test -n "$READELF_FOR_TARGET"; then
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15766 $as_echo "$READELF_FOR_TARGET" >&6; }
15767 else
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769 $as_echo "no" >&6; }
15774 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
15775 done
15778 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
15779 set dummy readelf
15780 if test $build = $target ; then
15781 READELF_FOR_TARGET="$2"
15782 else
15783 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
15785 else
15786 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
15789 else
15790 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15796 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
15797 if test -n "$with_build_time_tools"; then
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
15799 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
15800 if test -x $with_build_time_tools/strip; then
15801 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
15802 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
15804 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
15805 else
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15807 $as_echo "no" >&6; }
15809 elif test $build != $host && test $have_gcc_for_target = yes; then
15810 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
15811 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
15812 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15815 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15816 # Extract the first word of "strip", so it can be a program name with args.
15817 set dummy strip; ac_word=$2
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15819 $as_echo_n "checking for $ac_word... " >&6; }
15820 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
15821 $as_echo_n "(cached) " >&6
15822 else
15823 case $STRIP_FOR_TARGET in
15824 [\\/]* | ?:[\\/]*)
15825 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
15828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15829 for as_dir in $gcc_cv_tool_dirs
15831 IFS=$as_save_IFS
15832 test -z "$as_dir" && as_dir=.
15833 for ac_exec_ext in '' $ac_executable_extensions; do
15834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15835 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15837 break 2
15839 done
15840 done
15841 IFS=$as_save_IFS
15844 esac
15846 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
15847 if test -n "$STRIP_FOR_TARGET"; then
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15849 $as_echo "$STRIP_FOR_TARGET" >&6; }
15850 else
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15852 $as_echo "no" >&6; }
15857 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
15860 if test -n "$STRIP_FOR_TARGET"; then
15861 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15862 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
15863 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15866 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
15867 for ncn_progname in strip; do
15868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15869 set dummy ${ncn_progname}; ac_word=$2
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15871 $as_echo_n "checking for $ac_word... " >&6; }
15872 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
15873 $as_echo_n "(cached) " >&6
15874 else
15875 if test -n "$STRIP_FOR_TARGET"; then
15876 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15877 else
15878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15879 for as_dir in $PATH
15881 IFS=$as_save_IFS
15882 test -z "$as_dir" && as_dir=.
15883 for ac_exec_ext in '' $ac_executable_extensions; do
15884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15885 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
15886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15887 break 2
15889 done
15890 done
15891 IFS=$as_save_IFS
15895 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15896 if test -n "$STRIP_FOR_TARGET"; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15898 $as_echo "$STRIP_FOR_TARGET" >&6; }
15899 else
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901 $as_echo "no" >&6; }
15905 done
15908 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15909 for ncn_progname in strip; do
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15911 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15912 if test -x $with_build_time_tools/${ncn_progname}; then
15913 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15915 $as_echo "yes" >&6; }
15916 break
15917 else
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919 $as_echo "no" >&6; }
15921 done
15924 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
15925 for ncn_progname in strip; do
15926 if test -n "$ncn_target_tool_prefix"; then
15927 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15928 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15930 $as_echo_n "checking for $ac_word... " >&6; }
15931 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
15932 $as_echo_n "(cached) " >&6
15933 else
15934 if test -n "$STRIP_FOR_TARGET"; then
15935 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15936 else
15937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15938 for as_dir in $PATH
15940 IFS=$as_save_IFS
15941 test -z "$as_dir" && as_dir=.
15942 for ac_exec_ext in '' $ac_executable_extensions; do
15943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15944 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15946 break 2
15948 done
15949 done
15950 IFS=$as_save_IFS
15954 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15955 if test -n "$STRIP_FOR_TARGET"; then
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15957 $as_echo "$STRIP_FOR_TARGET" >&6; }
15958 else
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15960 $as_echo "no" >&6; }
15965 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
15966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15967 set dummy ${ncn_progname}; ac_word=$2
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15969 $as_echo_n "checking for $ac_word... " >&6; }
15970 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
15971 $as_echo_n "(cached) " >&6
15972 else
15973 if test -n "$STRIP_FOR_TARGET"; then
15974 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15975 else
15976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15977 for as_dir in $PATH
15979 IFS=$as_save_IFS
15980 test -z "$as_dir" && as_dir=.
15981 for ac_exec_ext in '' $ac_executable_extensions; do
15982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15983 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
15984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15985 break 2
15987 done
15988 done
15989 IFS=$as_save_IFS
15993 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15994 if test -n "$STRIP_FOR_TARGET"; then
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15996 $as_echo "$STRIP_FOR_TARGET" >&6; }
15997 else
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15999 $as_echo "no" >&6; }
16004 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16005 done
16008 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16009 set dummy strip
16010 if test $build = $target ; then
16011 STRIP_FOR_TARGET="$2"
16012 else
16013 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16015 else
16016 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16019 else
16020 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16026 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16027 if test -n "$with_build_time_tools"; then
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16029 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16030 if test -x $with_build_time_tools/windres; then
16031 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16032 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16034 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16035 else
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16037 $as_echo "no" >&6; }
16039 elif test $build != $host && test $have_gcc_for_target = yes; then
16040 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16041 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16042 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16045 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16046 # Extract the first word of "windres", so it can be a program name with args.
16047 set dummy windres; ac_word=$2
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16049 $as_echo_n "checking for $ac_word... " >&6; }
16050 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16051 $as_echo_n "(cached) " >&6
16052 else
16053 case $WINDRES_FOR_TARGET in
16054 [\\/]* | ?:[\\/]*)
16055 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16059 for as_dir in $gcc_cv_tool_dirs
16061 IFS=$as_save_IFS
16062 test -z "$as_dir" && as_dir=.
16063 for ac_exec_ext in '' $ac_executable_extensions; do
16064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16065 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16067 break 2
16069 done
16070 done
16071 IFS=$as_save_IFS
16074 esac
16076 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16077 if test -n "$WINDRES_FOR_TARGET"; then
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16079 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16080 else
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082 $as_echo "no" >&6; }
16087 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16090 if test -n "$WINDRES_FOR_TARGET"; then
16091 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16092 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16093 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16096 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16097 for ncn_progname in windres; do
16098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16099 set dummy ${ncn_progname}; ac_word=$2
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16101 $as_echo_n "checking for $ac_word... " >&6; }
16102 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16103 $as_echo_n "(cached) " >&6
16104 else
16105 if test -n "$WINDRES_FOR_TARGET"; then
16106 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16107 else
16108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16109 for as_dir in $PATH
16111 IFS=$as_save_IFS
16112 test -z "$as_dir" && as_dir=.
16113 for ac_exec_ext in '' $ac_executable_extensions; do
16114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16115 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16117 break 2
16119 done
16120 done
16121 IFS=$as_save_IFS
16125 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16126 if test -n "$WINDRES_FOR_TARGET"; then
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16128 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16129 else
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16131 $as_echo "no" >&6; }
16135 done
16138 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16139 for ncn_progname in windres; do
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16141 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16142 if test -x $with_build_time_tools/${ncn_progname}; then
16143 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16145 $as_echo "yes" >&6; }
16146 break
16147 else
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 $as_echo "no" >&6; }
16151 done
16154 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16155 for ncn_progname in windres; do
16156 if test -n "$ncn_target_tool_prefix"; then
16157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16158 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16160 $as_echo_n "checking for $ac_word... " >&6; }
16161 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16162 $as_echo_n "(cached) " >&6
16163 else
16164 if test -n "$WINDRES_FOR_TARGET"; then
16165 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16166 else
16167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16168 for as_dir in $PATH
16170 IFS=$as_save_IFS
16171 test -z "$as_dir" && as_dir=.
16172 for ac_exec_ext in '' $ac_executable_extensions; do
16173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16174 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16176 break 2
16178 done
16179 done
16180 IFS=$as_save_IFS
16184 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16185 if test -n "$WINDRES_FOR_TARGET"; then
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16187 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16188 else
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16190 $as_echo "no" >&6; }
16195 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16197 set dummy ${ncn_progname}; ac_word=$2
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16199 $as_echo_n "checking for $ac_word... " >&6; }
16200 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16201 $as_echo_n "(cached) " >&6
16202 else
16203 if test -n "$WINDRES_FOR_TARGET"; then
16204 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16205 else
16206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16207 for as_dir in $PATH
16209 IFS=$as_save_IFS
16210 test -z "$as_dir" && as_dir=.
16211 for ac_exec_ext in '' $ac_executable_extensions; do
16212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16213 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16215 break 2
16217 done
16218 done
16219 IFS=$as_save_IFS
16223 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16224 if test -n "$WINDRES_FOR_TARGET"; then
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16226 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16227 else
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16234 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16235 done
16238 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16239 set dummy windres
16240 if test $build = $target ; then
16241 WINDRES_FOR_TARGET="$2"
16242 else
16243 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16245 else
16246 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16249 else
16250 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16256 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16257 if test -n "$with_build_time_tools"; then
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16259 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16260 if test -x $with_build_time_tools/windmc; then
16261 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16262 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16264 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16265 else
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16267 $as_echo "no" >&6; }
16269 elif test $build != $host && test $have_gcc_for_target = yes; then
16270 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16271 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16272 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16275 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16276 # Extract the first word of "windmc", so it can be a program name with args.
16277 set dummy windmc; ac_word=$2
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16279 $as_echo_n "checking for $ac_word... " >&6; }
16280 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16281 $as_echo_n "(cached) " >&6
16282 else
16283 case $WINDMC_FOR_TARGET in
16284 [\\/]* | ?:[\\/]*)
16285 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16289 for as_dir in $gcc_cv_tool_dirs
16291 IFS=$as_save_IFS
16292 test -z "$as_dir" && as_dir=.
16293 for ac_exec_ext in '' $ac_executable_extensions; do
16294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16295 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16297 break 2
16299 done
16300 done
16301 IFS=$as_save_IFS
16304 esac
16306 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16307 if test -n "$WINDMC_FOR_TARGET"; then
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16309 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16310 else
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312 $as_echo "no" >&6; }
16317 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16320 if test -n "$WINDMC_FOR_TARGET"; then
16321 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16322 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16323 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16326 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16327 for ncn_progname in windmc; do
16328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16329 set dummy ${ncn_progname}; ac_word=$2
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16331 $as_echo_n "checking for $ac_word... " >&6; }
16332 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16333 $as_echo_n "(cached) " >&6
16334 else
16335 if test -n "$WINDMC_FOR_TARGET"; then
16336 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16337 else
16338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16339 for as_dir in $PATH
16341 IFS=$as_save_IFS
16342 test -z "$as_dir" && as_dir=.
16343 for ac_exec_ext in '' $ac_executable_extensions; do
16344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16345 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16347 break 2
16349 done
16350 done
16351 IFS=$as_save_IFS
16355 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16356 if test -n "$WINDMC_FOR_TARGET"; then
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16358 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16359 else
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16361 $as_echo "no" >&6; }
16365 done
16368 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16369 for ncn_progname in windmc; do
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16371 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16372 if test -x $with_build_time_tools/${ncn_progname}; then
16373 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16375 $as_echo "yes" >&6; }
16376 break
16377 else
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379 $as_echo "no" >&6; }
16381 done
16384 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16385 for ncn_progname in windmc; do
16386 if test -n "$ncn_target_tool_prefix"; then
16387 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16388 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16390 $as_echo_n "checking for $ac_word... " >&6; }
16391 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16392 $as_echo_n "(cached) " >&6
16393 else
16394 if test -n "$WINDMC_FOR_TARGET"; then
16395 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16396 else
16397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16398 for as_dir in $PATH
16400 IFS=$as_save_IFS
16401 test -z "$as_dir" && as_dir=.
16402 for ac_exec_ext in '' $ac_executable_extensions; do
16403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16404 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16406 break 2
16408 done
16409 done
16410 IFS=$as_save_IFS
16414 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16415 if test -n "$WINDMC_FOR_TARGET"; then
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16417 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16418 else
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16420 $as_echo "no" >&6; }
16425 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16427 set dummy ${ncn_progname}; ac_word=$2
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16429 $as_echo_n "checking for $ac_word... " >&6; }
16430 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16431 $as_echo_n "(cached) " >&6
16432 else
16433 if test -n "$WINDMC_FOR_TARGET"; then
16434 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16435 else
16436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16437 for as_dir in $PATH
16439 IFS=$as_save_IFS
16440 test -z "$as_dir" && as_dir=.
16441 for ac_exec_ext in '' $ac_executable_extensions; do
16442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16443 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16445 break 2
16447 done
16448 done
16449 IFS=$as_save_IFS
16453 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16454 if test -n "$WINDMC_FOR_TARGET"; then
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16456 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16457 else
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16459 $as_echo "no" >&6; }
16464 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
16465 done
16468 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
16469 set dummy windmc
16470 if test $build = $target ; then
16471 WINDMC_FOR_TARGET="$2"
16472 else
16473 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
16475 else
16476 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
16479 else
16480 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16484 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
16487 $as_echo_n "checking where to find the target ar... " >&6; }
16488 if test "x${build}" != "x${host}" ; then
16489 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16490 # We already found the complete path
16491 ac_dir=`dirname $AR_FOR_TARGET`
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16493 $as_echo "pre-installed in $ac_dir" >&6; }
16494 else
16495 # Canadian cross, just use what we found
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16497 $as_echo "pre-installed" >&6; }
16499 else
16500 ok=yes
16501 case " ${configdirs} " in
16502 *" binutils "*) ;;
16503 *) ok=no ;;
16504 esac
16506 if test $ok = yes; then
16507 # An in-tree tool is available and we can use it
16508 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16510 $as_echo "just compiled" >&6; }
16511 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16512 # We already found the complete path
16513 ac_dir=`dirname $AR_FOR_TARGET`
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16515 $as_echo "pre-installed in $ac_dir" >&6; }
16516 elif test "x$target" = "x$host"; then
16517 # We can use an host tool
16518 AR_FOR_TARGET='$(AR)'
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16520 $as_echo "host tool" >&6; }
16521 else
16522 # We need a cross tool
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16524 $as_echo "pre-installed" >&6; }
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
16529 $as_echo_n "checking where to find the target as... " >&6; }
16530 if test "x${build}" != "x${host}" ; then
16531 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16532 # We already found the complete path
16533 ac_dir=`dirname $AS_FOR_TARGET`
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16535 $as_echo "pre-installed in $ac_dir" >&6; }
16536 else
16537 # Canadian cross, just use what we found
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16539 $as_echo "pre-installed" >&6; }
16541 else
16542 ok=yes
16543 case " ${configdirs} " in
16544 *" gas "*) ;;
16545 *) ok=no ;;
16546 esac
16548 if test $ok = yes; then
16549 # An in-tree tool is available and we can use it
16550 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16552 $as_echo "just compiled" >&6; }
16553 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16554 # We already found the complete path
16555 ac_dir=`dirname $AS_FOR_TARGET`
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16557 $as_echo "pre-installed in $ac_dir" >&6; }
16558 elif test "x$target" = "x$host"; then
16559 # We can use an host tool
16560 AS_FOR_TARGET='$(AS)'
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16562 $as_echo "host tool" >&6; }
16563 else
16564 # We need a cross tool
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16566 $as_echo "pre-installed" >&6; }
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
16571 $as_echo_n "checking where to find the target cc... " >&6; }
16572 if test "x${build}" != "x${host}" ; then
16573 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16574 # We already found the complete path
16575 ac_dir=`dirname $CC_FOR_TARGET`
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16577 $as_echo "pre-installed in $ac_dir" >&6; }
16578 else
16579 # Canadian cross, just use what we found
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16581 $as_echo "pre-installed" >&6; }
16583 else
16584 ok=yes
16585 case " ${configdirs} " in
16586 *" gcc "*) ;;
16587 *) ok=no ;;
16588 esac
16590 if test $ok = yes; then
16591 # An in-tree tool is available and we can use it
16592 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16594 $as_echo "just compiled" >&6; }
16595 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16596 # We already found the complete path
16597 ac_dir=`dirname $CC_FOR_TARGET`
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16599 $as_echo "pre-installed in $ac_dir" >&6; }
16600 elif test "x$target" = "x$host"; then
16601 # We can use an host tool
16602 CC_FOR_TARGET='$(CC)'
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16604 $as_echo "host tool" >&6; }
16605 else
16606 # We need a cross tool
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16608 $as_echo "pre-installed" >&6; }
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
16613 $as_echo_n "checking where to find the target c++... " >&6; }
16614 if test "x${build}" != "x${host}" ; then
16615 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16616 # We already found the complete path
16617 ac_dir=`dirname $CXX_FOR_TARGET`
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16619 $as_echo "pre-installed in $ac_dir" >&6; }
16620 else
16621 # Canadian cross, just use what we found
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16623 $as_echo "pre-installed" >&6; }
16625 else
16626 ok=yes
16627 case " ${configdirs} " in
16628 *" gcc "*) ;;
16629 *) ok=no ;;
16630 esac
16631 case ,${enable_languages}, in
16632 *,c++,*) ;;
16633 *) ok=no ;;
16634 esac
16635 if test $ok = yes; then
16636 # An in-tree tool is available and we can use it
16637 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'
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16639 $as_echo "just compiled" >&6; }
16640 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16641 # We already found the complete path
16642 ac_dir=`dirname $CXX_FOR_TARGET`
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16644 $as_echo "pre-installed in $ac_dir" >&6; }
16645 elif test "x$target" = "x$host"; then
16646 # We can use an host tool
16647 CXX_FOR_TARGET='$(CXX)'
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16649 $as_echo "host tool" >&6; }
16650 else
16651 # We need a cross tool
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16653 $as_echo "pre-installed" >&6; }
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
16658 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
16659 if test "x${build}" != "x${host}" ; then
16660 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16661 # We already found the complete path
16662 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16664 $as_echo "pre-installed in $ac_dir" >&6; }
16665 else
16666 # Canadian cross, just use what we found
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16668 $as_echo "pre-installed" >&6; }
16670 else
16671 ok=yes
16672 case " ${configdirs} " in
16673 *" gcc "*) ;;
16674 *) ok=no ;;
16675 esac
16676 case ,${enable_languages}, in
16677 *,c++,*) ;;
16678 *) ok=no ;;
16679 esac
16680 if test $ok = yes; then
16681 # An in-tree tool is available and we can use it
16682 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'
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16684 $as_echo "just compiled" >&6; }
16685 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16686 # We already found the complete path
16687 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16689 $as_echo "pre-installed in $ac_dir" >&6; }
16690 elif test "x$target" = "x$host"; then
16691 # We can use an host tool
16692 RAW_CXX_FOR_TARGET='$(CXX)'
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16694 $as_echo "host tool" >&6; }
16695 else
16696 # We need a cross tool
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16698 $as_echo "pre-installed" >&6; }
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
16703 $as_echo_n "checking where to find the target dlltool... " >&6; }
16704 if test "x${build}" != "x${host}" ; then
16705 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16706 # We already found the complete path
16707 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16709 $as_echo "pre-installed in $ac_dir" >&6; }
16710 else
16711 # Canadian cross, just use what we found
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16713 $as_echo "pre-installed" >&6; }
16715 else
16716 ok=yes
16717 case " ${configdirs} " in
16718 *" binutils "*) ;;
16719 *) ok=no ;;
16720 esac
16722 if test $ok = yes; then
16723 # An in-tree tool is available and we can use it
16724 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16726 $as_echo "just compiled" >&6; }
16727 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16728 # We already found the complete path
16729 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16731 $as_echo "pre-installed in $ac_dir" >&6; }
16732 elif test "x$target" = "x$host"; then
16733 # We can use an host tool
16734 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16736 $as_echo "host tool" >&6; }
16737 else
16738 # We need a cross tool
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16740 $as_echo "pre-installed" >&6; }
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
16745 $as_echo_n "checking where to find the target gcc... " >&6; }
16746 if test "x${build}" != "x${host}" ; then
16747 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16748 # We already found the complete path
16749 ac_dir=`dirname $GCC_FOR_TARGET`
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16751 $as_echo "pre-installed in $ac_dir" >&6; }
16752 else
16753 # Canadian cross, just use what we found
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16755 $as_echo "pre-installed" >&6; }
16757 else
16758 ok=yes
16759 case " ${configdirs} " in
16760 *" gcc "*) ;;
16761 *) ok=no ;;
16762 esac
16764 if test $ok = yes; then
16765 # An in-tree tool is available and we can use it
16766 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16768 $as_echo "just compiled" >&6; }
16769 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16770 # We already found the complete path
16771 ac_dir=`dirname $GCC_FOR_TARGET`
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16773 $as_echo "pre-installed in $ac_dir" >&6; }
16774 elif test "x$target" = "x$host"; then
16775 # We can use an host tool
16776 GCC_FOR_TARGET='$()'
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16778 $as_echo "host tool" >&6; }
16779 else
16780 # We need a cross tool
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16782 $as_echo "pre-installed" >&6; }
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
16787 $as_echo_n "checking where to find the target gfortran... " >&6; }
16788 if test "x${build}" != "x${host}" ; then
16789 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16790 # We already found the complete path
16791 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16793 $as_echo "pre-installed in $ac_dir" >&6; }
16794 else
16795 # Canadian cross, just use what we found
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16797 $as_echo "pre-installed" >&6; }
16799 else
16800 ok=yes
16801 case " ${configdirs} " in
16802 *" gcc "*) ;;
16803 *) ok=no ;;
16804 esac
16805 case ,${enable_languages}, in
16806 *,fortran,*) ;;
16807 *) ok=no ;;
16808 esac
16809 if test $ok = yes; then
16810 # An in-tree tool is available and we can use it
16811 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16813 $as_echo "just compiled" >&6; }
16814 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16815 # We already found the complete path
16816 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16818 $as_echo "pre-installed in $ac_dir" >&6; }
16819 elif test "x$target" = "x$host"; then
16820 # We can use an host tool
16821 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16823 $as_echo "host tool" >&6; }
16824 else
16825 # We need a cross tool
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16827 $as_echo "pre-installed" >&6; }
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
16832 $as_echo_n "checking where to find the target gccgo... " >&6; }
16833 if test "x${build}" != "x${host}" ; then
16834 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
16835 # We already found the complete path
16836 ac_dir=`dirname $GOC_FOR_TARGET`
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16838 $as_echo "pre-installed in $ac_dir" >&6; }
16839 else
16840 # Canadian cross, just use what we found
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16842 $as_echo "pre-installed" >&6; }
16844 else
16845 ok=yes
16846 case " ${configdirs} " in
16847 *" gcc "*) ;;
16848 *) ok=no ;;
16849 esac
16850 case ,${enable_languages}, in
16851 *,go,*) ;;
16852 *) ok=no ;;
16853 esac
16854 if test $ok = yes; then
16855 # An in-tree tool is available and we can use it
16856 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16858 $as_echo "just compiled" >&6; }
16859 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
16860 # We already found the complete path
16861 ac_dir=`dirname $GOC_FOR_TARGET`
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16863 $as_echo "pre-installed in $ac_dir" >&6; }
16864 elif test "x$target" = "x$host"; then
16865 # We can use an host tool
16866 GOC_FOR_TARGET='$(GOC)'
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16868 $as_echo "host tool" >&6; }
16869 else
16870 # We need a cross tool
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16872 $as_echo "pre-installed" >&6; }
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
16877 $as_echo_n "checking where to find the target gdc... " >&6; }
16878 if test "x${build}" != "x${host}" ; then
16879 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
16880 # We already found the complete path
16881 ac_dir=`dirname $GDC_FOR_TARGET`
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16883 $as_echo "pre-installed in $ac_dir" >&6; }
16884 else
16885 # Canadian cross, just use what we found
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16887 $as_echo "pre-installed" >&6; }
16889 else
16890 ok=yes
16891 case " ${configdirs} " in
16892 *" gcc "*) ;;
16893 *) ok=no ;;
16894 esac
16895 case ,${enable_languages}, in
16896 *,d,*) ;;
16897 *) ok=no ;;
16898 esac
16899 if test $ok = yes; then
16900 # An in-tree tool is available and we can use it
16901 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16903 $as_echo "just compiled" >&6; }
16904 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
16905 # We already found the complete path
16906 ac_dir=`dirname $GDC_FOR_TARGET`
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16908 $as_echo "pre-installed in $ac_dir" >&6; }
16909 elif test "x$target" = "x$host"; then
16910 # We can use an host tool
16911 GDC_FOR_TARGET='$(GDC)'
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16913 $as_echo "host tool" >&6; }
16914 else
16915 # We need a cross tool
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16917 $as_echo "pre-installed" >&6; }
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
16922 $as_echo_n "checking where to find the target ld... " >&6; }
16923 if test "x${build}" != "x${host}" ; then
16924 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
16925 # We already found the complete path
16926 ac_dir=`dirname $LD_FOR_TARGET`
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16928 $as_echo "pre-installed in $ac_dir" >&6; }
16929 else
16930 # Canadian cross, just use what we found
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16932 $as_echo "pre-installed" >&6; }
16934 else
16935 ok=yes
16936 case " ${configdirs} " in
16937 *" ld "*) ;;
16938 *) ok=no ;;
16939 esac
16941 if test $ok = yes; then
16942 # An in-tree tool is available and we can use it
16943 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16945 $as_echo "just compiled" >&6; }
16946 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
16947 # We already found the complete path
16948 ac_dir=`dirname $LD_FOR_TARGET`
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16950 $as_echo "pre-installed in $ac_dir" >&6; }
16951 elif test "x$target" = "x$host"; then
16952 # We can use an host tool
16953 LD_FOR_TARGET='$(LD)'
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16955 $as_echo "host tool" >&6; }
16956 else
16957 # We need a cross tool
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16959 $as_echo "pre-installed" >&6; }
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
16964 $as_echo_n "checking where to find the target lipo... " >&6; }
16965 if test "x${build}" != "x${host}" ; then
16966 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
16967 # We already found the complete path
16968 ac_dir=`dirname $LIPO_FOR_TARGET`
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16970 $as_echo "pre-installed in $ac_dir" >&6; }
16971 else
16972 # Canadian cross, just use what we found
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16974 $as_echo "pre-installed" >&6; }
16976 else
16977 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
16978 # We already found the complete path
16979 ac_dir=`dirname $LIPO_FOR_TARGET`
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16981 $as_echo "pre-installed in $ac_dir" >&6; }
16982 elif test "x$target" = "x$host"; then
16983 # We can use an host tool
16984 LIPO_FOR_TARGET='$(LIPO)'
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16986 $as_echo "host tool" >&6; }
16987 else
16988 # We need a cross tool
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16990 $as_echo "pre-installed" >&6; }
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
16995 $as_echo_n "checking where to find the target nm... " >&6; }
16996 if test "x${build}" != "x${host}" ; then
16997 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
16998 # We already found the complete path
16999 ac_dir=`dirname $NM_FOR_TARGET`
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17001 $as_echo "pre-installed in $ac_dir" >&6; }
17002 else
17003 # Canadian cross, just use what we found
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17005 $as_echo "pre-installed" >&6; }
17007 else
17008 ok=yes
17009 case " ${configdirs} " in
17010 *" binutils "*) ;;
17011 *) ok=no ;;
17012 esac
17014 if test $ok = yes; then
17015 # An in-tree tool is available and we can use it
17016 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17018 $as_echo "just compiled" >&6; }
17019 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17020 # We already found the complete path
17021 ac_dir=`dirname $NM_FOR_TARGET`
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17023 $as_echo "pre-installed in $ac_dir" >&6; }
17024 elif test "x$target" = "x$host"; then
17025 # We can use an host tool
17026 NM_FOR_TARGET='$(NM)'
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17028 $as_echo "host tool" >&6; }
17029 else
17030 # We need a cross tool
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17032 $as_echo "pre-installed" >&6; }
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17037 $as_echo_n "checking where to find the target objcopy... " >&6; }
17038 if test "x${build}" != "x${host}" ; then
17039 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17040 # We already found the complete path
17041 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17043 $as_echo "pre-installed in $ac_dir" >&6; }
17044 else
17045 # Canadian cross, just use what we found
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17047 $as_echo "pre-installed" >&6; }
17049 else
17050 ok=yes
17051 case " ${configdirs} " in
17052 *" binutils "*) ;;
17053 *) ok=no ;;
17054 esac
17056 if test $ok = yes; then
17057 # An in-tree tool is available and we can use it
17058 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17060 $as_echo "just compiled" >&6; }
17061 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17062 # We already found the complete path
17063 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17065 $as_echo "pre-installed in $ac_dir" >&6; }
17066 elif test "x$target" = "x$host"; then
17067 # We can use an host tool
17068 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17070 $as_echo "host tool" >&6; }
17071 else
17072 # We need a cross tool
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17074 $as_echo "pre-installed" >&6; }
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17079 $as_echo_n "checking where to find the target objdump... " >&6; }
17080 if test "x${build}" != "x${host}" ; then
17081 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17082 # We already found the complete path
17083 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17085 $as_echo "pre-installed in $ac_dir" >&6; }
17086 else
17087 # Canadian cross, just use what we found
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17089 $as_echo "pre-installed" >&6; }
17091 else
17092 ok=yes
17093 case " ${configdirs} " in
17094 *" binutils "*) ;;
17095 *) ok=no ;;
17096 esac
17098 if test $ok = yes; then
17099 # An in-tree tool is available and we can use it
17100 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17102 $as_echo "just compiled" >&6; }
17103 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17104 # We already found the complete path
17105 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17107 $as_echo "pre-installed in $ac_dir" >&6; }
17108 elif test "x$target" = "x$host"; then
17109 # We can use an host tool
17110 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17112 $as_echo "host tool" >&6; }
17113 else
17114 # We need a cross tool
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17116 $as_echo "pre-installed" >&6; }
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17121 $as_echo_n "checking where to find the target otool... " >&6; }
17122 if test "x${build}" != "x${host}" ; then
17123 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17124 # We already found the complete path
17125 ac_dir=`dirname $OTOOL_FOR_TARGET`
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17127 $as_echo "pre-installed in $ac_dir" >&6; }
17128 else
17129 # Canadian cross, just use what we found
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17131 $as_echo "pre-installed" >&6; }
17133 else
17134 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17135 # We already found the complete path
17136 ac_dir=`dirname $OTOOL_FOR_TARGET`
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17138 $as_echo "pre-installed in $ac_dir" >&6; }
17139 elif test "x$target" = "x$host"; then
17140 # We can use an host tool
17141 OTOOL_FOR_TARGET='$(OTOOL)'
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17143 $as_echo "host tool" >&6; }
17144 else
17145 # We need a cross tool
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17147 $as_echo "pre-installed" >&6; }
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17152 $as_echo_n "checking where to find the target ranlib... " >&6; }
17153 if test "x${build}" != "x${host}" ; then
17154 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17155 # We already found the complete path
17156 ac_dir=`dirname $RANLIB_FOR_TARGET`
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17158 $as_echo "pre-installed in $ac_dir" >&6; }
17159 else
17160 # Canadian cross, just use what we found
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17162 $as_echo "pre-installed" >&6; }
17164 else
17165 ok=yes
17166 case " ${configdirs} " in
17167 *" binutils "*) ;;
17168 *) ok=no ;;
17169 esac
17171 if test $ok = yes; then
17172 # An in-tree tool is available and we can use it
17173 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17175 $as_echo "just compiled" >&6; }
17176 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17177 # We already found the complete path
17178 ac_dir=`dirname $RANLIB_FOR_TARGET`
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17180 $as_echo "pre-installed in $ac_dir" >&6; }
17181 elif test "x$target" = "x$host"; then
17182 # We can use an host tool
17183 RANLIB_FOR_TARGET='$(RANLIB)'
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17185 $as_echo "host tool" >&6; }
17186 else
17187 # We need a cross tool
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17189 $as_echo "pre-installed" >&6; }
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17194 $as_echo_n "checking where to find the target readelf... " >&6; }
17195 if test "x${build}" != "x${host}" ; then
17196 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17197 # We already found the complete path
17198 ac_dir=`dirname $READELF_FOR_TARGET`
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17200 $as_echo "pre-installed in $ac_dir" >&6; }
17201 else
17202 # Canadian cross, just use what we found
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17204 $as_echo "pre-installed" >&6; }
17206 else
17207 ok=yes
17208 case " ${configdirs} " in
17209 *" binutils "*) ;;
17210 *) ok=no ;;
17211 esac
17213 if test $ok = yes; then
17214 # An in-tree tool is available and we can use it
17215 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17217 $as_echo "just compiled" >&6; }
17218 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17219 # We already found the complete path
17220 ac_dir=`dirname $READELF_FOR_TARGET`
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17222 $as_echo "pre-installed in $ac_dir" >&6; }
17223 elif test "x$target" = "x$host"; then
17224 # We can use an host tool
17225 READELF_FOR_TARGET='$(READELF)'
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17227 $as_echo "host tool" >&6; }
17228 else
17229 # We need a cross tool
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17231 $as_echo "pre-installed" >&6; }
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17236 $as_echo_n "checking where to find the target strip... " >&6; }
17237 if test "x${build}" != "x${host}" ; then
17238 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17239 # We already found the complete path
17240 ac_dir=`dirname $STRIP_FOR_TARGET`
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17242 $as_echo "pre-installed in $ac_dir" >&6; }
17243 else
17244 # Canadian cross, just use what we found
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17246 $as_echo "pre-installed" >&6; }
17248 else
17249 ok=yes
17250 case " ${configdirs} " in
17251 *" binutils "*) ;;
17252 *) ok=no ;;
17253 esac
17255 if test $ok = yes; then
17256 # An in-tree tool is available and we can use it
17257 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17259 $as_echo "just compiled" >&6; }
17260 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17261 # We already found the complete path
17262 ac_dir=`dirname $STRIP_FOR_TARGET`
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17264 $as_echo "pre-installed in $ac_dir" >&6; }
17265 elif test "x$target" = "x$host"; then
17266 # We can use an host tool
17267 STRIP_FOR_TARGET='$(STRIP)'
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17269 $as_echo "host tool" >&6; }
17270 else
17271 # We need a cross tool
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17273 $as_echo "pre-installed" >&6; }
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17278 $as_echo_n "checking where to find the target windres... " >&6; }
17279 if test "x${build}" != "x${host}" ; then
17280 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17281 # We already found the complete path
17282 ac_dir=`dirname $WINDRES_FOR_TARGET`
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17284 $as_echo "pre-installed in $ac_dir" >&6; }
17285 else
17286 # Canadian cross, just use what we found
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17288 $as_echo "pre-installed" >&6; }
17290 else
17291 ok=yes
17292 case " ${configdirs} " in
17293 *" binutils "*) ;;
17294 *) ok=no ;;
17295 esac
17297 if test $ok = yes; then
17298 # An in-tree tool is available and we can use it
17299 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17301 $as_echo "just compiled" >&6; }
17302 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17303 # We already found the complete path
17304 ac_dir=`dirname $WINDRES_FOR_TARGET`
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17306 $as_echo "pre-installed in $ac_dir" >&6; }
17307 elif test "x$target" = "x$host"; then
17308 # We can use an host tool
17309 WINDRES_FOR_TARGET='$(WINDRES)'
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17311 $as_echo "host tool" >&6; }
17312 else
17313 # We need a cross tool
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17315 $as_echo "pre-installed" >&6; }
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17320 $as_echo_n "checking where to find the target windmc... " >&6; }
17321 if test "x${build}" != "x${host}" ; then
17322 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17323 # We already found the complete path
17324 ac_dir=`dirname $WINDMC_FOR_TARGET`
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17326 $as_echo "pre-installed in $ac_dir" >&6; }
17327 else
17328 # Canadian cross, just use what we found
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17330 $as_echo "pre-installed" >&6; }
17332 else
17333 ok=yes
17334 case " ${configdirs} " in
17335 *" binutils "*) ;;
17336 *) ok=no ;;
17337 esac
17339 if test $ok = yes; then
17340 # An in-tree tool is available and we can use it
17341 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17343 $as_echo "just compiled" >&6; }
17344 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17345 # We already found the complete path
17346 ac_dir=`dirname $WINDMC_FOR_TARGET`
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17348 $as_echo "pre-installed in $ac_dir" >&6; }
17349 elif test "x$target" = "x$host"; then
17350 # We can use an host tool
17351 WINDMC_FOR_TARGET='$(WINDMC)'
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17353 $as_echo "host tool" >&6; }
17354 else
17355 # We need a cross tool
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17357 $as_echo "pre-installed" >&6; }
17365 # Certain tools may need extra flags.
17366 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17367 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17368 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17370 # When building target libraries, except in a Canadian cross, we use
17371 # the same toolchain as the compiler we just built.
17372 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17373 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17374 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17375 if test $host = $build; then
17376 case " $configdirs " in
17377 *" gcc "*)
17378 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17379 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17380 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17382 esac
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17390 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17391 # Check whether --enable-maintainer-mode was given.
17392 if test "${enable_maintainer_mode+set}" = set; then :
17393 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17394 else
17395 USE_MAINTAINER_MODE=no
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17399 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17402 if test "$USE_MAINTAINER_MODE" = yes; then
17403 MAINTAINER_MODE_TRUE=
17404 MAINTAINER_MODE_FALSE='#'
17405 else
17406 MAINTAINER_MODE_TRUE='#'
17407 MAINTAINER_MODE_FALSE=
17409 MAINT=$MAINTAINER_MODE_TRUE
17411 # ---------------------
17412 # GCC bootstrap support
17413 # ---------------------
17415 # Stage specific cflags for build.
17416 stage1_cflags="-g"
17417 case $build in
17418 vax-*-*)
17419 case ${GCC} in
17420 yes) stage1_cflags="-g -Wa,-J" ;;
17421 *) stage1_cflags="-g -J" ;;
17422 esac ;;
17423 esac
17427 # Enable --enable-checking in stage1 of the compiler.
17428 # Check whether --enable-stage1-checking was given.
17429 if test "${enable_stage1_checking+set}" = set; then :
17430 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
17431 else
17432 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
17433 # For --disable-checking or implicit --enable-checking=release, avoid
17434 # setting --enable-checking=gc in the default stage1 checking for LTO
17435 # bootstraps. See PR62077.
17436 case $BUILD_CONFIG in
17437 *lto*)
17438 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
17440 stage1_checking=--enable-checking=yes,types;;
17441 esac
17442 if test "x$enable_checking" = x && \
17443 test -d ${srcdir}/gcc && \
17444 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
17445 stage1_checking=--enable-checking=yes,types,extra
17447 else
17448 stage1_checking=--enable-checking=$enable_checking,types
17454 # Enable -Werror in bootstrap stage2 and later.
17455 # Check whether --enable-werror was given.
17456 if test "${enable_werror+set}" = set; then :
17457 enableval=$enable_werror;
17458 case ${enable_werror} in
17459 yes) stage2_werror_flag="--enable-werror-always" ;;
17460 *) stage2_werror_flag="" ;;
17461 esac
17463 else
17465 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
17466 case $BUILD_CONFIG in
17467 bootstrap-debug)
17468 stage2_werror_flag="--enable-werror-always" ;;
17470 stage2_werror_flag="--enable-werror-always" ;;
17471 esac
17479 # Specify what files to not compare during bootstrap.
17481 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
17482 case "$target" in
17483 hppa*64*-*-hpux*) ;;
17484 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
17485 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
17486 esac
17489 ac_config_files="$ac_config_files Makefile"
17491 cat >confcache <<\_ACEOF
17492 # This file is a shell script that caches the results of configure
17493 # tests run on this system so they can be shared between configure
17494 # scripts and configure runs, see configure's option --config-cache.
17495 # It is not useful on other systems. If it contains results you don't
17496 # want to keep, you may remove or edit it.
17498 # config.status only pays attention to the cache file if you give it
17499 # the --recheck option to rerun configure.
17501 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17502 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17503 # following values.
17505 _ACEOF
17507 # The following way of writing the cache mishandles newlines in values,
17508 # but we know of no workaround that is simple, portable, and efficient.
17509 # So, we kill variables containing newlines.
17510 # Ultrix sh set writes to stderr and can't be redirected directly,
17511 # and sets the high bit in the cache file unless we assign to the vars.
17513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17514 eval ac_val=\$$ac_var
17515 case $ac_val in #(
17516 *${as_nl}*)
17517 case $ac_var in #(
17518 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17519 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17520 esac
17521 case $ac_var in #(
17522 _ | IFS | as_nl) ;; #(
17523 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17524 *) { eval $ac_var=; unset $ac_var;} ;;
17525 esac ;;
17526 esac
17527 done
17529 (set) 2>&1 |
17530 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17531 *${as_nl}ac_space=\ *)
17532 # `set' does not quote correctly, so add quotes: double-quote
17533 # substitution turns \\\\ into \\, and sed turns \\ into \.
17534 sed -n \
17535 "s/'/'\\\\''/g;
17536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17537 ;; #(
17539 # `set' quotes correctly as required by POSIX, so do not add quotes.
17540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17542 esac |
17543 sort
17545 sed '
17546 /^ac_cv_env_/b end
17547 t clear
17548 :clear
17549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17550 t end
17551 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17552 :end' >>confcache
17553 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17554 if test -w "$cache_file"; then
17555 if test "x$cache_file" != "x/dev/null"; then
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17557 $as_echo "$as_me: updating cache $cache_file" >&6;}
17558 if test ! -f "$cache_file" || test -h "$cache_file"; then
17559 cat confcache >"$cache_file"
17560 else
17561 case $cache_file in #(
17562 */* | ?:*)
17563 mv -f confcache "$cache_file"$$ &&
17564 mv -f "$cache_file"$$ "$cache_file" ;; #(
17566 mv -f confcache "$cache_file" ;;
17567 esac
17570 else
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17572 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17575 rm -f confcache
17577 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17578 # Let make expand exec_prefix.
17579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17581 # Transform confdefs.h into DEFS.
17582 # Protect against shell expansion while executing Makefile rules.
17583 # Protect against Makefile macro expansion.
17585 # If the first sed substitution is executed (which looks for macros that
17586 # take arguments), then branch to the quote section. Otherwise,
17587 # look for a macro that doesn't take arguments.
17588 ac_script='
17589 :mline
17590 /\\$/{
17592 s,\\\n,,
17593 b mline
17595 t clear
17596 :clear
17597 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17598 t quote
17599 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17600 t quote
17601 b any
17602 :quote
17603 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17604 s/\[/\\&/g
17605 s/\]/\\&/g
17606 s/\$/$$/g
17608 :any
17611 s/^\n//
17612 s/\n/ /g
17616 DEFS=`sed -n "$ac_script" confdefs.h`
17619 ac_libobjs=
17620 ac_ltlibobjs=
17622 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17623 # 1. Remove the extension, and $U if already installed.
17624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17625 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17627 # will be set to the directory where LIBOBJS objects are built.
17628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17630 done
17631 LIBOBJS=$ac_libobjs
17633 LTLIBOBJS=$ac_ltlibobjs
17637 : "${CONFIG_STATUS=./config.status}"
17638 ac_write_fail=0
17639 ac_clean_files_save=$ac_clean_files
17640 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17642 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17643 as_write_fail=0
17644 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17645 #! $SHELL
17646 # Generated by $as_me.
17647 # Run this file to recreate the current configuration.
17648 # Compiler output produced by configure, useful for debugging
17649 # configure, is in config.log if it exists.
17651 debug=false
17652 ac_cs_recheck=false
17653 ac_cs_silent=false
17655 SHELL=\${CONFIG_SHELL-$SHELL}
17656 export SHELL
17657 _ASEOF
17658 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17659 ## -------------------- ##
17660 ## M4sh Initialization. ##
17661 ## -------------------- ##
17663 # Be more Bourne compatible
17664 DUALCASE=1; export DUALCASE # for MKS sh
17665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17666 emulate sh
17667 NULLCMD=:
17668 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17669 # is contrary to our usage. Disable this feature.
17670 alias -g '${1+"$@"}'='"$@"'
17671 setopt NO_GLOB_SUBST
17672 else
17673 case `(set -o) 2>/dev/null` in #(
17674 *posix*) :
17675 set -o posix ;; #(
17676 *) :
17678 esac
17682 as_nl='
17684 export as_nl
17685 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17686 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17687 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17689 # Prefer a ksh shell builtin over an external printf program on Solaris,
17690 # but without wasting forks for bash or zsh.
17691 if test -z "$BASH_VERSION$ZSH_VERSION" \
17692 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17693 as_echo='print -r --'
17694 as_echo_n='print -rn --'
17695 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17696 as_echo='printf %s\n'
17697 as_echo_n='printf %s'
17698 else
17699 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17700 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17701 as_echo_n='/usr/ucb/echo -n'
17702 else
17703 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17704 as_echo_n_body='eval
17705 arg=$1;
17706 case $arg in #(
17707 *"$as_nl"*)
17708 expr "X$arg" : "X\\(.*\\)$as_nl";
17709 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17710 esac;
17711 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17713 export as_echo_n_body
17714 as_echo_n='sh -c $as_echo_n_body as_echo'
17716 export as_echo_body
17717 as_echo='sh -c $as_echo_body as_echo'
17720 # The user is always right.
17721 if test "${PATH_SEPARATOR+set}" != set; then
17722 PATH_SEPARATOR=:
17723 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17724 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17725 PATH_SEPARATOR=';'
17730 # IFS
17731 # We need space, tab and new line, in precisely that order. Quoting is
17732 # there to prevent editors from complaining about space-tab.
17733 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17734 # splitting by setting IFS to empty value.)
17735 IFS=" "" $as_nl"
17737 # Find who we are. Look in the path if we contain no directory separator.
17738 as_myself=
17739 case $0 in #((
17740 *[\\/]* ) as_myself=$0 ;;
17741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17742 for as_dir in $PATH
17744 IFS=$as_save_IFS
17745 test -z "$as_dir" && as_dir=.
17746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17747 done
17748 IFS=$as_save_IFS
17751 esac
17752 # We did not find ourselves, most probably we were run as `sh COMMAND'
17753 # in which case we are not to be found in the path.
17754 if test "x$as_myself" = x; then
17755 as_myself=$0
17757 if test ! -f "$as_myself"; then
17758 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17759 exit 1
17762 # Unset variables that we do not need and which cause bugs (e.g. in
17763 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17764 # suppresses any "Segmentation fault" message there. '((' could
17765 # trigger a bug in pdksh 5.2.14.
17766 for as_var in BASH_ENV ENV MAIL MAILPATH
17767 do eval test x\${$as_var+set} = xset \
17768 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17769 done
17770 PS1='$ '
17771 PS2='> '
17772 PS4='+ '
17774 # NLS nuisances.
17775 LC_ALL=C
17776 export LC_ALL
17777 LANGUAGE=C
17778 export LANGUAGE
17780 # CDPATH.
17781 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17784 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17785 # ----------------------------------------
17786 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17787 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17788 # script with STATUS, using 1 if that was 0.
17789 as_fn_error ()
17791 as_status=$1; test $as_status -eq 0 && as_status=1
17792 if test "$4"; then
17793 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17794 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17796 $as_echo "$as_me: error: $2" >&2
17797 as_fn_exit $as_status
17798 } # as_fn_error
17801 # as_fn_set_status STATUS
17802 # -----------------------
17803 # Set $? to STATUS, without forking.
17804 as_fn_set_status ()
17806 return $1
17807 } # as_fn_set_status
17809 # as_fn_exit STATUS
17810 # -----------------
17811 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17812 as_fn_exit ()
17814 set +e
17815 as_fn_set_status $1
17816 exit $1
17817 } # as_fn_exit
17819 # as_fn_unset VAR
17820 # ---------------
17821 # Portably unset VAR.
17822 as_fn_unset ()
17824 { eval $1=; unset $1;}
17826 as_unset=as_fn_unset
17827 # as_fn_append VAR VALUE
17828 # ----------------------
17829 # Append the text in VALUE to the end of the definition contained in VAR. Take
17830 # advantage of any shell optimizations that allow amortized linear growth over
17831 # repeated appends, instead of the typical quadratic growth present in naive
17832 # implementations.
17833 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17834 eval 'as_fn_append ()
17836 eval $1+=\$2
17838 else
17839 as_fn_append ()
17841 eval $1=\$$1\$2
17843 fi # as_fn_append
17845 # as_fn_arith ARG...
17846 # ------------------
17847 # Perform arithmetic evaluation on the ARGs, and store the result in the
17848 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17849 # must be portable across $(()) and expr.
17850 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17851 eval 'as_fn_arith ()
17853 as_val=$(( $* ))
17855 else
17856 as_fn_arith ()
17858 as_val=`expr "$@" || test $? -eq 1`
17860 fi # as_fn_arith
17863 if expr a : '\(a\)' >/dev/null 2>&1 &&
17864 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17865 as_expr=expr
17866 else
17867 as_expr=false
17870 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17871 as_basename=basename
17872 else
17873 as_basename=false
17876 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17877 as_dirname=dirname
17878 else
17879 as_dirname=false
17882 as_me=`$as_basename -- "$0" ||
17883 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17884 X"$0" : 'X\(//\)$' \| \
17885 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17886 $as_echo X/"$0" |
17887 sed '/^.*\/\([^/][^/]*\)\/*$/{
17888 s//\1/
17891 /^X\/\(\/\/\)$/{
17892 s//\1/
17895 /^X\/\(\/\).*/{
17896 s//\1/
17899 s/.*/./; q'`
17901 # Avoid depending upon Character Ranges.
17902 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17905 as_cr_digits='0123456789'
17906 as_cr_alnum=$as_cr_Letters$as_cr_digits
17908 ECHO_C= ECHO_N= ECHO_T=
17909 case `echo -n x` in #(((((
17910 -n*)
17911 case `echo 'xy\c'` in
17912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17913 xy) ECHO_C='\c';;
17914 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17915 ECHO_T=' ';;
17916 esac;;
17918 ECHO_N='-n';;
17919 esac
17921 rm -f conf$$ conf$$.exe conf$$.file
17922 if test -d conf$$.dir; then
17923 rm -f conf$$.dir/conf$$.file
17924 else
17925 rm -f conf$$.dir
17926 mkdir conf$$.dir 2>/dev/null
17928 if (echo >conf$$.file) 2>/dev/null; then
17929 if ln -s conf$$.file conf$$ 2>/dev/null; then
17930 as_ln_s='ln -s'
17931 # ... but there are two gotchas:
17932 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17933 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17934 # In both cases, we have to default to `cp -pR'.
17935 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17936 as_ln_s='cp -pR'
17937 elif ln conf$$.file conf$$ 2>/dev/null; then
17938 as_ln_s=ln
17939 else
17940 as_ln_s='cp -pR'
17942 else
17943 as_ln_s='cp -pR'
17945 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17946 rmdir conf$$.dir 2>/dev/null
17949 # as_fn_mkdir_p
17950 # -------------
17951 # Create "$as_dir" as a directory, including parents if necessary.
17952 as_fn_mkdir_p ()
17955 case $as_dir in #(
17956 -*) as_dir=./$as_dir;;
17957 esac
17958 test -d "$as_dir" || eval $as_mkdir_p || {
17959 as_dirs=
17960 while :; do
17961 case $as_dir in #(
17962 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17963 *) as_qdir=$as_dir;;
17964 esac
17965 as_dirs="'$as_qdir' $as_dirs"
17966 as_dir=`$as_dirname -- "$as_dir" ||
17967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17968 X"$as_dir" : 'X\(//\)[^/]' \| \
17969 X"$as_dir" : 'X\(//\)$' \| \
17970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17971 $as_echo X"$as_dir" |
17972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17973 s//\1/
17976 /^X\(\/\/\)[^/].*/{
17977 s//\1/
17980 /^X\(\/\/\)$/{
17981 s//\1/
17984 /^X\(\/\).*/{
17985 s//\1/
17988 s/.*/./; q'`
17989 test -d "$as_dir" && break
17990 done
17991 test -z "$as_dirs" || eval "mkdir $as_dirs"
17992 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17995 } # as_fn_mkdir_p
17996 if mkdir -p . 2>/dev/null; then
17997 as_mkdir_p='mkdir -p "$as_dir"'
17998 else
17999 test -d ./-p && rmdir ./-p
18000 as_mkdir_p=false
18004 # as_fn_executable_p FILE
18005 # -----------------------
18006 # Test if FILE is an executable regular file.
18007 as_fn_executable_p ()
18009 test -f "$1" && test -x "$1"
18010 } # as_fn_executable_p
18011 as_test_x='test -x'
18012 as_executable_p=as_fn_executable_p
18014 # Sed expression to map a string onto a valid CPP name.
18015 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18017 # Sed expression to map a string onto a valid variable name.
18018 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18021 exec 6>&1
18022 ## ----------------------------------- ##
18023 ## Main body of $CONFIG_STATUS script. ##
18024 ## ----------------------------------- ##
18025 _ASEOF
18026 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18029 # Save the log message, to keep $0 and so on meaningful, and to
18030 # report actual input values of CONFIG_FILES etc. instead of their
18031 # values after options handling.
18032 ac_log="
18033 This file was extended by $as_me, which was
18034 generated by GNU Autoconf 2.69. Invocation command line was
18036 CONFIG_FILES = $CONFIG_FILES
18037 CONFIG_HEADERS = $CONFIG_HEADERS
18038 CONFIG_LINKS = $CONFIG_LINKS
18039 CONFIG_COMMANDS = $CONFIG_COMMANDS
18040 $ $0 $@
18042 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18045 _ACEOF
18047 case $ac_config_files in *"
18048 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18049 esac
18053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18054 # Files that config.status was made for.
18055 config_files="$ac_config_files"
18057 _ACEOF
18059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18060 ac_cs_usage="\
18061 \`$as_me' instantiates files and other configuration actions
18062 from templates according to the current configuration. Unless the files
18063 and actions are specified as TAGs, all are instantiated by default.
18065 Usage: $0 [OPTION]... [TAG]...
18067 -h, --help print this help, then exit
18068 -V, --version print version number and configuration settings, then exit
18069 --config print configuration, then exit
18070 -q, --quiet, --silent
18071 do not print progress messages
18072 -d, --debug don't remove temporary files
18073 --recheck update $as_me by reconfiguring in the same conditions
18074 --file=FILE[:TEMPLATE]
18075 instantiate the configuration file FILE
18077 Configuration files:
18078 $config_files
18080 Report bugs to the package provider."
18082 _ACEOF
18083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18084 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18085 ac_cs_version="\\
18086 config.status
18087 configured by $0, generated by GNU Autoconf 2.69,
18088 with options \\"\$ac_cs_config\\"
18090 Copyright (C) 2012 Free Software Foundation, Inc.
18091 This config.status script is free software; the Free Software Foundation
18092 gives unlimited permission to copy, distribute and modify it."
18094 ac_pwd='$ac_pwd'
18095 srcdir='$srcdir'
18096 INSTALL='$INSTALL'
18097 AWK='$AWK'
18098 test -n "\$AWK" || AWK=awk
18099 _ACEOF
18101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18102 # The default lists apply if the user does not specify any file.
18103 ac_need_defaults=:
18104 while test $# != 0
18106 case $1 in
18107 --*=?*)
18108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18109 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18110 ac_shift=:
18112 --*=)
18113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18114 ac_optarg=
18115 ac_shift=:
18118 ac_option=$1
18119 ac_optarg=$2
18120 ac_shift=shift
18122 esac
18124 case $ac_option in
18125 # Handling of the options.
18126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18127 ac_cs_recheck=: ;;
18128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18129 $as_echo "$ac_cs_version"; exit ;;
18130 --config | --confi | --conf | --con | --co | --c )
18131 $as_echo "$ac_cs_config"; exit ;;
18132 --debug | --debu | --deb | --de | --d | -d )
18133 debug=: ;;
18134 --file | --fil | --fi | --f )
18135 $ac_shift
18136 case $ac_optarg in
18137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18138 '') as_fn_error $? "missing file argument" ;;
18139 esac
18140 as_fn_append CONFIG_FILES " '$ac_optarg'"
18141 ac_need_defaults=false;;
18142 --he | --h | --help | --hel | -h )
18143 $as_echo "$ac_cs_usage"; exit ;;
18144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18146 ac_cs_silent=: ;;
18148 # This is an error.
18149 -*) as_fn_error $? "unrecognized option: \`$1'
18150 Try \`$0 --help' for more information." ;;
18152 *) as_fn_append ac_config_targets " $1"
18153 ac_need_defaults=false ;;
18155 esac
18156 shift
18157 done
18159 ac_configure_extra_args=
18161 if $ac_cs_silent; then
18162 exec 6>/dev/null
18163 ac_configure_extra_args="$ac_configure_extra_args --silent"
18166 _ACEOF
18167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18168 if \$ac_cs_recheck; then
18169 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18170 shift
18171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18172 CONFIG_SHELL='$SHELL'
18173 export CONFIG_SHELL
18174 exec "\$@"
18177 _ACEOF
18178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18179 exec 5>>config.log
18181 echo
18182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18183 ## Running $as_me. ##
18184 _ASBOX
18185 $as_echo "$ac_log"
18186 } >&5
18188 _ACEOF
18189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18191 # INIT-COMMANDS
18193 extrasub_build="$extrasub_build"
18194 extrasub_host="$extrasub_host"
18195 extrasub_target="$extrasub_target"
18197 _ACEOF
18199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18201 # Handling of arguments.
18202 for ac_config_target in $ac_config_targets
18204 case $ac_config_target in
18205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18207 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18208 esac
18209 done
18212 # If the user did not use the arguments to specify the items to instantiate,
18213 # then the envvar interface is used. Set only those that are not.
18214 # We use the long form for the default assignment because of an extremely
18215 # bizarre bug on SunOS 4.1.3.
18216 if $ac_need_defaults; then
18217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18220 # Have a temporary directory for convenience. Make it in the build tree
18221 # simply because there is no reason against having it here, and in addition,
18222 # creating and moving files from /tmp can sometimes cause problems.
18223 # Hook for its removal unless debugging.
18224 # Note that there is a small window in which the directory will not be cleaned:
18225 # after its creation but before its name has been assigned to `$tmp'.
18226 $debug ||
18228 tmp= ac_tmp=
18229 trap 'exit_status=$?
18230 : "${ac_tmp:=$tmp}"
18231 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18233 trap 'as_fn_exit 1' 1 2 13 15
18235 # Create a (secure) tmp directory for tmp files.
18238 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18239 test -d "$tmp"
18240 } ||
18242 tmp=./conf$$-$RANDOM
18243 (umask 077 && mkdir "$tmp")
18244 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18245 ac_tmp=$tmp
18247 # Set up the scripts for CONFIG_FILES section.
18248 # No need to generate them if there are no CONFIG_FILES.
18249 # This happens for instance with `./config.status config.h'.
18250 if test -n "$CONFIG_FILES"; then
18252 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18253 ac_cs_awk_getline=:
18254 ac_cs_awk_pipe_init=
18255 ac_cs_awk_read_file='
18256 while ((getline aline < (F[key])) > 0)
18257 print(aline)
18258 close(F[key])'
18259 ac_cs_awk_pipe_fini=
18260 else
18261 ac_cs_awk_getline=false
18262 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18263 ac_cs_awk_read_file='
18264 print "|#_!!_#|"
18265 print "cat " F[key] " &&"
18266 '$ac_cs_awk_pipe_init
18267 # The final `:' finishes the AND list.
18268 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18270 ac_cr=`echo X | tr X '\015'`
18271 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18272 # But we know of no other shell where ac_cr would be empty at this
18273 # point, so we can use a bashism as a fallback.
18274 if test "x$ac_cr" = x; then
18275 eval ac_cr=\$\'\\r\'
18277 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18278 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18279 ac_cs_awk_cr='\\r'
18280 else
18281 ac_cs_awk_cr=$ac_cr
18284 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18285 _ACEOF
18287 # Create commands to substitute file output variables.
18289 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18290 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18291 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18292 echo "_ACAWK" &&
18293 echo "_ACEOF"
18294 } >conf$$files.sh &&
18295 . ./conf$$files.sh ||
18296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18297 rm -f conf$$files.sh
18300 echo "cat >conf$$subs.awk <<_ACEOF" &&
18301 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18302 echo "_ACEOF"
18303 } >conf$$subs.sh ||
18304 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18305 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18306 ac_delim='%!_!# '
18307 for ac_last_try in false false false false false :; do
18308 . ./conf$$subs.sh ||
18309 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18311 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18312 if test $ac_delim_n = $ac_delim_num; then
18313 break
18314 elif $ac_last_try; then
18315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18316 else
18317 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18319 done
18320 rm -f conf$$subs.sh
18322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18323 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18324 _ACEOF
18325 sed -n '
18327 s/^/S["/; s/!.*/"]=/
18330 s/^[^!]*!//
18331 :repl
18332 t repl
18333 s/'"$ac_delim"'$//
18334 t delim
18337 s/\(.\{148\}\)..*/\1/
18338 t more1
18339 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18342 b repl
18343 :more1
18344 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18347 s/.\{148\}//
18348 t nl
18349 :delim
18351 s/\(.\{148\}\)..*/\1/
18352 t more2
18353 s/["\\]/\\&/g; s/^/"/; s/$/"/
18356 :more2
18357 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18360 s/.\{148\}//
18361 t delim
18362 ' <conf$$subs.awk | sed '
18363 /^[^""]/{
18365 s/\n//
18367 ' >>$CONFIG_STATUS || ac_write_fail=1
18368 rm -f conf$$subs.awk
18369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18370 _ACAWK
18371 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18372 for (key in S) S_is_set[key] = 1
18373 FS = "\a"
18374 \$ac_cs_awk_pipe_init
18377 line = $ 0
18378 nfields = split(line, field, "@")
18379 substed = 0
18380 len = length(field[1])
18381 for (i = 2; i < nfields; i++) {
18382 key = field[i]
18383 keylen = length(key)
18384 if (S_is_set[key]) {
18385 value = S[key]
18386 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18387 len += length(value) + length(field[++i])
18388 substed = 1
18389 } else
18390 len += 1 + keylen
18392 if (nfields == 3 && !substed) {
18393 key = field[2]
18394 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18395 \$ac_cs_awk_read_file
18396 next
18399 print line
18401 \$ac_cs_awk_pipe_fini
18402 _ACAWK
18403 _ACEOF
18404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18405 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18406 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18407 else
18409 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18410 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18411 _ACEOF
18413 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18414 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18415 # trailing colons and then remove the whole line if VPATH becomes empty
18416 # (actually we leave an empty line to preserve line numbers).
18417 if test "x$srcdir" = x.; then
18418 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18420 s///
18421 s/^/:/
18422 s/[ ]*$/:/
18423 s/:\$(srcdir):/:/g
18424 s/:\${srcdir}:/:/g
18425 s/:@srcdir@:/:/g
18426 s/^:*//
18427 s/:*$//
18429 s/\(=[ ]*\).*/\1/
18431 s/\n//
18432 s/^[^=]*=[ ]*$//
18436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18437 fi # test -n "$CONFIG_FILES"
18440 eval set X " :F $CONFIG_FILES "
18441 shift
18442 for ac_tag
18444 case $ac_tag in
18445 :[FHLC]) ac_mode=$ac_tag; continue;;
18446 esac
18447 case $ac_mode$ac_tag in
18448 :[FHL]*:*);;
18449 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18450 :[FH]-) ac_tag=-:-;;
18451 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18452 esac
18453 ac_save_IFS=$IFS
18454 IFS=:
18455 set x $ac_tag
18456 IFS=$ac_save_IFS
18457 shift
18458 ac_file=$1
18459 shift
18461 case $ac_mode in
18462 :L) ac_source=$1;;
18463 :[FH])
18464 ac_file_inputs=
18465 for ac_f
18467 case $ac_f in
18468 -) ac_f="$ac_tmp/stdin";;
18469 *) # Look for the file first in the build tree, then in the source tree
18470 # (if the path is not absolute). The absolute path cannot be DOS-style,
18471 # because $ac_f cannot contain `:'.
18472 test -f "$ac_f" ||
18473 case $ac_f in
18474 [\\/$]*) false;;
18475 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18476 esac ||
18477 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18478 esac
18479 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18480 as_fn_append ac_file_inputs " '$ac_f'"
18481 done
18483 # Let's still pretend it is `configure' which instantiates (i.e., don't
18484 # use $as_me), people would be surprised to read:
18485 # /* config.h. Generated by config.status. */
18486 configure_input='Generated from '`
18487 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18488 `' by configure.'
18489 if test x"$ac_file" != x-; then
18490 configure_input="$ac_file. $configure_input"
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18492 $as_echo "$as_me: creating $ac_file" >&6;}
18494 # Neutralize special characters interpreted by sed in replacement strings.
18495 case $configure_input in #(
18496 *\&* | *\|* | *\\* )
18497 ac_sed_conf_input=`$as_echo "$configure_input" |
18498 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18499 *) ac_sed_conf_input=$configure_input;;
18500 esac
18502 case $ac_tag in
18503 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18505 esac
18507 esac
18509 ac_dir=`$as_dirname -- "$ac_file" ||
18510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18511 X"$ac_file" : 'X\(//\)[^/]' \| \
18512 X"$ac_file" : 'X\(//\)$' \| \
18513 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18514 $as_echo X"$ac_file" |
18515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18516 s//\1/
18519 /^X\(\/\/\)[^/].*/{
18520 s//\1/
18523 /^X\(\/\/\)$/{
18524 s//\1/
18527 /^X\(\/\).*/{
18528 s//\1/
18531 s/.*/./; q'`
18532 as_dir="$ac_dir"; as_fn_mkdir_p
18533 ac_builddir=.
18535 case "$ac_dir" in
18536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18538 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18539 # A ".." for each directory in $ac_dir_suffix.
18540 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18541 case $ac_top_builddir_sub in
18542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18544 esac ;;
18545 esac
18546 ac_abs_top_builddir=$ac_pwd
18547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18548 # for backward compatibility:
18549 ac_top_builddir=$ac_top_build_prefix
18551 case $srcdir in
18552 .) # We are building in place.
18553 ac_srcdir=.
18554 ac_top_srcdir=$ac_top_builddir_sub
18555 ac_abs_top_srcdir=$ac_pwd ;;
18556 [\\/]* | ?:[\\/]* ) # Absolute name.
18557 ac_srcdir=$srcdir$ac_dir_suffix;
18558 ac_top_srcdir=$srcdir
18559 ac_abs_top_srcdir=$srcdir ;;
18560 *) # Relative name.
18561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18562 ac_top_srcdir=$ac_top_build_prefix$srcdir
18563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18564 esac
18565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18568 case $ac_mode in
18571 # CONFIG_FILE
18574 case $INSTALL in
18575 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18576 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18577 esac
18578 _ACEOF
18580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18581 # If the template does not know about datarootdir, expand it.
18582 # FIXME: This hack should be removed a few years after 2.60.
18583 ac_datarootdir_hack=; ac_datarootdir_seen=
18584 ac_sed_dataroot='
18585 /datarootdir/ {
18589 /@datadir@/p
18590 /@docdir@/p
18591 /@infodir@/p
18592 /@localedir@/p
18593 /@mandir@/p'
18594 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18595 *datarootdir*) ac_datarootdir_seen=yes;;
18596 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18598 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18599 _ACEOF
18600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18601 ac_datarootdir_hack='
18602 s&@datadir@&$datadir&g
18603 s&@docdir@&$docdir&g
18604 s&@infodir@&$infodir&g
18605 s&@localedir@&$localedir&g
18606 s&@mandir@&$mandir&g
18607 s&\\\${datarootdir}&$datarootdir&g' ;;
18608 esac
18609 _ACEOF
18611 # Neutralize VPATH when `$srcdir' = `.'.
18612 # Shell code in configure.ac might set extrasub.
18613 # FIXME: do we really want to maintain this feature?
18614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18615 ac_sed_extra="$ac_vpsub
18616 $extrasub
18617 _ACEOF
18618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18621 s|@configure_input@|$ac_sed_conf_input|;t t
18622 s&@top_builddir@&$ac_top_builddir_sub&;t t
18623 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18624 s&@srcdir@&$ac_srcdir&;t t
18625 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18626 s&@top_srcdir@&$ac_top_srcdir&;t t
18627 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18628 s&@builddir@&$ac_builddir&;t t
18629 s&@abs_builddir@&$ac_abs_builddir&;t t
18630 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18631 s&@INSTALL@&$ac_INSTALL&;t t
18632 $ac_datarootdir_hack
18634 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18635 if $ac_cs_awk_getline; then
18636 $AWK -f "$ac_tmp/subs.awk"
18637 else
18638 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18639 fi \
18640 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18642 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18643 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18645 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18647 which seems to be undefined. Please make sure it is defined" >&5
18648 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18649 which seems to be undefined. Please make sure it is defined" >&2;}
18651 rm -f "$ac_tmp/stdin"
18652 case $ac_file in
18653 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18654 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18655 esac \
18656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18661 esac
18664 case $ac_file$ac_mode in
18665 "Makefile":F) sed "$extrasub_build" Makefile |
18666 sed "$extrasub_host" |
18667 sed "$extrasub_target" > mf$$
18668 mv -f mf$$ Makefile ;;
18670 esac
18671 done # for ac_tag
18674 as_fn_exit 0
18675 _ACEOF
18676 ac_clean_files=$ac_clean_files_save
18678 test $ac_write_fail = 0 ||
18679 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18682 # configure is writing to config.log, and then calls config.status.
18683 # config.status does its own redirection, appending to config.log.
18684 # Unfortunately, on DOS this fails, as config.log is still kept open
18685 # by configure, so config.status won't be able to write to it; its
18686 # output is simply discarded. So we exec the FD to /dev/null,
18687 # effectively closing config.log, so it can be properly (re)opened and
18688 # appended to by config.status. When coming back to configure, we
18689 # need to make the FD available again.
18690 if test "$no_create" != yes; then
18691 ac_cs_success=:
18692 ac_config_status_args=
18693 test "$silent" = yes &&
18694 ac_config_status_args="$ac_config_status_args --quiet"
18695 exec 5>/dev/null
18696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18697 exec 5>>config.log
18698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18699 # would make configure fail if this is the last instruction.
18700 $ac_cs_success || as_fn_exit 1
18702 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18704 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}