Enable generation of GNU stack notes on Linux
[official-gcc.git] / configure
blob18fc7d6c4681b6e24bf3ada8e23fb513e700b0ba
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GM2_FOR_TARGET
617 GDC_FOR_TARGET
618 GOC_FOR_TARGET
619 GFORTRAN_FOR_TARGET
620 GCC_FOR_TARGET
621 CXX_FOR_TARGET
622 CC_FOR_TARGET
623 RANLIB_PLUGIN_OPTION
624 AR_PLUGIN_OPTION
625 PKG_CONFIG_PATH
626 GDCFLAGS
627 READELF
628 OTOOL
629 OBJDUMP
630 OBJCOPY
631 WINDMC
632 WINDRES
633 STRIP
634 RANLIB
636 LIPO
638 DSYMUTIL
639 DLLTOOL
642 RUNTEST
643 EXPECT
644 MAKEINFO
645 FLEX
648 BISON
649 YACC
650 WINDRES_FOR_BUILD
651 WINDMC_FOR_BUILD
652 RANLIB_FOR_BUILD
653 NM_FOR_BUILD
654 LD_FOR_BUILD
655 LDFLAGS_FOR_BUILD
656 GDC_FOR_BUILD
657 GOC_FOR_BUILD
658 GFORTRAN_FOR_BUILD
659 DSYMUTIL_FOR_BUILD
660 DLLTOOL_FOR_BUILD
661 CXX_FOR_BUILD
662 CXXFLAGS_FOR_BUILD
663 CPPFLAGS_FOR_BUILD
664 CPP_FOR_BUILD
665 CFLAGS_FOR_BUILD
666 CC_FOR_BUILD
667 AS_FOR_BUILD
668 AR_FOR_BUILD
669 target_configdirs
670 configdirs
671 build_configdirs
672 INSTALL_GDB_TK
673 GDB_TK
674 CONFIGURE_GDB_TK
675 build_tooldir
676 tooldir
677 GCC_SHLIB_SUBDIR
678 RPATH_ENVVAR
679 target_configargs
680 host_configargs
681 build_configargs
682 BUILD_CONFIG
683 LDFLAGS_FOR_TARGET
684 CXXFLAGS_FOR_TARGET
685 CFLAGS_FOR_TARGET
686 DEBUG_PREFIX_CFLAGS_FOR_TARGET
687 SYSROOT_CFLAGS_FOR_TARGET
688 get_gcc_base_ver
689 extra_host_zlib_configure_flags
690 extra_host_libiberty_configure_flags
691 stage1_languages
692 host_libs_picflag
693 PICFLAG
694 host_shared
695 gcc_host_pie
696 host_pie
697 extra_linker_plugin_flags
698 extra_linker_plugin_configure_flags
699 islinc
700 isllibs
701 poststage1_ldflags
702 poststage1_libs
703 stage1_ldflags
704 stage1_libs
705 extra_isl_gmp_configure_flags
706 extra_mpc_mpfr_configure_flags
707 extra_mpc_gmp_configure_flags
708 extra_mpfr_configure_flags
709 gmpinc
710 gmplibs
711 PGO_BUILD_LTO_CFLAGS
712 PGO_BUILD_USE_CFLAGS
713 PGO_BUILD_GEN_CFLAGS
714 HAVE_CXX11_FOR_BUILD
715 HAVE_CXX11
716 do_compare
718 GNATMAKE
719 GNATBIND
720 ac_ct_CXX
721 CXXFLAGS
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
730 target_subdir
731 host_subdir
732 build_subdir
733 build_libsubdir
736 LN_S
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_os
742 target_vendor
743 target_cpu
744 target
745 host_os
746 host_vendor
747 host_cpu
748 host
749 target_noncanonical
750 host_noncanonical
751 build_noncanonical
752 build_os
753 build_vendor
754 build_cpu
755 build
756 TOPLEVEL_CONFIGURE_ARGUMENTS
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL'
795 ac_subst_files='serialization_dependencies
796 host_makefile_frag
797 target_makefile_frag
798 alphaieee_frag
799 ospace_frag'
800 ac_user_opts='
801 enable_option_checking
802 with_build_libsubdir
803 with_system_zlib
804 with_zstd
805 enable_as_accelerator_for
806 enable_offload_targets
807 enable_offload_defaulted
808 enable_gold
809 enable_ld
810 enable_gprofng
811 enable_compressed_debug_sections
812 enable_default_compressed_debug_sections_algorithm
813 enable_year2038
814 enable_libquadmath
815 enable_libquadmath_support
816 enable_libada
817 enable_libgm2
818 enable_libssp
819 enable_libstdcxx
820 enable_bootstrap
821 enable_pgo_build
822 with_mpc
823 with_mpc_include
824 with_mpc_lib
825 with_mpfr
826 with_mpfr_include
827 with_mpfr_lib
828 with_gmp
829 with_gmp_include
830 with_gmp_lib
831 with_stage1_libs
832 with_static_standard_libraries
833 with_stage1_ldflags
834 with_boot_libs
835 with_boot_ldflags
836 with_isl
837 with_isl_include
838 with_isl_lib
839 enable_isl_version_check
840 enable_lto
841 enable_linker_plugin_configure_flags
842 enable_linker_plugin_flags
843 enable_host_pie
844 enable_host_shared
845 enable_stage1_languages
846 enable_objc_gc
847 with_target_bdw_gc
848 with_target_bdw_gc_include
849 with_target_bdw_gc_lib
850 with_gcc_major_version_only
851 with_build_sysroot
852 with_debug_prefix_map
853 with_build_config
854 enable_vtable_verify
855 enable_serial_configure
856 with_build_time_tools
857 enable_maintainer_mode
858 enable_stage1_checking
859 enable_werror
861 ac_precious_vars='build_alias
862 host_alias
863 target_alias
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
870 CXXFLAGS
872 build_configargs
873 host_configargs
874 target_configargs
877 DLLTOOL
878 DSYMUTIL
880 LIPO
882 RANLIB
883 STRIP
884 WINDRES
885 WINDMC
886 OBJCOPY
887 OBJDUMP
888 OTOOL
889 READELF
890 CC_FOR_TARGET
891 CXX_FOR_TARGET
892 GCC_FOR_TARGET
893 GFORTRAN_FOR_TARGET
894 GOC_FOR_TARGET
895 GDC_FOR_TARGET
896 GM2_FOR_TARGET
897 AR_FOR_TARGET
898 AS_FOR_TARGET
899 DLLTOOL_FOR_TARGET
900 DSYMUTIL_FOR_TARGET
901 LD_FOR_TARGET
902 LIPO_FOR_TARGET
903 NM_FOR_TARGET
904 OBJCOPY_FOR_TARGET
905 OBJDUMP_FOR_TARGET
906 OTOOL_FOR_TARGET
907 RANLIB_FOR_TARGET
908 READELF_FOR_TARGET
909 STRIP_FOR_TARGET
910 WINDRES_FOR_TARGET
911 WINDMC_FOR_TARGET'
914 # Initialize some variables set by options.
915 ac_init_help=
916 ac_init_version=false
917 ac_unrecognized_opts=
918 ac_unrecognized_sep=
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
921 cache_file=/dev/null
922 exec_prefix=NONE
923 no_create=
924 no_recursion=
925 prefix=NONE
926 program_prefix=NONE
927 program_suffix=NONE
928 program_transform_name=s,x,x,
929 silent=
930 site=
931 srcdir=
932 verbose=
933 x_includes=NONE
934 x_libraries=NONE
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE}'
953 infodir='${datarootdir}/info'
954 htmldir='${docdir}'
955 dvidir='${docdir}'
956 pdfdir='${docdir}'
957 psdir='${docdir}'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
962 ac_prev=
963 ac_dashdash=
964 for ac_option
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\$ac_option
969 ac_prev=
970 continue
973 case $ac_option in
974 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *=) ac_optarg= ;;
976 *) ac_optarg=yes ;;
977 esac
979 # Accept the important Cygnus configure options, so we can diagnose typos.
981 case $ac_dashdash$ac_option in
983 ac_dashdash=yes ;;
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
986 ac_prev=bindir ;;
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988 bindir=$ac_optarg ;;
990 -build | --build | --buil | --bui | --bu)
991 ac_prev=build_alias ;;
992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993 build_alias=$ac_optarg ;;
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000 cache_file=$ac_optarg ;;
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
1005 -datadir | --datadir | --datadi | --datad)
1006 ac_prev=datadir ;;
1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008 datadir=$ac_optarg ;;
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1017 -disable-* | --disable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error $? "invalid feature name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=no ;;
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1043 -enable-* | --enable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error $? "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=\$ac_optarg ;;
1059 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061 | --exec | --exe | --ex)
1062 ac_prev=exec_prefix ;;
1063 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065 | --exec=* | --exe=* | --ex=*)
1066 exec_prefix=$ac_optarg ;;
1068 -gas | --gas | --ga | --g)
1069 # Obsolete; use --with-gas.
1070 with_gas=yes ;;
1072 -help | --help | --hel | --he | -h)
1073 ac_init_help=long ;;
1074 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075 ac_init_help=recursive ;;
1076 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077 ac_init_help=short ;;
1079 -host | --host | --hos | --ho)
1080 ac_prev=host_alias ;;
1081 -host=* | --host=* | --hos=* | --ho=*)
1082 host_alias=$ac_optarg ;;
1084 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085 ac_prev=htmldir ;;
1086 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087 | --ht=*)
1088 htmldir=$ac_optarg ;;
1090 -includedir | --includedir | --includedi | --included | --include \
1091 | --includ | --inclu | --incl | --inc)
1092 ac_prev=includedir ;;
1093 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094 | --includ=* | --inclu=* | --incl=* | --inc=*)
1095 includedir=$ac_optarg ;;
1097 -infodir | --infodir | --infodi | --infod | --info | --inf)
1098 ac_prev=infodir ;;
1099 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1100 infodir=$ac_optarg ;;
1102 -libdir | --libdir | --libdi | --libd)
1103 ac_prev=libdir ;;
1104 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1105 libdir=$ac_optarg ;;
1107 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108 | --libexe | --libex | --libe)
1109 ac_prev=libexecdir ;;
1110 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111 | --libexe=* | --libex=* | --libe=*)
1112 libexecdir=$ac_optarg ;;
1114 -localedir | --localedir | --localedi | --localed | --locale)
1115 ac_prev=localedir ;;
1116 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117 localedir=$ac_optarg ;;
1119 -localstatedir | --localstatedir | --localstatedi | --localstated \
1120 | --localstate | --localstat | --localsta | --localst | --locals)
1121 ac_prev=localstatedir ;;
1122 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1123 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1124 localstatedir=$ac_optarg ;;
1126 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127 ac_prev=mandir ;;
1128 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1129 mandir=$ac_optarg ;;
1131 -nfp | --nfp | --nf)
1132 # Obsolete; use --without-fp.
1133 with_fp=no ;;
1135 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1136 | --no-cr | --no-c | -n)
1137 no_create=yes ;;
1139 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 no_recursion=yes ;;
1143 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145 | --oldin | --oldi | --old | --ol | --o)
1146 ac_prev=oldincludedir ;;
1147 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1150 oldincludedir=$ac_optarg ;;
1152 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153 ac_prev=prefix ;;
1154 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1155 prefix=$ac_optarg ;;
1157 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1158 | --program-pre | --program-pr | --program-p)
1159 ac_prev=program_prefix ;;
1160 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1161 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1162 program_prefix=$ac_optarg ;;
1164 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1165 | --program-suf | --program-su | --program-s)
1166 ac_prev=program_suffix ;;
1167 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1168 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1169 program_suffix=$ac_optarg ;;
1171 -program-transform-name | --program-transform-name \
1172 | --program-transform-nam | --program-transform-na \
1173 | --program-transform-n | --program-transform- \
1174 | --program-transform | --program-transfor \
1175 | --program-transfo | --program-transf \
1176 | --program-trans | --program-tran \
1177 | --progr-tra | --program-tr | --program-t)
1178 ac_prev=program_transform_name ;;
1179 -program-transform-name=* | --program-transform-name=* \
1180 | --program-transform-nam=* | --program-transform-na=* \
1181 | --program-transform-n=* | --program-transform-=* \
1182 | --program-transform=* | --program-transfor=* \
1183 | --program-transfo=* | --program-transf=* \
1184 | --program-trans=* | --program-tran=* \
1185 | --progr-tra=* | --program-tr=* | --program-t=*)
1186 program_transform_name=$ac_optarg ;;
1188 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189 ac_prev=pdfdir ;;
1190 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191 pdfdir=$ac_optarg ;;
1193 -psdir | --psdir | --psdi | --psd | --ps)
1194 ac_prev=psdir ;;
1195 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 psdir=$ac_optarg ;;
1198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199 | -silent | --silent | --silen | --sile | --sil)
1200 silent=yes ;;
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
1206 sbindir=$ac_optarg ;;
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
1217 sharedstatedir=$ac_optarg ;;
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
1222 site=$ac_optarg ;;
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227 srcdir=$ac_optarg ;;
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234 sysconfdir=$ac_optarg ;;
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
1237 ac_prev=target_alias ;;
1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239 target_alias=$ac_optarg ;;
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
1247 -with-* | --with-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=\$ac_optarg ;;
1263 -without-* | --without-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1297 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298 Try \`$0 --help' for more information"
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
1306 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1307 esac
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1312 # FIXME: should be removed in autoconf 3.0.
1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1319 esac
1320 done
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $? "missing argument to $ac_option"
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1335 # Check all directory arguments for consistency.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
1349 case $ac_val in
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 esac
1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354 done
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375 test "$silent" = yes && exec 6>/dev/null
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $? "working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $? "pwd does not report name of working directory"
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1404 /^X\(\/\/\)$/{
1405 s//\1/
1408 /^X\(\/\).*/{
1409 s//\1/
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1417 else
1418 ac_srcdir_defaulted=no
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 case $srcdir in
1439 *" "*)
1440 as_fn_error $? "path to source, $srcdir, contains spaces"
1442 esac
1443 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459 \`configure' configures this package to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1468 Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 [PREFIX]
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1512 _ACEOF
1514 cat <<\_ACEOF
1516 Program names:
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1521 System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 --target=TARGET configure for building compilers for TARGET [HOST]
1525 _ACEOF
1528 if test -n "$ac_init_help"; then
1530 cat <<\_ACEOF
1532 Optional Features:
1533 --disable-option-checking ignore unrecognized --enable/--with options
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-as-accelerator-for=ARG
1537 build as offload target compiler. Specify offload
1538 host triple by ARG
1539 --enable-offload-targets=LIST
1540 enable offloading to devices from comma-separated
1541 LIST of TARGET[=DIR]. Use optional path to find
1542 offload target compiler during the build
1543 --enable-offload-defaulted
1544 If enabled, configured but not installed offload compilers and
1545 libgomp plugins are silently ignored. Useful for distribution
1546 compilers where those are in separate optional packages.
1548 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1549 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1550 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1551 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1552 Enable compressed debug sections for gas, gold or ld
1553 by default
1554 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1555 Default compression algorithm for
1556 --enable-compressed-debug-sections.
1557 --enable-year2038 enable support for timestamps past the year 2038
1558 --disable-libquadmath do not build libquadmath directory
1559 --disable-libquadmath-support
1560 disable libquadmath support for Fortran
1561 --enable-libada build libada directory
1562 --enable-libgm2 build libgm2 directory
1563 --enable-libssp build libssp directory
1564 --disable-libstdcxx do not build libstdc++-v3 directory
1565 --enable-bootstrap enable bootstrapping [yes if native build]
1566 --enable-pgo-build[=lto]
1567 enable the PGO build
1568 --disable-isl-version-check
1569 disable check for isl version
1570 --enable-lto enable link time optimization support
1571 --enable-linker-plugin-configure-flags=FLAGS
1572 additional flags for configuring linker plugins
1573 [none]
1574 --enable-linker-plugin-flags=FLAGS
1575 additional flags for configuring and building linker
1576 plugins [none]
1577 --enable-host-pie build position independent host executables
1578 --enable-host-shared build host code as shared libraries
1579 --enable-stage1-languages[=all]
1580 choose additional languages to build during stage1.
1581 Mostly useful for compiler development
1582 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1583 Objective-C runtime
1584 --enable-vtable-verify Enable vtable verification feature
1585 --enable-serial-[{host,target,build}-]configure
1586 force sequential configuration of sub-packages for
1587 the host, target or build machine, or all
1588 sub-packages
1589 --enable-maintainer-mode
1590 enable make rules and dependencies not useful (and
1591 sometimes confusing) to the casual installer
1592 --enable-stage1-checking[=all]
1593 choose additional checking for stage1 of the
1594 compiler
1595 --enable-werror enable -Werror in bootstrap stage2 and later
1597 Optional Packages:
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-build-libsubdir=DIR Directory where to find libraries for build system
1601 --with-system-zlib use installed libz
1602 --with-zstd Support zstd compressed debug sections
1603 (default=auto)
1604 --with-mpc=PATH specify prefix directory for installed MPC package.
1605 Equivalent to --with-mpc-include=PATH/include plus
1606 --with-mpc-lib=PATH/lib
1607 --with-mpc-include=PATH specify directory for installed MPC include files
1608 --with-mpc-lib=PATH specify directory for the installed MPC library
1609 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1610 Equivalent to --with-mpfr-include=PATH/include plus
1611 --with-mpfr-lib=PATH/lib
1612 --with-mpfr-include=PATH
1613 specify directory for installed MPFR include files
1614 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1615 --with-gmp=PATH specify prefix directory for the installed GMP
1616 package. Equivalent to
1617 --with-gmp-include=PATH/include plus
1618 --with-gmp-lib=PATH/lib
1619 --with-gmp-include=PATH specify directory for installed GMP include files
1620 --with-gmp-lib=PATH specify directory for the installed GMP library
1621 --with-stage1-libs=LIBS libraries for stage1
1622 --with-static-standard-libraries
1623 use -static-libstdc++ and -static-libgcc
1624 (default=auto)
1625 --with-stage1-ldflags=FLAGS
1626 linker flags for stage1
1627 --with-boot-libs=LIBS libraries for stage2 and later
1628 --with-boot-ldflags=FLAGS
1629 linker flags for stage2 and later
1630 --with-isl=PATH Specify prefix directory for the installed isl
1631 package. Equivalent to
1632 --with-isl-include=PATH/include plus
1633 --with-isl-lib=PATH/lib
1634 --with-isl-include=PATH Specify directory for installed isl include files
1635 --with-isl-lib=PATH Specify the directory for the installed isl library
1636 --with-target-bdw-gc=PATHLIST
1637 specify prefix directory for installed bdw-gc
1638 package. Equivalent to
1639 --with-target-bdw-gc-include=PATH/include plus
1640 --with-target-bdw-gc-lib=PATH/lib
1641 --with-target-bdw-gc-include=PATHLIST
1642 specify directories for installed bdw-gc include
1643 files
1644 --with-target-bdw-gc-lib=PATHLIST
1645 specify directories for installed bdw-gc library
1646 --with-gcc-major-version-only
1647 use only GCC major number in filesystem paths
1648 --with-build-sysroot=SYSROOT
1649 use sysroot as the system root during the build
1650 --with-debug-prefix-map='A=B C=D ...'
1651 map A to B, C to D ... in debug information
1652 --with-build-config='NAME NAME2...'
1653 use config/NAME.mk build configuration
1654 --with-build-time-tools=PATH
1655 use given path to find target tools during the build
1657 Some influential environment variables:
1658 CC C compiler command
1659 CFLAGS C compiler flags
1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1661 nonstandard directory <lib dir>
1662 LIBS libraries to pass to the linker, e.g. -l<library>
1663 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1664 you have headers in a nonstandard directory <include dir>
1665 CXX C++ compiler command
1666 CXXFLAGS C++ compiler flags
1667 build_configargs
1668 additional configure arguments for build directories
1669 host_configargs
1670 additional configure arguments for host directories
1671 target_configargs
1672 additional configure arguments for target directories
1673 AR AR for the host
1674 AS AS for the host
1675 DLLTOOL DLLTOOL for the host
1676 DSYMUTIL DSYMUTIL for the host
1677 LD LD for the host
1678 LIPO LIPO for the host
1679 NM NM for the host
1680 RANLIB RANLIB for the host
1681 STRIP STRIP for the host
1682 WINDRES WINDRES for the host
1683 WINDMC WINDMC for the host
1684 OBJCOPY OBJCOPY for the host
1685 OBJDUMP OBJDUMP for the host
1686 OTOOL OTOOL for the host
1687 READELF READELF for the host
1688 CC_FOR_TARGET
1689 CC for the target
1690 CXX_FOR_TARGET
1691 CXX for the target
1692 GCC_FOR_TARGET
1693 GCC for the target
1694 GFORTRAN_FOR_TARGET
1695 GFORTRAN for the target
1696 GOC_FOR_TARGET
1697 GOC for the target
1698 GDC_FOR_TARGET
1699 GDC for the target
1700 GM2_FOR_TARGET
1701 GM2 for the target
1702 AR_FOR_TARGET
1703 AR for the target
1704 AS_FOR_TARGET
1705 AS for the target
1706 DLLTOOL_FOR_TARGET
1707 DLLTOOL for the target
1708 DSYMUTIL_FOR_TARGET
1709 DSYMUTIL for the target
1710 LD_FOR_TARGET
1711 LD for the target
1712 LIPO_FOR_TARGET
1713 LIPO for the target
1714 NM_FOR_TARGET
1715 NM for the target
1716 OBJCOPY_FOR_TARGET
1717 OBJCOPY for the target
1718 OBJDUMP_FOR_TARGET
1719 OBJDUMP for the target
1720 OTOOL_FOR_TARGET
1721 OTOOL for the target
1722 RANLIB_FOR_TARGET
1723 RANLIB for the target
1724 READELF_FOR_TARGET
1725 READELF for the target
1726 STRIP_FOR_TARGET
1727 STRIP for the target
1728 WINDRES_FOR_TARGET
1729 WINDRES for the target
1730 WINDMC_FOR_TARGET
1731 WINDMC for the target
1733 Use these variables to override the choices made by `configure' or to help
1734 it to find libraries and programs with nonstandard names/locations.
1736 Report bugs to the package provider.
1737 _ACEOF
1738 ac_status=$?
1741 if test "$ac_init_help" = "recursive"; then
1742 # If there are subdirs, report their specific --help.
1743 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1744 test -d "$ac_dir" ||
1745 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1746 continue
1747 ac_builddir=.
1749 case "$ac_dir" in
1750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1753 # A ".." for each directory in $ac_dir_suffix.
1754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1755 case $ac_top_builddir_sub in
1756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1758 esac ;;
1759 esac
1760 ac_abs_top_builddir=$ac_pwd
1761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1762 # for backward compatibility:
1763 ac_top_builddir=$ac_top_build_prefix
1765 case $srcdir in
1766 .) # We are building in place.
1767 ac_srcdir=.
1768 ac_top_srcdir=$ac_top_builddir_sub
1769 ac_abs_top_srcdir=$ac_pwd ;;
1770 [\\/]* | ?:[\\/]* ) # Absolute name.
1771 ac_srcdir=$srcdir$ac_dir_suffix;
1772 ac_top_srcdir=$srcdir
1773 ac_abs_top_srcdir=$srcdir ;;
1774 *) # Relative name.
1775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1776 ac_top_srcdir=$ac_top_build_prefix$srcdir
1777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1778 esac
1779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1781 cd "$ac_dir" || { ac_status=$?; continue; }
1782 # Check for guested configure.
1783 if test -f "$ac_srcdir/configure.gnu"; then
1784 echo &&
1785 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1786 elif test -f "$ac_srcdir/configure"; then
1787 echo &&
1788 $SHELL "$ac_srcdir/configure" --help=recursive
1789 else
1790 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1791 fi || ac_status=$?
1792 cd "$ac_pwd" || { ac_status=$?; break; }
1793 done
1796 test -n "$ac_init_help" && exit $ac_status
1797 if $ac_init_version; then
1798 cat <<\_ACEOF
1799 configure
1800 generated by GNU Autoconf 2.69
1802 Copyright (C) 2012 Free Software Foundation, Inc.
1803 This configure script is free software; the Free Software Foundation
1804 gives unlimited permission to copy, distribute and modify it.
1805 _ACEOF
1806 exit
1809 ## ------------------------ ##
1810 ## Autoconf initialization. ##
1811 ## ------------------------ ##
1813 # ac_fn_c_try_compile LINENO
1814 # --------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_c_try_compile ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1844 ac_retval=1
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1849 } # ac_fn_c_try_compile
1851 # ac_fn_cxx_try_compile LINENO
1852 # ----------------------------
1853 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_cxx_try_compile ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 rm -f conftest.$ac_objext
1858 if { { ac_try="$ac_compile"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_compile") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && {
1874 test -z "$ac_cxx_werror_flag" ||
1875 test ! -s conftest.err
1876 } && test -s conftest.$ac_objext; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 ac_retval=1
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1887 } # ac_fn_cxx_try_compile
1889 # ac_fn_cxx_try_link LINENO
1890 # -------------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_cxx_try_link ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext conftest$ac_exeext
1896 if { { ac_try="$ac_link"
1897 case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>conftest.err
1904 ac_status=$?
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_cxx_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest$ac_exeext && {
1915 test "$cross_compiling" = yes ||
1916 test -x conftest$ac_exeext
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1927 # interfere with the next link command; also delete a directory that is
1928 # left behind by Apple's compiler. We do this before executing the actions.
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1933 } # ac_fn_cxx_try_link
1935 # ac_fn_c_try_link LINENO
1936 # -----------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_c_try_link ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 rm -f conftest.$ac_objext conftest$ac_exeext
1942 if { { ac_try="$ac_link"
1943 case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>conftest.err
1950 ac_status=$?
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && {
1958 test -z "$ac_c_werror_flag" ||
1959 test ! -s conftest.err
1960 } && test -s conftest$ac_exeext && {
1961 test "$cross_compiling" = yes ||
1962 test -x conftest$ac_exeext
1963 }; then :
1964 ac_retval=0
1965 else
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1969 ac_retval=1
1971 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1972 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1973 # interfere with the next link command; also delete a directory that is
1974 # left behind by Apple's compiler. We do this before executing the actions.
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1979 } # ac_fn_c_try_link
1980 cat >config.log <<_ACEOF
1981 This file contains any messages produced by compilers while
1982 running configure, to aid debugging if configure makes a mistake.
1984 It was created by $as_me, which was
1985 generated by GNU Autoconf 2.69. Invocation command line was
1987 $ $0 $@
1989 _ACEOF
1990 exec 5>>config.log
1992 cat <<_ASUNAME
1993 ## --------- ##
1994 ## Platform. ##
1995 ## --------- ##
1997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2014 _ASUNAME
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 $as_echo "PATH: $as_dir"
2022 done
2023 IFS=$as_save_IFS
2025 } >&5
2027 cat >&5 <<_ACEOF
2030 ## ----------- ##
2031 ## Core tests. ##
2032 ## ----------- ##
2034 _ACEOF
2037 # Keep a trace of the command line.
2038 # Strip out --no-create and --no-recursion so they do not pile up.
2039 # Strip out --silent because we don't want to record it for future runs.
2040 # Also quote any args containing shell meta-characters.
2041 # Make two passes to allow for proper duplicate-argument suppression.
2042 ac_configure_args=
2043 ac_configure_args0=
2044 ac_configure_args1=
2045 ac_must_keep_next=false
2046 for ac_pass in 1 2
2048 for ac_arg
2050 case $ac_arg in
2051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053 | -silent | --silent | --silen | --sile | --sil)
2054 continue ;;
2055 *\'*)
2056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 esac
2058 case $ac_pass in
2059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2061 as_fn_append ac_configure_args1 " '$ac_arg'"
2062 if test $ac_must_keep_next = true; then
2063 ac_must_keep_next=false # Got value, back to normal.
2064 else
2065 case $ac_arg in
2066 *=* | --config-cache | -C | -disable-* | --disable-* \
2067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069 | -with-* | --with-* | -without-* | --without-* | --x)
2070 case "$ac_configure_args0 " in
2071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072 esac
2074 -* ) ac_must_keep_next=true ;;
2075 esac
2077 as_fn_append ac_configure_args " '$ac_arg'"
2079 esac
2080 done
2081 done
2082 { ac_configure_args0=; unset ac_configure_args0;}
2083 { ac_configure_args1=; unset ac_configure_args1;}
2085 # When interrupted or exit'd, cleanup temporary files, and complete
2086 # config.log. We remove comments because anyway the quotes in there
2087 # would cause problems or look ugly.
2088 # WARNING: Use '\'' to represent an apostrophe within the trap.
2089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2090 trap 'exit_status=$?
2091 # Save into config.log some information that might help in debugging.
2093 echo
2095 $as_echo "## ---------------- ##
2096 ## Cache variables. ##
2097 ## ---------------- ##"
2098 echo
2099 # The following way of writing the cache mishandles newlines in values,
2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in #(
2104 *${as_nl}*)
2105 case $ac_var in #(
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108 esac
2109 case $ac_var in #(
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2113 esac ;;
2114 esac
2115 done
2116 (set) 2>&1 |
2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
2119 sed -n \
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122 ;; #(
2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2126 esac |
2127 sort
2129 echo
2131 $as_echo "## ----------------- ##
2132 ## Output variables. ##
2133 ## ----------------- ##"
2134 echo
2135 for ac_var in $ac_subst_vars
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
2142 done | sort
2143 echo
2145 if test -n "$ac_subst_files"; then
2146 $as_echo "## ------------------- ##
2147 ## File substitutions. ##
2148 ## ------------------- ##"
2149 echo
2150 for ac_var in $ac_subst_files
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 $as_echo "$ac_var='\''$ac_val'\''"
2157 done | sort
2158 echo
2161 if test -s confdefs.h; then
2162 $as_echo "## ----------- ##
2163 ## confdefs.h. ##
2164 ## ----------- ##"
2165 echo
2166 cat confdefs.h
2167 echo
2169 test "$ac_signal" != 0 &&
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
2172 } >&5
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2175 exit $exit_status
2177 for ac_signal in 1 2 13 15; do
2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179 done
2180 ac_signal=0
2182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2183 rm -f -r conftest* confdefs.h
2185 $as_echo "/* confdefs.h */" > confdefs.h
2187 # Predefined preprocessor variables.
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_NAME "$PACKAGE_NAME"
2191 _ACEOF
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195 _ACEOF
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2199 _ACEOF
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_STRING "$PACKAGE_STRING"
2203 _ACEOF
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207 _ACEOF
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_URL "$PACKAGE_URL"
2211 _ACEOF
2214 # Let the site file select an alternate cache file if it wants to.
2215 # Prefer an explicitly selected file to automatically selected ones.
2216 ac_site_file1=NONE
2217 ac_site_file2=NONE
2218 if test -n "$CONFIG_SITE"; then
2219 # We do not want a PATH search for config.site.
2220 case $CONFIG_SITE in #((
2221 -*) ac_site_file1=./$CONFIG_SITE;;
2222 */*) ac_site_file1=$CONFIG_SITE;;
2223 *) ac_site_file1=./$CONFIG_SITE;;
2224 esac
2225 elif test "x$prefix" != xNONE; then
2226 ac_site_file1=$prefix/share/config.site
2227 ac_site_file2=$prefix/etc/config.site
2228 else
2229 ac_site_file1=$ac_default_prefix/share/config.site
2230 ac_site_file2=$ac_default_prefix/etc/config.site
2232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234 test "x$ac_site_file" = xNONE && continue
2235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2238 sed 's/^/| /' "$ac_site_file" >&5
2239 . "$ac_site_file" \
2240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 as_fn_error $? "failed to load site script $ac_site_file
2243 See \`config.log' for more details" "$LINENO" 5; }
2245 done
2247 if test -r "$cache_file"; then
2248 # Some versions of bash will fail to source /dev/null (special files
2249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252 $as_echo "$as_me: loading cache $cache_file" >&6;}
2253 case $cache_file in
2254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2255 *) . "./$cache_file";;
2256 esac
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260 $as_echo "$as_me: creating cache $cache_file" >&6;}
2261 >$cache_file
2264 # Check that the precious variables saved in the cache have kept the same
2265 # value.
2266 ac_cache_corrupted=false
2267 for ac_var in $ac_precious_vars; do
2268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2269 eval ac_new_set=\$ac_env_${ac_var}_set
2270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2271 eval ac_new_val=\$ac_env_${ac_var}_value
2272 case $ac_old_set,$ac_new_set in
2273 set,)
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2276 ac_cache_corrupted=: ;;
2277 ,set)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2281 ,);;
2283 if test "x$ac_old_val" != "x$ac_new_val"; then
2284 # differences in whitespace do not lead to failure.
2285 ac_old_val_w=`echo x $ac_old_val`
2286 ac_new_val_w=`echo x $ac_new_val`
2287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2290 ac_cache_corrupted=:
2291 else
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2294 eval $ac_var=\$ac_old_val
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2300 fi;;
2301 esac
2302 # Pass precious variables to config.status.
2303 if test "$ac_new_set" = set; then
2304 case $ac_new_val in
2305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2306 *) ac_arg=$ac_var=$ac_new_val ;;
2307 esac
2308 case " $ac_configure_args " in
2309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2311 esac
2313 done
2314 if $ac_cache_corrupted; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2321 ## -------------------- ##
2322 ## Main body of script. ##
2323 ## -------------------- ##
2325 ac_ext=c
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 progname=$0
2339 # if PWD already has a value, it is probably wrong.
2340 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2342 # Export original configure arguments for use by sub-configures.
2343 # Quote arguments with shell meta charatcers.
2344 TOPLEVEL_CONFIGURE_ARGUMENTS=
2345 set -- "$progname" "$@"
2346 for ac_arg
2348 case "$ac_arg" in
2349 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2350 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2351 # if the argument is of the form -foo=baz, quote the baz part only
2352 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2353 *) ;;
2354 esac
2355 # Add the quoted argument to the list.
2356 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2357 done
2358 if test "$silent" = yes; then
2359 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2361 # Remove the initial space we just introduced and, as these will be
2362 # expanded by make, quote '$'.
2363 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2366 # Find the build, host, and target systems.
2367 ac_aux_dir=
2368 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2369 if test -f "$ac_dir/install-sh"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/install-sh -c"
2372 break
2373 elif test -f "$ac_dir/install.sh"; then
2374 ac_aux_dir=$ac_dir
2375 ac_install_sh="$ac_aux_dir/install.sh -c"
2376 break
2377 elif test -f "$ac_dir/shtool"; then
2378 ac_aux_dir=$ac_dir
2379 ac_install_sh="$ac_aux_dir/shtool install -c"
2380 break
2382 done
2383 if test -z "$ac_aux_dir"; then
2384 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2387 # These three variables are undocumented and unsupported,
2388 # and are intended to be withdrawn in a future Autoconf release.
2389 # They can cause serious problems if a builder's source tree is in a directory
2390 # whose full name contains unusual characters.
2391 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2392 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2393 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2396 # Make sure we can run config.sub.
2397 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2398 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2401 $as_echo_n "checking build system type... " >&6; }
2402 if ${ac_cv_build+:} false; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 ac_build_alias=$build_alias
2406 test "x$ac_build_alias" = x &&
2407 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2408 test "x$ac_build_alias" = x &&
2409 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2410 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2415 $as_echo "$ac_cv_build" >&6; }
2416 case $ac_cv_build in
2417 *-*-*) ;;
2418 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2419 esac
2420 build=$ac_cv_build
2421 ac_save_IFS=$IFS; IFS='-'
2422 set x $ac_cv_build
2423 shift
2424 build_cpu=$1
2425 build_vendor=$2
2426 shift; shift
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2429 build_os=$*
2430 IFS=$ac_save_IFS
2431 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2434 case ${build_alias} in
2435 "") build_noncanonical=${build} ;;
2436 *) build_noncanonical=${build_alias} ;;
2437 esac
2441 case ${host_alias} in
2442 "") host_noncanonical=${build_noncanonical} ;;
2443 *) host_noncanonical=${host_alias} ;;
2444 esac
2448 case ${target_alias} in
2449 "") target_noncanonical=${host_noncanonical} ;;
2450 *) target_noncanonical=${target_alias} ;;
2451 esac
2456 test "$host_noncanonical" = "$target_noncanonical" &&
2457 test "$program_prefix$program_suffix$program_transform_name" = \
2458 NONENONEs,x,x, &&
2459 program_transform_name=s,y,y,
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2462 $as_echo_n "checking host system type... " >&6; }
2463 if ${ac_cv_host+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test "x$host_alias" = x; then
2467 ac_cv_host=$ac_cv_build
2468 else
2469 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2470 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2475 $as_echo "$ac_cv_host" >&6; }
2476 case $ac_cv_host in
2477 *-*-*) ;;
2478 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2479 esac
2480 host=$ac_cv_host
2481 ac_save_IFS=$IFS; IFS='-'
2482 set x $ac_cv_host
2483 shift
2484 host_cpu=$1
2485 host_vendor=$2
2486 shift; shift
2487 # Remember, the first character of IFS is used to create $*,
2488 # except with old shells:
2489 host_os=$*
2490 IFS=$ac_save_IFS
2491 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2495 $as_echo_n "checking target system type... " >&6; }
2496 if ${ac_cv_target+:} false; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test "x$target_alias" = x; then
2500 ac_cv_target=$ac_cv_host
2501 else
2502 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2508 $as_echo "$ac_cv_target" >&6; }
2509 case $ac_cv_target in
2510 *-*-*) ;;
2511 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2512 esac
2513 target=$ac_cv_target
2514 ac_save_IFS=$IFS; IFS='-'
2515 set x $ac_cv_target
2516 shift
2517 target_cpu=$1
2518 target_vendor=$2
2519 shift; shift
2520 # Remember, the first character of IFS is used to create $*,
2521 # except with old shells:
2522 target_os=$*
2523 IFS=$ac_save_IFS
2524 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2527 # The aliases save the names the user supplied, while $host etc.
2528 # will get canonicalized.
2529 test -n "$target_alias" &&
2530 test "$program_prefix$program_suffix$program_transform_name" = \
2531 NONENONEs,x,x, &&
2532 program_prefix=${target_alias}-
2534 test "$program_prefix" != NONE &&
2535 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2536 # Use a double $ so make ignores it.
2537 test "$program_suffix" != NONE &&
2538 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2539 # Double any \ or $.
2540 # By default was `s,x,x', remove it if useless.
2541 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2542 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2546 # Get 'install' or 'install-sh' and its variants.
2547 # Find a good install program. We prefer a C program (faster),
2548 # so one script is as good as another. But avoid the broken or
2549 # incompatible versions:
2550 # SysV /etc/install, /usr/sbin/install
2551 # SunOS /usr/etc/install
2552 # IRIX /sbin/install
2553 # AIX /bin/install
2554 # AmigaOS /C/install, which installs bootblocks on floppy discs
2555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2558 # OS/2's system install, which has a completely different semantic
2559 # ./install, which can be erroneously created by make from ./install.sh.
2560 # Reject install programs that cannot install multiple files.
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2562 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2563 if test -z "$INSTALL"; then
2564 if ${ac_cv_path_install+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 # Account for people who put trailing slashes in PATH elements.
2573 case $as_dir/ in #((
2574 ./ | .// | /[cC]/* | \
2575 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2576 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2577 /usr/ucb/* ) ;;
2579 # OSF1 and SCO ODT 3.0 have their own names for install.
2580 # Don't use installbsd from OSF since it installs stuff as root
2581 # by default.
2582 for ac_prog in ginstall scoinst install; do
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2585 if test $ac_prog = install &&
2586 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2587 # AIX install. It has an incompatible calling convention.
2589 elif test $ac_prog = install &&
2590 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2591 # program-specific install script used by HP pwplus--don't use.
2593 else
2594 rm -rf conftest.one conftest.two conftest.dir
2595 echo one > conftest.one
2596 echo two > conftest.two
2597 mkdir conftest.dir
2598 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2599 test -s conftest.one && test -s conftest.two &&
2600 test -s conftest.dir/conftest.one &&
2601 test -s conftest.dir/conftest.two
2602 then
2603 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2604 break 3
2608 done
2609 done
2611 esac
2613 done
2614 IFS=$as_save_IFS
2616 rm -rf conftest.one conftest.two conftest.dir
2619 if test "${ac_cv_path_install+set}" = set; then
2620 INSTALL=$ac_cv_path_install
2621 else
2622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for INSTALL within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the value is a relative name.
2626 INSTALL=$ac_install_sh
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2630 $as_echo "$INSTALL" >&6; }
2632 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2633 # It thinks the first close brace ends the variable substitution.
2634 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2636 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2638 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2641 $as_echo_n "checking whether ln works... " >&6; }
2642 if ${acx_cv_prog_LN+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 rm -f conftestdata_t
2646 echo >conftestdata_f
2647 if ln conftestdata_f conftestdata_t 2>/dev/null
2648 then
2649 acx_cv_prog_LN=ln
2650 else
2651 acx_cv_prog_LN=no
2653 rm -f conftestdata_f conftestdata_t
2656 if test $acx_cv_prog_LN = no; then
2657 LN="cp"
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2659 $as_echo "no, using $LN" >&6; }
2660 else
2661 LN="$acx_cv_prog_LN"
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2667 $as_echo_n "checking whether ln -s works... " >&6; }
2668 LN_S=$as_ln_s
2669 if test "$LN_S" = "ln -s"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671 $as_echo "yes" >&6; }
2672 else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2674 $as_echo "no, using $LN_S" >&6; }
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2678 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2679 if ${ac_cv_path_SED+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2683 for ac_i in 1 2 3 4 5 6 7; do
2684 ac_script="$ac_script$as_nl$ac_script"
2685 done
2686 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2687 { ac_script=; unset ac_script;}
2688 if test -z "$SED"; then
2689 ac_path_SED_found=false
2690 # Loop through the user's path and test for each of PROGNAME-LIST
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_prog in sed gsed; do
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2699 as_fn_executable_p "$ac_path_SED" || continue
2700 # Check for GNU ac_path_SED and select it if it is found.
2701 # Check for GNU $ac_path_SED
2702 case `"$ac_path_SED" --version 2>&1` in
2703 *GNU*)
2704 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2706 ac_count=0
2707 $as_echo_n 0123456789 >"conftest.in"
2708 while :
2710 cat "conftest.in" "conftest.in" >"conftest.tmp"
2711 mv "conftest.tmp" "conftest.in"
2712 cp "conftest.in" "conftest.nl"
2713 $as_echo '' >> "conftest.nl"
2714 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2716 as_fn_arith $ac_count + 1 && ac_count=$as_val
2717 if test $ac_count -gt ${ac_path_SED_max-0}; then
2718 # Best one so far, save it but keep looking for a better one
2719 ac_cv_path_SED="$ac_path_SED"
2720 ac_path_SED_max=$ac_count
2722 # 10*(2^10) chars as input seems more than enough
2723 test $ac_count -gt 10 && break
2724 done
2725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2726 esac
2728 $ac_path_SED_found && break 3
2729 done
2730 done
2731 done
2732 IFS=$as_save_IFS
2733 if test -z "$ac_cv_path_SED"; then
2734 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2736 else
2737 ac_cv_path_SED=$SED
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2742 $as_echo "$ac_cv_path_SED" >&6; }
2743 SED="$ac_cv_path_SED"
2744 rm -f conftest.sed
2746 for ac_prog in gawk mawk nawk awk
2748 # Extract the first word of "$ac_prog", so it can be a program name with args.
2749 set dummy $ac_prog; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_AWK+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$AWK"; then
2756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_AWK="$ac_prog"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2769 done
2770 done
2771 IFS=$as_save_IFS
2775 AWK=$ac_cv_prog_AWK
2776 if test -n "$AWK"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2778 $as_echo "$AWK" >&6; }
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2785 test -n "$AWK" && break
2786 done
2789 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2791 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2792 # a relative path.
2793 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2794 INSTALL="${srcpwd}/install-sh -c"
2797 # Set srcdir to "." if that's what it is.
2798 # This is important for multilib support.
2799 pwd=`${PWDCMD-pwd}`
2800 if test "${pwd}" = "${srcpwd}" ; then
2801 srcdir=.
2804 topsrcdir=$srcpwd
2806 extra_host_args=
2808 ### To add a new directory to the tree, first choose whether it is a target
2809 ### or a host dependent tool. Then put it into the appropriate list
2810 ### (library or tools, host or target), doing a dependency sort.
2812 # Subdirs will be configured in the order listed in build_configdirs,
2813 # configdirs, or target_configdirs; see the serialization section below.
2815 # Dependency sorting is only needed when *configuration* must be done in
2816 # a particular order. In all cases a dependency should be specified in
2817 # the Makefile, whether or not it's implicitly specified here.
2819 # Double entries in build_configdirs, configdirs, or target_configdirs may
2820 # cause circular dependencies and break everything horribly.
2822 # these library is used by various programs built for the build
2823 # environment
2825 build_libs="build-libiberty build-libcpp"
2827 # these tools are built for the build environment
2828 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2830 # these libraries are used by various programs built for the host environment
2832 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2834 # these tools are built for the host environment
2835 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2836 # know that we are building the simulator.
2837 # binutils, gas and ld appear in that order because it makes sense to run
2838 # "make check" in that particular order.
2839 # If --enable-gold is used, "gold" may replace "ld".
2840 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2842 # these libraries are built for the target environment, and are built after
2843 # the host libraries and the host tools (which may be a cross compiler)
2844 # Note that libiberty is not a target library.
2845 target_libraries="target-libgcc \
2846 target-libbacktrace \
2847 target-libgloss \
2848 target-newlib \
2849 target-libgomp \
2850 target-libatomic \
2851 target-libitm \
2852 target-libstdc++-v3 \
2853 target-libsanitizer \
2854 target-libvtv \
2855 target-libssp \
2856 target-libquadmath \
2857 target-libgfortran \
2858 target-libffi \
2859 target-libobjc \
2860 target-libada \
2861 target-libgm2 \
2862 target-libgo \
2863 target-libphobos \
2864 target-zlib"
2866 # these tools are built using the target libraries, and are intended to
2867 # run only in the target environment
2869 # note: any program that *uses* libraries that are in the "target_libraries"
2870 # list belongs in this list.
2872 target_tools="target-rda"
2874 ################################################################################
2876 ## All tools belong in one of the four categories, and are assigned above
2877 ## We assign ${configdirs} this way to remove all embedded newlines. This
2878 ## is important because configure will choke if they ever get through.
2879 ## ${configdirs} is directories we build using the host tools.
2880 ## ${target_configdirs} is directories we build using the target tools.
2881 configdirs=`echo ${host_libs} ${host_tools}`
2882 target_configdirs=`echo ${target_libraries} ${target_tools}`
2883 build_configdirs=`echo ${build_libs} ${build_tools}`
2887 ################################################################################
2889 srcname="gnu development package"
2891 # This gets set non-empty for some net releases of packages.
2892 appdirs=""
2894 # Define is_cross_compiler to save on calls to 'test'.
2895 is_cross_compiler=
2896 if test x"${host}" = x"${target}" ; then
2897 is_cross_compiler=no
2898 else
2899 is_cross_compiler=yes
2902 # Find the build and target subdir names.
2904 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2905 # have matching libraries, they should use host libraries: Makefile.tpl
2906 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2907 # However, they still use the build modules, because the corresponding
2908 # host modules (e.g. bison) are only built for the host when bootstrap
2909 # finishes. So:
2910 # - build_subdir is where we find build modules, and never changes.
2911 # - build_libsubdir is where we find build libraries, and can be overridden.
2913 # Prefix 'build-' so this never conflicts with target_subdir.
2914 build_subdir="build-${build_noncanonical}"
2916 # Check whether --with-build-libsubdir was given.
2917 if test "${with_build_libsubdir+set}" = set; then :
2918 withval=$with_build_libsubdir; build_libsubdir="$withval"
2919 else
2920 build_libsubdir="$build_subdir"
2923 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2924 if ( test $srcdir = . && test -d gcc ) \
2925 || test -d $srcdir/../host-${host_noncanonical}; then
2926 host_subdir="host-${host_noncanonical}"
2927 else
2928 host_subdir=.
2930 # No prefix.
2931 target_subdir=${target_noncanonical}
2933 # Be sure to cover against remnants of an in-tree build.
2934 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2935 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2936 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2939 # Skipdirs are removed silently.
2940 skipdirs=
2941 # Noconfigdirs are removed loudly.
2942 noconfigdirs=""
2944 use_gnu_ld=
2945 # Make sure we don't let GNU ld be added if we didn't want it.
2946 if test x$with_gnu_ld = xno ; then
2947 use_gnu_ld=no
2948 noconfigdirs="$noconfigdirs ld gold"
2951 use_gnu_as=
2952 # Make sure we don't let GNU as be added if we didn't want it.
2953 if test x$with_gnu_as = xno ; then
2954 use_gnu_as=no
2955 noconfigdirs="$noconfigdirs gas"
2958 use_included_zlib=
2960 # Check whether --with-system-zlib was given.
2961 if test "${with_system_zlib+set}" = set; then :
2962 withval=$with_system_zlib;
2965 # Make sure we don't let ZLIB be added if we didn't want it.
2966 if test x$with_system_zlib = xyes ; then
2967 use_included_zlib=no
2968 noconfigdirs="$noconfigdirs zlib"
2971 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2972 # is provided.
2973 if test x$with_system_readline = xyes ; then
2974 noconfigdirs="$noconfigdirs readline"
2978 # Check whether --with-zstd was given.
2979 if test "${with_zstd+set}" = set; then :
2980 withval=$with_zstd;
2984 # some tools are so dependent upon X11 that if we're not building with X,
2985 # it's not even worth trying to configure, much less build, that tool.
2987 case ${with_x} in
2988 yes | "") ;; # the default value for this tree is that X11 is available
2990 skipdirs="${skipdirs} tk itcl libgui"
2991 # We won't be able to build gdbtk without X.
2992 enable_gdbtk=no
2994 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2995 esac
2997 # Some are only suitable for cross toolchains.
2998 # Remove these if host=target.
2999 cross_only="target-libgloss target-newlib target-opcodes"
3001 case $is_cross_compiler in
3002 no) skipdirs="${skipdirs} ${cross_only}" ;;
3003 esac
3005 # If both --with-headers and --with-libs are specified, default to
3006 # --without-newlib.
3007 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3008 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3009 if test x"${with_newlib}" = x ; then
3010 with_newlib=no
3014 # Recognize --with-newlib/--without-newlib.
3015 case ${with_newlib} in
3016 no) skipdirs="${skipdirs} target-newlib" ;;
3017 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3018 esac
3020 # Check whether --enable-as-accelerator-for was given.
3021 if test "${enable_as_accelerator_for+set}" = set; then :
3022 enableval=$enable_as_accelerator_for;
3026 # Check whether --enable-offload-targets was given.
3027 if test "${enable_offload_targets+set}" = set; then :
3028 enableval=$enable_offload_targets;
3029 if test x"$enable_offload_targets" = x; then
3030 as_fn_error $? "no offload targets specified" "$LINENO" 5
3033 else
3034 enable_offload_targets=
3038 # Check whether --enable-offload-defaulted was given.
3039 if test "${enable_offload_defaulted+set}" = set; then :
3040 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3041 else
3042 enable_offload_defaulted=
3046 # Handle --enable-gold, --enable-ld.
3047 # --disable-gold [--enable-ld]
3048 # Build only ld. Default option.
3049 # --enable-gold [--enable-ld]
3050 # Build both gold and ld. Install gold as "ld.gold", install ld
3051 # as "ld.bfd" and "ld".
3052 # --enable-gold=default [--enable-ld]
3053 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3054 # install ld as "ld.bfd".
3055 # --enable-gold[=default] --disable-ld
3056 # Build only gold, which is then installed as both "ld.gold" and "ld".
3057 # --enable-gold --enable-ld=default
3058 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3059 # and ld.bfd).
3060 # In other words, ld is default
3061 # --enable-gold=default --enable-ld=default
3062 # Error.
3064 default_ld=
3065 # Check whether --enable-gold was given.
3066 if test "${enable_gold+set}" = set; then :
3067 enableval=$enable_gold; ENABLE_GOLD=$enableval
3068 else
3069 ENABLE_GOLD=no
3072 case "${ENABLE_GOLD}" in
3073 yes|default)
3074 # Check for ELF target.
3075 is_elf=no
3076 case "${target}" in
3077 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3078 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3079 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3080 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3081 case "${target}" in
3082 *-*-linux*aout* | *-*-linux*oldld*)
3085 is_elf=yes
3087 esac
3088 esac
3090 if test "$is_elf" = "yes"; then
3091 # Check for target supported by gold.
3092 case "${target}" in
3093 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3094 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3095 configdirs="$configdirs gold"
3096 if test x${ENABLE_GOLD} = xdefault; then
3097 default_ld=gold
3099 ENABLE_GOLD=yes
3101 esac
3107 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3109 esac
3111 # Check whether --enable-ld was given.
3112 if test "${enable_ld+set}" = set; then :
3113 enableval=$enable_ld; ENABLE_LD=$enableval
3114 else
3115 ENABLE_LD=yes
3119 case "${ENABLE_LD}" in
3120 default)
3121 if test x${default_ld} != x; then
3122 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3125 yes)
3128 if test x${ENABLE_GOLD} != xyes; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3130 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3132 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3135 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3137 esac
3139 # Check whether --enable-gprofng was given.
3140 if test "${enable_gprofng+set}" = set; then :
3141 enableval=$enable_gprofng; enable_gprofng=$enableval
3142 else
3143 enable_gprofng=yes
3146 if test "$enable_gprofng" = "yes"; then
3147 case "${target}" in
3148 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3149 configdirs="$configdirs gprofng"
3151 esac
3155 # PR gas/19109
3156 # Decide the default method for compressing debug sections.
3157 # Provide a configure time option to override our default.
3158 # Check whether --enable-compressed_debug_sections was given.
3159 if test "${enable_compressed_debug_sections+set}" = set; then :
3160 enableval=$enable_compressed_debug_sections;
3161 if test x"$enable_compressed_debug_sections" = xyes; then
3162 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3165 else
3166 enable_compressed_debug_sections=
3170 # Select default compression algorithm.
3171 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3172 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3173 enableval=$enable_default_compressed_debug_sections_algorithm;
3174 else
3175 default_compressed_debug_sections_algorithm=
3179 # Configure extra directories which are host specific
3181 case "${host}" in
3182 *-cygwin*)
3183 configdirs="$configdirs libtermcap" ;;
3184 esac
3186 # A target can indicate whether a language isn't supported for some reason.
3187 # Only spaces may be used in this macro; not newlines or tabs.
3188 unsupported_languages=
3190 # Remove more programs from consideration, based on the host or
3191 # target this usually means that a port of the program doesn't
3192 # exist yet.
3194 case "${host}" in
3195 i[3456789]86-*-msdosdjgpp*)
3196 noconfigdirs="$noconfigdirs tcl tk itcl"
3198 esac
3200 # Default to --disable-year2038 until we can handle differences between
3201 # projects that use gnulib (which understands year 2038) and projects that
3202 # do not (like BFD).
3203 # Check whether --enable-year2038 was given.
3204 if test "${enable_year2038+set}" = set; then :
3205 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3206 else
3207 ENABLE_YEAR2038=no
3210 enable_year2038=
3211 if test "${ENABLE_YEAR2038}" = "no" ; then
3212 enable_year2038=no
3215 # Check whether --enable-libquadmath was given.
3216 if test "${enable_libquadmath+set}" = set; then :
3217 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3218 else
3219 ENABLE_LIBQUADMATH=yes
3222 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3223 noconfigdirs="$noconfigdirs target-libquadmath"
3227 # Check whether --enable-libquadmath-support was given.
3228 if test "${enable_libquadmath_support+set}" = set; then :
3229 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3230 else
3231 ENABLE_LIBQUADMATH_SUPPORT=yes
3234 enable_libquadmath_support=
3235 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3236 enable_libquadmath_support=no
3240 # Check whether --enable-libada was given.
3241 if test "${enable_libada+set}" = set; then :
3242 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3243 else
3244 ENABLE_LIBADA=yes
3247 if test "${ENABLE_LIBADA}" != "yes" ; then
3248 noconfigdirs="$noconfigdirs gnattools"
3251 # Check whether --enable-libgm2 was given.
3252 if test "${enable_libgm2+set}" = set; then :
3253 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3254 else
3255 ENABLE_LIBGM2=no
3258 if test "${ENABLE_LIBGM2}" != "yes" ; then
3259 noconfigdirs="$noconfigdirs gm2tools"
3262 # Check whether --enable-libssp was given.
3263 if test "${enable_libssp+set}" = set; then :
3264 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3265 else
3266 ENABLE_LIBSSP=yes
3270 # Check whether --enable-libstdcxx was given.
3271 if test "${enable_libstdcxx+set}" = set; then :
3272 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3273 else
3274 ENABLE_LIBSTDCXX=default
3277 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3278 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3281 # Enable libgomp by default on hosted POSIX systems, and a few others.
3282 if test x$enable_libgomp = x ; then
3283 case "${target}" in
3284 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3286 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3288 *-*-solaris2* | *-*-hpux11*)
3290 *-*-darwin* | *-*-aix*)
3292 nvptx*-*-* | amdgcn*-*-*)
3295 noconfigdirs="$noconfigdirs target-libgomp"
3297 esac
3300 # Disable libatomic on unsupported systems.
3301 if test -d ${srcdir}/libatomic; then
3302 if test x$enable_libatomic = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3304 $as_echo_n "checking for libatomic support... " >&6; }
3305 if (srcdir=${srcdir}/libatomic; \
3306 . ${srcdir}/configure.tgt; \
3307 test -n "$UNSUPPORTED")
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libatomic"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3319 # Disable libitm on unsupported systems.
3320 if test -d ${srcdir}/libitm; then
3321 if test x$enable_libitm = x; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3323 $as_echo_n "checking for libitm support... " >&6; }
3324 if (srcdir=${srcdir}/libitm; \
3325 . ${srcdir}/configure.tgt; \
3326 test -n "$UNSUPPORTED")
3327 then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 noconfigdirs="$noconfigdirs target-libitm"
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3338 # Disable libsanitizer on unsupported systems.
3339 if test -d ${srcdir}/libsanitizer; then
3340 if test x$enable_libsanitizer = x; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3342 $as_echo_n "checking for libsanitizer support... " >&6; }
3343 if (srcdir=${srcdir}/libsanitizer; \
3344 . ${srcdir}/configure.tgt; \
3345 test -n "$UNSUPPORTED")
3346 then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 noconfigdirs="$noconfigdirs target-libsanitizer"
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3357 # Disable libvtv on unsupported systems.
3358 if test -d ${srcdir}/libvtv; then
3359 if test x$enable_libvtv = x; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3361 $as_echo_n "checking for libvtv support... " >&6; }
3362 if (srcdir=${srcdir}/libvtv; \
3363 . ${srcdir}/configure.tgt; \
3364 test "$VTV_SUPPORTED" != "yes")
3365 then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 noconfigdirs="$noconfigdirs target-libvtv"
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3376 # Disable libquadmath for some systems.
3377 case "${target}" in
3378 avr-*-*)
3379 noconfigdirs="$noconfigdirs target-libquadmath"
3381 # libquadmath is unused on AIX and libquadmath build process use of
3382 # LD_LIBRARY_PATH can break AIX bootstrap.
3383 powerpc-*-aix* | rs6000-*-aix*)
3384 noconfigdirs="$noconfigdirs target-libquadmath"
3386 esac
3388 # Disable libssp for some systems.
3389 case "${target}" in
3390 avr-*-*)
3391 # No hosted I/O support.
3392 noconfigdirs="$noconfigdirs target-libssp"
3394 bpf-*-*)
3395 noconfigdirs="$noconfigdirs target-libssp"
3397 powerpc-*-aix* | rs6000-*-aix*)
3398 noconfigdirs="$noconfigdirs target-libssp"
3400 pru-*-*)
3401 # No hosted I/O support.
3402 noconfigdirs="$noconfigdirs target-libssp"
3404 rl78-*-*)
3405 # libssp uses a misaligned load to trigger a fault, but the RL78
3406 # doesn't fault for those - instead, it gives a build-time error
3407 # for explicit misaligned loads.
3408 noconfigdirs="$noconfigdirs target-libssp"
3410 visium-*-*)
3411 # No hosted I/O support.
3412 noconfigdirs="$noconfigdirs target-libssp"
3414 esac
3416 # Disable libstdc++-v3 for some systems.
3417 # Allow user to override this if they pass --enable-libstdcxx
3418 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3419 case "${target}" in
3420 *-*-vxworks*)
3421 # VxWorks uses the Dinkumware C++ library.
3422 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3424 amdgcn*-*-*)
3425 # Not ported/fails to build when using newlib.
3426 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3428 arm*-wince-pe*)
3429 # the C++ libraries don't build on top of CE's C libraries
3430 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3432 avr-*-*)
3433 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3435 bpf-*-*)
3436 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3438 ft32-*-*)
3439 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3441 esac
3444 # Disable C++ on systems where it is known to not work.
3445 # For testing, you can override this with --enable-languages=c++.
3446 case ,${enable_languages}, in
3447 *,c++,*)
3450 case "${target}" in
3451 bpf-*-*)
3452 unsupported_languages="$unsupported_languages c++"
3454 esac
3456 esac
3458 # Disable Objc on systems where it is known to not work.
3459 # For testing, you can override this with --enable-languages=objc.
3460 case ,${enable_languages}, in
3461 *,objc,*)
3464 case "${target}" in
3465 bpf-*-*)
3466 unsupported_languages="$unsupported_languages objc"
3468 esac
3470 esac
3472 # Disable D on systems where it is known to not work.
3473 # For testing, you can override this with --enable-languages=d.
3474 case ,${enable_languages}, in
3475 *,d,*)
3478 case "${target}" in
3479 bpf-*-*)
3480 unsupported_languages="$unsupported_languages d"
3482 esac
3484 esac
3486 # Disable libphobos on unsupported systems.
3487 # For testing, you can override this with --enable-libphobos.
3488 if test -d ${srcdir}/libphobos; then
3489 if test x$enable_libphobos = x; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3491 $as_echo_n "checking for libphobos support... " >&6; }
3492 if (srcdir=${srcdir}/libphobos; \
3493 . ${srcdir}/configure.tgt; \
3494 test "$LIBPHOBOS_SUPPORTED" != "yes")
3495 then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3498 noconfigdirs="$noconfigdirs target-libphobos"
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 $as_echo "yes" >&6; }
3506 # Disable Fortran for some systems.
3507 case "${target}" in
3508 mmix-*-*)
3509 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3510 unsupported_languages="$unsupported_languages fortran"
3512 bpf-*-*)
3513 unsupported_languages="$unsupported_languages fortran"
3515 esac
3517 # Disable libffi for some systems.
3518 case "${target}" in
3519 powerpc-*-darwin*)
3521 i[3456789]86-*-darwin*)
3523 x86_64-*-darwin[912]*)
3525 *-*-darwin*)
3526 noconfigdirs="$noconfigdirs target-libffi"
3528 *-*-netware*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3531 *-*-phoenix*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3534 *-*-rtems*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3537 *-*-tpf*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3540 *-*-uclinux*)
3541 noconfigdirs="$noconfigdirs target-libffi"
3543 *-*-vxworks*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3546 aarch64*-*-freebsd*)
3547 noconfigdirs="$noconfigdirs target-libffi"
3549 alpha*-*-*vms*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3552 arm*-*-freebsd*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3555 arm-wince-pe)
3556 noconfigdirs="$noconfigdirs target-libffi"
3558 arm*-*-symbianelf*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3561 bpf-*-*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3564 cris-*-* | crisv32-*-*)
3565 case "${target}" in
3566 *-*-linux*)
3568 *) # See PR46792 regarding target-libffi.
3569 noconfigdirs="$noconfigdirs target-libffi";;
3570 esac
3572 hppa*64*-*-hpux*)
3573 noconfigdirs="$noconfigdirs target-libffi"
3575 hppa*-hp-hpux11*)
3577 hppa*-*-hpux*)
3578 noconfigdirs="$noconfigdirs target-libffi"
3580 ia64*-*-*vms*)
3581 noconfigdirs="$noconfigdirs target-libffi"
3583 i[3456789]86-w64-mingw*)
3584 noconfigdirs="$noconfigdirs target-libffi"
3586 i[3456789]86-*-mingw*)
3587 noconfigdirs="$noconfigdirs target-libffi"
3589 x86_64-*-mingw*)
3590 noconfigdirs="$noconfigdirs target-libffi"
3592 mmix-*-*)
3593 noconfigdirs="$noconfigdirs target-libffi"
3595 powerpc-*-aix*)
3597 rs6000-*-aix*)
3599 ft32-*-*)
3600 noconfigdirs="$noconfigdirs target-libffi"
3602 *-*-lynxos*)
3603 noconfigdirs="$noconfigdirs target-libffi"
3605 esac
3607 # Disable the go frontend on systems where it is known to not work. Please keep
3608 # this in sync with contrib/config-list.mk.
3609 case "${target}" in
3610 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3611 unsupported_languages="$unsupported_languages go"
3613 esac
3615 # Only allow gdbserver on some systems.
3616 if test -d ${srcdir}/gdbserver; then
3617 if test x$enable_gdbserver = x; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3619 $as_echo_n "checking for gdbserver support... " >&6; }
3620 if (srcdir=${srcdir}/gdbserver; \
3621 . ${srcdir}/configure.srv; \
3622 test -n "$UNSUPPORTED")
3623 then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3626 noconfigdirs="$noconfigdirs gdbserver"
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 $as_echo "yes" >&6; }
3634 # Disable libgo for some systems where it is known to not work.
3635 # For testing, you can easily override this with --enable-libgo.
3636 if test x$enable_libgo = x; then
3637 case "${target}" in
3638 *-*-darwin*)
3639 # PR 46986
3640 noconfigdirs="$noconfigdirs target-libgo"
3642 *-*-cygwin* | *-*-mingw*)
3643 noconfigdirs="$noconfigdirs target-libgo"
3645 bpf-*-*)
3646 noconfigdirs="$noconfigdirs target-libgo"
3648 esac
3651 # Default libgloss CPU subdirectory.
3652 libgloss_dir="$target_cpu"
3654 case "${target}" in
3655 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3656 libgloss_dir=wince
3658 aarch64*-*-* )
3659 libgloss_dir=aarch64
3661 arm*-*-*)
3662 libgloss_dir=arm
3664 cris-*-* | crisv32-*-*)
3665 libgloss_dir=cris
3667 hppa*-*-*)
3668 libgloss_dir=pa
3670 i[3456789]86-*-*)
3671 libgloss_dir=i386
3673 loongarch*-*-*)
3674 libgloss_dir=loongarch
3676 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3677 libgloss_dir=m68hc11
3679 m68*-*-* | fido-*-*)
3680 libgloss_dir=m68k
3682 mips*-*-*)
3683 libgloss_dir=mips
3685 powerpc*-*-*)
3686 libgloss_dir=rs6000
3688 pru-*-*)
3689 libgloss_dir=pru
3691 sparc*-*-*)
3692 libgloss_dir=sparc
3694 esac
3696 # Disable newlib and libgloss for various target OSes.
3697 case "${target}" in
3698 alpha*-dec-osf*)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 i[3456789]86-*-linux*)
3702 # This section makes it possible to build newlib natively on linux.
3703 # If we are using a cross compiler then don't configure newlib.
3704 if test x${is_cross_compiler} != xno ; then
3705 noconfigdirs="$noconfigdirs target-newlib"
3707 noconfigdirs="$noconfigdirs target-libgloss"
3708 # If we are not using a cross compiler, do configure newlib.
3709 # Note however, that newlib will only be configured in this situation
3710 # if the --with-newlib option has been given, because otherwise
3711 # 'target-newlib' will appear in skipdirs.
3713 i[3456789]86-*-rdos*)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 sparc-*-sunos4*)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 bpf-*-*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 *-*-aix*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 *-*-beos*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 *-*-chorusos)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 *-*-dragonfly*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 *-*-freebsd*)
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3740 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3743 *-*-lynxos*)
3744 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3746 *-*-mingw*)
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3749 *-*-netbsd*)
3750 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3752 *-*-netware*)
3753 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755 *-*-tpf*)
3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3758 *-*-uclinux*)
3759 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3761 *-*-vxworks*)
3762 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3764 esac
3766 case "${target}" in
3767 *-*-chorusos)
3769 aarch64-*-darwin*)
3770 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3771 noconfigdirs="$noconfigdirs sim target-rda"
3773 amdgcn*-*-*)
3775 arm-*-darwin*)
3776 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3777 noconfigdirs="$noconfigdirs sim target-rda"
3779 powerpc-*-darwin*)
3780 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3781 noconfigdirs="$noconfigdirs sim target-rda"
3783 i[3456789]86-*-darwin*)
3784 noconfigdirs="$noconfigdirs ld gprof"
3785 noconfigdirs="$noconfigdirs sim target-rda"
3787 x86_64-*-darwin[912]*)
3788 noconfigdirs="$noconfigdirs ld gas gprof"
3789 noconfigdirs="$noconfigdirs sim target-rda"
3791 *-*-darwin*)
3792 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3793 noconfigdirs="$noconfigdirs sim target-rda"
3795 *-*-dragonfly*)
3797 *-*-freebsd*)
3798 if test "x$with_gmp" = x \
3799 && ! test -d ${srcdir}/gmp \
3800 && test -f /usr/local/include/gmp.h; then
3801 with_gmp=/usr/local
3804 *-*-kaos*)
3805 # Remove unsupported stuff on all kaOS configurations.
3806 noconfigdirs="$noconfigdirs target-libgloss"
3808 *-*-netbsd*)
3810 *-*-netware*)
3812 *-*-phoenix*)
3813 noconfigdirs="$noconfigdirs target-libgloss"
3815 *-*-rtems*)
3816 noconfigdirs="$noconfigdirs target-libgloss"
3818 # The tpf target doesn't support gdb yet.
3819 *-*-tpf*)
3820 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3822 *-*-uclinux*)
3823 noconfigdirs="$noconfigdirs target-rda"
3825 *-*-vxworks*)
3827 alpha*-dec-osf*)
3828 # ld works, but does not support shared libraries.
3829 # gas doesn't generate exception information.
3830 noconfigdirs="$noconfigdirs gas ld"
3832 alpha*-*-*vms*)
3833 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3835 alpha*-*-*)
3836 # newlib is not 64 bit ready
3837 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3839 bpf-*-*)
3840 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3842 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3843 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3845 arc*-*-*)
3846 noconfigdirs="$noconfigdirs sim"
3848 arm-*-pe*)
3849 noconfigdirs="$noconfigdirs target-libgloss"
3851 arm-*-riscix*)
3852 noconfigdirs="$noconfigdirs ld target-libgloss"
3854 avr-*-*)
3855 if test x${with_avrlibc} != xno; then
3856 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3859 c4x-*-* | tic4x-*-*)
3860 noconfigdirs="$noconfigdirs target-libgloss"
3862 tic54x-*-*)
3863 noconfigdirs="$noconfigdirs target-libgloss gdb"
3865 d10v-*-*)
3866 noconfigdirs="$noconfigdirs target-libgloss"
3868 d30v-*-*)
3869 noconfigdirs="$noconfigdirs gdb"
3871 fr30-*-elf*)
3872 noconfigdirs="$noconfigdirs gdb"
3874 ft32-*-*)
3875 noconfigdirs="$noconfigdirs target-rda gprof"
3877 moxie-*-*)
3878 noconfigdirs="$noconfigdirs"
3880 h8300*-*-*)
3881 noconfigdirs="$noconfigdirs target-libgloss"
3883 h8500-*-*)
3884 noconfigdirs="$noconfigdirs target-libgloss"
3886 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3888 hppa*64*-*-hpux*)
3889 noconfigdirs="$noconfigdirs gdb"
3891 hppa*-*-hpux11*)
3892 noconfigdirs="$noconfigdirs gdb ld"
3894 hppa*64*-*-linux*)
3896 hppa*-*-linux*)
3898 hppa*-*-*elf* | \
3899 hppa*-*-lites* | \
3900 hppa*-*-openbsd* | \
3901 hppa*64*-*-*)
3903 hppa*-*-pro*)
3905 hppa*-*-*)
3906 noconfigdirs="$noconfigdirs ld"
3908 i960-*-*)
3909 noconfigdirs="$noconfigdirs gdb"
3911 ia64*-*-elf*)
3912 # No gdb support yet.
3913 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3915 ia64*-**-hpux*)
3916 # No ld support yet.
3917 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3919 ia64*-*-*vms*)
3920 # No ld support yet.
3921 noconfigdirs="$noconfigdirs libgui itcl ld"
3923 i[3456789]86-w64-mingw*)
3925 i[3456789]86-*-mingw*)
3926 target_configdirs="$target_configdirs target-winsup"
3928 *-*-cygwin*)
3929 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3930 noconfigdirs="$noconfigdirs target-libgloss"
3931 # always build newlib if winsup directory is present.
3932 if test -d "$srcdir/winsup/cygwin"; then
3933 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3934 elif test -d "$srcdir/newlib"; then
3935 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3938 i[3456789]86-*-pe)
3939 noconfigdirs="$noconfigdirs target-libgloss"
3941 i[3456789]86-*-sco3.2v5*)
3942 # The linker does not yet know about weak symbols in COFF,
3943 # and is not configured to handle mixed ELF and COFF.
3944 noconfigdirs="$noconfigdirs ld target-libgloss"
3946 i[3456789]86-*-sco*)
3947 noconfigdirs="$noconfigdirs gprof target-libgloss"
3949 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3950 noconfigdirs="$noconfigdirs target-libgloss"
3952 i[3456789]86-*-sysv4*)
3953 noconfigdirs="$noconfigdirs target-libgloss"
3955 i[3456789]86-*-beos*)
3956 noconfigdirs="$noconfigdirs gdb"
3958 i[3456789]86-*-rdos*)
3959 noconfigdirs="$noconfigdirs gdb"
3961 mmix-*-*)
3962 noconfigdirs="$noconfigdirs gdb"
3964 mt-*-*)
3965 noconfigdirs="$noconfigdirs sim"
3967 nfp-*-*)
3968 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3969 noconfigdirs="$noconfigdirs $target_libraries"
3971 pdp11-*-*)
3972 noconfigdirs="$noconfigdirs gdb gprof"
3974 powerpc-*-aix*)
3975 # copied from rs6000-*-* entry
3976 noconfigdirs="$noconfigdirs gprof"
3978 powerpc*-*-winnt* | powerpc*-*-pe*)
3979 target_configdirs="$target_configdirs target-winsup"
3980 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3981 # always build newlib.
3982 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3984 # This is temporary until we can link against shared libraries
3985 powerpcle-*-solaris*)
3986 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3988 powerpc-*-beos*)
3989 noconfigdirs="$noconfigdirs gdb"
3991 rs6000-*-lynxos*)
3992 noconfigdirs="$noconfigdirs gprof"
3994 rs6000-*-aix*)
3995 noconfigdirs="$noconfigdirs gprof"
3997 rs6000-*-*)
3998 noconfigdirs="$noconfigdirs gprof"
4000 m68k-apollo-*)
4001 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4003 microblaze*)
4004 noconfigdirs="$noconfigdirs gprof"
4006 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4007 if test x$with_newlib = xyes; then
4008 noconfigdirs="$noconfigdirs gprof"
4011 mips*-*-irix5*)
4012 noconfigdirs="$noconfigdirs gprof target-libgloss"
4014 mips*-*-irix6*)
4015 noconfigdirs="$noconfigdirs gprof target-libgloss"
4017 mips*-*-bsd*)
4018 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4020 mips*-*-linux*)
4022 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4023 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4024 noconfigdirs="$noconfigdirs ld gas gprof"
4026 mips*-*-*)
4027 noconfigdirs="$noconfigdirs gprof"
4029 nvptx*-*-*)
4030 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4032 sh-*-*)
4033 case "${target}" in
4034 sh*-*-elf)
4037 noconfigdirs="$noconfigdirs target-libgloss" ;;
4038 esac
4040 sparc-*-sunos4*)
4041 if test x${is_cross_compiler} = xno ; then
4042 use_gnu_ld=no
4045 tic6x-*-*)
4046 noconfigdirs="$noconfigdirs sim"
4048 tilepro*-*-* | tilegx*-*-*)
4049 noconfigdirs="$noconfigdirs sim"
4051 v810-*-*)
4052 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4054 vax-*-*)
4055 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4057 wasm32-*-*)
4058 noconfigdirs="$noconfigdirs ld"
4060 loongarch*-*-linux*)
4062 loongarch*-*-*)
4063 noconfigdirs="$noconfigdirs gprof"
4065 esac
4067 # If we aren't building newlib, then don't build libgloss, since libgloss
4068 # depends upon some newlib header files.
4069 case "${noconfigdirs}" in
4070 *target-libgloss*) ;;
4071 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4072 esac
4074 # Work in distributions that contain no compiler tools, like Autoconf.
4075 host_makefile_frag=/dev/null
4076 if test -d ${srcdir}/config ; then
4077 case "${host}" in
4078 i[3456789]86-*-msdosdjgpp*)
4079 host_makefile_frag="config/mh-djgpp"
4081 *-cygwin*)
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4084 $as_echo_n "checking to see if cat works as expected... " >&6; }
4085 echo a >cygwin-cat-check
4086 if test `cat cygwin-cat-check` = a ; then
4087 rm cygwin-cat-check
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4089 $as_echo "yes" >&6; }
4090 else
4091 rm cygwin-cat-check
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4094 as_fn_error $? "The cat command does not ignore carriage return characters.
4095 Please either mount the build directory in binary mode or run the following
4096 commands before running any configure script:
4097 set -o igncr
4098 export SHELLOPTS
4099 " "$LINENO" 5
4102 host_makefile_frag="config/mh-cygwin"
4104 *-mingw*)
4105 host_makefile_frag="config/mh-mingw"
4107 alpha*-linux*)
4108 host_makefile_frag="config/mh-alpha-linux"
4110 hppa*-hp-hpux*)
4111 host_makefile_frag="config/mh-pa"
4113 hppa*-*)
4114 host_makefile_frag="config/mh-pa"
4116 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4117 host_makefile_frag="config/mh-darwin"
4119 powerpc-*-aix*)
4120 host_makefile_frag="config/mh-ppc-aix"
4122 rs6000-*-aix*)
4123 host_makefile_frag="config/mh-ppc-aix"
4125 esac
4128 if test "${build}" != "${host}" ; then
4129 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4130 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4131 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4132 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4133 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4134 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4135 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4136 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4137 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4138 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4139 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4140 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4141 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4142 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4143 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4144 else
4145 AR_FOR_BUILD="\$(AR)"
4146 AS_FOR_BUILD="\$(AS)"
4147 CC_FOR_BUILD="\$(CC)"
4148 CXX_FOR_BUILD="\$(CXX)"
4149 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4150 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4151 GOC_FOR_BUILD="\$(GOC)"
4152 GDC_FOR_BUILD="\$(GDC)"
4153 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4154 LD_FOR_BUILD="\$(LD)"
4155 NM_FOR_BUILD="\$(NM)"
4156 RANLIB_FOR_BUILD="\$(RANLIB)"
4157 WINDRES_FOR_BUILD="\$(WINDRES)"
4158 WINDMC_FOR_BUILD="\$(WINDMC)"
4161 ac_ext=c
4162 ac_cpp='$CPP $CPPFLAGS'
4163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166 if test -n "$ac_tool_prefix"; then
4167 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4168 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_CC+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$CC"; then
4175 ac_cv_prog_CC="$CC" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4188 done
4189 done
4190 IFS=$as_save_IFS
4194 CC=$ac_cv_prog_CC
4195 if test -n "$CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4205 if test -z "$ac_cv_prog_CC"; then
4206 ac_ct_CC=$CC
4207 # Extract the first word of "gcc", so it can be a program name with args.
4208 set dummy gcc; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$ac_ct_CC"; then
4215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4224 ac_cv_prog_ac_ct_CC="gcc"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4228 done
4229 done
4230 IFS=$as_save_IFS
4234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4235 if test -n "$ac_ct_CC"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4237 $as_echo "$ac_ct_CC" >&6; }
4238 else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4243 if test "x$ac_ct_CC" = x; then
4244 CC=""
4245 else
4246 case $cross_compiling:$ac_tool_warned in
4247 yes:)
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4250 ac_tool_warned=yes ;;
4251 esac
4252 CC=$ac_ct_CC
4254 else
4255 CC="$ac_cv_prog_CC"
4258 if test -z "$CC"; then
4259 if test -n "$ac_tool_prefix"; then
4260 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4261 set dummy ${ac_tool_prefix}cc; ac_word=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_prog_CC+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC="$CC" # Let the user override the test.
4269 else
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_prog_CC="${ac_tool_prefix}cc"
4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4281 done
4282 done
4283 IFS=$as_save_IFS
4287 CC=$ac_cv_prog_CC
4288 if test -n "$CC"; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4290 $as_echo "$CC" >&6; }
4291 else
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4299 if test -z "$CC"; then
4300 # Extract the first word of "cc", so it can be a program name with args.
4301 set dummy cc; ac_word=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if ${ac_cv_prog_CC+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 if test -n "$CC"; then
4308 ac_cv_prog_CC="$CC" # Let the user override the test.
4309 else
4310 ac_prog_rejected=no
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4319 ac_prog_rejected=yes
4320 continue
4322 ac_cv_prog_CC="cc"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4330 if test $ac_prog_rejected = yes; then
4331 # We found a bogon in the path, so make sure we never use it.
4332 set dummy $ac_cv_prog_CC
4333 shift
4334 if test $# != 0; then
4335 # We chose a different compiler from the bogus one.
4336 # However, it has the same basename, so the bogon will be chosen
4337 # first if we set CC to just the basename; use the full file name.
4338 shift
4339 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4344 CC=$ac_cv_prog_CC
4345 if test -n "$CC"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4347 $as_echo "$CC" >&6; }
4348 else
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4355 if test -z "$CC"; then
4356 if test -n "$ac_tool_prefix"; then
4357 for ac_prog in cl.exe
4359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_CC+:} false; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -n "$CC"; then
4367 ac_cv_prog_CC="$CC" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4380 done
4381 done
4382 IFS=$as_save_IFS
4386 CC=$ac_cv_prog_CC
4387 if test -n "$CC"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4389 $as_echo "$CC" >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4396 test -n "$CC" && break
4397 done
4399 if test -z "$CC"; then
4400 ac_ct_CC=$CC
4401 for ac_prog in cl.exe
4403 # Extract the first word of "$ac_prog", so it can be a program name with args.
4404 set dummy $ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -n "$ac_ct_CC"; then
4411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_ac_ct_CC="$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4424 done
4425 done
4426 IFS=$as_save_IFS
4430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4431 if test -n "$ac_ct_CC"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4433 $as_echo "$ac_ct_CC" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4440 test -n "$ac_ct_CC" && break
4441 done
4443 if test "x$ac_ct_CC" = x; then
4444 CC=""
4445 else
4446 case $cross_compiling:$ac_tool_warned in
4447 yes:)
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450 ac_tool_warned=yes ;;
4451 esac
4452 CC=$ac_ct_CC
4459 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4461 as_fn_error $? "no acceptable C compiler found in \$PATH
4462 See \`config.log' for more details" "$LINENO" 5; }
4464 # Provide some information about the compiler.
4465 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4466 set X $ac_compile
4467 ac_compiler=$2
4468 for ac_option in --version -v -V -qversion; do
4469 { { ac_try="$ac_compiler $ac_option >&5"
4470 case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473 esac
4474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4475 $as_echo "$ac_try_echo"; } >&5
4476 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4477 ac_status=$?
4478 if test -s conftest.err; then
4479 sed '10a\
4480 ... rest of stderr output deleted ...
4481 10q' conftest.err >conftest.er1
4482 cat conftest.er1 >&5
4484 rm -f conftest.er1 conftest.err
4485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486 test $ac_status = 0; }
4487 done
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4493 main ()
4497 return 0;
4499 _ACEOF
4500 ac_clean_files_save=$ac_clean_files
4501 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4502 # Try to create an executable without -o first, disregard a.out.
4503 # It will help us diagnose broken compilers, and finding out an intuition
4504 # of exeext.
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4506 $as_echo_n "checking whether the C compiler works... " >&6; }
4507 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4509 # The possible output files:
4510 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4512 ac_rmfiles=
4513 for ac_file in $ac_files
4515 case $ac_file in
4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4518 esac
4519 done
4520 rm -f $ac_rmfiles
4522 if { { ac_try="$ac_link_default"
4523 case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526 esac
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 $as_echo "$ac_try_echo"; } >&5
4529 (eval "$ac_link_default") 2>&5
4530 ac_status=$?
4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }; then :
4533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4535 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4536 # so that the user can short-circuit this test for compilers unknown to
4537 # Autoconf.
4538 for ac_file in $ac_files ''
4540 test -f "$ac_file" || continue
4541 case $ac_file in
4542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4544 [ab].out )
4545 # We found the default executable, but exeext='' is most
4546 # certainly right.
4547 break;;
4548 *.* )
4549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4550 then :; else
4551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4553 # We set ac_cv_exeext here because the later test for it is not
4554 # safe: cross compilers may not add the suffix if given an `-o'
4555 # argument, so we may need to know it at that point already.
4556 # Even if this section looks crufty: it has the advantage of
4557 # actually working.
4558 break;;
4560 break;;
4561 esac
4562 done
4563 test "$ac_cv_exeext" = no && ac_cv_exeext=
4565 else
4566 ac_file=''
4568 if test -z "$ac_file"; then :
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570 $as_echo "no" >&6; }
4571 $as_echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4576 as_fn_error 77 "C compiler cannot create executables
4577 See \`config.log' for more details" "$LINENO" 5; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4580 $as_echo "yes" >&6; }
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4583 $as_echo_n "checking for C compiler default output file name... " >&6; }
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4585 $as_echo "$ac_file" >&6; }
4586 ac_exeext=$ac_cv_exeext
4588 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4589 ac_clean_files=$ac_clean_files_save
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4591 $as_echo_n "checking for suffix of executables... " >&6; }
4592 if { { ac_try="$ac_link"
4593 case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4596 esac
4597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4598 $as_echo "$ac_try_echo"; } >&5
4599 (eval "$ac_link") 2>&5
4600 ac_status=$?
4601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4602 test $ac_status = 0; }; then :
4603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4605 # work properly (i.e., refer to `conftest.exe'), while it won't with
4606 # `rm'.
4607 for ac_file in conftest.exe conftest conftest.*; do
4608 test -f "$ac_file" || continue
4609 case $ac_file in
4610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4612 break;;
4613 * ) break;;
4614 esac
4615 done
4616 else
4617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4619 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4620 See \`config.log' for more details" "$LINENO" 5; }
4622 rm -f conftest conftest$ac_cv_exeext
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4624 $as_echo "$ac_cv_exeext" >&6; }
4626 rm -f conftest.$ac_ext
4627 EXEEXT=$ac_cv_exeext
4628 ac_exeext=$EXEEXT
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631 #include <stdio.h>
4633 main ()
4635 FILE *f = fopen ("conftest.out", "w");
4636 return ferror (f) || fclose (f) != 0;
4639 return 0;
4641 _ACEOF
4642 ac_clean_files="$ac_clean_files conftest.out"
4643 # Check that the compiler produces executables we can run. If not, either
4644 # the compiler is broken, or we cross compile.
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4646 $as_echo_n "checking whether we are cross compiling... " >&6; }
4647 if test "$cross_compiling" != yes; then
4648 { { ac_try="$ac_link"
4649 case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652 esac
4653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654 $as_echo "$ac_try_echo"; } >&5
4655 (eval "$ac_link") 2>&5
4656 ac_status=$?
4657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }
4659 if { ac_try='./conftest$ac_cv_exeext'
4660 { { case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663 esac
4664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665 $as_echo "$ac_try_echo"; } >&5
4666 (eval "$ac_try") 2>&5
4667 ac_status=$?
4668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669 test $ac_status = 0; }; }; then
4670 cross_compiling=no
4671 else
4672 if test "$cross_compiling" = maybe; then
4673 cross_compiling=yes
4674 else
4675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4677 as_fn_error $? "cannot run C compiled programs.
4678 If you meant to cross compile, use \`--host'.
4679 See \`config.log' for more details" "$LINENO" 5; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4684 $as_echo "$cross_compiling" >&6; }
4686 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4687 ac_clean_files=$ac_clean_files_save
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4689 $as_echo_n "checking for suffix of object files... " >&6; }
4690 if ${ac_cv_objext+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4697 main ()
4701 return 0;
4703 _ACEOF
4704 rm -f conftest.o conftest.obj
4705 if { { ac_try="$ac_compile"
4706 case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711 $as_echo "$ac_try_echo"; } >&5
4712 (eval "$ac_compile") 2>&5
4713 ac_status=$?
4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }; then :
4716 for ac_file in conftest.o conftest.obj conftest.*; do
4717 test -f "$ac_file" || continue;
4718 case $ac_file in
4719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4721 break;;
4722 esac
4723 done
4724 else
4725 $as_echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4730 as_fn_error $? "cannot compute suffix of object files: cannot compile
4731 See \`config.log' for more details" "$LINENO" 5; }
4733 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4736 $as_echo "$ac_cv_objext" >&6; }
4737 OBJEXT=$ac_cv_objext
4738 ac_objext=$OBJEXT
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4740 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4741 if ${ac_cv_c_compiler_gnu+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4748 main ()
4750 #ifndef __GNUC__
4751 choke me
4752 #endif
4755 return 0;
4757 _ACEOF
4758 if ac_fn_c_try_compile "$LINENO"; then :
4759 ac_compiler_gnu=yes
4760 else
4761 ac_compiler_gnu=no
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4768 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4769 if test $ac_compiler_gnu = yes; then
4770 GCC=yes
4771 else
4772 GCC=
4774 ac_test_CFLAGS=${CFLAGS+set}
4775 ac_save_CFLAGS=$CFLAGS
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4777 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4778 if ${ac_cv_prog_cc_g+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 ac_save_c_werror_flag=$ac_c_werror_flag
4782 ac_c_werror_flag=yes
4783 ac_cv_prog_cc_g=no
4784 CFLAGS="-g"
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4789 main ()
4793 return 0;
4795 _ACEOF
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797 ac_cv_prog_cc_g=yes
4798 else
4799 CFLAGS=""
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4804 main ()
4808 return 0;
4810 _ACEOF
4811 if ac_fn_c_try_compile "$LINENO"; then :
4813 else
4814 ac_c_werror_flag=$ac_save_c_werror_flag
4815 CFLAGS="-g"
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4820 main ()
4824 return 0;
4826 _ACEOF
4827 if ac_fn_c_try_compile "$LINENO"; then :
4828 ac_cv_prog_cc_g=yes
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 ac_c_werror_flag=$ac_save_c_werror_flag
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4838 $as_echo "$ac_cv_prog_cc_g" >&6; }
4839 if test "$ac_test_CFLAGS" = set; then
4840 CFLAGS=$ac_save_CFLAGS
4841 elif test $ac_cv_prog_cc_g = yes; then
4842 if test "$GCC" = yes; then
4843 CFLAGS="-g -O2"
4844 else
4845 CFLAGS="-g"
4847 else
4848 if test "$GCC" = yes; then
4849 CFLAGS="-O2"
4850 else
4851 CFLAGS=
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4855 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4856 if ${ac_cv_prog_cc_c89+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 ac_cv_prog_cc_c89=no
4860 ac_save_CC=$CC
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863 #include <stdarg.h>
4864 #include <stdio.h>
4865 struct stat;
4866 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4867 struct buf { int x; };
4868 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4869 static char *e (p, i)
4870 char **p;
4871 int i;
4873 return p[i];
4875 static char *f (char * (*g) (char **, int), char **p, ...)
4877 char *s;
4878 va_list v;
4879 va_start (v,p);
4880 s = g (p, va_arg (v,int));
4881 va_end (v);
4882 return s;
4885 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4886 function prototypes and stuff, but not '\xHH' hex character constants.
4887 These don't provoke an error unfortunately, instead are silently treated
4888 as 'x'. The following induces an error, until -std is added to get
4889 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4890 array size at least. It's necessary to write '\x00'==0 to get something
4891 that's true only with -std. */
4892 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4894 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4895 inside strings and character constants. */
4896 #define FOO(x) 'x'
4897 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4899 int test (int i, double x);
4900 struct s1 {int (*f) (int a);};
4901 struct s2 {int (*f) (double a);};
4902 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4903 int argc;
4904 char **argv;
4906 main ()
4908 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4910 return 0;
4912 _ACEOF
4913 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4914 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4916 CC="$ac_save_CC $ac_arg"
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 ac_cv_prog_cc_c89=$ac_arg
4920 rm -f core conftest.err conftest.$ac_objext
4921 test "x$ac_cv_prog_cc_c89" != "xno" && break
4922 done
4923 rm -f conftest.$ac_ext
4924 CC=$ac_save_CC
4927 # AC_CACHE_VAL
4928 case "x$ac_cv_prog_cc_c89" in
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4931 $as_echo "none needed" >&6; } ;;
4932 xno)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4934 $as_echo "unsupported" >&6; } ;;
4936 CC="$CC $ac_cv_prog_cc_c89"
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4938 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4939 esac
4940 if test "x$ac_cv_prog_cc_c89" != xno; then :
4944 ac_ext=c
4945 ac_cpp='$CPP $CPPFLAGS'
4946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4951 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4952 if ${ac_cv_prog_cc_c99+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 ac_cv_prog_cc_c99=no
4956 ac_save_CC=$CC
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959 #include <stdarg.h>
4960 #include <stdbool.h>
4961 #include <stdlib.h>
4962 #include <wchar.h>
4963 #include <stdio.h>
4965 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4966 #define debug(...) fprintf (stderr, __VA_ARGS__)
4967 #define showlist(...) puts (#__VA_ARGS__)
4968 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4969 static void
4970 test_varargs_macros (void)
4972 int x = 1234;
4973 int y = 5678;
4974 debug ("Flag");
4975 debug ("X = %d\n", x);
4976 showlist (The first, second, and third items.);
4977 report (x>y, "x is %d but y is %d", x, y);
4980 // Check long long types.
4981 #define BIG64 18446744073709551615ull
4982 #define BIG32 4294967295ul
4983 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4984 #if !BIG_OK
4985 your preprocessor is broken;
4986 #endif
4987 #if BIG_OK
4988 #else
4989 your preprocessor is broken;
4990 #endif
4991 static long long int bignum = -9223372036854775807LL;
4992 static unsigned long long int ubignum = BIG64;
4994 struct incomplete_array
4996 int datasize;
4997 double data[];
5000 struct named_init {
5001 int number;
5002 const wchar_t *name;
5003 double average;
5006 typedef const char *ccp;
5008 static inline int
5009 test_restrict (ccp restrict text)
5011 // See if C++-style comments work.
5012 // Iterate through items via the restricted pointer.
5013 // Also check for declarations in for loops.
5014 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5015 continue;
5016 return 0;
5019 // Check varargs and va_copy.
5020 static void
5021 test_varargs (const char *format, ...)
5023 va_list args;
5024 va_start (args, format);
5025 va_list args_copy;
5026 va_copy (args_copy, args);
5028 const char *str;
5029 int number;
5030 float fnumber;
5032 while (*format)
5034 switch (*format++)
5036 case 's': // string
5037 str = va_arg (args_copy, const char *);
5038 break;
5039 case 'd': // int
5040 number = va_arg (args_copy, int);
5041 break;
5042 case 'f': // float
5043 fnumber = va_arg (args_copy, double);
5044 break;
5045 default:
5046 break;
5049 va_end (args_copy);
5050 va_end (args);
5054 main ()
5057 // Check bool.
5058 _Bool success = false;
5060 // Check restrict.
5061 if (test_restrict ("String literal") == 0)
5062 success = true;
5063 char *restrict newvar = "Another string";
5065 // Check varargs.
5066 test_varargs ("s, d' f .", "string", 65, 34.234);
5067 test_varargs_macros ();
5069 // Check flexible array members.
5070 struct incomplete_array *ia =
5071 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5072 ia->datasize = 10;
5073 for (int i = 0; i < ia->datasize; ++i)
5074 ia->data[i] = i * 1.234;
5076 // Check named initializers.
5077 struct named_init ni = {
5078 .number = 34,
5079 .name = L"Test wide string",
5080 .average = 543.34343,
5083 ni.number = 58;
5085 int dynamic_array[ni.number];
5086 dynamic_array[ni.number - 1] = 543;
5088 // work around unused variable warnings
5089 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5090 || dynamic_array[ni.number - 1] != 543);
5093 return 0;
5095 _ACEOF
5096 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5098 CC="$ac_save_CC $ac_arg"
5099 if ac_fn_c_try_compile "$LINENO"; then :
5100 ac_cv_prog_cc_c99=$ac_arg
5102 rm -f core conftest.err conftest.$ac_objext
5103 test "x$ac_cv_prog_cc_c99" != "xno" && break
5104 done
5105 rm -f conftest.$ac_ext
5106 CC=$ac_save_CC
5109 # AC_CACHE_VAL
5110 case "x$ac_cv_prog_cc_c99" in
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5113 $as_echo "none needed" >&6; } ;;
5114 xno)
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5116 $as_echo "unsupported" >&6; } ;;
5118 CC="$CC $ac_cv_prog_cc_c99"
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5120 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5121 esac
5122 if test "x$ac_cv_prog_cc_c99" != xno; then :
5127 ac_ext=cpp
5128 ac_cpp='$CXXCPP $CPPFLAGS'
5129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5132 if test -z "$CXX"; then
5133 if test -n "$CCC"; then
5134 CXX=$CCC
5135 else
5136 if test -n "$ac_tool_prefix"; then
5137 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_CXX+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 if test -n "$CXX"; then
5147 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5160 done
5161 done
5162 IFS=$as_save_IFS
5166 CXX=$ac_cv_prog_CXX
5167 if test -n "$CXX"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5169 $as_echo "$CXX" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5176 test -n "$CXX" && break
5177 done
5179 if test -z "$CXX"; then
5180 ac_ct_CXX=$CXX
5181 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5183 # Extract the first word of "$ac_prog", so it can be a program name with args.
5184 set dummy $ac_prog; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$ac_ct_CXX"; then
5191 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_CXX="$ac_prog"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5211 if test -n "$ac_ct_CXX"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5213 $as_echo "$ac_ct_CXX" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5220 test -n "$ac_ct_CXX" && break
5221 done
5223 if test "x$ac_ct_CXX" = x; then
5224 CXX="g++"
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227 yes:)
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned=yes ;;
5231 esac
5232 CXX=$ac_ct_CXX
5238 # Provide some information about the compiler.
5239 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5240 set X $ac_compile
5241 ac_compiler=$2
5242 for ac_option in --version -v -V -qversion; do
5243 { { ac_try="$ac_compiler $ac_option >&5"
5244 case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5247 esac
5248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5249 $as_echo "$ac_try_echo"; } >&5
5250 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5251 ac_status=$?
5252 if test -s conftest.err; then
5253 sed '10a\
5254 ... rest of stderr output deleted ...
5255 10q' conftest.err >conftest.er1
5256 cat conftest.er1 >&5
5258 rm -f conftest.er1 conftest.err
5259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5260 test $ac_status = 0; }
5261 done
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5264 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5265 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5272 main ()
5274 #ifndef __GNUC__
5275 choke me
5276 #endif
5279 return 0;
5281 _ACEOF
5282 if ac_fn_cxx_try_compile "$LINENO"; then :
5283 ac_compiler_gnu=yes
5284 else
5285 ac_compiler_gnu=no
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5292 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5293 if test $ac_compiler_gnu = yes; then
5294 GXX=yes
5295 else
5296 GXX=
5298 ac_test_CXXFLAGS=${CXXFLAGS+set}
5299 ac_save_CXXFLAGS=$CXXFLAGS
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5301 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5302 if ${ac_cv_prog_cxx_g+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5306 ac_cxx_werror_flag=yes
5307 ac_cv_prog_cxx_g=no
5308 CXXFLAGS="-g"
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5313 main ()
5317 return 0;
5319 _ACEOF
5320 if ac_fn_cxx_try_compile "$LINENO"; then :
5321 ac_cv_prog_cxx_g=yes
5322 else
5323 CXXFLAGS=""
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5328 main ()
5332 return 0;
5334 _ACEOF
5335 if ac_fn_cxx_try_compile "$LINENO"; then :
5337 else
5338 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5339 CXXFLAGS="-g"
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5344 main ()
5348 return 0;
5350 _ACEOF
5351 if ac_fn_cxx_try_compile "$LINENO"; then :
5352 ac_cv_prog_cxx_g=yes
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5362 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5363 if test "$ac_test_CXXFLAGS" = set; then
5364 CXXFLAGS=$ac_save_CXXFLAGS
5365 elif test $ac_cv_prog_cxx_g = yes; then
5366 if test "$GXX" = yes; then
5367 CXXFLAGS="-g -O2"
5368 else
5369 CXXFLAGS="-g"
5371 else
5372 if test "$GXX" = yes; then
5373 CXXFLAGS="-O2"
5374 else
5375 CXXFLAGS=
5378 ac_ext=c
5379 ac_cpp='$CPP $CPPFLAGS'
5380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385 # We must set the default linker to the linker used by gcc for the correct
5386 # operation of libtool. If LD is not defined and we are using gcc, try to
5387 # set the LD default to the ld used by gcc.
5388 if test -z "$LD"; then
5389 if test "$GCC" = yes; then
5390 case $build in
5391 *-*-mingw*)
5392 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5394 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5395 esac
5396 case $gcc_prog_ld in
5397 # Accept absolute paths.
5398 [\\/]* | [A-Za-z]:[\\/]*)
5399 LD="$gcc_prog_ld" ;;
5400 esac
5404 # Check whether -static-libstdc++ -static-libgcc is supported.
5405 have_static_libs=no
5406 if test "$GCC" = yes; then
5407 saved_LDFLAGS="$LDFLAGS"
5409 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5411 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5412 ac_ext=cpp
5413 ac_cpp='$CXXCPP $CPPFLAGS'
5414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5422 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5423 #error -static-libstdc++ not implemented
5424 #endif
5425 int main() {}
5426 _ACEOF
5427 if ac_fn_cxx_try_link "$LINENO"; then :
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429 $as_echo "yes" >&6; }; have_static_libs=yes
5430 else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5434 rm -f core conftest.err conftest.$ac_objext \
5435 conftest$ac_exeext conftest.$ac_ext
5436 ac_ext=c
5437 ac_cpp='$CPP $CPPFLAGS'
5438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443 LDFLAGS="$saved_LDFLAGS"
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_GNATBIND+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$GNATBIND"; then
5458 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5471 done
5472 done
5473 IFS=$as_save_IFS
5477 GNATBIND=$ac_cv_prog_GNATBIND
5478 if test -n "$GNATBIND"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5480 $as_echo "$GNATBIND" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5488 if test -z "$ac_cv_prog_GNATBIND"; then
5489 ac_ct_GNATBIND=$GNATBIND
5490 # Extract the first word of "gnatbind", so it can be a program name with args.
5491 set dummy gnatbind; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 if test -n "$ac_ct_GNATBIND"; then
5498 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5511 done
5512 done
5513 IFS=$as_save_IFS
5517 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5518 if test -n "$ac_ct_GNATBIND"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5520 $as_echo "$ac_ct_GNATBIND" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5526 if test "x$ac_ct_GNATBIND" = x; then
5527 GNATBIND="no"
5528 else
5529 case $cross_compiling:$ac_tool_warned in
5530 yes:)
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5534 esac
5535 GNATBIND=$ac_ct_GNATBIND
5537 else
5538 GNATBIND="$ac_cv_prog_GNATBIND"
5541 if test -n "$ac_tool_prefix"; then
5542 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5543 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if ${ac_cv_prog_GNATMAKE+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 if test -n "$GNATMAKE"; then
5550 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5563 done
5564 done
5565 IFS=$as_save_IFS
5569 GNATMAKE=$ac_cv_prog_GNATMAKE
5570 if test -n "$GNATMAKE"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5572 $as_echo "$GNATMAKE" >&6; }
5573 else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5580 if test -z "$ac_cv_prog_GNATMAKE"; then
5581 ac_ct_GNATMAKE=$GNATMAKE
5582 # Extract the first word of "gnatmake", so it can be a program name with args.
5583 set dummy gnatmake; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 if test -n "$ac_ct_GNATMAKE"; then
5590 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2
5603 done
5604 done
5605 IFS=$as_save_IFS
5609 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5610 if test -n "$ac_ct_GNATMAKE"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5612 $as_echo "$ac_ct_GNATMAKE" >&6; }
5613 else
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5618 if test "x$ac_ct_GNATMAKE" = x; then
5619 GNATMAKE="no"
5620 else
5621 case $cross_compiling:$ac_tool_warned in
5622 yes:)
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625 ac_tool_warned=yes ;;
5626 esac
5627 GNATMAKE=$ac_ct_GNATMAKE
5629 else
5630 GNATMAKE="$ac_cv_prog_GNATMAKE"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5634 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5635 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 cat >conftest.adb <<EOF
5639 pragma Warnings (Off);
5640 with System.CRTL;
5641 pragma Warnings (On);
5642 use type System.CRTL.int64;
5643 procedure conftest is begin null; end conftest;
5645 acx_cv_cc_gcc_supports_ada=no
5646 # There is a bug in old released versions of GCC which causes the
5647 # driver to exit successfully when the appropriate language module
5648 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5649 # Therefore we must check for the error message as well as an
5650 # unsuccessful exit.
5651 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5652 # given a .adb file, but produce no object file. So we must check
5653 # if an object file was really produced to guard against this.
5654 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5655 if test x"$errors" = x && test -f conftest.$ac_objext; then
5656 acx_cv_cc_gcc_supports_ada=yes
5658 rm -f conftest.*
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5661 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5663 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5664 have_gnat=yes
5665 else
5666 have_gnat=no
5671 if test -n "$ac_tool_prefix"; then
5672 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5673 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_prog_GDC+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 if test -n "$GDC"; then
5680 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5693 done
5694 done
5695 IFS=$as_save_IFS
5699 GDC=$ac_cv_prog_GDC
5700 if test -n "$GDC"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5702 $as_echo "$GDC" >&6; }
5703 else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5710 if test -z "$ac_cv_prog_GDC"; then
5711 ac_ct_GDC=$GDC
5712 # Extract the first word of "gdc", so it can be a program name with args.
5713 set dummy gdc; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 if test -n "$ac_ct_GDC"; then
5720 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_ac_ct_GDC="gdc"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5733 done
5734 done
5735 IFS=$as_save_IFS
5739 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5740 if test -n "$ac_ct_GDC"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5742 $as_echo "$ac_ct_GDC" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5748 if test "x$ac_ct_GDC" = x; then
5749 GDC="no"
5750 else
5751 case $cross_compiling:$ac_tool_warned in
5752 yes:)
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5755 ac_tool_warned=yes ;;
5756 esac
5757 GDC=$ac_ct_GDC
5759 else
5760 GDC="$ac_cv_prog_GDC"
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5764 $as_echo_n "checking whether the D compiler works... " >&6; }
5765 if ${acx_cv_d_compiler_works+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 cat >conftest.d <<EOF
5769 module conftest; int main() { return 0; }
5771 acx_cv_d_compiler_works=no
5772 if test "x$GDC" != xno; then
5773 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5774 if test x"$errors" = x && test -f conftest.$ac_objext; then
5775 acx_cv_d_compiler_works=yes
5777 rm -f conftest.*
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5781 $as_echo "$acx_cv_d_compiler_works" >&6; }
5782 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5783 have_gdc=yes
5784 else
5785 have_gdc=no
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5789 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5790 if ${gcc_cv_prog_cmp_skip+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 echo abfoo >t1
5794 echo cdfoo >t2
5795 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5796 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5797 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5799 else
5800 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5803 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5804 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5806 else
5807 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5810 rm t1 t2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5814 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5815 do_compare="$gcc_cv_prog_cmp_skip"
5819 # Check whether --enable-bootstrap was given.
5820 if test "${enable_bootstrap+set}" = set; then :
5821 enableval=$enable_bootstrap;
5822 else
5823 enable_bootstrap=default
5827 # Issue errors and warnings for invalid/strange bootstrap combinations.
5828 if test -r $srcdir/gcc/configure; then
5829 have_compiler=yes
5830 else
5831 have_compiler=no
5834 case "$have_compiler:$host:$target:$enable_bootstrap" in
5835 *:*:*:no) ;;
5837 # Default behavior. Enable bootstrap if we have a compiler
5838 # and we are in a native configuration.
5839 yes:$build:$build:default)
5840 enable_bootstrap=yes ;;
5842 *:*:*:default)
5843 enable_bootstrap=no ;;
5845 # We have a compiler and we are in a native configuration, bootstrap is ok
5846 yes:$build:$build:yes)
5849 # Other configurations, but we have a compiler. Assume the user knows
5850 # what he's doing.
5851 yes:*:*:yes)
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5853 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5856 # No compiler: if they passed --enable-bootstrap explicitly, fail
5857 no:*:*:yes)
5858 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5860 # Fail if wrong command line
5862 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5864 esac
5866 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5867 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5868 # require C++11 (or higher).
5869 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5870 CXX="$CXX -std=c++11"
5871 elif test "$have_compiler" = yes; then
5872 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5873 ac_ext=cpp
5874 ac_cpp='$CXXCPP $CPPFLAGS'
5875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5878 ac_success=no
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5881 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5882 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5889 // If the compiler admits that it is not ready for C++11, why torture it?
5890 // Hopefully, this will speed up the test.
5892 #ifndef __cplusplus
5894 #error "This is not a C++ compiler"
5896 #elif __cplusplus < 201103L
5898 #error "This is not a C++11 compiler"
5900 #else
5902 namespace cxx11
5905 namespace test_static_assert
5908 template <typename T>
5909 struct check
5911 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5916 namespace test_final_override
5919 struct Base
5921 virtual ~Base() {}
5922 virtual void f() {}
5925 struct Derived : public Base
5927 virtual ~Derived() override {}
5928 virtual void f() override {}
5933 namespace test_double_right_angle_brackets
5936 template < typename T >
5937 struct check {};
5939 typedef check<void> single_type;
5940 typedef check<check<void>> double_type;
5941 typedef check<check<check<void>>> triple_type;
5942 typedef check<check<check<check<void>>>> quadruple_type;
5946 namespace test_decltype
5952 int a = 1;
5953 decltype(a) b = 2;
5954 return a + b;
5959 namespace test_type_deduction
5962 template < typename T1, typename T2 >
5963 struct is_same
5965 static const bool value = false;
5968 template < typename T >
5969 struct is_same<T, T>
5971 static const bool value = true;
5974 template < typename T1, typename T2 >
5975 auto
5976 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5978 return a1 + a2;
5982 test(const int c, volatile int v)
5984 static_assert(is_same<int, decltype(0)>::value == true, "");
5985 static_assert(is_same<int, decltype(c)>::value == false, "");
5986 static_assert(is_same<int, decltype(v)>::value == false, "");
5987 auto ac = c;
5988 auto av = v;
5989 auto sumi = ac + av + 'x';
5990 auto sumf = ac + av + 1.0;
5991 static_assert(is_same<int, decltype(ac)>::value == true, "");
5992 static_assert(is_same<int, decltype(av)>::value == true, "");
5993 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5994 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5995 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5996 return (sumf > 0.0) ? sumi : add(c, v);
6001 namespace test_noexcept
6004 int f() { return 0; }
6005 int g() noexcept { return 0; }
6007 static_assert(noexcept(f()) == false, "");
6008 static_assert(noexcept(g()) == true, "");
6012 namespace test_constexpr
6015 template < typename CharT >
6016 unsigned long constexpr
6017 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6019 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6022 template < typename CharT >
6023 unsigned long constexpr
6024 strlen_c(const CharT *const s) noexcept
6026 return strlen_c_r(s, 0UL);
6029 static_assert(strlen_c("") == 0UL, "");
6030 static_assert(strlen_c("1") == 1UL, "");
6031 static_assert(strlen_c("example") == 7UL, "");
6032 static_assert(strlen_c("another\0example") == 7UL, "");
6036 namespace test_rvalue_references
6039 template < int N >
6040 struct answer
6042 static constexpr int value = N;
6045 answer<1> f(int&) { return answer<1>(); }
6046 answer<2> f(const int&) { return answer<2>(); }
6047 answer<3> f(int&&) { return answer<3>(); }
6049 void
6050 test()
6052 int i = 0;
6053 const int c = 0;
6054 static_assert(decltype(f(i))::value == 1, "");
6055 static_assert(decltype(f(c))::value == 2, "");
6056 static_assert(decltype(f(0))::value == 3, "");
6061 namespace test_uniform_initialization
6064 struct test
6066 static const int zero {};
6067 static const int one {1};
6070 static_assert(test::zero == 0, "");
6071 static_assert(test::one == 1, "");
6075 namespace test_lambdas
6078 void
6079 test1()
6081 auto lambda1 = [](){};
6082 auto lambda2 = lambda1;
6083 lambda1();
6084 lambda2();
6088 test2()
6090 auto a = [](int i, int j){ return i + j; }(1, 2);
6091 auto b = []() -> int { return '0'; }();
6092 auto c = [=](){ return a + b; }();
6093 auto d = [&](){ return c; }();
6094 auto e = [a, &b](int x) mutable {
6095 const auto identity = [](int y){ return y; };
6096 for (auto i = 0; i < a; ++i)
6097 a += b--;
6098 return x + identity(a + b);
6099 }(0);
6100 return a + b + c + d + e;
6104 test3()
6106 const auto nullary = [](){ return 0; };
6107 const auto unary = [](int x){ return x; };
6108 using nullary_t = decltype(nullary);
6109 using unary_t = decltype(unary);
6110 const auto higher1st = [](nullary_t f){ return f(); };
6111 const auto higher2nd = [unary](nullary_t f1){
6112 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6114 return higher1st(nullary) + higher2nd(nullary)(unary);
6119 namespace test_variadic_templates
6122 template <int...>
6123 struct sum;
6125 template <int N0, int... N1toN>
6126 struct sum<N0, N1toN...>
6128 static constexpr auto value = N0 + sum<N1toN...>::value;
6131 template <>
6132 struct sum<>
6134 static constexpr auto value = 0;
6137 static_assert(sum<>::value == 0, "");
6138 static_assert(sum<1>::value == 1, "");
6139 static_assert(sum<23>::value == 23, "");
6140 static_assert(sum<1, 2>::value == 3, "");
6141 static_assert(sum<5, 5, 11>::value == 21, "");
6142 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6146 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6147 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6148 // because of this.
6149 namespace test_template_alias_sfinae
6152 struct foo {};
6154 template<typename T>
6155 using member = typename T::member_type;
6157 template<typename T>
6158 void func(...) {}
6160 template<typename T>
6161 void func(member<T>*) {}
6163 void test();
6165 void test() { func<foo>(0); }
6169 } // namespace cxx11
6171 #endif // __cplusplus >= 201103L
6175 _ACEOF
6176 if ac_fn_cxx_try_compile "$LINENO"; then :
6177 ax_cv_cxx_compile_cxx11=yes
6178 else
6179 ax_cv_cxx_compile_cxx11=no
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6184 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6185 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6186 ac_success=yes
6189 if test x$ac_success = xno; then
6190 for alternative in ${ax_cxx_compile_alternatives}; do
6191 switch="-std=gnu++${alternative}"
6192 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6194 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6195 if eval \${$cachevar+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 ac_save_CXX="$CXX"
6199 CXX="$CXX $switch"
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6204 // If the compiler admits that it is not ready for C++11, why torture it?
6205 // Hopefully, this will speed up the test.
6207 #ifndef __cplusplus
6209 #error "This is not a C++ compiler"
6211 #elif __cplusplus < 201103L
6213 #error "This is not a C++11 compiler"
6215 #else
6217 namespace cxx11
6220 namespace test_static_assert
6223 template <typename T>
6224 struct check
6226 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6231 namespace test_final_override
6234 struct Base
6236 virtual ~Base() {}
6237 virtual void f() {}
6240 struct Derived : public Base
6242 virtual ~Derived() override {}
6243 virtual void f() override {}
6248 namespace test_double_right_angle_brackets
6251 template < typename T >
6252 struct check {};
6254 typedef check<void> single_type;
6255 typedef check<check<void>> double_type;
6256 typedef check<check<check<void>>> triple_type;
6257 typedef check<check<check<check<void>>>> quadruple_type;
6261 namespace test_decltype
6267 int a = 1;
6268 decltype(a) b = 2;
6269 return a + b;
6274 namespace test_type_deduction
6277 template < typename T1, typename T2 >
6278 struct is_same
6280 static const bool value = false;
6283 template < typename T >
6284 struct is_same<T, T>
6286 static const bool value = true;
6289 template < typename T1, typename T2 >
6290 auto
6291 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6293 return a1 + a2;
6297 test(const int c, volatile int v)
6299 static_assert(is_same<int, decltype(0)>::value == true, "");
6300 static_assert(is_same<int, decltype(c)>::value == false, "");
6301 static_assert(is_same<int, decltype(v)>::value == false, "");
6302 auto ac = c;
6303 auto av = v;
6304 auto sumi = ac + av + 'x';
6305 auto sumf = ac + av + 1.0;
6306 static_assert(is_same<int, decltype(ac)>::value == true, "");
6307 static_assert(is_same<int, decltype(av)>::value == true, "");
6308 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6309 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6310 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6311 return (sumf > 0.0) ? sumi : add(c, v);
6316 namespace test_noexcept
6319 int f() { return 0; }
6320 int g() noexcept { return 0; }
6322 static_assert(noexcept(f()) == false, "");
6323 static_assert(noexcept(g()) == true, "");
6327 namespace test_constexpr
6330 template < typename CharT >
6331 unsigned long constexpr
6332 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6334 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6337 template < typename CharT >
6338 unsigned long constexpr
6339 strlen_c(const CharT *const s) noexcept
6341 return strlen_c_r(s, 0UL);
6344 static_assert(strlen_c("") == 0UL, "");
6345 static_assert(strlen_c("1") == 1UL, "");
6346 static_assert(strlen_c("example") == 7UL, "");
6347 static_assert(strlen_c("another\0example") == 7UL, "");
6351 namespace test_rvalue_references
6354 template < int N >
6355 struct answer
6357 static constexpr int value = N;
6360 answer<1> f(int&) { return answer<1>(); }
6361 answer<2> f(const int&) { return answer<2>(); }
6362 answer<3> f(int&&) { return answer<3>(); }
6364 void
6365 test()
6367 int i = 0;
6368 const int c = 0;
6369 static_assert(decltype(f(i))::value == 1, "");
6370 static_assert(decltype(f(c))::value == 2, "");
6371 static_assert(decltype(f(0))::value == 3, "");
6376 namespace test_uniform_initialization
6379 struct test
6381 static const int zero {};
6382 static const int one {1};
6385 static_assert(test::zero == 0, "");
6386 static_assert(test::one == 1, "");
6390 namespace test_lambdas
6393 void
6394 test1()
6396 auto lambda1 = [](){};
6397 auto lambda2 = lambda1;
6398 lambda1();
6399 lambda2();
6403 test2()
6405 auto a = [](int i, int j){ return i + j; }(1, 2);
6406 auto b = []() -> int { return '0'; }();
6407 auto c = [=](){ return a + b; }();
6408 auto d = [&](){ return c; }();
6409 auto e = [a, &b](int x) mutable {
6410 const auto identity = [](int y){ return y; };
6411 for (auto i = 0; i < a; ++i)
6412 a += b--;
6413 return x + identity(a + b);
6414 }(0);
6415 return a + b + c + d + e;
6419 test3()
6421 const auto nullary = [](){ return 0; };
6422 const auto unary = [](int x){ return x; };
6423 using nullary_t = decltype(nullary);
6424 using unary_t = decltype(unary);
6425 const auto higher1st = [](nullary_t f){ return f(); };
6426 const auto higher2nd = [unary](nullary_t f1){
6427 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6429 return higher1st(nullary) + higher2nd(nullary)(unary);
6434 namespace test_variadic_templates
6437 template <int...>
6438 struct sum;
6440 template <int N0, int... N1toN>
6441 struct sum<N0, N1toN...>
6443 static constexpr auto value = N0 + sum<N1toN...>::value;
6446 template <>
6447 struct sum<>
6449 static constexpr auto value = 0;
6452 static_assert(sum<>::value == 0, "");
6453 static_assert(sum<1>::value == 1, "");
6454 static_assert(sum<23>::value == 23, "");
6455 static_assert(sum<1, 2>::value == 3, "");
6456 static_assert(sum<5, 5, 11>::value == 21, "");
6457 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6461 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6462 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6463 // because of this.
6464 namespace test_template_alias_sfinae
6467 struct foo {};
6469 template<typename T>
6470 using member = typename T::member_type;
6472 template<typename T>
6473 void func(...) {}
6475 template<typename T>
6476 void func(member<T>*) {}
6478 void test();
6480 void test() { func<foo>(0); }
6484 } // namespace cxx11
6486 #endif // __cplusplus >= 201103L
6490 _ACEOF
6491 if ac_fn_cxx_try_compile "$LINENO"; then :
6492 eval $cachevar=yes
6493 else
6494 eval $cachevar=no
6496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 CXX="$ac_save_CXX"
6499 eval ac_res=\$$cachevar
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6501 $as_echo "$ac_res" >&6; }
6502 if eval test x\$$cachevar = xyes; then
6503 CXX="$CXX $switch"
6504 if test -n "$CXXCPP" ; then
6505 CXXCPP="$CXXCPP $switch"
6507 ac_success=yes
6508 break
6510 done
6513 if test x$ac_success = xno; then
6514 for alternative in ${ax_cxx_compile_alternatives}; do
6515 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6516 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6518 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6519 if eval \${$cachevar+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 ac_save_CXX="$CXX"
6523 CXX="$CXX $switch"
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6528 // If the compiler admits that it is not ready for C++11, why torture it?
6529 // Hopefully, this will speed up the test.
6531 #ifndef __cplusplus
6533 #error "This is not a C++ compiler"
6535 #elif __cplusplus < 201103L
6537 #error "This is not a C++11 compiler"
6539 #else
6541 namespace cxx11
6544 namespace test_static_assert
6547 template <typename T>
6548 struct check
6550 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6555 namespace test_final_override
6558 struct Base
6560 virtual ~Base() {}
6561 virtual void f() {}
6564 struct Derived : public Base
6566 virtual ~Derived() override {}
6567 virtual void f() override {}
6572 namespace test_double_right_angle_brackets
6575 template < typename T >
6576 struct check {};
6578 typedef check<void> single_type;
6579 typedef check<check<void>> double_type;
6580 typedef check<check<check<void>>> triple_type;
6581 typedef check<check<check<check<void>>>> quadruple_type;
6585 namespace test_decltype
6591 int a = 1;
6592 decltype(a) b = 2;
6593 return a + b;
6598 namespace test_type_deduction
6601 template < typename T1, typename T2 >
6602 struct is_same
6604 static const bool value = false;
6607 template < typename T >
6608 struct is_same<T, T>
6610 static const bool value = true;
6613 template < typename T1, typename T2 >
6614 auto
6615 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6617 return a1 + a2;
6621 test(const int c, volatile int v)
6623 static_assert(is_same<int, decltype(0)>::value == true, "");
6624 static_assert(is_same<int, decltype(c)>::value == false, "");
6625 static_assert(is_same<int, decltype(v)>::value == false, "");
6626 auto ac = c;
6627 auto av = v;
6628 auto sumi = ac + av + 'x';
6629 auto sumf = ac + av + 1.0;
6630 static_assert(is_same<int, decltype(ac)>::value == true, "");
6631 static_assert(is_same<int, decltype(av)>::value == true, "");
6632 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6633 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6634 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6635 return (sumf > 0.0) ? sumi : add(c, v);
6640 namespace test_noexcept
6643 int f() { return 0; }
6644 int g() noexcept { return 0; }
6646 static_assert(noexcept(f()) == false, "");
6647 static_assert(noexcept(g()) == true, "");
6651 namespace test_constexpr
6654 template < typename CharT >
6655 unsigned long constexpr
6656 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6658 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6661 template < typename CharT >
6662 unsigned long constexpr
6663 strlen_c(const CharT *const s) noexcept
6665 return strlen_c_r(s, 0UL);
6668 static_assert(strlen_c("") == 0UL, "");
6669 static_assert(strlen_c("1") == 1UL, "");
6670 static_assert(strlen_c("example") == 7UL, "");
6671 static_assert(strlen_c("another\0example") == 7UL, "");
6675 namespace test_rvalue_references
6678 template < int N >
6679 struct answer
6681 static constexpr int value = N;
6684 answer<1> f(int&) { return answer<1>(); }
6685 answer<2> f(const int&) { return answer<2>(); }
6686 answer<3> f(int&&) { return answer<3>(); }
6688 void
6689 test()
6691 int i = 0;
6692 const int c = 0;
6693 static_assert(decltype(f(i))::value == 1, "");
6694 static_assert(decltype(f(c))::value == 2, "");
6695 static_assert(decltype(f(0))::value == 3, "");
6700 namespace test_uniform_initialization
6703 struct test
6705 static const int zero {};
6706 static const int one {1};
6709 static_assert(test::zero == 0, "");
6710 static_assert(test::one == 1, "");
6714 namespace test_lambdas
6717 void
6718 test1()
6720 auto lambda1 = [](){};
6721 auto lambda2 = lambda1;
6722 lambda1();
6723 lambda2();
6727 test2()
6729 auto a = [](int i, int j){ return i + j; }(1, 2);
6730 auto b = []() -> int { return '0'; }();
6731 auto c = [=](){ return a + b; }();
6732 auto d = [&](){ return c; }();
6733 auto e = [a, &b](int x) mutable {
6734 const auto identity = [](int y){ return y; };
6735 for (auto i = 0; i < a; ++i)
6736 a += b--;
6737 return x + identity(a + b);
6738 }(0);
6739 return a + b + c + d + e;
6743 test3()
6745 const auto nullary = [](){ return 0; };
6746 const auto unary = [](int x){ return x; };
6747 using nullary_t = decltype(nullary);
6748 using unary_t = decltype(unary);
6749 const auto higher1st = [](nullary_t f){ return f(); };
6750 const auto higher2nd = [unary](nullary_t f1){
6751 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6753 return higher1st(nullary) + higher2nd(nullary)(unary);
6758 namespace test_variadic_templates
6761 template <int...>
6762 struct sum;
6764 template <int N0, int... N1toN>
6765 struct sum<N0, N1toN...>
6767 static constexpr auto value = N0 + sum<N1toN...>::value;
6770 template <>
6771 struct sum<>
6773 static constexpr auto value = 0;
6776 static_assert(sum<>::value == 0, "");
6777 static_assert(sum<1>::value == 1, "");
6778 static_assert(sum<23>::value == 23, "");
6779 static_assert(sum<1, 2>::value == 3, "");
6780 static_assert(sum<5, 5, 11>::value == 21, "");
6781 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6785 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6786 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6787 // because of this.
6788 namespace test_template_alias_sfinae
6791 struct foo {};
6793 template<typename T>
6794 using member = typename T::member_type;
6796 template<typename T>
6797 void func(...) {}
6799 template<typename T>
6800 void func(member<T>*) {}
6802 void test();
6804 void test() { func<foo>(0); }
6808 } // namespace cxx11
6810 #endif // __cplusplus >= 201103L
6814 _ACEOF
6815 if ac_fn_cxx_try_compile "$LINENO"; then :
6816 eval $cachevar=yes
6817 else
6818 eval $cachevar=no
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 CXX="$ac_save_CXX"
6823 eval ac_res=\$$cachevar
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6825 $as_echo "$ac_res" >&6; }
6826 if eval test x\$$cachevar = xyes; then
6827 CXX="$CXX $switch"
6828 if test -n "$CXXCPP" ; then
6829 CXXCPP="$CXXCPP $switch"
6831 ac_success=yes
6832 break
6834 done
6835 if test x$ac_success = xyes; then
6836 break
6838 done
6841 ac_ext=c
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6847 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6848 if test x$ac_success = xno; then
6849 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6852 if test x$ac_success = xno; then
6853 HAVE_CXX11=0
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6855 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6856 else
6857 HAVE_CXX11=1
6859 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6865 if test "${build}" != "${host}"; then
6866 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6867 ac_ext=cpp
6868 ac_cpp='$CXXCPP $CPPFLAGS'
6869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6872 ac_success=no
6873 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6874 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6875 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6876 CXX="$CXX_FOR_BUILD"
6877 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6878 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6880 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6881 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6888 // If the compiler admits that it is not ready for C++11, why torture it?
6889 // Hopefully, this will speed up the test.
6891 #ifndef __cplusplus
6893 #error "This is not a C++ compiler"
6895 #elif __cplusplus < 201103L
6897 #error "This is not a C++11 compiler"
6899 #else
6901 namespace cxx11
6904 namespace test_static_assert
6907 template <typename T>
6908 struct check
6910 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6915 namespace test_final_override
6918 struct Base
6920 virtual ~Base() {}
6921 virtual void f() {}
6924 struct Derived : public Base
6926 virtual ~Derived() override {}
6927 virtual void f() override {}
6932 namespace test_double_right_angle_brackets
6935 template < typename T >
6936 struct check {};
6938 typedef check<void> single_type;
6939 typedef check<check<void>> double_type;
6940 typedef check<check<check<void>>> triple_type;
6941 typedef check<check<check<check<void>>>> quadruple_type;
6945 namespace test_decltype
6951 int a = 1;
6952 decltype(a) b = 2;
6953 return a + b;
6958 namespace test_type_deduction
6961 template < typename T1, typename T2 >
6962 struct is_same
6964 static const bool value = false;
6967 template < typename T >
6968 struct is_same<T, T>
6970 static const bool value = true;
6973 template < typename T1, typename T2 >
6974 auto
6975 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6977 return a1 + a2;
6981 test(const int c, volatile int v)
6983 static_assert(is_same<int, decltype(0)>::value == true, "");
6984 static_assert(is_same<int, decltype(c)>::value == false, "");
6985 static_assert(is_same<int, decltype(v)>::value == false, "");
6986 auto ac = c;
6987 auto av = v;
6988 auto sumi = ac + av + 'x';
6989 auto sumf = ac + av + 1.0;
6990 static_assert(is_same<int, decltype(ac)>::value == true, "");
6991 static_assert(is_same<int, decltype(av)>::value == true, "");
6992 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6993 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6994 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6995 return (sumf > 0.0) ? sumi : add(c, v);
7000 namespace test_noexcept
7003 int f() { return 0; }
7004 int g() noexcept { return 0; }
7006 static_assert(noexcept(f()) == false, "");
7007 static_assert(noexcept(g()) == true, "");
7011 namespace test_constexpr
7014 template < typename CharT >
7015 unsigned long constexpr
7016 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7018 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7021 template < typename CharT >
7022 unsigned long constexpr
7023 strlen_c(const CharT *const s) noexcept
7025 return strlen_c_r(s, 0UL);
7028 static_assert(strlen_c("") == 0UL, "");
7029 static_assert(strlen_c("1") == 1UL, "");
7030 static_assert(strlen_c("example") == 7UL, "");
7031 static_assert(strlen_c("another\0example") == 7UL, "");
7035 namespace test_rvalue_references
7038 template < int N >
7039 struct answer
7041 static constexpr int value = N;
7044 answer<1> f(int&) { return answer<1>(); }
7045 answer<2> f(const int&) { return answer<2>(); }
7046 answer<3> f(int&&) { return answer<3>(); }
7048 void
7049 test()
7051 int i = 0;
7052 const int c = 0;
7053 static_assert(decltype(f(i))::value == 1, "");
7054 static_assert(decltype(f(c))::value == 2, "");
7055 static_assert(decltype(f(0))::value == 3, "");
7060 namespace test_uniform_initialization
7063 struct test
7065 static const int zero {};
7066 static const int one {1};
7069 static_assert(test::zero == 0, "");
7070 static_assert(test::one == 1, "");
7074 namespace test_lambdas
7077 void
7078 test1()
7080 auto lambda1 = [](){};
7081 auto lambda2 = lambda1;
7082 lambda1();
7083 lambda2();
7087 test2()
7089 auto a = [](int i, int j){ return i + j; }(1, 2);
7090 auto b = []() -> int { return '0'; }();
7091 auto c = [=](){ return a + b; }();
7092 auto d = [&](){ return c; }();
7093 auto e = [a, &b](int x) mutable {
7094 const auto identity = [](int y){ return y; };
7095 for (auto i = 0; i < a; ++i)
7096 a += b--;
7097 return x + identity(a + b);
7098 }(0);
7099 return a + b + c + d + e;
7103 test3()
7105 const auto nullary = [](){ return 0; };
7106 const auto unary = [](int x){ return x; };
7107 using nullary_t = decltype(nullary);
7108 using unary_t = decltype(unary);
7109 const auto higher1st = [](nullary_t f){ return f(); };
7110 const auto higher2nd = [unary](nullary_t f1){
7111 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7113 return higher1st(nullary) + higher2nd(nullary)(unary);
7118 namespace test_variadic_templates
7121 template <int...>
7122 struct sum;
7124 template <int N0, int... N1toN>
7125 struct sum<N0, N1toN...>
7127 static constexpr auto value = N0 + sum<N1toN...>::value;
7130 template <>
7131 struct sum<>
7133 static constexpr auto value = 0;
7136 static_assert(sum<>::value == 0, "");
7137 static_assert(sum<1>::value == 1, "");
7138 static_assert(sum<23>::value == 23, "");
7139 static_assert(sum<1, 2>::value == 3, "");
7140 static_assert(sum<5, 5, 11>::value == 21, "");
7141 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7145 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7146 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7147 // because of this.
7148 namespace test_template_alias_sfinae
7151 struct foo {};
7153 template<typename T>
7154 using member = typename T::member_type;
7156 template<typename T>
7157 void func(...) {}
7159 template<typename T>
7160 void func(member<T>*) {}
7162 void test();
7164 void test() { func<foo>(0); }
7168 } // namespace cxx11
7170 #endif // __cplusplus >= 201103L
7174 _ACEOF
7175 if ac_fn_cxx_try_compile "$LINENO"; then :
7176 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7177 else
7178 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7183 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7184 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7185 ac_success=yes
7188 if test x$ac_success = xno; then
7189 for alternative in ${ax_cxx_compile_alternatives}; do
7190 switch="-std=gnu++${alternative}"
7191 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7193 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7194 if eval \${$cachevar+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 ac_save_CXX="$CXX"
7198 CXX="$CXX $switch"
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7203 // If the compiler admits that it is not ready for C++11, why torture it?
7204 // Hopefully, this will speed up the test.
7206 #ifndef __cplusplus
7208 #error "This is not a C++ compiler"
7210 #elif __cplusplus < 201103L
7212 #error "This is not a C++11 compiler"
7214 #else
7216 namespace cxx11
7219 namespace test_static_assert
7222 template <typename T>
7223 struct check
7225 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7230 namespace test_final_override
7233 struct Base
7235 virtual ~Base() {}
7236 virtual void f() {}
7239 struct Derived : public Base
7241 virtual ~Derived() override {}
7242 virtual void f() override {}
7247 namespace test_double_right_angle_brackets
7250 template < typename T >
7251 struct check {};
7253 typedef check<void> single_type;
7254 typedef check<check<void>> double_type;
7255 typedef check<check<check<void>>> triple_type;
7256 typedef check<check<check<check<void>>>> quadruple_type;
7260 namespace test_decltype
7266 int a = 1;
7267 decltype(a) b = 2;
7268 return a + b;
7273 namespace test_type_deduction
7276 template < typename T1, typename T2 >
7277 struct is_same
7279 static const bool value = false;
7282 template < typename T >
7283 struct is_same<T, T>
7285 static const bool value = true;
7288 template < typename T1, typename T2 >
7289 auto
7290 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7292 return a1 + a2;
7296 test(const int c, volatile int v)
7298 static_assert(is_same<int, decltype(0)>::value == true, "");
7299 static_assert(is_same<int, decltype(c)>::value == false, "");
7300 static_assert(is_same<int, decltype(v)>::value == false, "");
7301 auto ac = c;
7302 auto av = v;
7303 auto sumi = ac + av + 'x';
7304 auto sumf = ac + av + 1.0;
7305 static_assert(is_same<int, decltype(ac)>::value == true, "");
7306 static_assert(is_same<int, decltype(av)>::value == true, "");
7307 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7308 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7309 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7310 return (sumf > 0.0) ? sumi : add(c, v);
7315 namespace test_noexcept
7318 int f() { return 0; }
7319 int g() noexcept { return 0; }
7321 static_assert(noexcept(f()) == false, "");
7322 static_assert(noexcept(g()) == true, "");
7326 namespace test_constexpr
7329 template < typename CharT >
7330 unsigned long constexpr
7331 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7333 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7336 template < typename CharT >
7337 unsigned long constexpr
7338 strlen_c(const CharT *const s) noexcept
7340 return strlen_c_r(s, 0UL);
7343 static_assert(strlen_c("") == 0UL, "");
7344 static_assert(strlen_c("1") == 1UL, "");
7345 static_assert(strlen_c("example") == 7UL, "");
7346 static_assert(strlen_c("another\0example") == 7UL, "");
7350 namespace test_rvalue_references
7353 template < int N >
7354 struct answer
7356 static constexpr int value = N;
7359 answer<1> f(int&) { return answer<1>(); }
7360 answer<2> f(const int&) { return answer<2>(); }
7361 answer<3> f(int&&) { return answer<3>(); }
7363 void
7364 test()
7366 int i = 0;
7367 const int c = 0;
7368 static_assert(decltype(f(i))::value == 1, "");
7369 static_assert(decltype(f(c))::value == 2, "");
7370 static_assert(decltype(f(0))::value == 3, "");
7375 namespace test_uniform_initialization
7378 struct test
7380 static const int zero {};
7381 static const int one {1};
7384 static_assert(test::zero == 0, "");
7385 static_assert(test::one == 1, "");
7389 namespace test_lambdas
7392 void
7393 test1()
7395 auto lambda1 = [](){};
7396 auto lambda2 = lambda1;
7397 lambda1();
7398 lambda2();
7402 test2()
7404 auto a = [](int i, int j){ return i + j; }(1, 2);
7405 auto b = []() -> int { return '0'; }();
7406 auto c = [=](){ return a + b; }();
7407 auto d = [&](){ return c; }();
7408 auto e = [a, &b](int x) mutable {
7409 const auto identity = [](int y){ return y; };
7410 for (auto i = 0; i < a; ++i)
7411 a += b--;
7412 return x + identity(a + b);
7413 }(0);
7414 return a + b + c + d + e;
7418 test3()
7420 const auto nullary = [](){ return 0; };
7421 const auto unary = [](int x){ return x; };
7422 using nullary_t = decltype(nullary);
7423 using unary_t = decltype(unary);
7424 const auto higher1st = [](nullary_t f){ return f(); };
7425 const auto higher2nd = [unary](nullary_t f1){
7426 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7428 return higher1st(nullary) + higher2nd(nullary)(unary);
7433 namespace test_variadic_templates
7436 template <int...>
7437 struct sum;
7439 template <int N0, int... N1toN>
7440 struct sum<N0, N1toN...>
7442 static constexpr auto value = N0 + sum<N1toN...>::value;
7445 template <>
7446 struct sum<>
7448 static constexpr auto value = 0;
7451 static_assert(sum<>::value == 0, "");
7452 static_assert(sum<1>::value == 1, "");
7453 static_assert(sum<23>::value == 23, "");
7454 static_assert(sum<1, 2>::value == 3, "");
7455 static_assert(sum<5, 5, 11>::value == 21, "");
7456 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7460 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7461 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7462 // because of this.
7463 namespace test_template_alias_sfinae
7466 struct foo {};
7468 template<typename T>
7469 using member = typename T::member_type;
7471 template<typename T>
7472 void func(...) {}
7474 template<typename T>
7475 void func(member<T>*) {}
7477 void test();
7479 void test() { func<foo>(0); }
7483 } // namespace cxx11
7485 #endif // __cplusplus >= 201103L
7489 _ACEOF
7490 if ac_fn_cxx_try_compile "$LINENO"; then :
7491 eval $cachevar=yes
7492 else
7493 eval $cachevar=no
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 CXX="$ac_save_CXX"
7498 eval ac_res=\$$cachevar
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7500 $as_echo "$ac_res" >&6; }
7501 if eval test x\$$cachevar = xyes; then
7502 CXX="$CXX $switch"
7503 if test -n "$CXXCPP" ; then
7504 CXXCPP="$CXXCPP $switch"
7506 ac_success=yes
7507 break
7509 done
7512 if test x$ac_success = xno; then
7513 for alternative in ${ax_cxx_compile_alternatives}; do
7514 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7515 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7517 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7518 if eval \${$cachevar+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 ac_save_CXX="$CXX"
7522 CXX="$CXX $switch"
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7527 // If the compiler admits that it is not ready for C++11, why torture it?
7528 // Hopefully, this will speed up the test.
7530 #ifndef __cplusplus
7532 #error "This is not a C++ compiler"
7534 #elif __cplusplus < 201103L
7536 #error "This is not a C++11 compiler"
7538 #else
7540 namespace cxx11
7543 namespace test_static_assert
7546 template <typename T>
7547 struct check
7549 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7554 namespace test_final_override
7557 struct Base
7559 virtual ~Base() {}
7560 virtual void f() {}
7563 struct Derived : public Base
7565 virtual ~Derived() override {}
7566 virtual void f() override {}
7571 namespace test_double_right_angle_brackets
7574 template < typename T >
7575 struct check {};
7577 typedef check<void> single_type;
7578 typedef check<check<void>> double_type;
7579 typedef check<check<check<void>>> triple_type;
7580 typedef check<check<check<check<void>>>> quadruple_type;
7584 namespace test_decltype
7590 int a = 1;
7591 decltype(a) b = 2;
7592 return a + b;
7597 namespace test_type_deduction
7600 template < typename T1, typename T2 >
7601 struct is_same
7603 static const bool value = false;
7606 template < typename T >
7607 struct is_same<T, T>
7609 static const bool value = true;
7612 template < typename T1, typename T2 >
7613 auto
7614 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7616 return a1 + a2;
7620 test(const int c, volatile int v)
7622 static_assert(is_same<int, decltype(0)>::value == true, "");
7623 static_assert(is_same<int, decltype(c)>::value == false, "");
7624 static_assert(is_same<int, decltype(v)>::value == false, "");
7625 auto ac = c;
7626 auto av = v;
7627 auto sumi = ac + av + 'x';
7628 auto sumf = ac + av + 1.0;
7629 static_assert(is_same<int, decltype(ac)>::value == true, "");
7630 static_assert(is_same<int, decltype(av)>::value == true, "");
7631 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7632 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7633 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7634 return (sumf > 0.0) ? sumi : add(c, v);
7639 namespace test_noexcept
7642 int f() { return 0; }
7643 int g() noexcept { return 0; }
7645 static_assert(noexcept(f()) == false, "");
7646 static_assert(noexcept(g()) == true, "");
7650 namespace test_constexpr
7653 template < typename CharT >
7654 unsigned long constexpr
7655 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7657 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7660 template < typename CharT >
7661 unsigned long constexpr
7662 strlen_c(const CharT *const s) noexcept
7664 return strlen_c_r(s, 0UL);
7667 static_assert(strlen_c("") == 0UL, "");
7668 static_assert(strlen_c("1") == 1UL, "");
7669 static_assert(strlen_c("example") == 7UL, "");
7670 static_assert(strlen_c("another\0example") == 7UL, "");
7674 namespace test_rvalue_references
7677 template < int N >
7678 struct answer
7680 static constexpr int value = N;
7683 answer<1> f(int&) { return answer<1>(); }
7684 answer<2> f(const int&) { return answer<2>(); }
7685 answer<3> f(int&&) { return answer<3>(); }
7687 void
7688 test()
7690 int i = 0;
7691 const int c = 0;
7692 static_assert(decltype(f(i))::value == 1, "");
7693 static_assert(decltype(f(c))::value == 2, "");
7694 static_assert(decltype(f(0))::value == 3, "");
7699 namespace test_uniform_initialization
7702 struct test
7704 static const int zero {};
7705 static const int one {1};
7708 static_assert(test::zero == 0, "");
7709 static_assert(test::one == 1, "");
7713 namespace test_lambdas
7716 void
7717 test1()
7719 auto lambda1 = [](){};
7720 auto lambda2 = lambda1;
7721 lambda1();
7722 lambda2();
7726 test2()
7728 auto a = [](int i, int j){ return i + j; }(1, 2);
7729 auto b = []() -> int { return '0'; }();
7730 auto c = [=](){ return a + b; }();
7731 auto d = [&](){ return c; }();
7732 auto e = [a, &b](int x) mutable {
7733 const auto identity = [](int y){ return y; };
7734 for (auto i = 0; i < a; ++i)
7735 a += b--;
7736 return x + identity(a + b);
7737 }(0);
7738 return a + b + c + d + e;
7742 test3()
7744 const auto nullary = [](){ return 0; };
7745 const auto unary = [](int x){ return x; };
7746 using nullary_t = decltype(nullary);
7747 using unary_t = decltype(unary);
7748 const auto higher1st = [](nullary_t f){ return f(); };
7749 const auto higher2nd = [unary](nullary_t f1){
7750 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7752 return higher1st(nullary) + higher2nd(nullary)(unary);
7757 namespace test_variadic_templates
7760 template <int...>
7761 struct sum;
7763 template <int N0, int... N1toN>
7764 struct sum<N0, N1toN...>
7766 static constexpr auto value = N0 + sum<N1toN...>::value;
7769 template <>
7770 struct sum<>
7772 static constexpr auto value = 0;
7775 static_assert(sum<>::value == 0, "");
7776 static_assert(sum<1>::value == 1, "");
7777 static_assert(sum<23>::value == 23, "");
7778 static_assert(sum<1, 2>::value == 3, "");
7779 static_assert(sum<5, 5, 11>::value == 21, "");
7780 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7784 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7785 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7786 // because of this.
7787 namespace test_template_alias_sfinae
7790 struct foo {};
7792 template<typename T>
7793 using member = typename T::member_type;
7795 template<typename T>
7796 void func(...) {}
7798 template<typename T>
7799 void func(member<T>*) {}
7801 void test();
7803 void test() { func<foo>(0); }
7807 } // namespace cxx11
7809 #endif // __cplusplus >= 201103L
7813 _ACEOF
7814 if ac_fn_cxx_try_compile "$LINENO"; then :
7815 eval $cachevar=yes
7816 else
7817 eval $cachevar=no
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 CXX="$ac_save_CXX"
7822 eval ac_res=\$$cachevar
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7824 $as_echo "$ac_res" >&6; }
7825 if eval test x\$$cachevar = xyes; then
7826 CXX="$CXX $switch"
7827 if test -n "$CXXCPP" ; then
7828 CXXCPP="$CXXCPP $switch"
7830 ac_success=yes
7831 break
7833 done
7834 if test x$ac_success = xyes; then
7835 break
7837 done
7839 CXX_FOR_BUILD="$CXX"
7840 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7841 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7842 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7843 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7844 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7845 ac_ext=c
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7851 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7852 if test x$ac_success = xno; then
7853 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7856 if test x$ac_success = xno; then
7857 HAVE_CXX11_FOR_BUILD=0
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7859 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7860 else
7861 HAVE_CXX11_FOR_BUILD=1
7863 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7871 # Check whether --enable-pgo-build was given.
7872 if test "${enable_pgo_build+set}" = set; then :
7873 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7874 else
7875 enable_pgo_build=no
7879 # Issue errors and warnings for invalid/strange PGO build combinations.
7880 case "$have_compiler:$host:$target:$enable_pgo_build" in
7881 *:*:*:no) ;;
7883 # Allow the PGO build only if we aren't building a compiler and
7884 # we are in a native configuration.
7885 no:$build:$build:yes | no:$build:$build:lto) ;;
7887 # Disallow the PGO bootstrap if we are building a compiler.
7888 yes:*:*:yes | yes:*:*:lto)
7889 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7892 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7894 esac
7896 if test "$enable_pgo_build" != "no"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7898 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7899 old_CFLAGS="$CFLAGS"
7900 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7901 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 int foo;
7906 _ACEOF
7907 if ac_fn_c_try_compile "$LINENO"; then :
7909 else
7910 PGO_BUILD_GEN_CFLAGS=
7912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913 CFLAGS="$old_CFLAGS"
7914 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7916 $as_echo "yes" >&6; }
7917 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7924 if test "$enable_pgo_build" = "lto"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7926 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7927 old_CFLAGS="$CFLAGS"
7928 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7929 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7932 int foo;
7933 _ACEOF
7934 if ac_fn_c_try_compile "$LINENO"; then :
7936 else
7937 PGO_BUILD_LTO_CFLAGS=
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 CFLAGS="$old_CFLAGS"
7941 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7943 $as_echo "yes" >&6; }
7944 else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7948 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7956 # Used for setting $lt_cv_objdir
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7958 $as_echo_n "checking for objdir... " >&6; }
7959 if ${lt_cv_objdir+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962 rm -f .libs 2>/dev/null
7963 mkdir .libs 2>/dev/null
7964 if test -d .libs; then
7965 lt_cv_objdir=.libs
7966 else
7967 # MS-DOS does not allow filenames that begin with a dot.
7968 lt_cv_objdir=_libs
7970 rmdir .libs 2>/dev/null
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7973 $as_echo "$lt_cv_objdir" >&6; }
7974 objdir=$lt_cv_objdir
7980 cat >>confdefs.h <<_ACEOF
7981 #define LT_OBJDIR "$lt_cv_objdir/"
7982 _ACEOF
7986 # Check for GMP, MPFR and MPC
7987 require_gmp=no
7988 require_mpc=no
7989 if test -d ${srcdir}/gcc ; then
7990 require_gmp=yes
7991 require_mpc=yes
7993 if test -d ${srcdir}/gdb ; then
7994 if test "x$enable_gdb" != xno; then
7995 require_gmp=yes
7999 gmplibs="-lmpfr -lgmp"
8000 if test x"$require_mpc" = "xyes" ; then
8001 gmplibs="-lmpc $gmplibs"
8003 gmpinc=
8004 have_gmp=no
8006 # Specify a location for mpc
8007 # check for this first so it ends up on the link line before mpfr.
8009 # Check whether --with-mpc was given.
8010 if test "${with_mpc+set}" = set; then :
8011 withval=$with_mpc;
8015 # Check whether --with-mpc-include was given.
8016 if test "${with_mpc_include+set}" = set; then :
8017 withval=$with_mpc_include;
8021 # Check whether --with-mpc-lib was given.
8022 if test "${with_mpc_lib+set}" = set; then :
8023 withval=$with_mpc_lib;
8027 if test "x$with_mpc" != x; then
8028 gmplibs="-L$with_mpc/lib $gmplibs"
8029 gmpinc="-I$with_mpc/include $gmpinc"
8031 if test "x$with_mpc_include" != x; then
8032 gmpinc="-I$with_mpc_include $gmpinc"
8034 if test "x$with_mpc_lib" != x; then
8035 gmplibs="-L$with_mpc_lib $gmplibs"
8037 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8038 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8039 gmpinc='-I$$s/mpc/src '"$gmpinc"
8040 # Do not test the mpc version. Assume that it is sufficient, since
8041 # it is in the source tree, and the library has not been built yet
8042 # but it would be included on the link line in the version check below
8043 # hence making the test fail.
8044 have_gmp=yes
8047 # Specify a location for mpfr
8048 # check for this first so it ends up on the link line before gmp.
8050 # Check whether --with-mpfr was given.
8051 if test "${with_mpfr+set}" = set; then :
8052 withval=$with_mpfr;
8056 # Check whether --with-mpfr-include was given.
8057 if test "${with_mpfr_include+set}" = set; then :
8058 withval=$with_mpfr_include;
8062 # Check whether --with-mpfr-lib was given.
8063 if test "${with_mpfr_lib+set}" = set; then :
8064 withval=$with_mpfr_lib;
8068 if test "x$with_mpfr" != x; then
8069 gmplibs="-L$with_mpfr/lib $gmplibs"
8070 gmpinc="-I$with_mpfr/include $gmpinc"
8072 if test "x$with_mpfr_include" != x; then
8073 gmpinc="-I$with_mpfr_include $gmpinc"
8075 if test "x$with_mpfr_lib" != x; then
8076 gmplibs="-L$with_mpfr_lib $gmplibs"
8078 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8079 # MPFR v3.1.0 moved the sources into a src sub-directory.
8080 if ! test -d ${srcdir}/mpfr/src; then
8081 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8083 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8084 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8085 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8086 # Do not test the mpfr version. Assume that it is sufficient, since
8087 # it is in the source tree, and the library has not been built yet
8088 # but it would be included on the link line in the version check below
8089 # hence making the test fail.
8090 have_gmp=yes
8093 # Specify a location for gmp
8095 # Check whether --with-gmp was given.
8096 if test "${with_gmp+set}" = set; then :
8097 withval=$with_gmp;
8101 # Check whether --with-gmp-include was given.
8102 if test "${with_gmp_include+set}" = set; then :
8103 withval=$with_gmp_include;
8107 # Check whether --with-gmp-lib was given.
8108 if test "${with_gmp_lib+set}" = set; then :
8109 withval=$with_gmp_lib;
8114 if test "x$with_gmp" != x; then
8115 gmplibs="-L$with_gmp/lib $gmplibs"
8116 gmpinc="-I$with_gmp/include $gmpinc"
8118 if test "x$with_gmp_include" != x; then
8119 gmpinc="-I$with_gmp_include $gmpinc"
8121 if test "x$with_gmp_lib" != x; then
8122 gmplibs="-L$with_gmp_lib $gmplibs"
8124 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8125 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8126 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8127 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8128 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8129 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8130 # Do not test the gmp version. Assume that it is sufficient, since
8131 # it is in the source tree, and the library has not been built yet
8132 # but it would be included on the link line in the version check below
8133 # hence making the test fail.
8134 have_gmp=yes
8137 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8138 have_gmp=yes
8139 saved_CFLAGS="$CFLAGS"
8140 CFLAGS="$CFLAGS $gmpinc"
8141 # Check for the recommended and required versions of GMP.
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8143 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 #include "gmp.h"
8148 main ()
8151 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8152 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8153 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8154 choke me
8155 #endif
8158 return 0;
8160 _ACEOF
8161 if ac_fn_c_try_compile "$LINENO"; then :
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8164 #include <gmp.h>
8166 main ()
8169 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8170 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8171 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8172 choke me
8173 #endif
8176 return 0;
8178 _ACEOF
8179 if ac_fn_c_try_compile "$LINENO"; then :
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8181 $as_echo "yes" >&6; }
8182 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8184 $as_echo "buggy but acceptable" >&6; }
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }; have_gmp=no
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 # If we have GMP, check the MPFR version.
8194 if test x"$have_gmp" = xyes; then
8195 # Check for the recommended and required versions of MPFR.
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8197 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 #include <gmp.h>
8201 #include <mpfr.h>
8203 main ()
8206 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8207 choke me
8208 #endif
8211 return 0;
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217 #include <gmp.h>
8218 #include <mpfr.h>
8220 main ()
8223 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8224 choke me
8225 #endif
8228 return 0;
8230 _ACEOF
8231 if ac_fn_c_try_compile "$LINENO"; then :
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8233 $as_echo "yes" >&6; }
8234 else
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8236 $as_echo "buggy but acceptable" >&6; }
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239 else
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }; have_gmp=no
8243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 # Check for the MPC header version.
8247 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8248 # Check for the recommended and required versions of MPC.
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8250 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8253 #include <mpc.h>
8255 main ()
8258 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8259 choke me
8260 #endif
8263 return 0;
8265 _ACEOF
8266 if ac_fn_c_try_compile "$LINENO"; then :
8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268 /* end confdefs.h. */
8269 #include <mpc.h>
8271 main ()
8274 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8275 choke me
8276 #endif
8279 return 0;
8281 _ACEOF
8282 if ac_fn_c_try_compile "$LINENO"; then :
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8284 $as_echo "yes" >&6; }
8285 else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8287 $as_echo "buggy but acceptable" >&6; }
8289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290 else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }; have_gmp=no
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 # Now check the MPFR library.
8298 if test x"$have_gmp" = xyes; then
8299 saved_LIBS="$LIBS"
8300 LIBS="$LIBS $gmplibs"
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8302 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305 #include <mpfr.h>
8307 main ()
8310 mpfr_t n;
8311 mpfr_t x;
8312 int t;
8313 mpfr_init (n);
8314 mpfr_init (x);
8315 mpfr_atan2 (n, n, x, MPFR_RNDN);
8316 mpfr_erfc (n, x, MPFR_RNDN);
8317 mpfr_subnormalize (x, t, MPFR_RNDN);
8318 mpfr_clear(n);
8319 mpfr_clear(x);
8322 return 0;
8324 _ACEOF
8325 if ac_fn_c_try_link "$LINENO"; then :
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8327 $as_echo "yes" >&6; }
8328 else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }; have_gmp=no
8332 rm -f core conftest.err conftest.$ac_objext \
8333 conftest$ac_exeext conftest.$ac_ext
8334 LIBS="$saved_LIBS"
8337 # Now check the MPC library
8338 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8339 saved_LIBS="$LIBS"
8340 LIBS="$LIBS $gmplibs"
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8342 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8345 #include <mpc.h>
8347 main ()
8350 mpc_t c;
8351 mpc_init2 (c, 53);
8352 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8353 mpc_cosh (c, c, MPC_RNDNN);
8354 mpc_pow (c, c, c, MPC_RNDNN);
8355 mpc_acosh (c, c, MPC_RNDNN);
8356 mpc_clear (c);
8359 return 0;
8361 _ACEOF
8362 if ac_fn_c_try_link "$LINENO"; then :
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8364 $as_echo "yes" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }; have_gmp=no
8369 rm -f core conftest.err conftest.$ac_objext \
8370 conftest$ac_exeext conftest.$ac_ext
8371 LIBS="$saved_LIBS"
8374 CFLAGS="$saved_CFLAGS"
8376 # The library versions listed in the error message below should match
8377 # the HARD-minimums enforced above.
8378 if test x$have_gmp != xyes; then
8379 if test -d ${srcdir}/gcc ; then
8380 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8381 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8382 their locations. Source code for these libraries can be found at
8383 their respective hosting sites as well as at
8384 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8385 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8386 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8387 make sure that you have installed both the libraries and the header
8388 files. They may be located in separate packages." "$LINENO" 5
8389 else
8390 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8391 Try the --with-gmp and/or --with-mpfr options to specify
8392 their locations. If you obtained GMP and/or MPFR from a vendor
8393 distribution package, make sure that you have installed both the libraries
8394 and the header files. They may be located in separate packages." "$LINENO" 5
8399 # Flags needed for both GMP, MPFR and/or MPC.
8407 # Libraries to use for stage1 or when not bootstrapping.
8409 # Check whether --with-stage1-libs was given.
8410 if test "${with_stage1_libs+set}" = set; then :
8411 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8412 stage1_libs=
8413 else
8414 stage1_libs=$withval
8416 else
8417 stage1_libs=
8422 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8423 # default is yes if gcc is being built; no otherwise. The reason for
8424 # this default is that gdb is sometimes linked against GNU Source
8425 # Highlight, which is a shared library that uses C++ exceptions. In
8426 # this case, -static-libstdc++ will cause crashes.
8428 # Check whether --with-static-standard-libraries was given.
8429 if test "${with_static_standard_libraries+set}" = set; then :
8430 withval=$with_static_standard_libraries;
8431 else
8432 with_static_standard_libraries=auto
8435 if test "$with_static_standard_libraries" = auto; then
8436 with_static_standard_libraries=$have_compiler
8439 # Linker flags to use for stage1 or when not bootstrapping.
8441 # Check whether --with-stage1-ldflags was given.
8442 if test "${with_stage1_ldflags+set}" = set; then :
8443 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8444 stage1_ldflags=
8445 else
8446 stage1_ldflags=$withval
8448 else
8449 stage1_ldflags=
8450 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8451 # if supported. But if the user explicitly specified the libraries to use,
8452 # trust that they are doing what they want.
8453 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8454 -a "$have_static_libs" = yes; then
8455 stage1_ldflags="-static-libstdc++ -static-libgcc"
8461 # Libraries to use for stage2 and later builds.
8463 # Check whether --with-boot-libs was given.
8464 if test "${with_boot_libs+set}" = set; then :
8465 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8466 poststage1_libs=
8467 else
8468 poststage1_libs=$withval
8470 else
8471 poststage1_libs=
8476 # Linker flags to use for stage2 and later builds.
8478 # Check whether --with-boot-ldflags was given.
8479 if test "${with_boot_ldflags+set}" = set; then :
8480 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8481 poststage1_ldflags=
8482 else
8483 poststage1_ldflags=$withval
8485 else
8486 poststage1_ldflags=
8487 # In stages 2 and 3, default to linking libstdc++ and libgcc
8488 # statically. But if the user explicitly specified the libraries to
8489 # use, trust that they are doing what they want.
8490 if test "$poststage1_libs" = ""; then
8491 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8495 case $target in
8496 *-darwin2* | *-darwin1[56789]*)
8497 # For these versions, we default to using embedded rpaths.
8498 if test "x$enable_darwin_at_rpath" != "xno"; then
8499 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
8502 *-darwin*)
8503 # For these versions, we only use embedded rpaths on demand.
8504 if test "x$enable_darwin_at_rpath" = "xyes"; then
8505 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
8508 esac
8511 # GCC GRAPHITE dependency isl.
8512 # Basic setup is inlined here, actual checks are in config/isl.m4
8515 # Check whether --with-isl was given.
8516 if test "${with_isl+set}" = set; then :
8517 withval=$with_isl;
8521 # Treat --without-isl as a request to disable
8522 # GRAPHITE support and skip all following checks.
8523 if test "x$with_isl" != "xno"; then
8524 # Check for isl
8527 # Check whether --with-isl-include was given.
8528 if test "${with_isl_include+set}" = set; then :
8529 withval=$with_isl_include;
8533 # Check whether --with-isl-lib was given.
8534 if test "${with_isl_lib+set}" = set; then :
8535 withval=$with_isl_lib;
8539 # Check whether --enable-isl-version-check was given.
8540 if test "${enable_isl_version_check+set}" = set; then :
8541 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8542 else
8543 ENABLE_ISL_CHECK=yes
8547 # Initialize isllibs and islinc.
8548 case $with_isl in
8550 isllibs=
8551 islinc=
8553 "" | yes)
8556 isllibs="-L$with_isl/lib"
8557 islinc="-I$with_isl/include"
8559 esac
8560 if test "x${with_isl_include}" != x ; then
8561 islinc="-I$with_isl_include"
8563 if test "x${with_isl_lib}" != x; then
8564 isllibs="-L$with_isl_lib"
8566 if test "x${islinc}" = x && test "x${isllibs}" = x \
8567 && test -d ${srcdir}/isl; then
8568 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8569 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8570 ENABLE_ISL_CHECK=no
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8572 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8575 isllibs="${isllibs} -lisl"
8579 if test "${ENABLE_ISL_CHECK}" = yes ; then
8580 _isl_saved_CFLAGS=$CFLAGS
8581 _isl_saved_LDFLAGS=$LDFLAGS
8582 _isl_saved_LIBS=$LIBS
8584 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8585 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8586 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8589 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 #include <isl/schedule.h>
8594 main ()
8596 isl_options_set_schedule_serialize_sccs (NULL, 0);
8598 return 0;
8600 _ACEOF
8601 if ac_fn_c_try_link "$LINENO"; then :
8602 gcc_cv_isl=yes
8603 else
8604 gcc_cv_isl=no
8606 rm -f core conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8609 $as_echo "$gcc_cv_isl" >&6; }
8611 if test "${gcc_cv_isl}" = no ; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8613 $as_echo "required isl version is 0.15 or later" >&6; }
8616 CFLAGS=$_isl_saved_CFLAGS
8617 LDFLAGS=$_isl_saved_LDFLAGS
8618 LIBS=$_isl_saved_LIBS
8626 if test "x${with_isl}" = xno; then
8627 graphite_requested=no
8628 elif test "x${with_isl}" != x \
8629 || test "x${with_isl_include}" != x \
8630 || test "x${with_isl_lib}" != x ; then
8631 graphite_requested=yes
8632 else
8633 graphite_requested=no
8638 if test "${gcc_cv_isl}" = no ; then
8639 isllibs=
8640 islinc=
8643 if test "${graphite_requested}" = yes \
8644 && test "x${isllibs}" = x \
8645 && test "x${islinc}" = x ; then
8647 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8653 # If the isl check failed, disable builds of in-tree variant of isl
8654 if test "x$with_isl" = xno ||
8655 test "x$gcc_cv_isl" = xno; then
8656 noconfigdirs="$noconfigdirs isl"
8657 islinc=
8663 # Check for LTO support.
8664 # Check whether --enable-lto was given.
8665 if test "${enable_lto+set}" = set; then :
8666 enableval=$enable_lto; enable_lto=$enableval
8667 else
8668 enable_lto=yes; default_enable_lto=yes
8675 target_elf=no
8676 case $target in
8677 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8678 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8679 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8680 nvptx-*-none)
8681 target_elf=no
8684 target_elf=yes
8686 esac
8688 if test $target_elf = yes; then :
8689 # ELF platforms build the lto-plugin always.
8690 build_lto_plugin=yes
8692 else
8693 if test x"$default_enable_lto" = x"yes" ; then
8694 case $target in
8695 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8696 # On other non-ELF platforms, LTO has yet to be validated.
8697 *) enable_lto=no ;;
8698 esac
8699 else
8700 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8701 # It would also be nice to check the binutils support, but we don't
8702 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8703 # warn during gcc/ subconfigure; unless you're bootstrapping with
8704 # -flto it won't be needed until after installation anyway.
8705 case $target in
8706 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8707 *) if test x"$enable_lto" = x"yes"; then
8708 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8711 esac
8713 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8714 # Build it unless LTO was explicitly disabled.
8715 case $target in
8716 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8717 *) ;;
8718 esac
8723 # Check whether --enable-linker-plugin-configure-flags was given.
8724 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8725 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8726 else
8727 extra_linker_plugin_configure_flags=
8731 # Check whether --enable-linker-plugin-flags was given.
8732 if test "${enable_linker_plugin_flags+set}" = set; then :
8733 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8734 else
8735 extra_linker_plugin_flags=
8740 # Handle --enable-host-pie
8741 # If host PIE executables are the default (or must be forced on) for some host,
8742 # we must pass that configuration to the gcc directory.
8743 gcc_host_pie=
8744 # Check whether --enable-host-pie was given.
8745 if test "${enable_host_pie+set}" = set; then :
8746 enableval=$enable_host_pie; host_pie=$enableval
8747 case $host in
8748 *-*-darwin2*)
8749 if test x$host_pie != xyes ; then
8750 # for Darwin20+ this is required.
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8752 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8753 host_pie=yes
8754 gcc_host_pie=--enable-host-pie
8755 fi ;;
8756 *) ;;
8757 esac
8758 else
8759 case $host in
8760 *-*-darwin2*)
8761 # Default to PIE (mandatory for aarch64).
8762 host_pie=yes
8763 gcc_host_pie=--enable-host-pie
8765 *) host_pie=no ;;
8766 esac
8773 # Enable --enable-host-shared.
8774 # Checked early to determine whether jit is an 'all' language
8775 # Check whether --enable-host-shared was given.
8776 if test "${enable_host_shared+set}" = set; then :
8777 enableval=$enable_host_shared; host_shared=$enableval
8778 case $host in
8779 x86_64-*-darwin* | aarch64-*-darwin*)
8780 if test x$host_shared != xyes ; then
8781 # PIC is the default, and actually cannot be switched off.
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8783 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8784 host_shared=yes
8785 fi ;;
8786 *-*-darwin*)
8787 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8789 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8790 host_shared=yes
8791 fi ;;
8792 *) ;;
8793 esac
8794 else
8795 case $host in
8796 # 64B x86_64 and Aarch64 Darwin default to PIC.
8797 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8798 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8799 *-*-darwin*) host_shared=$host_pie ;;
8800 *) host_shared=no;;
8801 esac
8807 if test x$host_shared = xyes; then
8808 case $host in
8809 *-*-darwin*)
8810 # Since host shared is the default for 64b Darwin, and also enabled for
8811 # host_pie, ensure that we present the PIE flag when host_pie is active.
8812 if test x$host_pie = xyes; then
8813 PICFLAG=-fPIE
8817 PICFLAG=-fPIC
8819 esac
8820 elif test x$host_pie = xyes; then
8821 PICFLAG=-fPIE
8822 else
8823 PICFLAG=
8828 # If we are building PIC/PIE host executables, and we are building dependent
8829 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8830 # code.
8831 host_libs_picflag=
8832 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8833 host_libs_picflag='--with-pic'
8837 # By default, C and C++ are the only stage 1 languages.
8838 stage1_languages=,c,
8840 # Target libraries that we bootstrap.
8841 bootstrap_target_libs=,target-libgcc,
8843 # Figure out what language subdirectories are present.
8844 # Look if the user specified --enable-languages="..."; if not, use
8845 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8846 # go away some day.
8847 # NB: embedded tabs in this IF block -- do not untabify
8848 if test -d ${srcdir}/gcc; then
8849 if test x"${enable_languages+set}" != xset; then
8850 if test x"${LANGUAGES+set}" = xset; then
8851 enable_languages="${LANGUAGES}"
8852 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8853 else
8854 enable_languages=default
8856 else
8857 if test x"${enable_languages}" = x ||
8858 test x"${enable_languages}" = xyes;
8859 then
8860 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8861 exit 1
8864 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8866 # 'f95' is the old name for the 'fortran' language. We issue a warning
8867 # and make the substitution.
8868 case ,${enable_languages}, in
8869 *,f95,*)
8870 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8871 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8873 esac
8875 # If bootstrapping, C++ must be enabled.
8876 case ",$enable_languages,:$enable_bootstrap" in
8877 *,c++,*:*) ;;
8878 *:yes)
8879 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8880 enable_languages="${enable_languages},c++"
8881 else
8882 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8885 esac
8887 # First scan to see if an enabled language requires some other language.
8888 # We assume that a given config-lang.in will list all the language
8889 # front ends it requires, even if some are required indirectly.
8890 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8891 case ${lang_frag} in
8892 ..) ;;
8893 # The odd quoting in the next line works around
8894 # an apparent bug in bash 1.12 on linux.
8895 ${srcdir}/gcc/[*]/config-lang.in) ;;
8897 # From the config-lang.in, get $language, $lang_requires, and
8898 # $lang_requires_boot_languages.
8899 language=
8900 lang_requires=
8901 lang_requires_boot_languages=
8902 # set srcdir during sourcing lang_frag to the gcc dir.
8903 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8904 # polutes this shell
8905 saved_srcdir=${srcdir}
8906 srcdir=${srcdir}/gcc . ${lang_frag}
8907 srcdir=${saved_srcdir}
8908 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8909 case ,${enable_languages}, in
8910 *,$other,*) ;;
8911 *,default,*) ;;
8912 *,all,*) ;;
8913 *,$language,*)
8914 echo " \`$other' language required by \`$language'; enabling" 1>&2
8915 enable_languages="${enable_languages},${other}"
8917 esac
8918 done
8919 for other in ${lang_requires_boot_languages} ; do
8920 if test "$other" != "c"; then
8921 case ,${enable_stage1_languages}, in
8922 *,$other,*) ;;
8923 *,default,*) ;;
8924 *,all,*) ;;
8926 case ,${enable_languages}, in
8927 *,$language,*)
8928 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8929 enable_stage1_languages="$enable_stage1_languages,${other}"
8931 esac
8933 esac
8935 done
8937 esac
8938 done
8940 new_enable_languages=,c,
8942 # If LTO is enabled, add the LTO front end.
8943 if test "$enable_lto" = "yes" ; then
8944 case ,${enable_languages}, in
8945 *,lto,*) ;;
8946 *) enable_languages="${enable_languages},lto" ;;
8947 esac
8948 if test "${build_lto_plugin}" = "yes" ; then
8949 configdirs="$configdirs lto-plugin"
8953 # If we're building an offloading compiler, add the LTO front end.
8954 if test x"$enable_as_accelerator_for" != x ; then
8955 case ,${enable_languages}, in
8956 *,lto,*) ;;
8957 *) enable_languages="${enable_languages},lto" ;;
8958 esac
8961 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8962 potential_languages=,c,
8964 enabled_target_libs=
8965 disabled_target_libs=
8967 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8968 case ${lang_frag} in
8969 ..) ;;
8970 # The odd quoting in the next line works around
8971 # an apparent bug in bash 1.12 on linux.
8972 ${srcdir}/gcc/[*]/config-lang.in) ;;
8974 # From the config-lang.in, get $language, $target_libs,
8975 # $lang_dirs, $boot_language, and $build_by_default
8976 language=
8977 target_libs=
8978 lang_dirs=
8979 subdir_requires=
8980 boot_language=no
8981 build_by_default=yes
8982 # set srcdir during sourcing. See above about save & restore
8983 saved_srcdir=${srcdir}
8984 srcdir=${srcdir}/gcc . ${lang_frag}
8985 srcdir=${saved_srcdir}
8986 if test x${language} = x; then
8987 echo "${lang_frag} doesn't set \$language." 1>&2
8988 exit 1
8991 if test "$language" = "c++"; then
8992 boot_language=yes
8995 add_this_lang=no
8996 # C is always enabled, so no need to add it again
8997 if test "$language" != "c"; then
8998 case ,${enable_languages}, in
8999 *,${language},*)
9000 # Language was explicitly selected; include it
9001 add_this_lang=yes
9003 *,all,*)
9004 # All languages are enabled
9005 add_this_lang=all
9007 *,default,*)
9008 # 'default' was selected, select it if it is a default language
9009 add_this_lang=${build_by_default}
9011 esac
9014 # Disable languages that need other directories if these aren't available.
9015 for i in $subdir_requires; do
9016 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9017 case ${add_this_lang} in
9018 yes)
9019 # Specifically requested language; tell them.
9020 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9022 all)
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9024 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9025 add_this_lang=unsupported
9028 # Silently disable.
9029 add_this_lang=unsupported
9031 esac
9032 done
9034 # Disable Ada if no preexisting GNAT is available.
9035 case ${add_this_lang}:${language}:${have_gnat} in
9036 yes:ada:no)
9037 # Specifically requested language; tell them.
9038 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9040 all:ada:no)
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9042 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9043 add_this_lang=unsupported
9045 *:ada:no)
9046 # Silently disable.
9047 add_this_lang=unsupported
9049 esac
9051 # Disable D if no preexisting GDC is available.
9052 case ${add_this_lang}:${language}:${have_gdc} in
9053 yes:d:no)
9054 # Specifically requested language; tell them.
9055 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
9057 all:d:no)
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9059 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9060 add_this_lang=unsupported
9062 *:d:no)
9063 # Silently disable.
9064 add_this_lang=unsupported
9066 esac
9068 # Disable jit if -enable-host-shared not specified
9069 # but not if building for Mingw. All code in Windows
9070 # is position independent code (PIC).
9071 case $target in
9072 *mingw*) ;;
9074 case ${add_this_lang}:${language}:${host_shared} in
9075 yes:jit:no)
9076 # PR jit/64780: explicitly specify --enable-host-shared
9077 as_fn_error $? "
9078 Enabling language \"jit\" requires --enable-host-shared.
9080 --enable-host-shared typically slows the rest of the compiler down by
9081 a few %, so you must explicitly enable it.
9083 If you want to build both the jit and the regular compiler, it is often
9084 best to do this via two separate configure/builds, in separate
9085 directories, to avoid imposing the performance cost of
9086 --enable-host-shared on the regular compiler." "$LINENO" 5
9088 all:jit:no)
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9090 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9091 add_this_lang=unsupported
9093 *:jit:no)
9094 # Silently disable.
9095 add_this_lang=unsupported
9097 esac
9099 esac
9101 # Disable a language that is unsupported by the target.
9102 case "${add_this_lang}: $unsupported_languages " in
9103 no:*) ;;
9104 unsupported:*) ;;
9105 *:*" $language "*)
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9107 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9108 add_this_lang=unsupported
9110 esac
9112 case $add_this_lang in
9113 unsupported)
9114 # Remove language-dependent dirs.
9115 disabled_target_libs="$disabled_target_libs $target_libs"
9116 noconfigdirs="$noconfigdirs $lang_dirs"
9119 # Remove language-dependent dirs; still show language as supported.
9120 disabled_target_libs="$disabled_target_libs $target_libs"
9121 noconfigdirs="$noconfigdirs $lang_dirs"
9122 potential_languages="${potential_languages}${language},"
9124 all|yes)
9125 new_enable_languages="${new_enable_languages}${language},"
9126 potential_languages="${potential_languages}${language},"
9127 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9128 enabled_target_libs="$enabled_target_libs $target_libs"
9129 case "${boot_language}:,$enable_stage1_languages," in
9130 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9131 # Add to (comma-separated) list of stage 1 languages.
9132 case ",$stage1_languages," in
9133 *,$language,* | ,yes, | ,all,) ;;
9134 *) stage1_languages="${stage1_languages}${language}," ;;
9135 esac
9136 # We need to bootstrap any supporting libraries.
9137 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9139 esac
9141 esac
9143 esac
9144 done
9146 # Add target libraries which are only needed for disabled languages
9147 # to noconfigdirs.
9148 if test -n "$disabled_target_libs"; then
9149 for dir in $disabled_target_libs; do
9150 case " $enabled_target_libs " in
9151 *" ${dir} "*) ;;
9152 *) noconfigdirs="$noconfigdirs $dir" ;;
9153 esac
9154 done
9157 # Check whether --enable-stage1-languages was given.
9158 if test "${enable_stage1_languages+set}" = set; then :
9159 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9160 ,no,|,,)
9161 # Set it to something that will have no effect in the loop below
9162 enable_stage1_languages=c ;;
9163 ,yes,)
9164 enable_stage1_languages=`echo $new_enable_languages | \
9165 sed -e "s/^,//" -e "s/,$//" ` ;;
9166 *,all,*)
9167 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9168 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9169 esac
9171 # Add "good" languages from enable_stage1_languages to stage1_languages,
9172 # while "bad" languages go in missing_languages. Leave no duplicates.
9173 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9174 case $potential_languages in
9175 *,$i,*)
9176 case $stage1_languages in
9177 *,$i,*) ;;
9178 *) stage1_languages="$stage1_languages$i," ;;
9179 esac ;;
9181 case $missing_languages in
9182 *,$i,*) ;;
9183 *) missing_languages="$missing_languages$i," ;;
9184 esac ;;
9185 esac
9186 done
9190 # Remove leading/trailing commas that were added for simplicity
9191 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9192 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9193 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9194 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9196 if test "x$missing_languages" != x; then
9197 as_fn_error $? "
9198 The following requested languages could not be built: ${missing_languages}
9199 Supported languages are: ${potential_languages}" "$LINENO" 5
9201 if test "x$new_enable_languages" != "x$enable_languages"; then
9202 echo The following languages will be built: ${new_enable_languages}
9203 enable_languages="$new_enable_languages"
9207 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9210 # Handle --disable-<component> generically.
9211 for dir in $configdirs $build_configdirs $target_configdirs ; do
9212 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9213 varname=`echo $dirname | sed -e s/+/_/g`
9214 if eval test x\${enable_${varname}} "=" xno ; then
9215 noconfigdirs="$noconfigdirs $dir"
9217 done
9219 # Check for Boehm's garbage collector
9220 # Check whether --enable-objc-gc was given.
9221 if test "${enable_objc_gc+set}" = set; then :
9222 enableval=$enable_objc_gc;
9226 # Check whether --with-target-bdw-gc was given.
9227 if test "${with_target_bdw_gc+set}" = set; then :
9228 withval=$with_target_bdw_gc;
9232 # Check whether --with-target-bdw-gc-include was given.
9233 if test "${with_target_bdw_gc_include+set}" = set; then :
9234 withval=$with_target_bdw_gc_include;
9238 # Check whether --with-target-bdw-gc-lib was given.
9239 if test "${with_target_bdw_gc_lib+set}" = set; then :
9240 withval=$with_target_bdw_gc_lib;
9244 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9246 $as_echo_n "checking for bdw garbage collector... " >&6; }
9247 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9249 $as_echo "using bdw-gc in default locations" >&6; }
9250 else
9251 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9252 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9253 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9254 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9255 else
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9257 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9260 esac
9262 # Disable libitm, libsanitizer, libvtv if we're not building C++
9263 case ,${enable_languages}, in
9264 *,c++,*)
9265 # Disable libitm, libsanitizer if we're not building libstdc++
9266 case "${noconfigdirs}" in
9267 *target-libstdc++-v3*)
9268 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9270 *) ;;
9271 esac
9274 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9276 esac
9278 # If gcc/ is not in the source tree then we'll not be building a
9279 # target compiler, assume in that case we don't want to build any
9280 # target libraries or tools.
9282 # This was added primarily for the benefit for binutils-gdb who reuse
9283 # this configure script, but don't always have target tools available.
9284 if test ! -d ${srcdir}/gcc; then
9285 skipdirs="${skipdirs} ${target_configdirs}"
9288 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9289 # $build_configdirs and $target_configdirs.
9290 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9292 notsupp=""
9293 for dir in . $skipdirs $noconfigdirs ; do
9294 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9295 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9296 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9297 if test -r $srcdir/$dirname/configure ; then
9298 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9299 true
9300 else
9301 notsupp="$notsupp $dir"
9305 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9306 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9307 if test -r $srcdir/$dirname/configure ; then
9308 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9309 true
9310 else
9311 notsupp="$notsupp $dir"
9315 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9316 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9317 if test -r $srcdir/$dirname/configure ; then
9318 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9319 true
9320 else
9321 notsupp="$notsupp $dir"
9325 done
9327 # Quietly strip out all directories which aren't configurable in this tree.
9328 # This relies on all configurable subdirectories being autoconfiscated, which
9329 # is now the case.
9330 build_configdirs_all="$build_configdirs"
9331 build_configdirs=
9332 for i in ${build_configdirs_all} ; do
9333 j=`echo $i | sed -e s/build-//g`
9334 if test -f ${srcdir}/$j/configure ; then
9335 build_configdirs="${build_configdirs} $i"
9337 done
9339 configdirs_all="$configdirs"
9340 configdirs=
9341 for i in ${configdirs_all} ; do
9342 if test -f ${srcdir}/$i/configure ; then
9343 configdirs="${configdirs} $i"
9345 done
9347 target_configdirs_all="$target_configdirs"
9348 target_configdirs=
9349 for i in ${target_configdirs_all} ; do
9350 j=`echo $i | sed -e s/target-//g`
9351 if test -f ${srcdir}/$j/configure ; then
9352 target_configdirs="${target_configdirs} $i"
9354 done
9356 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9357 # so we have to add it after the preceding checks.
9358 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9359 then
9360 case " $configdirs " in
9361 *" libiberty "*)
9362 # If we can build libiberty, we can also build libiberty-linker-plugin.
9363 configdirs="$configdirs libiberty-linker-plugin"
9364 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9365 --with-libiberty=../libiberty-linker-plugin";;
9367 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9368 esac
9371 # Sometimes we have special requirements for the host libiberty.
9372 extra_host_libiberty_configure_flags=
9373 case " $configdirs " in
9374 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9375 # When these are to be built as shared libraries, the same applies to
9376 # libiberty.
9377 extra_host_libiberty_configure_flags=--enable-shared
9379 esac
9382 # Sometimes we have special requirements for the host zlib.
9383 extra_host_zlib_configure_flags=
9384 case " $configdirs " in
9385 *" bfd "*)
9386 # When bfd is to be built as a shared library, the same applies to
9387 # zlib.
9388 if test "$enable_shared" = "yes"; then
9389 extra_host_zlib_configure_flags=--enable-host-shared
9392 esac
9395 # Produce a warning message for the subdirs we can't configure.
9396 # This isn't especially interesting in the Cygnus tree, but in the individual
9397 # FSF releases, it's important to let people know when their machine isn't
9398 # supported by the one or two programs in a package.
9400 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9401 # If $appdirs is non-empty, at least one of those directories must still
9402 # be configured, or we error out. (E.g., if the gas release supports a
9403 # specified target in some subdirs but not the gas subdir, we shouldn't
9404 # pretend that all is well.)
9405 if test -n "$appdirs" ; then
9406 for dir in $appdirs ; do
9407 if test -r $dir/Makefile.in ; then
9408 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9409 appdirs=""
9410 break
9412 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9413 appdirs=""
9414 break
9417 done
9418 if test -n "$appdirs" ; then
9419 echo "*** This configuration is not supported by this package." 1>&2
9420 exit 1
9423 # Okay, some application will build, or we don't care to check. Still
9424 # notify of subdirs not getting built.
9425 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9426 echo " ${notsupp}" 1>&2
9427 echo " (Any other directories should still work fine.)" 1>&2
9430 case "$host" in
9431 *msdosdjgpp*)
9432 enable_gdbtk=no ;;
9433 esac
9435 # To find our prefix, in gcc_cv_tool_prefix.
9437 # The user is always right.
9438 if test "${PATH_SEPARATOR+set}" != set; then
9439 echo "#! /bin/sh" >conf$$.sh
9440 echo "exit 0" >>conf$$.sh
9441 chmod +x conf$$.sh
9442 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9443 PATH_SEPARATOR=';'
9444 else
9445 PATH_SEPARATOR=:
9447 rm -f conf$$.sh
9451 get_gcc_base_ver="cat"
9453 # Check whether --with-gcc-major-version-only was given.
9454 if test "${with_gcc_major_version_only+set}" = set; then :
9455 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9456 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9466 if test "x$exec_prefix" = xNONE; then
9467 if test "x$prefix" = xNONE; then
9468 gcc_cv_tool_prefix=$ac_default_prefix
9469 else
9470 gcc_cv_tool_prefix=$prefix
9472 else
9473 gcc_cv_tool_prefix=$exec_prefix
9476 # If there is no compiler in the tree, use the PATH only. In any
9477 # case, if there is no compiler in the tree nobody should use
9478 # AS_FOR_TARGET and LD_FOR_TARGET.
9479 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9480 if test x$with_gcc_major_version_only = xyes ; then
9481 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9482 else
9483 gcc_version=`cat $srcdir/gcc/BASE-VER`
9485 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9486 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9487 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9488 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9489 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9490 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9491 else
9492 gcc_cv_tool_dirs=
9495 if test x$build = x$target && test -n "$md_exec_prefix"; then
9496 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9501 copy_dirs=
9504 # Check whether --with-build-sysroot was given.
9505 if test "${with_build_sysroot+set}" = set; then :
9506 withval=$with_build_sysroot; if test x"$withval" != x ; then
9507 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9509 else
9510 SYSROOT_CFLAGS_FOR_TARGET=
9516 # Check whether --with-debug-prefix-map was given.
9517 if test "${with_debug_prefix_map+set}" = set; then :
9518 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9519 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9520 for debug_map in $withval; do
9521 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9522 done
9524 else
9525 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9530 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9531 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9532 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9533 # We want to ensure that TARGET libraries (which we know are built with
9534 # gcc) are built with "-O2 -g", so include those options when setting
9535 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9536 if test "x$CFLAGS_FOR_TARGET" = x; then
9537 if test "x${is_cross_compiler}" = xyes; then
9538 CFLAGS_FOR_TARGET="-g -O2"
9539 else
9540 CFLAGS_FOR_TARGET=$CFLAGS
9541 case " $CFLAGS " in
9542 *" -O2 "*) ;;
9543 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9544 esac
9545 case " $CFLAGS " in
9546 *" -g "* | *" -g3 "*) ;;
9547 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9548 esac
9553 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9554 if test "x${is_cross_compiler}" = xyes; then
9555 CXXFLAGS_FOR_TARGET="-g -O2"
9556 else
9557 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9558 case " $CXXFLAGS " in
9559 *" -O2 "*) ;;
9560 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9561 esac
9562 case " $CXXFLAGS " in
9563 *" -g "* | *" -g3 "*) ;;
9564 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9565 esac
9572 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9573 # the named directory are copied to $(tooldir)/sys-include.
9574 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9575 if test x${is_cross_compiler} = xno ; then
9576 echo 1>&2 '***' --with-headers is only supported when cross compiling
9577 exit 1
9579 if test x"${with_headers}" != xyes ; then
9580 x=${gcc_cv_tool_prefix}
9581 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9585 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9586 # the name directories are copied to $(tooldir)/lib. Multiple directories
9587 # are permitted.
9588 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9589 if test x${is_cross_compiler} = xno ; then
9590 echo 1>&2 '***' --with-libs is only supported when cross compiling
9591 exit 1
9593 if test x"${with_libs}" != xyes ; then
9594 # Copy the libraries in reverse order, so that files in the first named
9595 # library override files in subsequent libraries.
9596 x=${gcc_cv_tool_prefix}
9597 for l in ${with_libs}; do
9598 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9599 done
9603 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9605 # This is done by determining whether or not the appropriate directory
9606 # is available, and by checking whether or not specific configurations
9607 # have requested that this magic not happen.
9609 # The command line options always override the explicit settings in
9610 # configure.ac, and the settings in configure.ac override this magic.
9612 # If the default for a toolchain is to use GNU as and ld, and you don't
9613 # want to do that, then you should use the --without-gnu-as and
9614 # --without-gnu-ld options for the configure script. Similarly, if
9615 # the default is to use the included zlib and you don't want to do that,
9616 # you should use the --with-system-zlib option for the configure script.
9618 if test x${use_gnu_as} = x &&
9619 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9620 with_gnu_as=yes
9621 extra_host_args="$extra_host_args --with-gnu-as"
9624 if test x${use_gnu_ld} = x &&
9625 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9626 with_gnu_ld=yes
9627 extra_host_args="$extra_host_args --with-gnu-ld"
9630 if test x${use_included_zlib} = x &&
9631 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9633 else
9634 with_system_zlib=yes
9635 extra_host_args="$extra_host_args --with-system-zlib"
9638 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9639 # can detect this case.
9641 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9642 with_newlib=yes
9643 extra_host_args="$extra_host_args --with-newlib"
9646 # Handle ${copy_dirs}
9647 set fnord ${copy_dirs}
9648 shift
9649 while test $# != 0 ; do
9650 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9652 else
9653 echo Copying $1 to $2
9655 # Use the install script to create the directory and all required
9656 # parent directories.
9657 if test -d $2 ; then
9659 else
9660 echo >config.temp
9661 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9664 # Copy the directory, assuming we have tar.
9665 # FIXME: Should we use B in the second tar? Not all systems support it.
9666 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9668 # It is the responsibility of the user to correctly adjust all
9669 # symlinks. If somebody can figure out how to handle them correctly
9670 # here, feel free to add the code.
9672 echo $1 > $2/COPIED
9674 shift; shift
9675 done
9677 # Determine a target-dependent exec_prefix that the installed
9678 # gcc will search in. Keep this list sorted by triplet, with
9679 # the *-*-osname triplets last.
9680 md_exec_prefix=
9681 case "${target}" in
9682 i[34567]86-pc-msdosdjgpp*)
9683 md_exec_prefix=/dev/env/DJDIR/bin
9685 *-*-hpux* | \
9686 *-*-nto-qnx* | \
9687 *-*-solaris2*)
9688 md_exec_prefix=/usr/ccs/bin
9690 esac
9692 extra_arflags_for_target=
9693 extra_nmflags_for_target=
9694 extra_ranlibflags_for_target=
9695 target_makefile_frag=/dev/null
9696 case "${target}" in
9697 spu-*-*)
9698 target_makefile_frag="config/mt-spu"
9700 loongarch*-*linux* | loongarch*-*gnu*)
9701 target_makefile_frag="config/mt-loongarch-gnu"
9703 loongarch*-*elf*)
9704 target_makefile_frag="config/mt-loongarch-elf"
9706 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9707 target_makefile_frag="config/mt-sde"
9709 mipsisa*-*-elfoabi*)
9710 target_makefile_frag="config/mt-mips-elfoabi"
9712 mips*-*-*linux* | mips*-*-gnu*)
9713 target_makefile_frag="config/mt-mips-gnu"
9715 nios2-*-elf*)
9716 target_makefile_frag="config/mt-nios2-elf"
9718 *-*-linux-android*)
9719 target_makefile_frag="config/mt-android"
9721 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9722 target_makefile_frag="config/mt-gnu"
9724 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9725 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9726 # commands to handle both 32-bit and 64-bit objects. These flags are
9727 # harmless if we're using GNU nm or ar.
9728 extra_arflags_for_target=" -X32_64"
9729 extra_nmflags_for_target=" -B -X32_64"
9731 esac
9733 alphaieee_frag=/dev/null
9734 case $target in
9735 alpha*-*-*)
9736 # This just makes sure to use the -mieee option to build target libs.
9737 # This should probably be set individually by each library.
9738 alphaieee_frag="config/mt-alphaieee"
9740 esac
9742 # If --enable-target-optspace always use -Os instead of -O2 to build
9743 # the target libraries, similarly if it is not specified, use -Os
9744 # on selected platforms.
9745 ospace_frag=/dev/null
9746 case "${enable_target_optspace}:${target}" in
9747 yes:*)
9748 ospace_frag="config/mt-ospace"
9750 :d30v-*)
9751 ospace_frag="config/mt-d30v"
9753 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9754 ospace_frag="config/mt-ospace"
9756 no:* | :*)
9759 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9761 esac
9763 # Some systems (e.g., one of the i386-aix systems the gas testers are
9764 # using) don't handle "\$" correctly, so don't use it here.
9765 tooldir='${exec_prefix}'/${target_noncanonical}
9766 build_tooldir=${tooldir}
9768 # Create a .gdbinit file which runs the one in srcdir
9769 # and tells GDB to look there for source files.
9771 if test -r ${srcdir}/.gdbinit ; then
9772 case ${srcdir} in
9773 .) ;;
9774 *) cat > ./.gdbinit <<EOF
9775 # ${NO_EDIT}
9776 dir ${srcdir}
9777 dir .
9778 source ${srcdir}/.gdbinit
9781 esac
9784 # Make sure that the compiler is able to generate an executable. If it
9785 # can't, we are probably in trouble. We don't care whether we can run the
9786 # executable--we might be using a cross compiler--we only care whether it
9787 # can be created. At this point the main configure script has set CC.
9788 we_are_ok=no
9789 echo "int main () { return 0; }" > conftest.c
9790 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9791 if test $? = 0 ; then
9792 if test -s conftest || test -s conftest.exe ; then
9793 we_are_ok=yes
9796 case $we_are_ok in
9798 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9799 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9800 rm -f conftest*
9801 exit 1
9803 esac
9804 rm -f conftest*
9806 # Decide which environment variable is used to find dynamic libraries.
9807 case "${host}" in
9808 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9809 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9810 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9811 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9812 esac
9814 # On systems where the dynamic library environment variable is PATH,
9815 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9816 # built executables to PATH.
9817 if test "$RPATH_ENVVAR" = PATH; then
9818 GCC_SHLIB_SUBDIR=/shlib
9819 else
9820 GCC_SHLIB_SUBDIR=
9823 # Adjust the toplevel makefile according to whether bootstrap was selected.
9824 case $enable_bootstrap in
9825 yes)
9826 bootstrap_suffix=bootstrap
9827 BUILD_CONFIG=bootstrap-debug
9830 bootstrap_suffix=no-bootstrap
9831 BUILD_CONFIG=
9833 esac
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9836 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9839 # Check whether --with-build-config was given.
9840 if test "${with_build_config+set}" = set; then :
9841 withval=$with_build_config; case $with_build_config in
9842 yes) with_build_config= ;;
9843 no) with_build_config= BUILD_CONFIG= ;;
9844 esac
9848 if test "x${with_build_config}" != x; then
9849 BUILD_CONFIG=$with_build_config
9850 else
9851 case $BUILD_CONFIG in
9852 bootstrap-debug)
9853 if echo "int f (void) { return 0; }" > conftest.c &&
9854 ${CC} -c conftest.c &&
9855 mv conftest.o conftest.o.g0 &&
9856 ${CC} -c -g conftest.c &&
9857 mv conftest.o conftest.o.g &&
9858 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9860 else
9861 BUILD_CONFIG=
9863 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9865 esac
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9868 $as_echo "$BUILD_CONFIG" >&6; }
9871 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9873 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9874 # Check whether --enable-vtable-verify was given.
9875 if test "${enable_vtable_verify+set}" = set; then :
9876 enableval=$enable_vtable_verify; case "$enableval" in
9877 yes) enable_vtable_verify=yes ;;
9878 no) enable_vtable_verify=no ;;
9879 *) enable_vtable_verify=no;;
9880 esac
9881 else
9882 enable_vtable_verify=no
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9886 $as_echo "$enable_vtable_verify" >&6; }
9888 # Record target_configdirs and the configure arguments for target and
9889 # build configuration in Makefile.
9890 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9891 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9892 bootstrap_fixincludes=no
9894 # If we are building libgomp, bootstrap it.
9895 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9896 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9899 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9900 # or bootstrap-ubsan, bootstrap it.
9901 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9902 case "$BUILD_CONFIG" in
9903 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9904 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9905 bootstrap_fixincludes=yes
9907 esac
9910 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9911 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9912 test "$enable_vtable_verify" != no; then
9913 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9916 # If we are building libatomic and the list of enabled languages includes the
9917 # D frontend, bootstrap it.
9918 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9919 case ,${enable_languages}, in
9920 *,d,*)
9921 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9923 esac
9926 # Determine whether gdb needs tk/tcl or not.
9927 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9928 # and in that case we want gdb to be built without tk. Ugh!
9929 # In fact I believe gdb is the *only* package directly dependent on tk,
9930 # so we should be able to put the 'maybe's in unconditionally and
9931 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9932 # 100% sure that that's safe though.
9934 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9935 case "$enable_gdbtk" in
9937 GDB_TK="" ;;
9938 yes)
9939 GDB_TK="${gdb_tk}" ;;
9941 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9942 # distro. Eventually someone will fix this and move Insight, nee
9943 # gdbtk to a separate directory.
9944 if test -d ${srcdir}/gdb/gdbtk ; then
9945 GDB_TK="${gdb_tk}"
9946 else
9947 GDB_TK=""
9950 esac
9951 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9952 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9954 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9955 # else does, only include them if one of these is built. The Makefile
9956 # provides the ordering, so it's enough here to add to the list.
9957 case " ${configdirs} " in
9958 *\ gdb\ *)
9959 configdirs="${configdirs} gnulib gdbsupport"
9961 *\ gdbserver\ *)
9962 configdirs="${configdirs} gnulib gdbsupport"
9964 *\ sim\ *)
9965 configdirs="${configdirs} gnulib"
9967 esac
9969 # Strip out unwanted targets.
9971 # While at that, we remove Makefiles if we were started for recursive
9972 # configuration, so that the top-level Makefile reconfigures them,
9973 # like we used to do when configure itself was recursive.
9975 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9976 # but now we're fixing up the Makefile ourselves with the additional
9977 # commands passed to AC_CONFIG_FILES. Use separate variables
9978 # extrasub-{build,host,target} not because there is any reason to split
9979 # the substitutions up that way, but only to remain below the limit of
9980 # 99 commands in a script, for HP-UX sed.
9982 # Do not nest @if/@endif or @unless/@endunless pairs, because
9983 # configure will not warn you at all.
9985 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9986 yes:yes:*\ gold\ *:*,c++,*) ;;
9987 yes:yes:*\ gold\ *:*)
9988 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9990 esac
9992 extrasub_build=
9993 for module in ${build_configdirs} ; do
9994 if test -z "${no_recursion}" \
9995 && test -f ${build_subdir}/${module}/Makefile; then
9996 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9997 rm -f ${build_subdir}/${module}/Makefile
9999 extrasub_build="$extrasub_build
10000 /^@if build-$module\$/d
10001 /^@endif build-$module\$/d
10002 /^@unless build-$module\$/,/^@endunless build-$module\$/d
10003 /^@if build-$module-$bootstrap_suffix\$/d
10004 /^@endif build-$module-$bootstrap_suffix\$/d
10005 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
10006 done
10007 extrasub_host=
10008 for module in ${configdirs} ; do
10009 if test -z "${no_recursion}"; then
10010 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
10011 if test -f ${file}; then
10012 echo 1>&2 "*** removing ${file} to force reconfigure"
10013 rm -f ${file}
10015 done
10017 case ${module},${bootstrap_fixincludes} in
10018 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
10019 *) host_bootstrap_suffix=$bootstrap_suffix ;;
10020 esac
10021 extrasub_host="$extrasub_host
10022 /^@if $module\$/d
10023 /^@endif $module\$/d
10024 /^@unless $module\$/,/^@endunless $module\$/d
10025 /^@if $module-$host_bootstrap_suffix\$/d
10026 /^@endif $module-$host_bootstrap_suffix\$/d
10027 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
10028 done
10029 extrasub_target=
10030 for module in ${target_configdirs} ; do
10031 if test -z "${no_recursion}" \
10032 && test -f ${target_subdir}/${module}/Makefile; then
10033 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10034 rm -f ${target_subdir}/${module}/Makefile
10037 # We only bootstrap target libraries listed in bootstrap_target_libs.
10038 case $bootstrap_target_libs in
10039 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
10040 *) target_bootstrap_suffix=no-bootstrap ;;
10041 esac
10043 extrasub_target="$extrasub_target
10044 /^@if target-$module\$/d
10045 /^@endif target-$module\$/d
10046 /^@unless target-$module\$/,/^@endunless target-$module\$/d
10047 /^@if target-$module-$target_bootstrap_suffix\$/d
10048 /^@endif target-$module-$target_bootstrap_suffix\$/d
10049 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
10050 done
10052 # Do the final fixup along with target modules.
10053 extrasub_target="$extrasub_target
10054 /^@if /,/^@endif /d
10055 /^@unless /d
10056 /^@endunless /d"
10058 if test "$enable_pgo_build" != "no"; then
10059 extrasub_build="$extrasub_build
10060 /^@if pgo-build\$/d
10061 /^@endif pgo-build\$/d"
10064 # Create the serialization dependencies. This uses a temporary file.
10066 # Check whether --enable-serial-configure was given.
10067 if test "${enable_serial_configure+set}" = set; then :
10068 enableval=$enable_serial_configure;
10072 case ${enable_serial_configure} in
10073 yes)
10074 enable_serial_build_configure=yes
10075 enable_serial_host_configure=yes
10076 enable_serial_target_configure=yes
10078 esac
10080 # These force 'configure's to be done one at a time, to avoid problems
10081 # with contention over a shared config.cache.
10082 rm -f serdep.tmp
10083 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
10084 echo '# serdep.tmp' > serdep.tmp
10086 olditem=
10087 test "x${enable_serial_build_configure}" = xyes &&
10088 for item in ${build_configdirs} ; do
10089 case ${olditem} in
10090 "") ;;
10091 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
10092 esac
10093 olditem=${item}
10094 done
10095 olditem=
10096 test "x${enable_serial_host_configure}" = xyes &&
10097 for item in ${configdirs} ; do
10098 case ${olditem} in
10099 "") ;;
10100 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
10101 esac
10102 olditem=${item}
10103 done
10104 olditem=
10105 test "x${enable_serial_target_configure}" = xyes &&
10106 for item in ${target_configdirs} ; do
10107 case ${olditem} in
10108 "") ;;
10109 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
10110 esac
10111 olditem=${item}
10112 done
10113 serialization_dependencies=serdep.tmp
10116 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10117 # target, nonopt, and variable assignments. These are the ones we
10118 # might not want to pass down to subconfigures. The exception being
10119 # --cache-file=/dev/null, which is used to turn off the use of cache
10120 # files altogether, and which should be passed on to subconfigures.
10121 # Also strip program-prefix, program-suffix, and program-transform-name,
10122 # so that we can pass down a consistent program-transform-name.
10123 baseargs=
10124 tbaseargs=
10125 keep_next=no
10126 skip_next=no
10127 eval "set -- $ac_configure_args"
10128 for ac_arg
10130 if test X"$skip_next" = X"yes"; then
10131 skip_next=no
10132 continue
10134 if test X"$keep_next" = X"yes"; then
10135 case $ac_arg in
10136 *\'*)
10137 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10138 esac
10139 baseargs="$baseargs '$ac_arg'"
10140 tbaseargs="$tbaseargs '$ac_arg'"
10141 keep_next=no
10142 continue
10145 # Handle separated arguments. Based on the logic generated by
10146 # autoconf 2.59.
10147 case $ac_arg in
10148 *=* | --config-cache | -C | -disable-* | --disable-* \
10149 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10150 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10151 | -with-* | --with-* | -without-* | --without-* | --x)
10152 separate_arg=no
10155 separate_arg=yes
10158 separate_arg=no
10160 esac
10162 skip_targ=no
10163 case $ac_arg in
10165 --with-* | --without-*)
10166 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10168 case $libopt in
10169 *[-_]include)
10170 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10172 *[-_]lib)
10173 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10176 lib=$libopt
10178 esac
10181 case $lib in
10182 mpc | mpfr | gmp | isl)
10183 # If we're processing --with-$lib, --with-$lib-include or
10184 # --with-$lib-lib, for one of the libs above, and target is
10185 # different from host, don't pass the current argument to any
10186 # target library's configure.
10187 if test x$is_cross_compiler = xyes; then
10188 skip_targ=yes
10191 esac
10193 esac
10195 case "$ac_arg" in
10196 --cache-file=/dev/null | \
10197 -cache-file=/dev/null )
10198 # Handled here to avoid the test to skip args below.
10199 baseargs="$baseargs '$ac_arg'"
10200 tbaseargs="$tbaseargs '$ac_arg'"
10201 # Assert: $separate_arg should always be no.
10202 keep_next=$separate_arg
10204 --no*)
10205 continue
10207 --c* | \
10208 --sr* | \
10209 --ho* | \
10210 --bu* | \
10211 --t* | \
10212 --program-* | \
10213 -cache_file* | \
10214 -srcdir* | \
10215 -host* | \
10216 -build* | \
10217 -target* | \
10218 -program-prefix* | \
10219 -program-suffix* | \
10220 -program-transform-name* )
10221 skip_next=$separate_arg
10222 continue
10225 # An option. Add it.
10226 case $ac_arg in
10227 *\'*)
10228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10229 esac
10230 baseargs="$baseargs '$ac_arg'"
10231 if test X"$skip_targ" = Xno; then
10232 tbaseargs="$tbaseargs '$ac_arg'"
10234 keep_next=$separate_arg
10237 # Either a variable assignment, or a nonopt (triplet). Don't
10238 # pass it down; let the Makefile handle this.
10239 continue
10241 esac
10242 done
10243 # Remove the initial space we just introduced and, as these will be
10244 # expanded by make, quote '$'.
10245 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10247 # Add in --program-transform-name, after --program-prefix and
10248 # --program-suffix have been applied to it. Autoconf has already
10249 # doubled dollar signs and backslashes in program_transform_name; we want
10250 # the backslashes un-doubled, and then the entire thing wrapped in single
10251 # quotes, because this will be expanded first by make and then by the shell.
10252 # Also, because we want to override the logic in subdir configure scripts to
10253 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10254 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10255 ${program_transform_name}
10256 EOF_SED
10257 gcc_transform_name=`cat conftestsed.out`
10258 rm -f conftestsed.out
10259 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10260 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10261 if test "$silent" = yes; then
10262 baseargs="$baseargs --silent"
10263 tbaseargs="$tbaseargs --silent"
10266 baseargs="$baseargs --disable-option-checking"
10267 tbaseargs="$tbaseargs --disable-option-checking"
10269 if test "$enable_year2038" = no; then
10270 baseargs="$baseargs --disable-year2038"
10271 tbaseargs="$tbaseargs --disable-year2038"
10274 # Record and document user additions to sub configure arguments.
10279 # For the build-side libraries, we just need to pretend we're native,
10280 # and not use the same cache file. Multilibs are neither needed nor
10281 # desired. We can't even use the same cache file for all build-side
10282 # libraries, as they're compiled differently; some with C, some with
10283 # C++ or with different feature-enabling options.
10284 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10286 # For host modules, accept cache file option, or specification as blank.
10287 case "${cache_file}" in
10288 "") # empty
10289 cache_file_option="" ;;
10290 /* | [A-Za-z]:[\\/]* ) # absolute path
10291 cache_file_option="--cache-file=${cache_file}" ;;
10292 *) # relative path
10293 cache_file_option="--cache-file=../${cache_file}" ;;
10294 esac
10296 # Host dirs don't like to share a cache file either, horribly enough.
10297 # This seems to be due to autoconf 2.5x stupidity.
10298 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10300 target_configargs="$target_configargs ${tbaseargs}"
10302 # Passing a --with-cross-host argument lets the target libraries know
10303 # whether they are being built with a cross-compiler or being built
10304 # native. However, it would be better to use other mechanisms to make the
10305 # sorts of decisions they want to make on this basis. Please consider
10306 # this option to be deprecated. FIXME.
10307 if test x${is_cross_compiler} = xyes ; then
10308 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10311 # Special user-friendly check for native x86_64-linux build, if
10312 # multilib is not explicitly enabled.
10313 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10314 x86_64-*linux*:yes:$build:$build:)
10315 # Make sure we have a development environment that handles 32-bit
10316 dev64=no
10317 echo "int main () { return 0; }" > conftest.c
10318 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10319 if test $? = 0 ; then
10320 if test -s conftest || test -s conftest.exe ; then
10321 dev64=yes
10324 rm -f conftest*
10325 if test x${dev64} != xyes ; then
10326 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
10329 esac
10331 # Default to --enable-multilib.
10332 if test x${enable_multilib} = x ; then
10333 target_configargs="--enable-multilib ${target_configargs}"
10336 # Pass --with-newlib if appropriate. Note that target_configdirs has
10337 # changed from the earlier setting of with_newlib.
10338 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10339 target_configargs="--with-newlib ${target_configargs}"
10342 # Different target subdirs use different values of certain variables
10343 # (notably CXX). Worse, multilibs use *lots* of different values.
10344 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10345 # it doesn't automatically accept command-line overrides of them.
10346 # This means it's not safe for target subdirs to share a cache file,
10347 # which is disgusting, but there you have it. Hopefully this can be
10348 # fixed in future. It's still worthwhile to use a cache file for each
10349 # directory. I think.
10351 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10352 # We need to pass --target, as newer autoconf's requires consistency
10353 # for target_alias and gcc doesn't manage it consistently.
10354 target_configargs="--cache-file=./config.cache ${target_configargs}"
10356 FLAGS_FOR_TARGET=
10357 case " $target_configdirs " in
10358 *" newlib "*)
10359 case " $target_configargs " in
10360 *" --with-newlib "*)
10361 case "$target" in
10362 *-cygwin*)
10363 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10365 esac
10367 # If we're not building GCC, don't discard standard headers.
10368 if test -d ${srcdir}/gcc; then
10369 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10371 if test "${build}" != "${host}"; then
10372 # On Canadian crosses, CC_FOR_TARGET will have already been set
10373 # by `configure', so we won't have an opportunity to add -Bgcc/
10374 # to it. This is right: we don't want to search that directory
10375 # for binaries, but we want the header files in there, so add
10376 # them explicitly.
10377 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10379 # Someone might think of using the pre-installed headers on
10380 # Canadian crosses, in case the installed compiler is not fully
10381 # compatible with the compiler being built. In this case, it
10382 # would be better to flag an error than risking having
10383 # incompatible object files being constructed. We can't
10384 # guarantee that an error will be flagged, but let's hope the
10385 # compiler will do it, when presented with incompatible header
10386 # files.
10390 case "${target}-${is_cross_compiler}" in
10391 i[3456789]86-*-linux*-no)
10392 # Here host == target, so we don't need to build gcc,
10393 # so we don't want to discard standard headers.
10394 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10397 # If we're building newlib, use its generic headers last, but search
10398 # for any libc-related directories first (so make it the last -B
10399 # switch).
10400 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10402 # If we're building libgloss, find the startup file, simulator library
10403 # and linker script.
10404 case " $target_configdirs " in
10405 *" libgloss "*)
10406 # Look for startup file, simulator library and maybe linker script.
10407 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10408 # Look for libnosys.a in case the target needs it.
10409 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10410 # Most targets have the linker script in the source directory.
10411 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10413 esac
10415 esac
10417 esac
10419 esac
10421 case "$target" in
10422 x86_64-*mingw* | *-w64-mingw*)
10423 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10424 # however, use a symlink named 'mingw' in ${prefix} .
10425 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10427 *-mingw*)
10428 # MinGW can't be handled as Cygwin above since it does not use newlib.
10429 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'
10431 esac
10433 # Allow the user to override the flags for
10434 # our build compiler if desired.
10435 if test x"${build}" = x"${host}" ; then
10436 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10437 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10438 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10439 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10442 # On Canadian crosses, we'll be searching the right directories for
10443 # the previously-installed cross compiler, so don't bother to add
10444 # flags for directories within the install tree of the compiler
10445 # being built; programs in there won't even run.
10446 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10447 # Search for pre-installed headers if nothing else fits.
10448 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10451 if test "x${use_gnu_ld}" = x &&
10452 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10453 # Arrange for us to find uninstalled linker scripts.
10454 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10457 # Search for other target-specific linker scripts and such.
10458 case "${target}" in
10459 mep*)
10460 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10462 # The VxWorks support for shared libraries is getting in
10463 # incrementally. Make sure it doesn't get activated implicitly:
10464 *vxworks*)
10465 if test "${enable_shared-unset}" = unset ; then
10466 enable_shared=no
10467 # So the build of libraries knows ...
10468 target_configargs="${target_configargs} --disable-shared"
10469 # So gcc knows ...
10470 host_configargs="${host_configargs} --disable-shared"
10473 esac
10475 # Makefile fragments.
10476 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10478 eval fragval=\$$frag
10479 if test $fragval != /dev/null; then
10480 eval $frag=${srcdir}/$fragval
10482 done
10488 # Miscellanea: directories, flags, etc.
10497 # Build module lists & subconfigure args.
10501 # Host module lists & subconfigure args.
10506 # Target module lists & subconfigure args.
10510 # Build tools.
10531 # Generate default definitions for YACC, M4, LEX and other programs that run
10532 # on the build machine. These are used if the Makefile can't locate these
10533 # programs in objdir.
10534 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10536 for ac_prog in 'bison -y' byacc yacc
10538 # Extract the first word of "$ac_prog", so it can be a program name with args.
10539 set dummy $ac_prog; ac_word=$2
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541 $as_echo_n "checking for $ac_word... " >&6; }
10542 if ${ac_cv_prog_YACC+:} false; then :
10543 $as_echo_n "(cached) " >&6
10544 else
10545 if test -n "$YACC"; then
10546 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10547 else
10548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549 for as_dir in $PATH
10551 IFS=$as_save_IFS
10552 test -z "$as_dir" && as_dir=.
10553 for ac_exec_ext in '' $ac_executable_extensions; do
10554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10555 ac_cv_prog_YACC="$ac_prog"
10556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557 break 2
10559 done
10560 done
10561 IFS=$as_save_IFS
10565 YACC=$ac_cv_prog_YACC
10566 if test -n "$YACC"; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10568 $as_echo "$YACC" >&6; }
10569 else
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571 $as_echo "no" >&6; }
10575 test -n "$YACC" && break
10576 done
10577 test -n "$YACC" || YACC="$MISSING bison -y"
10579 case " $build_configdirs " in
10580 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10581 esac
10583 for ac_prog in bison
10585 # Extract the first word of "$ac_prog", so it can be a program name with args.
10586 set dummy $ac_prog; ac_word=$2
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588 $as_echo_n "checking for $ac_word... " >&6; }
10589 if ${ac_cv_prog_BISON+:} false; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10592 if test -n "$BISON"; then
10593 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10594 else
10595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596 for as_dir in $PATH
10598 IFS=$as_save_IFS
10599 test -z "$as_dir" && as_dir=.
10600 for ac_exec_ext in '' $ac_executable_extensions; do
10601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10602 ac_cv_prog_BISON="$ac_prog"
10603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10604 break 2
10606 done
10607 done
10608 IFS=$as_save_IFS
10612 BISON=$ac_cv_prog_BISON
10613 if test -n "$BISON"; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10615 $as_echo "$BISON" >&6; }
10616 else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618 $as_echo "no" >&6; }
10622 test -n "$BISON" && break
10623 done
10624 test -n "$BISON" || BISON="$MISSING bison"
10626 case " $build_configdirs " in
10627 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10628 esac
10630 for ac_prog in gm4 gnum4 m4
10632 # Extract the first word of "$ac_prog", so it can be a program name with args.
10633 set dummy $ac_prog; ac_word=$2
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10635 $as_echo_n "checking for $ac_word... " >&6; }
10636 if ${ac_cv_prog_M4+:} false; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 if test -n "$M4"; then
10640 ac_cv_prog_M4="$M4" # Let the user override the test.
10641 else
10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $PATH
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10649 ac_cv_prog_M4="$ac_prog"
10650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 break 2
10653 done
10654 done
10655 IFS=$as_save_IFS
10659 M4=$ac_cv_prog_M4
10660 if test -n "$M4"; then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10662 $as_echo "$M4" >&6; }
10663 else
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10669 test -n "$M4" && break
10670 done
10671 test -n "$M4" || M4="$MISSING m4"
10673 case " $build_configdirs " in
10674 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10675 esac
10677 for ac_prog in flex lex
10679 # Extract the first word of "$ac_prog", so it can be a program name with args.
10680 set dummy $ac_prog; ac_word=$2
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10682 $as_echo_n "checking for $ac_word... " >&6; }
10683 if ${ac_cv_prog_LEX+:} false; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10686 if test -n "$LEX"; then
10687 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10688 else
10689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690 for as_dir in $PATH
10692 IFS=$as_save_IFS
10693 test -z "$as_dir" && as_dir=.
10694 for ac_exec_ext in '' $ac_executable_extensions; do
10695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10696 ac_cv_prog_LEX="$ac_prog"
10697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 break 2
10700 done
10701 done
10702 IFS=$as_save_IFS
10706 LEX=$ac_cv_prog_LEX
10707 if test -n "$LEX"; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10709 $as_echo "$LEX" >&6; }
10710 else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712 $as_echo "no" >&6; }
10716 test -n "$LEX" && break
10717 done
10718 test -n "$LEX" || LEX="$MISSING flex"
10720 case " $build_configdirs " in
10721 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10722 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10723 esac
10725 for ac_prog in flex
10727 # Extract the first word of "$ac_prog", so it can be a program name with args.
10728 set dummy $ac_prog; ac_word=$2
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10730 $as_echo_n "checking for $ac_word... " >&6; }
10731 if ${ac_cv_prog_FLEX+:} false; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 if test -n "$FLEX"; then
10735 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10736 else
10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10740 IFS=$as_save_IFS
10741 test -z "$as_dir" && as_dir=.
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10744 ac_cv_prog_FLEX="$ac_prog"
10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10746 break 2
10748 done
10749 done
10750 IFS=$as_save_IFS
10754 FLEX=$ac_cv_prog_FLEX
10755 if test -n "$FLEX"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10757 $as_echo "$FLEX" >&6; }
10758 else
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10764 test -n "$FLEX" && break
10765 done
10766 test -n "$FLEX" || FLEX="$MISSING flex"
10768 case " $build_configdirs " in
10769 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10770 esac
10772 for ac_prog in makeinfo
10774 # Extract the first word of "$ac_prog", so it can be a program name with args.
10775 set dummy $ac_prog; ac_word=$2
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777 $as_echo_n "checking for $ac_word... " >&6; }
10778 if ${ac_cv_prog_MAKEINFO+:} false; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 if test -n "$MAKEINFO"; then
10782 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10783 else
10784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785 for as_dir in $PATH
10787 IFS=$as_save_IFS
10788 test -z "$as_dir" && as_dir=.
10789 for ac_exec_ext in '' $ac_executable_extensions; do
10790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10791 ac_cv_prog_MAKEINFO="$ac_prog"
10792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10793 break 2
10795 done
10796 done
10797 IFS=$as_save_IFS
10801 MAKEINFO=$ac_cv_prog_MAKEINFO
10802 if test -n "$MAKEINFO"; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10804 $as_echo "$MAKEINFO" >&6; }
10805 else
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807 $as_echo "no" >&6; }
10811 test -n "$MAKEINFO" && break
10812 done
10813 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10815 case " $build_configdirs " in
10816 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10819 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10820 # higher, else we use the "missing" dummy.
10821 if ${MAKEINFO} --version \
10822 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10824 else
10825 MAKEINFO="$MISSING makeinfo"
10829 esac
10831 # FIXME: expect and dejagnu may become build tools?
10833 for ac_prog in expect
10835 # Extract the first word of "$ac_prog", so it can be a program name with args.
10836 set dummy $ac_prog; ac_word=$2
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10838 $as_echo_n "checking for $ac_word... " >&6; }
10839 if ${ac_cv_prog_EXPECT+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 if test -n "$EXPECT"; then
10843 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10844 else
10845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846 for as_dir in $PATH
10848 IFS=$as_save_IFS
10849 test -z "$as_dir" && as_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10852 ac_cv_prog_EXPECT="$ac_prog"
10853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 break 2
10856 done
10857 done
10858 IFS=$as_save_IFS
10862 EXPECT=$ac_cv_prog_EXPECT
10863 if test -n "$EXPECT"; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10865 $as_echo "$EXPECT" >&6; }
10866 else
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10868 $as_echo "no" >&6; }
10872 test -n "$EXPECT" && break
10873 done
10874 test -n "$EXPECT" || EXPECT="expect"
10876 case " $configdirs " in
10877 *" expect "*)
10878 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10880 esac
10882 for ac_prog in runtest
10884 # Extract the first word of "$ac_prog", so it can be a program name with args.
10885 set dummy $ac_prog; ac_word=$2
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10887 $as_echo_n "checking for $ac_word... " >&6; }
10888 if ${ac_cv_prog_RUNTEST+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 if test -n "$RUNTEST"; then
10892 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10893 else
10894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895 for as_dir in $PATH
10897 IFS=$as_save_IFS
10898 test -z "$as_dir" && as_dir=.
10899 for ac_exec_ext in '' $ac_executable_extensions; do
10900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10901 ac_cv_prog_RUNTEST="$ac_prog"
10902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 break 2
10905 done
10906 done
10907 IFS=$as_save_IFS
10911 RUNTEST=$ac_cv_prog_RUNTEST
10912 if test -n "$RUNTEST"; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10914 $as_echo "$RUNTEST" >&6; }
10915 else
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10921 test -n "$RUNTEST" && break
10922 done
10923 test -n "$RUNTEST" || RUNTEST="runtest"
10925 case " $configdirs " in
10926 *" dejagnu "*)
10927 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10929 esac
10932 # Host tools.
10933 ncn_tool_prefix=
10934 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10935 ncn_target_tool_prefix=
10936 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10940 if test -n "$AR"; then
10941 ac_cv_prog_AR=$AR
10942 elif test -n "$ac_cv_prog_AR"; then
10943 AR=$ac_cv_prog_AR
10946 if test -n "$ac_cv_prog_AR"; then
10947 for ncn_progname in ar; do
10948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10949 set dummy ${ncn_progname}; ac_word=$2
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10951 $as_echo_n "checking for $ac_word... " >&6; }
10952 if ${ac_cv_prog_AR+:} false; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 if test -n "$AR"; then
10956 ac_cv_prog_AR="$AR" # Let the user override the test.
10957 else
10958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10959 for as_dir in $PATH
10961 IFS=$as_save_IFS
10962 test -z "$as_dir" && as_dir=.
10963 for ac_exec_ext in '' $ac_executable_extensions; do
10964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10965 ac_cv_prog_AR="${ncn_progname}"
10966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10967 break 2
10969 done
10970 done
10971 IFS=$as_save_IFS
10975 AR=$ac_cv_prog_AR
10976 if test -n "$AR"; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10978 $as_echo "$AR" >&6; }
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10985 done
10988 for ncn_progname in ar; do
10989 if test -n "$ncn_tool_prefix"; then
10990 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10991 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if ${ac_cv_prog_AR+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 if test -n "$AR"; then
10998 ac_cv_prog_AR="$AR" # Let the user override the test.
10999 else
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11007 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11011 done
11012 done
11013 IFS=$as_save_IFS
11017 AR=$ac_cv_prog_AR
11018 if test -n "$AR"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11020 $as_echo "$AR" >&6; }
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; }
11028 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11030 set dummy ${ncn_progname}; ac_word=$2
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 $as_echo_n "checking for $ac_word... " >&6; }
11033 if ${ac_cv_prog_AR+:} false; then :
11034 $as_echo_n "(cached) " >&6
11035 else
11036 if test -n "$AR"; then
11037 ac_cv_prog_AR="$AR" # Let the user override the test.
11038 else
11039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040 for as_dir in $PATH
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11046 ac_cv_prog_AR="${ncn_progname}"
11047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11050 done
11051 done
11052 IFS=$as_save_IFS
11056 AR=$ac_cv_prog_AR
11057 if test -n "$AR"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11059 $as_echo "$AR" >&6; }
11060 else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11067 test -n "$ac_cv_prog_AR" && break
11068 done
11070 if test -z "$ac_cv_prog_AR" ; then
11071 set dummy ar
11072 if test $build = $host ; then
11073 AR="$2"
11074 else
11075 AR="${ncn_tool_prefix}$2"
11081 if test -n "$AS"; then
11082 ac_cv_prog_AS=$AS
11083 elif test -n "$ac_cv_prog_AS"; then
11084 AS=$ac_cv_prog_AS
11087 if test -n "$ac_cv_prog_AS"; then
11088 for ncn_progname in as; do
11089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11090 set dummy ${ncn_progname}; ac_word=$2
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if ${ac_cv_prog_AS+:} false; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 if test -n "$AS"; then
11097 ac_cv_prog_AS="$AS" # Let the user override the test.
11098 else
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11106 ac_cv_prog_AS="${ncn_progname}"
11107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11110 done
11111 done
11112 IFS=$as_save_IFS
11116 AS=$ac_cv_prog_AS
11117 if test -n "$AS"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11119 $as_echo "$AS" >&6; }
11120 else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11126 done
11129 for ncn_progname in as; do
11130 if test -n "$ncn_tool_prefix"; then
11131 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11132 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 $as_echo_n "checking for $ac_word... " >&6; }
11135 if ${ac_cv_prog_AS+:} false; then :
11136 $as_echo_n "(cached) " >&6
11137 else
11138 if test -n "$AS"; then
11139 ac_cv_prog_AS="$AS" # Let the user override the test.
11140 else
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11144 IFS=$as_save_IFS
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11148 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 break 2
11152 done
11153 done
11154 IFS=$as_save_IFS
11158 AS=$ac_cv_prog_AS
11159 if test -n "$AS"; then
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11161 $as_echo "$AS" >&6; }
11162 else
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164 $as_echo "no" >&6; }
11169 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11171 set dummy ${ncn_progname}; ac_word=$2
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11173 $as_echo_n "checking for $ac_word... " >&6; }
11174 if ${ac_cv_prog_AS+:} false; then :
11175 $as_echo_n "(cached) " >&6
11176 else
11177 if test -n "$AS"; then
11178 ac_cv_prog_AS="$AS" # Let the user override the test.
11179 else
11180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181 for as_dir in $PATH
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11187 ac_cv_prog_AS="${ncn_progname}"
11188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11189 break 2
11191 done
11192 done
11193 IFS=$as_save_IFS
11197 AS=$ac_cv_prog_AS
11198 if test -n "$AS"; then
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11200 $as_echo "$AS" >&6; }
11201 else
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203 $as_echo "no" >&6; }
11208 test -n "$ac_cv_prog_AS" && break
11209 done
11211 if test -z "$ac_cv_prog_AS" ; then
11212 set dummy as
11213 if test $build = $host ; then
11214 AS="$2"
11215 else
11216 AS="${ncn_tool_prefix}$2"
11222 if test -n "$DLLTOOL"; then
11223 ac_cv_prog_DLLTOOL=$DLLTOOL
11224 elif test -n "$ac_cv_prog_DLLTOOL"; then
11225 DLLTOOL=$ac_cv_prog_DLLTOOL
11228 if test -n "$ac_cv_prog_DLLTOOL"; then
11229 for ncn_progname in dlltool; do
11230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11231 set dummy ${ncn_progname}; ac_word=$2
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11233 $as_echo_n "checking for $ac_word... " >&6; }
11234 if ${ac_cv_prog_DLLTOOL+:} false; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 if test -n "$DLLTOOL"; then
11238 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11239 else
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in $PATH
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
11245 for ac_exec_ext in '' $ac_executable_extensions; do
11246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11247 ac_cv_prog_DLLTOOL="${ncn_progname}"
11248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11249 break 2
11251 done
11252 done
11253 IFS=$as_save_IFS
11257 DLLTOOL=$ac_cv_prog_DLLTOOL
11258 if test -n "$DLLTOOL"; then
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11260 $as_echo "$DLLTOOL" >&6; }
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
11267 done
11270 for ncn_progname in dlltool; do
11271 if test -n "$ncn_tool_prefix"; then
11272 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11273 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275 $as_echo_n "checking for $ac_word... " >&6; }
11276 if ${ac_cv_prog_DLLTOOL+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 if test -n "$DLLTOOL"; then
11280 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11281 else
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11289 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11293 done
11294 done
11295 IFS=$as_save_IFS
11299 DLLTOOL=$ac_cv_prog_DLLTOOL
11300 if test -n "$DLLTOOL"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11302 $as_echo "$DLLTOOL" >&6; }
11303 else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11310 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11312 set dummy ${ncn_progname}; ac_word=$2
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11314 $as_echo_n "checking for $ac_word... " >&6; }
11315 if ${ac_cv_prog_DLLTOOL+:} false; then :
11316 $as_echo_n "(cached) " >&6
11317 else
11318 if test -n "$DLLTOOL"; then
11319 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11320 else
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11324 IFS=$as_save_IFS
11325 test -z "$as_dir" && as_dir=.
11326 for ac_exec_ext in '' $ac_executable_extensions; do
11327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11328 ac_cv_prog_DLLTOOL="${ncn_progname}"
11329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11330 break 2
11332 done
11333 done
11334 IFS=$as_save_IFS
11338 DLLTOOL=$ac_cv_prog_DLLTOOL
11339 if test -n "$DLLTOOL"; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11341 $as_echo "$DLLTOOL" >&6; }
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11349 test -n "$ac_cv_prog_DLLTOOL" && break
11350 done
11352 if test -z "$ac_cv_prog_DLLTOOL" ; then
11353 set dummy dlltool
11354 if test $build = $host ; then
11355 DLLTOOL="$2"
11356 else
11357 DLLTOOL="${ncn_tool_prefix}$2"
11363 if test -n "$DSYMUTIL"; then
11364 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11365 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11366 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11369 if test -n "$ac_cv_prog_DSYMUTIL"; then
11370 for ncn_progname in dsymutil; do
11371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11372 set dummy ${ncn_progname}; ac_word=$2
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 $as_echo_n "checking for $ac_word... " >&6; }
11375 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 if test -n "$DSYMUTIL"; then
11379 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11380 else
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 for as_dir in $PATH
11384 IFS=$as_save_IFS
11385 test -z "$as_dir" && as_dir=.
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11388 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11390 break 2
11392 done
11393 done
11394 IFS=$as_save_IFS
11398 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11399 if test -n "$DSYMUTIL"; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11401 $as_echo "$DSYMUTIL" >&6; }
11402 else
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11408 done
11411 for ncn_progname in dsymutil; do
11412 if test -n "$ncn_tool_prefix"; then
11413 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11414 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11416 $as_echo_n "checking for $ac_word... " >&6; }
11417 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 if test -n "$DSYMUTIL"; then
11421 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11422 else
11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11426 IFS=$as_save_IFS
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11432 break 2
11434 done
11435 done
11436 IFS=$as_save_IFS
11440 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11441 if test -n "$DSYMUTIL"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11443 $as_echo "$DSYMUTIL" >&6; }
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; }
11451 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11453 set dummy ${ncn_progname}; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 if test -n "$DSYMUTIL"; then
11460 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11461 else
11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463 for as_dir in $PATH
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11469 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11471 break 2
11473 done
11474 done
11475 IFS=$as_save_IFS
11479 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11480 if test -n "$DSYMUTIL"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11482 $as_echo "$DSYMUTIL" >&6; }
11483 else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11490 test -n "$ac_cv_prog_DSYMUTIL" && break
11491 done
11493 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11494 set dummy dsymutil
11495 if test $build = $host ; then
11496 DSYMUTIL="$2"
11497 else
11498 DSYMUTIL="${ncn_tool_prefix}$2"
11504 if test -n "$LD"; then
11505 ac_cv_prog_LD=$LD
11506 elif test -n "$ac_cv_prog_LD"; then
11507 LD=$ac_cv_prog_LD
11510 if test -n "$ac_cv_prog_LD"; then
11511 for ncn_progname in ld; do
11512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11513 set dummy ${ncn_progname}; ac_word=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if ${ac_cv_prog_LD+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 if test -n "$LD"; then
11520 ac_cv_prog_LD="$LD" # Let the user override the test.
11521 else
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523 for as_dir in $PATH
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11529 ac_cv_prog_LD="${ncn_progname}"
11530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 break 2
11533 done
11534 done
11535 IFS=$as_save_IFS
11539 LD=$ac_cv_prog_LD
11540 if test -n "$LD"; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11542 $as_echo "$LD" >&6; }
11543 else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11549 done
11552 for ncn_progname in ld; do
11553 if test -n "$ncn_tool_prefix"; then
11554 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11555 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if ${ac_cv_prog_LD+:} false; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 if test -n "$LD"; then
11562 ac_cv_prog_LD="$LD" # Let the user override the test.
11563 else
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11575 done
11576 done
11577 IFS=$as_save_IFS
11581 LD=$ac_cv_prog_LD
11582 if test -n "$LD"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11584 $as_echo "$LD" >&6; }
11585 else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11592 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11594 set dummy ${ncn_progname}; ac_word=$2
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11596 $as_echo_n "checking for $ac_word... " >&6; }
11597 if ${ac_cv_prog_LD+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 if test -n "$LD"; then
11601 ac_cv_prog_LD="$LD" # Let the user override the test.
11602 else
11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604 for as_dir in $PATH
11606 IFS=$as_save_IFS
11607 test -z "$as_dir" && as_dir=.
11608 for ac_exec_ext in '' $ac_executable_extensions; do
11609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11610 ac_cv_prog_LD="${ncn_progname}"
11611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11612 break 2
11614 done
11615 done
11616 IFS=$as_save_IFS
11620 LD=$ac_cv_prog_LD
11621 if test -n "$LD"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11623 $as_echo "$LD" >&6; }
11624 else
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626 $as_echo "no" >&6; }
11631 test -n "$ac_cv_prog_LD" && break
11632 done
11634 if test -z "$ac_cv_prog_LD" ; then
11635 set dummy ld
11636 if test $build = $host ; then
11637 LD="$2"
11638 else
11639 LD="${ncn_tool_prefix}$2"
11645 if test -n "$LIPO"; then
11646 ac_cv_prog_LIPO=$LIPO
11647 elif test -n "$ac_cv_prog_LIPO"; then
11648 LIPO=$ac_cv_prog_LIPO
11651 if test -n "$ac_cv_prog_LIPO"; then
11652 for ncn_progname in lipo; do
11653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11654 set dummy ${ncn_progname}; ac_word=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656 $as_echo_n "checking for $ac_word... " >&6; }
11657 if ${ac_cv_prog_LIPO+:} false; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 if test -n "$LIPO"; then
11661 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11662 else
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11670 ac_cv_prog_LIPO="${ncn_progname}"
11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11674 done
11675 done
11676 IFS=$as_save_IFS
11680 LIPO=$ac_cv_prog_LIPO
11681 if test -n "$LIPO"; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11683 $as_echo "$LIPO" >&6; }
11684 else
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11690 done
11693 for ncn_progname in lipo; do
11694 if test -n "$ncn_tool_prefix"; then
11695 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11696 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_prog_LIPO+:} false; then :
11700 $as_echo_n "(cached) " >&6
11701 else
11702 if test -n "$LIPO"; then
11703 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11704 else
11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706 for as_dir in $PATH
11708 IFS=$as_save_IFS
11709 test -z "$as_dir" && as_dir=.
11710 for ac_exec_ext in '' $ac_executable_extensions; do
11711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11712 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11714 break 2
11716 done
11717 done
11718 IFS=$as_save_IFS
11722 LIPO=$ac_cv_prog_LIPO
11723 if test -n "$LIPO"; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11725 $as_echo "$LIPO" >&6; }
11726 else
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11733 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11735 set dummy ${ncn_progname}; ac_word=$2
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737 $as_echo_n "checking for $ac_word... " >&6; }
11738 if ${ac_cv_prog_LIPO+:} false; then :
11739 $as_echo_n "(cached) " >&6
11740 else
11741 if test -n "$LIPO"; then
11742 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11743 else
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $PATH
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11751 ac_cv_prog_LIPO="${ncn_progname}"
11752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11755 done
11756 done
11757 IFS=$as_save_IFS
11761 LIPO=$ac_cv_prog_LIPO
11762 if test -n "$LIPO"; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11764 $as_echo "$LIPO" >&6; }
11765 else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11772 test -n "$ac_cv_prog_LIPO" && break
11773 done
11775 if test -z "$ac_cv_prog_LIPO" ; then
11776 set dummy lipo
11777 if test $build = $host ; then
11778 LIPO="$2"
11779 else
11780 LIPO="${ncn_tool_prefix}$2"
11786 if test -n "$NM"; then
11787 ac_cv_prog_NM=$NM
11788 elif test -n "$ac_cv_prog_NM"; then
11789 NM=$ac_cv_prog_NM
11792 if test -n "$ac_cv_prog_NM"; then
11793 for ncn_progname in nm; do
11794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11795 set dummy ${ncn_progname}; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if ${ac_cv_prog_NM+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 if test -n "$NM"; then
11802 ac_cv_prog_NM="$NM" # Let the user override the test.
11803 else
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11811 ac_cv_prog_NM="${ncn_progname}"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11815 done
11816 done
11817 IFS=$as_save_IFS
11821 NM=$ac_cv_prog_NM
11822 if test -n "$NM"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11824 $as_echo "$NM" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11831 done
11834 for ncn_progname in nm; do
11835 if test -n "$ncn_tool_prefix"; then
11836 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11837 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if ${ac_cv_prog_NM+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 if test -n "$NM"; then
11844 ac_cv_prog_NM="$NM" # Let the user override the test.
11845 else
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11849 IFS=$as_save_IFS
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11853 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 break 2
11857 done
11858 done
11859 IFS=$as_save_IFS
11863 NM=$ac_cv_prog_NM
11864 if test -n "$NM"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11866 $as_echo "$NM" >&6; }
11867 else
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11874 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11876 set dummy ${ncn_progname}; ac_word=$2
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11878 $as_echo_n "checking for $ac_word... " >&6; }
11879 if ${ac_cv_prog_NM+:} false; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 if test -n "$NM"; then
11883 ac_cv_prog_NM="$NM" # Let the user override the test.
11884 else
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11888 IFS=$as_save_IFS
11889 test -z "$as_dir" && as_dir=.
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11892 ac_cv_prog_NM="${ncn_progname}"
11893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894 break 2
11896 done
11897 done
11898 IFS=$as_save_IFS
11902 NM=$ac_cv_prog_NM
11903 if test -n "$NM"; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11905 $as_echo "$NM" >&6; }
11906 else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11913 test -n "$ac_cv_prog_NM" && break
11914 done
11916 if test -z "$ac_cv_prog_NM" ; then
11917 set dummy nm
11918 if test $build = $host ; then
11919 NM="$2"
11920 else
11921 NM="${ncn_tool_prefix}$2"
11927 if test -n "$RANLIB"; then
11928 ac_cv_prog_RANLIB=$RANLIB
11929 elif test -n "$ac_cv_prog_RANLIB"; then
11930 RANLIB=$ac_cv_prog_RANLIB
11933 if test -n "$ac_cv_prog_RANLIB"; then
11934 for ncn_progname in ranlib; do
11935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11936 set dummy ${ncn_progname}; ac_word=$2
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11938 $as_echo_n "checking for $ac_word... " >&6; }
11939 if ${ac_cv_prog_RANLIB+:} false; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11942 if test -n "$RANLIB"; then
11943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11944 else
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $PATH
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11952 ac_cv_prog_RANLIB="${ncn_progname}"
11953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 break 2
11956 done
11957 done
11958 IFS=$as_save_IFS
11962 RANLIB=$ac_cv_prog_RANLIB
11963 if test -n "$RANLIB"; then
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11965 $as_echo "$RANLIB" >&6; }
11966 else
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11972 done
11975 for ncn_progname in ranlib; do
11976 if test -n "$ncn_tool_prefix"; then
11977 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11978 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if ${ac_cv_prog_RANLIB+:} false; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 if test -n "$RANLIB"; then
11985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11986 else
11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $PATH
11990 IFS=$as_save_IFS
11991 test -z "$as_dir" && as_dir=.
11992 for ac_exec_ext in '' $ac_executable_extensions; do
11993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11994 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11996 break 2
11998 done
11999 done
12000 IFS=$as_save_IFS
12004 RANLIB=$ac_cv_prog_RANLIB
12005 if test -n "$RANLIB"; then
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12007 $as_echo "$RANLIB" >&6; }
12008 else
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010 $as_echo "no" >&6; }
12015 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12017 set dummy ${ncn_progname}; ac_word=$2
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12019 $as_echo_n "checking for $ac_word... " >&6; }
12020 if ${ac_cv_prog_RANLIB+:} false; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 if test -n "$RANLIB"; then
12024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12025 else
12026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in $PATH
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
12031 for ac_exec_ext in '' $ac_executable_extensions; do
12032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12033 ac_cv_prog_RANLIB="${ncn_progname}"
12034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12035 break 2
12037 done
12038 done
12039 IFS=$as_save_IFS
12043 RANLIB=$ac_cv_prog_RANLIB
12044 if test -n "$RANLIB"; then
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12046 $as_echo "$RANLIB" >&6; }
12047 else
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049 $as_echo "no" >&6; }
12054 test -n "$ac_cv_prog_RANLIB" && break
12055 done
12057 if test -z "$ac_cv_prog_RANLIB" ; then
12058 RANLIB="true"
12063 if test -n "$STRIP"; then
12064 ac_cv_prog_STRIP=$STRIP
12065 elif test -n "$ac_cv_prog_STRIP"; then
12066 STRIP=$ac_cv_prog_STRIP
12069 if test -n "$ac_cv_prog_STRIP"; then
12070 for ncn_progname in strip; do
12071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12072 set dummy ${ncn_progname}; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if ${ac_cv_prog_STRIP+:} false; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 if test -n "$STRIP"; then
12079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12080 else
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088 ac_cv_prog_STRIP="${ncn_progname}"
12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 break 2
12092 done
12093 done
12094 IFS=$as_save_IFS
12098 STRIP=$ac_cv_prog_STRIP
12099 if test -n "$STRIP"; then
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12101 $as_echo "$STRIP" >&6; }
12102 else
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12108 done
12111 for ncn_progname in strip; do
12112 if test -n "$ncn_tool_prefix"; then
12113 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12114 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116 $as_echo_n "checking for $ac_word... " >&6; }
12117 if ${ac_cv_prog_STRIP+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 if test -n "$STRIP"; then
12121 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12122 else
12123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124 for as_dir in $PATH
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
12128 for ac_exec_ext in '' $ac_executable_extensions; do
12129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12130 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12132 break 2
12134 done
12135 done
12136 IFS=$as_save_IFS
12140 STRIP=$ac_cv_prog_STRIP
12141 if test -n "$STRIP"; then
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12143 $as_echo "$STRIP" >&6; }
12144 else
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12151 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12153 set dummy ${ncn_progname}; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155 $as_echo_n "checking for $ac_word... " >&6; }
12156 if ${ac_cv_prog_STRIP+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 if test -n "$STRIP"; then
12160 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12161 else
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12165 IFS=$as_save_IFS
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12169 ac_cv_prog_STRIP="${ncn_progname}"
12170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12171 break 2
12173 done
12174 done
12175 IFS=$as_save_IFS
12179 STRIP=$ac_cv_prog_STRIP
12180 if test -n "$STRIP"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12182 $as_echo "$STRIP" >&6; }
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; }
12190 test -n "$ac_cv_prog_STRIP" && break
12191 done
12193 if test -z "$ac_cv_prog_STRIP" ; then
12194 STRIP="true"
12199 if test -n "$WINDRES"; then
12200 ac_cv_prog_WINDRES=$WINDRES
12201 elif test -n "$ac_cv_prog_WINDRES"; then
12202 WINDRES=$ac_cv_prog_WINDRES
12205 if test -n "$ac_cv_prog_WINDRES"; then
12206 for ncn_progname in windres; do
12207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12208 set dummy ${ncn_progname}; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if ${ac_cv_prog_WINDRES+:} false; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 if test -n "$WINDRES"; then
12215 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12216 else
12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218 for as_dir in $PATH
12220 IFS=$as_save_IFS
12221 test -z "$as_dir" && as_dir=.
12222 for ac_exec_ext in '' $ac_executable_extensions; do
12223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12224 ac_cv_prog_WINDRES="${ncn_progname}"
12225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12226 break 2
12228 done
12229 done
12230 IFS=$as_save_IFS
12234 WINDRES=$ac_cv_prog_WINDRES
12235 if test -n "$WINDRES"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12237 $as_echo "$WINDRES" >&6; }
12238 else
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12244 done
12247 for ncn_progname in windres; do
12248 if test -n "$ncn_tool_prefix"; then
12249 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12250 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if ${ac_cv_prog_WINDRES+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 if test -n "$WINDRES"; then
12257 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12258 else
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12262 IFS=$as_save_IFS
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12266 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268 break 2
12270 done
12271 done
12272 IFS=$as_save_IFS
12276 WINDRES=$ac_cv_prog_WINDRES
12277 if test -n "$WINDRES"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12279 $as_echo "$WINDRES" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12287 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12289 set dummy ${ncn_progname}; ac_word=$2
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291 $as_echo_n "checking for $ac_word... " >&6; }
12292 if ${ac_cv_prog_WINDRES+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 if test -n "$WINDRES"; then
12296 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12297 else
12298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299 for as_dir in $PATH
12301 IFS=$as_save_IFS
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12305 ac_cv_prog_WINDRES="${ncn_progname}"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 break 2
12309 done
12310 done
12311 IFS=$as_save_IFS
12315 WINDRES=$ac_cv_prog_WINDRES
12316 if test -n "$WINDRES"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12318 $as_echo "$WINDRES" >&6; }
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12326 test -n "$ac_cv_prog_WINDRES" && break
12327 done
12329 if test -z "$ac_cv_prog_WINDRES" ; then
12330 set dummy windres
12331 if test $build = $host ; then
12332 WINDRES="$2"
12333 else
12334 WINDRES="${ncn_tool_prefix}$2"
12340 if test -n "$WINDMC"; then
12341 ac_cv_prog_WINDMC=$WINDMC
12342 elif test -n "$ac_cv_prog_WINDMC"; then
12343 WINDMC=$ac_cv_prog_WINDMC
12346 if test -n "$ac_cv_prog_WINDMC"; then
12347 for ncn_progname in windmc; do
12348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12349 set dummy ${ncn_progname}; ac_word=$2
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12351 $as_echo_n "checking for $ac_word... " >&6; }
12352 if ${ac_cv_prog_WINDMC+:} false; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 if test -n "$WINDMC"; then
12356 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12357 else
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12365 ac_cv_prog_WINDMC="${ncn_progname}"
12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12369 done
12370 done
12371 IFS=$as_save_IFS
12375 WINDMC=$ac_cv_prog_WINDMC
12376 if test -n "$WINDMC"; then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12378 $as_echo "$WINDMC" >&6; }
12379 else
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12385 done
12388 for ncn_progname in windmc; do
12389 if test -n "$ncn_tool_prefix"; then
12390 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12391 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393 $as_echo_n "checking for $ac_word... " >&6; }
12394 if ${ac_cv_prog_WINDMC+:} false; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 if test -n "$WINDMC"; then
12398 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12399 else
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12407 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12409 break 2
12411 done
12412 done
12413 IFS=$as_save_IFS
12417 WINDMC=$ac_cv_prog_WINDMC
12418 if test -n "$WINDMC"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12420 $as_echo "$WINDMC" >&6; }
12421 else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12428 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12430 set dummy ${ncn_progname}; ac_word=$2
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12432 $as_echo_n "checking for $ac_word... " >&6; }
12433 if ${ac_cv_prog_WINDMC+:} false; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 if test -n "$WINDMC"; then
12437 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12438 else
12439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12442 IFS=$as_save_IFS
12443 test -z "$as_dir" && as_dir=.
12444 for ac_exec_ext in '' $ac_executable_extensions; do
12445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12446 ac_cv_prog_WINDMC="${ncn_progname}"
12447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448 break 2
12450 done
12451 done
12452 IFS=$as_save_IFS
12456 WINDMC=$ac_cv_prog_WINDMC
12457 if test -n "$WINDMC"; then
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12459 $as_echo "$WINDMC" >&6; }
12460 else
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 $as_echo "no" >&6; }
12467 test -n "$ac_cv_prog_WINDMC" && break
12468 done
12470 if test -z "$ac_cv_prog_WINDMC" ; then
12471 set dummy windmc
12472 if test $build = $host ; then
12473 WINDMC="$2"
12474 else
12475 WINDMC="${ncn_tool_prefix}$2"
12481 if test -n "$OBJCOPY"; then
12482 ac_cv_prog_OBJCOPY=$OBJCOPY
12483 elif test -n "$ac_cv_prog_OBJCOPY"; then
12484 OBJCOPY=$ac_cv_prog_OBJCOPY
12487 if test -n "$ac_cv_prog_OBJCOPY"; then
12488 for ncn_progname in objcopy; do
12489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12490 set dummy ${ncn_progname}; ac_word=$2
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492 $as_echo_n "checking for $ac_word... " >&6; }
12493 if ${ac_cv_prog_OBJCOPY+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 if test -n "$OBJCOPY"; then
12497 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12498 else
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12502 IFS=$as_save_IFS
12503 test -z "$as_dir" && as_dir=.
12504 for ac_exec_ext in '' $ac_executable_extensions; do
12505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12506 ac_cv_prog_OBJCOPY="${ncn_progname}"
12507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12508 break 2
12510 done
12511 done
12512 IFS=$as_save_IFS
12516 OBJCOPY=$ac_cv_prog_OBJCOPY
12517 if test -n "$OBJCOPY"; then
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12519 $as_echo "$OBJCOPY" >&6; }
12520 else
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 $as_echo "no" >&6; }
12526 done
12529 for ncn_progname in objcopy; do
12530 if test -n "$ncn_tool_prefix"; then
12531 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12532 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if ${ac_cv_prog_OBJCOPY+:} false; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 if test -n "$OBJCOPY"; then
12539 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12540 else
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12548 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12550 break 2
12552 done
12553 done
12554 IFS=$as_save_IFS
12558 OBJCOPY=$ac_cv_prog_OBJCOPY
12559 if test -n "$OBJCOPY"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12561 $as_echo "$OBJCOPY" >&6; }
12562 else
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12569 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12571 set dummy ${ncn_progname}; ac_word=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if ${ac_cv_prog_OBJCOPY+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 if test -n "$OBJCOPY"; then
12578 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12579 else
12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581 for as_dir in $PATH
12583 IFS=$as_save_IFS
12584 test -z "$as_dir" && as_dir=.
12585 for ac_exec_ext in '' $ac_executable_extensions; do
12586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12587 ac_cv_prog_OBJCOPY="${ncn_progname}"
12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12589 break 2
12591 done
12592 done
12593 IFS=$as_save_IFS
12597 OBJCOPY=$ac_cv_prog_OBJCOPY
12598 if test -n "$OBJCOPY"; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12600 $as_echo "$OBJCOPY" >&6; }
12601 else
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603 $as_echo "no" >&6; }
12608 test -n "$ac_cv_prog_OBJCOPY" && break
12609 done
12611 if test -z "$ac_cv_prog_OBJCOPY" ; then
12612 set dummy objcopy
12613 if test $build = $host ; then
12614 OBJCOPY="$2"
12615 else
12616 OBJCOPY="${ncn_tool_prefix}$2"
12622 if test -n "$OBJDUMP"; then
12623 ac_cv_prog_OBJDUMP=$OBJDUMP
12624 elif test -n "$ac_cv_prog_OBJDUMP"; then
12625 OBJDUMP=$ac_cv_prog_OBJDUMP
12628 if test -n "$ac_cv_prog_OBJDUMP"; then
12629 for ncn_progname in objdump; do
12630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12631 set dummy ${ncn_progname}; ac_word=$2
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12633 $as_echo_n "checking for $ac_word... " >&6; }
12634 if ${ac_cv_prog_OBJDUMP+:} false; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 if test -n "$OBJDUMP"; then
12638 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12639 else
12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in $PATH
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
12645 for ac_exec_ext in '' $ac_executable_extensions; do
12646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12647 ac_cv_prog_OBJDUMP="${ncn_progname}"
12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12649 break 2
12651 done
12652 done
12653 IFS=$as_save_IFS
12657 OBJDUMP=$ac_cv_prog_OBJDUMP
12658 if test -n "$OBJDUMP"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12660 $as_echo "$OBJDUMP" >&6; }
12661 else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12667 done
12670 for ncn_progname in objdump; do
12671 if test -n "$ncn_tool_prefix"; then
12672 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12673 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12675 $as_echo_n "checking for $ac_word... " >&6; }
12676 if ${ac_cv_prog_OBJDUMP+:} false; then :
12677 $as_echo_n "(cached) " >&6
12678 else
12679 if test -n "$OBJDUMP"; then
12680 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12681 else
12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683 for as_dir in $PATH
12685 IFS=$as_save_IFS
12686 test -z "$as_dir" && as_dir=.
12687 for ac_exec_ext in '' $ac_executable_extensions; do
12688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12689 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691 break 2
12693 done
12694 done
12695 IFS=$as_save_IFS
12699 OBJDUMP=$ac_cv_prog_OBJDUMP
12700 if test -n "$OBJDUMP"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12702 $as_echo "$OBJDUMP" >&6; }
12703 else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12710 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12712 set dummy ${ncn_progname}; ac_word=$2
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12714 $as_echo_n "checking for $ac_word... " >&6; }
12715 if ${ac_cv_prog_OBJDUMP+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 if test -n "$OBJDUMP"; then
12719 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12720 else
12721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722 for as_dir in $PATH
12724 IFS=$as_save_IFS
12725 test -z "$as_dir" && as_dir=.
12726 for ac_exec_ext in '' $ac_executable_extensions; do
12727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12728 ac_cv_prog_OBJDUMP="${ncn_progname}"
12729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12730 break 2
12732 done
12733 done
12734 IFS=$as_save_IFS
12738 OBJDUMP=$ac_cv_prog_OBJDUMP
12739 if test -n "$OBJDUMP"; then
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12741 $as_echo "$OBJDUMP" >&6; }
12742 else
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12744 $as_echo "no" >&6; }
12749 test -n "$ac_cv_prog_OBJDUMP" && break
12750 done
12752 if test -z "$ac_cv_prog_OBJDUMP" ; then
12753 set dummy objdump
12754 if test $build = $host ; then
12755 OBJDUMP="$2"
12756 else
12757 OBJDUMP="${ncn_tool_prefix}$2"
12763 if test -n "$OTOOL"; then
12764 ac_cv_prog_OTOOL=$OTOOL
12765 elif test -n "$ac_cv_prog_OTOOL"; then
12766 OTOOL=$ac_cv_prog_OTOOL
12769 if test -n "$ac_cv_prog_OTOOL"; then
12770 for ncn_progname in otool; do
12771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12772 set dummy ${ncn_progname}; ac_word=$2
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 $as_echo_n "checking for $ac_word... " >&6; }
12775 if ${ac_cv_prog_OTOOL+:} false; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 if test -n "$OTOOL"; then
12779 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12780 else
12781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782 for as_dir in $PATH
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12788 ac_cv_prog_OTOOL="${ncn_progname}"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12792 done
12793 done
12794 IFS=$as_save_IFS
12798 OTOOL=$ac_cv_prog_OTOOL
12799 if test -n "$OTOOL"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12801 $as_echo "$OTOOL" >&6; }
12802 else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12808 done
12811 for ncn_progname in otool; do
12812 if test -n "$ncn_tool_prefix"; then
12813 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12814 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 $as_echo_n "checking for $ac_word... " >&6; }
12817 if ${ac_cv_prog_OTOOL+:} false; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 if test -n "$OTOOL"; then
12821 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12822 else
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12826 IFS=$as_save_IFS
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12830 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 break 2
12834 done
12835 done
12836 IFS=$as_save_IFS
12840 OTOOL=$ac_cv_prog_OTOOL
12841 if test -n "$OTOOL"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12843 $as_echo "$OTOOL" >&6; }
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12851 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12853 set dummy ${ncn_progname}; ac_word=$2
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12855 $as_echo_n "checking for $ac_word... " >&6; }
12856 if ${ac_cv_prog_OTOOL+:} false; then :
12857 $as_echo_n "(cached) " >&6
12858 else
12859 if test -n "$OTOOL"; then
12860 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12861 else
12862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in $PATH
12865 IFS=$as_save_IFS
12866 test -z "$as_dir" && as_dir=.
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12869 ac_cv_prog_OTOOL="${ncn_progname}"
12870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 break 2
12873 done
12874 done
12875 IFS=$as_save_IFS
12879 OTOOL=$ac_cv_prog_OTOOL
12880 if test -n "$OTOOL"; then
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12882 $as_echo "$OTOOL" >&6; }
12883 else
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12890 test -n "$ac_cv_prog_OTOOL" && break
12891 done
12893 if test -z "$ac_cv_prog_OTOOL" ; then
12894 set dummy otool
12895 if test $build = $host ; then
12896 OTOOL="$2"
12897 else
12898 OTOOL="${ncn_tool_prefix}$2"
12904 if test -n "$READELF"; then
12905 ac_cv_prog_READELF=$READELF
12906 elif test -n "$ac_cv_prog_READELF"; then
12907 READELF=$ac_cv_prog_READELF
12910 if test -n "$ac_cv_prog_READELF"; then
12911 for ncn_progname in readelf; do
12912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12913 set dummy ${ncn_progname}; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if ${ac_cv_prog_READELF+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 if test -n "$READELF"; then
12920 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12921 else
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12925 IFS=$as_save_IFS
12926 test -z "$as_dir" && as_dir=.
12927 for ac_exec_ext in '' $ac_executable_extensions; do
12928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12929 ac_cv_prog_READELF="${ncn_progname}"
12930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 break 2
12933 done
12934 done
12935 IFS=$as_save_IFS
12939 READELF=$ac_cv_prog_READELF
12940 if test -n "$READELF"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12942 $as_echo "$READELF" >&6; }
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12949 done
12952 for ncn_progname in readelf; do
12953 if test -n "$ncn_tool_prefix"; then
12954 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12955 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12957 $as_echo_n "checking for $ac_word... " >&6; }
12958 if ${ac_cv_prog_READELF+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 if test -n "$READELF"; then
12962 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12963 else
12964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965 for as_dir in $PATH
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12971 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12973 break 2
12975 done
12976 done
12977 IFS=$as_save_IFS
12981 READELF=$ac_cv_prog_READELF
12982 if test -n "$READELF"; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12984 $as_echo "$READELF" >&6; }
12985 else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987 $as_echo "no" >&6; }
12992 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12994 set dummy ${ncn_progname}; ac_word=$2
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996 $as_echo_n "checking for $ac_word... " >&6; }
12997 if ${ac_cv_prog_READELF+:} false; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 if test -n "$READELF"; then
13001 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13002 else
13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004 for as_dir in $PATH
13006 IFS=$as_save_IFS
13007 test -z "$as_dir" && as_dir=.
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13010 ac_cv_prog_READELF="${ncn_progname}"
13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 break 2
13014 done
13015 done
13016 IFS=$as_save_IFS
13020 READELF=$ac_cv_prog_READELF
13021 if test -n "$READELF"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13023 $as_echo "$READELF" >&6; }
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13031 test -n "$ac_cv_prog_READELF" && break
13032 done
13034 if test -z "$ac_cv_prog_READELF" ; then
13035 set dummy readelf
13036 if test $build = $host ; then
13037 READELF="$2"
13038 else
13039 READELF="${ncn_tool_prefix}$2"
13049 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
13053 $as_echo_n "checking for -plugin option... " >&6; }
13055 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13056 plugin_option=
13057 for plugin in $plugin_names; do
13058 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13059 if test x$plugin_so = x$plugin; then
13060 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13062 if test x$plugin_so != x$plugin; then
13063 plugin_option="--plugin $plugin_so"
13064 break
13066 done
13067 if test -n "$ac_tool_prefix"; then
13068 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13069 set dummy ${ac_tool_prefix}ar; ac_word=$2
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13071 $as_echo_n "checking for $ac_word... " >&6; }
13072 if ${ac_cv_prog_AR+:} false; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 if test -n "$AR"; then
13076 ac_cv_prog_AR="$AR" # Let the user override the test.
13077 else
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13081 IFS=$as_save_IFS
13082 test -z "$as_dir" && as_dir=.
13083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13085 ac_cv_prog_AR="${ac_tool_prefix}ar"
13086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13087 break 2
13089 done
13090 done
13091 IFS=$as_save_IFS
13095 AR=$ac_cv_prog_AR
13096 if test -n "$AR"; then
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13098 $as_echo "$AR" >&6; }
13099 else
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101 $as_echo "no" >&6; }
13106 if test -z "$ac_cv_prog_AR"; then
13107 ac_ct_AR=$AR
13108 # Extract the first word of "ar", so it can be a program name with args.
13109 set dummy ar; ac_word=$2
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13111 $as_echo_n "checking for $ac_word... " >&6; }
13112 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13113 $as_echo_n "(cached) " >&6
13114 else
13115 if test -n "$ac_ct_AR"; then
13116 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13117 else
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13125 ac_cv_prog_ac_ct_AR="ar"
13126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13127 break 2
13129 done
13130 done
13131 IFS=$as_save_IFS
13135 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13136 if test -n "$ac_ct_AR"; then
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13138 $as_echo "$ac_ct_AR" >&6; }
13139 else
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13144 if test "x$ac_ct_AR" = x; then
13145 AR=""
13146 else
13147 case $cross_compiling:$ac_tool_warned in
13148 yes:)
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13151 ac_tool_warned=yes ;;
13152 esac
13153 AR=$ac_ct_AR
13155 else
13156 AR="$ac_cv_prog_AR"
13159 if test "${AR}" = "" ; then
13160 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13162 touch conftest.c
13163 ${AR} $plugin_option rc conftest.a conftest.c
13164 if test "$?" != 0; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13166 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13167 plugin_option=
13169 rm -f conftest.*
13170 if test -n "$plugin_option"; then
13171 PLUGIN_OPTION="$plugin_option"
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13173 $as_echo "$plugin_option" >&6; }
13174 else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 $as_echo "no" >&6; }
13179 AR_PLUGIN_OPTION=
13180 RANLIB_PLUGIN_OPTION=
13181 if test -n "$PLUGIN_OPTION"; then
13182 if $AR --help 2>&1 | grep -q "\--plugin"; then
13183 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13185 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13186 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13192 # Target tools.
13194 # Check whether --with-build-time-tools was given.
13195 if test "${with_build_time_tools+set}" = set; then :
13196 withval=$with_build_time_tools; case x"$withval" in
13197 x/*) ;;
13199 with_build_time_tools=
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13201 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
13203 esac
13204 else
13205 with_build_time_tools=
13211 if test -n "$CC_FOR_TARGET"; then
13212 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13213 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13214 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13217 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13218 for ncn_progname in cc gcc; do
13219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13220 set dummy ${ncn_progname}; ac_word=$2
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222 $as_echo_n "checking for $ac_word... " >&6; }
13223 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 if test -n "$CC_FOR_TARGET"; then
13227 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13228 else
13229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230 for as_dir in $PATH
13232 IFS=$as_save_IFS
13233 test -z "$as_dir" && as_dir=.
13234 for ac_exec_ext in '' $ac_executable_extensions; do
13235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13236 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13238 break 2
13240 done
13241 done
13242 IFS=$as_save_IFS
13246 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13247 if test -n "$CC_FOR_TARGET"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13249 $as_echo "$CC_FOR_TARGET" >&6; }
13250 else
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252 $as_echo "no" >&6; }
13256 done
13259 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13260 for ncn_progname in cc gcc; do
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13262 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13263 if test -x $with_build_time_tools/${ncn_progname}; then
13264 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13266 $as_echo "yes" >&6; }
13267 break
13268 else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13272 done
13275 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13276 for ncn_progname in cc gcc; do
13277 if test -n "$ncn_target_tool_prefix"; then
13278 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13279 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13281 $as_echo_n "checking for $ac_word... " >&6; }
13282 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13283 $as_echo_n "(cached) " >&6
13284 else
13285 if test -n "$CC_FOR_TARGET"; then
13286 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13287 else
13288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13289 for as_dir in $PATH
13291 IFS=$as_save_IFS
13292 test -z "$as_dir" && as_dir=.
13293 for ac_exec_ext in '' $ac_executable_extensions; do
13294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13295 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13297 break 2
13299 done
13300 done
13301 IFS=$as_save_IFS
13305 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13306 if test -n "$CC_FOR_TARGET"; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13308 $as_echo "$CC_FOR_TARGET" >&6; }
13309 else
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13316 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13318 set dummy ${ncn_progname}; ac_word=$2
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320 $as_echo_n "checking for $ac_word... " >&6; }
13321 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13322 $as_echo_n "(cached) " >&6
13323 else
13324 if test -n "$CC_FOR_TARGET"; then
13325 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13326 else
13327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13328 for as_dir in $PATH
13330 IFS=$as_save_IFS
13331 test -z "$as_dir" && as_dir=.
13332 for ac_exec_ext in '' $ac_executable_extensions; do
13333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13334 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13336 break 2
13338 done
13339 done
13340 IFS=$as_save_IFS
13344 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13345 if test -n "$CC_FOR_TARGET"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13347 $as_echo "$CC_FOR_TARGET" >&6; }
13348 else
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 $as_echo "no" >&6; }
13355 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13356 done
13359 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13360 set dummy cc gcc
13361 if test $build = $target ; then
13362 CC_FOR_TARGET="$2"
13363 else
13364 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13366 else
13367 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13372 if test -n "$CXX_FOR_TARGET"; then
13373 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13374 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13375 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13378 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13379 for ncn_progname in c++ g++ cxx gxx; do
13380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13381 set dummy ${ncn_progname}; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 if test -n "$CXX_FOR_TARGET"; then
13388 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13389 else
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13393 IFS=$as_save_IFS
13394 test -z "$as_dir" && as_dir=.
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13397 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13399 break 2
13401 done
13402 done
13403 IFS=$as_save_IFS
13407 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13408 if test -n "$CXX_FOR_TARGET"; then
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13410 $as_echo "$CXX_FOR_TARGET" >&6; }
13411 else
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13413 $as_echo "no" >&6; }
13417 done
13420 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13421 for ncn_progname in c++ g++ cxx gxx; do
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13423 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13424 if test -x $with_build_time_tools/${ncn_progname}; then
13425 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13427 $as_echo "yes" >&6; }
13428 break
13429 else
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431 $as_echo "no" >&6; }
13433 done
13436 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13437 for ncn_progname in c++ g++ cxx gxx; do
13438 if test -n "$ncn_target_tool_prefix"; then
13439 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13440 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13442 $as_echo_n "checking for $ac_word... " >&6; }
13443 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13444 $as_echo_n "(cached) " >&6
13445 else
13446 if test -n "$CXX_FOR_TARGET"; then
13447 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13448 else
13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450 for as_dir in $PATH
13452 IFS=$as_save_IFS
13453 test -z "$as_dir" && as_dir=.
13454 for ac_exec_ext in '' $ac_executable_extensions; do
13455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13456 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13458 break 2
13460 done
13461 done
13462 IFS=$as_save_IFS
13466 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13467 if test -n "$CXX_FOR_TARGET"; then
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13469 $as_echo "$CXX_FOR_TARGET" >&6; }
13470 else
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472 $as_echo "no" >&6; }
13477 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13479 set dummy ${ncn_progname}; ac_word=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 if test -n "$CXX_FOR_TARGET"; then
13486 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13487 else
13488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13489 for as_dir in $PATH
13491 IFS=$as_save_IFS
13492 test -z "$as_dir" && as_dir=.
13493 for ac_exec_ext in '' $ac_executable_extensions; do
13494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13495 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13497 break 2
13499 done
13500 done
13501 IFS=$as_save_IFS
13505 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13506 if test -n "$CXX_FOR_TARGET"; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13508 $as_echo "$CXX_FOR_TARGET" >&6; }
13509 else
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13516 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13517 done
13520 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13521 set dummy c++ g++ cxx gxx
13522 if test $build = $target ; then
13523 CXX_FOR_TARGET="$2"
13524 else
13525 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13527 else
13528 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13533 if test -n "$GCC_FOR_TARGET"; then
13534 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13535 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13536 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13539 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13540 for ncn_progname in gcc; do
13541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13542 set dummy ${ncn_progname}; ac_word=$2
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13544 $as_echo_n "checking for $ac_word... " >&6; }
13545 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13546 $as_echo_n "(cached) " >&6
13547 else
13548 if test -n "$GCC_FOR_TARGET"; then
13549 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13550 else
13551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552 for as_dir in $PATH
13554 IFS=$as_save_IFS
13555 test -z "$as_dir" && as_dir=.
13556 for ac_exec_ext in '' $ac_executable_extensions; do
13557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13558 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13560 break 2
13562 done
13563 done
13564 IFS=$as_save_IFS
13568 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13569 if test -n "$GCC_FOR_TARGET"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13571 $as_echo "$GCC_FOR_TARGET" >&6; }
13572 else
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13578 done
13581 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13582 for ncn_progname in gcc; do
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13584 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13585 if test -x $with_build_time_tools/${ncn_progname}; then
13586 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13588 $as_echo "yes" >&6; }
13589 break
13590 else
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592 $as_echo "no" >&6; }
13594 done
13597 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13598 for ncn_progname in gcc; do
13599 if test -n "$ncn_target_tool_prefix"; then
13600 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13601 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13603 $as_echo_n "checking for $ac_word... " >&6; }
13604 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 if test -n "$GCC_FOR_TARGET"; then
13608 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13609 else
13610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13611 for as_dir in $PATH
13613 IFS=$as_save_IFS
13614 test -z "$as_dir" && as_dir=.
13615 for ac_exec_ext in '' $ac_executable_extensions; do
13616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13617 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13619 break 2
13621 done
13622 done
13623 IFS=$as_save_IFS
13627 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13628 if test -n "$GCC_FOR_TARGET"; then
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13630 $as_echo "$GCC_FOR_TARGET" >&6; }
13631 else
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633 $as_echo "no" >&6; }
13638 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13640 set dummy ${ncn_progname}; ac_word=$2
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13642 $as_echo_n "checking for $ac_word... " >&6; }
13643 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 if test -n "$GCC_FOR_TARGET"; then
13647 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13648 else
13649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650 for as_dir in $PATH
13652 IFS=$as_save_IFS
13653 test -z "$as_dir" && as_dir=.
13654 for ac_exec_ext in '' $ac_executable_extensions; do
13655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13656 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13658 break 2
13660 done
13661 done
13662 IFS=$as_save_IFS
13666 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13667 if test -n "$GCC_FOR_TARGET"; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13669 $as_echo "$GCC_FOR_TARGET" >&6; }
13670 else
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13672 $as_echo "no" >&6; }
13677 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13678 done
13681 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13682 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13683 else
13684 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13689 if test -n "$GFORTRAN_FOR_TARGET"; then
13690 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13691 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13692 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13695 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13696 for ncn_progname in gfortran; do
13697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13698 set dummy ${ncn_progname}; ac_word=$2
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13700 $as_echo_n "checking for $ac_word... " >&6; }
13701 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13702 $as_echo_n "(cached) " >&6
13703 else
13704 if test -n "$GFORTRAN_FOR_TARGET"; then
13705 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13706 else
13707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708 for as_dir in $PATH
13710 IFS=$as_save_IFS
13711 test -z "$as_dir" && as_dir=.
13712 for ac_exec_ext in '' $ac_executable_extensions; do
13713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13714 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13716 break 2
13718 done
13719 done
13720 IFS=$as_save_IFS
13724 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13725 if test -n "$GFORTRAN_FOR_TARGET"; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13727 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13728 else
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13734 done
13737 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13738 for ncn_progname in gfortran; do
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13740 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13741 if test -x $with_build_time_tools/${ncn_progname}; then
13742 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13744 $as_echo "yes" >&6; }
13745 break
13746 else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13750 done
13753 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13754 for ncn_progname in gfortran; do
13755 if test -n "$ncn_target_tool_prefix"; then
13756 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13757 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13759 $as_echo_n "checking for $ac_word... " >&6; }
13760 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13763 if test -n "$GFORTRAN_FOR_TARGET"; then
13764 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13765 else
13766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13767 for as_dir in $PATH
13769 IFS=$as_save_IFS
13770 test -z "$as_dir" && as_dir=.
13771 for ac_exec_ext in '' $ac_executable_extensions; do
13772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13773 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13775 break 2
13777 done
13778 done
13779 IFS=$as_save_IFS
13783 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13784 if test -n "$GFORTRAN_FOR_TARGET"; then
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13786 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13787 else
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13789 $as_echo "no" >&6; }
13794 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13796 set dummy ${ncn_progname}; ac_word=$2
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13798 $as_echo_n "checking for $ac_word... " >&6; }
13799 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13800 $as_echo_n "(cached) " >&6
13801 else
13802 if test -n "$GFORTRAN_FOR_TARGET"; then
13803 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13804 else
13805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13806 for as_dir in $PATH
13808 IFS=$as_save_IFS
13809 test -z "$as_dir" && as_dir=.
13810 for ac_exec_ext in '' $ac_executable_extensions; do
13811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13812 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13814 break 2
13816 done
13817 done
13818 IFS=$as_save_IFS
13822 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13823 if test -n "$GFORTRAN_FOR_TARGET"; then
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13825 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13826 else
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13828 $as_echo "no" >&6; }
13833 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13834 done
13837 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13838 set dummy gfortran
13839 if test $build = $target ; then
13840 GFORTRAN_FOR_TARGET="$2"
13841 else
13842 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13844 else
13845 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13850 if test -n "$GOC_FOR_TARGET"; then
13851 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13852 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13853 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13856 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13857 for ncn_progname in gccgo; do
13858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13859 set dummy ${ncn_progname}; ac_word=$2
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13861 $as_echo_n "checking for $ac_word... " >&6; }
13862 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13863 $as_echo_n "(cached) " >&6
13864 else
13865 if test -n "$GOC_FOR_TARGET"; then
13866 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13867 else
13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 for as_dir in $PATH
13871 IFS=$as_save_IFS
13872 test -z "$as_dir" && as_dir=.
13873 for ac_exec_ext in '' $ac_executable_extensions; do
13874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13875 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13877 break 2
13879 done
13880 done
13881 IFS=$as_save_IFS
13885 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13886 if test -n "$GOC_FOR_TARGET"; then
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13888 $as_echo "$GOC_FOR_TARGET" >&6; }
13889 else
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13891 $as_echo "no" >&6; }
13895 done
13898 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13899 for ncn_progname in gccgo; do
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13901 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13902 if test -x $with_build_time_tools/${ncn_progname}; then
13903 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13905 $as_echo "yes" >&6; }
13906 break
13907 else
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 $as_echo "no" >&6; }
13911 done
13914 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13915 for ncn_progname in gccgo; do
13916 if test -n "$ncn_target_tool_prefix"; then
13917 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13918 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920 $as_echo_n "checking for $ac_word... " >&6; }
13921 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 if test -n "$GOC_FOR_TARGET"; then
13925 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13926 else
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13930 IFS=$as_save_IFS
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13934 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13936 break 2
13938 done
13939 done
13940 IFS=$as_save_IFS
13944 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13945 if test -n "$GOC_FOR_TARGET"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13947 $as_echo "$GOC_FOR_TARGET" >&6; }
13948 else
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950 $as_echo "no" >&6; }
13955 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13957 set dummy ${ncn_progname}; ac_word=$2
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13959 $as_echo_n "checking for $ac_word... " >&6; }
13960 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13961 $as_echo_n "(cached) " >&6
13962 else
13963 if test -n "$GOC_FOR_TARGET"; then
13964 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13965 else
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13969 IFS=$as_save_IFS
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13973 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13975 break 2
13977 done
13978 done
13979 IFS=$as_save_IFS
13983 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13984 if test -n "$GOC_FOR_TARGET"; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13986 $as_echo "$GOC_FOR_TARGET" >&6; }
13987 else
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13989 $as_echo "no" >&6; }
13994 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13995 done
13998 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13999 set dummy gccgo
14000 if test $build = $target ; then
14001 GOC_FOR_TARGET="$2"
14002 else
14003 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14005 else
14006 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
14011 if test -n "$GDC_FOR_TARGET"; then
14012 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14013 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14014 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14017 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14018 for ncn_progname in gdc; do
14019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14020 set dummy ${ncn_progname}; ac_word=$2
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14022 $as_echo_n "checking for $ac_word... " >&6; }
14023 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14024 $as_echo_n "(cached) " >&6
14025 else
14026 if test -n "$GDC_FOR_TARGET"; then
14027 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14028 else
14029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14030 for as_dir in $PATH
14032 IFS=$as_save_IFS
14033 test -z "$as_dir" && as_dir=.
14034 for ac_exec_ext in '' $ac_executable_extensions; do
14035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14036 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14038 break 2
14040 done
14041 done
14042 IFS=$as_save_IFS
14046 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14047 if test -n "$GDC_FOR_TARGET"; then
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14049 $as_echo "$GDC_FOR_TARGET" >&6; }
14050 else
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14052 $as_echo "no" >&6; }
14056 done
14059 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14060 for ncn_progname in gdc; do
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14062 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14063 if test -x $with_build_time_tools/${ncn_progname}; then
14064 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14066 $as_echo "yes" >&6; }
14067 break
14068 else
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14070 $as_echo "no" >&6; }
14072 done
14075 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14076 for ncn_progname in gdc; do
14077 if test -n "$ncn_target_tool_prefix"; then
14078 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14079 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14081 $as_echo_n "checking for $ac_word... " >&6; }
14082 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085 if test -n "$GDC_FOR_TARGET"; then
14086 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14087 else
14088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089 for as_dir in $PATH
14091 IFS=$as_save_IFS
14092 test -z "$as_dir" && as_dir=.
14093 for ac_exec_ext in '' $ac_executable_extensions; do
14094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14095 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14097 break 2
14099 done
14100 done
14101 IFS=$as_save_IFS
14105 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14106 if test -n "$GDC_FOR_TARGET"; then
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14108 $as_echo "$GDC_FOR_TARGET" >&6; }
14109 else
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14111 $as_echo "no" >&6; }
14116 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14118 set dummy ${ncn_progname}; ac_word=$2
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14120 $as_echo_n "checking for $ac_word... " >&6; }
14121 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14122 $as_echo_n "(cached) " >&6
14123 else
14124 if test -n "$GDC_FOR_TARGET"; then
14125 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14126 else
14127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14128 for as_dir in $PATH
14130 IFS=$as_save_IFS
14131 test -z "$as_dir" && as_dir=.
14132 for ac_exec_ext in '' $ac_executable_extensions; do
14133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14134 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14136 break 2
14138 done
14139 done
14140 IFS=$as_save_IFS
14144 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14145 if test -n "$GDC_FOR_TARGET"; then
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14147 $as_echo "$GDC_FOR_TARGET" >&6; }
14148 else
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14150 $as_echo "no" >&6; }
14155 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14156 done
14159 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14160 set dummy gdc
14161 if test $build = $target ; then
14162 GDC_FOR_TARGET="$2"
14163 else
14164 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14166 else
14167 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14172 if test -n "$GM2_FOR_TARGET"; then
14173 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14174 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14175 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14178 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14179 for ncn_progname in gm2; do
14180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14181 set dummy ${ncn_progname}; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 $as_echo_n "checking for $ac_word... " >&6; }
14184 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 if test -n "$GM2_FOR_TARGET"; then
14188 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14189 else
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14197 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 break 2
14201 done
14202 done
14203 IFS=$as_save_IFS
14207 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14208 if test -n "$GM2_FOR_TARGET"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14210 $as_echo "$GM2_FOR_TARGET" >&6; }
14211 else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14217 done
14220 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14221 for ncn_progname in gm2; do
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14223 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14224 if test -x $with_build_time_tools/${ncn_progname}; then
14225 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14227 $as_echo "yes" >&6; }
14228 break
14229 else
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231 $as_echo "no" >&6; }
14233 done
14236 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14237 for ncn_progname in gm2; do
14238 if test -n "$ncn_target_tool_prefix"; then
14239 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14240 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 if test -n "$GM2_FOR_TARGET"; then
14247 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14248 else
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 break 2
14260 done
14261 done
14262 IFS=$as_save_IFS
14266 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14267 if test -n "$GM2_FOR_TARGET"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14269 $as_echo "$GM2_FOR_TARGET" >&6; }
14270 else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14277 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14279 set dummy ${ncn_progname}; ac_word=$2
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14281 $as_echo_n "checking for $ac_word... " >&6; }
14282 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14283 $as_echo_n "(cached) " >&6
14284 else
14285 if test -n "$GM2_FOR_TARGET"; then
14286 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14287 else
14288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14289 for as_dir in $PATH
14291 IFS=$as_save_IFS
14292 test -z "$as_dir" && as_dir=.
14293 for ac_exec_ext in '' $ac_executable_extensions; do
14294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14295 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14297 break 2
14299 done
14300 done
14301 IFS=$as_save_IFS
14305 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14306 if test -n "$GM2_FOR_TARGET"; then
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14308 $as_echo "$GM2_FOR_TARGET" >&6; }
14309 else
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311 $as_echo "no" >&6; }
14316 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14317 done
14320 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14321 set dummy gm2
14322 if test $build = $target ; then
14323 GM2_FOR_TARGET="$2"
14324 else
14325 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14327 else
14328 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14333 cat > conftest.c << \EOF
14334 #ifdef __GNUC__
14335 gcc_yay;
14336 #endif
14338 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14339 have_gcc_for_target=yes
14340 else
14341 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14342 have_gcc_for_target=no
14344 rm conftest.c
14349 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14350 if test -n "$with_build_time_tools"; then
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14352 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14353 if test -x $with_build_time_tools/ar; then
14354 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14355 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14357 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14358 else
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14360 $as_echo "no" >&6; }
14362 elif test $build != $host && test $have_gcc_for_target = yes; then
14363 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14364 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14365 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14368 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14369 # Extract the first word of "ar", so it can be a program name with args.
14370 set dummy ar; ac_word=$2
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14372 $as_echo_n "checking for $ac_word... " >&6; }
14373 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 case $AR_FOR_TARGET in
14377 [\\/]* | ?:[\\/]*)
14378 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14382 for as_dir in $gcc_cv_tool_dirs
14384 IFS=$as_save_IFS
14385 test -z "$as_dir" && as_dir=.
14386 for ac_exec_ext in '' $ac_executable_extensions; do
14387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14388 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14390 break 2
14392 done
14393 done
14394 IFS=$as_save_IFS
14397 esac
14399 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14400 if test -n "$AR_FOR_TARGET"; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14402 $as_echo "$AR_FOR_TARGET" >&6; }
14403 else
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405 $as_echo "no" >&6; }
14410 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14413 if test -n "$AR_FOR_TARGET"; then
14414 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14415 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14416 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14419 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14420 for ncn_progname in ar; do
14421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14422 set dummy ${ncn_progname}; ac_word=$2
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14424 $as_echo_n "checking for $ac_word... " >&6; }
14425 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14426 $as_echo_n "(cached) " >&6
14427 else
14428 if test -n "$AR_FOR_TARGET"; then
14429 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14430 else
14431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432 for as_dir in $PATH
14434 IFS=$as_save_IFS
14435 test -z "$as_dir" && as_dir=.
14436 for ac_exec_ext in '' $ac_executable_extensions; do
14437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14438 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14440 break 2
14442 done
14443 done
14444 IFS=$as_save_IFS
14448 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14449 if test -n "$AR_FOR_TARGET"; then
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14451 $as_echo "$AR_FOR_TARGET" >&6; }
14452 else
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14454 $as_echo "no" >&6; }
14458 done
14461 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14462 for ncn_progname in ar; do
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14464 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14465 if test -x $with_build_time_tools/${ncn_progname}; then
14466 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14468 $as_echo "yes" >&6; }
14469 break
14470 else
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472 $as_echo "no" >&6; }
14474 done
14477 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14478 for ncn_progname in ar; do
14479 if test -n "$ncn_target_tool_prefix"; then
14480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14481 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14483 $as_echo_n "checking for $ac_word... " >&6; }
14484 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14485 $as_echo_n "(cached) " >&6
14486 else
14487 if test -n "$AR_FOR_TARGET"; then
14488 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14489 else
14490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491 for as_dir in $PATH
14493 IFS=$as_save_IFS
14494 test -z "$as_dir" && as_dir=.
14495 for ac_exec_ext in '' $ac_executable_extensions; do
14496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14497 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14499 break 2
14501 done
14502 done
14503 IFS=$as_save_IFS
14507 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14508 if test -n "$AR_FOR_TARGET"; then
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14510 $as_echo "$AR_FOR_TARGET" >&6; }
14511 else
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14513 $as_echo "no" >&6; }
14518 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14520 set dummy ${ncn_progname}; ac_word=$2
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14522 $as_echo_n "checking for $ac_word... " >&6; }
14523 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14524 $as_echo_n "(cached) " >&6
14525 else
14526 if test -n "$AR_FOR_TARGET"; then
14527 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14528 else
14529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530 for as_dir in $PATH
14532 IFS=$as_save_IFS
14533 test -z "$as_dir" && as_dir=.
14534 for ac_exec_ext in '' $ac_executable_extensions; do
14535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14536 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14538 break 2
14540 done
14541 done
14542 IFS=$as_save_IFS
14546 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14547 if test -n "$AR_FOR_TARGET"; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14549 $as_echo "$AR_FOR_TARGET" >&6; }
14550 else
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14552 $as_echo "no" >&6; }
14557 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14558 done
14561 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14562 set dummy ar
14563 if test $build = $target ; then
14564 AR_FOR_TARGET="$2"
14565 else
14566 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14568 else
14569 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14572 else
14573 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14579 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14580 if test -n "$with_build_time_tools"; then
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14582 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14583 if test -x $with_build_time_tools/as; then
14584 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14585 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14587 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14588 else
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14590 $as_echo "no" >&6; }
14592 elif test $build != $host && test $have_gcc_for_target = yes; then
14593 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14594 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14595 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14598 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14599 # Extract the first word of "as", so it can be a program name with args.
14600 set dummy as; ac_word=$2
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14602 $as_echo_n "checking for $ac_word... " >&6; }
14603 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14604 $as_echo_n "(cached) " >&6
14605 else
14606 case $AS_FOR_TARGET in
14607 [\\/]* | ?:[\\/]*)
14608 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612 for as_dir in $gcc_cv_tool_dirs
14614 IFS=$as_save_IFS
14615 test -z "$as_dir" && as_dir=.
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14618 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 break 2
14622 done
14623 done
14624 IFS=$as_save_IFS
14627 esac
14629 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14630 if test -n "$AS_FOR_TARGET"; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14632 $as_echo "$AS_FOR_TARGET" >&6; }
14633 else
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635 $as_echo "no" >&6; }
14640 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14643 if test -n "$AS_FOR_TARGET"; then
14644 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14645 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14646 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14649 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14650 for ncn_progname in as; do
14651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14652 set dummy ${ncn_progname}; ac_word=$2
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14654 $as_echo_n "checking for $ac_word... " >&6; }
14655 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 if test -n "$AS_FOR_TARGET"; then
14659 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14660 else
14661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662 for as_dir in $PATH
14664 IFS=$as_save_IFS
14665 test -z "$as_dir" && as_dir=.
14666 for ac_exec_ext in '' $ac_executable_extensions; do
14667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14668 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14670 break 2
14672 done
14673 done
14674 IFS=$as_save_IFS
14678 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14679 if test -n "$AS_FOR_TARGET"; then
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14681 $as_echo "$AS_FOR_TARGET" >&6; }
14682 else
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684 $as_echo "no" >&6; }
14688 done
14691 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14692 for ncn_progname in as; do
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14694 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14695 if test -x $with_build_time_tools/${ncn_progname}; then
14696 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14698 $as_echo "yes" >&6; }
14699 break
14700 else
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14702 $as_echo "no" >&6; }
14704 done
14707 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14708 for ncn_progname in as; do
14709 if test -n "$ncn_target_tool_prefix"; then
14710 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14711 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14713 $as_echo_n "checking for $ac_word... " >&6; }
14714 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14715 $as_echo_n "(cached) " >&6
14716 else
14717 if test -n "$AS_FOR_TARGET"; then
14718 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14719 else
14720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14721 for as_dir in $PATH
14723 IFS=$as_save_IFS
14724 test -z "$as_dir" && as_dir=.
14725 for ac_exec_ext in '' $ac_executable_extensions; do
14726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14727 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14729 break 2
14731 done
14732 done
14733 IFS=$as_save_IFS
14737 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14738 if test -n "$AS_FOR_TARGET"; then
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14740 $as_echo "$AS_FOR_TARGET" >&6; }
14741 else
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14743 $as_echo "no" >&6; }
14748 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14750 set dummy ${ncn_progname}; ac_word=$2
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14752 $as_echo_n "checking for $ac_word... " >&6; }
14753 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14754 $as_echo_n "(cached) " >&6
14755 else
14756 if test -n "$AS_FOR_TARGET"; then
14757 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14758 else
14759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14760 for as_dir in $PATH
14762 IFS=$as_save_IFS
14763 test -z "$as_dir" && as_dir=.
14764 for ac_exec_ext in '' $ac_executable_extensions; do
14765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14766 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14768 break 2
14770 done
14771 done
14772 IFS=$as_save_IFS
14776 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14777 if test -n "$AS_FOR_TARGET"; then
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14779 $as_echo "$AS_FOR_TARGET" >&6; }
14780 else
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14782 $as_echo "no" >&6; }
14787 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14788 done
14791 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14792 set dummy as
14793 if test $build = $target ; then
14794 AS_FOR_TARGET="$2"
14795 else
14796 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14798 else
14799 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14802 else
14803 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14809 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14810 if test -n "$with_build_time_tools"; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14812 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14813 if test -x $with_build_time_tools/dlltool; then
14814 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14815 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14817 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14818 else
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14820 $as_echo "no" >&6; }
14822 elif test $build != $host && test $have_gcc_for_target = yes; then
14823 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14824 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14825 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14828 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14829 # Extract the first word of "dlltool", so it can be a program name with args.
14830 set dummy dlltool; ac_word=$2
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14832 $as_echo_n "checking for $ac_word... " >&6; }
14833 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14834 $as_echo_n "(cached) " >&6
14835 else
14836 case $DLLTOOL_FOR_TARGET in
14837 [\\/]* | ?:[\\/]*)
14838 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14842 for as_dir in $gcc_cv_tool_dirs
14844 IFS=$as_save_IFS
14845 test -z "$as_dir" && as_dir=.
14846 for ac_exec_ext in '' $ac_executable_extensions; do
14847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14848 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14850 break 2
14852 done
14853 done
14854 IFS=$as_save_IFS
14857 esac
14859 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14860 if test -n "$DLLTOOL_FOR_TARGET"; then
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14862 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14863 else
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14865 $as_echo "no" >&6; }
14870 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14873 if test -n "$DLLTOOL_FOR_TARGET"; then
14874 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14875 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14876 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14879 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14880 for ncn_progname in dlltool; do
14881 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14882 set dummy ${ncn_progname}; ac_word=$2
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14884 $as_echo_n "checking for $ac_word... " >&6; }
14885 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14886 $as_echo_n "(cached) " >&6
14887 else
14888 if test -n "$DLLTOOL_FOR_TARGET"; then
14889 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14890 else
14891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14892 for as_dir in $PATH
14894 IFS=$as_save_IFS
14895 test -z "$as_dir" && as_dir=.
14896 for ac_exec_ext in '' $ac_executable_extensions; do
14897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14898 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14900 break 2
14902 done
14903 done
14904 IFS=$as_save_IFS
14908 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14909 if test -n "$DLLTOOL_FOR_TARGET"; then
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14911 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14912 else
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14914 $as_echo "no" >&6; }
14918 done
14921 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14922 for ncn_progname in dlltool; do
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14924 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14925 if test -x $with_build_time_tools/${ncn_progname}; then
14926 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14928 $as_echo "yes" >&6; }
14929 break
14930 else
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932 $as_echo "no" >&6; }
14934 done
14937 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14938 for ncn_progname in dlltool; do
14939 if test -n "$ncn_target_tool_prefix"; then
14940 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14941 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14943 $as_echo_n "checking for $ac_word... " >&6; }
14944 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14945 $as_echo_n "(cached) " >&6
14946 else
14947 if test -n "$DLLTOOL_FOR_TARGET"; then
14948 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14949 else
14950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14951 for as_dir in $PATH
14953 IFS=$as_save_IFS
14954 test -z "$as_dir" && as_dir=.
14955 for ac_exec_ext in '' $ac_executable_extensions; do
14956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14957 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14959 break 2
14961 done
14962 done
14963 IFS=$as_save_IFS
14967 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14968 if test -n "$DLLTOOL_FOR_TARGET"; then
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14970 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14971 else
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14973 $as_echo "no" >&6; }
14978 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14980 set dummy ${ncn_progname}; ac_word=$2
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14982 $as_echo_n "checking for $ac_word... " >&6; }
14983 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14984 $as_echo_n "(cached) " >&6
14985 else
14986 if test -n "$DLLTOOL_FOR_TARGET"; then
14987 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14988 else
14989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14990 for as_dir in $PATH
14992 IFS=$as_save_IFS
14993 test -z "$as_dir" && as_dir=.
14994 for ac_exec_ext in '' $ac_executable_extensions; do
14995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14996 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14998 break 2
15000 done
15001 done
15002 IFS=$as_save_IFS
15006 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15007 if test -n "$DLLTOOL_FOR_TARGET"; then
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15009 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15010 else
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15012 $as_echo "no" >&6; }
15017 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15018 done
15021 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15022 set dummy dlltool
15023 if test $build = $target ; then
15024 DLLTOOL_FOR_TARGET="$2"
15025 else
15026 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15028 else
15029 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15032 else
15033 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15039 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15040 if test -n "$with_build_time_tools"; then
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
15042 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
15043 if test -x $with_build_time_tools/dsymutil; then
15044 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15045 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15047 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15048 else
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15050 $as_echo "no" >&6; }
15052 elif test $build != $host && test $have_gcc_for_target = yes; then
15053 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15054 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15055 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15058 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15059 # Extract the first word of "dsymutil", so it can be a program name with args.
15060 set dummy dsymutil; ac_word=$2
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15062 $as_echo_n "checking for $ac_word... " >&6; }
15063 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 case $DSYMUTIL_FOR_TARGET in
15067 [\\/]* | ?:[\\/]*)
15068 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15072 for as_dir in $gcc_cv_tool_dirs
15074 IFS=$as_save_IFS
15075 test -z "$as_dir" && as_dir=.
15076 for ac_exec_ext in '' $ac_executable_extensions; do
15077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15078 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15080 break 2
15082 done
15083 done
15084 IFS=$as_save_IFS
15087 esac
15089 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15090 if test -n "$DSYMUTIL_FOR_TARGET"; then
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15092 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15093 else
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15095 $as_echo "no" >&6; }
15100 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15103 if test -n "$DSYMUTIL_FOR_TARGET"; then
15104 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15105 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15106 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15109 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15110 for ncn_progname in dsymutil; do
15111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15112 set dummy ${ncn_progname}; ac_word=$2
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15114 $as_echo_n "checking for $ac_word... " >&6; }
15115 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15116 $as_echo_n "(cached) " >&6
15117 else
15118 if test -n "$DSYMUTIL_FOR_TARGET"; then
15119 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15120 else
15121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15122 for as_dir in $PATH
15124 IFS=$as_save_IFS
15125 test -z "$as_dir" && as_dir=.
15126 for ac_exec_ext in '' $ac_executable_extensions; do
15127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15128 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15130 break 2
15132 done
15133 done
15134 IFS=$as_save_IFS
15138 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15139 if test -n "$DSYMUTIL_FOR_TARGET"; then
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15141 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15142 else
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144 $as_echo "no" >&6; }
15148 done
15151 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15152 for ncn_progname in dsymutil; do
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15154 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15155 if test -x $with_build_time_tools/${ncn_progname}; then
15156 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15158 $as_echo "yes" >&6; }
15159 break
15160 else
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162 $as_echo "no" >&6; }
15164 done
15167 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15168 for ncn_progname in dsymutil; do
15169 if test -n "$ncn_target_tool_prefix"; then
15170 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15171 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15173 $as_echo_n "checking for $ac_word... " >&6; }
15174 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15175 $as_echo_n "(cached) " >&6
15176 else
15177 if test -n "$DSYMUTIL_FOR_TARGET"; then
15178 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15179 else
15180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15181 for as_dir in $PATH
15183 IFS=$as_save_IFS
15184 test -z "$as_dir" && as_dir=.
15185 for ac_exec_ext in '' $ac_executable_extensions; do
15186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15187 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15189 break 2
15191 done
15192 done
15193 IFS=$as_save_IFS
15197 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15198 if test -n "$DSYMUTIL_FOR_TARGET"; then
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15200 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15201 else
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15203 $as_echo "no" >&6; }
15208 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15210 set dummy ${ncn_progname}; ac_word=$2
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15212 $as_echo_n "checking for $ac_word... " >&6; }
15213 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15214 $as_echo_n "(cached) " >&6
15215 else
15216 if test -n "$DSYMUTIL_FOR_TARGET"; then
15217 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15218 else
15219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15220 for as_dir in $PATH
15222 IFS=$as_save_IFS
15223 test -z "$as_dir" && as_dir=.
15224 for ac_exec_ext in '' $ac_executable_extensions; do
15225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15226 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15228 break 2
15230 done
15231 done
15232 IFS=$as_save_IFS
15236 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15237 if test -n "$DSYMUTIL_FOR_TARGET"; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15239 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15240 else
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 $as_echo "no" >&6; }
15247 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15248 done
15251 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15252 set dummy dsymutil
15253 if test $build = $target ; then
15254 DSYMUTIL_FOR_TARGET="$2"
15255 else
15256 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15258 else
15259 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15262 else
15263 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15269 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15270 if test -n "$with_build_time_tools"; then
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15272 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15273 if test -x $with_build_time_tools/ld; then
15274 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15275 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15277 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15278 else
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15280 $as_echo "no" >&6; }
15282 elif test $build != $host && test $have_gcc_for_target = yes; then
15283 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15284 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15285 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15288 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15289 # Extract the first word of "ld", so it can be a program name with args.
15290 set dummy ld; ac_word=$2
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15292 $as_echo_n "checking for $ac_word... " >&6; }
15293 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15294 $as_echo_n "(cached) " >&6
15295 else
15296 case $LD_FOR_TARGET in
15297 [\\/]* | ?:[\\/]*)
15298 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15302 for as_dir in $gcc_cv_tool_dirs
15304 IFS=$as_save_IFS
15305 test -z "$as_dir" && as_dir=.
15306 for ac_exec_ext in '' $ac_executable_extensions; do
15307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15308 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15310 break 2
15312 done
15313 done
15314 IFS=$as_save_IFS
15317 esac
15319 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15320 if test -n "$LD_FOR_TARGET"; then
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15322 $as_echo "$LD_FOR_TARGET" >&6; }
15323 else
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325 $as_echo "no" >&6; }
15330 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15333 if test -n "$LD_FOR_TARGET"; then
15334 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15335 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15336 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15339 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15340 for ncn_progname in ld; do
15341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15342 set dummy ${ncn_progname}; ac_word=$2
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15344 $as_echo_n "checking for $ac_word... " >&6; }
15345 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15346 $as_echo_n "(cached) " >&6
15347 else
15348 if test -n "$LD_FOR_TARGET"; then
15349 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15350 else
15351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15352 for as_dir in $PATH
15354 IFS=$as_save_IFS
15355 test -z "$as_dir" && as_dir=.
15356 for ac_exec_ext in '' $ac_executable_extensions; do
15357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15358 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15360 break 2
15362 done
15363 done
15364 IFS=$as_save_IFS
15368 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15369 if test -n "$LD_FOR_TARGET"; then
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15371 $as_echo "$LD_FOR_TARGET" >&6; }
15372 else
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15374 $as_echo "no" >&6; }
15378 done
15381 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15382 for ncn_progname in ld; do
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15384 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15385 if test -x $with_build_time_tools/${ncn_progname}; then
15386 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15388 $as_echo "yes" >&6; }
15389 break
15390 else
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15392 $as_echo "no" >&6; }
15394 done
15397 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15398 for ncn_progname in ld; do
15399 if test -n "$ncn_target_tool_prefix"; then
15400 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15401 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15403 $as_echo_n "checking for $ac_word... " >&6; }
15404 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15405 $as_echo_n "(cached) " >&6
15406 else
15407 if test -n "$LD_FOR_TARGET"; then
15408 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15409 else
15410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15411 for as_dir in $PATH
15413 IFS=$as_save_IFS
15414 test -z "$as_dir" && as_dir=.
15415 for ac_exec_ext in '' $ac_executable_extensions; do
15416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15417 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15419 break 2
15421 done
15422 done
15423 IFS=$as_save_IFS
15427 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15428 if test -n "$LD_FOR_TARGET"; then
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15430 $as_echo "$LD_FOR_TARGET" >&6; }
15431 else
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15433 $as_echo "no" >&6; }
15438 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15440 set dummy ${ncn_progname}; ac_word=$2
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15442 $as_echo_n "checking for $ac_word... " >&6; }
15443 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15444 $as_echo_n "(cached) " >&6
15445 else
15446 if test -n "$LD_FOR_TARGET"; then
15447 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15448 else
15449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15450 for as_dir in $PATH
15452 IFS=$as_save_IFS
15453 test -z "$as_dir" && as_dir=.
15454 for ac_exec_ext in '' $ac_executable_extensions; do
15455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15456 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15458 break 2
15460 done
15461 done
15462 IFS=$as_save_IFS
15466 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15467 if test -n "$LD_FOR_TARGET"; then
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15469 $as_echo "$LD_FOR_TARGET" >&6; }
15470 else
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15472 $as_echo "no" >&6; }
15477 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15478 done
15481 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15482 set dummy ld
15483 if test $build = $target ; then
15484 LD_FOR_TARGET="$2"
15485 else
15486 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15488 else
15489 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15492 else
15493 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15499 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15500 if test -n "$with_build_time_tools"; then
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15502 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15503 if test -x $with_build_time_tools/lipo; then
15504 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15505 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15507 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15508 else
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15510 $as_echo "no" >&6; }
15512 elif test $build != $host && test $have_gcc_for_target = yes; then
15513 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15514 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15515 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15518 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15519 # Extract the first word of "lipo", so it can be a program name with args.
15520 set dummy lipo; ac_word=$2
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15522 $as_echo_n "checking for $ac_word... " >&6; }
15523 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15524 $as_echo_n "(cached) " >&6
15525 else
15526 case $LIPO_FOR_TARGET in
15527 [\\/]* | ?:[\\/]*)
15528 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15532 for as_dir in $gcc_cv_tool_dirs
15534 IFS=$as_save_IFS
15535 test -z "$as_dir" && as_dir=.
15536 for ac_exec_ext in '' $ac_executable_extensions; do
15537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15538 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15540 break 2
15542 done
15543 done
15544 IFS=$as_save_IFS
15547 esac
15549 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15550 if test -n "$LIPO_FOR_TARGET"; then
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15552 $as_echo "$LIPO_FOR_TARGET" >&6; }
15553 else
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15555 $as_echo "no" >&6; }
15560 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15563 if test -n "$LIPO_FOR_TARGET"; then
15564 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15565 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15566 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15569 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15570 for ncn_progname in lipo; do
15571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15572 set dummy ${ncn_progname}; ac_word=$2
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15574 $as_echo_n "checking for $ac_word... " >&6; }
15575 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15576 $as_echo_n "(cached) " >&6
15577 else
15578 if test -n "$LIPO_FOR_TARGET"; then
15579 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15580 else
15581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15582 for as_dir in $PATH
15584 IFS=$as_save_IFS
15585 test -z "$as_dir" && as_dir=.
15586 for ac_exec_ext in '' $ac_executable_extensions; do
15587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15588 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15590 break 2
15592 done
15593 done
15594 IFS=$as_save_IFS
15598 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15599 if test -n "$LIPO_FOR_TARGET"; then
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15601 $as_echo "$LIPO_FOR_TARGET" >&6; }
15602 else
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15604 $as_echo "no" >&6; }
15608 done
15611 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15612 for ncn_progname in lipo; do
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15614 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15615 if test -x $with_build_time_tools/${ncn_progname}; then
15616 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15618 $as_echo "yes" >&6; }
15619 break
15620 else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15622 $as_echo "no" >&6; }
15624 done
15627 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15628 for ncn_progname in lipo; do
15629 if test -n "$ncn_target_tool_prefix"; then
15630 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15631 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15633 $as_echo_n "checking for $ac_word... " >&6; }
15634 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15635 $as_echo_n "(cached) " >&6
15636 else
15637 if test -n "$LIPO_FOR_TARGET"; then
15638 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15639 else
15640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15641 for as_dir in $PATH
15643 IFS=$as_save_IFS
15644 test -z "$as_dir" && as_dir=.
15645 for ac_exec_ext in '' $ac_executable_extensions; do
15646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15647 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15649 break 2
15651 done
15652 done
15653 IFS=$as_save_IFS
15657 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15658 if test -n "$LIPO_FOR_TARGET"; then
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15660 $as_echo "$LIPO_FOR_TARGET" >&6; }
15661 else
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15663 $as_echo "no" >&6; }
15668 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15670 set dummy ${ncn_progname}; ac_word=$2
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15672 $as_echo_n "checking for $ac_word... " >&6; }
15673 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15674 $as_echo_n "(cached) " >&6
15675 else
15676 if test -n "$LIPO_FOR_TARGET"; then
15677 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15678 else
15679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15680 for as_dir in $PATH
15682 IFS=$as_save_IFS
15683 test -z "$as_dir" && as_dir=.
15684 for ac_exec_ext in '' $ac_executable_extensions; do
15685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15686 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15688 break 2
15690 done
15691 done
15692 IFS=$as_save_IFS
15696 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15697 if test -n "$LIPO_FOR_TARGET"; then
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15699 $as_echo "$LIPO_FOR_TARGET" >&6; }
15700 else
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15702 $as_echo "no" >&6; }
15707 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15708 done
15711 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15712 set dummy lipo
15713 if test $build = $target ; then
15714 LIPO_FOR_TARGET="$2"
15715 else
15716 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15718 else
15719 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15722 else
15723 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15729 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15730 if test -n "$with_build_time_tools"; then
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15732 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15733 if test -x $with_build_time_tools/nm; then
15734 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15735 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15737 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15738 else
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15740 $as_echo "no" >&6; }
15742 elif test $build != $host && test $have_gcc_for_target = yes; then
15743 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15744 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15745 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15748 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15749 # Extract the first word of "nm", so it can be a program name with args.
15750 set dummy nm; ac_word=$2
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15752 $as_echo_n "checking for $ac_word... " >&6; }
15753 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15754 $as_echo_n "(cached) " >&6
15755 else
15756 case $NM_FOR_TARGET in
15757 [\\/]* | ?:[\\/]*)
15758 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15762 for as_dir in $gcc_cv_tool_dirs
15764 IFS=$as_save_IFS
15765 test -z "$as_dir" && as_dir=.
15766 for ac_exec_ext in '' $ac_executable_extensions; do
15767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15768 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15770 break 2
15772 done
15773 done
15774 IFS=$as_save_IFS
15777 esac
15779 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15780 if test -n "$NM_FOR_TARGET"; then
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15782 $as_echo "$NM_FOR_TARGET" >&6; }
15783 else
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15785 $as_echo "no" >&6; }
15790 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15793 if test -n "$NM_FOR_TARGET"; then
15794 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15795 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15796 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15799 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15800 for ncn_progname in nm; do
15801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15802 set dummy ${ncn_progname}; ac_word=$2
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15804 $as_echo_n "checking for $ac_word... " >&6; }
15805 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15806 $as_echo_n "(cached) " >&6
15807 else
15808 if test -n "$NM_FOR_TARGET"; then
15809 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15810 else
15811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15812 for as_dir in $PATH
15814 IFS=$as_save_IFS
15815 test -z "$as_dir" && as_dir=.
15816 for ac_exec_ext in '' $ac_executable_extensions; do
15817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15818 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15820 break 2
15822 done
15823 done
15824 IFS=$as_save_IFS
15828 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15829 if test -n "$NM_FOR_TARGET"; then
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15831 $as_echo "$NM_FOR_TARGET" >&6; }
15832 else
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15834 $as_echo "no" >&6; }
15838 done
15841 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15842 for ncn_progname in nm; do
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15844 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15845 if test -x $with_build_time_tools/${ncn_progname}; then
15846 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15848 $as_echo "yes" >&6; }
15849 break
15850 else
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15852 $as_echo "no" >&6; }
15854 done
15857 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15858 for ncn_progname in nm; do
15859 if test -n "$ncn_target_tool_prefix"; then
15860 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15861 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15863 $as_echo_n "checking for $ac_word... " >&6; }
15864 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15865 $as_echo_n "(cached) " >&6
15866 else
15867 if test -n "$NM_FOR_TARGET"; then
15868 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15869 else
15870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15871 for as_dir in $PATH
15873 IFS=$as_save_IFS
15874 test -z "$as_dir" && as_dir=.
15875 for ac_exec_ext in '' $ac_executable_extensions; do
15876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15877 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15879 break 2
15881 done
15882 done
15883 IFS=$as_save_IFS
15887 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15888 if test -n "$NM_FOR_TARGET"; then
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15890 $as_echo "$NM_FOR_TARGET" >&6; }
15891 else
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15893 $as_echo "no" >&6; }
15898 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15900 set dummy ${ncn_progname}; ac_word=$2
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15902 $as_echo_n "checking for $ac_word... " >&6; }
15903 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15904 $as_echo_n "(cached) " >&6
15905 else
15906 if test -n "$NM_FOR_TARGET"; then
15907 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15908 else
15909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15910 for as_dir in $PATH
15912 IFS=$as_save_IFS
15913 test -z "$as_dir" && as_dir=.
15914 for ac_exec_ext in '' $ac_executable_extensions; do
15915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15916 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15918 break 2
15920 done
15921 done
15922 IFS=$as_save_IFS
15926 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15927 if test -n "$NM_FOR_TARGET"; then
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15929 $as_echo "$NM_FOR_TARGET" >&6; }
15930 else
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15932 $as_echo "no" >&6; }
15937 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15938 done
15941 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15942 set dummy nm
15943 if test $build = $target ; then
15944 NM_FOR_TARGET="$2"
15945 else
15946 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15948 else
15949 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15952 else
15953 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15959 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15960 if test -n "$with_build_time_tools"; then
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15962 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15963 if test -x $with_build_time_tools/objcopy; then
15964 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15965 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15967 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15968 else
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15970 $as_echo "no" >&6; }
15972 elif test $build != $host && test $have_gcc_for_target = yes; then
15973 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15974 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15975 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15978 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15979 # Extract the first word of "objcopy", so it can be a program name with args.
15980 set dummy objcopy; ac_word=$2
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15982 $as_echo_n "checking for $ac_word... " >&6; }
15983 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15984 $as_echo_n "(cached) " >&6
15985 else
15986 case $OBJCOPY_FOR_TARGET in
15987 [\\/]* | ?:[\\/]*)
15988 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15992 for as_dir in $gcc_cv_tool_dirs
15994 IFS=$as_save_IFS
15995 test -z "$as_dir" && as_dir=.
15996 for ac_exec_ext in '' $ac_executable_extensions; do
15997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15998 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16000 break 2
16002 done
16003 done
16004 IFS=$as_save_IFS
16007 esac
16009 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16010 if test -n "$OBJCOPY_FOR_TARGET"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16012 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16013 else
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16020 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16023 if test -n "$OBJCOPY_FOR_TARGET"; then
16024 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16025 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16026 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16029 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16030 for ncn_progname in objcopy; do
16031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16032 set dummy ${ncn_progname}; ac_word=$2
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16034 $as_echo_n "checking for $ac_word... " >&6; }
16035 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16036 $as_echo_n "(cached) " >&6
16037 else
16038 if test -n "$OBJCOPY_FOR_TARGET"; then
16039 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16040 else
16041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16042 for as_dir in $PATH
16044 IFS=$as_save_IFS
16045 test -z "$as_dir" && as_dir=.
16046 for ac_exec_ext in '' $ac_executable_extensions; do
16047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16048 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16050 break 2
16052 done
16053 done
16054 IFS=$as_save_IFS
16058 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16059 if test -n "$OBJCOPY_FOR_TARGET"; then
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16061 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16062 else
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16064 $as_echo "no" >&6; }
16068 done
16071 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16072 for ncn_progname in objcopy; do
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16074 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16075 if test -x $with_build_time_tools/${ncn_progname}; then
16076 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16078 $as_echo "yes" >&6; }
16079 break
16080 else
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082 $as_echo "no" >&6; }
16084 done
16087 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16088 for ncn_progname in objcopy; do
16089 if test -n "$ncn_target_tool_prefix"; then
16090 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16091 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16093 $as_echo_n "checking for $ac_word... " >&6; }
16094 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16095 $as_echo_n "(cached) " >&6
16096 else
16097 if test -n "$OBJCOPY_FOR_TARGET"; then
16098 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16099 else
16100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16101 for as_dir in $PATH
16103 IFS=$as_save_IFS
16104 test -z "$as_dir" && as_dir=.
16105 for ac_exec_ext in '' $ac_executable_extensions; do
16106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16107 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16109 break 2
16111 done
16112 done
16113 IFS=$as_save_IFS
16117 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16118 if test -n "$OBJCOPY_FOR_TARGET"; then
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16120 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16121 else
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16123 $as_echo "no" >&6; }
16128 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16130 set dummy ${ncn_progname}; ac_word=$2
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16132 $as_echo_n "checking for $ac_word... " >&6; }
16133 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16134 $as_echo_n "(cached) " >&6
16135 else
16136 if test -n "$OBJCOPY_FOR_TARGET"; then
16137 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16138 else
16139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16140 for as_dir in $PATH
16142 IFS=$as_save_IFS
16143 test -z "$as_dir" && as_dir=.
16144 for ac_exec_ext in '' $ac_executable_extensions; do
16145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16146 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16148 break 2
16150 done
16151 done
16152 IFS=$as_save_IFS
16156 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16157 if test -n "$OBJCOPY_FOR_TARGET"; then
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16159 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16160 else
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16162 $as_echo "no" >&6; }
16167 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16168 done
16171 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16172 set dummy objcopy
16173 if test $build = $target ; then
16174 OBJCOPY_FOR_TARGET="$2"
16175 else
16176 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16178 else
16179 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16182 else
16183 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16189 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16190 if test -n "$with_build_time_tools"; then
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
16192 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
16193 if test -x $with_build_time_tools/objdump; then
16194 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16195 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16197 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16198 else
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16200 $as_echo "no" >&6; }
16202 elif test $build != $host && test $have_gcc_for_target = yes; then
16203 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16204 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16205 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16208 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16209 # Extract the first word of "objdump", so it can be a program name with args.
16210 set dummy objdump; ac_word=$2
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16212 $as_echo_n "checking for $ac_word... " >&6; }
16213 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16214 $as_echo_n "(cached) " >&6
16215 else
16216 case $OBJDUMP_FOR_TARGET in
16217 [\\/]* | ?:[\\/]*)
16218 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16222 for as_dir in $gcc_cv_tool_dirs
16224 IFS=$as_save_IFS
16225 test -z "$as_dir" && as_dir=.
16226 for ac_exec_ext in '' $ac_executable_extensions; do
16227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16228 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16230 break 2
16232 done
16233 done
16234 IFS=$as_save_IFS
16237 esac
16239 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16240 if test -n "$OBJDUMP_FOR_TARGET"; then
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16242 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16243 else
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16245 $as_echo "no" >&6; }
16250 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16253 if test -n "$OBJDUMP_FOR_TARGET"; then
16254 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16255 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16256 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16259 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16260 for ncn_progname in objdump; do
16261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16262 set dummy ${ncn_progname}; ac_word=$2
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16264 $as_echo_n "checking for $ac_word... " >&6; }
16265 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16266 $as_echo_n "(cached) " >&6
16267 else
16268 if test -n "$OBJDUMP_FOR_TARGET"; then
16269 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16270 else
16271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16272 for as_dir in $PATH
16274 IFS=$as_save_IFS
16275 test -z "$as_dir" && as_dir=.
16276 for ac_exec_ext in '' $ac_executable_extensions; do
16277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16278 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16280 break 2
16282 done
16283 done
16284 IFS=$as_save_IFS
16288 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16289 if test -n "$OBJDUMP_FOR_TARGET"; then
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16291 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16292 else
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16294 $as_echo "no" >&6; }
16298 done
16301 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16302 for ncn_progname in objdump; do
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16304 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16305 if test -x $with_build_time_tools/${ncn_progname}; then
16306 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16308 $as_echo "yes" >&6; }
16309 break
16310 else
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312 $as_echo "no" >&6; }
16314 done
16317 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16318 for ncn_progname in objdump; do
16319 if test -n "$ncn_target_tool_prefix"; then
16320 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16321 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16323 $as_echo_n "checking for $ac_word... " >&6; }
16324 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16325 $as_echo_n "(cached) " >&6
16326 else
16327 if test -n "$OBJDUMP_FOR_TARGET"; then
16328 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16329 else
16330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16331 for as_dir in $PATH
16333 IFS=$as_save_IFS
16334 test -z "$as_dir" && as_dir=.
16335 for ac_exec_ext in '' $ac_executable_extensions; do
16336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16337 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16339 break 2
16341 done
16342 done
16343 IFS=$as_save_IFS
16347 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16348 if test -n "$OBJDUMP_FOR_TARGET"; then
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16350 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16351 else
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16353 $as_echo "no" >&6; }
16358 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16360 set dummy ${ncn_progname}; ac_word=$2
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16362 $as_echo_n "checking for $ac_word... " >&6; }
16363 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16364 $as_echo_n "(cached) " >&6
16365 else
16366 if test -n "$OBJDUMP_FOR_TARGET"; then
16367 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16368 else
16369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16370 for as_dir in $PATH
16372 IFS=$as_save_IFS
16373 test -z "$as_dir" && as_dir=.
16374 for ac_exec_ext in '' $ac_executable_extensions; do
16375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16376 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16378 break 2
16380 done
16381 done
16382 IFS=$as_save_IFS
16386 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16387 if test -n "$OBJDUMP_FOR_TARGET"; then
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16389 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16390 else
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16392 $as_echo "no" >&6; }
16397 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16398 done
16401 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16402 set dummy objdump
16403 if test $build = $target ; then
16404 OBJDUMP_FOR_TARGET="$2"
16405 else
16406 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16408 else
16409 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16412 else
16413 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16419 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16420 if test -n "$with_build_time_tools"; then
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16422 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16423 if test -x $with_build_time_tools/otool; then
16424 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16425 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16427 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16428 else
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16430 $as_echo "no" >&6; }
16432 elif test $build != $host && test $have_gcc_for_target = yes; then
16433 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16434 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16435 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16438 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16439 # Extract the first word of "otool", so it can be a program name with args.
16440 set dummy otool; ac_word=$2
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16442 $as_echo_n "checking for $ac_word... " >&6; }
16443 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16444 $as_echo_n "(cached) " >&6
16445 else
16446 case $OTOOL_FOR_TARGET in
16447 [\\/]* | ?:[\\/]*)
16448 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16452 for as_dir in $gcc_cv_tool_dirs
16454 IFS=$as_save_IFS
16455 test -z "$as_dir" && as_dir=.
16456 for ac_exec_ext in '' $ac_executable_extensions; do
16457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16458 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16460 break 2
16462 done
16463 done
16464 IFS=$as_save_IFS
16467 esac
16469 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16470 if test -n "$OTOOL_FOR_TARGET"; then
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16472 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16473 else
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16475 $as_echo "no" >&6; }
16480 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16483 if test -n "$OTOOL_FOR_TARGET"; then
16484 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16485 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16486 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16489 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16490 for ncn_progname in otool; do
16491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16492 set dummy ${ncn_progname}; ac_word=$2
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16494 $as_echo_n "checking for $ac_word... " >&6; }
16495 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16496 $as_echo_n "(cached) " >&6
16497 else
16498 if test -n "$OTOOL_FOR_TARGET"; then
16499 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16500 else
16501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16502 for as_dir in $PATH
16504 IFS=$as_save_IFS
16505 test -z "$as_dir" && as_dir=.
16506 for ac_exec_ext in '' $ac_executable_extensions; do
16507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16508 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16510 break 2
16512 done
16513 done
16514 IFS=$as_save_IFS
16518 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16519 if test -n "$OTOOL_FOR_TARGET"; then
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16521 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16522 else
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16524 $as_echo "no" >&6; }
16528 done
16531 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16532 for ncn_progname in otool; do
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16534 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16535 if test -x $with_build_time_tools/${ncn_progname}; then
16536 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16538 $as_echo "yes" >&6; }
16539 break
16540 else
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542 $as_echo "no" >&6; }
16544 done
16547 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16548 for ncn_progname in otool; do
16549 if test -n "$ncn_target_tool_prefix"; then
16550 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16551 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16553 $as_echo_n "checking for $ac_word... " >&6; }
16554 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16555 $as_echo_n "(cached) " >&6
16556 else
16557 if test -n "$OTOOL_FOR_TARGET"; then
16558 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16559 else
16560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16561 for as_dir in $PATH
16563 IFS=$as_save_IFS
16564 test -z "$as_dir" && as_dir=.
16565 for ac_exec_ext in '' $ac_executable_extensions; do
16566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16567 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16569 break 2
16571 done
16572 done
16573 IFS=$as_save_IFS
16577 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16578 if test -n "$OTOOL_FOR_TARGET"; then
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16580 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16581 else
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16583 $as_echo "no" >&6; }
16588 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16590 set dummy ${ncn_progname}; ac_word=$2
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16592 $as_echo_n "checking for $ac_word... " >&6; }
16593 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16594 $as_echo_n "(cached) " >&6
16595 else
16596 if test -n "$OTOOL_FOR_TARGET"; then
16597 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16598 else
16599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16600 for as_dir in $PATH
16602 IFS=$as_save_IFS
16603 test -z "$as_dir" && as_dir=.
16604 for ac_exec_ext in '' $ac_executable_extensions; do
16605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16606 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16608 break 2
16610 done
16611 done
16612 IFS=$as_save_IFS
16616 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16617 if test -n "$OTOOL_FOR_TARGET"; then
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16619 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16620 else
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16622 $as_echo "no" >&6; }
16627 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16628 done
16631 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16632 set dummy otool
16633 if test $build = $target ; then
16634 OTOOL_FOR_TARGET="$2"
16635 else
16636 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16638 else
16639 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16642 else
16643 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16649 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16650 if test -n "$with_build_time_tools"; then
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16652 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16653 if test -x $with_build_time_tools/ranlib; then
16654 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16655 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16657 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16658 else
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16660 $as_echo "no" >&6; }
16662 elif test $build != $host && test $have_gcc_for_target = yes; then
16663 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16664 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16665 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16668 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16669 # Extract the first word of "ranlib", so it can be a program name with args.
16670 set dummy ranlib; ac_word=$2
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16672 $as_echo_n "checking for $ac_word... " >&6; }
16673 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16674 $as_echo_n "(cached) " >&6
16675 else
16676 case $RANLIB_FOR_TARGET in
16677 [\\/]* | ?:[\\/]*)
16678 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16682 for as_dir in $gcc_cv_tool_dirs
16684 IFS=$as_save_IFS
16685 test -z "$as_dir" && as_dir=.
16686 for ac_exec_ext in '' $ac_executable_extensions; do
16687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16688 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16690 break 2
16692 done
16693 done
16694 IFS=$as_save_IFS
16697 esac
16699 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16700 if test -n "$RANLIB_FOR_TARGET"; then
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16702 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16703 else
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16705 $as_echo "no" >&6; }
16710 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16713 if test -n "$RANLIB_FOR_TARGET"; then
16714 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16715 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16716 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16719 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16720 for ncn_progname in ranlib; do
16721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16722 set dummy ${ncn_progname}; ac_word=$2
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16724 $as_echo_n "checking for $ac_word... " >&6; }
16725 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16726 $as_echo_n "(cached) " >&6
16727 else
16728 if test -n "$RANLIB_FOR_TARGET"; then
16729 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16730 else
16731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16732 for as_dir in $PATH
16734 IFS=$as_save_IFS
16735 test -z "$as_dir" && as_dir=.
16736 for ac_exec_ext in '' $ac_executable_extensions; do
16737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16738 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16740 break 2
16742 done
16743 done
16744 IFS=$as_save_IFS
16748 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16749 if test -n "$RANLIB_FOR_TARGET"; then
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16751 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16752 else
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16754 $as_echo "no" >&6; }
16758 done
16761 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16762 for ncn_progname in ranlib; do
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16764 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16765 if test -x $with_build_time_tools/${ncn_progname}; then
16766 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16768 $as_echo "yes" >&6; }
16769 break
16770 else
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16772 $as_echo "no" >&6; }
16774 done
16777 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16778 for ncn_progname in ranlib; do
16779 if test -n "$ncn_target_tool_prefix"; then
16780 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16781 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16783 $as_echo_n "checking for $ac_word... " >&6; }
16784 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16785 $as_echo_n "(cached) " >&6
16786 else
16787 if test -n "$RANLIB_FOR_TARGET"; then
16788 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16789 else
16790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16791 for as_dir in $PATH
16793 IFS=$as_save_IFS
16794 test -z "$as_dir" && as_dir=.
16795 for ac_exec_ext in '' $ac_executable_extensions; do
16796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16797 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16799 break 2
16801 done
16802 done
16803 IFS=$as_save_IFS
16807 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16808 if test -n "$RANLIB_FOR_TARGET"; then
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16810 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16811 else
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16813 $as_echo "no" >&6; }
16818 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16820 set dummy ${ncn_progname}; ac_word=$2
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16822 $as_echo_n "checking for $ac_word... " >&6; }
16823 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16824 $as_echo_n "(cached) " >&6
16825 else
16826 if test -n "$RANLIB_FOR_TARGET"; then
16827 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16828 else
16829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16830 for as_dir in $PATH
16832 IFS=$as_save_IFS
16833 test -z "$as_dir" && as_dir=.
16834 for ac_exec_ext in '' $ac_executable_extensions; do
16835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16836 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16838 break 2
16840 done
16841 done
16842 IFS=$as_save_IFS
16846 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16847 if test -n "$RANLIB_FOR_TARGET"; then
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16849 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16850 else
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16852 $as_echo "no" >&6; }
16857 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16858 done
16861 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16862 set dummy ranlib
16863 if test $build = $target ; then
16864 RANLIB_FOR_TARGET="$2"
16865 else
16866 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16868 else
16869 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16872 else
16873 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16879 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16880 if test -n "$with_build_time_tools"; then
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16882 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16883 if test -x $with_build_time_tools/readelf; then
16884 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16885 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16887 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16888 else
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16890 $as_echo "no" >&6; }
16892 elif test $build != $host && test $have_gcc_for_target = yes; then
16893 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16894 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16895 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16898 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16899 # Extract the first word of "readelf", so it can be a program name with args.
16900 set dummy readelf; ac_word=$2
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16902 $as_echo_n "checking for $ac_word... " >&6; }
16903 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16904 $as_echo_n "(cached) " >&6
16905 else
16906 case $READELF_FOR_TARGET in
16907 [\\/]* | ?:[\\/]*)
16908 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16912 for as_dir in $gcc_cv_tool_dirs
16914 IFS=$as_save_IFS
16915 test -z "$as_dir" && as_dir=.
16916 for ac_exec_ext in '' $ac_executable_extensions; do
16917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16918 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16920 break 2
16922 done
16923 done
16924 IFS=$as_save_IFS
16927 esac
16929 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16930 if test -n "$READELF_FOR_TARGET"; then
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16932 $as_echo "$READELF_FOR_TARGET" >&6; }
16933 else
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16935 $as_echo "no" >&6; }
16940 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16943 if test -n "$READELF_FOR_TARGET"; then
16944 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16945 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16946 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16949 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16950 for ncn_progname in readelf; do
16951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16952 set dummy ${ncn_progname}; ac_word=$2
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16954 $as_echo_n "checking for $ac_word... " >&6; }
16955 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16956 $as_echo_n "(cached) " >&6
16957 else
16958 if test -n "$READELF_FOR_TARGET"; then
16959 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16960 else
16961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16962 for as_dir in $PATH
16964 IFS=$as_save_IFS
16965 test -z "$as_dir" && as_dir=.
16966 for ac_exec_ext in '' $ac_executable_extensions; do
16967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16968 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16970 break 2
16972 done
16973 done
16974 IFS=$as_save_IFS
16978 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16979 if test -n "$READELF_FOR_TARGET"; then
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16981 $as_echo "$READELF_FOR_TARGET" >&6; }
16982 else
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16984 $as_echo "no" >&6; }
16988 done
16991 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16992 for ncn_progname in readelf; do
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16994 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16995 if test -x $with_build_time_tools/${ncn_progname}; then
16996 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16998 $as_echo "yes" >&6; }
16999 break
17000 else
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17002 $as_echo "no" >&6; }
17004 done
17007 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17008 for ncn_progname in readelf; do
17009 if test -n "$ncn_target_tool_prefix"; then
17010 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17011 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17013 $as_echo_n "checking for $ac_word... " >&6; }
17014 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17015 $as_echo_n "(cached) " >&6
17016 else
17017 if test -n "$READELF_FOR_TARGET"; then
17018 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17019 else
17020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17021 for as_dir in $PATH
17023 IFS=$as_save_IFS
17024 test -z "$as_dir" && as_dir=.
17025 for ac_exec_ext in '' $ac_executable_extensions; do
17026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17027 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17029 break 2
17031 done
17032 done
17033 IFS=$as_save_IFS
17037 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17038 if test -n "$READELF_FOR_TARGET"; then
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17040 $as_echo "$READELF_FOR_TARGET" >&6; }
17041 else
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17043 $as_echo "no" >&6; }
17048 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17050 set dummy ${ncn_progname}; ac_word=$2
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17052 $as_echo_n "checking for $ac_word... " >&6; }
17053 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17054 $as_echo_n "(cached) " >&6
17055 else
17056 if test -n "$READELF_FOR_TARGET"; then
17057 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17058 else
17059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17060 for as_dir in $PATH
17062 IFS=$as_save_IFS
17063 test -z "$as_dir" && as_dir=.
17064 for ac_exec_ext in '' $ac_executable_extensions; do
17065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17066 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17068 break 2
17070 done
17071 done
17072 IFS=$as_save_IFS
17076 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17077 if test -n "$READELF_FOR_TARGET"; then
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17079 $as_echo "$READELF_FOR_TARGET" >&6; }
17080 else
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17082 $as_echo "no" >&6; }
17087 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17088 done
17091 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17092 set dummy readelf
17093 if test $build = $target ; then
17094 READELF_FOR_TARGET="$2"
17095 else
17096 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17098 else
17099 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17102 else
17103 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17109 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17110 if test -n "$with_build_time_tools"; then
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
17112 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
17113 if test -x $with_build_time_tools/strip; then
17114 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17115 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
17117 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17118 else
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17120 $as_echo "no" >&6; }
17122 elif test $build != $host && test $have_gcc_for_target = yes; then
17123 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17124 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17125 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17128 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17129 # Extract the first word of "strip", so it can be a program name with args.
17130 set dummy strip; ac_word=$2
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17132 $as_echo_n "checking for $ac_word... " >&6; }
17133 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17134 $as_echo_n "(cached) " >&6
17135 else
17136 case $STRIP_FOR_TARGET in
17137 [\\/]* | ?:[\\/]*)
17138 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17142 for as_dir in $gcc_cv_tool_dirs
17144 IFS=$as_save_IFS
17145 test -z "$as_dir" && as_dir=.
17146 for ac_exec_ext in '' $ac_executable_extensions; do
17147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17148 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17150 break 2
17152 done
17153 done
17154 IFS=$as_save_IFS
17157 esac
17159 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17160 if test -n "$STRIP_FOR_TARGET"; then
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17162 $as_echo "$STRIP_FOR_TARGET" >&6; }
17163 else
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17165 $as_echo "no" >&6; }
17170 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17173 if test -n "$STRIP_FOR_TARGET"; then
17174 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17175 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17176 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17179 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17180 for ncn_progname in strip; do
17181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17182 set dummy ${ncn_progname}; ac_word=$2
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17184 $as_echo_n "checking for $ac_word... " >&6; }
17185 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17186 $as_echo_n "(cached) " >&6
17187 else
17188 if test -n "$STRIP_FOR_TARGET"; then
17189 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17190 else
17191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17192 for as_dir in $PATH
17194 IFS=$as_save_IFS
17195 test -z "$as_dir" && as_dir=.
17196 for ac_exec_ext in '' $ac_executable_extensions; do
17197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17198 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17200 break 2
17202 done
17203 done
17204 IFS=$as_save_IFS
17208 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17209 if test -n "$STRIP_FOR_TARGET"; then
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17211 $as_echo "$STRIP_FOR_TARGET" >&6; }
17212 else
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17214 $as_echo "no" >&6; }
17218 done
17221 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17222 for ncn_progname in strip; do
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17224 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17225 if test -x $with_build_time_tools/${ncn_progname}; then
17226 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17228 $as_echo "yes" >&6; }
17229 break
17230 else
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17232 $as_echo "no" >&6; }
17234 done
17237 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17238 for ncn_progname in strip; do
17239 if test -n "$ncn_target_tool_prefix"; then
17240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17241 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17243 $as_echo_n "checking for $ac_word... " >&6; }
17244 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17245 $as_echo_n "(cached) " >&6
17246 else
17247 if test -n "$STRIP_FOR_TARGET"; then
17248 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17249 else
17250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17251 for as_dir in $PATH
17253 IFS=$as_save_IFS
17254 test -z "$as_dir" && as_dir=.
17255 for ac_exec_ext in '' $ac_executable_extensions; do
17256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17257 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17259 break 2
17261 done
17262 done
17263 IFS=$as_save_IFS
17267 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17268 if test -n "$STRIP_FOR_TARGET"; then
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17270 $as_echo "$STRIP_FOR_TARGET" >&6; }
17271 else
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17273 $as_echo "no" >&6; }
17278 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17280 set dummy ${ncn_progname}; ac_word=$2
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17282 $as_echo_n "checking for $ac_word... " >&6; }
17283 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17284 $as_echo_n "(cached) " >&6
17285 else
17286 if test -n "$STRIP_FOR_TARGET"; then
17287 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17288 else
17289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17290 for as_dir in $PATH
17292 IFS=$as_save_IFS
17293 test -z "$as_dir" && as_dir=.
17294 for ac_exec_ext in '' $ac_executable_extensions; do
17295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17296 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17298 break 2
17300 done
17301 done
17302 IFS=$as_save_IFS
17306 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17307 if test -n "$STRIP_FOR_TARGET"; then
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17309 $as_echo "$STRIP_FOR_TARGET" >&6; }
17310 else
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17312 $as_echo "no" >&6; }
17317 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17318 done
17321 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17322 set dummy strip
17323 if test $build = $target ; then
17324 STRIP_FOR_TARGET="$2"
17325 else
17326 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17328 else
17329 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17332 else
17333 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17339 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17340 if test -n "$with_build_time_tools"; then
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17342 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17343 if test -x $with_build_time_tools/windres; then
17344 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17345 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17347 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17348 else
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17350 $as_echo "no" >&6; }
17352 elif test $build != $host && test $have_gcc_for_target = yes; then
17353 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17354 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17355 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17358 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17359 # Extract the first word of "windres", so it can be a program name with args.
17360 set dummy windres; ac_word=$2
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17362 $as_echo_n "checking for $ac_word... " >&6; }
17363 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17364 $as_echo_n "(cached) " >&6
17365 else
17366 case $WINDRES_FOR_TARGET in
17367 [\\/]* | ?:[\\/]*)
17368 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17372 for as_dir in $gcc_cv_tool_dirs
17374 IFS=$as_save_IFS
17375 test -z "$as_dir" && as_dir=.
17376 for ac_exec_ext in '' $ac_executable_extensions; do
17377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17378 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17380 break 2
17382 done
17383 done
17384 IFS=$as_save_IFS
17387 esac
17389 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17390 if test -n "$WINDRES_FOR_TARGET"; then
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17392 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17393 else
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17395 $as_echo "no" >&6; }
17400 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17403 if test -n "$WINDRES_FOR_TARGET"; then
17404 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17405 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17406 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17409 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17410 for ncn_progname in windres; do
17411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17412 set dummy ${ncn_progname}; ac_word=$2
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17414 $as_echo_n "checking for $ac_word... " >&6; }
17415 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17416 $as_echo_n "(cached) " >&6
17417 else
17418 if test -n "$WINDRES_FOR_TARGET"; then
17419 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17420 else
17421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17422 for as_dir in $PATH
17424 IFS=$as_save_IFS
17425 test -z "$as_dir" && as_dir=.
17426 for ac_exec_ext in '' $ac_executable_extensions; do
17427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17428 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17430 break 2
17432 done
17433 done
17434 IFS=$as_save_IFS
17438 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17439 if test -n "$WINDRES_FOR_TARGET"; then
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17441 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17442 else
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17444 $as_echo "no" >&6; }
17448 done
17451 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17452 for ncn_progname in windres; do
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17454 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17455 if test -x $with_build_time_tools/${ncn_progname}; then
17456 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17458 $as_echo "yes" >&6; }
17459 break
17460 else
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17462 $as_echo "no" >&6; }
17464 done
17467 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17468 for ncn_progname in windres; do
17469 if test -n "$ncn_target_tool_prefix"; then
17470 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17471 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17473 $as_echo_n "checking for $ac_word... " >&6; }
17474 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17475 $as_echo_n "(cached) " >&6
17476 else
17477 if test -n "$WINDRES_FOR_TARGET"; then
17478 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17479 else
17480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17481 for as_dir in $PATH
17483 IFS=$as_save_IFS
17484 test -z "$as_dir" && as_dir=.
17485 for ac_exec_ext in '' $ac_executable_extensions; do
17486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17487 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17489 break 2
17491 done
17492 done
17493 IFS=$as_save_IFS
17497 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17498 if test -n "$WINDRES_FOR_TARGET"; then
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17500 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17501 else
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503 $as_echo "no" >&6; }
17508 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17510 set dummy ${ncn_progname}; ac_word=$2
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17512 $as_echo_n "checking for $ac_word... " >&6; }
17513 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17514 $as_echo_n "(cached) " >&6
17515 else
17516 if test -n "$WINDRES_FOR_TARGET"; then
17517 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17518 else
17519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17520 for as_dir in $PATH
17522 IFS=$as_save_IFS
17523 test -z "$as_dir" && as_dir=.
17524 for ac_exec_ext in '' $ac_executable_extensions; do
17525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17526 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17528 break 2
17530 done
17531 done
17532 IFS=$as_save_IFS
17536 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17537 if test -n "$WINDRES_FOR_TARGET"; then
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17539 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17540 else
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17542 $as_echo "no" >&6; }
17547 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17548 done
17551 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17552 set dummy windres
17553 if test $build = $target ; then
17554 WINDRES_FOR_TARGET="$2"
17555 else
17556 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17558 else
17559 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17562 else
17563 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17569 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17570 if test -n "$with_build_time_tools"; then
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17572 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17573 if test -x $with_build_time_tools/windmc; then
17574 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17575 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17577 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17578 else
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17580 $as_echo "no" >&6; }
17582 elif test $build != $host && test $have_gcc_for_target = yes; then
17583 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17584 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17585 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17588 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17589 # Extract the first word of "windmc", so it can be a program name with args.
17590 set dummy windmc; ac_word=$2
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17592 $as_echo_n "checking for $ac_word... " >&6; }
17593 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17594 $as_echo_n "(cached) " >&6
17595 else
17596 case $WINDMC_FOR_TARGET in
17597 [\\/]* | ?:[\\/]*)
17598 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17602 for as_dir in $gcc_cv_tool_dirs
17604 IFS=$as_save_IFS
17605 test -z "$as_dir" && as_dir=.
17606 for ac_exec_ext in '' $ac_executable_extensions; do
17607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17608 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17610 break 2
17612 done
17613 done
17614 IFS=$as_save_IFS
17617 esac
17619 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17620 if test -n "$WINDMC_FOR_TARGET"; then
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17622 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17623 else
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17625 $as_echo "no" >&6; }
17630 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17633 if test -n "$WINDMC_FOR_TARGET"; then
17634 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17635 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17636 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17639 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17640 for ncn_progname in windmc; do
17641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17642 set dummy ${ncn_progname}; ac_word=$2
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17644 $as_echo_n "checking for $ac_word... " >&6; }
17645 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17646 $as_echo_n "(cached) " >&6
17647 else
17648 if test -n "$WINDMC_FOR_TARGET"; then
17649 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17650 else
17651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17652 for as_dir in $PATH
17654 IFS=$as_save_IFS
17655 test -z "$as_dir" && as_dir=.
17656 for ac_exec_ext in '' $ac_executable_extensions; do
17657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17658 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17660 break 2
17662 done
17663 done
17664 IFS=$as_save_IFS
17668 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17669 if test -n "$WINDMC_FOR_TARGET"; then
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17671 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17672 else
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17674 $as_echo "no" >&6; }
17678 done
17681 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17682 for ncn_progname in windmc; do
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17684 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17685 if test -x $with_build_time_tools/${ncn_progname}; then
17686 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17688 $as_echo "yes" >&6; }
17689 break
17690 else
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17692 $as_echo "no" >&6; }
17694 done
17697 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17698 for ncn_progname in windmc; do
17699 if test -n "$ncn_target_tool_prefix"; then
17700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17701 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17703 $as_echo_n "checking for $ac_word... " >&6; }
17704 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17705 $as_echo_n "(cached) " >&6
17706 else
17707 if test -n "$WINDMC_FOR_TARGET"; then
17708 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17709 else
17710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17711 for as_dir in $PATH
17713 IFS=$as_save_IFS
17714 test -z "$as_dir" && as_dir=.
17715 for ac_exec_ext in '' $ac_executable_extensions; do
17716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17717 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17719 break 2
17721 done
17722 done
17723 IFS=$as_save_IFS
17727 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17728 if test -n "$WINDMC_FOR_TARGET"; then
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17730 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17731 else
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17733 $as_echo "no" >&6; }
17738 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17740 set dummy ${ncn_progname}; ac_word=$2
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17742 $as_echo_n "checking for $ac_word... " >&6; }
17743 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17744 $as_echo_n "(cached) " >&6
17745 else
17746 if test -n "$WINDMC_FOR_TARGET"; then
17747 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17748 else
17749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17750 for as_dir in $PATH
17752 IFS=$as_save_IFS
17753 test -z "$as_dir" && as_dir=.
17754 for ac_exec_ext in '' $ac_executable_extensions; do
17755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17756 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17758 break 2
17760 done
17761 done
17762 IFS=$as_save_IFS
17766 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17767 if test -n "$WINDMC_FOR_TARGET"; then
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17769 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17770 else
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17772 $as_echo "no" >&6; }
17777 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17778 done
17781 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17782 set dummy windmc
17783 if test $build = $target ; then
17784 WINDMC_FOR_TARGET="$2"
17785 else
17786 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17788 else
17789 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17792 else
17793 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17797 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17800 $as_echo_n "checking where to find the target ar... " >&6; }
17801 if test "x${build}" != "x${host}" ; then
17802 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17803 # We already found the complete path
17804 ac_dir=`dirname $AR_FOR_TARGET`
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17806 $as_echo "pre-installed in $ac_dir" >&6; }
17807 else
17808 # Canadian cross, just use what we found
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17810 $as_echo "pre-installed" >&6; }
17812 else
17813 ok=yes
17814 case " ${configdirs} " in
17815 *" binutils "*) ;;
17816 *) ok=no ;;
17817 esac
17819 if test $ok = yes; then
17820 # An in-tree tool is available and we can use it
17821 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17823 $as_echo "just compiled" >&6; }
17824 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17825 # We already found the complete path
17826 ac_dir=`dirname $AR_FOR_TARGET`
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17828 $as_echo "pre-installed in $ac_dir" >&6; }
17829 elif test "x$target" = "x$host"; then
17830 # We can use an host tool
17831 AR_FOR_TARGET='$(AR)'
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17833 $as_echo "host tool" >&6; }
17834 else
17835 # We need a cross tool
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17837 $as_echo "pre-installed" >&6; }
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17842 $as_echo_n "checking where to find the target as... " >&6; }
17843 if test "x${build}" != "x${host}" ; then
17844 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17845 # We already found the complete path
17846 ac_dir=`dirname $AS_FOR_TARGET`
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17848 $as_echo "pre-installed in $ac_dir" >&6; }
17849 else
17850 # Canadian cross, just use what we found
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17852 $as_echo "pre-installed" >&6; }
17854 else
17855 ok=yes
17856 case " ${configdirs} " in
17857 *" gas "*) ;;
17858 *) ok=no ;;
17859 esac
17861 if test $ok = yes; then
17862 # An in-tree tool is available and we can use it
17863 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17865 $as_echo "just compiled" >&6; }
17866 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17867 # We already found the complete path
17868 ac_dir=`dirname $AS_FOR_TARGET`
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17870 $as_echo "pre-installed in $ac_dir" >&6; }
17871 elif test "x$target" = "x$host"; then
17872 # We can use an host tool
17873 AS_FOR_TARGET='$(AS)'
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17875 $as_echo "host tool" >&6; }
17876 else
17877 # We need a cross tool
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17879 $as_echo "pre-installed" >&6; }
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17884 $as_echo_n "checking where to find the target cc... " >&6; }
17885 if test "x${build}" != "x${host}" ; then
17886 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17887 # We already found the complete path
17888 ac_dir=`dirname $CC_FOR_TARGET`
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17890 $as_echo "pre-installed in $ac_dir" >&6; }
17891 else
17892 # Canadian cross, just use what we found
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17894 $as_echo "pre-installed" >&6; }
17896 else
17897 ok=yes
17898 case " ${configdirs} " in
17899 *" gcc "*) ;;
17900 *) ok=no ;;
17901 esac
17903 if test $ok = yes; then
17904 # An in-tree tool is available and we can use it
17905 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17907 $as_echo "just compiled" >&6; }
17908 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17909 # We already found the complete path
17910 ac_dir=`dirname $CC_FOR_TARGET`
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17912 $as_echo "pre-installed in $ac_dir" >&6; }
17913 elif test "x$target" = "x$host"; then
17914 # We can use an host tool
17915 CC_FOR_TARGET='$(CC)'
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17917 $as_echo "host tool" >&6; }
17918 else
17919 # We need a cross tool
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17921 $as_echo "pre-installed" >&6; }
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17926 $as_echo_n "checking where to find the target c++... " >&6; }
17927 if test "x${build}" != "x${host}" ; then
17928 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17929 # We already found the complete path
17930 ac_dir=`dirname $CXX_FOR_TARGET`
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17932 $as_echo "pre-installed in $ac_dir" >&6; }
17933 else
17934 # Canadian cross, just use what we found
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17936 $as_echo "pre-installed" >&6; }
17938 else
17939 ok=yes
17940 case " ${configdirs} " in
17941 *" gcc "*) ;;
17942 *) ok=no ;;
17943 esac
17944 case ,${enable_languages}, in
17945 *,c++,*) ;;
17946 *) ok=no ;;
17947 esac
17948 if test $ok = yes; then
17949 # An in-tree tool is available and we can use it
17950 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'
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17952 $as_echo "just compiled" >&6; }
17953 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17954 # We already found the complete path
17955 ac_dir=`dirname $CXX_FOR_TARGET`
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17957 $as_echo "pre-installed in $ac_dir" >&6; }
17958 elif test "x$target" = "x$host"; then
17959 # We can use an host tool
17960 CXX_FOR_TARGET='$(CXX)'
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17962 $as_echo "host tool" >&6; }
17963 else
17964 # We need a cross tool
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17966 $as_echo "pre-installed" >&6; }
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17971 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17972 if test "x${build}" != "x${host}" ; then
17973 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17974 # We already found the complete path
17975 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17977 $as_echo "pre-installed in $ac_dir" >&6; }
17978 else
17979 # Canadian cross, just use what we found
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17981 $as_echo "pre-installed" >&6; }
17983 else
17984 ok=yes
17985 case " ${configdirs} " in
17986 *" gcc "*) ;;
17987 *) ok=no ;;
17988 esac
17989 case ,${enable_languages}, in
17990 *,c++,*) ;;
17991 *) ok=no ;;
17992 esac
17993 if test $ok = yes; then
17994 # An in-tree tool is available and we can use it
17995 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'
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17997 $as_echo "just compiled" >&6; }
17998 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17999 # We already found the complete path
18000 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18002 $as_echo "pre-installed in $ac_dir" >&6; }
18003 elif test "x$target" = "x$host"; then
18004 # We can use an host tool
18005 RAW_CXX_FOR_TARGET='$(CXX)'
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18007 $as_echo "host tool" >&6; }
18008 else
18009 # We need a cross tool
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18011 $as_echo "pre-installed" >&6; }
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
18016 $as_echo_n "checking where to find the target dlltool... " >&6; }
18017 if test "x${build}" != "x${host}" ; then
18018 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18019 # We already found the complete path
18020 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18022 $as_echo "pre-installed in $ac_dir" >&6; }
18023 else
18024 # Canadian cross, just use what we found
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18026 $as_echo "pre-installed" >&6; }
18028 else
18029 ok=yes
18030 case " ${configdirs} " in
18031 *" binutils "*) ;;
18032 *) ok=no ;;
18033 esac
18035 if test $ok = yes; then
18036 # An in-tree tool is available and we can use it
18037 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18039 $as_echo "just compiled" >&6; }
18040 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18041 # We already found the complete path
18042 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18044 $as_echo "pre-installed in $ac_dir" >&6; }
18045 elif test "x$target" = "x$host"; then
18046 # We can use an host tool
18047 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18049 $as_echo "host tool" >&6; }
18050 else
18051 # We need a cross tool
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18053 $as_echo "pre-installed" >&6; }
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
18058 $as_echo_n "checking where to find the target dsymutil... " >&6; }
18059 if test "x${build}" != "x${host}" ; then
18060 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18061 # We already found the complete path
18062 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18064 $as_echo "pre-installed in $ac_dir" >&6; }
18065 else
18066 # Canadian cross, just use what we found
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18068 $as_echo "pre-installed" >&6; }
18070 else
18071 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18072 # We already found the complete path
18073 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18075 $as_echo "pre-installed in $ac_dir" >&6; }
18076 elif test "x$target" = "x$host"; then
18077 # We can use an host tool
18078 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18080 $as_echo "host tool" >&6; }
18081 else
18082 # We need a cross tool
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18084 $as_echo "pre-installed" >&6; }
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
18089 $as_echo_n "checking where to find the target gcc... " >&6; }
18090 if test "x${build}" != "x${host}" ; then
18091 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18092 # We already found the complete path
18093 ac_dir=`dirname $GCC_FOR_TARGET`
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18095 $as_echo "pre-installed in $ac_dir" >&6; }
18096 else
18097 # Canadian cross, just use what we found
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18099 $as_echo "pre-installed" >&6; }
18101 else
18102 ok=yes
18103 case " ${configdirs} " in
18104 *" gcc "*) ;;
18105 *) ok=no ;;
18106 esac
18108 if test $ok = yes; then
18109 # An in-tree tool is available and we can use it
18110 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18112 $as_echo "just compiled" >&6; }
18113 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18114 # We already found the complete path
18115 ac_dir=`dirname $GCC_FOR_TARGET`
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18117 $as_echo "pre-installed in $ac_dir" >&6; }
18118 elif test "x$target" = "x$host"; then
18119 # We can use an host tool
18120 GCC_FOR_TARGET='$()'
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18122 $as_echo "host tool" >&6; }
18123 else
18124 # We need a cross tool
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18126 $as_echo "pre-installed" >&6; }
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
18131 $as_echo_n "checking where to find the target gfortran... " >&6; }
18132 if test "x${build}" != "x${host}" ; then
18133 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18134 # We already found the complete path
18135 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18137 $as_echo "pre-installed in $ac_dir" >&6; }
18138 else
18139 # Canadian cross, just use what we found
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18141 $as_echo "pre-installed" >&6; }
18143 else
18144 ok=yes
18145 case " ${configdirs} " in
18146 *" gcc "*) ;;
18147 *) ok=no ;;
18148 esac
18149 case ,${enable_languages}, in
18150 *,fortran,*) ;;
18151 *) ok=no ;;
18152 esac
18153 if test $ok = yes; then
18154 # An in-tree tool is available and we can use it
18155 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18157 $as_echo "just compiled" >&6; }
18158 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18159 # We already found the complete path
18160 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18162 $as_echo "pre-installed in $ac_dir" >&6; }
18163 elif test "x$target" = "x$host"; then
18164 # We can use an host tool
18165 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18167 $as_echo "host tool" >&6; }
18168 else
18169 # We need a cross tool
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18171 $as_echo "pre-installed" >&6; }
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
18176 $as_echo_n "checking where to find the target gccgo... " >&6; }
18177 if test "x${build}" != "x${host}" ; then
18178 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18179 # We already found the complete path
18180 ac_dir=`dirname $GOC_FOR_TARGET`
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18182 $as_echo "pre-installed in $ac_dir" >&6; }
18183 else
18184 # Canadian cross, just use what we found
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18186 $as_echo "pre-installed" >&6; }
18188 else
18189 ok=yes
18190 case " ${configdirs} " in
18191 *" gcc "*) ;;
18192 *) ok=no ;;
18193 esac
18194 case ,${enable_languages}, in
18195 *,go,*) ;;
18196 *) ok=no ;;
18197 esac
18198 if test $ok = yes; then
18199 # An in-tree tool is available and we can use it
18200 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18202 $as_echo "just compiled" >&6; }
18203 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18204 # We already found the complete path
18205 ac_dir=`dirname $GOC_FOR_TARGET`
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18207 $as_echo "pre-installed in $ac_dir" >&6; }
18208 elif test "x$target" = "x$host"; then
18209 # We can use an host tool
18210 GOC_FOR_TARGET='$(GOC)'
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18212 $as_echo "host tool" >&6; }
18213 else
18214 # We need a cross tool
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18216 $as_echo "pre-installed" >&6; }
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18221 $as_echo_n "checking where to find the target gdc... " >&6; }
18222 if test "x${build}" != "x${host}" ; then
18223 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18224 # We already found the complete path
18225 ac_dir=`dirname $GDC_FOR_TARGET`
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18227 $as_echo "pre-installed in $ac_dir" >&6; }
18228 else
18229 # Canadian cross, just use what we found
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18231 $as_echo "pre-installed" >&6; }
18233 else
18234 ok=yes
18235 case " ${configdirs} " in
18236 *" gcc "*) ;;
18237 *) ok=no ;;
18238 esac
18239 case ,${enable_languages}, in
18240 *,d,*) ;;
18241 *) ok=no ;;
18242 esac
18243 if test $ok = yes; then
18244 # An in-tree tool is available and we can use it
18245 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18247 $as_echo "just compiled" >&6; }
18248 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18249 # We already found the complete path
18250 ac_dir=`dirname $GDC_FOR_TARGET`
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18252 $as_echo "pre-installed in $ac_dir" >&6; }
18253 elif test "x$target" = "x$host"; then
18254 # We can use an host tool
18255 GDC_FOR_TARGET='$(GDC)'
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18257 $as_echo "host tool" >&6; }
18258 else
18259 # We need a cross tool
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18261 $as_echo "pre-installed" >&6; }
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18266 $as_echo_n "checking where to find the target gm2... " >&6; }
18267 if test "x${build}" != "x${host}" ; then
18268 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18269 # We already found the complete path
18270 ac_dir=`dirname $GM2_FOR_TARGET`
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18272 $as_echo "pre-installed in $ac_dir" >&6; }
18273 else
18274 # Canadian cross, just use what we found
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18276 $as_echo "pre-installed" >&6; }
18278 else
18279 ok=yes
18280 case " ${configdirs} " in
18281 *" gcc "*) ;;
18282 *) ok=no ;;
18283 esac
18284 case ,${enable_languages}, in
18285 *,m2,*) ;;
18286 *) ok=no ;;
18287 esac
18288 if test $ok = yes; then
18289 # An in-tree tool is available and we can use it
18290 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18292 $as_echo "just compiled" >&6; }
18293 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18294 # We already found the complete path
18295 ac_dir=`dirname $GM2_FOR_TARGET`
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18297 $as_echo "pre-installed in $ac_dir" >&6; }
18298 elif test "x$target" = "x$host"; then
18299 # We can use an host tool
18300 GM2_FOR_TARGET='$(GM2)'
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18302 $as_echo "host tool" >&6; }
18303 else
18304 # We need a cross tool
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18306 $as_echo "pre-installed" >&6; }
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18311 $as_echo_n "checking where to find the target ld... " >&6; }
18312 if test "x${build}" != "x${host}" ; then
18313 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18314 # We already found the complete path
18315 ac_dir=`dirname $LD_FOR_TARGET`
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18317 $as_echo "pre-installed in $ac_dir" >&6; }
18318 else
18319 # Canadian cross, just use what we found
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18321 $as_echo "pre-installed" >&6; }
18323 else
18324 ok=yes
18325 case " ${configdirs} " in
18326 *" ld "*) ;;
18327 *) ok=no ;;
18328 esac
18330 if test $ok = yes; then
18331 # An in-tree tool is available and we can use it
18332 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18334 $as_echo "just compiled" >&6; }
18335 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18336 # We already found the complete path
18337 ac_dir=`dirname $LD_FOR_TARGET`
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18339 $as_echo "pre-installed in $ac_dir" >&6; }
18340 elif test "x$target" = "x$host"; then
18341 # We can use an host tool
18342 LD_FOR_TARGET='$(LD)'
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18344 $as_echo "host tool" >&6; }
18345 else
18346 # We need a cross tool
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18348 $as_echo "pre-installed" >&6; }
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18353 $as_echo_n "checking where to find the target lipo... " >&6; }
18354 if test "x${build}" != "x${host}" ; then
18355 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18356 # We already found the complete path
18357 ac_dir=`dirname $LIPO_FOR_TARGET`
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18359 $as_echo "pre-installed in $ac_dir" >&6; }
18360 else
18361 # Canadian cross, just use what we found
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18363 $as_echo "pre-installed" >&6; }
18365 else
18366 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18367 # We already found the complete path
18368 ac_dir=`dirname $LIPO_FOR_TARGET`
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18370 $as_echo "pre-installed in $ac_dir" >&6; }
18371 elif test "x$target" = "x$host"; then
18372 # We can use an host tool
18373 LIPO_FOR_TARGET='$(LIPO)'
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18375 $as_echo "host tool" >&6; }
18376 else
18377 # We need a cross tool
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18379 $as_echo "pre-installed" >&6; }
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18384 $as_echo_n "checking where to find the target nm... " >&6; }
18385 if test "x${build}" != "x${host}" ; then
18386 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18387 # We already found the complete path
18388 ac_dir=`dirname $NM_FOR_TARGET`
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18390 $as_echo "pre-installed in $ac_dir" >&6; }
18391 else
18392 # Canadian cross, just use what we found
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18394 $as_echo "pre-installed" >&6; }
18396 else
18397 ok=yes
18398 case " ${configdirs} " in
18399 *" binutils "*) ;;
18400 *) ok=no ;;
18401 esac
18403 if test $ok = yes; then
18404 # An in-tree tool is available and we can use it
18405 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18407 $as_echo "just compiled" >&6; }
18408 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18409 # We already found the complete path
18410 ac_dir=`dirname $NM_FOR_TARGET`
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18412 $as_echo "pre-installed in $ac_dir" >&6; }
18413 elif test "x$target" = "x$host"; then
18414 # We can use an host tool
18415 NM_FOR_TARGET='$(NM)'
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18417 $as_echo "host tool" >&6; }
18418 else
18419 # We need a cross tool
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18421 $as_echo "pre-installed" >&6; }
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18426 $as_echo_n "checking where to find the target objcopy... " >&6; }
18427 if test "x${build}" != "x${host}" ; then
18428 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18429 # We already found the complete path
18430 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18432 $as_echo "pre-installed in $ac_dir" >&6; }
18433 else
18434 # Canadian cross, just use what we found
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18436 $as_echo "pre-installed" >&6; }
18438 else
18439 ok=yes
18440 case " ${configdirs} " in
18441 *" binutils "*) ;;
18442 *) ok=no ;;
18443 esac
18445 if test $ok = yes; then
18446 # An in-tree tool is available and we can use it
18447 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18449 $as_echo "just compiled" >&6; }
18450 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18451 # We already found the complete path
18452 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18454 $as_echo "pre-installed in $ac_dir" >&6; }
18455 elif test "x$target" = "x$host"; then
18456 # We can use an host tool
18457 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18459 $as_echo "host tool" >&6; }
18460 else
18461 # We need a cross tool
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18463 $as_echo "pre-installed" >&6; }
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18468 $as_echo_n "checking where to find the target objdump... " >&6; }
18469 if test "x${build}" != "x${host}" ; then
18470 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18471 # We already found the complete path
18472 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18474 $as_echo "pre-installed in $ac_dir" >&6; }
18475 else
18476 # Canadian cross, just use what we found
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18478 $as_echo "pre-installed" >&6; }
18480 else
18481 ok=yes
18482 case " ${configdirs} " in
18483 *" binutils "*) ;;
18484 *) ok=no ;;
18485 esac
18487 if test $ok = yes; then
18488 # An in-tree tool is available and we can use it
18489 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18491 $as_echo "just compiled" >&6; }
18492 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18493 # We already found the complete path
18494 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18496 $as_echo "pre-installed in $ac_dir" >&6; }
18497 elif test "x$target" = "x$host"; then
18498 # We can use an host tool
18499 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18501 $as_echo "host tool" >&6; }
18502 else
18503 # We need a cross tool
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18505 $as_echo "pre-installed" >&6; }
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18510 $as_echo_n "checking where to find the target otool... " >&6; }
18511 if test "x${build}" != "x${host}" ; then
18512 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18513 # We already found the complete path
18514 ac_dir=`dirname $OTOOL_FOR_TARGET`
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18516 $as_echo "pre-installed in $ac_dir" >&6; }
18517 else
18518 # Canadian cross, just use what we found
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18520 $as_echo "pre-installed" >&6; }
18522 else
18523 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18524 # We already found the complete path
18525 ac_dir=`dirname $OTOOL_FOR_TARGET`
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18527 $as_echo "pre-installed in $ac_dir" >&6; }
18528 elif test "x$target" = "x$host"; then
18529 # We can use an host tool
18530 OTOOL_FOR_TARGET='$(OTOOL)'
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18532 $as_echo "host tool" >&6; }
18533 else
18534 # We need a cross tool
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18536 $as_echo "pre-installed" >&6; }
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18541 $as_echo_n "checking where to find the target ranlib... " >&6; }
18542 if test "x${build}" != "x${host}" ; then
18543 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18544 # We already found the complete path
18545 ac_dir=`dirname $RANLIB_FOR_TARGET`
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18547 $as_echo "pre-installed in $ac_dir" >&6; }
18548 else
18549 # Canadian cross, just use what we found
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18551 $as_echo "pre-installed" >&6; }
18553 else
18554 ok=yes
18555 case " ${configdirs} " in
18556 *" binutils "*) ;;
18557 *) ok=no ;;
18558 esac
18560 if test $ok = yes; then
18561 # An in-tree tool is available and we can use it
18562 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18564 $as_echo "just compiled" >&6; }
18565 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18566 # We already found the complete path
18567 ac_dir=`dirname $RANLIB_FOR_TARGET`
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18569 $as_echo "pre-installed in $ac_dir" >&6; }
18570 elif test "x$target" = "x$host"; then
18571 # We can use an host tool
18572 RANLIB_FOR_TARGET='$(RANLIB)'
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18574 $as_echo "host tool" >&6; }
18575 else
18576 # We need a cross tool
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18578 $as_echo "pre-installed" >&6; }
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18583 $as_echo_n "checking where to find the target readelf... " >&6; }
18584 if test "x${build}" != "x${host}" ; then
18585 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18586 # We already found the complete path
18587 ac_dir=`dirname $READELF_FOR_TARGET`
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18589 $as_echo "pre-installed in $ac_dir" >&6; }
18590 else
18591 # Canadian cross, just use what we found
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18593 $as_echo "pre-installed" >&6; }
18595 else
18596 ok=yes
18597 case " ${configdirs} " in
18598 *" binutils "*) ;;
18599 *) ok=no ;;
18600 esac
18602 if test $ok = yes; then
18603 # An in-tree tool is available and we can use it
18604 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18606 $as_echo "just compiled" >&6; }
18607 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18608 # We already found the complete path
18609 ac_dir=`dirname $READELF_FOR_TARGET`
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18611 $as_echo "pre-installed in $ac_dir" >&6; }
18612 elif test "x$target" = "x$host"; then
18613 # We can use an host tool
18614 READELF_FOR_TARGET='$(READELF)'
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18616 $as_echo "host tool" >&6; }
18617 else
18618 # We need a cross tool
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18620 $as_echo "pre-installed" >&6; }
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18625 $as_echo_n "checking where to find the target strip... " >&6; }
18626 if test "x${build}" != "x${host}" ; then
18627 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18628 # We already found the complete path
18629 ac_dir=`dirname $STRIP_FOR_TARGET`
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18631 $as_echo "pre-installed in $ac_dir" >&6; }
18632 else
18633 # Canadian cross, just use what we found
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18635 $as_echo "pre-installed" >&6; }
18637 else
18638 ok=yes
18639 case " ${configdirs} " in
18640 *" binutils "*) ;;
18641 *) ok=no ;;
18642 esac
18644 if test $ok = yes; then
18645 # An in-tree tool is available and we can use it
18646 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18648 $as_echo "just compiled" >&6; }
18649 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18650 # We already found the complete path
18651 ac_dir=`dirname $STRIP_FOR_TARGET`
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18653 $as_echo "pre-installed in $ac_dir" >&6; }
18654 elif test "x$target" = "x$host"; then
18655 # We can use an host tool
18656 STRIP_FOR_TARGET='$(STRIP)'
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18658 $as_echo "host tool" >&6; }
18659 else
18660 # We need a cross tool
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18662 $as_echo "pre-installed" >&6; }
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18667 $as_echo_n "checking where to find the target windres... " >&6; }
18668 if test "x${build}" != "x${host}" ; then
18669 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18670 # We already found the complete path
18671 ac_dir=`dirname $WINDRES_FOR_TARGET`
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18673 $as_echo "pre-installed in $ac_dir" >&6; }
18674 else
18675 # Canadian cross, just use what we found
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18677 $as_echo "pre-installed" >&6; }
18679 else
18680 ok=yes
18681 case " ${configdirs} " in
18682 *" binutils "*) ;;
18683 *) ok=no ;;
18684 esac
18686 if test $ok = yes; then
18687 # An in-tree tool is available and we can use it
18688 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18690 $as_echo "just compiled" >&6; }
18691 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18692 # We already found the complete path
18693 ac_dir=`dirname $WINDRES_FOR_TARGET`
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18695 $as_echo "pre-installed in $ac_dir" >&6; }
18696 elif test "x$target" = "x$host"; then
18697 # We can use an host tool
18698 WINDRES_FOR_TARGET='$(WINDRES)'
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18700 $as_echo "host tool" >&6; }
18701 else
18702 # We need a cross tool
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18704 $as_echo "pre-installed" >&6; }
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18709 $as_echo_n "checking where to find the target windmc... " >&6; }
18710 if test "x${build}" != "x${host}" ; then
18711 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18712 # We already found the complete path
18713 ac_dir=`dirname $WINDMC_FOR_TARGET`
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18715 $as_echo "pre-installed in $ac_dir" >&6; }
18716 else
18717 # Canadian cross, just use what we found
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18719 $as_echo "pre-installed" >&6; }
18721 else
18722 ok=yes
18723 case " ${configdirs} " in
18724 *" binutils "*) ;;
18725 *) ok=no ;;
18726 esac
18728 if test $ok = yes; then
18729 # An in-tree tool is available and we can use it
18730 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18732 $as_echo "just compiled" >&6; }
18733 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18734 # We already found the complete path
18735 ac_dir=`dirname $WINDMC_FOR_TARGET`
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18737 $as_echo "pre-installed in $ac_dir" >&6; }
18738 elif test "x$target" = "x$host"; then
18739 # We can use an host tool
18740 WINDMC_FOR_TARGET='$(WINDMC)'
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18742 $as_echo "host tool" >&6; }
18743 else
18744 # We need a cross tool
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18746 $as_echo "pre-installed" >&6; }
18754 # Certain tools may need extra flags.
18755 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18756 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18757 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18759 # When building target libraries, except in a Canadian cross, we use
18760 # the same toolchain as the compiler we just built.
18761 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18762 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18763 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18764 if test $host = $build; then
18765 case " $configdirs " in
18766 *" gcc "*)
18767 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18768 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18769 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18771 esac
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18779 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18780 # Check whether --enable-maintainer-mode was given.
18781 if test "${enable_maintainer_mode+set}" = set; then :
18782 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18783 else
18784 USE_MAINTAINER_MODE=no
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18788 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18791 if test "$USE_MAINTAINER_MODE" = yes; then
18792 MAINTAINER_MODE_TRUE=
18793 MAINTAINER_MODE_FALSE='#'
18794 else
18795 MAINTAINER_MODE_TRUE='#'
18796 MAINTAINER_MODE_FALSE=
18798 MAINT=$MAINTAINER_MODE_TRUE
18800 # ---------------------
18801 # GCC bootstrap support
18802 # ---------------------
18804 # Stage specific cflags for build.
18805 stage1_cflags="-g"
18806 case $build in
18807 vax-*-*)
18808 case ${GCC} in
18809 yes) stage1_cflags="-g -Wa,-J" ;;
18810 *) stage1_cflags="-g -J" ;;
18811 esac ;;
18812 esac
18816 # Enable --enable-checking in stage1 of the compiler.
18817 # Check whether --enable-stage1-checking was given.
18818 if test "${enable_stage1_checking+set}" = set; then :
18819 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18820 else
18821 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18822 # For --disable-checking or implicit --enable-checking=release, avoid
18823 # setting --enable-checking=gc in the default stage1 checking for LTO
18824 # bootstraps. See PR62077.
18825 case $BUILD_CONFIG in
18826 *lto*)
18827 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18829 stage1_checking=--enable-checking=yes,types;;
18830 esac
18831 if test "x$enable_checking" = x && \
18832 test -d ${srcdir}/gcc && \
18833 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18834 stage1_checking=--enable-checking=yes,types,extra
18836 else
18837 stage1_checking=--enable-checking=$enable_checking,types
18843 # Enable -Werror in bootstrap stage2 and later.
18844 # Check whether --enable-werror was given.
18845 if test "${enable_werror+set}" = set; then :
18846 enableval=$enable_werror;
18847 case ${enable_werror} in
18848 yes) stage2_werror_flag="--enable-werror-always" ;;
18849 *) stage2_werror_flag="" ;;
18850 esac
18852 else
18854 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18855 case $BUILD_CONFIG in
18856 bootstrap-debug)
18857 stage2_werror_flag="--enable-werror-always" ;;
18859 stage2_werror_flag="--enable-werror-always" ;;
18860 esac
18868 # Specify what files to not compare during bootstrap.
18870 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18871 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18872 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18873 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18874 case "$target" in
18875 hppa*64*-*-hpux*) ;;
18876 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18877 esac
18880 ac_config_files="$ac_config_files Makefile"
18882 cat >confcache <<\_ACEOF
18883 # This file is a shell script that caches the results of configure
18884 # tests run on this system so they can be shared between configure
18885 # scripts and configure runs, see configure's option --config-cache.
18886 # It is not useful on other systems. If it contains results you don't
18887 # want to keep, you may remove or edit it.
18889 # config.status only pays attention to the cache file if you give it
18890 # the --recheck option to rerun configure.
18892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18894 # following values.
18896 _ACEOF
18898 # The following way of writing the cache mishandles newlines in values,
18899 # but we know of no workaround that is simple, portable, and efficient.
18900 # So, we kill variables containing newlines.
18901 # Ultrix sh set writes to stderr and can't be redirected directly,
18902 # and sets the high bit in the cache file unless we assign to the vars.
18904 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18905 eval ac_val=\$$ac_var
18906 case $ac_val in #(
18907 *${as_nl}*)
18908 case $ac_var in #(
18909 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18910 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18911 esac
18912 case $ac_var in #(
18913 _ | IFS | as_nl) ;; #(
18914 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18915 *) { eval $ac_var=; unset $ac_var;} ;;
18916 esac ;;
18917 esac
18918 done
18920 (set) 2>&1 |
18921 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18922 *${as_nl}ac_space=\ *)
18923 # `set' does not quote correctly, so add quotes: double-quote
18924 # substitution turns \\\\ into \\, and sed turns \\ into \.
18925 sed -n \
18926 "s/'/'\\\\''/g;
18927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18928 ;; #(
18930 # `set' quotes correctly as required by POSIX, so do not add quotes.
18931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18933 esac |
18934 sort
18936 sed '
18937 /^ac_cv_env_/b end
18938 t clear
18939 :clear
18940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18941 t end
18942 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18943 :end' >>confcache
18944 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18945 if test -w "$cache_file"; then
18946 if test "x$cache_file" != "x/dev/null"; then
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18948 $as_echo "$as_me: updating cache $cache_file" >&6;}
18949 if test ! -f "$cache_file" || test -h "$cache_file"; then
18950 cat confcache >"$cache_file"
18951 else
18952 case $cache_file in #(
18953 */* | ?:*)
18954 mv -f confcache "$cache_file"$$ &&
18955 mv -f "$cache_file"$$ "$cache_file" ;; #(
18957 mv -f confcache "$cache_file" ;;
18958 esac
18961 else
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18963 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18966 rm -f confcache
18968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18969 # Let make expand exec_prefix.
18970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18972 # Transform confdefs.h into DEFS.
18973 # Protect against shell expansion while executing Makefile rules.
18974 # Protect against Makefile macro expansion.
18976 # If the first sed substitution is executed (which looks for macros that
18977 # take arguments), then branch to the quote section. Otherwise,
18978 # look for a macro that doesn't take arguments.
18979 ac_script='
18980 :mline
18981 /\\$/{
18983 s,\\\n,,
18984 b mline
18986 t clear
18987 :clear
18988 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18989 t quote
18990 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18991 t quote
18992 b any
18993 :quote
18994 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18995 s/\[/\\&/g
18996 s/\]/\\&/g
18997 s/\$/$$/g
18999 :any
19002 s/^\n//
19003 s/\n/ /g
19007 DEFS=`sed -n "$ac_script" confdefs.h`
19010 ac_libobjs=
19011 ac_ltlibobjs=
19013 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19014 # 1. Remove the extension, and $U if already installed.
19015 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19016 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19017 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19018 # will be set to the directory where LIBOBJS objects are built.
19019 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19020 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19021 done
19022 LIBOBJS=$ac_libobjs
19024 LTLIBOBJS=$ac_ltlibobjs
19028 : "${CONFIG_STATUS=./config.status}"
19029 ac_write_fail=0
19030 ac_clean_files_save=$ac_clean_files
19031 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19033 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19034 as_write_fail=0
19035 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19036 #! $SHELL
19037 # Generated by $as_me.
19038 # Run this file to recreate the current configuration.
19039 # Compiler output produced by configure, useful for debugging
19040 # configure, is in config.log if it exists.
19042 debug=false
19043 ac_cs_recheck=false
19044 ac_cs_silent=false
19046 SHELL=\${CONFIG_SHELL-$SHELL}
19047 export SHELL
19048 _ASEOF
19049 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19050 ## -------------------- ##
19051 ## M4sh Initialization. ##
19052 ## -------------------- ##
19054 # Be more Bourne compatible
19055 DUALCASE=1; export DUALCASE # for MKS sh
19056 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19057 emulate sh
19058 NULLCMD=:
19059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19060 # is contrary to our usage. Disable this feature.
19061 alias -g '${1+"$@"}'='"$@"'
19062 setopt NO_GLOB_SUBST
19063 else
19064 case `(set -o) 2>/dev/null` in #(
19065 *posix*) :
19066 set -o posix ;; #(
19067 *) :
19069 esac
19073 as_nl='
19075 export as_nl
19076 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19077 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19078 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19079 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19080 # Prefer a ksh shell builtin over an external printf program on Solaris,
19081 # but without wasting forks for bash or zsh.
19082 if test -z "$BASH_VERSION$ZSH_VERSION" \
19083 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19084 as_echo='print -r --'
19085 as_echo_n='print -rn --'
19086 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19087 as_echo='printf %s\n'
19088 as_echo_n='printf %s'
19089 else
19090 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19091 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19092 as_echo_n='/usr/ucb/echo -n'
19093 else
19094 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19095 as_echo_n_body='eval
19096 arg=$1;
19097 case $arg in #(
19098 *"$as_nl"*)
19099 expr "X$arg" : "X\\(.*\\)$as_nl";
19100 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19101 esac;
19102 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19104 export as_echo_n_body
19105 as_echo_n='sh -c $as_echo_n_body as_echo'
19107 export as_echo_body
19108 as_echo='sh -c $as_echo_body as_echo'
19111 # The user is always right.
19112 if test "${PATH_SEPARATOR+set}" != set; then
19113 PATH_SEPARATOR=:
19114 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19115 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19116 PATH_SEPARATOR=';'
19121 # IFS
19122 # We need space, tab and new line, in precisely that order. Quoting is
19123 # there to prevent editors from complaining about space-tab.
19124 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19125 # splitting by setting IFS to empty value.)
19126 IFS=" "" $as_nl"
19128 # Find who we are. Look in the path if we contain no directory separator.
19129 as_myself=
19130 case $0 in #((
19131 *[\\/]* ) as_myself=$0 ;;
19132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19133 for as_dir in $PATH
19135 IFS=$as_save_IFS
19136 test -z "$as_dir" && as_dir=.
19137 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19138 done
19139 IFS=$as_save_IFS
19142 esac
19143 # We did not find ourselves, most probably we were run as `sh COMMAND'
19144 # in which case we are not to be found in the path.
19145 if test "x$as_myself" = x; then
19146 as_myself=$0
19148 if test ! -f "$as_myself"; then
19149 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19150 exit 1
19153 # Unset variables that we do not need and which cause bugs (e.g. in
19154 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19155 # suppresses any "Segmentation fault" message there. '((' could
19156 # trigger a bug in pdksh 5.2.14.
19157 for as_var in BASH_ENV ENV MAIL MAILPATH
19158 do eval test x\${$as_var+set} = xset \
19159 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19160 done
19161 PS1='$ '
19162 PS2='> '
19163 PS4='+ '
19165 # NLS nuisances.
19166 LC_ALL=C
19167 export LC_ALL
19168 LANGUAGE=C
19169 export LANGUAGE
19171 # CDPATH.
19172 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19175 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19176 # ----------------------------------------
19177 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19178 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19179 # script with STATUS, using 1 if that was 0.
19180 as_fn_error ()
19182 as_status=$1; test $as_status -eq 0 && as_status=1
19183 if test "$4"; then
19184 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19185 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19187 $as_echo "$as_me: error: $2" >&2
19188 as_fn_exit $as_status
19189 } # as_fn_error
19192 # as_fn_set_status STATUS
19193 # -----------------------
19194 # Set $? to STATUS, without forking.
19195 as_fn_set_status ()
19197 return $1
19198 } # as_fn_set_status
19200 # as_fn_exit STATUS
19201 # -----------------
19202 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19203 as_fn_exit ()
19205 set +e
19206 as_fn_set_status $1
19207 exit $1
19208 } # as_fn_exit
19210 # as_fn_unset VAR
19211 # ---------------
19212 # Portably unset VAR.
19213 as_fn_unset ()
19215 { eval $1=; unset $1;}
19217 as_unset=as_fn_unset
19218 # as_fn_append VAR VALUE
19219 # ----------------------
19220 # Append the text in VALUE to the end of the definition contained in VAR. Take
19221 # advantage of any shell optimizations that allow amortized linear growth over
19222 # repeated appends, instead of the typical quadratic growth present in naive
19223 # implementations.
19224 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19225 eval 'as_fn_append ()
19227 eval $1+=\$2
19229 else
19230 as_fn_append ()
19232 eval $1=\$$1\$2
19234 fi # as_fn_append
19236 # as_fn_arith ARG...
19237 # ------------------
19238 # Perform arithmetic evaluation on the ARGs, and store the result in the
19239 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19240 # must be portable across $(()) and expr.
19241 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19242 eval 'as_fn_arith ()
19244 as_val=$(( $* ))
19246 else
19247 as_fn_arith ()
19249 as_val=`expr "$@" || test $? -eq 1`
19251 fi # as_fn_arith
19254 if expr a : '\(a\)' >/dev/null 2>&1 &&
19255 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19256 as_expr=expr
19257 else
19258 as_expr=false
19261 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19262 as_basename=basename
19263 else
19264 as_basename=false
19267 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19268 as_dirname=dirname
19269 else
19270 as_dirname=false
19273 as_me=`$as_basename -- "$0" ||
19274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19275 X"$0" : 'X\(//\)$' \| \
19276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19277 $as_echo X/"$0" |
19278 sed '/^.*\/\([^/][^/]*\)\/*$/{
19279 s//\1/
19282 /^X\/\(\/\/\)$/{
19283 s//\1/
19286 /^X\/\(\/\).*/{
19287 s//\1/
19290 s/.*/./; q'`
19292 # Avoid depending upon Character Ranges.
19293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19296 as_cr_digits='0123456789'
19297 as_cr_alnum=$as_cr_Letters$as_cr_digits
19299 ECHO_C= ECHO_N= ECHO_T=
19300 case `echo -n x` in #(((((
19301 -n*)
19302 case `echo 'xy\c'` in
19303 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19304 xy) ECHO_C='\c';;
19305 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19306 ECHO_T=' ';;
19307 esac;;
19309 ECHO_N='-n';;
19310 esac
19312 rm -f conf$$ conf$$.exe conf$$.file
19313 if test -d conf$$.dir; then
19314 rm -f conf$$.dir/conf$$.file
19315 else
19316 rm -f conf$$.dir
19317 mkdir conf$$.dir 2>/dev/null
19319 if (echo >conf$$.file) 2>/dev/null; then
19320 if ln -s conf$$.file conf$$ 2>/dev/null; then
19321 as_ln_s='ln -s'
19322 # ... but there are two gotchas:
19323 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19324 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19325 # In both cases, we have to default to `cp -pR'.
19326 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19327 as_ln_s='cp -pR'
19328 elif ln conf$$.file conf$$ 2>/dev/null; then
19329 as_ln_s=ln
19330 else
19331 as_ln_s='cp -pR'
19333 else
19334 as_ln_s='cp -pR'
19336 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19337 rmdir conf$$.dir 2>/dev/null
19340 # as_fn_mkdir_p
19341 # -------------
19342 # Create "$as_dir" as a directory, including parents if necessary.
19343 as_fn_mkdir_p ()
19346 case $as_dir in #(
19347 -*) as_dir=./$as_dir;;
19348 esac
19349 test -d "$as_dir" || eval $as_mkdir_p || {
19350 as_dirs=
19351 while :; do
19352 case $as_dir in #(
19353 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19354 *) as_qdir=$as_dir;;
19355 esac
19356 as_dirs="'$as_qdir' $as_dirs"
19357 as_dir=`$as_dirname -- "$as_dir" ||
19358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19359 X"$as_dir" : 'X\(//\)[^/]' \| \
19360 X"$as_dir" : 'X\(//\)$' \| \
19361 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19362 $as_echo X"$as_dir" |
19363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19364 s//\1/
19367 /^X\(\/\/\)[^/].*/{
19368 s//\1/
19371 /^X\(\/\/\)$/{
19372 s//\1/
19375 /^X\(\/\).*/{
19376 s//\1/
19379 s/.*/./; q'`
19380 test -d "$as_dir" && break
19381 done
19382 test -z "$as_dirs" || eval "mkdir $as_dirs"
19383 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19386 } # as_fn_mkdir_p
19387 if mkdir -p . 2>/dev/null; then
19388 as_mkdir_p='mkdir -p "$as_dir"'
19389 else
19390 test -d ./-p && rmdir ./-p
19391 as_mkdir_p=false
19395 # as_fn_executable_p FILE
19396 # -----------------------
19397 # Test if FILE is an executable regular file.
19398 as_fn_executable_p ()
19400 test -f "$1" && test -x "$1"
19401 } # as_fn_executable_p
19402 as_test_x='test -x'
19403 as_executable_p=as_fn_executable_p
19405 # Sed expression to map a string onto a valid CPP name.
19406 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19408 # Sed expression to map a string onto a valid variable name.
19409 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19412 exec 6>&1
19413 ## ----------------------------------- ##
19414 ## Main body of $CONFIG_STATUS script. ##
19415 ## ----------------------------------- ##
19416 _ASEOF
19417 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19420 # Save the log message, to keep $0 and so on meaningful, and to
19421 # report actual input values of CONFIG_FILES etc. instead of their
19422 # values after options handling.
19423 ac_log="
19424 This file was extended by $as_me, which was
19425 generated by GNU Autoconf 2.69. Invocation command line was
19427 CONFIG_FILES = $CONFIG_FILES
19428 CONFIG_HEADERS = $CONFIG_HEADERS
19429 CONFIG_LINKS = $CONFIG_LINKS
19430 CONFIG_COMMANDS = $CONFIG_COMMANDS
19431 $ $0 $@
19433 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19436 _ACEOF
19438 case $ac_config_files in *"
19439 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19440 esac
19444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19445 # Files that config.status was made for.
19446 config_files="$ac_config_files"
19448 _ACEOF
19450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19451 ac_cs_usage="\
19452 \`$as_me' instantiates files and other configuration actions
19453 from templates according to the current configuration. Unless the files
19454 and actions are specified as TAGs, all are instantiated by default.
19456 Usage: $0 [OPTION]... [TAG]...
19458 -h, --help print this help, then exit
19459 -V, --version print version number and configuration settings, then exit
19460 --config print configuration, then exit
19461 -q, --quiet, --silent
19462 do not print progress messages
19463 -d, --debug don't remove temporary files
19464 --recheck update $as_me by reconfiguring in the same conditions
19465 --file=FILE[:TEMPLATE]
19466 instantiate the configuration file FILE
19468 Configuration files:
19469 $config_files
19471 Report bugs to the package provider."
19473 _ACEOF
19474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19475 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19476 ac_cs_version="\\
19477 config.status
19478 configured by $0, generated by GNU Autoconf 2.69,
19479 with options \\"\$ac_cs_config\\"
19481 Copyright (C) 2012 Free Software Foundation, Inc.
19482 This config.status script is free software; the Free Software Foundation
19483 gives unlimited permission to copy, distribute and modify it."
19485 ac_pwd='$ac_pwd'
19486 srcdir='$srcdir'
19487 INSTALL='$INSTALL'
19488 AWK='$AWK'
19489 test -n "\$AWK" || AWK=awk
19490 _ACEOF
19492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19493 # The default lists apply if the user does not specify any file.
19494 ac_need_defaults=:
19495 while test $# != 0
19497 case $1 in
19498 --*=?*)
19499 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19500 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19501 ac_shift=:
19503 --*=)
19504 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19505 ac_optarg=
19506 ac_shift=:
19509 ac_option=$1
19510 ac_optarg=$2
19511 ac_shift=shift
19513 esac
19515 case $ac_option in
19516 # Handling of the options.
19517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19518 ac_cs_recheck=: ;;
19519 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19520 $as_echo "$ac_cs_version"; exit ;;
19521 --config | --confi | --conf | --con | --co | --c )
19522 $as_echo "$ac_cs_config"; exit ;;
19523 --debug | --debu | --deb | --de | --d | -d )
19524 debug=: ;;
19525 --file | --fil | --fi | --f )
19526 $ac_shift
19527 case $ac_optarg in
19528 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19529 '') as_fn_error $? "missing file argument" ;;
19530 esac
19531 as_fn_append CONFIG_FILES " '$ac_optarg'"
19532 ac_need_defaults=false;;
19533 --he | --h | --help | --hel | -h )
19534 $as_echo "$ac_cs_usage"; exit ;;
19535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19536 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19537 ac_cs_silent=: ;;
19539 # This is an error.
19540 -*) as_fn_error $? "unrecognized option: \`$1'
19541 Try \`$0 --help' for more information." ;;
19543 *) as_fn_append ac_config_targets " $1"
19544 ac_need_defaults=false ;;
19546 esac
19547 shift
19548 done
19550 ac_configure_extra_args=
19552 if $ac_cs_silent; then
19553 exec 6>/dev/null
19554 ac_configure_extra_args="$ac_configure_extra_args --silent"
19557 _ACEOF
19558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19559 if \$ac_cs_recheck; then
19560 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19561 shift
19562 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19563 CONFIG_SHELL='$SHELL'
19564 export CONFIG_SHELL
19565 exec "\$@"
19568 _ACEOF
19569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19570 exec 5>>config.log
19572 echo
19573 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19574 ## Running $as_me. ##
19575 _ASBOX
19576 $as_echo "$ac_log"
19577 } >&5
19579 _ACEOF
19580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19582 # INIT-COMMANDS
19584 extrasub_build="$extrasub_build"
19585 extrasub_host="$extrasub_host"
19586 extrasub_target="$extrasub_target"
19588 _ACEOF
19590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19592 # Handling of arguments.
19593 for ac_config_target in $ac_config_targets
19595 case $ac_config_target in
19596 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19598 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19599 esac
19600 done
19603 # If the user did not use the arguments to specify the items to instantiate,
19604 # then the envvar interface is used. Set only those that are not.
19605 # We use the long form for the default assignment because of an extremely
19606 # bizarre bug on SunOS 4.1.3.
19607 if $ac_need_defaults; then
19608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19611 # Have a temporary directory for convenience. Make it in the build tree
19612 # simply because there is no reason against having it here, and in addition,
19613 # creating and moving files from /tmp can sometimes cause problems.
19614 # Hook for its removal unless debugging.
19615 # Note that there is a small window in which the directory will not be cleaned:
19616 # after its creation but before its name has been assigned to `$tmp'.
19617 $debug ||
19619 tmp= ac_tmp=
19620 trap 'exit_status=$?
19621 : "${ac_tmp:=$tmp}"
19622 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19624 trap 'as_fn_exit 1' 1 2 13 15
19626 # Create a (secure) tmp directory for tmp files.
19629 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19630 test -d "$tmp"
19631 } ||
19633 tmp=./conf$$-$RANDOM
19634 (umask 077 && mkdir "$tmp")
19635 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19636 ac_tmp=$tmp
19638 # Set up the scripts for CONFIG_FILES section.
19639 # No need to generate them if there are no CONFIG_FILES.
19640 # This happens for instance with `./config.status config.h'.
19641 if test -n "$CONFIG_FILES"; then
19643 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19644 ac_cs_awk_getline=:
19645 ac_cs_awk_pipe_init=
19646 ac_cs_awk_read_file='
19647 while ((getline aline < (F[key])) > 0)
19648 print(aline)
19649 close(F[key])'
19650 ac_cs_awk_pipe_fini=
19651 else
19652 ac_cs_awk_getline=false
19653 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19654 ac_cs_awk_read_file='
19655 print "|#_!!_#|"
19656 print "cat " F[key] " &&"
19657 '$ac_cs_awk_pipe_init
19658 # The final `:' finishes the AND list.
19659 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19661 ac_cr=`echo X | tr X '\015'`
19662 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19663 # But we know of no other shell where ac_cr would be empty at this
19664 # point, so we can use a bashism as a fallback.
19665 if test "x$ac_cr" = x; then
19666 eval ac_cr=\$\'\\r\'
19668 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19669 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19670 ac_cs_awk_cr='\\r'
19671 else
19672 ac_cs_awk_cr=$ac_cr
19675 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19676 _ACEOF
19678 # Create commands to substitute file output variables.
19680 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19681 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19682 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19683 echo "_ACAWK" &&
19684 echo "_ACEOF"
19685 } >conf$$files.sh &&
19686 . ./conf$$files.sh ||
19687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19688 rm -f conf$$files.sh
19691 echo "cat >conf$$subs.awk <<_ACEOF" &&
19692 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19693 echo "_ACEOF"
19694 } >conf$$subs.sh ||
19695 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19696 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19697 ac_delim='%!_!# '
19698 for ac_last_try in false false false false false :; do
19699 . ./conf$$subs.sh ||
19700 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19702 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19703 if test $ac_delim_n = $ac_delim_num; then
19704 break
19705 elif $ac_last_try; then
19706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19707 else
19708 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19710 done
19711 rm -f conf$$subs.sh
19713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19714 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19715 _ACEOF
19716 sed -n '
19718 s/^/S["/; s/!.*/"]=/
19721 s/^[^!]*!//
19722 :repl
19723 t repl
19724 s/'"$ac_delim"'$//
19725 t delim
19728 s/\(.\{148\}\)..*/\1/
19729 t more1
19730 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19733 b repl
19734 :more1
19735 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19738 s/.\{148\}//
19739 t nl
19740 :delim
19742 s/\(.\{148\}\)..*/\1/
19743 t more2
19744 s/["\\]/\\&/g; s/^/"/; s/$/"/
19747 :more2
19748 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19751 s/.\{148\}//
19752 t delim
19753 ' <conf$$subs.awk | sed '
19754 /^[^""]/{
19756 s/\n//
19758 ' >>$CONFIG_STATUS || ac_write_fail=1
19759 rm -f conf$$subs.awk
19760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19761 _ACAWK
19762 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19763 for (key in S) S_is_set[key] = 1
19764 FS = "\a"
19765 \$ac_cs_awk_pipe_init
19768 line = $ 0
19769 nfields = split(line, field, "@")
19770 substed = 0
19771 len = length(field[1])
19772 for (i = 2; i < nfields; i++) {
19773 key = field[i]
19774 keylen = length(key)
19775 if (S_is_set[key]) {
19776 value = S[key]
19777 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19778 len += length(value) + length(field[++i])
19779 substed = 1
19780 } else
19781 len += 1 + keylen
19783 if (nfields == 3 && !substed) {
19784 key = field[2]
19785 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19786 \$ac_cs_awk_read_file
19787 next
19790 print line
19792 \$ac_cs_awk_pipe_fini
19793 _ACAWK
19794 _ACEOF
19795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19796 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19797 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19798 else
19800 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19801 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19802 _ACEOF
19804 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19805 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19806 # trailing colons and then remove the whole line if VPATH becomes empty
19807 # (actually we leave an empty line to preserve line numbers).
19808 if test "x$srcdir" = x.; then
19809 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19811 s///
19812 s/^/:/
19813 s/[ ]*$/:/
19814 s/:\$(srcdir):/:/g
19815 s/:\${srcdir}:/:/g
19816 s/:@srcdir@:/:/g
19817 s/^:*//
19818 s/:*$//
19820 s/\(=[ ]*\).*/\1/
19822 s/\n//
19823 s/^[^=]*=[ ]*$//
19827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19828 fi # test -n "$CONFIG_FILES"
19831 eval set X " :F $CONFIG_FILES "
19832 shift
19833 for ac_tag
19835 case $ac_tag in
19836 :[FHLC]) ac_mode=$ac_tag; continue;;
19837 esac
19838 case $ac_mode$ac_tag in
19839 :[FHL]*:*);;
19840 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19841 :[FH]-) ac_tag=-:-;;
19842 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19843 esac
19844 ac_save_IFS=$IFS
19845 IFS=:
19846 set x $ac_tag
19847 IFS=$ac_save_IFS
19848 shift
19849 ac_file=$1
19850 shift
19852 case $ac_mode in
19853 :L) ac_source=$1;;
19854 :[FH])
19855 ac_file_inputs=
19856 for ac_f
19858 case $ac_f in
19859 -) ac_f="$ac_tmp/stdin";;
19860 *) # Look for the file first in the build tree, then in the source tree
19861 # (if the path is not absolute). The absolute path cannot be DOS-style,
19862 # because $ac_f cannot contain `:'.
19863 test -f "$ac_f" ||
19864 case $ac_f in
19865 [\\/$]*) false;;
19866 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19867 esac ||
19868 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19869 esac
19870 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19871 as_fn_append ac_file_inputs " '$ac_f'"
19872 done
19874 # Let's still pretend it is `configure' which instantiates (i.e., don't
19875 # use $as_me), people would be surprised to read:
19876 # /* config.h. Generated by config.status. */
19877 configure_input='Generated from '`
19878 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19879 `' by configure.'
19880 if test x"$ac_file" != x-; then
19881 configure_input="$ac_file. $configure_input"
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19883 $as_echo "$as_me: creating $ac_file" >&6;}
19885 # Neutralize special characters interpreted by sed in replacement strings.
19886 case $configure_input in #(
19887 *\&* | *\|* | *\\* )
19888 ac_sed_conf_input=`$as_echo "$configure_input" |
19889 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19890 *) ac_sed_conf_input=$configure_input;;
19891 esac
19893 case $ac_tag in
19894 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19896 esac
19898 esac
19900 ac_dir=`$as_dirname -- "$ac_file" ||
19901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19902 X"$ac_file" : 'X\(//\)[^/]' \| \
19903 X"$ac_file" : 'X\(//\)$' \| \
19904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19905 $as_echo X"$ac_file" |
19906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19907 s//\1/
19910 /^X\(\/\/\)[^/].*/{
19911 s//\1/
19914 /^X\(\/\/\)$/{
19915 s//\1/
19918 /^X\(\/\).*/{
19919 s//\1/
19922 s/.*/./; q'`
19923 as_dir="$ac_dir"; as_fn_mkdir_p
19924 ac_builddir=.
19926 case "$ac_dir" in
19927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19929 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19930 # A ".." for each directory in $ac_dir_suffix.
19931 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19932 case $ac_top_builddir_sub in
19933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19935 esac ;;
19936 esac
19937 ac_abs_top_builddir=$ac_pwd
19938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19939 # for backward compatibility:
19940 ac_top_builddir=$ac_top_build_prefix
19942 case $srcdir in
19943 .) # We are building in place.
19944 ac_srcdir=.
19945 ac_top_srcdir=$ac_top_builddir_sub
19946 ac_abs_top_srcdir=$ac_pwd ;;
19947 [\\/]* | ?:[\\/]* ) # Absolute name.
19948 ac_srcdir=$srcdir$ac_dir_suffix;
19949 ac_top_srcdir=$srcdir
19950 ac_abs_top_srcdir=$srcdir ;;
19951 *) # Relative name.
19952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19953 ac_top_srcdir=$ac_top_build_prefix$srcdir
19954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19955 esac
19956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19959 case $ac_mode in
19962 # CONFIG_FILE
19965 case $INSTALL in
19966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19967 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19968 esac
19969 _ACEOF
19971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19972 # If the template does not know about datarootdir, expand it.
19973 # FIXME: This hack should be removed a few years after 2.60.
19974 ac_datarootdir_hack=; ac_datarootdir_seen=
19975 ac_sed_dataroot='
19976 /datarootdir/ {
19980 /@datadir@/p
19981 /@docdir@/p
19982 /@infodir@/p
19983 /@localedir@/p
19984 /@mandir@/p'
19985 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19986 *datarootdir*) ac_datarootdir_seen=yes;;
19987 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19989 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19990 _ACEOF
19991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19992 ac_datarootdir_hack='
19993 s&@datadir@&$datadir&g
19994 s&@docdir@&$docdir&g
19995 s&@infodir@&$infodir&g
19996 s&@localedir@&$localedir&g
19997 s&@mandir@&$mandir&g
19998 s&\\\${datarootdir}&$datarootdir&g' ;;
19999 esac
20000 _ACEOF
20002 # Neutralize VPATH when `$srcdir' = `.'.
20003 # Shell code in configure.ac might set extrasub.
20004 # FIXME: do we really want to maintain this feature?
20005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20006 ac_sed_extra="$ac_vpsub
20007 $extrasub
20008 _ACEOF
20009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20012 s|@configure_input@|$ac_sed_conf_input|;t t
20013 s&@top_builddir@&$ac_top_builddir_sub&;t t
20014 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20015 s&@srcdir@&$ac_srcdir&;t t
20016 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20017 s&@top_srcdir@&$ac_top_srcdir&;t t
20018 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20019 s&@builddir@&$ac_builddir&;t t
20020 s&@abs_builddir@&$ac_abs_builddir&;t t
20021 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20022 s&@INSTALL@&$ac_INSTALL&;t t
20023 $ac_datarootdir_hack
20025 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20026 if $ac_cs_awk_getline; then
20027 $AWK -f "$ac_tmp/subs.awk"
20028 else
20029 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20030 fi \
20031 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20034 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20036 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20038 which seems to be undefined. Please make sure it is defined" >&5
20039 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20040 which seems to be undefined. Please make sure it is defined" >&2;}
20042 rm -f "$ac_tmp/stdin"
20043 case $ac_file in
20044 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20045 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20046 esac \
20047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20052 esac
20055 case $ac_file$ac_mode in
20056 "Makefile":F) sed "$extrasub_build" Makefile |
20057 sed "$extrasub_host" |
20058 sed "$extrasub_target" > mf$$
20059 mv -f mf$$ Makefile ;;
20061 esac
20062 done # for ac_tag
20065 as_fn_exit 0
20066 _ACEOF
20067 ac_clean_files=$ac_clean_files_save
20069 test $ac_write_fail = 0 ||
20070 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20073 # configure is writing to config.log, and then calls config.status.
20074 # config.status does its own redirection, appending to config.log.
20075 # Unfortunately, on DOS this fails, as config.log is still kept open
20076 # by configure, so config.status won't be able to write to it; its
20077 # output is simply discarded. So we exec the FD to /dev/null,
20078 # effectively closing config.log, so it can be properly (re)opened and
20079 # appended to by config.status. When coming back to configure, we
20080 # need to make the FD available again.
20081 if test "$no_create" != yes; then
20082 ac_cs_success=:
20083 ac_config_status_args=
20084 test "$silent" = yes &&
20085 ac_config_status_args="$ac_config_status_args --quiet"
20086 exec 5>/dev/null
20087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20088 exec 5>>config.log
20089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20090 # would make configure fail if this is the last instruction.
20091 $ac_cs_success || as_fn_exit 1
20093 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20095 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}