arm, objdump: Make objdump use bfd's machine detection to drive disassembly
[binutils-gdb.git] / configure
blobd3125b009eef5af1c6148748530aa6923a3e0712
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 --disable-gprofng do not build gprofng
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
2339 progname=$0
2340 # if PWD already has a value, it is probably wrong.
2341 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2343 # Export original configure arguments for use by sub-configures.
2344 # Quote arguments with shell meta charatcers.
2345 TOPLEVEL_CONFIGURE_ARGUMENTS=
2346 set -- "$progname" "$@"
2347 for ac_arg
2349 case "$ac_arg" in
2350 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2351 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2352 # if the argument is of the form -foo=baz, quote the baz part only
2353 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2354 *) ;;
2355 esac
2356 # Add the quoted argument to the list.
2357 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2358 done
2359 if test "$silent" = yes; then
2360 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2362 # Remove the initial space we just introduced and, as these will be
2363 # expanded by make, quote '$'.
2364 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2367 # Find the build, host, and target systems.
2368 ac_aux_dir=
2369 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2370 if test -f "$ac_dir/install-sh"; then
2371 ac_aux_dir=$ac_dir
2372 ac_install_sh="$ac_aux_dir/install-sh -c"
2373 break
2374 elif test -f "$ac_dir/install.sh"; then
2375 ac_aux_dir=$ac_dir
2376 ac_install_sh="$ac_aux_dir/install.sh -c"
2377 break
2378 elif test -f "$ac_dir/shtool"; then
2379 ac_aux_dir=$ac_dir
2380 ac_install_sh="$ac_aux_dir/shtool install -c"
2381 break
2383 done
2384 if test -z "$ac_aux_dir"; then
2385 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2388 # These three variables are undocumented and unsupported,
2389 # and are intended to be withdrawn in a future Autoconf release.
2390 # They can cause serious problems if a builder's source tree is in a directory
2391 # whose full name contains unusual characters.
2392 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2393 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2394 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2397 # Make sure we can run config.sub.
2398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2399 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2402 $as_echo_n "checking build system type... " >&6; }
2403 if ${ac_cv_build+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 ac_build_alias=$build_alias
2407 test "x$ac_build_alias" = x &&
2408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2409 test "x$ac_build_alias" = x &&
2410 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2416 $as_echo "$ac_cv_build" >&6; }
2417 case $ac_cv_build in
2418 *-*-*) ;;
2419 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2420 esac
2421 build=$ac_cv_build
2422 ac_save_IFS=$IFS; IFS='-'
2423 set x $ac_cv_build
2424 shift
2425 build_cpu=$1
2426 build_vendor=$2
2427 shift; shift
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2430 build_os=$*
2431 IFS=$ac_save_IFS
2432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2435 case ${build_alias} in
2436 "") build_noncanonical=${build} ;;
2437 *) build_noncanonical=${build_alias} ;;
2438 esac
2442 case ${host_alias} in
2443 "") host_noncanonical=${build_noncanonical} ;;
2444 *) host_noncanonical=${host_alias} ;;
2445 esac
2449 case ${target_alias} in
2450 "") target_noncanonical=${host_noncanonical} ;;
2451 *) target_noncanonical=${target_alias} ;;
2452 esac
2457 test "$host_noncanonical" = "$target_noncanonical" &&
2458 test "$program_prefix$program_suffix$program_transform_name" = \
2459 NONENONEs,x,x, &&
2460 program_transform_name=s,y,y,
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2463 $as_echo_n "checking host system type... " >&6; }
2464 if ${ac_cv_host+:} false; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test "x$host_alias" = x; then
2468 ac_cv_host=$ac_cv_build
2469 else
2470 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2471 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2476 $as_echo "$ac_cv_host" >&6; }
2477 case $ac_cv_host in
2478 *-*-*) ;;
2479 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2480 esac
2481 host=$ac_cv_host
2482 ac_save_IFS=$IFS; IFS='-'
2483 set x $ac_cv_host
2484 shift
2485 host_cpu=$1
2486 host_vendor=$2
2487 shift; shift
2488 # Remember, the first character of IFS is used to create $*,
2489 # except with old shells:
2490 host_os=$*
2491 IFS=$ac_save_IFS
2492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2496 $as_echo_n "checking target system type... " >&6; }
2497 if ${ac_cv_target+:} false; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 if test "x$target_alias" = x; then
2501 ac_cv_target=$ac_cv_host
2502 else
2503 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2509 $as_echo "$ac_cv_target" >&6; }
2510 case $ac_cv_target in
2511 *-*-*) ;;
2512 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2513 esac
2514 target=$ac_cv_target
2515 ac_save_IFS=$IFS; IFS='-'
2516 set x $ac_cv_target
2517 shift
2518 target_cpu=$1
2519 target_vendor=$2
2520 shift; shift
2521 # Remember, the first character of IFS is used to create $*,
2522 # except with old shells:
2523 target_os=$*
2524 IFS=$ac_save_IFS
2525 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2528 # The aliases save the names the user supplied, while $host etc.
2529 # will get canonicalized.
2530 test -n "$target_alias" &&
2531 test "$program_prefix$program_suffix$program_transform_name" = \
2532 NONENONEs,x,x, &&
2533 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="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
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-libgrust \
2864 target-libphobos \
2865 target-zlib"
2867 # these tools are built using the target libraries, and are intended to
2868 # run only in the target environment
2870 # note: any program that *uses* libraries that are in the "target_libraries"
2871 # list belongs in this list.
2873 target_tools="target-rda"
2875 ################################################################################
2877 ## All tools belong in one of the four categories, and are assigned above
2878 ## We assign ${configdirs} this way to remove all embedded newlines. This
2879 ## is important because configure will choke if they ever get through.
2880 ## ${configdirs} is directories we build using the host tools.
2881 ## ${target_configdirs} is directories we build using the target tools.
2882 configdirs=`echo ${host_libs} ${host_tools}`
2883 target_configdirs=`echo ${target_libraries} ${target_tools}`
2884 build_configdirs=`echo ${build_libs} ${build_tools}`
2888 ################################################################################
2890 srcname="gnu development package"
2892 # This gets set non-empty for some net releases of packages.
2893 appdirs=""
2895 # Define is_cross_compiler to save on calls to 'test'.
2896 is_cross_compiler=
2897 if test x"${host}" = x"${target}" ; then
2898 is_cross_compiler=no
2899 else
2900 is_cross_compiler=yes
2903 # Find the build and target subdir names.
2905 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2906 # have matching libraries, they should use host libraries: Makefile.tpl
2907 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2908 # However, they still use the build modules, because the corresponding
2909 # host modules (e.g. bison) are only built for the host when bootstrap
2910 # finishes. So:
2911 # - build_subdir is where we find build modules, and never changes.
2912 # - build_libsubdir is where we find build libraries, and can be overridden.
2914 # Prefix 'build-' so this never conflicts with target_subdir.
2915 build_subdir="build-${build_noncanonical}"
2917 # Check whether --with-build-libsubdir was given.
2918 if test "${with_build_libsubdir+set}" = set; then :
2919 withval=$with_build_libsubdir; build_libsubdir="$withval"
2920 else
2921 build_libsubdir="$build_subdir"
2924 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2925 if ( test $srcdir = . && test -d gcc ) \
2926 || test -d $srcdir/../host-${host_noncanonical}; then
2927 host_subdir="host-${host_noncanonical}"
2928 else
2929 host_subdir=.
2931 # No prefix.
2932 target_subdir=${target_noncanonical}
2934 # Be sure to cover against remnants of an in-tree build.
2935 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2936 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2937 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2940 # Skipdirs are removed silently.
2941 skipdirs=
2942 # Noconfigdirs are removed loudly.
2943 noconfigdirs=""
2945 use_gnu_ld=
2946 # Make sure we don't let GNU ld be added if we didn't want it.
2947 if test x$with_gnu_ld = xno ; then
2948 use_gnu_ld=no
2949 noconfigdirs="$noconfigdirs ld gold"
2952 use_gnu_as=
2953 # Make sure we don't let GNU as be added if we didn't want it.
2954 if test x$with_gnu_as = xno ; then
2955 use_gnu_as=no
2956 noconfigdirs="$noconfigdirs gas"
2959 use_included_zlib=
2961 # Check whether --with-system-zlib was given.
2962 if test "${with_system_zlib+set}" = set; then :
2963 withval=$with_system_zlib;
2966 # Make sure we don't let ZLIB be added if we didn't want it.
2967 if test x$with_system_zlib = xyes ; then
2968 use_included_zlib=no
2969 noconfigdirs="$noconfigdirs zlib"
2972 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2973 # is provided.
2974 if test x$with_system_readline = xyes ; then
2975 noconfigdirs="$noconfigdirs readline"
2979 # Check whether --with-zstd was given.
2980 if test "${with_zstd+set}" = set; then :
2981 withval=$with_zstd;
2985 # some tools are so dependent upon X11 that if we're not building with X,
2986 # it's not even worth trying to configure, much less build, that tool.
2988 case ${with_x} in
2989 yes | "") ;; # the default value for this tree is that X11 is available
2991 skipdirs="${skipdirs} tk itcl libgui"
2992 # We won't be able to build gdbtk without X.
2993 enable_gdbtk=no
2995 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2996 esac
2998 # Some are only suitable for cross toolchains.
2999 # Remove these if host=target.
3000 cross_only="target-libgloss target-newlib target-opcodes"
3002 case $is_cross_compiler in
3003 no) skipdirs="${skipdirs} ${cross_only}" ;;
3004 esac
3006 # If both --with-headers and --with-libs are specified, default to
3007 # --without-newlib.
3008 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3009 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3010 if test x"${with_newlib}" = x ; then
3011 with_newlib=no
3015 # Recognize --with-newlib/--without-newlib.
3016 case ${with_newlib} in
3017 no) skipdirs="${skipdirs} target-newlib" ;;
3018 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3019 esac
3021 # Check whether --enable-as-accelerator-for was given.
3022 if test "${enable_as_accelerator_for+set}" = set; then :
3023 enableval=$enable_as_accelerator_for;
3027 # Check whether --enable-offload-targets was given.
3028 if test "${enable_offload_targets+set}" = set; then :
3029 enableval=$enable_offload_targets;
3030 if test x"$enable_offload_targets" = x; then
3031 as_fn_error $? "no offload targets specified" "$LINENO" 5
3034 else
3035 enable_offload_targets=
3039 # Check whether --enable-offload-defaulted was given.
3040 if test "${enable_offload_defaulted+set}" = set; then :
3041 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3042 else
3043 enable_offload_defaulted=
3047 # Handle --enable-gold, --enable-ld.
3048 # --disable-gold [--enable-ld]
3049 # Build only ld. Default option.
3050 # --enable-gold [--enable-ld]
3051 # Build both gold and ld. Install gold as "ld.gold", install ld
3052 # as "ld.bfd" and "ld".
3053 # --enable-gold=default [--enable-ld]
3054 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3055 # install ld as "ld.bfd".
3056 # --enable-gold[=default] --disable-ld
3057 # Build only gold, which is then installed as both "ld.gold" and "ld".
3058 # --enable-gold --enable-ld=default
3059 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3060 # and ld.bfd).
3061 # In other words, ld is default
3062 # --enable-gold=default --enable-ld=default
3063 # Error.
3065 default_ld=
3066 # Check whether --enable-gold was given.
3067 if test "${enable_gold+set}" = set; then :
3068 enableval=$enable_gold; ENABLE_GOLD=$enableval
3069 else
3070 ENABLE_GOLD=no
3073 case "${ENABLE_GOLD}" in
3074 yes|default)
3075 # Check for ELF target.
3076 is_elf=no
3077 case "${target}" in
3078 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3079 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3080 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3081 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3082 case "${target}" in
3083 *-*-linux*aout* | *-*-linux*oldld*)
3086 is_elf=yes
3088 esac
3089 esac
3091 if test "$is_elf" = "yes"; then
3092 # Check for target supported by gold.
3093 case "${target}" in
3094 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3095 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3096 configdirs="$configdirs gold"
3097 if test x${ENABLE_GOLD} = xdefault; then
3098 default_ld=gold
3100 ENABLE_GOLD=yes
3102 esac
3108 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3110 esac
3112 # Check whether --enable-ld was given.
3113 if test "${enable_ld+set}" = set; then :
3114 enableval=$enable_ld; ENABLE_LD=$enableval
3115 else
3116 ENABLE_LD=yes
3120 case "${ENABLE_LD}" in
3121 default)
3122 if test x${default_ld} != x; then
3123 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3126 yes)
3129 if test x${ENABLE_GOLD} != xyes; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3131 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3133 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3136 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3138 esac
3140 # Check whether --enable-gprofng was given.
3141 if test "${enable_gprofng+set}" = set; then :
3142 enableval=$enable_gprofng; enable_gprofng=$enableval
3143 else
3144 enable_gprofng=yes
3147 if test "$enable_gprofng" = "yes"; then
3148 case "${target}" in
3149 *-musl*)
3151 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux* | riscv64-*-linux*)
3152 configdirs="$configdirs gprofng"
3154 esac
3158 # PR gas/19109
3159 # Decide the default method for compressing debug sections.
3160 # Provide a configure time option to override our default.
3161 # Check whether --enable-compressed_debug_sections was given.
3162 if test "${enable_compressed_debug_sections+set}" = set; then :
3163 enableval=$enable_compressed_debug_sections;
3164 if test x"$enable_compressed_debug_sections" = xyes; then
3165 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3168 else
3169 enable_compressed_debug_sections=
3173 # Select default compression algorithm.
3174 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3175 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3176 enableval=$enable_default_compressed_debug_sections_algorithm;
3177 else
3178 default_compressed_debug_sections_algorithm=
3182 # Configure extra directories which are host specific
3184 case "${host}" in
3185 *-cygwin*)
3186 configdirs="$configdirs libtermcap" ;;
3187 esac
3189 # A target can indicate whether a language isn't supported for some reason.
3190 # Only spaces may be used in this macro; not newlines or tabs.
3191 unsupported_languages=
3193 # Remove more programs from consideration, based on the host or
3194 # target this usually means that a port of the program doesn't
3195 # exist yet.
3197 case "${host}" in
3198 i[3456789]86-*-msdosdjgpp*)
3199 noconfigdirs="$noconfigdirs tcl tk itcl"
3201 esac
3203 # Default to --disable-year2038 until we can handle differences between
3204 # projects that use gnulib (which understands year 2038) and projects that
3205 # do not (like BFD).
3206 # Check whether --enable-year2038 was given.
3207 if test "${enable_year2038+set}" = set; then :
3208 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3209 else
3210 ENABLE_YEAR2038=no
3213 enable_year2038=
3214 if test "${ENABLE_YEAR2038}" = "no" ; then
3215 enable_year2038=no
3218 # Check whether --enable-libquadmath was given.
3219 if test "${enable_libquadmath+set}" = set; then :
3220 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3221 else
3222 ENABLE_LIBQUADMATH=yes
3225 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3226 noconfigdirs="$noconfigdirs target-libquadmath"
3230 # Check whether --enable-libquadmath-support was given.
3231 if test "${enable_libquadmath_support+set}" = set; then :
3232 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3233 else
3234 ENABLE_LIBQUADMATH_SUPPORT=yes
3237 enable_libquadmath_support=
3238 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3239 enable_libquadmath_support=no
3243 # Check whether --enable-libada was given.
3244 if test "${enable_libada+set}" = set; then :
3245 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3246 else
3247 ENABLE_LIBADA=yes
3250 if test "${ENABLE_LIBADA}" != "yes" ; then
3251 noconfigdirs="$noconfigdirs gnattools"
3254 # Check whether --enable-libgm2 was given.
3255 if test "${enable_libgm2+set}" = set; then :
3256 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3257 else
3258 ENABLE_LIBGM2=no
3261 if test "${ENABLE_LIBGM2}" != "yes" ; then
3262 noconfigdirs="$noconfigdirs gm2tools"
3265 # Check whether --enable-libssp was given.
3266 if test "${enable_libssp+set}" = set; then :
3267 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3268 else
3269 ENABLE_LIBSSP=yes
3273 # Check whether --enable-libstdcxx was given.
3274 if test "${enable_libstdcxx+set}" = set; then :
3275 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3276 else
3277 ENABLE_LIBSTDCXX=default
3280 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3281 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3284 # Enable libgomp by default on hosted POSIX systems, and a few others.
3285 if test x$enable_libgomp = x ; then
3286 case "${target}" in
3287 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3289 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3291 *-*-solaris2* | *-*-hpux11*)
3293 *-*-darwin* | *-*-aix*)
3295 nvptx*-*-* | amdgcn*-*-*)
3298 noconfigdirs="$noconfigdirs target-libgomp"
3300 esac
3303 # Disable libatomic on unsupported systems.
3304 if test -d ${srcdir}/libatomic; then
3305 if test x$enable_libatomic = x; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3307 $as_echo_n "checking for libatomic support... " >&6; }
3308 if (srcdir=${srcdir}/libatomic; \
3309 . ${srcdir}/configure.tgt; \
3310 test -n "$UNSUPPORTED")
3311 then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 noconfigdirs="$noconfigdirs target-libatomic"
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 $as_echo "yes" >&6; }
3322 # Disable libitm on unsupported systems.
3323 if test -d ${srcdir}/libitm; then
3324 if test x$enable_libitm = x; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3326 $as_echo_n "checking for libitm support... " >&6; }
3327 if (srcdir=${srcdir}/libitm; \
3328 . ${srcdir}/configure.tgt; \
3329 test -n "$UNSUPPORTED")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 noconfigdirs="$noconfigdirs target-libitm"
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3341 # Disable libsanitizer on unsupported systems.
3342 if test -d ${srcdir}/libsanitizer; then
3343 if test x$enable_libsanitizer = x; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3345 $as_echo_n "checking for libsanitizer support... " >&6; }
3346 if (srcdir=${srcdir}/libsanitizer; \
3347 . ${srcdir}/configure.tgt; \
3348 test -n "$UNSUPPORTED")
3349 then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 noconfigdirs="$noconfigdirs target-libsanitizer"
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355 $as_echo "yes" >&6; }
3360 # Disable libvtv on unsupported systems.
3361 if test -d ${srcdir}/libvtv; then
3362 if test x$enable_libvtv = x; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3364 $as_echo_n "checking for libvtv support... " >&6; }
3365 if (srcdir=${srcdir}/libvtv; \
3366 . ${srcdir}/configure.tgt; \
3367 test "$VTV_SUPPORTED" != "yes")
3368 then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 noconfigdirs="$noconfigdirs target-libvtv"
3372 else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374 $as_echo "yes" >&6; }
3379 # Disable libquadmath for some systems.
3380 case "${target}" in
3381 avr-*-*)
3382 noconfigdirs="$noconfigdirs target-libquadmath"
3384 # libquadmath is unused on AIX and libquadmath build process use of
3385 # LD_LIBRARY_PATH can break AIX bootstrap.
3386 powerpc-*-aix* | rs6000-*-aix*)
3387 noconfigdirs="$noconfigdirs target-libquadmath"
3389 esac
3391 # Disable libssp for some systems.
3392 case "${target}" in
3393 avr-*-*)
3394 # No hosted I/O support.
3395 noconfigdirs="$noconfigdirs target-libssp"
3397 bpf-*-*)
3398 noconfigdirs="$noconfigdirs target-libssp"
3400 powerpc-*-aix* | rs6000-*-aix*)
3401 noconfigdirs="$noconfigdirs target-libssp"
3403 pru-*-*)
3404 # No hosted I/O support.
3405 noconfigdirs="$noconfigdirs target-libssp"
3407 rl78-*-*)
3408 # libssp uses a misaligned load to trigger a fault, but the RL78
3409 # doesn't fault for those - instead, it gives a build-time error
3410 # for explicit misaligned loads.
3411 noconfigdirs="$noconfigdirs target-libssp"
3413 visium-*-*)
3414 # No hosted I/O support.
3415 noconfigdirs="$noconfigdirs target-libssp"
3417 esac
3419 # Disable libstdc++-v3 for some systems.
3420 # Allow user to override this if they pass --enable-libstdcxx
3421 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3422 case "${target}" in
3423 *-*-vxworks*)
3424 # VxWorks uses the Dinkumware C++ library.
3425 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3427 amdgcn*-*-*)
3428 # Not ported/fails to build when using newlib.
3429 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3431 arm*-wince-pe*)
3432 # the C++ libraries don't build on top of CE's C libraries
3433 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3435 avr-*-*)
3436 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3438 bpf-*-*)
3439 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3441 ft32-*-*)
3442 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3444 esac
3447 # Disable C++ on systems where it is known to not work.
3448 # For testing, you can override this with --enable-languages=c++.
3449 case ,${enable_languages}, in
3450 *,c++,*)
3453 case "${target}" in
3454 bpf-*-*)
3455 unsupported_languages="$unsupported_languages c++"
3457 esac
3459 esac
3461 # Disable Objc on systems where it is known to not work.
3462 # For testing, you can override this with --enable-languages=objc.
3463 case ,${enable_languages}, in
3464 *,objc,*)
3467 case "${target}" in
3468 bpf-*-*)
3469 unsupported_languages="$unsupported_languages objc"
3471 esac
3473 esac
3475 # Disable D on systems where it is known to not work.
3476 # For testing, you can override this with --enable-languages=d.
3477 case ,${enable_languages}, in
3478 *,d,*)
3481 case "${target}" in
3482 bpf-*-*)
3483 unsupported_languages="$unsupported_languages d"
3485 esac
3487 esac
3489 # Disable libphobos on unsupported systems.
3490 # For testing, you can override this with --enable-libphobos.
3491 if test -d ${srcdir}/libphobos; then
3492 if test x$enable_libphobos = x; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3494 $as_echo_n "checking for libphobos support... " >&6; }
3495 if (srcdir=${srcdir}/libphobos; \
3496 . ${srcdir}/configure.tgt; \
3497 test "$LIBPHOBOS_SUPPORTED" != "yes")
3498 then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501 noconfigdirs="$noconfigdirs target-libphobos"
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3504 $as_echo "yes" >&6; }
3509 # Disable Fortran for some systems.
3510 case "${target}" in
3511 mmix-*-*)
3512 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3513 unsupported_languages="$unsupported_languages fortran"
3515 bpf-*-*)
3516 unsupported_languages="$unsupported_languages fortran"
3518 esac
3520 # Disable libffi for some systems.
3521 case "${target}" in
3522 powerpc-*-darwin*)
3524 i[3456789]86-*-darwin*)
3526 x86_64-*-darwin[912]*)
3528 *-*-darwin*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3531 *-*-netware*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3534 *-*-phoenix*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3537 *-*-rtems*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3540 *-*-tpf*)
3541 noconfigdirs="$noconfigdirs target-libffi"
3543 *-*-uclinux*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3546 *-*-vxworks*)
3547 noconfigdirs="$noconfigdirs target-libffi"
3549 aarch64*-*-freebsd*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3552 alpha*-*-*vms*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3555 arm*-*-freebsd*)
3556 noconfigdirs="$noconfigdirs target-libffi"
3558 arm-wince-pe)
3559 noconfigdirs="$noconfigdirs target-libffi"
3561 arm*-*-symbianelf*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3564 bpf-*-*)
3565 noconfigdirs="$noconfigdirs target-libffi"
3567 cris-*-* | crisv32-*-*)
3568 case "${target}" in
3569 *-*-linux*)
3571 *) # See PR46792 regarding target-libffi.
3572 noconfigdirs="$noconfigdirs target-libffi";;
3573 esac
3575 hppa*64*-*-hpux*)
3576 noconfigdirs="$noconfigdirs target-libffi"
3578 hppa*-hp-hpux11*)
3580 hppa*-*-hpux*)
3581 noconfigdirs="$noconfigdirs target-libffi"
3583 ia64*-*-*vms*)
3584 noconfigdirs="$noconfigdirs target-libffi"
3586 i[3456789]86-w64-mingw*)
3587 noconfigdirs="$noconfigdirs target-libffi"
3589 i[3456789]86-*-mingw*)
3590 noconfigdirs="$noconfigdirs target-libffi"
3592 x86_64-*-mingw*)
3593 noconfigdirs="$noconfigdirs target-libffi"
3595 mmix-*-*)
3596 noconfigdirs="$noconfigdirs target-libffi"
3598 powerpc-*-aix*)
3600 rs6000-*-aix*)
3602 ft32-*-*)
3603 noconfigdirs="$noconfigdirs target-libffi"
3605 *-*-lynxos*)
3606 noconfigdirs="$noconfigdirs target-libffi"
3608 esac
3610 # Disable the go frontend on systems where it is known to not work. Please keep
3611 # this in sync with contrib/config-list.mk.
3612 case "${target}" in
3613 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3614 unsupported_languages="$unsupported_languages go"
3616 esac
3618 # Only allow gdbserver on some systems.
3619 if test -d ${srcdir}/gdbserver; then
3620 if test x$enable_gdbserver = x; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3622 $as_echo_n "checking for gdbserver support... " >&6; }
3623 if (srcdir=${srcdir}/gdbserver; \
3624 . ${srcdir}/configure.srv; \
3625 test -n "$UNSUPPORTED")
3626 then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3629 noconfigdirs="$noconfigdirs gdbserver"
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632 $as_echo "yes" >&6; }
3637 # Disable libgo for some systems where it is known to not work.
3638 # For testing, you can easily override this with --enable-libgo.
3639 if test x$enable_libgo = x; then
3640 case "${target}" in
3641 *-*-darwin*)
3642 # PR 46986
3643 noconfigdirs="$noconfigdirs target-libgo"
3645 *-*-cygwin* | *-*-mingw*)
3646 noconfigdirs="$noconfigdirs target-libgo"
3648 bpf-*-*)
3649 noconfigdirs="$noconfigdirs target-libgo"
3651 esac
3654 # Default libgloss CPU subdirectory.
3655 libgloss_dir="$target_cpu"
3657 case "${target}" in
3658 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3659 libgloss_dir=wince
3661 aarch64*-*-* )
3662 libgloss_dir=aarch64
3664 arm*-*-*)
3665 libgloss_dir=arm
3667 cris-*-* | crisv32-*-*)
3668 libgloss_dir=cris
3670 kvx-*-elf)
3671 libgloss_dir=kvx-elf
3673 kvx-*-mbr)
3674 libgloss_dir=kvx-mbr
3676 kvx-*-cos)
3677 libgloss_dir=kvx-cos
3679 hppa*-*-*)
3680 libgloss_dir=pa
3682 i[3456789]86-*-*)
3683 libgloss_dir=i386
3685 loongarch*-*-*)
3686 libgloss_dir=loongarch
3688 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3689 libgloss_dir=m68hc11
3691 m68*-*-* | fido-*-*)
3692 libgloss_dir=m68k
3694 mips*-*-*)
3695 libgloss_dir=mips
3697 powerpc*-*-*)
3698 libgloss_dir=rs6000
3700 pru-*-*)
3701 libgloss_dir=pru
3703 sparc*-*-*)
3704 libgloss_dir=sparc
3706 esac
3708 # Disable newlib and libgloss for various target OSes.
3709 case "${target}" in
3710 alpha*-dec-osf*)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 i[3456789]86-*-linux*)
3714 # This section makes it possible to build newlib natively on linux.
3715 # If we are using a cross compiler then don't configure newlib.
3716 if test x${is_cross_compiler} != xno ; then
3717 noconfigdirs="$noconfigdirs target-newlib"
3719 noconfigdirs="$noconfigdirs target-libgloss"
3720 # If we are not using a cross compiler, do configure newlib.
3721 # Note however, that newlib will only be configured in this situation
3722 # if the --with-newlib option has been given, because otherwise
3723 # 'target-newlib' will appear in skipdirs.
3725 i[3456789]86-*-rdos*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 sparc-*-sunos4*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 bpf-*-*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 *-*-aix*)
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3740 *-*-beos*)
3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3743 *-*-chorusos)
3744 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3746 *-*-dragonfly*)
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3749 *-*-freebsd*)
3750 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3752 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3753 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755 *-*-lynxos*)
3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3758 *-*-mingw*)
3759 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3761 *-*-netbsd*)
3762 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3764 *-*-netware*)
3765 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3767 *-*-tpf*)
3768 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3770 *-*-uclinux*)
3771 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3773 *-*-vxworks*)
3774 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3776 esac
3778 # The ARM simulator has been deprecated for all ARM targets.
3779 case "${target}" in
3780 arm*-*-*)
3781 noconfigdirs="$noconfigdirs sim"
3783 esac
3785 case "${target}" in
3786 *-*-chorusos)
3788 aarch64-*-darwin*)
3789 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3790 noconfigdirs="$noconfigdirs sim target-rda"
3792 amdgcn*-*-*)
3794 arm-*-darwin*)
3795 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3796 noconfigdirs="$noconfigdirs target-rda"
3798 powerpc-*-darwin*)
3799 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3800 noconfigdirs="$noconfigdirs sim target-rda"
3802 i[3456789]86-*-darwin*)
3803 noconfigdirs="$noconfigdirs ld gprof"
3804 noconfigdirs="$noconfigdirs sim target-rda"
3806 x86_64-*-darwin[912]*)
3807 noconfigdirs="$noconfigdirs ld gas gprof"
3808 noconfigdirs="$noconfigdirs sim target-rda"
3810 *-*-darwin*)
3811 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3812 noconfigdirs="$noconfigdirs sim target-rda"
3814 *-*-dragonfly*)
3816 *-*-freebsd*)
3817 if test "x$with_gmp" = x \
3818 && ! test -d ${srcdir}/gmp \
3819 && test -f /usr/local/include/gmp.h; then
3820 with_gmp=/usr/local
3823 *-*-kaos*)
3824 # Remove unsupported stuff on all kaOS configurations.
3825 noconfigdirs="$noconfigdirs target-libgloss"
3827 *-*-netbsd*)
3829 *-*-netware*)
3831 *-*-phoenix*)
3832 noconfigdirs="$noconfigdirs target-libgloss"
3834 *-*-rtems*)
3835 noconfigdirs="$noconfigdirs target-libgloss"
3837 # The tpf target doesn't support gdb yet.
3838 *-*-tpf*)
3839 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3841 *-*-uclinux*)
3842 noconfigdirs="$noconfigdirs target-rda"
3844 *-*-vxworks*)
3846 alpha*-dec-osf*)
3847 # ld works, but does not support shared libraries.
3848 # gas doesn't generate exception information.
3849 noconfigdirs="$noconfigdirs gas ld"
3851 alpha*-*-*vms*)
3852 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3854 alpha*-*-*)
3855 # newlib is not 64 bit ready
3856 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3858 bpf-*-*)
3859 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3861 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3862 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3864 arc*-*-*)
3865 noconfigdirs="$noconfigdirs sim"
3867 arm-*-pe*)
3868 noconfigdirs="$noconfigdirs target-libgloss"
3870 arm-*-riscix*)
3871 noconfigdirs="$noconfigdirs ld target-libgloss"
3873 avr-*-*)
3874 if test x${with_avrlibc} != xno; then
3875 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3878 c4x-*-* | tic4x-*-*)
3879 noconfigdirs="$noconfigdirs target-libgloss"
3881 tic54x-*-*)
3882 noconfigdirs="$noconfigdirs target-libgloss gdb"
3884 d10v-*-*)
3885 noconfigdirs="$noconfigdirs target-libgloss"
3887 d30v-*-*)
3888 noconfigdirs="$noconfigdirs gdb"
3890 fr30-*-elf*)
3891 noconfigdirs="$noconfigdirs gdb"
3893 ft32-*-*)
3894 noconfigdirs="$noconfigdirs target-rda gprof"
3896 moxie-*-*)
3897 noconfigdirs="$noconfigdirs"
3899 h8300*-*-*)
3900 noconfigdirs="$noconfigdirs target-libgloss"
3902 h8500-*-*)
3903 noconfigdirs="$noconfigdirs target-libgloss"
3905 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3907 hppa*64*-*-hpux*)
3908 noconfigdirs="$noconfigdirs gdb"
3910 hppa*-*-hpux11*)
3911 noconfigdirs="$noconfigdirs gdb ld"
3913 hppa*64*-*-linux*)
3915 hppa*-*-linux*)
3917 hppa*-*-*elf* | \
3918 hppa*-*-lites* | \
3919 hppa*-*-openbsd* | \
3920 hppa*64*-*-*)
3922 hppa*-*-pro*)
3924 hppa*-*-*)
3925 noconfigdirs="$noconfigdirs ld"
3927 i960-*-*)
3928 noconfigdirs="$noconfigdirs gdb"
3930 ia64*-*-elf*)
3931 # No gdb support yet.
3932 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3934 ia64*-**-hpux*)
3935 # No ld support yet.
3936 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3938 ia64*-*-*vms*)
3939 # No ld support yet.
3940 noconfigdirs="$noconfigdirs libgui itcl ld"
3942 i[3456789]86-w64-mingw*)
3944 i[3456789]86-*-mingw*)
3945 target_configdirs="$target_configdirs target-winsup"
3947 *-*-cygwin*)
3948 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3949 noconfigdirs="$noconfigdirs target-libgloss"
3950 # always build newlib if winsup directory is present.
3951 if test -d "$srcdir/winsup/cygwin"; then
3952 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3953 elif test -d "$srcdir/newlib"; then
3954 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3957 i[3456789]86-*-pe)
3958 noconfigdirs="$noconfigdirs target-libgloss"
3960 i[3456789]86-*-sco3.2v5*)
3961 # The linker does not yet know about weak symbols in COFF,
3962 # and is not configured to handle mixed ELF and COFF.
3963 noconfigdirs="$noconfigdirs ld target-libgloss"
3965 i[3456789]86-*-sco*)
3966 noconfigdirs="$noconfigdirs gprof target-libgloss"
3968 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3969 noconfigdirs="$noconfigdirs target-libgloss"
3971 i[3456789]86-*-sysv4*)
3972 noconfigdirs="$noconfigdirs target-libgloss"
3974 i[3456789]86-*-beos*)
3975 noconfigdirs="$noconfigdirs gdb"
3977 i[3456789]86-*-rdos*)
3978 noconfigdirs="$noconfigdirs gdb"
3980 kvx-*-*)
3981 noconfigdirs="$noconfigdirs gdb gdbserver sim"
3983 mmix-*-*)
3984 noconfigdirs="$noconfigdirs gdb"
3986 mt-*-*)
3987 noconfigdirs="$noconfigdirs sim"
3989 nfp-*-*)
3990 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3991 noconfigdirs="$noconfigdirs $target_libraries"
3993 pdp11-*-*)
3994 noconfigdirs="$noconfigdirs gdb gprof"
3996 powerpc-*-aix*)
3997 # copied from rs6000-*-* entry
3998 noconfigdirs="$noconfigdirs gprof"
4000 powerpc*-*-winnt* | powerpc*-*-pe*)
4001 target_configdirs="$target_configdirs target-winsup"
4002 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
4003 # always build newlib.
4004 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4006 # This is temporary until we can link against shared libraries
4007 powerpcle-*-solaris*)
4008 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
4010 powerpc-*-beos*)
4011 noconfigdirs="$noconfigdirs gdb"
4013 rs6000-*-lynxos*)
4014 noconfigdirs="$noconfigdirs gprof"
4016 rs6000-*-aix*)
4017 noconfigdirs="$noconfigdirs gprof"
4019 rs6000-*-*)
4020 noconfigdirs="$noconfigdirs gprof"
4022 m68k-apollo-*)
4023 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4025 microblaze*)
4026 noconfigdirs="$noconfigdirs gprof"
4028 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4029 if test x$with_newlib = xyes; then
4030 noconfigdirs="$noconfigdirs gprof"
4033 mips*-*-irix5*)
4034 noconfigdirs="$noconfigdirs gprof target-libgloss"
4036 mips*-*-irix6*)
4037 noconfigdirs="$noconfigdirs gprof target-libgloss"
4039 mips*-*-bsd*)
4040 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4042 mips*-*-linux*)
4044 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4045 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4046 noconfigdirs="$noconfigdirs ld gas gprof"
4048 mips*-*-*)
4049 noconfigdirs="$noconfigdirs gprof"
4051 nvptx*-*-*)
4052 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4054 sh-*-*)
4055 case "${target}" in
4056 sh*-*-elf)
4059 noconfigdirs="$noconfigdirs target-libgloss" ;;
4060 esac
4062 sparc-*-sunos4*)
4063 if test x${is_cross_compiler} = xno ; then
4064 use_gnu_ld=no
4067 tic6x-*-*)
4068 noconfigdirs="$noconfigdirs sim"
4070 tilepro*-*-* | tilegx*-*-*)
4071 noconfigdirs="$noconfigdirs sim"
4073 v810-*-*)
4074 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4076 vax-*-*)
4077 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4079 wasm32-*-*)
4080 noconfigdirs="$noconfigdirs ld"
4082 loongarch*-*-linux*)
4084 loongarch*-*-*)
4085 noconfigdirs="$noconfigdirs gprof"
4087 esac
4089 # If we aren't building newlib, then don't build libgloss, since libgloss
4090 # depends upon some newlib header files.
4091 case "${noconfigdirs}" in
4092 *target-libgloss*) ;;
4093 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4094 esac
4096 # Work in distributions that contain no compiler tools, like Autoconf.
4097 host_makefile_frag=/dev/null
4098 if test -d ${srcdir}/config ; then
4099 case "${host}" in
4100 i[3456789]86-*-msdosdjgpp*)
4101 host_makefile_frag="config/mh-djgpp"
4103 *-cygwin*)
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4106 $as_echo_n "checking to see if cat works as expected... " >&6; }
4107 echo a >cygwin-cat-check
4108 if test `cat cygwin-cat-check` = a ; then
4109 rm cygwin-cat-check
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4111 $as_echo "yes" >&6; }
4112 else
4113 rm cygwin-cat-check
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 $as_echo "no" >&6; }
4116 as_fn_error $? "The cat command does not ignore carriage return characters.
4117 Please either mount the build directory in binary mode or run the following
4118 commands before running any configure script:
4119 set -o igncr
4120 export SHELLOPTS
4121 " "$LINENO" 5
4124 host_makefile_frag="config/mh-cygwin"
4126 *-mingw*)
4127 host_makefile_frag="config/mh-mingw"
4129 alpha*-linux*)
4130 host_makefile_frag="config/mh-alpha-linux"
4132 hppa*-hp-hpux*)
4133 host_makefile_frag="config/mh-pa"
4135 hppa*-*)
4136 host_makefile_frag="config/mh-pa"
4138 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4139 host_makefile_frag="config/mh-darwin"
4141 powerpc-*-aix*)
4142 host_makefile_frag="config/mh-ppc-aix"
4144 rs6000-*-aix*)
4145 host_makefile_frag="config/mh-ppc-aix"
4147 esac
4150 if test "${build}" != "${host}" ; then
4151 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4152 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4153 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4154 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4155 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4156 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4157 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4158 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4159 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4160 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4161 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4162 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4163 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4164 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4165 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4166 else
4167 AR_FOR_BUILD="\$(AR)"
4168 AS_FOR_BUILD="\$(AS)"
4169 CC_FOR_BUILD="\$(CC)"
4170 CXX_FOR_BUILD="\$(CXX)"
4171 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4172 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4173 GOC_FOR_BUILD="\$(GOC)"
4174 GDC_FOR_BUILD="\$(GDC)"
4175 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4176 LD_FOR_BUILD="\$(LD)"
4177 NM_FOR_BUILD="\$(NM)"
4178 RANLIB_FOR_BUILD="\$(RANLIB)"
4179 WINDRES_FOR_BUILD="\$(WINDRES)"
4180 WINDMC_FOR_BUILD="\$(WINDMC)"
4183 ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 if test -n "$ac_tool_prefix"; then
4189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if ${ac_cv_prog_CC+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -n "$CC"; then
4197 ac_cv_prog_CC="$CC" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4210 done
4211 done
4212 IFS=$as_save_IFS
4216 CC=$ac_cv_prog_CC
4217 if test -n "$CC"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4219 $as_echo "$CC" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4227 if test -z "$ac_cv_prog_CC"; then
4228 ac_ct_CC=$CC
4229 # Extract the first word of "gcc", so it can be a program name with args.
4230 set dummy gcc; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 if test -n "$ac_ct_CC"; then
4237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246 ac_cv_prog_ac_ct_CC="gcc"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4250 done
4251 done
4252 IFS=$as_save_IFS
4256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4257 if test -n "$ac_ct_CC"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4259 $as_echo "$ac_ct_CC" >&6; }
4260 else
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4265 if test "x$ac_ct_CC" = x; then
4266 CC=""
4267 else
4268 case $cross_compiling:$ac_tool_warned in
4269 yes:)
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4272 ac_tool_warned=yes ;;
4273 esac
4274 CC=$ac_ct_CC
4276 else
4277 CC="$ac_cv_prog_CC"
4280 if test -z "$CC"; then
4281 if test -n "$ac_tool_prefix"; then
4282 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4283 set dummy ${ac_tool_prefix}cc; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_CC+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$CC"; then
4290 ac_cv_prog_CC="$CC" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_CC="${ac_tool_prefix}cc"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4303 done
4304 done
4305 IFS=$as_save_IFS
4309 CC=$ac_cv_prog_CC
4310 if test -n "$CC"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4312 $as_echo "$CC" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4321 if test -z "$CC"; then
4322 # Extract the first word of "cc", so it can be a program name with args.
4323 set dummy cc; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_prog_CC+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 if test -n "$CC"; then
4330 ac_cv_prog_CC="$CC" # Let the user override the test.
4331 else
4332 ac_prog_rejected=no
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4341 ac_prog_rejected=yes
4342 continue
4344 ac_cv_prog_CC="cc"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4348 done
4349 done
4350 IFS=$as_save_IFS
4352 if test $ac_prog_rejected = yes; then
4353 # We found a bogon in the path, so make sure we never use it.
4354 set dummy $ac_cv_prog_CC
4355 shift
4356 if test $# != 0; then
4357 # We chose a different compiler from the bogus one.
4358 # However, it has the same basename, so the bogon will be chosen
4359 # first if we set CC to just the basename; use the full file name.
4360 shift
4361 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4366 CC=$ac_cv_prog_CC
4367 if test -n "$CC"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4369 $as_echo "$CC" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4377 if test -z "$CC"; then
4378 if test -n "$ac_tool_prefix"; then
4379 for ac_prog in cl.exe
4381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if ${ac_cv_prog_CC+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -n "$CC"; then
4389 ac_cv_prog_CC="$CC" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4402 done
4403 done
4404 IFS=$as_save_IFS
4408 CC=$ac_cv_prog_CC
4409 if test -n "$CC"; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4411 $as_echo "$CC" >&6; }
4412 else
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4418 test -n "$CC" && break
4419 done
4421 if test -z "$CC"; then
4422 ac_ct_CC=$CC
4423 for ac_prog in cl.exe
4425 # Extract the first word of "$ac_prog", so it can be a program name with args.
4426 set dummy $ac_prog; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 if test -n "$ac_ct_CC"; then
4433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442 ac_cv_prog_ac_ct_CC="$ac_prog"
4443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4446 done
4447 done
4448 IFS=$as_save_IFS
4452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4453 if test -n "$ac_ct_CC"; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4455 $as_echo "$ac_ct_CC" >&6; }
4456 else
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4462 test -n "$ac_ct_CC" && break
4463 done
4465 if test "x$ac_ct_CC" = x; then
4466 CC=""
4467 else
4468 case $cross_compiling:$ac_tool_warned in
4469 yes:)
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4472 ac_tool_warned=yes ;;
4473 esac
4474 CC=$ac_ct_CC
4481 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4483 as_fn_error $? "no acceptable C compiler found in \$PATH
4484 See \`config.log' for more details" "$LINENO" 5; }
4486 # Provide some information about the compiler.
4487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4488 set X $ac_compile
4489 ac_compiler=$2
4490 for ac_option in --version -v -V -qversion; do
4491 { { ac_try="$ac_compiler $ac_option >&5"
4492 case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4497 $as_echo "$ac_try_echo"; } >&5
4498 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4499 ac_status=$?
4500 if test -s conftest.err; then
4501 sed '10a\
4502 ... rest of stderr output deleted ...
4503 10q' conftest.err >conftest.er1
4504 cat conftest.er1 >&5
4506 rm -f conftest.er1 conftest.err
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }
4509 done
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4515 main ()
4519 return 0;
4521 _ACEOF
4522 ac_clean_files_save=$ac_clean_files
4523 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4524 # Try to create an executable without -o first, disregard a.out.
4525 # It will help us diagnose broken compilers, and finding out an intuition
4526 # of exeext.
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4528 $as_echo_n "checking whether the C compiler works... " >&6; }
4529 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4531 # The possible output files:
4532 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4534 ac_rmfiles=
4535 for ac_file in $ac_files
4537 case $ac_file in
4538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4539 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4540 esac
4541 done
4542 rm -f $ac_rmfiles
4544 if { { ac_try="$ac_link_default"
4545 case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548 esac
4549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4550 $as_echo "$ac_try_echo"; } >&5
4551 (eval "$ac_link_default") 2>&5
4552 ac_status=$?
4553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4554 test $ac_status = 0; }; then :
4555 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4556 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4557 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4558 # so that the user can short-circuit this test for compilers unknown to
4559 # Autoconf.
4560 for ac_file in $ac_files ''
4562 test -f "$ac_file" || continue
4563 case $ac_file in
4564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4566 [ab].out )
4567 # We found the default executable, but exeext='' is most
4568 # certainly right.
4569 break;;
4570 *.* )
4571 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4572 then :; else
4573 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4575 # We set ac_cv_exeext here because the later test for it is not
4576 # safe: cross compilers may not add the suffix if given an `-o'
4577 # argument, so we may need to know it at that point already.
4578 # Even if this section looks crufty: it has the advantage of
4579 # actually working.
4580 break;;
4582 break;;
4583 esac
4584 done
4585 test "$ac_cv_exeext" = no && ac_cv_exeext=
4587 else
4588 ac_file=''
4590 if test -z "$ac_file"; then :
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4593 $as_echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4598 as_fn_error 77 "C compiler cannot create executables
4599 See \`config.log' for more details" "$LINENO" 5; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4602 $as_echo "yes" >&6; }
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4605 $as_echo_n "checking for C compiler default output file name... " >&6; }
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4607 $as_echo "$ac_file" >&6; }
4608 ac_exeext=$ac_cv_exeext
4610 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4611 ac_clean_files=$ac_clean_files_save
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4613 $as_echo_n "checking for suffix of executables... " >&6; }
4614 if { { ac_try="$ac_link"
4615 case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618 esac
4619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620 $as_echo "$ac_try_echo"; } >&5
4621 (eval "$ac_link") 2>&5
4622 ac_status=$?
4623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }; then :
4625 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4626 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4627 # work properly (i.e., refer to `conftest.exe'), while it won't with
4628 # `rm'.
4629 for ac_file in conftest.exe conftest conftest.*; do
4630 test -f "$ac_file" || continue
4631 case $ac_file in
4632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4633 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4634 break;;
4635 * ) break;;
4636 esac
4637 done
4638 else
4639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4641 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4642 See \`config.log' for more details" "$LINENO" 5; }
4644 rm -f conftest conftest$ac_cv_exeext
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4646 $as_echo "$ac_cv_exeext" >&6; }
4648 rm -f conftest.$ac_ext
4649 EXEEXT=$ac_cv_exeext
4650 ac_exeext=$EXEEXT
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4653 #include <stdio.h>
4655 main ()
4657 FILE *f = fopen ("conftest.out", "w");
4658 return ferror (f) || fclose (f) != 0;
4661 return 0;
4663 _ACEOF
4664 ac_clean_files="$ac_clean_files conftest.out"
4665 # Check that the compiler produces executables we can run. If not, either
4666 # the compiler is broken, or we cross compile.
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4668 $as_echo_n "checking whether we are cross compiling... " >&6; }
4669 if test "$cross_compiling" != yes; then
4670 { { ac_try="$ac_link"
4671 case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4676 $as_echo "$ac_try_echo"; } >&5
4677 (eval "$ac_link") 2>&5
4678 ac_status=$?
4679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4680 test $ac_status = 0; }
4681 if { ac_try='./conftest$ac_cv_exeext'
4682 { { case "(($ac_try" in
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4685 esac
4686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4687 $as_echo "$ac_try_echo"; } >&5
4688 (eval "$ac_try") 2>&5
4689 ac_status=$?
4690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4691 test $ac_status = 0; }; }; then
4692 cross_compiling=no
4693 else
4694 if test "$cross_compiling" = maybe; then
4695 cross_compiling=yes
4696 else
4697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4699 as_fn_error $? "cannot run C compiled programs.
4700 If you meant to cross compile, use \`--host'.
4701 See \`config.log' for more details" "$LINENO" 5; }
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4706 $as_echo "$cross_compiling" >&6; }
4708 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4709 ac_clean_files=$ac_clean_files_save
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4711 $as_echo_n "checking for suffix of object files... " >&6; }
4712 if ${ac_cv_objext+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4719 main ()
4723 return 0;
4725 _ACEOF
4726 rm -f conftest.o conftest.obj
4727 if { { ac_try="$ac_compile"
4728 case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731 esac
4732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4733 $as_echo "$ac_try_echo"; } >&5
4734 (eval "$ac_compile") 2>&5
4735 ac_status=$?
4736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4737 test $ac_status = 0; }; then :
4738 for ac_file in conftest.o conftest.obj conftest.*; do
4739 test -f "$ac_file" || continue;
4740 case $ac_file in
4741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4742 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4743 break;;
4744 esac
4745 done
4746 else
4747 $as_echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4752 as_fn_error $? "cannot compute suffix of object files: cannot compile
4753 See \`config.log' for more details" "$LINENO" 5; }
4755 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4758 $as_echo "$ac_cv_objext" >&6; }
4759 OBJEXT=$ac_cv_objext
4760 ac_objext=$OBJEXT
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4762 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4763 if ${ac_cv_c_compiler_gnu+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4770 main ()
4772 #ifndef __GNUC__
4773 choke me
4774 #endif
4777 return 0;
4779 _ACEOF
4780 if ac_fn_c_try_compile "$LINENO"; then :
4781 ac_compiler_gnu=yes
4782 else
4783 ac_compiler_gnu=no
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4790 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4791 if test $ac_compiler_gnu = yes; then
4792 GCC=yes
4793 else
4794 GCC=
4796 ac_test_CFLAGS=${CFLAGS+set}
4797 ac_save_CFLAGS=$CFLAGS
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4799 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4800 if ${ac_cv_prog_cc_g+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 ac_save_c_werror_flag=$ac_c_werror_flag
4804 ac_c_werror_flag=yes
4805 ac_cv_prog_cc_g=no
4806 CFLAGS="-g"
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4811 main ()
4815 return 0;
4817 _ACEOF
4818 if ac_fn_c_try_compile "$LINENO"; then :
4819 ac_cv_prog_cc_g=yes
4820 else
4821 CFLAGS=""
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4826 main ()
4830 return 0;
4832 _ACEOF
4833 if ac_fn_c_try_compile "$LINENO"; then :
4835 else
4836 ac_c_werror_flag=$ac_save_c_werror_flag
4837 CFLAGS="-g"
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4842 main ()
4846 return 0;
4848 _ACEOF
4849 if ac_fn_c_try_compile "$LINENO"; then :
4850 ac_cv_prog_cc_g=yes
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_c_werror_flag=$ac_save_c_werror_flag
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4860 $as_echo "$ac_cv_prog_cc_g" >&6; }
4861 if test "$ac_test_CFLAGS" = set; then
4862 CFLAGS=$ac_save_CFLAGS
4863 elif test $ac_cv_prog_cc_g = yes; then
4864 if test "$GCC" = yes; then
4865 CFLAGS="-g -O2"
4866 else
4867 CFLAGS="-g"
4869 else
4870 if test "$GCC" = yes; then
4871 CFLAGS="-O2"
4872 else
4873 CFLAGS=
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4877 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4878 if ${ac_cv_prog_cc_c89+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 ac_cv_prog_cc_c89=no
4882 ac_save_CC=$CC
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #include <stdarg.h>
4886 #include <stdio.h>
4887 struct stat;
4888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4889 struct buf { int x; };
4890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4891 static char *e (p, i)
4892 char **p;
4893 int i;
4895 return p[i];
4897 static char *f (char * (*g) (char **, int), char **p, ...)
4899 char *s;
4900 va_list v;
4901 va_start (v,p);
4902 s = g (p, va_arg (v,int));
4903 va_end (v);
4904 return s;
4907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4908 function prototypes and stuff, but not '\xHH' hex character constants.
4909 These don't provoke an error unfortunately, instead are silently treated
4910 as 'x'. The following induces an error, until -std is added to get
4911 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4912 array size at least. It's necessary to write '\x00'==0 to get something
4913 that's true only with -std. */
4914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4916 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4917 inside strings and character constants. */
4918 #define FOO(x) 'x'
4919 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4921 int test (int i, double x);
4922 struct s1 {int (*f) (int a);};
4923 struct s2 {int (*f) (double a);};
4924 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4925 int argc;
4926 char **argv;
4928 main ()
4930 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4932 return 0;
4934 _ACEOF
4935 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4936 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4938 CC="$ac_save_CC $ac_arg"
4939 if ac_fn_c_try_compile "$LINENO"; then :
4940 ac_cv_prog_cc_c89=$ac_arg
4942 rm -f core conftest.err conftest.$ac_objext
4943 test "x$ac_cv_prog_cc_c89" != "xno" && break
4944 done
4945 rm -f conftest.$ac_ext
4946 CC=$ac_save_CC
4949 # AC_CACHE_VAL
4950 case "x$ac_cv_prog_cc_c89" in
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4953 $as_echo "none needed" >&6; } ;;
4954 xno)
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4956 $as_echo "unsupported" >&6; } ;;
4958 CC="$CC $ac_cv_prog_cc_c89"
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4960 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4961 esac
4962 if test "x$ac_cv_prog_cc_c89" != xno; then :
4966 ac_ext=c
4967 ac_cpp='$CPP $CPPFLAGS'
4968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4973 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4974 if ${ac_cv_prog_cc_c99+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 ac_cv_prog_cc_c99=no
4978 ac_save_CC=$CC
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4981 #include <stdarg.h>
4982 #include <stdbool.h>
4983 #include <stdlib.h>
4984 #include <wchar.h>
4985 #include <stdio.h>
4987 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4988 #define debug(...) fprintf (stderr, __VA_ARGS__)
4989 #define showlist(...) puts (#__VA_ARGS__)
4990 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4991 static void
4992 test_varargs_macros (void)
4994 int x = 1234;
4995 int y = 5678;
4996 debug ("Flag");
4997 debug ("X = %d\n", x);
4998 showlist (The first, second, and third items.);
4999 report (x>y, "x is %d but y is %d", x, y);
5002 // Check long long types.
5003 #define BIG64 18446744073709551615ull
5004 #define BIG32 4294967295ul
5005 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5006 #if !BIG_OK
5007 your preprocessor is broken;
5008 #endif
5009 #if BIG_OK
5010 #else
5011 your preprocessor is broken;
5012 #endif
5013 static long long int bignum = -9223372036854775807LL;
5014 static unsigned long long int ubignum = BIG64;
5016 struct incomplete_array
5018 int datasize;
5019 double data[];
5022 struct named_init {
5023 int number;
5024 const wchar_t *name;
5025 double average;
5028 typedef const char *ccp;
5030 static inline int
5031 test_restrict (ccp restrict text)
5033 // See if C++-style comments work.
5034 // Iterate through items via the restricted pointer.
5035 // Also check for declarations in for loops.
5036 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5037 continue;
5038 return 0;
5041 // Check varargs and va_copy.
5042 static void
5043 test_varargs (const char *format, ...)
5045 va_list args;
5046 va_start (args, format);
5047 va_list args_copy;
5048 va_copy (args_copy, args);
5050 const char *str;
5051 int number;
5052 float fnumber;
5054 while (*format)
5056 switch (*format++)
5058 case 's': // string
5059 str = va_arg (args_copy, const char *);
5060 break;
5061 case 'd': // int
5062 number = va_arg (args_copy, int);
5063 break;
5064 case 'f': // float
5065 fnumber = va_arg (args_copy, double);
5066 break;
5067 default:
5068 break;
5071 va_end (args_copy);
5072 va_end (args);
5076 main ()
5079 // Check bool.
5080 _Bool success = false;
5082 // Check restrict.
5083 if (test_restrict ("String literal") == 0)
5084 success = true;
5085 char *restrict newvar = "Another string";
5087 // Check varargs.
5088 test_varargs ("s, d' f .", "string", 65, 34.234);
5089 test_varargs_macros ();
5091 // Check flexible array members.
5092 struct incomplete_array *ia =
5093 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5094 ia->datasize = 10;
5095 for (int i = 0; i < ia->datasize; ++i)
5096 ia->data[i] = i * 1.234;
5098 // Check named initializers.
5099 struct named_init ni = {
5100 .number = 34,
5101 .name = L"Test wide string",
5102 .average = 543.34343,
5105 ni.number = 58;
5107 int dynamic_array[ni.number];
5108 dynamic_array[ni.number - 1] = 543;
5110 // work around unused variable warnings
5111 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5112 || dynamic_array[ni.number - 1] != 543);
5115 return 0;
5117 _ACEOF
5118 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5120 CC="$ac_save_CC $ac_arg"
5121 if ac_fn_c_try_compile "$LINENO"; then :
5122 ac_cv_prog_cc_c99=$ac_arg
5124 rm -f core conftest.err conftest.$ac_objext
5125 test "x$ac_cv_prog_cc_c99" != "xno" && break
5126 done
5127 rm -f conftest.$ac_ext
5128 CC=$ac_save_CC
5131 # AC_CACHE_VAL
5132 case "x$ac_cv_prog_cc_c99" in
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5135 $as_echo "none needed" >&6; } ;;
5136 xno)
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5138 $as_echo "unsupported" >&6; } ;;
5140 CC="$CC $ac_cv_prog_cc_c99"
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5142 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5143 esac
5144 if test "x$ac_cv_prog_cc_c99" != xno; then :
5149 ac_ext=cpp
5150 ac_cpp='$CXXCPP $CPPFLAGS'
5151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5154 if test -z "$CXX"; then
5155 if test -n "$CCC"; then
5156 CXX=$CCC
5157 else
5158 if test -n "$ac_tool_prefix"; then
5159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_prog_CXX+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$CXX"; then
5169 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5182 done
5183 done
5184 IFS=$as_save_IFS
5188 CXX=$ac_cv_prog_CXX
5189 if test -n "$CXX"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5191 $as_echo "$CXX" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5198 test -n "$CXX" && break
5199 done
5201 if test -z "$CXX"; then
5202 ac_ct_CXX=$CXX
5203 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5205 # Extract the first word of "$ac_prog", so it can be a program name with args.
5206 set dummy $ac_prog; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$ac_ct_CXX"; then
5213 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_ac_ct_CXX="$ac_prog"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5226 done
5227 done
5228 IFS=$as_save_IFS
5232 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5233 if test -n "$ac_ct_CXX"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5235 $as_echo "$ac_ct_CXX" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5242 test -n "$ac_ct_CXX" && break
5243 done
5245 if test "x$ac_ct_CXX" = x; then
5246 CXX="g++"
5247 else
5248 case $cross_compiling:$ac_tool_warned in
5249 yes:)
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5252 ac_tool_warned=yes ;;
5253 esac
5254 CXX=$ac_ct_CXX
5260 # Provide some information about the compiler.
5261 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5262 set X $ac_compile
5263 ac_compiler=$2
5264 for ac_option in --version -v -V -qversion; do
5265 { { ac_try="$ac_compiler $ac_option >&5"
5266 case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269 esac
5270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5271 $as_echo "$ac_try_echo"; } >&5
5272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5273 ac_status=$?
5274 if test -s conftest.err; then
5275 sed '10a\
5276 ... rest of stderr output deleted ...
5277 10q' conftest.err >conftest.er1
5278 cat conftest.er1 >&5
5280 rm -f conftest.er1 conftest.err
5281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5282 test $ac_status = 0; }
5283 done
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5286 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5287 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5294 main ()
5296 #ifndef __GNUC__
5297 choke me
5298 #endif
5301 return 0;
5303 _ACEOF
5304 if ac_fn_cxx_try_compile "$LINENO"; then :
5305 ac_compiler_gnu=yes
5306 else
5307 ac_compiler_gnu=no
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5314 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5315 if test $ac_compiler_gnu = yes; then
5316 GXX=yes
5317 else
5318 GXX=
5320 ac_test_CXXFLAGS=${CXXFLAGS+set}
5321 ac_save_CXXFLAGS=$CXXFLAGS
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5323 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5324 if ${ac_cv_prog_cxx_g+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5328 ac_cxx_werror_flag=yes
5329 ac_cv_prog_cxx_g=no
5330 CXXFLAGS="-g"
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5335 main ()
5339 return 0;
5341 _ACEOF
5342 if ac_fn_cxx_try_compile "$LINENO"; then :
5343 ac_cv_prog_cxx_g=yes
5344 else
5345 CXXFLAGS=""
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5350 main ()
5354 return 0;
5356 _ACEOF
5357 if ac_fn_cxx_try_compile "$LINENO"; then :
5359 else
5360 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5361 CXXFLAGS="-g"
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5366 main ()
5370 return 0;
5372 _ACEOF
5373 if ac_fn_cxx_try_compile "$LINENO"; then :
5374 ac_cv_prog_cxx_g=yes
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5384 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5385 if test "$ac_test_CXXFLAGS" = set; then
5386 CXXFLAGS=$ac_save_CXXFLAGS
5387 elif test $ac_cv_prog_cxx_g = yes; then
5388 if test "$GXX" = yes; then
5389 CXXFLAGS="-g -O2"
5390 else
5391 CXXFLAGS="-g"
5393 else
5394 if test "$GXX" = yes; then
5395 CXXFLAGS="-O2"
5396 else
5397 CXXFLAGS=
5400 ac_ext=c
5401 ac_cpp='$CPP $CPPFLAGS'
5402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407 # We must set the default linker to the linker used by gcc for the correct
5408 # operation of libtool. If LD is not defined and we are using gcc, try to
5409 # set the LD default to the ld used by gcc.
5410 if test -z "$LD"; then
5411 if test "$GCC" = yes; then
5412 case $build in
5413 *-*-mingw*)
5414 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5416 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5417 esac
5418 case $gcc_prog_ld in
5419 # Accept absolute paths.
5420 [\\/]* | [A-Za-z]:[\\/]*)
5421 LD="$gcc_prog_ld" ;;
5422 esac
5426 # Check whether -static-libstdc++ -static-libgcc is supported.
5427 have_static_libs=no
5428 if test "$GCC" = yes; then
5429 saved_LDFLAGS="$LDFLAGS"
5431 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5433 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5434 ac_ext=cpp
5435 ac_cpp='$CXXCPP $CPPFLAGS'
5436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5444 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5445 #error -static-libstdc++ not implemented
5446 #endif
5447 int main() {}
5448 _ACEOF
5449 if ac_fn_cxx_try_link "$LINENO"; then :
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5451 $as_echo "yes" >&6; }; have_static_libs=yes
5452 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5456 rm -f core conftest.err conftest.$ac_objext \
5457 conftest$ac_exeext conftest.$ac_ext
5458 ac_ext=c
5459 ac_cpp='$CPP $CPPFLAGS'
5460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5465 LDFLAGS="$saved_LDFLAGS"
5471 if test -n "$ac_tool_prefix"; then
5472 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5473 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_prog_GNATBIND+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 if test -n "$GNATBIND"; then
5480 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5481 else
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5493 done
5494 done
5495 IFS=$as_save_IFS
5499 GNATBIND=$ac_cv_prog_GNATBIND
5500 if test -n "$GNATBIND"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5502 $as_echo "$GNATBIND" >&6; }
5503 else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5510 if test -z "$ac_cv_prog_GNATBIND"; then
5511 ac_ct_GNATBIND=$GNATBIND
5512 # Extract the first word of "gnatbind", so it can be a program name with args.
5513 set dummy gnatbind; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 if test -n "$ac_ct_GNATBIND"; then
5520 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5533 done
5534 done
5535 IFS=$as_save_IFS
5539 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5540 if test -n "$ac_ct_GNATBIND"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5542 $as_echo "$ac_ct_GNATBIND" >&6; }
5543 else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5548 if test "x$ac_ct_GNATBIND" = x; then
5549 GNATBIND="no"
5550 else
5551 case $cross_compiling:$ac_tool_warned in
5552 yes:)
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5555 ac_tool_warned=yes ;;
5556 esac
5557 GNATBIND=$ac_ct_GNATBIND
5559 else
5560 GNATBIND="$ac_cv_prog_GNATBIND"
5563 if test -n "$ac_tool_prefix"; then
5564 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5565 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_GNATMAKE+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$GNATMAKE"; then
5572 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5585 done
5586 done
5587 IFS=$as_save_IFS
5591 GNATMAKE=$ac_cv_prog_GNATMAKE
5592 if test -n "$GNATMAKE"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5594 $as_echo "$GNATMAKE" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5602 if test -z "$ac_cv_prog_GNATMAKE"; then
5603 ac_ct_GNATMAKE=$GNATMAKE
5604 # Extract the first word of "gnatmake", so it can be a program name with args.
5605 set dummy gnatmake; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 if test -n "$ac_ct_GNATMAKE"; then
5612 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5625 done
5626 done
5627 IFS=$as_save_IFS
5631 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5632 if test -n "$ac_ct_GNATMAKE"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5634 $as_echo "$ac_ct_GNATMAKE" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5640 if test "x$ac_ct_GNATMAKE" = x; then
5641 GNATMAKE="no"
5642 else
5643 case $cross_compiling:$ac_tool_warned in
5644 yes:)
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5647 ac_tool_warned=yes ;;
5648 esac
5649 GNATMAKE=$ac_ct_GNATMAKE
5651 else
5652 GNATMAKE="$ac_cv_prog_GNATMAKE"
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5656 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5657 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 cat >conftest.adb <<EOF
5661 pragma Warnings (Off);
5662 with System.CRTL;
5663 pragma Warnings (On);
5664 use type System.CRTL.int64;
5665 procedure conftest is begin null; end conftest;
5667 acx_cv_cc_gcc_supports_ada=no
5668 # There is a bug in old released versions of GCC which causes the
5669 # driver to exit successfully when the appropriate language module
5670 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5671 # Therefore we must check for the error message as well as an
5672 # unsuccessful exit.
5673 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5674 # given a .adb file, but produce no object file. So we must check
5675 # if an object file was really produced to guard against this.
5676 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5677 if test x"$errors" = x && test -f conftest.$ac_objext; then
5678 acx_cv_cc_gcc_supports_ada=yes
5680 rm -f conftest.*
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5683 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5685 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5686 have_gnat=yes
5687 else
5688 have_gnat=no
5693 if test -n "$ac_tool_prefix"; then
5694 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5695 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_GDC+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$GDC"; then
5702 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5715 done
5716 done
5717 IFS=$as_save_IFS
5721 GDC=$ac_cv_prog_GDC
5722 if test -n "$GDC"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5724 $as_echo "$GDC" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5732 if test -z "$ac_cv_prog_GDC"; then
5733 ac_ct_GDC=$GDC
5734 # Extract the first word of "gdc", so it can be a program name with args.
5735 set dummy gdc; ac_word=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 if test -n "$ac_ct_GDC"; then
5742 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751 ac_cv_prog_ac_ct_GDC="gdc"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5755 done
5756 done
5757 IFS=$as_save_IFS
5761 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5762 if test -n "$ac_ct_GDC"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5764 $as_echo "$ac_ct_GDC" >&6; }
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5770 if test "x$ac_ct_GDC" = x; then
5771 GDC="no"
5772 else
5773 case $cross_compiling:$ac_tool_warned in
5774 yes:)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5777 ac_tool_warned=yes ;;
5778 esac
5779 GDC=$ac_ct_GDC
5781 else
5782 GDC="$ac_cv_prog_GDC"
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5786 $as_echo_n "checking whether the D compiler works... " >&6; }
5787 if ${acx_cv_d_compiler_works+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 cat >conftest.d <<EOF
5791 module conftest; int main() { return 0; }
5793 acx_cv_d_compiler_works=no
5794 if test "x$GDC" != xno; then
5795 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5796 if test x"$errors" = x && test -f conftest.$ac_objext; then
5797 acx_cv_d_compiler_works=yes
5799 rm -f conftest.*
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5803 $as_echo "$acx_cv_d_compiler_works" >&6; }
5804 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5805 have_gdc=yes
5806 else
5807 have_gdc=no
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5811 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5812 if ${gcc_cv_prog_cmp_skip+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 echo abfoo >t1
5816 echo cdfoo >t2
5817 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5818 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5819 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5821 else
5822 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5825 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5826 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5828 else
5829 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5832 rm t1 t2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5836 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5837 do_compare="$gcc_cv_prog_cmp_skip"
5841 # Check whether --enable-bootstrap was given.
5842 if test "${enable_bootstrap+set}" = set; then :
5843 enableval=$enable_bootstrap;
5844 else
5845 enable_bootstrap=default
5849 # Issue errors and warnings for invalid/strange bootstrap combinations.
5850 if test -r $srcdir/gcc/configure; then
5851 have_compiler=yes
5852 else
5853 have_compiler=no
5856 case "$have_compiler:$host:$target:$enable_bootstrap" in
5857 *:*:*:no) ;;
5859 # Default behavior. Enable bootstrap if we have a compiler
5860 # and we are in a native configuration.
5861 yes:$build:$build:default)
5862 enable_bootstrap=yes ;;
5864 *:*:*:default)
5865 enable_bootstrap=no ;;
5867 # We have a compiler and we are in a native configuration, bootstrap is ok
5868 yes:$build:$build:yes)
5871 # Other configurations, but we have a compiler. Assume the user knows
5872 # what he's doing.
5873 yes:*:*:yes)
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5875 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5878 # No compiler: if they passed --enable-bootstrap explicitly, fail
5879 no:*:*:yes)
5880 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5882 # Fail if wrong command line
5884 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5886 esac
5888 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5889 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5890 # require C++11 (or higher).
5891 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5892 CXX="$CXX -std=c++11"
5893 elif test "$have_compiler" = yes; then
5894 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5895 ac_ext=cpp
5896 ac_cpp='$CXXCPP $CPPFLAGS'
5897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5900 ac_success=no
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5903 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5904 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5911 // If the compiler admits that it is not ready for C++11, why torture it?
5912 // Hopefully, this will speed up the test.
5914 #ifndef __cplusplus
5916 #error "This is not a C++ compiler"
5918 #elif __cplusplus < 201103L
5920 #error "This is not a C++11 compiler"
5922 #else
5924 namespace cxx11
5927 namespace test_static_assert
5930 template <typename T>
5931 struct check
5933 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5938 namespace test_final_override
5941 struct Base
5943 virtual ~Base() {}
5944 virtual void f() {}
5947 struct Derived : public Base
5949 virtual ~Derived() override {}
5950 virtual void f() override {}
5955 namespace test_double_right_angle_brackets
5958 template < typename T >
5959 struct check {};
5961 typedef check<void> single_type;
5962 typedef check<check<void>> double_type;
5963 typedef check<check<check<void>>> triple_type;
5964 typedef check<check<check<check<void>>>> quadruple_type;
5968 namespace test_decltype
5974 int a = 1;
5975 decltype(a) b = 2;
5976 return a + b;
5981 namespace test_type_deduction
5984 template < typename T1, typename T2 >
5985 struct is_same
5987 static const bool value = false;
5990 template < typename T >
5991 struct is_same<T, T>
5993 static const bool value = true;
5996 template < typename T1, typename T2 >
5997 auto
5998 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6000 return a1 + a2;
6004 test(const int c, volatile int v)
6006 static_assert(is_same<int, decltype(0)>::value == true, "");
6007 static_assert(is_same<int, decltype(c)>::value == false, "");
6008 static_assert(is_same<int, decltype(v)>::value == false, "");
6009 auto ac = c;
6010 auto av = v;
6011 auto sumi = ac + av + 'x';
6012 auto sumf = ac + av + 1.0;
6013 static_assert(is_same<int, decltype(ac)>::value == true, "");
6014 static_assert(is_same<int, decltype(av)>::value == true, "");
6015 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6016 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6017 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6018 return (sumf > 0.0) ? sumi : add(c, v);
6023 namespace test_noexcept
6026 int f() { return 0; }
6027 int g() noexcept { return 0; }
6029 static_assert(noexcept(f()) == false, "");
6030 static_assert(noexcept(g()) == true, "");
6034 namespace test_constexpr
6037 template < typename CharT >
6038 unsigned long constexpr
6039 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6041 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6044 template < typename CharT >
6045 unsigned long constexpr
6046 strlen_c(const CharT *const s) noexcept
6048 return strlen_c_r(s, 0UL);
6051 static_assert(strlen_c("") == 0UL, "");
6052 static_assert(strlen_c("1") == 1UL, "");
6053 static_assert(strlen_c("example") == 7UL, "");
6054 static_assert(strlen_c("another\0example") == 7UL, "");
6058 namespace test_rvalue_references
6061 template < int N >
6062 struct answer
6064 static constexpr int value = N;
6067 answer<1> f(int&) { return answer<1>(); }
6068 answer<2> f(const int&) { return answer<2>(); }
6069 answer<3> f(int&&) { return answer<3>(); }
6071 void
6072 test()
6074 int i = 0;
6075 const int c = 0;
6076 static_assert(decltype(f(i))::value == 1, "");
6077 static_assert(decltype(f(c))::value == 2, "");
6078 static_assert(decltype(f(0))::value == 3, "");
6083 namespace test_uniform_initialization
6086 struct test
6088 static const int zero {};
6089 static const int one {1};
6092 static_assert(test::zero == 0, "");
6093 static_assert(test::one == 1, "");
6097 namespace test_lambdas
6100 void
6101 test1()
6103 auto lambda1 = [](){};
6104 auto lambda2 = lambda1;
6105 lambda1();
6106 lambda2();
6110 test2()
6112 auto a = [](int i, int j){ return i + j; }(1, 2);
6113 auto b = []() -> int { return '0'; }();
6114 auto c = [=](){ return a + b; }();
6115 auto d = [&](){ return c; }();
6116 auto e = [a, &b](int x) mutable {
6117 const auto identity = [](int y){ return y; };
6118 for (auto i = 0; i < a; ++i)
6119 a += b--;
6120 return x + identity(a + b);
6121 }(0);
6122 return a + b + c + d + e;
6126 test3()
6128 const auto nullary = [](){ return 0; };
6129 const auto unary = [](int x){ return x; };
6130 using nullary_t = decltype(nullary);
6131 using unary_t = decltype(unary);
6132 const auto higher1st = [](nullary_t f){ return f(); };
6133 const auto higher2nd = [unary](nullary_t f1){
6134 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6136 return higher1st(nullary) + higher2nd(nullary)(unary);
6141 namespace test_variadic_templates
6144 template <int...>
6145 struct sum;
6147 template <int N0, int... N1toN>
6148 struct sum<N0, N1toN...>
6150 static constexpr auto value = N0 + sum<N1toN...>::value;
6153 template <>
6154 struct sum<>
6156 static constexpr auto value = 0;
6159 static_assert(sum<>::value == 0, "");
6160 static_assert(sum<1>::value == 1, "");
6161 static_assert(sum<23>::value == 23, "");
6162 static_assert(sum<1, 2>::value == 3, "");
6163 static_assert(sum<5, 5, 11>::value == 21, "");
6164 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6168 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6169 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6170 // because of this.
6171 namespace test_template_alias_sfinae
6174 struct foo {};
6176 template<typename T>
6177 using member = typename T::member_type;
6179 template<typename T>
6180 void func(...) {}
6182 template<typename T>
6183 void func(member<T>*) {}
6185 void test();
6187 void test() { func<foo>(0); }
6191 } // namespace cxx11
6193 #endif // __cplusplus >= 201103L
6197 _ACEOF
6198 if ac_fn_cxx_try_compile "$LINENO"; then :
6199 ax_cv_cxx_compile_cxx11=yes
6200 else
6201 ax_cv_cxx_compile_cxx11=no
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6206 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6207 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6208 ac_success=yes
6211 if test x$ac_success = xno; then
6212 for alternative in ${ax_cxx_compile_alternatives}; do
6213 switch="-std=gnu++${alternative}"
6214 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6216 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6217 if eval \${$cachevar+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 ac_save_CXX="$CXX"
6221 CXX="$CXX $switch"
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6226 // If the compiler admits that it is not ready for C++11, why torture it?
6227 // Hopefully, this will speed up the test.
6229 #ifndef __cplusplus
6231 #error "This is not a C++ compiler"
6233 #elif __cplusplus < 201103L
6235 #error "This is not a C++11 compiler"
6237 #else
6239 namespace cxx11
6242 namespace test_static_assert
6245 template <typename T>
6246 struct check
6248 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6253 namespace test_final_override
6256 struct Base
6258 virtual ~Base() {}
6259 virtual void f() {}
6262 struct Derived : public Base
6264 virtual ~Derived() override {}
6265 virtual void f() override {}
6270 namespace test_double_right_angle_brackets
6273 template < typename T >
6274 struct check {};
6276 typedef check<void> single_type;
6277 typedef check<check<void>> double_type;
6278 typedef check<check<check<void>>> triple_type;
6279 typedef check<check<check<check<void>>>> quadruple_type;
6283 namespace test_decltype
6289 int a = 1;
6290 decltype(a) b = 2;
6291 return a + b;
6296 namespace test_type_deduction
6299 template < typename T1, typename T2 >
6300 struct is_same
6302 static const bool value = false;
6305 template < typename T >
6306 struct is_same<T, T>
6308 static const bool value = true;
6311 template < typename T1, typename T2 >
6312 auto
6313 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6315 return a1 + a2;
6319 test(const int c, volatile int v)
6321 static_assert(is_same<int, decltype(0)>::value == true, "");
6322 static_assert(is_same<int, decltype(c)>::value == false, "");
6323 static_assert(is_same<int, decltype(v)>::value == false, "");
6324 auto ac = c;
6325 auto av = v;
6326 auto sumi = ac + av + 'x';
6327 auto sumf = ac + av + 1.0;
6328 static_assert(is_same<int, decltype(ac)>::value == true, "");
6329 static_assert(is_same<int, decltype(av)>::value == true, "");
6330 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6331 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6332 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6333 return (sumf > 0.0) ? sumi : add(c, v);
6338 namespace test_noexcept
6341 int f() { return 0; }
6342 int g() noexcept { return 0; }
6344 static_assert(noexcept(f()) == false, "");
6345 static_assert(noexcept(g()) == true, "");
6349 namespace test_constexpr
6352 template < typename CharT >
6353 unsigned long constexpr
6354 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6356 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6359 template < typename CharT >
6360 unsigned long constexpr
6361 strlen_c(const CharT *const s) noexcept
6363 return strlen_c_r(s, 0UL);
6366 static_assert(strlen_c("") == 0UL, "");
6367 static_assert(strlen_c("1") == 1UL, "");
6368 static_assert(strlen_c("example") == 7UL, "");
6369 static_assert(strlen_c("another\0example") == 7UL, "");
6373 namespace test_rvalue_references
6376 template < int N >
6377 struct answer
6379 static constexpr int value = N;
6382 answer<1> f(int&) { return answer<1>(); }
6383 answer<2> f(const int&) { return answer<2>(); }
6384 answer<3> f(int&&) { return answer<3>(); }
6386 void
6387 test()
6389 int i = 0;
6390 const int c = 0;
6391 static_assert(decltype(f(i))::value == 1, "");
6392 static_assert(decltype(f(c))::value == 2, "");
6393 static_assert(decltype(f(0))::value == 3, "");
6398 namespace test_uniform_initialization
6401 struct test
6403 static const int zero {};
6404 static const int one {1};
6407 static_assert(test::zero == 0, "");
6408 static_assert(test::one == 1, "");
6412 namespace test_lambdas
6415 void
6416 test1()
6418 auto lambda1 = [](){};
6419 auto lambda2 = lambda1;
6420 lambda1();
6421 lambda2();
6425 test2()
6427 auto a = [](int i, int j){ return i + j; }(1, 2);
6428 auto b = []() -> int { return '0'; }();
6429 auto c = [=](){ return a + b; }();
6430 auto d = [&](){ return c; }();
6431 auto e = [a, &b](int x) mutable {
6432 const auto identity = [](int y){ return y; };
6433 for (auto i = 0; i < a; ++i)
6434 a += b--;
6435 return x + identity(a + b);
6436 }(0);
6437 return a + b + c + d + e;
6441 test3()
6443 const auto nullary = [](){ return 0; };
6444 const auto unary = [](int x){ return x; };
6445 using nullary_t = decltype(nullary);
6446 using unary_t = decltype(unary);
6447 const auto higher1st = [](nullary_t f){ return f(); };
6448 const auto higher2nd = [unary](nullary_t f1){
6449 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6451 return higher1st(nullary) + higher2nd(nullary)(unary);
6456 namespace test_variadic_templates
6459 template <int...>
6460 struct sum;
6462 template <int N0, int... N1toN>
6463 struct sum<N0, N1toN...>
6465 static constexpr auto value = N0 + sum<N1toN...>::value;
6468 template <>
6469 struct sum<>
6471 static constexpr auto value = 0;
6474 static_assert(sum<>::value == 0, "");
6475 static_assert(sum<1>::value == 1, "");
6476 static_assert(sum<23>::value == 23, "");
6477 static_assert(sum<1, 2>::value == 3, "");
6478 static_assert(sum<5, 5, 11>::value == 21, "");
6479 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6483 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6484 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6485 // because of this.
6486 namespace test_template_alias_sfinae
6489 struct foo {};
6491 template<typename T>
6492 using member = typename T::member_type;
6494 template<typename T>
6495 void func(...) {}
6497 template<typename T>
6498 void func(member<T>*) {}
6500 void test();
6502 void test() { func<foo>(0); }
6506 } // namespace cxx11
6508 #endif // __cplusplus >= 201103L
6512 _ACEOF
6513 if ac_fn_cxx_try_compile "$LINENO"; then :
6514 eval $cachevar=yes
6515 else
6516 eval $cachevar=no
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 CXX="$ac_save_CXX"
6521 eval ac_res=\$$cachevar
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6523 $as_echo "$ac_res" >&6; }
6524 if eval test x\$$cachevar = xyes; then
6525 CXX="$CXX $switch"
6526 if test -n "$CXXCPP" ; then
6527 CXXCPP="$CXXCPP $switch"
6529 ac_success=yes
6530 break
6532 done
6535 if test x$ac_success = xno; then
6536 for alternative in ${ax_cxx_compile_alternatives}; do
6537 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6538 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6540 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6541 if eval \${$cachevar+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 ac_save_CXX="$CXX"
6545 CXX="$CXX $switch"
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6550 // If the compiler admits that it is not ready for C++11, why torture it?
6551 // Hopefully, this will speed up the test.
6553 #ifndef __cplusplus
6555 #error "This is not a C++ compiler"
6557 #elif __cplusplus < 201103L
6559 #error "This is not a C++11 compiler"
6561 #else
6563 namespace cxx11
6566 namespace test_static_assert
6569 template <typename T>
6570 struct check
6572 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6577 namespace test_final_override
6580 struct Base
6582 virtual ~Base() {}
6583 virtual void f() {}
6586 struct Derived : public Base
6588 virtual ~Derived() override {}
6589 virtual void f() override {}
6594 namespace test_double_right_angle_brackets
6597 template < typename T >
6598 struct check {};
6600 typedef check<void> single_type;
6601 typedef check<check<void>> double_type;
6602 typedef check<check<check<void>>> triple_type;
6603 typedef check<check<check<check<void>>>> quadruple_type;
6607 namespace test_decltype
6613 int a = 1;
6614 decltype(a) b = 2;
6615 return a + b;
6620 namespace test_type_deduction
6623 template < typename T1, typename T2 >
6624 struct is_same
6626 static const bool value = false;
6629 template < typename T >
6630 struct is_same<T, T>
6632 static const bool value = true;
6635 template < typename T1, typename T2 >
6636 auto
6637 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6639 return a1 + a2;
6643 test(const int c, volatile int v)
6645 static_assert(is_same<int, decltype(0)>::value == true, "");
6646 static_assert(is_same<int, decltype(c)>::value == false, "");
6647 static_assert(is_same<int, decltype(v)>::value == false, "");
6648 auto ac = c;
6649 auto av = v;
6650 auto sumi = ac + av + 'x';
6651 auto sumf = ac + av + 1.0;
6652 static_assert(is_same<int, decltype(ac)>::value == true, "");
6653 static_assert(is_same<int, decltype(av)>::value == true, "");
6654 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6655 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6656 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6657 return (sumf > 0.0) ? sumi : add(c, v);
6662 namespace test_noexcept
6665 int f() { return 0; }
6666 int g() noexcept { return 0; }
6668 static_assert(noexcept(f()) == false, "");
6669 static_assert(noexcept(g()) == true, "");
6673 namespace test_constexpr
6676 template < typename CharT >
6677 unsigned long constexpr
6678 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6680 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6683 template < typename CharT >
6684 unsigned long constexpr
6685 strlen_c(const CharT *const s) noexcept
6687 return strlen_c_r(s, 0UL);
6690 static_assert(strlen_c("") == 0UL, "");
6691 static_assert(strlen_c("1") == 1UL, "");
6692 static_assert(strlen_c("example") == 7UL, "");
6693 static_assert(strlen_c("another\0example") == 7UL, "");
6697 namespace test_rvalue_references
6700 template < int N >
6701 struct answer
6703 static constexpr int value = N;
6706 answer<1> f(int&) { return answer<1>(); }
6707 answer<2> f(const int&) { return answer<2>(); }
6708 answer<3> f(int&&) { return answer<3>(); }
6710 void
6711 test()
6713 int i = 0;
6714 const int c = 0;
6715 static_assert(decltype(f(i))::value == 1, "");
6716 static_assert(decltype(f(c))::value == 2, "");
6717 static_assert(decltype(f(0))::value == 3, "");
6722 namespace test_uniform_initialization
6725 struct test
6727 static const int zero {};
6728 static const int one {1};
6731 static_assert(test::zero == 0, "");
6732 static_assert(test::one == 1, "");
6736 namespace test_lambdas
6739 void
6740 test1()
6742 auto lambda1 = [](){};
6743 auto lambda2 = lambda1;
6744 lambda1();
6745 lambda2();
6749 test2()
6751 auto a = [](int i, int j){ return i + j; }(1, 2);
6752 auto b = []() -> int { return '0'; }();
6753 auto c = [=](){ return a + b; }();
6754 auto d = [&](){ return c; }();
6755 auto e = [a, &b](int x) mutable {
6756 const auto identity = [](int y){ return y; };
6757 for (auto i = 0; i < a; ++i)
6758 a += b--;
6759 return x + identity(a + b);
6760 }(0);
6761 return a + b + c + d + e;
6765 test3()
6767 const auto nullary = [](){ return 0; };
6768 const auto unary = [](int x){ return x; };
6769 using nullary_t = decltype(nullary);
6770 using unary_t = decltype(unary);
6771 const auto higher1st = [](nullary_t f){ return f(); };
6772 const auto higher2nd = [unary](nullary_t f1){
6773 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6775 return higher1st(nullary) + higher2nd(nullary)(unary);
6780 namespace test_variadic_templates
6783 template <int...>
6784 struct sum;
6786 template <int N0, int... N1toN>
6787 struct sum<N0, N1toN...>
6789 static constexpr auto value = N0 + sum<N1toN...>::value;
6792 template <>
6793 struct sum<>
6795 static constexpr auto value = 0;
6798 static_assert(sum<>::value == 0, "");
6799 static_assert(sum<1>::value == 1, "");
6800 static_assert(sum<23>::value == 23, "");
6801 static_assert(sum<1, 2>::value == 3, "");
6802 static_assert(sum<5, 5, 11>::value == 21, "");
6803 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6807 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6808 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6809 // because of this.
6810 namespace test_template_alias_sfinae
6813 struct foo {};
6815 template<typename T>
6816 using member = typename T::member_type;
6818 template<typename T>
6819 void func(...) {}
6821 template<typename T>
6822 void func(member<T>*) {}
6824 void test();
6826 void test() { func<foo>(0); }
6830 } // namespace cxx11
6832 #endif // __cplusplus >= 201103L
6836 _ACEOF
6837 if ac_fn_cxx_try_compile "$LINENO"; then :
6838 eval $cachevar=yes
6839 else
6840 eval $cachevar=no
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 CXX="$ac_save_CXX"
6845 eval ac_res=\$$cachevar
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6847 $as_echo "$ac_res" >&6; }
6848 if eval test x\$$cachevar = xyes; then
6849 CXX="$CXX $switch"
6850 if test -n "$CXXCPP" ; then
6851 CXXCPP="$CXXCPP $switch"
6853 ac_success=yes
6854 break
6856 done
6857 if test x$ac_success = xyes; then
6858 break
6860 done
6863 ac_ext=c
6864 ac_cpp='$CPP $CPPFLAGS'
6865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6869 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6870 if test x$ac_success = xno; then
6871 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6874 if test x$ac_success = xno; then
6875 HAVE_CXX11=0
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6877 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6878 else
6879 HAVE_CXX11=1
6881 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6887 if test "${build}" != "${host}"; then
6888 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6889 ac_ext=cpp
6890 ac_cpp='$CXXCPP $CPPFLAGS'
6891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6894 ac_success=no
6895 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6896 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6897 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6898 CXX="$CXX_FOR_BUILD"
6899 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6900 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6902 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6903 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6910 // If the compiler admits that it is not ready for C++11, why torture it?
6911 // Hopefully, this will speed up the test.
6913 #ifndef __cplusplus
6915 #error "This is not a C++ compiler"
6917 #elif __cplusplus < 201103L
6919 #error "This is not a C++11 compiler"
6921 #else
6923 namespace cxx11
6926 namespace test_static_assert
6929 template <typename T>
6930 struct check
6932 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6937 namespace test_final_override
6940 struct Base
6942 virtual ~Base() {}
6943 virtual void f() {}
6946 struct Derived : public Base
6948 virtual ~Derived() override {}
6949 virtual void f() override {}
6954 namespace test_double_right_angle_brackets
6957 template < typename T >
6958 struct check {};
6960 typedef check<void> single_type;
6961 typedef check<check<void>> double_type;
6962 typedef check<check<check<void>>> triple_type;
6963 typedef check<check<check<check<void>>>> quadruple_type;
6967 namespace test_decltype
6973 int a = 1;
6974 decltype(a) b = 2;
6975 return a + b;
6980 namespace test_type_deduction
6983 template < typename T1, typename T2 >
6984 struct is_same
6986 static const bool value = false;
6989 template < typename T >
6990 struct is_same<T, T>
6992 static const bool value = true;
6995 template < typename T1, typename T2 >
6996 auto
6997 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6999 return a1 + a2;
7003 test(const int c, volatile int v)
7005 static_assert(is_same<int, decltype(0)>::value == true, "");
7006 static_assert(is_same<int, decltype(c)>::value == false, "");
7007 static_assert(is_same<int, decltype(v)>::value == false, "");
7008 auto ac = c;
7009 auto av = v;
7010 auto sumi = ac + av + 'x';
7011 auto sumf = ac + av + 1.0;
7012 static_assert(is_same<int, decltype(ac)>::value == true, "");
7013 static_assert(is_same<int, decltype(av)>::value == true, "");
7014 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7015 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7016 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7017 return (sumf > 0.0) ? sumi : add(c, v);
7022 namespace test_noexcept
7025 int f() { return 0; }
7026 int g() noexcept { return 0; }
7028 static_assert(noexcept(f()) == false, "");
7029 static_assert(noexcept(g()) == true, "");
7033 namespace test_constexpr
7036 template < typename CharT >
7037 unsigned long constexpr
7038 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7040 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7043 template < typename CharT >
7044 unsigned long constexpr
7045 strlen_c(const CharT *const s) noexcept
7047 return strlen_c_r(s, 0UL);
7050 static_assert(strlen_c("") == 0UL, "");
7051 static_assert(strlen_c("1") == 1UL, "");
7052 static_assert(strlen_c("example") == 7UL, "");
7053 static_assert(strlen_c("another\0example") == 7UL, "");
7057 namespace test_rvalue_references
7060 template < int N >
7061 struct answer
7063 static constexpr int value = N;
7066 answer<1> f(int&) { return answer<1>(); }
7067 answer<2> f(const int&) { return answer<2>(); }
7068 answer<3> f(int&&) { return answer<3>(); }
7070 void
7071 test()
7073 int i = 0;
7074 const int c = 0;
7075 static_assert(decltype(f(i))::value == 1, "");
7076 static_assert(decltype(f(c))::value == 2, "");
7077 static_assert(decltype(f(0))::value == 3, "");
7082 namespace test_uniform_initialization
7085 struct test
7087 static const int zero {};
7088 static const int one {1};
7091 static_assert(test::zero == 0, "");
7092 static_assert(test::one == 1, "");
7096 namespace test_lambdas
7099 void
7100 test1()
7102 auto lambda1 = [](){};
7103 auto lambda2 = lambda1;
7104 lambda1();
7105 lambda2();
7109 test2()
7111 auto a = [](int i, int j){ return i + j; }(1, 2);
7112 auto b = []() -> int { return '0'; }();
7113 auto c = [=](){ return a + b; }();
7114 auto d = [&](){ return c; }();
7115 auto e = [a, &b](int x) mutable {
7116 const auto identity = [](int y){ return y; };
7117 for (auto i = 0; i < a; ++i)
7118 a += b--;
7119 return x + identity(a + b);
7120 }(0);
7121 return a + b + c + d + e;
7125 test3()
7127 const auto nullary = [](){ return 0; };
7128 const auto unary = [](int x){ return x; };
7129 using nullary_t = decltype(nullary);
7130 using unary_t = decltype(unary);
7131 const auto higher1st = [](nullary_t f){ return f(); };
7132 const auto higher2nd = [unary](nullary_t f1){
7133 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7135 return higher1st(nullary) + higher2nd(nullary)(unary);
7140 namespace test_variadic_templates
7143 template <int...>
7144 struct sum;
7146 template <int N0, int... N1toN>
7147 struct sum<N0, N1toN...>
7149 static constexpr auto value = N0 + sum<N1toN...>::value;
7152 template <>
7153 struct sum<>
7155 static constexpr auto value = 0;
7158 static_assert(sum<>::value == 0, "");
7159 static_assert(sum<1>::value == 1, "");
7160 static_assert(sum<23>::value == 23, "");
7161 static_assert(sum<1, 2>::value == 3, "");
7162 static_assert(sum<5, 5, 11>::value == 21, "");
7163 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7167 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7168 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7169 // because of this.
7170 namespace test_template_alias_sfinae
7173 struct foo {};
7175 template<typename T>
7176 using member = typename T::member_type;
7178 template<typename T>
7179 void func(...) {}
7181 template<typename T>
7182 void func(member<T>*) {}
7184 void test();
7186 void test() { func<foo>(0); }
7190 } // namespace cxx11
7192 #endif // __cplusplus >= 201103L
7196 _ACEOF
7197 if ac_fn_cxx_try_compile "$LINENO"; then :
7198 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7199 else
7200 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7205 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7206 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7207 ac_success=yes
7210 if test x$ac_success = xno; then
7211 for alternative in ${ax_cxx_compile_alternatives}; do
7212 switch="-std=gnu++${alternative}"
7213 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7215 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7216 if eval \${$cachevar+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 ac_save_CXX="$CXX"
7220 CXX="$CXX $switch"
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7225 // If the compiler admits that it is not ready for C++11, why torture it?
7226 // Hopefully, this will speed up the test.
7228 #ifndef __cplusplus
7230 #error "This is not a C++ compiler"
7232 #elif __cplusplus < 201103L
7234 #error "This is not a C++11 compiler"
7236 #else
7238 namespace cxx11
7241 namespace test_static_assert
7244 template <typename T>
7245 struct check
7247 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7252 namespace test_final_override
7255 struct Base
7257 virtual ~Base() {}
7258 virtual void f() {}
7261 struct Derived : public Base
7263 virtual ~Derived() override {}
7264 virtual void f() override {}
7269 namespace test_double_right_angle_brackets
7272 template < typename T >
7273 struct check {};
7275 typedef check<void> single_type;
7276 typedef check<check<void>> double_type;
7277 typedef check<check<check<void>>> triple_type;
7278 typedef check<check<check<check<void>>>> quadruple_type;
7282 namespace test_decltype
7288 int a = 1;
7289 decltype(a) b = 2;
7290 return a + b;
7295 namespace test_type_deduction
7298 template < typename T1, typename T2 >
7299 struct is_same
7301 static const bool value = false;
7304 template < typename T >
7305 struct is_same<T, T>
7307 static const bool value = true;
7310 template < typename T1, typename T2 >
7311 auto
7312 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7314 return a1 + a2;
7318 test(const int c, volatile int v)
7320 static_assert(is_same<int, decltype(0)>::value == true, "");
7321 static_assert(is_same<int, decltype(c)>::value == false, "");
7322 static_assert(is_same<int, decltype(v)>::value == false, "");
7323 auto ac = c;
7324 auto av = v;
7325 auto sumi = ac + av + 'x';
7326 auto sumf = ac + av + 1.0;
7327 static_assert(is_same<int, decltype(ac)>::value == true, "");
7328 static_assert(is_same<int, decltype(av)>::value == true, "");
7329 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7330 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7331 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7332 return (sumf > 0.0) ? sumi : add(c, v);
7337 namespace test_noexcept
7340 int f() { return 0; }
7341 int g() noexcept { return 0; }
7343 static_assert(noexcept(f()) == false, "");
7344 static_assert(noexcept(g()) == true, "");
7348 namespace test_constexpr
7351 template < typename CharT >
7352 unsigned long constexpr
7353 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7355 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7358 template < typename CharT >
7359 unsigned long constexpr
7360 strlen_c(const CharT *const s) noexcept
7362 return strlen_c_r(s, 0UL);
7365 static_assert(strlen_c("") == 0UL, "");
7366 static_assert(strlen_c("1") == 1UL, "");
7367 static_assert(strlen_c("example") == 7UL, "");
7368 static_assert(strlen_c("another\0example") == 7UL, "");
7372 namespace test_rvalue_references
7375 template < int N >
7376 struct answer
7378 static constexpr int value = N;
7381 answer<1> f(int&) { return answer<1>(); }
7382 answer<2> f(const int&) { return answer<2>(); }
7383 answer<3> f(int&&) { return answer<3>(); }
7385 void
7386 test()
7388 int i = 0;
7389 const int c = 0;
7390 static_assert(decltype(f(i))::value == 1, "");
7391 static_assert(decltype(f(c))::value == 2, "");
7392 static_assert(decltype(f(0))::value == 3, "");
7397 namespace test_uniform_initialization
7400 struct test
7402 static const int zero {};
7403 static const int one {1};
7406 static_assert(test::zero == 0, "");
7407 static_assert(test::one == 1, "");
7411 namespace test_lambdas
7414 void
7415 test1()
7417 auto lambda1 = [](){};
7418 auto lambda2 = lambda1;
7419 lambda1();
7420 lambda2();
7424 test2()
7426 auto a = [](int i, int j){ return i + j; }(1, 2);
7427 auto b = []() -> int { return '0'; }();
7428 auto c = [=](){ return a + b; }();
7429 auto d = [&](){ return c; }();
7430 auto e = [a, &b](int x) mutable {
7431 const auto identity = [](int y){ return y; };
7432 for (auto i = 0; i < a; ++i)
7433 a += b--;
7434 return x + identity(a + b);
7435 }(0);
7436 return a + b + c + d + e;
7440 test3()
7442 const auto nullary = [](){ return 0; };
7443 const auto unary = [](int x){ return x; };
7444 using nullary_t = decltype(nullary);
7445 using unary_t = decltype(unary);
7446 const auto higher1st = [](nullary_t f){ return f(); };
7447 const auto higher2nd = [unary](nullary_t f1){
7448 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7450 return higher1st(nullary) + higher2nd(nullary)(unary);
7455 namespace test_variadic_templates
7458 template <int...>
7459 struct sum;
7461 template <int N0, int... N1toN>
7462 struct sum<N0, N1toN...>
7464 static constexpr auto value = N0 + sum<N1toN...>::value;
7467 template <>
7468 struct sum<>
7470 static constexpr auto value = 0;
7473 static_assert(sum<>::value == 0, "");
7474 static_assert(sum<1>::value == 1, "");
7475 static_assert(sum<23>::value == 23, "");
7476 static_assert(sum<1, 2>::value == 3, "");
7477 static_assert(sum<5, 5, 11>::value == 21, "");
7478 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7482 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7483 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7484 // because of this.
7485 namespace test_template_alias_sfinae
7488 struct foo {};
7490 template<typename T>
7491 using member = typename T::member_type;
7493 template<typename T>
7494 void func(...) {}
7496 template<typename T>
7497 void func(member<T>*) {}
7499 void test();
7501 void test() { func<foo>(0); }
7505 } // namespace cxx11
7507 #endif // __cplusplus >= 201103L
7511 _ACEOF
7512 if ac_fn_cxx_try_compile "$LINENO"; then :
7513 eval $cachevar=yes
7514 else
7515 eval $cachevar=no
7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 CXX="$ac_save_CXX"
7520 eval ac_res=\$$cachevar
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7522 $as_echo "$ac_res" >&6; }
7523 if eval test x\$$cachevar = xyes; then
7524 CXX="$CXX $switch"
7525 if test -n "$CXXCPP" ; then
7526 CXXCPP="$CXXCPP $switch"
7528 ac_success=yes
7529 break
7531 done
7534 if test x$ac_success = xno; then
7535 for alternative in ${ax_cxx_compile_alternatives}; do
7536 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7537 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7539 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7540 if eval \${$cachevar+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 ac_save_CXX="$CXX"
7544 CXX="$CXX $switch"
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7549 // If the compiler admits that it is not ready for C++11, why torture it?
7550 // Hopefully, this will speed up the test.
7552 #ifndef __cplusplus
7554 #error "This is not a C++ compiler"
7556 #elif __cplusplus < 201103L
7558 #error "This is not a C++11 compiler"
7560 #else
7562 namespace cxx11
7565 namespace test_static_assert
7568 template <typename T>
7569 struct check
7571 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7576 namespace test_final_override
7579 struct Base
7581 virtual ~Base() {}
7582 virtual void f() {}
7585 struct Derived : public Base
7587 virtual ~Derived() override {}
7588 virtual void f() override {}
7593 namespace test_double_right_angle_brackets
7596 template < typename T >
7597 struct check {};
7599 typedef check<void> single_type;
7600 typedef check<check<void>> double_type;
7601 typedef check<check<check<void>>> triple_type;
7602 typedef check<check<check<check<void>>>> quadruple_type;
7606 namespace test_decltype
7612 int a = 1;
7613 decltype(a) b = 2;
7614 return a + b;
7619 namespace test_type_deduction
7622 template < typename T1, typename T2 >
7623 struct is_same
7625 static const bool value = false;
7628 template < typename T >
7629 struct is_same<T, T>
7631 static const bool value = true;
7634 template < typename T1, typename T2 >
7635 auto
7636 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7638 return a1 + a2;
7642 test(const int c, volatile int v)
7644 static_assert(is_same<int, decltype(0)>::value == true, "");
7645 static_assert(is_same<int, decltype(c)>::value == false, "");
7646 static_assert(is_same<int, decltype(v)>::value == false, "");
7647 auto ac = c;
7648 auto av = v;
7649 auto sumi = ac + av + 'x';
7650 auto sumf = ac + av + 1.0;
7651 static_assert(is_same<int, decltype(ac)>::value == true, "");
7652 static_assert(is_same<int, decltype(av)>::value == true, "");
7653 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7654 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7655 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7656 return (sumf > 0.0) ? sumi : add(c, v);
7661 namespace test_noexcept
7664 int f() { return 0; }
7665 int g() noexcept { return 0; }
7667 static_assert(noexcept(f()) == false, "");
7668 static_assert(noexcept(g()) == true, "");
7672 namespace test_constexpr
7675 template < typename CharT >
7676 unsigned long constexpr
7677 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7679 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7682 template < typename CharT >
7683 unsigned long constexpr
7684 strlen_c(const CharT *const s) noexcept
7686 return strlen_c_r(s, 0UL);
7689 static_assert(strlen_c("") == 0UL, "");
7690 static_assert(strlen_c("1") == 1UL, "");
7691 static_assert(strlen_c("example") == 7UL, "");
7692 static_assert(strlen_c("another\0example") == 7UL, "");
7696 namespace test_rvalue_references
7699 template < int N >
7700 struct answer
7702 static constexpr int value = N;
7705 answer<1> f(int&) { return answer<1>(); }
7706 answer<2> f(const int&) { return answer<2>(); }
7707 answer<3> f(int&&) { return answer<3>(); }
7709 void
7710 test()
7712 int i = 0;
7713 const int c = 0;
7714 static_assert(decltype(f(i))::value == 1, "");
7715 static_assert(decltype(f(c))::value == 2, "");
7716 static_assert(decltype(f(0))::value == 3, "");
7721 namespace test_uniform_initialization
7724 struct test
7726 static const int zero {};
7727 static const int one {1};
7730 static_assert(test::zero == 0, "");
7731 static_assert(test::one == 1, "");
7735 namespace test_lambdas
7738 void
7739 test1()
7741 auto lambda1 = [](){};
7742 auto lambda2 = lambda1;
7743 lambda1();
7744 lambda2();
7748 test2()
7750 auto a = [](int i, int j){ return i + j; }(1, 2);
7751 auto b = []() -> int { return '0'; }();
7752 auto c = [=](){ return a + b; }();
7753 auto d = [&](){ return c; }();
7754 auto e = [a, &b](int x) mutable {
7755 const auto identity = [](int y){ return y; };
7756 for (auto i = 0; i < a; ++i)
7757 a += b--;
7758 return x + identity(a + b);
7759 }(0);
7760 return a + b + c + d + e;
7764 test3()
7766 const auto nullary = [](){ return 0; };
7767 const auto unary = [](int x){ return x; };
7768 using nullary_t = decltype(nullary);
7769 using unary_t = decltype(unary);
7770 const auto higher1st = [](nullary_t f){ return f(); };
7771 const auto higher2nd = [unary](nullary_t f1){
7772 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7774 return higher1st(nullary) + higher2nd(nullary)(unary);
7779 namespace test_variadic_templates
7782 template <int...>
7783 struct sum;
7785 template <int N0, int... N1toN>
7786 struct sum<N0, N1toN...>
7788 static constexpr auto value = N0 + sum<N1toN...>::value;
7791 template <>
7792 struct sum<>
7794 static constexpr auto value = 0;
7797 static_assert(sum<>::value == 0, "");
7798 static_assert(sum<1>::value == 1, "");
7799 static_assert(sum<23>::value == 23, "");
7800 static_assert(sum<1, 2>::value == 3, "");
7801 static_assert(sum<5, 5, 11>::value == 21, "");
7802 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7806 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7807 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7808 // because of this.
7809 namespace test_template_alias_sfinae
7812 struct foo {};
7814 template<typename T>
7815 using member = typename T::member_type;
7817 template<typename T>
7818 void func(...) {}
7820 template<typename T>
7821 void func(member<T>*) {}
7823 void test();
7825 void test() { func<foo>(0); }
7829 } // namespace cxx11
7831 #endif // __cplusplus >= 201103L
7835 _ACEOF
7836 if ac_fn_cxx_try_compile "$LINENO"; then :
7837 eval $cachevar=yes
7838 else
7839 eval $cachevar=no
7841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 CXX="$ac_save_CXX"
7844 eval ac_res=\$$cachevar
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7846 $as_echo "$ac_res" >&6; }
7847 if eval test x\$$cachevar = xyes; then
7848 CXX="$CXX $switch"
7849 if test -n "$CXXCPP" ; then
7850 CXXCPP="$CXXCPP $switch"
7852 ac_success=yes
7853 break
7855 done
7856 if test x$ac_success = xyes; then
7857 break
7859 done
7861 CXX_FOR_BUILD="$CXX"
7862 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7863 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7864 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7865 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7866 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7867 ac_ext=c
7868 ac_cpp='$CPP $CPPFLAGS'
7869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7873 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7874 if test x$ac_success = xno; then
7875 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7878 if test x$ac_success = xno; then
7879 HAVE_CXX11_FOR_BUILD=0
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7881 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7882 else
7883 HAVE_CXX11_FOR_BUILD=1
7885 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7893 # Check whether --enable-pgo-build was given.
7894 if test "${enable_pgo_build+set}" = set; then :
7895 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7896 else
7897 enable_pgo_build=no
7901 # Issue errors and warnings for invalid/strange PGO build combinations.
7902 case "$have_compiler:$host:$target:$enable_pgo_build" in
7903 *:*:*:no) ;;
7905 # Allow the PGO build only if we aren't building a compiler and
7906 # we are in a native configuration.
7907 no:$build:$build:yes | no:$build:$build:lto) ;;
7909 # Disallow the PGO bootstrap if we are building a compiler.
7910 yes:*:*:yes | yes:*:*:lto)
7911 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7914 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7916 esac
7918 if test "$enable_pgo_build" != "no"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7920 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7921 old_CFLAGS="$CFLAGS"
7922 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7923 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927 int foo;
7928 _ACEOF
7929 if ac_fn_c_try_compile "$LINENO"; then :
7931 else
7932 PGO_BUILD_GEN_CFLAGS=
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 CFLAGS="$old_CFLAGS"
7936 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7938 $as_echo "yes" >&6; }
7939 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7943 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7946 if test "$enable_pgo_build" = "lto"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7948 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7949 old_CFLAGS="$CFLAGS"
7950 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7951 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7954 int foo;
7955 _ACEOF
7956 if ac_fn_c_try_compile "$LINENO"; then :
7958 else
7959 PGO_BUILD_LTO_CFLAGS=
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 CFLAGS="$old_CFLAGS"
7963 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7965 $as_echo "yes" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7970 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7978 # Used for setting $lt_cv_objdir
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7980 $as_echo_n "checking for objdir... " >&6; }
7981 if ${lt_cv_objdir+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 rm -f .libs 2>/dev/null
7985 mkdir .libs 2>/dev/null
7986 if test -d .libs; then
7987 lt_cv_objdir=.libs
7988 else
7989 # MS-DOS does not allow filenames that begin with a dot.
7990 lt_cv_objdir=_libs
7992 rmdir .libs 2>/dev/null
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7995 $as_echo "$lt_cv_objdir" >&6; }
7996 objdir=$lt_cv_objdir
8002 cat >>confdefs.h <<_ACEOF
8003 #define LT_OBJDIR "$lt_cv_objdir/"
8004 _ACEOF
8008 # Check for GMP, MPFR and MPC
8009 require_gmp=no
8010 require_mpc=no
8011 if test -d ${srcdir}/gcc ; then
8012 require_gmp=yes
8013 require_mpc=yes
8015 if test -d ${srcdir}/gdb ; then
8016 if test "x$enable_gdb" != xno; then
8017 require_gmp=yes
8021 gmplibs="-lmpfr -lgmp"
8022 if test x"$require_mpc" = "xyes" ; then
8023 gmplibs="-lmpc $gmplibs"
8025 gmpinc=
8026 have_gmp=no
8028 # Specify a location for mpc
8029 # check for this first so it ends up on the link line before mpfr.
8031 # Check whether --with-mpc was given.
8032 if test "${with_mpc+set}" = set; then :
8033 withval=$with_mpc;
8037 # Check whether --with-mpc-include was given.
8038 if test "${with_mpc_include+set}" = set; then :
8039 withval=$with_mpc_include;
8043 # Check whether --with-mpc-lib was given.
8044 if test "${with_mpc_lib+set}" = set; then :
8045 withval=$with_mpc_lib;
8049 if test "x$with_mpc" != x; then
8050 gmplibs="-L$with_mpc/lib $gmplibs"
8051 gmpinc="-I$with_mpc/include $gmpinc"
8053 if test "x$with_mpc_include" != x; then
8054 gmpinc="-I$with_mpc_include $gmpinc"
8056 if test "x$with_mpc_lib" != x; then
8057 gmplibs="-L$with_mpc_lib $gmplibs"
8059 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8060 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8061 gmpinc='-I$$s/mpc/src '"$gmpinc"
8062 # Do not test the mpc version. Assume that it is sufficient, since
8063 # it is in the source tree, and the library has not been built yet
8064 # but it would be included on the link line in the version check below
8065 # hence making the test fail.
8066 have_gmp=yes
8069 # Specify a location for mpfr
8070 # check for this first so it ends up on the link line before gmp.
8072 # Check whether --with-mpfr was given.
8073 if test "${with_mpfr+set}" = set; then :
8074 withval=$with_mpfr;
8078 # Check whether --with-mpfr-include was given.
8079 if test "${with_mpfr_include+set}" = set; then :
8080 withval=$with_mpfr_include;
8084 # Check whether --with-mpfr-lib was given.
8085 if test "${with_mpfr_lib+set}" = set; then :
8086 withval=$with_mpfr_lib;
8090 if test "x$with_mpfr" != x; then
8091 gmplibs="-L$with_mpfr/lib $gmplibs"
8092 gmpinc="-I$with_mpfr/include $gmpinc"
8094 if test "x$with_mpfr_include" != x; then
8095 gmpinc="-I$with_mpfr_include $gmpinc"
8097 if test "x$with_mpfr_lib" != x; then
8098 gmplibs="-L$with_mpfr_lib $gmplibs"
8100 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8101 # MPFR v3.1.0 moved the sources into a src sub-directory.
8102 if ! test -d ${srcdir}/mpfr/src; then
8103 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8105 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8106 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8107 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8108 # Do not test the mpfr version. Assume that it is sufficient, since
8109 # it is in the source tree, and the library has not been built yet
8110 # but it would be included on the link line in the version check below
8111 # hence making the test fail.
8112 have_gmp=yes
8115 # Specify a location for gmp
8117 # Check whether --with-gmp was given.
8118 if test "${with_gmp+set}" = set; then :
8119 withval=$with_gmp;
8123 # Check whether --with-gmp-include was given.
8124 if test "${with_gmp_include+set}" = set; then :
8125 withval=$with_gmp_include;
8129 # Check whether --with-gmp-lib was given.
8130 if test "${with_gmp_lib+set}" = set; then :
8131 withval=$with_gmp_lib;
8136 if test "x$with_gmp" != x; then
8137 gmplibs="-L$with_gmp/lib $gmplibs"
8138 gmpinc="-I$with_gmp/include $gmpinc"
8140 if test "x$with_gmp_include" != x; then
8141 gmpinc="-I$with_gmp_include $gmpinc"
8143 if test "x$with_gmp_lib" != x; then
8144 gmplibs="-L$with_gmp_lib $gmplibs"
8146 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8147 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8148 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8149 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8150 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8151 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8152 # Do not test the gmp version. Assume that it is sufficient, since
8153 # it is in the source tree, and the library has not been built yet
8154 # but it would be included on the link line in the version check below
8155 # hence making the test fail.
8156 have_gmp=yes
8159 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8160 have_gmp=yes
8161 saved_CFLAGS="$CFLAGS"
8162 CFLAGS="$CFLAGS $gmpinc"
8163 # Check for the recommended and required versions of GMP.
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8165 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 #include "gmp.h"
8170 main ()
8173 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8174 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8175 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8176 choke me
8177 #endif
8180 return 0;
8182 _ACEOF
8183 if ac_fn_c_try_compile "$LINENO"; then :
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186 #include <gmp.h>
8188 main ()
8191 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8192 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8193 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8194 choke me
8195 #endif
8198 return 0;
8200 _ACEOF
8201 if ac_fn_c_try_compile "$LINENO"; then :
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8203 $as_echo "yes" >&6; }
8204 else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8206 $as_echo "buggy but acceptable" >&6; }
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }; have_gmp=no
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215 # If we have GMP, check the MPFR version.
8216 if test x"$have_gmp" = xyes; then
8217 # Check for the recommended and required versions of MPFR.
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8219 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8222 #include <gmp.h>
8223 #include <mpfr.h>
8225 main ()
8228 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8229 choke me
8230 #endif
8233 return 0;
8235 _ACEOF
8236 if ac_fn_c_try_compile "$LINENO"; then :
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 #include <gmp.h>
8240 #include <mpfr.h>
8242 main ()
8245 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8246 choke me
8247 #endif
8250 return 0;
8252 _ACEOF
8253 if ac_fn_c_try_compile "$LINENO"; then :
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8255 $as_echo "yes" >&6; }
8256 else
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8258 $as_echo "buggy but acceptable" >&6; }
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 else
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }; have_gmp=no
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 # Check for the MPC header version.
8269 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8270 # Check for the recommended and required versions of MPC.
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8272 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 #include <mpc.h>
8277 main ()
8280 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8281 choke me
8282 #endif
8285 return 0;
8287 _ACEOF
8288 if ac_fn_c_try_compile "$LINENO"; then :
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 #include <mpc.h>
8293 main ()
8296 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8297 choke me
8298 #endif
8301 return 0;
8303 _ACEOF
8304 if ac_fn_c_try_compile "$LINENO"; then :
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8306 $as_echo "yes" >&6; }
8307 else
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8309 $as_echo "buggy but acceptable" >&6; }
8311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312 else
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }; have_gmp=no
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 # Now check the MPFR library.
8320 if test x"$have_gmp" = xyes; then
8321 saved_LIBS="$LIBS"
8322 LIBS="$LIBS $gmplibs"
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8324 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327 #include <mpfr.h>
8329 main ()
8332 mpfr_t n;
8333 mpfr_t x;
8334 int t;
8335 mpfr_init (n);
8336 mpfr_init (x);
8337 mpfr_atan2 (n, n, x, MPFR_RNDN);
8338 mpfr_erfc (n, x, MPFR_RNDN);
8339 mpfr_subnormalize (x, t, MPFR_RNDN);
8340 mpfr_clear(n);
8341 mpfr_clear(x);
8344 return 0;
8346 _ACEOF
8347 if ac_fn_c_try_link "$LINENO"; then :
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8349 $as_echo "yes" >&6; }
8350 else
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }; have_gmp=no
8354 rm -f core conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
8356 LIBS="$saved_LIBS"
8359 # Now check the MPC library
8360 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8361 saved_LIBS="$LIBS"
8362 LIBS="$LIBS $gmplibs"
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8364 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367 #include <mpc.h>
8369 main ()
8372 mpc_t c;
8373 mpc_init2 (c, 53);
8374 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8375 mpc_cosh (c, c, MPC_RNDNN);
8376 mpc_pow (c, c, c, MPC_RNDNN);
8377 mpc_acosh (c, c, MPC_RNDNN);
8378 mpc_clear (c);
8381 return 0;
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8386 $as_echo "yes" >&6; }
8387 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }; have_gmp=no
8391 rm -f core conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8393 LIBS="$saved_LIBS"
8396 CFLAGS="$saved_CFLAGS"
8398 # The library versions listed in the error message below should match
8399 # the HARD-minimums enforced above.
8400 if test x$have_gmp != xyes; then
8401 if test -d ${srcdir}/gcc ; then
8402 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8403 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8404 their locations. Source code for these libraries can be found at
8405 their respective hosting sites as well as at
8406 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8407 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8408 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8409 make sure that you have installed both the libraries and the header
8410 files. They may be located in separate packages." "$LINENO" 5
8411 else
8412 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8413 Try the --with-gmp and/or --with-mpfr options to specify
8414 their locations. If you obtained GMP and/or MPFR from a vendor
8415 distribution package, make sure that you have installed both the libraries
8416 and the header files. They may be located in separate packages." "$LINENO" 5
8421 # Flags needed for both GMP, MPFR and/or MPC.
8429 # Libraries to use for stage1 or when not bootstrapping.
8431 # Check whether --with-stage1-libs was given.
8432 if test "${with_stage1_libs+set}" = set; then :
8433 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8434 stage1_libs=
8435 else
8436 stage1_libs=$withval
8438 else
8439 stage1_libs=
8444 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8445 # default is yes if gcc is being built; no otherwise. The reason for
8446 # this default is that gdb is sometimes linked against GNU Source
8447 # Highlight, which is a shared library that uses C++ exceptions. In
8448 # this case, -static-libstdc++ will cause crashes.
8450 # Check whether --with-static-standard-libraries was given.
8451 if test "${with_static_standard_libraries+set}" = set; then :
8452 withval=$with_static_standard_libraries;
8453 else
8454 with_static_standard_libraries=auto
8457 if test "$with_static_standard_libraries" = auto; then
8458 with_static_standard_libraries=$have_compiler
8461 # Linker flags to use for stage1 or when not bootstrapping.
8463 # Check whether --with-stage1-ldflags was given.
8464 if test "${with_stage1_ldflags+set}" = set; then :
8465 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8466 stage1_ldflags=
8467 else
8468 stage1_ldflags=$withval
8470 else
8471 stage1_ldflags=
8472 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8473 # if supported. But if the user explicitly specified the libraries to use,
8474 # trust that they are doing what they want.
8475 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8476 -a "$have_static_libs" = yes; then
8477 stage1_ldflags="-static-libstdc++ -static-libgcc"
8483 # Libraries to use for stage2 and later builds.
8485 # Check whether --with-boot-libs was given.
8486 if test "${with_boot_libs+set}" = set; then :
8487 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8488 poststage1_libs=
8489 else
8490 poststage1_libs=$withval
8492 else
8493 poststage1_libs=
8498 # Linker flags to use for stage2 and later builds.
8500 # Check whether --with-boot-ldflags was given.
8501 if test "${with_boot_ldflags+set}" = set; then :
8502 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8503 poststage1_ldflags=
8504 else
8505 poststage1_ldflags=$withval
8507 else
8508 poststage1_ldflags=
8509 # In stages 2 and 3, default to linking libstdc++ and libgcc
8510 # statically. But if the user explicitly specified the libraries to
8511 # use, trust that they are doing what they want.
8512 if test "$poststage1_libs" = ""; then
8513 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8517 case $target in
8518 *-darwin2* | *-darwin1[56789]*)
8519 # For these versions, we default to using embedded rpaths.
8520 if test "x$enable_darwin_at_rpath" != "xno"; then
8521 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
8524 *-darwin*)
8525 # For these versions, we only use embedded rpaths on demand.
8526 if test "x$enable_darwin_at_rpath" = "xyes"; then
8527 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
8530 esac
8533 # GCC GRAPHITE dependency isl.
8534 # Basic setup is inlined here, actual checks are in config/isl.m4
8537 # Check whether --with-isl was given.
8538 if test "${with_isl+set}" = set; then :
8539 withval=$with_isl;
8543 # Treat --without-isl as a request to disable
8544 # GRAPHITE support and skip all following checks.
8545 if test "x$with_isl" != "xno"; then
8546 # Check for isl
8549 # Check whether --with-isl-include was given.
8550 if test "${with_isl_include+set}" = set; then :
8551 withval=$with_isl_include;
8555 # Check whether --with-isl-lib was given.
8556 if test "${with_isl_lib+set}" = set; then :
8557 withval=$with_isl_lib;
8561 # Check whether --enable-isl-version-check was given.
8562 if test "${enable_isl_version_check+set}" = set; then :
8563 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8564 else
8565 ENABLE_ISL_CHECK=yes
8569 # Initialize isllibs and islinc.
8570 case $with_isl in
8572 isllibs=
8573 islinc=
8575 "" | yes)
8578 isllibs="-L$with_isl/lib"
8579 islinc="-I$with_isl/include"
8581 esac
8582 if test "x${with_isl_include}" != x ; then
8583 islinc="-I$with_isl_include"
8585 if test "x${with_isl_lib}" != x; then
8586 isllibs="-L$with_isl_lib"
8588 if test "x${islinc}" = x && test "x${isllibs}" = x \
8589 && test -d ${srcdir}/isl; then
8590 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8591 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8592 ENABLE_ISL_CHECK=no
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8594 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8597 isllibs="${isllibs} -lisl"
8601 if test "${ENABLE_ISL_CHECK}" = yes ; then
8602 _isl_saved_CFLAGS=$CFLAGS
8603 _isl_saved_LDFLAGS=$LDFLAGS
8604 _isl_saved_LIBS=$LIBS
8606 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8607 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8608 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8611 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 #include <isl/schedule.h>
8616 main ()
8618 isl_options_set_schedule_serialize_sccs (NULL, 0);
8620 return 0;
8622 _ACEOF
8623 if ac_fn_c_try_link "$LINENO"; then :
8624 gcc_cv_isl=yes
8625 else
8626 gcc_cv_isl=no
8628 rm -f core conftest.err conftest.$ac_objext \
8629 conftest$ac_exeext conftest.$ac_ext
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8631 $as_echo "$gcc_cv_isl" >&6; }
8633 if test "${gcc_cv_isl}" = no ; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8635 $as_echo "required isl version is 0.15 or later" >&6; }
8638 CFLAGS=$_isl_saved_CFLAGS
8639 LDFLAGS=$_isl_saved_LDFLAGS
8640 LIBS=$_isl_saved_LIBS
8648 if test "x${with_isl}" = xno; then
8649 graphite_requested=no
8650 elif test "x${with_isl}" != x \
8651 || test "x${with_isl_include}" != x \
8652 || test "x${with_isl_lib}" != x ; then
8653 graphite_requested=yes
8654 else
8655 graphite_requested=no
8660 if test "${gcc_cv_isl}" = no ; then
8661 isllibs=
8662 islinc=
8665 if test "${graphite_requested}" = yes \
8666 && test "x${isllibs}" = x \
8667 && test "x${islinc}" = x ; then
8669 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8675 # If the isl check failed, disable builds of in-tree variant of isl
8676 if test "x$with_isl" = xno ||
8677 test "x$gcc_cv_isl" = xno; then
8678 noconfigdirs="$noconfigdirs isl"
8679 islinc=
8685 # Check for LTO support.
8686 # Check whether --enable-lto was given.
8687 if test "${enable_lto+set}" = set; then :
8688 enableval=$enable_lto; enable_lto=$enableval
8689 else
8690 enable_lto=yes; default_enable_lto=yes
8697 target_elf=no
8698 case $target in
8699 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8700 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8701 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8702 nvptx-*-none)
8703 target_elf=no
8706 target_elf=yes
8708 esac
8710 if test $target_elf = yes; then :
8711 # ELF platforms build the lto-plugin always.
8712 build_lto_plugin=yes
8714 else
8715 if test x"$default_enable_lto" = x"yes" ; then
8716 case $target in
8717 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8718 # On other non-ELF platforms, LTO has yet to be validated.
8719 *) enable_lto=no ;;
8720 esac
8721 else
8722 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8723 # It would also be nice to check the binutils support, but we don't
8724 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8725 # warn during gcc/ subconfigure; unless you're bootstrapping with
8726 # -flto it won't be needed until after installation anyway.
8727 case $target in
8728 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8729 *) if test x"$enable_lto" = x"yes"; then
8730 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8733 esac
8735 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8736 # Build it unless LTO was explicitly disabled.
8737 case $target in
8738 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8739 *) ;;
8740 esac
8745 # Check whether --enable-linker-plugin-configure-flags was given.
8746 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8747 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8748 else
8749 extra_linker_plugin_configure_flags=
8753 # Check whether --enable-linker-plugin-flags was given.
8754 if test "${enable_linker_plugin_flags+set}" = set; then :
8755 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8756 else
8757 extra_linker_plugin_flags=
8762 # Handle --enable-host-pie
8763 # If host PIE executables are the default (or must be forced on) for some host,
8764 # we must pass that configuration to the gcc directory.
8765 gcc_host_pie=
8766 # Check whether --enable-host-pie was given.
8767 if test "${enable_host_pie+set}" = set; then :
8768 enableval=$enable_host_pie; host_pie=$enableval
8769 case $host in
8770 *-*-darwin2*)
8771 if test x$host_pie != xyes ; then
8772 # for Darwin20+ this is required.
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8774 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8775 host_pie=yes
8776 gcc_host_pie=--enable-host-pie
8777 fi ;;
8778 *) ;;
8779 esac
8780 else
8781 case $host in
8782 *-*-darwin2*)
8783 # Default to PIE (mandatory for aarch64).
8784 host_pie=yes
8785 gcc_host_pie=--enable-host-pie
8787 *) host_pie=no ;;
8788 esac
8795 # Enable --enable-host-shared.
8796 # Checked early to determine whether jit is an 'all' language
8797 # Check whether --enable-host-shared was given.
8798 if test "${enable_host_shared+set}" = set; then :
8799 enableval=$enable_host_shared; host_shared=$enableval
8800 case $host in
8801 x86_64-*-darwin* | aarch64-*-darwin*)
8802 if test x$host_shared != xyes ; then
8803 # PIC is the default, and actually cannot be switched off.
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8805 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8806 host_shared=yes
8807 fi ;;
8808 *-*-darwin*)
8809 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8811 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8812 host_shared=yes
8813 fi ;;
8814 *) ;;
8815 esac
8816 else
8817 case $host in
8818 # 64B x86_64 and Aarch64 Darwin default to PIC.
8819 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8820 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8821 *-*-darwin*) host_shared=$host_pie ;;
8822 *) host_shared=no;;
8823 esac
8829 if test x$host_shared = xyes; then
8830 case $host in
8831 *-*-darwin*)
8832 # Since host shared is the default for 64b Darwin, and also enabled for
8833 # host_pie, ensure that we present the PIE flag when host_pie is active.
8834 if test x$host_pie = xyes; then
8835 PICFLAG=-fPIE
8839 PICFLAG=-fPIC
8841 esac
8842 elif test x$host_pie = xyes; then
8843 PICFLAG=-fPIE
8844 else
8845 PICFLAG=
8850 # If we are building PIC/PIE host executables, and we are building dependent
8851 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8852 # code.
8853 host_libs_picflag=
8854 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8855 host_libs_picflag='--with-pic'
8859 # By default, C and C++ are the only stage 1 languages.
8860 stage1_languages=,c,
8862 # Target libraries that we bootstrap.
8863 bootstrap_target_libs=,target-libgcc,
8865 # Figure out what language subdirectories are present.
8866 # Look if the user specified --enable-languages="..."; if not, use
8867 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8868 # go away some day.
8869 # NB: embedded tabs in this IF block -- do not untabify
8870 if test -d ${srcdir}/gcc; then
8871 if test x"${enable_languages+set}" != xset; then
8872 if test x"${LANGUAGES+set}" = xset; then
8873 enable_languages="${LANGUAGES}"
8874 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8875 else
8876 enable_languages=default
8878 else
8879 if test x"${enable_languages}" = x ||
8880 test x"${enable_languages}" = xyes;
8881 then
8882 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8883 exit 1
8886 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8888 # 'f95' is the old name for the 'fortran' language. We issue a warning
8889 # and make the substitution.
8890 case ,${enable_languages}, in
8891 *,f95,*)
8892 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8893 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8895 esac
8897 # If bootstrapping, C++ must be enabled.
8898 case ",$enable_languages,:$enable_bootstrap" in
8899 *,c++,*:*) ;;
8900 *:yes)
8901 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8902 enable_languages="${enable_languages},c++"
8903 else
8904 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8907 esac
8909 # First scan to see if an enabled language requires some other language.
8910 # We assume that a given config-lang.in will list all the language
8911 # front ends it requires, even if some are required indirectly.
8912 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8913 case ${lang_frag} in
8914 ..) ;;
8915 # The odd quoting in the next line works around
8916 # an apparent bug in bash 1.12 on linux.
8917 ${srcdir}/gcc/[*]/config-lang.in) ;;
8919 # From the config-lang.in, get $language, $lang_requires, and
8920 # $lang_requires_boot_languages.
8921 language=
8922 lang_requires=
8923 lang_requires_boot_languages=
8924 # set srcdir during sourcing lang_frag to the gcc dir.
8925 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8926 # polutes this shell
8927 saved_srcdir=${srcdir}
8928 srcdir=${srcdir}/gcc . ${lang_frag}
8929 srcdir=${saved_srcdir}
8930 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8931 case ,${enable_languages}, in
8932 *,$other,*) ;;
8933 *,default,*) ;;
8934 *,all,*) ;;
8935 *,$language,*)
8936 echo " \`$other' language required by \`$language'; enabling" 1>&2
8937 enable_languages="${enable_languages},${other}"
8939 esac
8940 done
8941 for other in ${lang_requires_boot_languages} ; do
8942 if test "$other" != "c"; then
8943 case ,${enable_stage1_languages}, in
8944 *,$other,*) ;;
8945 *,default,*) ;;
8946 *,all,*) ;;
8948 case ,${enable_languages}, in
8949 *,$language,*)
8950 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8951 enable_stage1_languages="$enable_stage1_languages,${other}"
8953 esac
8955 esac
8957 done
8959 esac
8960 done
8962 new_enable_languages=,c,
8964 # If LTO is enabled, add the LTO front end.
8965 if test "$enable_lto" = "yes" ; then
8966 case ,${enable_languages}, in
8967 *,lto,*) ;;
8968 *) enable_languages="${enable_languages},lto" ;;
8969 esac
8970 if test "${build_lto_plugin}" = "yes" ; then
8971 configdirs="$configdirs lto-plugin"
8975 # If we're building an offloading compiler, add the LTO front end.
8976 if test x"$enable_as_accelerator_for" != x ; then
8977 case ,${enable_languages}, in
8978 *,lto,*) ;;
8979 *) enable_languages="${enable_languages},lto" ;;
8980 esac
8983 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8984 potential_languages=,c,
8986 enabled_target_libs=
8987 disabled_target_libs=
8989 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8990 case ${lang_frag} in
8991 ..) ;;
8992 # The odd quoting in the next line works around
8993 # an apparent bug in bash 1.12 on linux.
8994 ${srcdir}/gcc/[*]/config-lang.in) ;;
8996 # From the config-lang.in, get $language, $target_libs,
8997 # $lang_dirs, $boot_language, and $build_by_default
8998 language=
8999 target_libs=
9000 lang_dirs=
9001 subdir_requires=
9002 boot_language=no
9003 build_by_default=yes
9004 # set srcdir during sourcing. See above about save & restore
9005 saved_srcdir=${srcdir}
9006 srcdir=${srcdir}/gcc . ${lang_frag}
9007 srcdir=${saved_srcdir}
9008 if test x${language} = x; then
9009 echo "${lang_frag} doesn't set \$language." 1>&2
9010 exit 1
9013 if test "$language" = "c++"; then
9014 boot_language=yes
9017 add_this_lang=no
9018 # C is always enabled, so no need to add it again
9019 if test "$language" != "c"; then
9020 case ,${enable_languages}, in
9021 *,${language},*)
9022 # Language was explicitly selected; include it
9023 add_this_lang=yes
9025 *,all,*)
9026 # All languages are enabled
9027 add_this_lang=all
9029 *,default,*)
9030 # 'default' was selected, select it if it is a default language
9031 add_this_lang=${build_by_default}
9033 esac
9036 # Disable languages that need other directories if these aren't available.
9037 for i in $subdir_requires; do
9038 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9039 case ${add_this_lang} in
9040 yes)
9041 # Specifically requested language; tell them.
9042 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9044 all)
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9046 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9047 add_this_lang=unsupported
9050 # Silently disable.
9051 add_this_lang=unsupported
9053 esac
9054 done
9056 # Disable Ada if no preexisting GNAT is available.
9057 case ${add_this_lang}:${language}:${have_gnat} in
9058 yes:ada:no)
9059 # Specifically requested language; tell them.
9060 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9062 all:ada:no)
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9064 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9065 add_this_lang=unsupported
9067 *:ada:no)
9068 # Silently disable.
9069 add_this_lang=unsupported
9071 esac
9073 # Disable D if no preexisting GDC is available.
9074 case ${add_this_lang}:${language}:${have_gdc} in
9075 yes:d:no)
9076 # Specifically requested language; tell them.
9077 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
9079 all:d:no)
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9081 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9082 add_this_lang=unsupported
9084 *:d:no)
9085 # Silently disable.
9086 add_this_lang=unsupported
9088 esac
9090 # Disable jit if -enable-host-shared not specified
9091 # but not if building for Mingw. All code in Windows
9092 # is position independent code (PIC).
9093 case $target in
9094 *mingw*) ;;
9096 case ${add_this_lang}:${language}:${host_shared} in
9097 yes:jit:no)
9098 # PR jit/64780: explicitly specify --enable-host-shared
9099 as_fn_error $? "
9100 Enabling language \"jit\" requires --enable-host-shared.
9102 --enable-host-shared typically slows the rest of the compiler down by
9103 a few %, so you must explicitly enable it.
9105 If you want to build both the jit and the regular compiler, it is often
9106 best to do this via two separate configure/builds, in separate
9107 directories, to avoid imposing the performance cost of
9108 --enable-host-shared on the regular compiler." "$LINENO" 5
9110 all:jit:no)
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9112 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9113 add_this_lang=unsupported
9115 *:jit:no)
9116 # Silently disable.
9117 add_this_lang=unsupported
9119 esac
9121 esac
9123 # Disable a language that is unsupported by the target.
9124 case "${add_this_lang}: $unsupported_languages " in
9125 no:*) ;;
9126 unsupported:*) ;;
9127 *:*" $language "*)
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9129 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9130 add_this_lang=unsupported
9132 esac
9134 case $add_this_lang in
9135 unsupported)
9136 # Remove language-dependent dirs.
9137 disabled_target_libs="$disabled_target_libs $target_libs"
9138 noconfigdirs="$noconfigdirs $lang_dirs"
9141 # Remove language-dependent dirs; still show language as supported.
9142 disabled_target_libs="$disabled_target_libs $target_libs"
9143 noconfigdirs="$noconfigdirs $lang_dirs"
9144 potential_languages="${potential_languages}${language},"
9146 all|yes)
9147 new_enable_languages="${new_enable_languages}${language},"
9148 potential_languages="${potential_languages}${language},"
9149 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9150 enabled_target_libs="$enabled_target_libs $target_libs"
9151 case "${boot_language}:,$enable_stage1_languages," in
9152 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9153 # Add to (comma-separated) list of stage 1 languages.
9154 case ",$stage1_languages," in
9155 *,$language,* | ,yes, | ,all,) ;;
9156 *) stage1_languages="${stage1_languages}${language}," ;;
9157 esac
9158 # We need to bootstrap any supporting libraries.
9159 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9161 esac
9163 esac
9165 esac
9166 done
9168 # Add target libraries which are only needed for disabled languages
9169 # to noconfigdirs.
9170 if test -n "$disabled_target_libs"; then
9171 for dir in $disabled_target_libs; do
9172 case " $enabled_target_libs " in
9173 *" ${dir} "*) ;;
9174 *) noconfigdirs="$noconfigdirs $dir" ;;
9175 esac
9176 done
9179 # Check whether --enable-stage1-languages was given.
9180 if test "${enable_stage1_languages+set}" = set; then :
9181 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9182 ,no,|,,)
9183 # Set it to something that will have no effect in the loop below
9184 enable_stage1_languages=c ;;
9185 ,yes,)
9186 enable_stage1_languages=`echo $new_enable_languages | \
9187 sed -e "s/^,//" -e "s/,$//" ` ;;
9188 *,all,*)
9189 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9190 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9191 esac
9193 # Add "good" languages from enable_stage1_languages to stage1_languages,
9194 # while "bad" languages go in missing_languages. Leave no duplicates.
9195 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9196 case $potential_languages in
9197 *,$i,*)
9198 case $stage1_languages in
9199 *,$i,*) ;;
9200 *) stage1_languages="$stage1_languages$i," ;;
9201 esac ;;
9203 case $missing_languages in
9204 *,$i,*) ;;
9205 *) missing_languages="$missing_languages$i," ;;
9206 esac ;;
9207 esac
9208 done
9212 # Remove leading/trailing commas that were added for simplicity
9213 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9214 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9215 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9216 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9218 if test "x$missing_languages" != x; then
9219 as_fn_error $? "
9220 The following requested languages could not be built: ${missing_languages}
9221 Supported languages are: ${potential_languages}" "$LINENO" 5
9223 if test "x$new_enable_languages" != "x$enable_languages"; then
9224 echo The following languages will be built: ${new_enable_languages}
9225 enable_languages="$new_enable_languages"
9229 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9232 # Handle --disable-<component> generically.
9233 for dir in $configdirs $build_configdirs $target_configdirs ; do
9234 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9235 varname=`echo $dirname | sed -e s/+/_/g`
9236 if eval test x\${enable_${varname}} "=" xno ; then
9237 noconfigdirs="$noconfigdirs $dir"
9239 done
9241 # Check for Boehm's garbage collector
9242 # Check whether --enable-objc-gc was given.
9243 if test "${enable_objc_gc+set}" = set; then :
9244 enableval=$enable_objc_gc;
9248 # Check whether --with-target-bdw-gc was given.
9249 if test "${with_target_bdw_gc+set}" = set; then :
9250 withval=$with_target_bdw_gc;
9254 # Check whether --with-target-bdw-gc-include was given.
9255 if test "${with_target_bdw_gc_include+set}" = set; then :
9256 withval=$with_target_bdw_gc_include;
9260 # Check whether --with-target-bdw-gc-lib was given.
9261 if test "${with_target_bdw_gc_lib+set}" = set; then :
9262 withval=$with_target_bdw_gc_lib;
9266 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9268 $as_echo_n "checking for bdw garbage collector... " >&6; }
9269 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9271 $as_echo "using bdw-gc in default locations" >&6; }
9272 else
9273 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9274 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9275 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9276 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9277 else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9279 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9282 esac
9284 # Disable libitm, libsanitizer, libvtv if we're not building C++
9285 case ,${enable_languages}, in
9286 *,c++,*)
9287 # Disable libitm, libsanitizer if we're not building libstdc++
9288 case "${noconfigdirs}" in
9289 *target-libstdc++-v3*)
9290 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9292 *) ;;
9293 esac
9296 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9298 esac
9300 case ,${enable_languages}, in
9301 *,rust,*)
9302 case " ${noconfigdirs} " in
9303 *\ target-libstdc++-v3\ *)
9304 # Disable target libgrust if we're not building target libstdc++.
9305 noconfigdirs="$noconfigdirs target-libgrust"
9307 esac
9309 esac
9311 # If gcc/ is not in the source tree then we'll not be building a
9312 # target compiler, assume in that case we don't want to build any
9313 # target libraries or tools.
9315 # This was added primarily for the benefit for binutils-gdb who reuse
9316 # this configure script, but don't always have target tools available.
9317 if test ! -d ${srcdir}/gcc; then
9318 skipdirs="${skipdirs} ${target_configdirs}"
9321 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9322 # $build_configdirs and $target_configdirs.
9323 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9325 notsupp=""
9326 for dir in . $skipdirs $noconfigdirs ; do
9327 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9328 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9329 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9330 if test -r $srcdir/$dirname/configure ; then
9331 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9332 true
9333 else
9334 notsupp="$notsupp $dir"
9338 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9339 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9340 if test -r $srcdir/$dirname/configure ; then
9341 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9342 true
9343 else
9344 notsupp="$notsupp $dir"
9348 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9349 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9350 if test -r $srcdir/$dirname/configure ; then
9351 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9352 true
9353 else
9354 notsupp="$notsupp $dir"
9358 done
9360 # Quietly strip out all directories which aren't configurable in this tree.
9361 # This relies on all configurable subdirectories being autoconfiscated, which
9362 # is now the case.
9363 build_configdirs_all="$build_configdirs"
9364 build_configdirs=
9365 for i in ${build_configdirs_all} ; do
9366 j=`echo $i | sed -e s/build-//g`
9367 if test -f ${srcdir}/$j/configure ; then
9368 build_configdirs="${build_configdirs} $i"
9370 done
9372 configdirs_all="$configdirs"
9373 configdirs=
9374 for i in ${configdirs_all} ; do
9375 if test -f ${srcdir}/$i/configure ; then
9376 configdirs="${configdirs} $i"
9378 done
9380 target_configdirs_all="$target_configdirs"
9381 target_configdirs=
9382 for i in ${target_configdirs_all} ; do
9383 j=`echo $i | sed -e s/target-//g`
9384 if test -f ${srcdir}/$j/configure ; then
9385 target_configdirs="${target_configdirs} $i"
9387 done
9389 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9390 # so we have to add it after the preceding checks.
9391 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9392 then
9393 case " $configdirs " in
9394 *" libiberty "*)
9395 # If we can build libiberty, we can also build libiberty-linker-plugin.
9396 configdirs="$configdirs libiberty-linker-plugin"
9397 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9398 --with-libiberty=../libiberty-linker-plugin";;
9400 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9401 esac
9404 # Sometimes we have special requirements for the host libiberty.
9405 extra_host_libiberty_configure_flags=
9406 case " $configdirs " in
9407 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9408 # When these are to be built as shared libraries, the same applies to
9409 # libiberty.
9410 extra_host_libiberty_configure_flags=--enable-shared
9412 esac
9415 # Sometimes we have special requirements for the host zlib.
9416 extra_host_zlib_configure_flags=
9417 case " $configdirs " in
9418 *" bfd "*)
9419 # When bfd is to be built as a shared library, the same applies to
9420 # zlib.
9421 if test "$enable_shared" = "yes"; then
9422 extra_host_zlib_configure_flags=--enable-host-shared
9425 esac
9428 # Produce a warning message for the subdirs we can't configure.
9429 # This isn't especially interesting in the Cygnus tree, but in the individual
9430 # FSF releases, it's important to let people know when their machine isn't
9431 # supported by the one or two programs in a package.
9433 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9434 # If $appdirs is non-empty, at least one of those directories must still
9435 # be configured, or we error out. (E.g., if the gas release supports a
9436 # specified target in some subdirs but not the gas subdir, we shouldn't
9437 # pretend that all is well.)
9438 if test -n "$appdirs" ; then
9439 for dir in $appdirs ; do
9440 if test -r $dir/Makefile.in ; then
9441 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9442 appdirs=""
9443 break
9445 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9446 appdirs=""
9447 break
9450 done
9451 if test -n "$appdirs" ; then
9452 echo "*** This configuration is not supported by this package." 1>&2
9453 exit 1
9456 # Okay, some application will build, or we don't care to check. Still
9457 # notify of subdirs not getting built.
9458 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9459 echo " ${notsupp}" 1>&2
9460 echo " (Any other directories should still work fine.)" 1>&2
9463 case "$host" in
9464 *msdosdjgpp*)
9465 enable_gdbtk=no ;;
9466 esac
9468 # To find our prefix, in gcc_cv_tool_prefix.
9470 # The user is always right.
9471 if test "${PATH_SEPARATOR+set}" != set; then
9472 echo "#! /bin/sh" >conf$$.sh
9473 echo "exit 0" >>conf$$.sh
9474 chmod +x conf$$.sh
9475 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9476 PATH_SEPARATOR=';'
9477 else
9478 PATH_SEPARATOR=:
9480 rm -f conf$$.sh
9484 get_gcc_base_ver="cat"
9486 # Check whether --with-gcc-major-version-only was given.
9487 if test "${with_gcc_major_version_only+set}" = set; then :
9488 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9489 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9499 if test "x$exec_prefix" = xNONE; then
9500 if test "x$prefix" = xNONE; then
9501 gcc_cv_tool_prefix=$ac_default_prefix
9502 else
9503 gcc_cv_tool_prefix=$prefix
9505 else
9506 gcc_cv_tool_prefix=$exec_prefix
9509 # If there is no compiler in the tree, use the PATH only. In any
9510 # case, if there is no compiler in the tree nobody should use
9511 # AS_FOR_TARGET and LD_FOR_TARGET.
9512 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9513 if test x$with_gcc_major_version_only = xyes ; then
9514 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9515 else
9516 gcc_version=`cat $srcdir/gcc/BASE-VER`
9518 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9519 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9520 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9521 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9522 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9523 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9524 else
9525 gcc_cv_tool_dirs=
9528 if test x$build = x$target && test -n "$md_exec_prefix"; then
9529 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9534 copy_dirs=
9537 # Check whether --with-build-sysroot was given.
9538 if test "${with_build_sysroot+set}" = set; then :
9539 withval=$with_build_sysroot; if test x"$withval" != x ; then
9540 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9542 else
9543 SYSROOT_CFLAGS_FOR_TARGET=
9549 # Check whether --with-debug-prefix-map was given.
9550 if test "${with_debug_prefix_map+set}" = set; then :
9551 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9552 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9553 for debug_map in $withval; do
9554 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9555 done
9557 else
9558 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9563 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9564 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9565 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9566 # We want to ensure that TARGET libraries (which we know are built with
9567 # gcc) are built with "-O2 -g", so include those options when setting
9568 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9569 if test "x$CFLAGS_FOR_TARGET" = x; then
9570 if test "x${is_cross_compiler}" = xyes; then
9571 CFLAGS_FOR_TARGET="-g -O2"
9572 else
9573 CFLAGS_FOR_TARGET=$CFLAGS
9574 case " $CFLAGS " in
9575 *" -O2 "*) ;;
9576 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9577 esac
9578 case " $CFLAGS " in
9579 *" -g "* | *" -g3 "*) ;;
9580 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9581 esac
9586 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9587 if test "x${is_cross_compiler}" = xyes; then
9588 CXXFLAGS_FOR_TARGET="-g -O2"
9589 else
9590 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9591 case " $CXXFLAGS " in
9592 *" -O2 "*) ;;
9593 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9594 esac
9595 case " $CXXFLAGS " in
9596 *" -g "* | *" -g3 "*) ;;
9597 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9598 esac
9605 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9606 # the named directory are copied to $(tooldir)/sys-include.
9607 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9608 if test x${is_cross_compiler} = xno ; then
9609 echo 1>&2 '***' --with-headers is only supported when cross compiling
9610 exit 1
9612 if test x"${with_headers}" != xyes ; then
9613 x=${gcc_cv_tool_prefix}
9614 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9618 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9619 # the name directories are copied to $(tooldir)/lib. Multiple directories
9620 # are permitted.
9621 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9622 if test x${is_cross_compiler} = xno ; then
9623 echo 1>&2 '***' --with-libs is only supported when cross compiling
9624 exit 1
9626 if test x"${with_libs}" != xyes ; then
9627 # Copy the libraries in reverse order, so that files in the first named
9628 # library override files in subsequent libraries.
9629 x=${gcc_cv_tool_prefix}
9630 for l in ${with_libs}; do
9631 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9632 done
9636 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9638 # This is done by determining whether or not the appropriate directory
9639 # is available, and by checking whether or not specific configurations
9640 # have requested that this magic not happen.
9642 # The command line options always override the explicit settings in
9643 # configure.ac, and the settings in configure.ac override this magic.
9645 # If the default for a toolchain is to use GNU as and ld, and you don't
9646 # want to do that, then you should use the --without-gnu-as and
9647 # --without-gnu-ld options for the configure script. Similarly, if
9648 # the default is to use the included zlib and you don't want to do that,
9649 # you should use the --with-system-zlib option for the configure script.
9651 if test x${use_gnu_as} = x &&
9652 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9653 with_gnu_as=yes
9654 extra_host_args="$extra_host_args --with-gnu-as"
9657 if test x${use_gnu_ld} = x &&
9658 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9659 with_gnu_ld=yes
9660 extra_host_args="$extra_host_args --with-gnu-ld"
9663 if test x${use_included_zlib} = x &&
9664 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9666 else
9667 with_system_zlib=yes
9668 extra_host_args="$extra_host_args --with-system-zlib"
9671 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9672 # can detect this case.
9674 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9675 with_newlib=yes
9676 extra_host_args="$extra_host_args --with-newlib"
9679 # Handle ${copy_dirs}
9680 set fnord ${copy_dirs}
9681 shift
9682 while test $# != 0 ; do
9683 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9685 else
9686 echo Copying $1 to $2
9688 # Use the install script to create the directory and all required
9689 # parent directories.
9690 if test -d $2 ; then
9692 else
9693 echo >config.temp
9694 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9697 # Copy the directory, assuming we have tar.
9698 # FIXME: Should we use B in the second tar? Not all systems support it.
9699 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9701 # It is the responsibility of the user to correctly adjust all
9702 # symlinks. If somebody can figure out how to handle them correctly
9703 # here, feel free to add the code.
9705 echo $1 > $2/COPIED
9707 shift; shift
9708 done
9710 # Determine a target-dependent exec_prefix that the installed
9711 # gcc will search in. Keep this list sorted by triplet, with
9712 # the *-*-osname triplets last.
9713 md_exec_prefix=
9714 case "${target}" in
9715 i[34567]86-pc-msdosdjgpp*)
9716 md_exec_prefix=/dev/env/DJDIR/bin
9718 *-*-hpux* | \
9719 *-*-nto-qnx* | \
9720 *-*-solaris2*)
9721 md_exec_prefix=/usr/ccs/bin
9723 esac
9725 extra_arflags_for_target=
9726 extra_nmflags_for_target=
9727 extra_ranlibflags_for_target=
9728 target_makefile_frag=/dev/null
9729 case "${target}" in
9730 spu-*-*)
9731 target_makefile_frag="config/mt-spu"
9733 loongarch*-*linux* | loongarch*-*gnu*)
9734 target_makefile_frag="config/mt-loongarch-gnu"
9736 loongarch*-*elf*)
9737 target_makefile_frag="config/mt-loongarch-elf"
9739 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9740 target_makefile_frag="config/mt-sde"
9742 mipsisa*-*-elfoabi*)
9743 target_makefile_frag="config/mt-mips-elfoabi"
9745 mips*-*-*linux* | mips*-*-gnu*)
9746 target_makefile_frag="config/mt-mips-gnu"
9748 nios2-*-elf*)
9749 target_makefile_frag="config/mt-nios2-elf"
9751 *-*-linux-android*)
9752 target_makefile_frag="config/mt-android"
9754 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9755 target_makefile_frag="config/mt-gnu"
9757 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9758 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9759 # commands to handle both 32-bit and 64-bit objects. These flags are
9760 # harmless if we're using GNU nm or ar.
9761 extra_arflags_for_target=" -X32_64"
9762 extra_nmflags_for_target=" -B -X32_64"
9764 esac
9766 alphaieee_frag=/dev/null
9767 case $target in
9768 alpha*-*-*)
9769 # This just makes sure to use the -mieee option to build target libs.
9770 # This should probably be set individually by each library.
9771 alphaieee_frag="config/mt-alphaieee"
9773 esac
9775 # If --enable-target-optspace always use -Os instead of -O2 to build
9776 # the target libraries, similarly if it is not specified, use -Os
9777 # on selected platforms.
9778 ospace_frag=/dev/null
9779 case "${enable_target_optspace}:${target}" in
9780 yes:*)
9781 ospace_frag="config/mt-ospace"
9783 :d30v-*)
9784 ospace_frag="config/mt-d30v"
9786 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9787 ospace_frag="config/mt-ospace"
9789 no:* | :*)
9792 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9794 esac
9796 # Some systems (e.g., one of the i386-aix systems the gas testers are
9797 # using) don't handle "\$" correctly, so don't use it here.
9798 tooldir='${exec_prefix}'/${target_noncanonical}
9799 build_tooldir=${tooldir}
9801 # Create a .gdbinit file which runs the one in srcdir
9802 # and tells GDB to look there for source files.
9804 if test -r ${srcdir}/.gdbinit ; then
9805 case ${srcdir} in
9806 .) ;;
9807 *) cat > ./.gdbinit <<EOF
9808 # ${NO_EDIT}
9809 dir ${srcdir}
9810 dir .
9811 source ${srcdir}/.gdbinit
9814 esac
9817 # Make sure that the compiler is able to generate an executable. If it
9818 # can't, we are probably in trouble. We don't care whether we can run the
9819 # executable--we might be using a cross compiler--we only care whether it
9820 # can be created. At this point the main configure script has set CC.
9821 we_are_ok=no
9822 echo "int main () { return 0; }" > conftest.c
9823 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9824 if test $? = 0 ; then
9825 if test -s conftest || test -s conftest.exe ; then
9826 we_are_ok=yes
9829 case $we_are_ok in
9831 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9832 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9833 rm -f conftest*
9834 exit 1
9836 esac
9837 rm -f conftest*
9839 # Decide which environment variable is used to find dynamic libraries.
9840 case "${host}" in
9841 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9842 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9843 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9844 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9845 esac
9847 # On systems where the dynamic library environment variable is PATH,
9848 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9849 # built executables to PATH.
9850 if test "$RPATH_ENVVAR" = PATH; then
9851 GCC_SHLIB_SUBDIR=/shlib
9852 else
9853 GCC_SHLIB_SUBDIR=
9856 # Adjust the toplevel makefile according to whether bootstrap was selected.
9857 case $enable_bootstrap in
9858 yes)
9859 bootstrap_suffix=bootstrap
9860 BUILD_CONFIG=bootstrap-debug
9863 bootstrap_suffix=no-bootstrap
9864 BUILD_CONFIG=
9866 esac
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9869 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9872 # Check whether --with-build-config was given.
9873 if test "${with_build_config+set}" = set; then :
9874 withval=$with_build_config; case $with_build_config in
9875 yes) with_build_config= ;;
9876 no) with_build_config= BUILD_CONFIG= ;;
9877 esac
9881 if test "x${with_build_config}" != x; then
9882 BUILD_CONFIG=$with_build_config
9883 else
9884 case $BUILD_CONFIG in
9885 bootstrap-debug)
9886 if echo "int f (void) { return 0; }" > conftest.c &&
9887 ${CC} -c conftest.c &&
9888 mv conftest.o conftest.o.g0 &&
9889 ${CC} -c -g conftest.c &&
9890 mv conftest.o conftest.o.g &&
9891 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9893 else
9894 BUILD_CONFIG=
9896 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9898 esac
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9901 $as_echo "$BUILD_CONFIG" >&6; }
9904 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9906 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9907 # Check whether --enable-vtable-verify was given.
9908 if test "${enable_vtable_verify+set}" = set; then :
9909 enableval=$enable_vtable_verify; case "$enableval" in
9910 yes) enable_vtable_verify=yes ;;
9911 no) enable_vtable_verify=no ;;
9912 *) enable_vtable_verify=no;;
9913 esac
9914 else
9915 enable_vtable_verify=no
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9919 $as_echo "$enable_vtable_verify" >&6; }
9921 # Record target_configdirs and the configure arguments for target and
9922 # build configuration in Makefile.
9923 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9924 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9925 bootstrap_fixincludes=no
9927 # If we are building libgomp, bootstrap it.
9928 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9929 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9932 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9933 # or bootstrap-ubsan, bootstrap it.
9934 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9935 case "$BUILD_CONFIG" in
9936 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9937 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9938 bootstrap_fixincludes=yes
9940 esac
9943 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9944 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9945 test "$enable_vtable_verify" != no; then
9946 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9949 # If we are building libatomic and the list of enabled languages includes the
9950 # D frontend, bootstrap it.
9951 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9952 case ,${enable_languages}, in
9953 *,d,*)
9954 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9956 esac
9959 # Determine whether gdb needs tk/tcl or not.
9960 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9961 # and in that case we want gdb to be built without tk. Ugh!
9962 # In fact I believe gdb is the *only* package directly dependent on tk,
9963 # so we should be able to put the 'maybe's in unconditionally and
9964 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9965 # 100% sure that that's safe though.
9967 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9968 case "$enable_gdbtk" in
9970 GDB_TK="" ;;
9971 yes)
9972 GDB_TK="${gdb_tk}" ;;
9974 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9975 # distro. Eventually someone will fix this and move Insight, nee
9976 # gdbtk to a separate directory.
9977 if test -d ${srcdir}/gdb/gdbtk ; then
9978 GDB_TK="${gdb_tk}"
9979 else
9980 GDB_TK=""
9983 esac
9984 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9985 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9987 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9988 # else does, only include them if one of these is built. The Makefile
9989 # provides the ordering, so it's enough here to add to the list.
9990 case " ${configdirs} " in
9991 *\ gdb\ *)
9992 configdirs="${configdirs} gnulib gdbsupport"
9994 *\ gdbserver\ *)
9995 configdirs="${configdirs} gnulib gdbsupport"
9997 *\ sim\ *)
9998 configdirs="${configdirs} gnulib"
10000 esac
10002 # Strip out unwanted targets.
10004 # While at that, we remove Makefiles if we were started for recursive
10005 # configuration, so that the top-level Makefile reconfigures them,
10006 # like we used to do when configure itself was recursive.
10008 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
10009 # but now we're fixing up the Makefile ourselves with the additional
10010 # commands passed to AC_CONFIG_FILES. Use separate variables
10011 # extrasub-{build,host,target} not because there is any reason to split
10012 # the substitutions up that way, but only to remain below the limit of
10013 # 99 commands in a script, for HP-UX sed.
10015 # Do not nest @if/@endif or @unless/@endunless pairs, because
10016 # configure will not warn you at all.
10018 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
10019 yes:yes:*\ gold\ *:*,c++,*) ;;
10020 yes:yes:*\ gold\ *:*)
10021 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
10023 esac
10025 extrasub_build=
10026 for module in ${build_configdirs} ; do
10027 if test -z "${no_recursion}" \
10028 && test -f ${build_subdir}/${module}/Makefile; then
10029 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
10030 rm -f ${build_subdir}/${module}/Makefile
10032 extrasub_build="$extrasub_build
10033 /^@if build-$module\$/d
10034 /^@endif build-$module\$/d
10035 /^@unless build-$module\$/,/^@endunless build-$module\$/d
10036 /^@if build-$module-$bootstrap_suffix\$/d
10037 /^@endif build-$module-$bootstrap_suffix\$/d
10038 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
10039 done
10040 extrasub_host=
10041 for module in ${configdirs} ; do
10042 if test -z "${no_recursion}"; then
10043 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
10044 if test -f ${file}; then
10045 echo 1>&2 "*** removing ${file} to force reconfigure"
10046 rm -f ${file}
10048 done
10050 case ${module},${bootstrap_fixincludes} in
10051 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
10052 *) host_bootstrap_suffix=$bootstrap_suffix ;;
10053 esac
10054 extrasub_host="$extrasub_host
10055 /^@if $module\$/d
10056 /^@endif $module\$/d
10057 /^@unless $module\$/,/^@endunless $module\$/d
10058 /^@if $module-$host_bootstrap_suffix\$/d
10059 /^@endif $module-$host_bootstrap_suffix\$/d
10060 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
10061 done
10062 extrasub_target=
10063 for module in ${target_configdirs} ; do
10064 if test -z "${no_recursion}" \
10065 && test -f ${target_subdir}/${module}/Makefile; then
10066 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10067 rm -f ${target_subdir}/${module}/Makefile
10070 # We only bootstrap target libraries listed in bootstrap_target_libs.
10071 case $bootstrap_target_libs in
10072 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
10073 *) target_bootstrap_suffix=no-bootstrap ;;
10074 esac
10076 extrasub_target="$extrasub_target
10077 /^@if target-$module\$/d
10078 /^@endif target-$module\$/d
10079 /^@unless target-$module\$/,/^@endunless target-$module\$/d
10080 /^@if target-$module-$target_bootstrap_suffix\$/d
10081 /^@endif target-$module-$target_bootstrap_suffix\$/d
10082 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
10083 done
10085 # Do the final fixup along with target modules.
10086 extrasub_target="$extrasub_target
10087 /^@if /,/^@endif /d
10088 /^@unless /d
10089 /^@endunless /d"
10091 if test "$enable_pgo_build" != "no"; then
10092 extrasub_build="$extrasub_build
10093 /^@if pgo-build\$/d
10094 /^@endif pgo-build\$/d"
10097 # Create the serialization dependencies. This uses a temporary file.
10099 # Check whether --enable-serial-configure was given.
10100 if test "${enable_serial_configure+set}" = set; then :
10101 enableval=$enable_serial_configure;
10105 case ${enable_serial_configure} in
10106 yes)
10107 enable_serial_build_configure=yes
10108 enable_serial_host_configure=yes
10109 enable_serial_target_configure=yes
10111 esac
10113 # These force 'configure's to be done one at a time, to avoid problems
10114 # with contention over a shared config.cache.
10115 rm -f serdep.tmp
10116 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
10117 echo '# serdep.tmp' > serdep.tmp
10119 olditem=
10120 test "x${enable_serial_build_configure}" = xyes &&
10121 for item in ${build_configdirs} ; do
10122 case ${olditem} in
10123 "") ;;
10124 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
10125 esac
10126 olditem=${item}
10127 done
10128 olditem=
10129 test "x${enable_serial_host_configure}" = xyes &&
10130 for item in ${configdirs} ; do
10131 case ${olditem} in
10132 "") ;;
10133 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
10134 esac
10135 olditem=${item}
10136 done
10137 olditem=
10138 test "x${enable_serial_target_configure}" = xyes &&
10139 for item in ${target_configdirs} ; do
10140 case ${olditem} in
10141 "") ;;
10142 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
10143 esac
10144 olditem=${item}
10145 done
10146 serialization_dependencies=serdep.tmp
10149 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10150 # target, nonopt, and variable assignments. These are the ones we
10151 # might not want to pass down to subconfigures. The exception being
10152 # --cache-file=/dev/null, which is used to turn off the use of cache
10153 # files altogether, and which should be passed on to subconfigures.
10154 # Also strip program-prefix, program-suffix, and program-transform-name,
10155 # so that we can pass down a consistent program-transform-name.
10156 hbaseargs=
10157 bbaseargs=
10158 tbaseargs=
10159 keep_next=no
10160 skip_next=no
10161 eval "set -- $ac_configure_args"
10162 for ac_arg
10164 if test X"$skip_next" = X"yes"; then
10165 skip_next=no
10166 continue
10168 if test X"$keep_next" = X"yes"; then
10169 case $ac_arg in
10170 *\'*)
10171 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10172 esac
10173 hbaseargs="$hbaseargs '$ac_arg'"
10174 bbaseargs="$bbaseargs '$ac_arg'"
10175 tbaseargs="$tbaseargs '$ac_arg'"
10176 keep_next=no
10177 continue
10180 # Handle separated arguments. Based on the logic generated by
10181 # autoconf 2.59.
10182 case $ac_arg in
10183 *=* | --config-cache | -C | -disable-* | --disable-* \
10184 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10185 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10186 | -with-* | --with-* | -without-* | --without-* | --x)
10187 separate_arg=no
10190 separate_arg=yes
10193 separate_arg=no
10195 esac
10197 skip_targ=no
10198 skip_barg=no
10199 case $ac_arg in
10201 --with-* | --without-*)
10202 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10204 case $libopt in
10205 *[-_]include)
10206 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10208 *[-_]lib)
10209 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10211 *[-_]prefix)
10212 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
10214 *[-_]type)
10215 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
10218 lib=$libopt
10220 esac
10223 case $lib in
10224 mpc | mpfr | gmp | isl)
10225 # If we're processing --with-$lib, --with-$lib-include or
10226 # --with-$lib-lib, for one of the libs above, and target is
10227 # different from host, don't pass the current argument to any
10228 # target library's configure.
10229 if test x$is_cross_compiler = xyes; then
10230 skip_targ=yes
10233 libintl | libiconv)
10234 # We don't want libintl (and co.) in anything but the host arguments.
10235 skip_targ=yes
10236 skip_barg=yes
10238 esac
10240 esac
10242 case "$ac_arg" in
10243 --cache-file=/dev/null | \
10244 -cache-file=/dev/null )
10245 # Handled here to avoid the test to skip args below.
10246 hbaseargs="$hbaseargs '$ac_arg'"
10247 bbaseargs="$bbaseargs '$ac_arg'"
10248 tbaseargs="$tbaseargs '$ac_arg'"
10249 # Assert: $separate_arg should always be no.
10250 keep_next=$separate_arg
10252 --no*)
10253 continue
10255 --c* | \
10256 --sr* | \
10257 --ho* | \
10258 --bu* | \
10259 --t* | \
10260 --program-* | \
10261 -cache_file* | \
10262 -srcdir* | \
10263 -host* | \
10264 -build* | \
10265 -target* | \
10266 -program-prefix* | \
10267 -program-suffix* | \
10268 -program-transform-name* )
10269 skip_next=$separate_arg
10270 continue
10273 # An option. Add it.
10274 case $ac_arg in
10275 *\'*)
10276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10277 esac
10278 hbaseargs="$hbaseargs '$ac_arg'"
10279 if test X"$skip_barg" = Xno; then
10280 bbaseargs="$bbaseargs '$ac_arg'"
10282 if test X"$skip_targ" = Xno; then
10283 tbaseargs="$tbaseargs '$ac_arg'"
10285 keep_next=$separate_arg
10288 # Either a variable assignment, or a nonopt (triplet). Don't
10289 # pass it down; let the Makefile handle this.
10290 continue
10292 esac
10293 done
10294 # Remove the initial space we just introduced and, as these will be
10295 # expanded by make, quote '$'.
10296 hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10297 bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10299 # Add in --program-transform-name, after --program-prefix and
10300 # --program-suffix have been applied to it. Autoconf has already
10301 # doubled dollar signs and backslashes in program_transform_name; we want
10302 # the backslashes un-doubled, and then the entire thing wrapped in single
10303 # quotes, because this will be expanded first by make and then by the shell.
10304 # Also, because we want to override the logic in subdir configure scripts to
10305 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10306 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10307 ${program_transform_name}
10308 EOF_SED
10309 gcc_transform_name=`cat conftestsed.out`
10310 rm -f conftestsed.out
10311 hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
10312 bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
10313 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10314 if test "$silent" = yes; then
10315 bbaseargs="$bbaseargs --silent"
10316 hbaseargs="$hbaseargs --silent"
10317 tbaseargs="$tbaseargs --silent"
10320 bbaseargs="$bbaseargs --disable-option-checking"
10321 hbaseargs="$hbaseargs --disable-option-checking"
10322 tbaseargs="$tbaseargs --disable-option-checking"
10324 if test "$enable_year2038" = no; then
10325 bbaseargs="$bbaseargs --disable-year2038"
10326 hbaseargs="$hbaseargs --disable-year2038"
10327 tbaseargs="$tbaseargs --disable-year2038"
10330 # Record and document user additions to sub configure arguments.
10335 # For the build-side libraries, we just need to pretend we're native,
10336 # and not use the same cache file. Multilibs are neither needed nor
10337 # desired. We can't even use the same cache file for all build-side
10338 # libraries, as they're compiled differently; some with C, some with
10339 # C++ or with different feature-enabling options.
10340 build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
10342 # For host modules, accept cache file option, or specification as blank.
10343 case "${cache_file}" in
10344 "") # empty
10345 cache_file_option="" ;;
10346 /* | [A-Za-z]:[\\/]* ) # absolute path
10347 cache_file_option="--cache-file=${cache_file}" ;;
10348 *) # relative path
10349 cache_file_option="--cache-file=../${cache_file}" ;;
10350 esac
10352 # Host dirs don't like to share a cache file either, horribly enough.
10353 # This seems to be due to autoconf 2.5x stupidity.
10354 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
10356 target_configargs="$target_configargs ${tbaseargs}"
10358 # Passing a --with-cross-host argument lets the target libraries know
10359 # whether they are being built with a cross-compiler or being built
10360 # native. However, it would be better to use other mechanisms to make the
10361 # sorts of decisions they want to make on this basis. Please consider
10362 # this option to be deprecated. FIXME.
10363 if test x${is_cross_compiler} = xyes ; then
10364 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10367 # Special user-friendly check for native x86_64-linux build, if
10368 # multilib is not explicitly enabled.
10369 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10370 x86_64-*linux*:yes:$build:$build:)
10371 # Make sure we have a development environment that handles 32-bit
10372 dev64=no
10373 echo "int main () { return 0; }" > conftest.c
10374 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10375 if test $? = 0 ; then
10376 if test -s conftest || test -s conftest.exe ; then
10377 dev64=yes
10380 rm -f conftest*
10381 if test x${dev64} != xyes ; then
10382 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
10385 esac
10387 # Default to --enable-multilib.
10388 if test x${enable_multilib} = x ; then
10389 target_configargs="--enable-multilib ${target_configargs}"
10392 # Pass --with-newlib if appropriate. Note that target_configdirs has
10393 # changed from the earlier setting of with_newlib.
10394 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10395 target_configargs="--with-newlib ${target_configargs}"
10398 # Different target subdirs use different values of certain variables
10399 # (notably CXX). Worse, multilibs use *lots* of different values.
10400 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10401 # it doesn't automatically accept command-line overrides of them.
10402 # This means it's not safe for target subdirs to share a cache file,
10403 # which is disgusting, but there you have it. Hopefully this can be
10404 # fixed in future. It's still worthwhile to use a cache file for each
10405 # directory. I think.
10407 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10408 # We need to pass --target, as newer autoconf's requires consistency
10409 # for target_alias and gcc doesn't manage it consistently.
10410 target_configargs="--cache-file=./config.cache ${target_configargs}"
10412 FLAGS_FOR_TARGET=
10413 case " $target_configdirs " in
10414 *" newlib "*)
10415 case " $target_configargs " in
10416 *" --with-newlib "*)
10417 case "$target" in
10418 *-cygwin*)
10419 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10421 esac
10423 # If we're not building GCC, don't discard standard headers.
10424 if test -d ${srcdir}/gcc; then
10425 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10427 if test "${build}" != "${host}"; then
10428 # On Canadian crosses, CC_FOR_TARGET will have already been set
10429 # by `configure', so we won't have an opportunity to add -Bgcc/
10430 # to it. This is right: we don't want to search that directory
10431 # for binaries, but we want the header files in there, so add
10432 # them explicitly.
10433 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10435 # Someone might think of using the pre-installed headers on
10436 # Canadian crosses, in case the installed compiler is not fully
10437 # compatible with the compiler being built. In this case, it
10438 # would be better to flag an error than risking having
10439 # incompatible object files being constructed. We can't
10440 # guarantee that an error will be flagged, but let's hope the
10441 # compiler will do it, when presented with incompatible header
10442 # files.
10446 case "${target}-${is_cross_compiler}" in
10447 i[3456789]86-*-linux*-no)
10448 # Here host == target, so we don't need to build gcc,
10449 # so we don't want to discard standard headers.
10450 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10453 # If we're building newlib, use its generic headers last, but search
10454 # for any libc-related directories first (so make it the last -B
10455 # switch).
10456 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10458 # If we're building libgloss, find the startup file, simulator library
10459 # and linker script.
10460 case " $target_configdirs " in
10461 *" libgloss "*)
10462 # Look for startup file, simulator library and maybe linker script.
10463 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10464 # Look for libnosys.a in case the target needs it.
10465 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10466 # Most targets have the linker script in the source directory.
10467 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10469 esac
10471 esac
10473 esac
10475 esac
10477 case "$target" in
10478 x86_64-*mingw* | *-w64-mingw*)
10479 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10480 # however, use a symlink named 'mingw' in ${prefix} .
10481 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10483 *-mingw*)
10484 # MinGW can't be handled as Cygwin above since it does not use newlib.
10485 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'
10487 esac
10489 # Allow the user to override the flags for
10490 # our build compiler if desired.
10491 if test x"${build}" = x"${host}" ; then
10492 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10493 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10494 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10495 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10498 # On Canadian crosses, we'll be searching the right directories for
10499 # the previously-installed cross compiler, so don't bother to add
10500 # flags for directories within the install tree of the compiler
10501 # being built; programs in there won't even run.
10502 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10503 # Search for pre-installed headers if nothing else fits.
10504 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10507 if test "x${use_gnu_ld}" = x &&
10508 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10509 # Arrange for us to find uninstalled linker scripts.
10510 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10513 # Search for other target-specific linker scripts and such.
10514 case "${target}" in
10515 mep*)
10516 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10518 # The VxWorks support for shared libraries is getting in
10519 # incrementally. Make sure it doesn't get activated implicitly:
10520 *vxworks*)
10521 if test "${enable_shared-unset}" = unset ; then
10522 enable_shared=no
10523 # So the build of libraries knows ...
10524 target_configargs="${target_configargs} --disable-shared"
10525 # So gcc knows ...
10526 host_configargs="${host_configargs} --disable-shared"
10529 esac
10531 # Makefile fragments.
10532 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10534 eval fragval=\$$frag
10535 if test $fragval != /dev/null; then
10536 eval $frag=${srcdir}/$fragval
10538 done
10544 # Miscellanea: directories, flags, etc.
10553 # Build module lists & subconfigure args.
10557 # Host module lists & subconfigure args.
10562 # Target module lists & subconfigure args.
10566 # Build tools.
10587 # Generate default definitions for YACC, M4, LEX and other programs that run
10588 # on the build machine. These are used if the Makefile can't locate these
10589 # programs in objdir.
10590 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10592 for ac_prog in 'bison -y' byacc yacc
10594 # Extract the first word of "$ac_prog", so it can be a program name with args.
10595 set dummy $ac_prog; ac_word=$2
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597 $as_echo_n "checking for $ac_word... " >&6; }
10598 if ${ac_cv_prog_YACC+:} false; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 if test -n "$YACC"; then
10602 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10603 else
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in $PATH
10607 IFS=$as_save_IFS
10608 test -z "$as_dir" && as_dir=.
10609 for ac_exec_ext in '' $ac_executable_extensions; do
10610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10611 ac_cv_prog_YACC="$ac_prog"
10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10613 break 2
10615 done
10616 done
10617 IFS=$as_save_IFS
10621 YACC=$ac_cv_prog_YACC
10622 if test -n "$YACC"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10624 $as_echo "$YACC" >&6; }
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10631 test -n "$YACC" && break
10632 done
10633 test -n "$YACC" || YACC="$MISSING bison -y"
10635 case " $build_configdirs " in
10636 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10637 esac
10639 for ac_prog in bison
10641 # Extract the first word of "$ac_prog", so it can be a program name with args.
10642 set dummy $ac_prog; ac_word=$2
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644 $as_echo_n "checking for $ac_word... " >&6; }
10645 if ${ac_cv_prog_BISON+:} false; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 if test -n "$BISON"; then
10649 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10650 else
10651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652 for as_dir in $PATH
10654 IFS=$as_save_IFS
10655 test -z "$as_dir" && as_dir=.
10656 for ac_exec_ext in '' $ac_executable_extensions; do
10657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10658 ac_cv_prog_BISON="$ac_prog"
10659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 break 2
10662 done
10663 done
10664 IFS=$as_save_IFS
10668 BISON=$ac_cv_prog_BISON
10669 if test -n "$BISON"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10671 $as_echo "$BISON" >&6; }
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10678 test -n "$BISON" && break
10679 done
10680 test -n "$BISON" || BISON="$MISSING bison"
10682 case " $build_configdirs " in
10683 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10684 esac
10686 for ac_prog in gm4 gnum4 m4
10688 # Extract the first word of "$ac_prog", so it can be a program name with args.
10689 set dummy $ac_prog; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if ${ac_cv_prog_M4+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 if test -n "$M4"; then
10696 ac_cv_prog_M4="$M4" # Let the user override the test.
10697 else
10698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $PATH
10701 IFS=$as_save_IFS
10702 test -z "$as_dir" && as_dir=.
10703 for ac_exec_ext in '' $ac_executable_extensions; do
10704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10705 ac_cv_prog_M4="$ac_prog"
10706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10707 break 2
10709 done
10710 done
10711 IFS=$as_save_IFS
10715 M4=$ac_cv_prog_M4
10716 if test -n "$M4"; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10718 $as_echo "$M4" >&6; }
10719 else
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 $as_echo "no" >&6; }
10725 test -n "$M4" && break
10726 done
10727 test -n "$M4" || M4="$MISSING m4"
10729 case " $build_configdirs " in
10730 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10731 esac
10733 for ac_prog in flex lex
10735 # Extract the first word of "$ac_prog", so it can be a program name with args.
10736 set dummy $ac_prog; ac_word=$2
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10738 $as_echo_n "checking for $ac_word... " >&6; }
10739 if ${ac_cv_prog_LEX+:} false; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 if test -n "$LEX"; then
10743 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10744 else
10745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746 for as_dir in $PATH
10748 IFS=$as_save_IFS
10749 test -z "$as_dir" && as_dir=.
10750 for ac_exec_ext in '' $ac_executable_extensions; do
10751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10752 ac_cv_prog_LEX="$ac_prog"
10753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10754 break 2
10756 done
10757 done
10758 IFS=$as_save_IFS
10762 LEX=$ac_cv_prog_LEX
10763 if test -n "$LEX"; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10765 $as_echo "$LEX" >&6; }
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10772 test -n "$LEX" && break
10773 done
10774 test -n "$LEX" || LEX="$MISSING flex"
10776 case " $build_configdirs " in
10777 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10778 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10779 esac
10781 for ac_prog in flex
10783 # Extract the first word of "$ac_prog", so it can be a program name with args.
10784 set dummy $ac_prog; ac_word=$2
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 $as_echo_n "checking for $ac_word... " >&6; }
10787 if ${ac_cv_prog_FLEX+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 if test -n "$FLEX"; then
10791 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10792 else
10793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794 for as_dir in $PATH
10796 IFS=$as_save_IFS
10797 test -z "$as_dir" && as_dir=.
10798 for ac_exec_ext in '' $ac_executable_extensions; do
10799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10800 ac_cv_prog_FLEX="$ac_prog"
10801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10802 break 2
10804 done
10805 done
10806 IFS=$as_save_IFS
10810 FLEX=$ac_cv_prog_FLEX
10811 if test -n "$FLEX"; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10813 $as_echo "$FLEX" >&6; }
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816 $as_echo "no" >&6; }
10820 test -n "$FLEX" && break
10821 done
10822 test -n "$FLEX" || FLEX="$MISSING flex"
10824 case " $build_configdirs " in
10825 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10826 esac
10828 for ac_prog in makeinfo
10830 # Extract the first word of "$ac_prog", so it can be a program name with args.
10831 set dummy $ac_prog; ac_word=$2
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if ${ac_cv_prog_MAKEINFO+:} false; then :
10835 $as_echo_n "(cached) " >&6
10836 else
10837 if test -n "$MAKEINFO"; then
10838 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10839 else
10840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841 for as_dir in $PATH
10843 IFS=$as_save_IFS
10844 test -z "$as_dir" && as_dir=.
10845 for ac_exec_ext in '' $ac_executable_extensions; do
10846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10847 ac_cv_prog_MAKEINFO="$ac_prog"
10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10849 break 2
10851 done
10852 done
10853 IFS=$as_save_IFS
10857 MAKEINFO=$ac_cv_prog_MAKEINFO
10858 if test -n "$MAKEINFO"; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10860 $as_echo "$MAKEINFO" >&6; }
10861 else
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 $as_echo "no" >&6; }
10867 test -n "$MAKEINFO" && break
10868 done
10869 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10871 case " $build_configdirs " in
10872 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10875 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10876 # higher, else we use the "missing" dummy.
10877 if ${MAKEINFO} --version \
10878 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10880 else
10881 MAKEINFO="$MISSING makeinfo"
10885 esac
10887 # FIXME: expect and dejagnu may become build tools?
10889 for ac_prog in expect
10891 # Extract the first word of "$ac_prog", so it can be a program name with args.
10892 set dummy $ac_prog; ac_word=$2
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10894 $as_echo_n "checking for $ac_word... " >&6; }
10895 if ${ac_cv_prog_EXPECT+:} false; then :
10896 $as_echo_n "(cached) " >&6
10897 else
10898 if test -n "$EXPECT"; then
10899 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10900 else
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
10906 for ac_exec_ext in '' $ac_executable_extensions; do
10907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10908 ac_cv_prog_EXPECT="$ac_prog"
10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10910 break 2
10912 done
10913 done
10914 IFS=$as_save_IFS
10918 EXPECT=$ac_cv_prog_EXPECT
10919 if test -n "$EXPECT"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10921 $as_echo "$EXPECT" >&6; }
10922 else
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924 $as_echo "no" >&6; }
10928 test -n "$EXPECT" && break
10929 done
10930 test -n "$EXPECT" || EXPECT="expect"
10932 case " $configdirs " in
10933 *" expect "*)
10934 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10936 esac
10938 for ac_prog in runtest
10940 # Extract the first word of "$ac_prog", so it can be a program name with args.
10941 set dummy $ac_prog; ac_word=$2
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943 $as_echo_n "checking for $ac_word... " >&6; }
10944 if ${ac_cv_prog_RUNTEST+:} false; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 if test -n "$RUNTEST"; then
10948 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10949 else
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_prog_RUNTEST="$ac_prog"
10958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10961 done
10962 done
10963 IFS=$as_save_IFS
10967 RUNTEST=$ac_cv_prog_RUNTEST
10968 if test -n "$RUNTEST"; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10970 $as_echo "$RUNTEST" >&6; }
10971 else
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; }
10977 test -n "$RUNTEST" && break
10978 done
10979 test -n "$RUNTEST" || RUNTEST="runtest"
10981 case " $configdirs " in
10982 *" dejagnu "*)
10983 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10985 esac
10988 # Host tools.
10989 ncn_tool_prefix=
10990 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10991 ncn_target_tool_prefix=
10992 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10996 if test -n "$AR"; then
10997 ac_cv_prog_AR=$AR
10998 elif test -n "$ac_cv_prog_AR"; then
10999 AR=$ac_cv_prog_AR
11002 if test -n "$ac_cv_prog_AR"; then
11003 for ncn_progname in ar; do
11004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11005 set dummy ${ncn_progname}; ac_word=$2
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007 $as_echo_n "checking for $ac_word... " >&6; }
11008 if ${ac_cv_prog_AR+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 if test -n "$AR"; then
11012 ac_cv_prog_AR="$AR" # Let the user override the test.
11013 else
11014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 for as_dir in $PATH
11017 IFS=$as_save_IFS
11018 test -z "$as_dir" && as_dir=.
11019 for ac_exec_ext in '' $ac_executable_extensions; do
11020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11021 ac_cv_prog_AR="${ncn_progname}"
11022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11023 break 2
11025 done
11026 done
11027 IFS=$as_save_IFS
11031 AR=$ac_cv_prog_AR
11032 if test -n "$AR"; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11034 $as_echo "$AR" >&6; }
11035 else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11041 done
11044 for ncn_progname in ar; do
11045 if test -n "$ncn_tool_prefix"; then
11046 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11047 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049 $as_echo_n "checking for $ac_word... " >&6; }
11050 if ${ac_cv_prog_AR+:} false; then :
11051 $as_echo_n "(cached) " >&6
11052 else
11053 if test -n "$AR"; then
11054 ac_cv_prog_AR="$AR" # Let the user override the test.
11055 else
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11063 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11067 done
11068 done
11069 IFS=$as_save_IFS
11073 AR=$ac_cv_prog_AR
11074 if test -n "$AR"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11076 $as_echo "$AR" >&6; }
11077 else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11084 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11086 set dummy ${ncn_progname}; ac_word=$2
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088 $as_echo_n "checking for $ac_word... " >&6; }
11089 if ${ac_cv_prog_AR+:} false; then :
11090 $as_echo_n "(cached) " >&6
11091 else
11092 if test -n "$AR"; then
11093 ac_cv_prog_AR="$AR" # Let the user override the test.
11094 else
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102 ac_cv_prog_AR="${ncn_progname}"
11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11106 done
11107 done
11108 IFS=$as_save_IFS
11112 AR=$ac_cv_prog_AR
11113 if test -n "$AR"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11115 $as_echo "$AR" >&6; }
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 $as_echo "no" >&6; }
11123 test -n "$ac_cv_prog_AR" && break
11124 done
11126 if test -z "$ac_cv_prog_AR" ; then
11127 set dummy ar
11128 if test $build = $host ; then
11129 AR="$2"
11130 else
11131 AR="${ncn_tool_prefix}$2"
11137 if test -n "$AS"; then
11138 ac_cv_prog_AS=$AS
11139 elif test -n "$ac_cv_prog_AS"; then
11140 AS=$ac_cv_prog_AS
11143 if test -n "$ac_cv_prog_AS"; then
11144 for ncn_progname in as; do
11145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11146 set dummy ${ncn_progname}; ac_word=$2
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148 $as_echo_n "checking for $ac_word... " >&6; }
11149 if ${ac_cv_prog_AS+:} false; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 if test -n "$AS"; then
11153 ac_cv_prog_AS="$AS" # Let the user override the test.
11154 else
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11158 IFS=$as_save_IFS
11159 test -z "$as_dir" && as_dir=.
11160 for ac_exec_ext in '' $ac_executable_extensions; do
11161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11162 ac_cv_prog_AS="${ncn_progname}"
11163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11164 break 2
11166 done
11167 done
11168 IFS=$as_save_IFS
11172 AS=$ac_cv_prog_AS
11173 if test -n "$AS"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11175 $as_echo "$AS" >&6; }
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11182 done
11185 for ncn_progname in as; do
11186 if test -n "$ncn_tool_prefix"; then
11187 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11188 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190 $as_echo_n "checking for $ac_word... " >&6; }
11191 if ${ac_cv_prog_AS+:} false; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11194 if test -n "$AS"; then
11195 ac_cv_prog_AS="$AS" # Let the user override the test.
11196 else
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11208 done
11209 done
11210 IFS=$as_save_IFS
11214 AS=$ac_cv_prog_AS
11215 if test -n "$AS"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11217 $as_echo "$AS" >&6; }
11218 else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220 $as_echo "no" >&6; }
11225 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11227 set dummy ${ncn_progname}; ac_word=$2
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11229 $as_echo_n "checking for $ac_word... " >&6; }
11230 if ${ac_cv_prog_AS+:} false; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 if test -n "$AS"; then
11234 ac_cv_prog_AS="$AS" # Let the user override the test.
11235 else
11236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237 for as_dir in $PATH
11239 IFS=$as_save_IFS
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11243 ac_cv_prog_AS="${ncn_progname}"
11244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 break 2
11247 done
11248 done
11249 IFS=$as_save_IFS
11253 AS=$ac_cv_prog_AS
11254 if test -n "$AS"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11256 $as_echo "$AS" >&6; }
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259 $as_echo "no" >&6; }
11264 test -n "$ac_cv_prog_AS" && break
11265 done
11267 if test -z "$ac_cv_prog_AS" ; then
11268 set dummy as
11269 if test $build = $host ; then
11270 AS="$2"
11271 else
11272 AS="${ncn_tool_prefix}$2"
11278 if test -n "$DLLTOOL"; then
11279 ac_cv_prog_DLLTOOL=$DLLTOOL
11280 elif test -n "$ac_cv_prog_DLLTOOL"; then
11281 DLLTOOL=$ac_cv_prog_DLLTOOL
11284 if test -n "$ac_cv_prog_DLLTOOL"; then
11285 for ncn_progname in dlltool; do
11286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11287 set dummy ${ncn_progname}; ac_word=$2
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289 $as_echo_n "checking for $ac_word... " >&6; }
11290 if ${ac_cv_prog_DLLTOOL+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 if test -n "$DLLTOOL"; then
11294 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11295 else
11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297 for as_dir in $PATH
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303 ac_cv_prog_DLLTOOL="${ncn_progname}"
11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 break 2
11307 done
11308 done
11309 IFS=$as_save_IFS
11313 DLLTOOL=$ac_cv_prog_DLLTOOL
11314 if test -n "$DLLTOOL"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11316 $as_echo "$DLLTOOL" >&6; }
11317 else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11323 done
11326 for ncn_progname in dlltool; do
11327 if test -n "$ncn_tool_prefix"; then
11328 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11329 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11331 $as_echo_n "checking for $ac_word... " >&6; }
11332 if ${ac_cv_prog_DLLTOOL+:} false; then :
11333 $as_echo_n "(cached) " >&6
11334 else
11335 if test -n "$DLLTOOL"; then
11336 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11337 else
11338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339 for as_dir in $PATH
11341 IFS=$as_save_IFS
11342 test -z "$as_dir" && as_dir=.
11343 for ac_exec_ext in '' $ac_executable_extensions; do
11344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11345 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11347 break 2
11349 done
11350 done
11351 IFS=$as_save_IFS
11355 DLLTOOL=$ac_cv_prog_DLLTOOL
11356 if test -n "$DLLTOOL"; then
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11358 $as_echo "$DLLTOOL" >&6; }
11359 else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11366 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11368 set dummy ${ncn_progname}; ac_word=$2
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11370 $as_echo_n "checking for $ac_word... " >&6; }
11371 if ${ac_cv_prog_DLLTOOL+:} false; then :
11372 $as_echo_n "(cached) " >&6
11373 else
11374 if test -n "$DLLTOOL"; then
11375 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11376 else
11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11380 IFS=$as_save_IFS
11381 test -z "$as_dir" && as_dir=.
11382 for ac_exec_ext in '' $ac_executable_extensions; do
11383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11384 ac_cv_prog_DLLTOOL="${ncn_progname}"
11385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11386 break 2
11388 done
11389 done
11390 IFS=$as_save_IFS
11394 DLLTOOL=$ac_cv_prog_DLLTOOL
11395 if test -n "$DLLTOOL"; then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11397 $as_echo "$DLLTOOL" >&6; }
11398 else
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11405 test -n "$ac_cv_prog_DLLTOOL" && break
11406 done
11408 if test -z "$ac_cv_prog_DLLTOOL" ; then
11409 set dummy dlltool
11410 if test $build = $host ; then
11411 DLLTOOL="$2"
11412 else
11413 DLLTOOL="${ncn_tool_prefix}$2"
11419 if test -n "$DSYMUTIL"; then
11420 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11421 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11422 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11425 if test -n "$ac_cv_prog_DSYMUTIL"; then
11426 for ncn_progname in dsymutil; do
11427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11428 set dummy ${ncn_progname}; ac_word=$2
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11430 $as_echo_n "checking for $ac_word... " >&6; }
11431 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11432 $as_echo_n "(cached) " >&6
11433 else
11434 if test -n "$DSYMUTIL"; then
11435 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11436 else
11437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438 for as_dir in $PATH
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11444 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 break 2
11448 done
11449 done
11450 IFS=$as_save_IFS
11454 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11455 if test -n "$DSYMUTIL"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11457 $as_echo "$DSYMUTIL" >&6; }
11458 else
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 $as_echo "no" >&6; }
11464 done
11467 for ncn_progname in dsymutil; do
11468 if test -n "$ncn_tool_prefix"; then
11469 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11470 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472 $as_echo_n "checking for $ac_word... " >&6; }
11473 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 if test -n "$DSYMUTIL"; then
11477 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11478 else
11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480 for as_dir in $PATH
11482 IFS=$as_save_IFS
11483 test -z "$as_dir" && as_dir=.
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11486 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11488 break 2
11490 done
11491 done
11492 IFS=$as_save_IFS
11496 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11497 if test -n "$DSYMUTIL"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11499 $as_echo "$DSYMUTIL" >&6; }
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11507 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11509 set dummy ${ncn_progname}; ac_word=$2
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511 $as_echo_n "checking for $ac_word... " >&6; }
11512 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 if test -n "$DSYMUTIL"; then
11516 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11517 else
11518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11519 for as_dir in $PATH
11521 IFS=$as_save_IFS
11522 test -z "$as_dir" && as_dir=.
11523 for ac_exec_ext in '' $ac_executable_extensions; do
11524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11525 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11527 break 2
11529 done
11530 done
11531 IFS=$as_save_IFS
11535 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11536 if test -n "$DSYMUTIL"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11538 $as_echo "$DSYMUTIL" >&6; }
11539 else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11546 test -n "$ac_cv_prog_DSYMUTIL" && break
11547 done
11549 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11550 set dummy dsymutil
11551 if test $build = $host ; then
11552 DSYMUTIL="$2"
11553 else
11554 DSYMUTIL="${ncn_tool_prefix}$2"
11560 if test -n "$LD"; then
11561 ac_cv_prog_LD=$LD
11562 elif test -n "$ac_cv_prog_LD"; then
11563 LD=$ac_cv_prog_LD
11566 if test -n "$ac_cv_prog_LD"; then
11567 for ncn_progname in ld; do
11568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11569 set dummy ${ncn_progname}; ac_word=$2
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571 $as_echo_n "checking for $ac_word... " >&6; }
11572 if ${ac_cv_prog_LD+:} false; then :
11573 $as_echo_n "(cached) " >&6
11574 else
11575 if test -n "$LD"; then
11576 ac_cv_prog_LD="$LD" # Let the user override the test.
11577 else
11578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH
11581 IFS=$as_save_IFS
11582 test -z "$as_dir" && as_dir=.
11583 for ac_exec_ext in '' $ac_executable_extensions; do
11584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11585 ac_cv_prog_LD="${ncn_progname}"
11586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11587 break 2
11589 done
11590 done
11591 IFS=$as_save_IFS
11595 LD=$ac_cv_prog_LD
11596 if test -n "$LD"; then
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11598 $as_echo "$LD" >&6; }
11599 else
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 $as_echo "no" >&6; }
11605 done
11608 for ncn_progname in ld; do
11609 if test -n "$ncn_tool_prefix"; then
11610 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11611 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613 $as_echo_n "checking for $ac_word... " >&6; }
11614 if ${ac_cv_prog_LD+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 if test -n "$LD"; then
11618 ac_cv_prog_LD="$LD" # Let the user override the test.
11619 else
11620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11621 for as_dir in $PATH
11623 IFS=$as_save_IFS
11624 test -z "$as_dir" && as_dir=.
11625 for ac_exec_ext in '' $ac_executable_extensions; do
11626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11627 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11629 break 2
11631 done
11632 done
11633 IFS=$as_save_IFS
11637 LD=$ac_cv_prog_LD
11638 if test -n "$LD"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11640 $as_echo "$LD" >&6; }
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11648 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11650 set dummy ${ncn_progname}; ac_word=$2
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652 $as_echo_n "checking for $ac_word... " >&6; }
11653 if ${ac_cv_prog_LD+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 if test -n "$LD"; then
11657 ac_cv_prog_LD="$LD" # Let the user override the test.
11658 else
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_LD="${ncn_progname}"
11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11670 done
11671 done
11672 IFS=$as_save_IFS
11676 LD=$ac_cv_prog_LD
11677 if test -n "$LD"; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11679 $as_echo "$LD" >&6; }
11680 else
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 $as_echo "no" >&6; }
11687 test -n "$ac_cv_prog_LD" && break
11688 done
11690 if test -z "$ac_cv_prog_LD" ; then
11691 set dummy ld
11692 if test $build = $host ; then
11693 LD="$2"
11694 else
11695 LD="${ncn_tool_prefix}$2"
11701 if test -n "$LIPO"; then
11702 ac_cv_prog_LIPO=$LIPO
11703 elif test -n "$ac_cv_prog_LIPO"; then
11704 LIPO=$ac_cv_prog_LIPO
11707 if test -n "$ac_cv_prog_LIPO"; then
11708 for ncn_progname in lipo; do
11709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11710 set dummy ${ncn_progname}; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if ${ac_cv_prog_LIPO+:} false; then :
11714 $as_echo_n "(cached) " >&6
11715 else
11716 if test -n "$LIPO"; then
11717 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11718 else
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726 ac_cv_prog_LIPO="${ncn_progname}"
11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 break 2
11730 done
11731 done
11732 IFS=$as_save_IFS
11736 LIPO=$ac_cv_prog_LIPO
11737 if test -n "$LIPO"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11739 $as_echo "$LIPO" >&6; }
11740 else
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11746 done
11749 for ncn_progname in lipo; do
11750 if test -n "$ncn_tool_prefix"; then
11751 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11752 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754 $as_echo_n "checking for $ac_word... " >&6; }
11755 if ${ac_cv_prog_LIPO+:} false; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 if test -n "$LIPO"; then
11759 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11760 else
11761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in $PATH
11764 IFS=$as_save_IFS
11765 test -z "$as_dir" && as_dir=.
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11768 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 break 2
11772 done
11773 done
11774 IFS=$as_save_IFS
11778 LIPO=$ac_cv_prog_LIPO
11779 if test -n "$LIPO"; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11781 $as_echo "$LIPO" >&6; }
11782 else
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11789 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11791 set dummy ${ncn_progname}; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if ${ac_cv_prog_LIPO+:} false; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 if test -n "$LIPO"; then
11798 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11799 else
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_prog_LIPO="${ncn_progname}"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11811 done
11812 done
11813 IFS=$as_save_IFS
11817 LIPO=$ac_cv_prog_LIPO
11818 if test -n "$LIPO"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11820 $as_echo "$LIPO" >&6; }
11821 else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11828 test -n "$ac_cv_prog_LIPO" && break
11829 done
11831 if test -z "$ac_cv_prog_LIPO" ; then
11832 set dummy lipo
11833 if test $build = $host ; then
11834 LIPO="$2"
11835 else
11836 LIPO="${ncn_tool_prefix}$2"
11842 if test -n "$NM"; then
11843 ac_cv_prog_NM=$NM
11844 elif test -n "$ac_cv_prog_NM"; then
11845 NM=$ac_cv_prog_NM
11848 if test -n "$ac_cv_prog_NM"; then
11849 for ncn_progname in nm; do
11850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11851 set dummy ${ncn_progname}; ac_word=$2
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853 $as_echo_n "checking for $ac_word... " >&6; }
11854 if ${ac_cv_prog_NM+:} false; then :
11855 $as_echo_n "(cached) " >&6
11856 else
11857 if test -n "$NM"; then
11858 ac_cv_prog_NM="$NM" # Let the user override the test.
11859 else
11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861 for as_dir in $PATH
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
11865 for ac_exec_ext in '' $ac_executable_extensions; do
11866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11867 ac_cv_prog_NM="${ncn_progname}"
11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 break 2
11871 done
11872 done
11873 IFS=$as_save_IFS
11877 NM=$ac_cv_prog_NM
11878 if test -n "$NM"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11880 $as_echo "$NM" >&6; }
11881 else
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11887 done
11890 for ncn_progname in nm; do
11891 if test -n "$ncn_tool_prefix"; then
11892 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11893 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895 $as_echo_n "checking for $ac_word... " >&6; }
11896 if ${ac_cv_prog_NM+:} false; then :
11897 $as_echo_n "(cached) " >&6
11898 else
11899 if test -n "$NM"; then
11900 ac_cv_prog_NM="$NM" # Let the user override the test.
11901 else
11902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903 for as_dir in $PATH
11905 IFS=$as_save_IFS
11906 test -z "$as_dir" && as_dir=.
11907 for ac_exec_ext in '' $ac_executable_extensions; do
11908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11909 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11911 break 2
11913 done
11914 done
11915 IFS=$as_save_IFS
11919 NM=$ac_cv_prog_NM
11920 if test -n "$NM"; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11922 $as_echo "$NM" >&6; }
11923 else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11930 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11932 set dummy ${ncn_progname}; ac_word=$2
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11934 $as_echo_n "checking for $ac_word... " >&6; }
11935 if ${ac_cv_prog_NM+:} false; then :
11936 $as_echo_n "(cached) " >&6
11937 else
11938 if test -n "$NM"; then
11939 ac_cv_prog_NM="$NM" # Let the user override the test.
11940 else
11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942 for as_dir in $PATH
11944 IFS=$as_save_IFS
11945 test -z "$as_dir" && as_dir=.
11946 for ac_exec_ext in '' $ac_executable_extensions; do
11947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11948 ac_cv_prog_NM="${ncn_progname}"
11949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11950 break 2
11952 done
11953 done
11954 IFS=$as_save_IFS
11958 NM=$ac_cv_prog_NM
11959 if test -n "$NM"; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11961 $as_echo "$NM" >&6; }
11962 else
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11969 test -n "$ac_cv_prog_NM" && break
11970 done
11972 if test -z "$ac_cv_prog_NM" ; then
11973 set dummy nm
11974 if test $build = $host ; then
11975 NM="$2"
11976 else
11977 NM="${ncn_tool_prefix}$2"
11983 if test -n "$RANLIB"; then
11984 ac_cv_prog_RANLIB=$RANLIB
11985 elif test -n "$ac_cv_prog_RANLIB"; then
11986 RANLIB=$ac_cv_prog_RANLIB
11989 if test -n "$ac_cv_prog_RANLIB"; then
11990 for ncn_progname in ranlib; do
11991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11992 set dummy ${ncn_progname}; ac_word=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if ${ac_cv_prog_RANLIB+:} false; then :
11996 $as_echo_n "(cached) " >&6
11997 else
11998 if test -n "$RANLIB"; then
11999 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12000 else
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $PATH
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12008 ac_cv_prog_RANLIB="${ncn_progname}"
12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010 break 2
12012 done
12013 done
12014 IFS=$as_save_IFS
12018 RANLIB=$ac_cv_prog_RANLIB
12019 if test -n "$RANLIB"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12021 $as_echo "$RANLIB" >&6; }
12022 else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12028 done
12031 for ncn_progname in ranlib; do
12032 if test -n "$ncn_tool_prefix"; then
12033 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12034 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036 $as_echo_n "checking for $ac_word... " >&6; }
12037 if ${ac_cv_prog_RANLIB+:} false; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 if test -n "$RANLIB"; then
12041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12042 else
12043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12046 IFS=$as_save_IFS
12047 test -z "$as_dir" && as_dir=.
12048 for ac_exec_ext in '' $ac_executable_extensions; do
12049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12050 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
12051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052 break 2
12054 done
12055 done
12056 IFS=$as_save_IFS
12060 RANLIB=$ac_cv_prog_RANLIB
12061 if test -n "$RANLIB"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12063 $as_echo "$RANLIB" >&6; }
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12071 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12073 set dummy ${ncn_progname}; ac_word=$2
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075 $as_echo_n "checking for $ac_word... " >&6; }
12076 if ${ac_cv_prog_RANLIB+:} false; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 if test -n "$RANLIB"; then
12080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12081 else
12082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083 for as_dir in $PATH
12085 IFS=$as_save_IFS
12086 test -z "$as_dir" && as_dir=.
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12089 ac_cv_prog_RANLIB="${ncn_progname}"
12090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12091 break 2
12093 done
12094 done
12095 IFS=$as_save_IFS
12099 RANLIB=$ac_cv_prog_RANLIB
12100 if test -n "$RANLIB"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12102 $as_echo "$RANLIB" >&6; }
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12110 test -n "$ac_cv_prog_RANLIB" && break
12111 done
12113 if test -z "$ac_cv_prog_RANLIB" ; then
12114 RANLIB="true"
12119 if test -n "$STRIP"; then
12120 ac_cv_prog_STRIP=$STRIP
12121 elif test -n "$ac_cv_prog_STRIP"; then
12122 STRIP=$ac_cv_prog_STRIP
12125 if test -n "$ac_cv_prog_STRIP"; then
12126 for ncn_progname in strip; do
12127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12128 set dummy ${ncn_progname}; ac_word=$2
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130 $as_echo_n "checking for $ac_word... " >&6; }
12131 if ${ac_cv_prog_STRIP+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 if test -n "$STRIP"; then
12135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12136 else
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144 ac_cv_prog_STRIP="${ncn_progname}"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146 break 2
12148 done
12149 done
12150 IFS=$as_save_IFS
12154 STRIP=$ac_cv_prog_STRIP
12155 if test -n "$STRIP"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12157 $as_echo "$STRIP" >&6; }
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12164 done
12167 for ncn_progname in strip; do
12168 if test -n "$ncn_tool_prefix"; then
12169 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12170 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172 $as_echo_n "checking for $ac_word... " >&6; }
12173 if ${ac_cv_prog_STRIP+:} false; then :
12174 $as_echo_n "(cached) " >&6
12175 else
12176 if test -n "$STRIP"; then
12177 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12178 else
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12182 IFS=$as_save_IFS
12183 test -z "$as_dir" && as_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12186 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12188 break 2
12190 done
12191 done
12192 IFS=$as_save_IFS
12196 STRIP=$ac_cv_prog_STRIP
12197 if test -n "$STRIP"; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12199 $as_echo "$STRIP" >&6; }
12200 else
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12207 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12209 set dummy ${ncn_progname}; ac_word=$2
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12211 $as_echo_n "checking for $ac_word... " >&6; }
12212 if ${ac_cv_prog_STRIP+:} false; then :
12213 $as_echo_n "(cached) " >&6
12214 else
12215 if test -n "$STRIP"; then
12216 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12217 else
12218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219 for as_dir in $PATH
12221 IFS=$as_save_IFS
12222 test -z "$as_dir" && as_dir=.
12223 for ac_exec_ext in '' $ac_executable_extensions; do
12224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12225 ac_cv_prog_STRIP="${ncn_progname}"
12226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12227 break 2
12229 done
12230 done
12231 IFS=$as_save_IFS
12235 STRIP=$ac_cv_prog_STRIP
12236 if test -n "$STRIP"; then
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12238 $as_echo "$STRIP" >&6; }
12239 else
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; }
12246 test -n "$ac_cv_prog_STRIP" && break
12247 done
12249 if test -z "$ac_cv_prog_STRIP" ; then
12250 STRIP="true"
12255 if test -n "$WINDRES"; then
12256 ac_cv_prog_WINDRES=$WINDRES
12257 elif test -n "$ac_cv_prog_WINDRES"; then
12258 WINDRES=$ac_cv_prog_WINDRES
12261 if test -n "$ac_cv_prog_WINDRES"; then
12262 for ncn_progname in windres; do
12263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12264 set dummy ${ncn_progname}; ac_word=$2
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266 $as_echo_n "checking for $ac_word... " >&6; }
12267 if ${ac_cv_prog_WINDRES+:} false; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270 if test -n "$WINDRES"; then
12271 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12272 else
12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in $PATH
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
12278 for ac_exec_ext in '' $ac_executable_extensions; do
12279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12280 ac_cv_prog_WINDRES="${ncn_progname}"
12281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 break 2
12284 done
12285 done
12286 IFS=$as_save_IFS
12290 WINDRES=$ac_cv_prog_WINDRES
12291 if test -n "$WINDRES"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12293 $as_echo "$WINDRES" >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12300 done
12303 for ncn_progname in windres; do
12304 if test -n "$ncn_tool_prefix"; then
12305 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12306 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if ${ac_cv_prog_WINDRES+:} false; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 if test -n "$WINDRES"; then
12313 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12314 else
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12322 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 break 2
12326 done
12327 done
12328 IFS=$as_save_IFS
12332 WINDRES=$ac_cv_prog_WINDRES
12333 if test -n "$WINDRES"; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12335 $as_echo "$WINDRES" >&6; }
12336 else
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12343 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12345 set dummy ${ncn_progname}; ac_word=$2
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347 $as_echo_n "checking for $ac_word... " >&6; }
12348 if ${ac_cv_prog_WINDRES+:} false; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 if test -n "$WINDRES"; then
12352 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12353 else
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12361 ac_cv_prog_WINDRES="${ncn_progname}"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12365 done
12366 done
12367 IFS=$as_save_IFS
12371 WINDRES=$ac_cv_prog_WINDRES
12372 if test -n "$WINDRES"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12374 $as_echo "$WINDRES" >&6; }
12375 else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12382 test -n "$ac_cv_prog_WINDRES" && break
12383 done
12385 if test -z "$ac_cv_prog_WINDRES" ; then
12386 set dummy windres
12387 if test $build = $host ; then
12388 WINDRES="$2"
12389 else
12390 WINDRES="${ncn_tool_prefix}$2"
12396 if test -n "$WINDMC"; then
12397 ac_cv_prog_WINDMC=$WINDMC
12398 elif test -n "$ac_cv_prog_WINDMC"; then
12399 WINDMC=$ac_cv_prog_WINDMC
12402 if test -n "$ac_cv_prog_WINDMC"; then
12403 for ncn_progname in windmc; do
12404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12405 set dummy ${ncn_progname}; ac_word=$2
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407 $as_echo_n "checking for $ac_word... " >&6; }
12408 if ${ac_cv_prog_WINDMC+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 if test -n "$WINDMC"; then
12412 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12413 else
12414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415 for as_dir in $PATH
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
12419 for ac_exec_ext in '' $ac_executable_extensions; do
12420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12421 ac_cv_prog_WINDMC="${ncn_progname}"
12422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 break 2
12425 done
12426 done
12427 IFS=$as_save_IFS
12431 WINDMC=$ac_cv_prog_WINDMC
12432 if test -n "$WINDMC"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12434 $as_echo "$WINDMC" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12441 done
12444 for ncn_progname in windmc; do
12445 if test -n "$ncn_tool_prefix"; then
12446 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12447 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12449 $as_echo_n "checking for $ac_word... " >&6; }
12450 if ${ac_cv_prog_WINDMC+:} false; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453 if test -n "$WINDMC"; then
12454 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12455 else
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12459 IFS=$as_save_IFS
12460 test -z "$as_dir" && as_dir=.
12461 for ac_exec_ext in '' $ac_executable_extensions; do
12462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12463 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465 break 2
12467 done
12468 done
12469 IFS=$as_save_IFS
12473 WINDMC=$ac_cv_prog_WINDMC
12474 if test -n "$WINDMC"; then
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12476 $as_echo "$WINDMC" >&6; }
12477 else
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12484 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12486 set dummy ${ncn_progname}; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_prog_WINDMC+:} false; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 if test -n "$WINDMC"; then
12493 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_WINDMC="${ncn_progname}"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504 break 2
12506 done
12507 done
12508 IFS=$as_save_IFS
12512 WINDMC=$ac_cv_prog_WINDMC
12513 if test -n "$WINDMC"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12515 $as_echo "$WINDMC" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12523 test -n "$ac_cv_prog_WINDMC" && break
12524 done
12526 if test -z "$ac_cv_prog_WINDMC" ; then
12527 set dummy windmc
12528 if test $build = $host ; then
12529 WINDMC="$2"
12530 else
12531 WINDMC="${ncn_tool_prefix}$2"
12537 if test -n "$OBJCOPY"; then
12538 ac_cv_prog_OBJCOPY=$OBJCOPY
12539 elif test -n "$ac_cv_prog_OBJCOPY"; then
12540 OBJCOPY=$ac_cv_prog_OBJCOPY
12543 if test -n "$ac_cv_prog_OBJCOPY"; then
12544 for ncn_progname in objcopy; do
12545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12546 set dummy ${ncn_progname}; ac_word=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if ${ac_cv_prog_OBJCOPY+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 if test -n "$OBJCOPY"; then
12553 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12554 else
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562 ac_cv_prog_OBJCOPY="${ncn_progname}"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12566 done
12567 done
12568 IFS=$as_save_IFS
12572 OBJCOPY=$ac_cv_prog_OBJCOPY
12573 if test -n "$OBJCOPY"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12575 $as_echo "$OBJCOPY" >&6; }
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12582 done
12585 for ncn_progname in objcopy; do
12586 if test -n "$ncn_tool_prefix"; then
12587 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12588 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590 $as_echo_n "checking for $ac_word... " >&6; }
12591 if ${ac_cv_prog_OBJCOPY+:} false; then :
12592 $as_echo_n "(cached) " >&6
12593 else
12594 if test -n "$OBJCOPY"; then
12595 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12596 else
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12608 done
12609 done
12610 IFS=$as_save_IFS
12614 OBJCOPY=$ac_cv_prog_OBJCOPY
12615 if test -n "$OBJCOPY"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12617 $as_echo "$OBJCOPY" >&6; }
12618 else
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12625 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12627 set dummy ${ncn_progname}; ac_word=$2
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 $as_echo_n "checking for $ac_word... " >&6; }
12630 if ${ac_cv_prog_OBJCOPY+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 if test -n "$OBJCOPY"; then
12634 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12635 else
12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $PATH
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12643 ac_cv_prog_OBJCOPY="${ncn_progname}"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 break 2
12647 done
12648 done
12649 IFS=$as_save_IFS
12653 OBJCOPY=$ac_cv_prog_OBJCOPY
12654 if test -n "$OBJCOPY"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12656 $as_echo "$OBJCOPY" >&6; }
12657 else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12664 test -n "$ac_cv_prog_OBJCOPY" && break
12665 done
12667 if test -z "$ac_cv_prog_OBJCOPY" ; then
12668 set dummy objcopy
12669 if test $build = $host ; then
12670 OBJCOPY="$2"
12671 else
12672 OBJCOPY="${ncn_tool_prefix}$2"
12678 if test -n "$OBJDUMP"; then
12679 ac_cv_prog_OBJDUMP=$OBJDUMP
12680 elif test -n "$ac_cv_prog_OBJDUMP"; then
12681 OBJDUMP=$ac_cv_prog_OBJDUMP
12684 if test -n "$ac_cv_prog_OBJDUMP"; then
12685 for ncn_progname in objdump; do
12686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12687 set dummy ${ncn_progname}; ac_word=$2
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689 $as_echo_n "checking for $ac_word... " >&6; }
12690 if ${ac_cv_prog_OBJDUMP+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 if test -n "$OBJDUMP"; then
12694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12695 else
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697 for as_dir in $PATH
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12703 ac_cv_prog_OBJDUMP="${ncn_progname}"
12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12705 break 2
12707 done
12708 done
12709 IFS=$as_save_IFS
12713 OBJDUMP=$ac_cv_prog_OBJDUMP
12714 if test -n "$OBJDUMP"; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12716 $as_echo "$OBJDUMP" >&6; }
12717 else
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12723 done
12726 for ncn_progname in objdump; do
12727 if test -n "$ncn_tool_prefix"; then
12728 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12729 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if ${ac_cv_prog_OBJDUMP+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 if test -n "$OBJDUMP"; then
12736 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12737 else
12738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739 for as_dir in $PATH
12741 IFS=$as_save_IFS
12742 test -z "$as_dir" && as_dir=.
12743 for ac_exec_ext in '' $ac_executable_extensions; do
12744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12745 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12747 break 2
12749 done
12750 done
12751 IFS=$as_save_IFS
12755 OBJDUMP=$ac_cv_prog_OBJDUMP
12756 if test -n "$OBJDUMP"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12758 $as_echo "$OBJDUMP" >&6; }
12759 else
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12766 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12768 set dummy ${ncn_progname}; ac_word=$2
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770 $as_echo_n "checking for $ac_word... " >&6; }
12771 if ${ac_cv_prog_OBJDUMP+:} false; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12774 if test -n "$OBJDUMP"; then
12775 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12776 else
12777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778 for as_dir in $PATH
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
12782 for ac_exec_ext in '' $ac_executable_extensions; do
12783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12784 ac_cv_prog_OBJDUMP="${ncn_progname}"
12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12786 break 2
12788 done
12789 done
12790 IFS=$as_save_IFS
12794 OBJDUMP=$ac_cv_prog_OBJDUMP
12795 if test -n "$OBJDUMP"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12797 $as_echo "$OBJDUMP" >&6; }
12798 else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12805 test -n "$ac_cv_prog_OBJDUMP" && break
12806 done
12808 if test -z "$ac_cv_prog_OBJDUMP" ; then
12809 set dummy objdump
12810 if test $build = $host ; then
12811 OBJDUMP="$2"
12812 else
12813 OBJDUMP="${ncn_tool_prefix}$2"
12819 if test -n "$OTOOL"; then
12820 ac_cv_prog_OTOOL=$OTOOL
12821 elif test -n "$ac_cv_prog_OTOOL"; then
12822 OTOOL=$ac_cv_prog_OTOOL
12825 if test -n "$ac_cv_prog_OTOOL"; then
12826 for ncn_progname in otool; do
12827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12828 set dummy ${ncn_progname}; ac_word=$2
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830 $as_echo_n "checking for $ac_word... " >&6; }
12831 if ${ac_cv_prog_OTOOL+:} false; then :
12832 $as_echo_n "(cached) " >&6
12833 else
12834 if test -n "$OTOOL"; then
12835 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12836 else
12837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838 for as_dir in $PATH
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
12842 for ac_exec_ext in '' $ac_executable_extensions; do
12843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12844 ac_cv_prog_OTOOL="${ncn_progname}"
12845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12846 break 2
12848 done
12849 done
12850 IFS=$as_save_IFS
12854 OTOOL=$ac_cv_prog_OTOOL
12855 if test -n "$OTOOL"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12857 $as_echo "$OTOOL" >&6; }
12858 else
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 $as_echo "no" >&6; }
12864 done
12867 for ncn_progname in otool; do
12868 if test -n "$ncn_tool_prefix"; then
12869 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12870 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872 $as_echo_n "checking for $ac_word... " >&6; }
12873 if ${ac_cv_prog_OTOOL+:} false; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 if test -n "$OTOOL"; then
12877 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12878 else
12879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880 for as_dir in $PATH
12882 IFS=$as_save_IFS
12883 test -z "$as_dir" && as_dir=.
12884 for ac_exec_ext in '' $ac_executable_extensions; do
12885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12886 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12888 break 2
12890 done
12891 done
12892 IFS=$as_save_IFS
12896 OTOOL=$ac_cv_prog_OTOOL
12897 if test -n "$OTOOL"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12899 $as_echo "$OTOOL" >&6; }
12900 else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12907 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12909 set dummy ${ncn_progname}; ac_word=$2
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12911 $as_echo_n "checking for $ac_word... " >&6; }
12912 if ${ac_cv_prog_OTOOL+:} false; then :
12913 $as_echo_n "(cached) " >&6
12914 else
12915 if test -n "$OTOOL"; then
12916 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12917 else
12918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919 for as_dir in $PATH
12921 IFS=$as_save_IFS
12922 test -z "$as_dir" && as_dir=.
12923 for ac_exec_ext in '' $ac_executable_extensions; do
12924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12925 ac_cv_prog_OTOOL="${ncn_progname}"
12926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12927 break 2
12929 done
12930 done
12931 IFS=$as_save_IFS
12935 OTOOL=$ac_cv_prog_OTOOL
12936 if test -n "$OTOOL"; then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12938 $as_echo "$OTOOL" >&6; }
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12946 test -n "$ac_cv_prog_OTOOL" && break
12947 done
12949 if test -z "$ac_cv_prog_OTOOL" ; then
12950 set dummy otool
12951 if test $build = $host ; then
12952 OTOOL="$2"
12953 else
12954 OTOOL="${ncn_tool_prefix}$2"
12960 if test -n "$READELF"; then
12961 ac_cv_prog_READELF=$READELF
12962 elif test -n "$ac_cv_prog_READELF"; then
12963 READELF=$ac_cv_prog_READELF
12966 if test -n "$ac_cv_prog_READELF"; then
12967 for ncn_progname in readelf; do
12968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12969 set dummy ${ncn_progname}; ac_word=$2
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971 $as_echo_n "checking for $ac_word... " >&6; }
12972 if ${ac_cv_prog_READELF+:} false; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 if test -n "$READELF"; then
12976 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12977 else
12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12981 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
12983 for ac_exec_ext in '' $ac_executable_extensions; do
12984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12985 ac_cv_prog_READELF="${ncn_progname}"
12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12987 break 2
12989 done
12990 done
12991 IFS=$as_save_IFS
12995 READELF=$ac_cv_prog_READELF
12996 if test -n "$READELF"; then
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12998 $as_echo "$READELF" >&6; }
12999 else
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001 $as_echo "no" >&6; }
13005 done
13008 for ncn_progname in readelf; do
13009 if test -n "$ncn_tool_prefix"; then
13010 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13011 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if ${ac_cv_prog_READELF+:} false; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 if test -n "$READELF"; then
13018 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13019 else
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13023 IFS=$as_save_IFS
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13027 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
13028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13029 break 2
13031 done
13032 done
13033 IFS=$as_save_IFS
13037 READELF=$ac_cv_prog_READELF
13038 if test -n "$READELF"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13040 $as_echo "$READELF" >&6; }
13041 else
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13048 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
13049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13050 set dummy ${ncn_progname}; ac_word=$2
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052 $as_echo_n "checking for $ac_word... " >&6; }
13053 if ${ac_cv_prog_READELF+:} false; then :
13054 $as_echo_n "(cached) " >&6
13055 else
13056 if test -n "$READELF"; then
13057 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13058 else
13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13062 IFS=$as_save_IFS
13063 test -z "$as_dir" && as_dir=.
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13066 ac_cv_prog_READELF="${ncn_progname}"
13067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13068 break 2
13070 done
13071 done
13072 IFS=$as_save_IFS
13076 READELF=$ac_cv_prog_READELF
13077 if test -n "$READELF"; then
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13079 $as_echo "$READELF" >&6; }
13080 else
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13087 test -n "$ac_cv_prog_READELF" && break
13088 done
13090 if test -z "$ac_cv_prog_READELF" ; then
13091 set dummy readelf
13092 if test $build = $host ; then
13093 READELF="$2"
13094 else
13095 READELF="${ncn_tool_prefix}$2"
13105 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
13109 $as_echo_n "checking for -plugin option... " >&6; }
13111 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13112 plugin_option=
13113 for plugin in $plugin_names; do
13114 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13115 if test x$plugin_so = x$plugin; then
13116 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13118 if test x$plugin_so != x$plugin; then
13119 plugin_option="--plugin $plugin_so"
13120 break
13122 done
13123 if test -n "$ac_tool_prefix"; then
13124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13125 set dummy ${ac_tool_prefix}ar; ac_word=$2
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127 $as_echo_n "checking for $ac_word... " >&6; }
13128 if ${ac_cv_prog_AR+:} false; then :
13129 $as_echo_n "(cached) " >&6
13130 else
13131 if test -n "$AR"; then
13132 ac_cv_prog_AR="$AR" # Let the user override the test.
13133 else
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13141 ac_cv_prog_AR="${ac_tool_prefix}ar"
13142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143 break 2
13145 done
13146 done
13147 IFS=$as_save_IFS
13151 AR=$ac_cv_prog_AR
13152 if test -n "$AR"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13154 $as_echo "$AR" >&6; }
13155 else
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13162 if test -z "$ac_cv_prog_AR"; then
13163 ac_ct_AR=$AR
13164 # Extract the first word of "ar", so it can be a program name with args.
13165 set dummy ar; ac_word=$2
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167 $as_echo_n "checking for $ac_word... " >&6; }
13168 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 if test -n "$ac_ct_AR"; then
13172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13173 else
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13177 IFS=$as_save_IFS
13178 test -z "$as_dir" && as_dir=.
13179 for ac_exec_ext in '' $ac_executable_extensions; do
13180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13181 ac_cv_prog_ac_ct_AR="ar"
13182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183 break 2
13185 done
13186 done
13187 IFS=$as_save_IFS
13191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13192 if test -n "$ac_ct_AR"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13194 $as_echo "$ac_ct_AR" >&6; }
13195 else
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13200 if test "x$ac_ct_AR" = x; then
13201 AR=""
13202 else
13203 case $cross_compiling:$ac_tool_warned in
13204 yes:)
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13207 ac_tool_warned=yes ;;
13208 esac
13209 AR=$ac_ct_AR
13211 else
13212 AR="$ac_cv_prog_AR"
13215 if test "${AR}" = "" ; then
13216 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13218 touch conftest.c
13219 ${AR} $plugin_option rc conftest.a conftest.c
13220 if test "$?" != 0; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13222 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13223 plugin_option=
13225 rm -f conftest.*
13226 if test -n "$plugin_option"; then
13227 PLUGIN_OPTION="$plugin_option"
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13229 $as_echo "$plugin_option" >&6; }
13230 else
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13235 AR_PLUGIN_OPTION=
13236 RANLIB_PLUGIN_OPTION=
13237 if test -n "$PLUGIN_OPTION"; then
13238 if $AR --help 2>&1 | grep -q "\--plugin"; then
13239 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13241 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13242 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13248 # Target tools.
13250 # Check whether --with-build-time-tools was given.
13251 if test "${with_build_time_tools+set}" = set; then :
13252 withval=$with_build_time_tools; case x"$withval" in
13253 x/*) ;;
13255 with_build_time_tools=
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13257 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
13259 esac
13260 else
13261 with_build_time_tools=
13267 if test -n "$CC_FOR_TARGET"; then
13268 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13269 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13270 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13273 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13274 for ncn_progname in cc gcc; do
13275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13276 set dummy ${ncn_progname}; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 $as_echo_n "checking for $ac_word... " >&6; }
13279 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 if test -n "$CC_FOR_TARGET"; then
13283 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13284 else
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13292 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 break 2
13296 done
13297 done
13298 IFS=$as_save_IFS
13302 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13303 if test -n "$CC_FOR_TARGET"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13305 $as_echo "$CC_FOR_TARGET" >&6; }
13306 else
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13312 done
13315 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13316 for ncn_progname in cc gcc; do
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13318 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13319 if test -x $with_build_time_tools/${ncn_progname}; then
13320 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13322 $as_echo "yes" >&6; }
13323 break
13324 else
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13328 done
13331 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13332 for ncn_progname in cc gcc; do
13333 if test -n "$ncn_target_tool_prefix"; then
13334 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13335 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13339 $as_echo_n "(cached) " >&6
13340 else
13341 if test -n "$CC_FOR_TARGET"; then
13342 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13343 else
13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13347 IFS=$as_save_IFS
13348 test -z "$as_dir" && as_dir=.
13349 for ac_exec_ext in '' $ac_executable_extensions; do
13350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13353 break 2
13355 done
13356 done
13357 IFS=$as_save_IFS
13361 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13362 if test -n "$CC_FOR_TARGET"; then
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13364 $as_echo "$CC_FOR_TARGET" >&6; }
13365 else
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 $as_echo "no" >&6; }
13372 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13374 set dummy ${ncn_progname}; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 if test -n "$CC_FOR_TARGET"; then
13381 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13382 else
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13390 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 break 2
13394 done
13395 done
13396 IFS=$as_save_IFS
13400 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13401 if test -n "$CC_FOR_TARGET"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13403 $as_echo "$CC_FOR_TARGET" >&6; }
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13411 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13412 done
13415 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13416 set dummy cc gcc
13417 if test $build = $target ; then
13418 CC_FOR_TARGET="$2"
13419 else
13420 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13422 else
13423 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13428 if test -n "$CXX_FOR_TARGET"; then
13429 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13430 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13431 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13434 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13435 for ncn_progname in c++ g++ cxx gxx; do
13436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13437 set dummy ${ncn_progname}; ac_word=$2
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13439 $as_echo_n "checking for $ac_word... " >&6; }
13440 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13441 $as_echo_n "(cached) " >&6
13442 else
13443 if test -n "$CXX_FOR_TARGET"; then
13444 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13445 else
13446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447 for as_dir in $PATH
13449 IFS=$as_save_IFS
13450 test -z "$as_dir" && as_dir=.
13451 for ac_exec_ext in '' $ac_executable_extensions; do
13452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13453 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 break 2
13457 done
13458 done
13459 IFS=$as_save_IFS
13463 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13464 if test -n "$CXX_FOR_TARGET"; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13466 $as_echo "$CXX_FOR_TARGET" >&6; }
13467 else
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469 $as_echo "no" >&6; }
13473 done
13476 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13477 for ncn_progname in c++ g++ cxx gxx; do
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13479 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13480 if test -x $with_build_time_tools/${ncn_progname}; then
13481 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13483 $as_echo "yes" >&6; }
13484 break
13485 else
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13489 done
13492 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13493 for ncn_progname in c++ g++ cxx gxx; do
13494 if test -n "$ncn_target_tool_prefix"; then
13495 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13496 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13498 $as_echo_n "checking for $ac_word... " >&6; }
13499 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13500 $as_echo_n "(cached) " >&6
13501 else
13502 if test -n "$CXX_FOR_TARGET"; then
13503 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13504 else
13505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13506 for as_dir in $PATH
13508 IFS=$as_save_IFS
13509 test -z "$as_dir" && as_dir=.
13510 for ac_exec_ext in '' $ac_executable_extensions; do
13511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13512 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13514 break 2
13516 done
13517 done
13518 IFS=$as_save_IFS
13522 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13523 if test -n "$CXX_FOR_TARGET"; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13525 $as_echo "$CXX_FOR_TARGET" >&6; }
13526 else
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528 $as_echo "no" >&6; }
13533 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13535 set dummy ${ncn_progname}; ac_word=$2
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537 $as_echo_n "checking for $ac_word... " >&6; }
13538 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 if test -n "$CXX_FOR_TARGET"; then
13542 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13543 else
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
13550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13551 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 break 2
13555 done
13556 done
13557 IFS=$as_save_IFS
13561 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13562 if test -n "$CXX_FOR_TARGET"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13564 $as_echo "$CXX_FOR_TARGET" >&6; }
13565 else
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13572 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13573 done
13576 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13577 set dummy c++ g++ cxx gxx
13578 if test $build = $target ; then
13579 CXX_FOR_TARGET="$2"
13580 else
13581 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13583 else
13584 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13589 if test -n "$GCC_FOR_TARGET"; then
13590 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13591 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13592 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13595 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13596 for ncn_progname in gcc; do
13597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13598 set dummy ${ncn_progname}; ac_word=$2
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13600 $as_echo_n "checking for $ac_word... " >&6; }
13601 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13602 $as_echo_n "(cached) " >&6
13603 else
13604 if test -n "$GCC_FOR_TARGET"; then
13605 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13606 else
13607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13608 for as_dir in $PATH
13610 IFS=$as_save_IFS
13611 test -z "$as_dir" && as_dir=.
13612 for ac_exec_ext in '' $ac_executable_extensions; do
13613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13614 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13616 break 2
13618 done
13619 done
13620 IFS=$as_save_IFS
13624 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13625 if test -n "$GCC_FOR_TARGET"; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13627 $as_echo "$GCC_FOR_TARGET" >&6; }
13628 else
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 $as_echo "no" >&6; }
13634 done
13637 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13638 for ncn_progname in gcc; do
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13640 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13641 if test -x $with_build_time_tools/${ncn_progname}; then
13642 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13644 $as_echo "yes" >&6; }
13645 break
13646 else
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648 $as_echo "no" >&6; }
13650 done
13653 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13654 for ncn_progname in gcc; do
13655 if test -n "$ncn_target_tool_prefix"; then
13656 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13657 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13659 $as_echo_n "checking for $ac_word... " >&6; }
13660 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 if test -n "$GCC_FOR_TARGET"; then
13664 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13665 else
13666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667 for as_dir in $PATH
13669 IFS=$as_save_IFS
13670 test -z "$as_dir" && as_dir=.
13671 for ac_exec_ext in '' $ac_executable_extensions; do
13672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13673 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13675 break 2
13677 done
13678 done
13679 IFS=$as_save_IFS
13683 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13684 if test -n "$GCC_FOR_TARGET"; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13686 $as_echo "$GCC_FOR_TARGET" >&6; }
13687 else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13694 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13696 set dummy ${ncn_progname}; ac_word=$2
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698 $as_echo_n "checking for $ac_word... " >&6; }
13699 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 if test -n "$GCC_FOR_TARGET"; then
13703 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13704 else
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13712 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13716 done
13717 done
13718 IFS=$as_save_IFS
13722 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13723 if test -n "$GCC_FOR_TARGET"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13725 $as_echo "$GCC_FOR_TARGET" >&6; }
13726 else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13733 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13734 done
13737 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13738 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13739 else
13740 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13745 if test -n "$GFORTRAN_FOR_TARGET"; then
13746 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13747 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13748 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13751 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13752 for ncn_progname in gfortran; do
13753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13754 set dummy ${ncn_progname}; ac_word=$2
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13756 $as_echo_n "checking for $ac_word... " >&6; }
13757 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 if test -n "$GFORTRAN_FOR_TARGET"; then
13761 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13762 else
13763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764 for as_dir in $PATH
13766 IFS=$as_save_IFS
13767 test -z "$as_dir" && as_dir=.
13768 for ac_exec_ext in '' $ac_executable_extensions; do
13769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13770 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13772 break 2
13774 done
13775 done
13776 IFS=$as_save_IFS
13780 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13781 if test -n "$GFORTRAN_FOR_TARGET"; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13783 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13784 else
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13790 done
13793 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13794 for ncn_progname in gfortran; do
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13796 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13797 if test -x $with_build_time_tools/${ncn_progname}; then
13798 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13800 $as_echo "yes" >&6; }
13801 break
13802 else
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804 $as_echo "no" >&6; }
13806 done
13809 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13810 for ncn_progname in gfortran; do
13811 if test -n "$ncn_target_tool_prefix"; then
13812 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13813 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13815 $as_echo_n "checking for $ac_word... " >&6; }
13816 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13817 $as_echo_n "(cached) " >&6
13818 else
13819 if test -n "$GFORTRAN_FOR_TARGET"; then
13820 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13821 else
13822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13823 for as_dir in $PATH
13825 IFS=$as_save_IFS
13826 test -z "$as_dir" && as_dir=.
13827 for ac_exec_ext in '' $ac_executable_extensions; do
13828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13829 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13831 break 2
13833 done
13834 done
13835 IFS=$as_save_IFS
13839 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13840 if test -n "$GFORTRAN_FOR_TARGET"; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13842 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13843 else
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845 $as_echo "no" >&6; }
13850 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13852 set dummy ${ncn_progname}; ac_word=$2
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13854 $as_echo_n "checking for $ac_word... " >&6; }
13855 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13856 $as_echo_n "(cached) " >&6
13857 else
13858 if test -n "$GFORTRAN_FOR_TARGET"; then
13859 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13860 else
13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862 for as_dir in $PATH
13864 IFS=$as_save_IFS
13865 test -z "$as_dir" && as_dir=.
13866 for ac_exec_ext in '' $ac_executable_extensions; do
13867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13868 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13870 break 2
13872 done
13873 done
13874 IFS=$as_save_IFS
13878 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13879 if test -n "$GFORTRAN_FOR_TARGET"; then
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13881 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13882 else
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884 $as_echo "no" >&6; }
13889 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13890 done
13893 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13894 set dummy gfortran
13895 if test $build = $target ; then
13896 GFORTRAN_FOR_TARGET="$2"
13897 else
13898 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13900 else
13901 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13906 if test -n "$GOC_FOR_TARGET"; then
13907 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13908 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13909 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13912 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13913 for ncn_progname in gccgo; do
13914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13915 set dummy ${ncn_progname}; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917 $as_echo_n "checking for $ac_word... " >&6; }
13918 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 if test -n "$GOC_FOR_TARGET"; then
13922 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13923 else
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13927 IFS=$as_save_IFS
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13933 break 2
13935 done
13936 done
13937 IFS=$as_save_IFS
13941 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13942 if test -n "$GOC_FOR_TARGET"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13944 $as_echo "$GOC_FOR_TARGET" >&6; }
13945 else
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13951 done
13954 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13955 for ncn_progname in gccgo; do
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13957 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13958 if test -x $with_build_time_tools/${ncn_progname}; then
13959 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13961 $as_echo "yes" >&6; }
13962 break
13963 else
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13965 $as_echo "no" >&6; }
13967 done
13970 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13971 for ncn_progname in gccgo; do
13972 if test -n "$ncn_target_tool_prefix"; then
13973 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13974 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13976 $as_echo_n "checking for $ac_word... " >&6; }
13977 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13978 $as_echo_n "(cached) " >&6
13979 else
13980 if test -n "$GOC_FOR_TARGET"; then
13981 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13982 else
13983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984 for as_dir in $PATH
13986 IFS=$as_save_IFS
13987 test -z "$as_dir" && as_dir=.
13988 for ac_exec_ext in '' $ac_executable_extensions; do
13989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13990 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13992 break 2
13994 done
13995 done
13996 IFS=$as_save_IFS
14000 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14001 if test -n "$GOC_FOR_TARGET"; then
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14003 $as_echo "$GOC_FOR_TARGET" >&6; }
14004 else
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14006 $as_echo "no" >&6; }
14011 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
14012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14013 set dummy ${ncn_progname}; ac_word=$2
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14015 $as_echo_n "checking for $ac_word... " >&6; }
14016 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14017 $as_echo_n "(cached) " >&6
14018 else
14019 if test -n "$GOC_FOR_TARGET"; then
14020 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14021 else
14022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14023 for as_dir in $PATH
14025 IFS=$as_save_IFS
14026 test -z "$as_dir" && as_dir=.
14027 for ac_exec_ext in '' $ac_executable_extensions; do
14028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14029 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14031 break 2
14033 done
14034 done
14035 IFS=$as_save_IFS
14039 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14040 if test -n "$GOC_FOR_TARGET"; then
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14042 $as_echo "$GOC_FOR_TARGET" >&6; }
14043 else
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14045 $as_echo "no" >&6; }
14050 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
14051 done
14054 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
14055 set dummy gccgo
14056 if test $build = $target ; then
14057 GOC_FOR_TARGET="$2"
14058 else
14059 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14061 else
14062 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
14067 if test -n "$GDC_FOR_TARGET"; then
14068 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14069 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14070 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14073 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14074 for ncn_progname in gdc; do
14075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14076 set dummy ${ncn_progname}; ac_word=$2
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14078 $as_echo_n "checking for $ac_word... " >&6; }
14079 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14080 $as_echo_n "(cached) " >&6
14081 else
14082 if test -n "$GDC_FOR_TARGET"; then
14083 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14084 else
14085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
14091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14092 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 break 2
14096 done
14097 done
14098 IFS=$as_save_IFS
14102 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14103 if test -n "$GDC_FOR_TARGET"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14105 $as_echo "$GDC_FOR_TARGET" >&6; }
14106 else
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108 $as_echo "no" >&6; }
14112 done
14115 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14116 for ncn_progname in gdc; do
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14118 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14119 if test -x $with_build_time_tools/${ncn_progname}; then
14120 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14122 $as_echo "yes" >&6; }
14123 break
14124 else
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14126 $as_echo "no" >&6; }
14128 done
14131 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14132 for ncn_progname in gdc; do
14133 if test -n "$ncn_target_tool_prefix"; then
14134 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14135 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14137 $as_echo_n "checking for $ac_word... " >&6; }
14138 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 if test -n "$GDC_FOR_TARGET"; then
14142 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14143 else
14144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14145 for as_dir in $PATH
14147 IFS=$as_save_IFS
14148 test -z "$as_dir" && as_dir=.
14149 for ac_exec_ext in '' $ac_executable_extensions; do
14150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14151 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14153 break 2
14155 done
14156 done
14157 IFS=$as_save_IFS
14161 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14162 if test -n "$GDC_FOR_TARGET"; then
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14164 $as_echo "$GDC_FOR_TARGET" >&6; }
14165 else
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167 $as_echo "no" >&6; }
14172 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14174 set dummy ${ncn_progname}; ac_word=$2
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14176 $as_echo_n "checking for $ac_word... " >&6; }
14177 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14178 $as_echo_n "(cached) " >&6
14179 else
14180 if test -n "$GDC_FOR_TARGET"; then
14181 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14182 else
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184 for as_dir in $PATH
14186 IFS=$as_save_IFS
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14190 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14192 break 2
14194 done
14195 done
14196 IFS=$as_save_IFS
14200 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14201 if test -n "$GDC_FOR_TARGET"; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14203 $as_echo "$GDC_FOR_TARGET" >&6; }
14204 else
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206 $as_echo "no" >&6; }
14211 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14212 done
14215 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14216 set dummy gdc
14217 if test $build = $target ; then
14218 GDC_FOR_TARGET="$2"
14219 else
14220 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14222 else
14223 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14228 if test -n "$GM2_FOR_TARGET"; then
14229 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14230 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14231 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14234 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14235 for ncn_progname in gm2; do
14236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14237 set dummy ${ncn_progname}; ac_word=$2
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14239 $as_echo_n "checking for $ac_word... " >&6; }
14240 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14241 $as_echo_n "(cached) " >&6
14242 else
14243 if test -n "$GM2_FOR_TARGET"; then
14244 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14245 else
14246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14247 for as_dir in $PATH
14249 IFS=$as_save_IFS
14250 test -z "$as_dir" && as_dir=.
14251 for ac_exec_ext in '' $ac_executable_extensions; do
14252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14253 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14255 break 2
14257 done
14258 done
14259 IFS=$as_save_IFS
14263 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14264 if test -n "$GM2_FOR_TARGET"; then
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14266 $as_echo "$GM2_FOR_TARGET" >&6; }
14267 else
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14269 $as_echo "no" >&6; }
14273 done
14276 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14277 for ncn_progname in gm2; do
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14279 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14280 if test -x $with_build_time_tools/${ncn_progname}; then
14281 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14283 $as_echo "yes" >&6; }
14284 break
14285 else
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14287 $as_echo "no" >&6; }
14289 done
14292 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14293 for ncn_progname in gm2; do
14294 if test -n "$ncn_target_tool_prefix"; then
14295 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14296 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14298 $as_echo_n "checking for $ac_word... " >&6; }
14299 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14300 $as_echo_n "(cached) " >&6
14301 else
14302 if test -n "$GM2_FOR_TARGET"; then
14303 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14304 else
14305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306 for as_dir in $PATH
14308 IFS=$as_save_IFS
14309 test -z "$as_dir" && as_dir=.
14310 for ac_exec_ext in '' $ac_executable_extensions; do
14311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14312 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14314 break 2
14316 done
14317 done
14318 IFS=$as_save_IFS
14322 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14323 if test -n "$GM2_FOR_TARGET"; then
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14325 $as_echo "$GM2_FOR_TARGET" >&6; }
14326 else
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14328 $as_echo "no" >&6; }
14333 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14335 set dummy ${ncn_progname}; ac_word=$2
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14337 $as_echo_n "checking for $ac_word... " >&6; }
14338 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14339 $as_echo_n "(cached) " >&6
14340 else
14341 if test -n "$GM2_FOR_TARGET"; then
14342 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14343 else
14344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14345 for as_dir in $PATH
14347 IFS=$as_save_IFS
14348 test -z "$as_dir" && as_dir=.
14349 for ac_exec_ext in '' $ac_executable_extensions; do
14350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14351 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14353 break 2
14355 done
14356 done
14357 IFS=$as_save_IFS
14361 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14362 if test -n "$GM2_FOR_TARGET"; then
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14364 $as_echo "$GM2_FOR_TARGET" >&6; }
14365 else
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367 $as_echo "no" >&6; }
14372 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14373 done
14376 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14377 set dummy gm2
14378 if test $build = $target ; then
14379 GM2_FOR_TARGET="$2"
14380 else
14381 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14383 else
14384 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14389 cat > conftest.c << \EOF
14390 #ifdef __GNUC__
14391 gcc_yay;
14392 #endif
14394 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14395 have_gcc_for_target=yes
14396 else
14397 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14398 have_gcc_for_target=no
14400 rm conftest.c
14405 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14406 if test -n "$with_build_time_tools"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14408 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14409 if test -x $with_build_time_tools/ar; then
14410 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14411 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14413 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14414 else
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14416 $as_echo "no" >&6; }
14418 elif test $build != $host && test $have_gcc_for_target = yes; then
14419 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14420 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14421 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14424 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14425 # Extract the first word of "ar", so it can be a program name with args.
14426 set dummy ar; ac_word=$2
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14428 $as_echo_n "checking for $ac_word... " >&6; }
14429 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14430 $as_echo_n "(cached) " >&6
14431 else
14432 case $AR_FOR_TARGET in
14433 [\\/]* | ?:[\\/]*)
14434 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14438 for as_dir in $gcc_cv_tool_dirs
14440 IFS=$as_save_IFS
14441 test -z "$as_dir" && as_dir=.
14442 for ac_exec_ext in '' $ac_executable_extensions; do
14443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14444 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14446 break 2
14448 done
14449 done
14450 IFS=$as_save_IFS
14453 esac
14455 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14456 if test -n "$AR_FOR_TARGET"; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14458 $as_echo "$AR_FOR_TARGET" >&6; }
14459 else
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461 $as_echo "no" >&6; }
14466 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14469 if test -n "$AR_FOR_TARGET"; then
14470 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14471 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14472 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14475 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14476 for ncn_progname in ar; do
14477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14478 set dummy ${ncn_progname}; ac_word=$2
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14480 $as_echo_n "checking for $ac_word... " >&6; }
14481 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14482 $as_echo_n "(cached) " >&6
14483 else
14484 if test -n "$AR_FOR_TARGET"; then
14485 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14486 else
14487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488 for as_dir in $PATH
14490 IFS=$as_save_IFS
14491 test -z "$as_dir" && as_dir=.
14492 for ac_exec_ext in '' $ac_executable_extensions; do
14493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14494 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14496 break 2
14498 done
14499 done
14500 IFS=$as_save_IFS
14504 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14505 if test -n "$AR_FOR_TARGET"; then
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14507 $as_echo "$AR_FOR_TARGET" >&6; }
14508 else
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510 $as_echo "no" >&6; }
14514 done
14517 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14518 for ncn_progname in ar; do
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14520 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14521 if test -x $with_build_time_tools/${ncn_progname}; then
14522 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14524 $as_echo "yes" >&6; }
14525 break
14526 else
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14528 $as_echo "no" >&6; }
14530 done
14533 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14534 for ncn_progname in ar; do
14535 if test -n "$ncn_target_tool_prefix"; then
14536 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14537 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14539 $as_echo_n "checking for $ac_word... " >&6; }
14540 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14541 $as_echo_n "(cached) " >&6
14542 else
14543 if test -n "$AR_FOR_TARGET"; then
14544 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14545 else
14546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14547 for as_dir in $PATH
14549 IFS=$as_save_IFS
14550 test -z "$as_dir" && as_dir=.
14551 for ac_exec_ext in '' $ac_executable_extensions; do
14552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14553 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14555 break 2
14557 done
14558 done
14559 IFS=$as_save_IFS
14563 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14564 if test -n "$AR_FOR_TARGET"; then
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14566 $as_echo "$AR_FOR_TARGET" >&6; }
14567 else
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14569 $as_echo "no" >&6; }
14574 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14576 set dummy ${ncn_progname}; ac_word=$2
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14578 $as_echo_n "checking for $ac_word... " >&6; }
14579 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 if test -n "$AR_FOR_TARGET"; then
14583 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14584 else
14585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586 for as_dir in $PATH
14588 IFS=$as_save_IFS
14589 test -z "$as_dir" && as_dir=.
14590 for ac_exec_ext in '' $ac_executable_extensions; do
14591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14592 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14594 break 2
14596 done
14597 done
14598 IFS=$as_save_IFS
14602 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14603 if test -n "$AR_FOR_TARGET"; then
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14605 $as_echo "$AR_FOR_TARGET" >&6; }
14606 else
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14608 $as_echo "no" >&6; }
14613 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14614 done
14617 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14618 set dummy ar
14619 if test $build = $target ; then
14620 AR_FOR_TARGET="$2"
14621 else
14622 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14624 else
14625 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14628 else
14629 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14635 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14636 if test -n "$with_build_time_tools"; then
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14638 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14639 if test -x $with_build_time_tools/as; then
14640 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14641 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14643 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14644 else
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14646 $as_echo "no" >&6; }
14648 elif test $build != $host && test $have_gcc_for_target = yes; then
14649 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14650 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14651 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14654 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14655 # Extract the first word of "as", so it can be a program name with args.
14656 set dummy as; ac_word=$2
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14658 $as_echo_n "checking for $ac_word... " >&6; }
14659 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14662 case $AS_FOR_TARGET in
14663 [\\/]* | ?:[\\/]*)
14664 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14668 for as_dir in $gcc_cv_tool_dirs
14670 IFS=$as_save_IFS
14671 test -z "$as_dir" && as_dir=.
14672 for ac_exec_ext in '' $ac_executable_extensions; do
14673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14674 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14676 break 2
14678 done
14679 done
14680 IFS=$as_save_IFS
14683 esac
14685 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14686 if test -n "$AS_FOR_TARGET"; then
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14688 $as_echo "$AS_FOR_TARGET" >&6; }
14689 else
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 $as_echo "no" >&6; }
14696 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14699 if test -n "$AS_FOR_TARGET"; then
14700 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14701 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14702 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14705 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14706 for ncn_progname in as; do
14707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14708 set dummy ${ncn_progname}; ac_word=$2
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14710 $as_echo_n "checking for $ac_word... " >&6; }
14711 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14712 $as_echo_n "(cached) " >&6
14713 else
14714 if test -n "$AS_FOR_TARGET"; then
14715 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14716 else
14717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718 for as_dir in $PATH
14720 IFS=$as_save_IFS
14721 test -z "$as_dir" && as_dir=.
14722 for ac_exec_ext in '' $ac_executable_extensions; do
14723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14724 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14726 break 2
14728 done
14729 done
14730 IFS=$as_save_IFS
14734 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14735 if test -n "$AS_FOR_TARGET"; then
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14737 $as_echo "$AS_FOR_TARGET" >&6; }
14738 else
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740 $as_echo "no" >&6; }
14744 done
14747 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14748 for ncn_progname in as; do
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14750 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14751 if test -x $with_build_time_tools/${ncn_progname}; then
14752 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754 $as_echo "yes" >&6; }
14755 break
14756 else
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14760 done
14763 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14764 for ncn_progname in as; do
14765 if test -n "$ncn_target_tool_prefix"; then
14766 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14767 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14769 $as_echo_n "checking for $ac_word... " >&6; }
14770 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14771 $as_echo_n "(cached) " >&6
14772 else
14773 if test -n "$AS_FOR_TARGET"; then
14774 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14775 else
14776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14777 for as_dir in $PATH
14779 IFS=$as_save_IFS
14780 test -z "$as_dir" && as_dir=.
14781 for ac_exec_ext in '' $ac_executable_extensions; do
14782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14783 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14785 break 2
14787 done
14788 done
14789 IFS=$as_save_IFS
14793 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14794 if test -n "$AS_FOR_TARGET"; then
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14796 $as_echo "$AS_FOR_TARGET" >&6; }
14797 else
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14799 $as_echo "no" >&6; }
14804 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14806 set dummy ${ncn_progname}; ac_word=$2
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14808 $as_echo_n "checking for $ac_word... " >&6; }
14809 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14810 $as_echo_n "(cached) " >&6
14811 else
14812 if test -n "$AS_FOR_TARGET"; then
14813 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14814 else
14815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816 for as_dir in $PATH
14818 IFS=$as_save_IFS
14819 test -z "$as_dir" && as_dir=.
14820 for ac_exec_ext in '' $ac_executable_extensions; do
14821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14822 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14824 break 2
14826 done
14827 done
14828 IFS=$as_save_IFS
14832 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14833 if test -n "$AS_FOR_TARGET"; then
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14835 $as_echo "$AS_FOR_TARGET" >&6; }
14836 else
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14838 $as_echo "no" >&6; }
14843 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14844 done
14847 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14848 set dummy as
14849 if test $build = $target ; then
14850 AS_FOR_TARGET="$2"
14851 else
14852 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14854 else
14855 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14858 else
14859 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14865 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14866 if test -n "$with_build_time_tools"; then
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14868 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14869 if test -x $with_build_time_tools/dlltool; then
14870 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14871 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14873 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14874 else
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14876 $as_echo "no" >&6; }
14878 elif test $build != $host && test $have_gcc_for_target = yes; then
14879 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14880 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14881 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14884 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14885 # Extract the first word of "dlltool", so it can be a program name with args.
14886 set dummy dlltool; ac_word=$2
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14888 $as_echo_n "checking for $ac_word... " >&6; }
14889 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14890 $as_echo_n "(cached) " >&6
14891 else
14892 case $DLLTOOL_FOR_TARGET in
14893 [\\/]* | ?:[\\/]*)
14894 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14898 for as_dir in $gcc_cv_tool_dirs
14900 IFS=$as_save_IFS
14901 test -z "$as_dir" && as_dir=.
14902 for ac_exec_ext in '' $ac_executable_extensions; do
14903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14904 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14906 break 2
14908 done
14909 done
14910 IFS=$as_save_IFS
14913 esac
14915 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14916 if test -n "$DLLTOOL_FOR_TARGET"; then
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14918 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14919 else
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14921 $as_echo "no" >&6; }
14926 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14929 if test -n "$DLLTOOL_FOR_TARGET"; then
14930 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14931 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14932 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14935 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14936 for ncn_progname in dlltool; do
14937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14938 set dummy ${ncn_progname}; ac_word=$2
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14940 $as_echo_n "checking for $ac_word... " >&6; }
14941 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14942 $as_echo_n "(cached) " >&6
14943 else
14944 if test -n "$DLLTOOL_FOR_TARGET"; then
14945 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14946 else
14947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14948 for as_dir in $PATH
14950 IFS=$as_save_IFS
14951 test -z "$as_dir" && as_dir=.
14952 for ac_exec_ext in '' $ac_executable_extensions; do
14953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14954 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14956 break 2
14958 done
14959 done
14960 IFS=$as_save_IFS
14964 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14965 if test -n "$DLLTOOL_FOR_TARGET"; then
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14967 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14968 else
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14970 $as_echo "no" >&6; }
14974 done
14977 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14978 for ncn_progname in dlltool; do
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14980 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14981 if test -x $with_build_time_tools/${ncn_progname}; then
14982 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14984 $as_echo "yes" >&6; }
14985 break
14986 else
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14988 $as_echo "no" >&6; }
14990 done
14993 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14994 for ncn_progname in dlltool; do
14995 if test -n "$ncn_target_tool_prefix"; then
14996 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14997 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14999 $as_echo_n "checking for $ac_word... " >&6; }
15000 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15001 $as_echo_n "(cached) " >&6
15002 else
15003 if test -n "$DLLTOOL_FOR_TARGET"; then
15004 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15005 else
15006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15007 for as_dir in $PATH
15009 IFS=$as_save_IFS
15010 test -z "$as_dir" && as_dir=.
15011 for ac_exec_ext in '' $ac_executable_extensions; do
15012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15013 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15015 break 2
15017 done
15018 done
15019 IFS=$as_save_IFS
15023 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15024 if test -n "$DLLTOOL_FOR_TARGET"; then
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15026 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15027 else
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 $as_echo "no" >&6; }
15034 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
15035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15036 set dummy ${ncn_progname}; ac_word=$2
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15038 $as_echo_n "checking for $ac_word... " >&6; }
15039 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15040 $as_echo_n "(cached) " >&6
15041 else
15042 if test -n "$DLLTOOL_FOR_TARGET"; then
15043 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15044 else
15045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15046 for as_dir in $PATH
15048 IFS=$as_save_IFS
15049 test -z "$as_dir" && as_dir=.
15050 for ac_exec_ext in '' $ac_executable_extensions; do
15051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15052 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15054 break 2
15056 done
15057 done
15058 IFS=$as_save_IFS
15062 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15063 if test -n "$DLLTOOL_FOR_TARGET"; then
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15065 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15066 else
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15068 $as_echo "no" >&6; }
15073 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15074 done
15077 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15078 set dummy dlltool
15079 if test $build = $target ; then
15080 DLLTOOL_FOR_TARGET="$2"
15081 else
15082 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15084 else
15085 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15088 else
15089 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15095 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15096 if test -n "$with_build_time_tools"; then
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
15098 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
15099 if test -x $with_build_time_tools/dsymutil; then
15100 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15101 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15103 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15104 else
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15106 $as_echo "no" >&6; }
15108 elif test $build != $host && test $have_gcc_for_target = yes; then
15109 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15110 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15111 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15114 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15115 # Extract the first word of "dsymutil", so it can be a program name with args.
15116 set dummy dsymutil; ac_word=$2
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15118 $as_echo_n "checking for $ac_word... " >&6; }
15119 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15120 $as_echo_n "(cached) " >&6
15121 else
15122 case $DSYMUTIL_FOR_TARGET in
15123 [\\/]* | ?:[\\/]*)
15124 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15128 for as_dir in $gcc_cv_tool_dirs
15130 IFS=$as_save_IFS
15131 test -z "$as_dir" && as_dir=.
15132 for ac_exec_ext in '' $ac_executable_extensions; do
15133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15134 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15136 break 2
15138 done
15139 done
15140 IFS=$as_save_IFS
15143 esac
15145 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15146 if test -n "$DSYMUTIL_FOR_TARGET"; then
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15148 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15149 else
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15151 $as_echo "no" >&6; }
15156 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15159 if test -n "$DSYMUTIL_FOR_TARGET"; then
15160 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15161 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15162 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15165 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15166 for ncn_progname in dsymutil; do
15167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15168 set dummy ${ncn_progname}; ac_word=$2
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15170 $as_echo_n "checking for $ac_word... " >&6; }
15171 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15172 $as_echo_n "(cached) " >&6
15173 else
15174 if test -n "$DSYMUTIL_FOR_TARGET"; then
15175 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15176 else
15177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15178 for as_dir in $PATH
15180 IFS=$as_save_IFS
15181 test -z "$as_dir" && as_dir=.
15182 for ac_exec_ext in '' $ac_executable_extensions; do
15183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15184 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15186 break 2
15188 done
15189 done
15190 IFS=$as_save_IFS
15194 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15195 if test -n "$DSYMUTIL_FOR_TARGET"; then
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15197 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15198 else
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15200 $as_echo "no" >&6; }
15204 done
15207 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15208 for ncn_progname in dsymutil; do
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15210 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15211 if test -x $with_build_time_tools/${ncn_progname}; then
15212 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15214 $as_echo "yes" >&6; }
15215 break
15216 else
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15218 $as_echo "no" >&6; }
15220 done
15223 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15224 for ncn_progname in dsymutil; do
15225 if test -n "$ncn_target_tool_prefix"; then
15226 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15227 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15229 $as_echo_n "checking for $ac_word... " >&6; }
15230 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15231 $as_echo_n "(cached) " >&6
15232 else
15233 if test -n "$DSYMUTIL_FOR_TARGET"; then
15234 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15235 else
15236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15237 for as_dir in $PATH
15239 IFS=$as_save_IFS
15240 test -z "$as_dir" && as_dir=.
15241 for ac_exec_ext in '' $ac_executable_extensions; do
15242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15243 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15245 break 2
15247 done
15248 done
15249 IFS=$as_save_IFS
15253 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15254 if test -n "$DSYMUTIL_FOR_TARGET"; then
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15256 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15257 else
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15259 $as_echo "no" >&6; }
15264 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15266 set dummy ${ncn_progname}; ac_word=$2
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15268 $as_echo_n "checking for $ac_word... " >&6; }
15269 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15270 $as_echo_n "(cached) " >&6
15271 else
15272 if test -n "$DSYMUTIL_FOR_TARGET"; then
15273 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15274 else
15275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15276 for as_dir in $PATH
15278 IFS=$as_save_IFS
15279 test -z "$as_dir" && as_dir=.
15280 for ac_exec_ext in '' $ac_executable_extensions; do
15281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15282 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15284 break 2
15286 done
15287 done
15288 IFS=$as_save_IFS
15292 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15293 if test -n "$DSYMUTIL_FOR_TARGET"; then
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15295 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15296 else
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15298 $as_echo "no" >&6; }
15303 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15304 done
15307 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15308 set dummy dsymutil
15309 if test $build = $target ; then
15310 DSYMUTIL_FOR_TARGET="$2"
15311 else
15312 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15314 else
15315 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15318 else
15319 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15325 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15326 if test -n "$with_build_time_tools"; then
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15328 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15329 if test -x $with_build_time_tools/ld; then
15330 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15331 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15333 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15334 else
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15336 $as_echo "no" >&6; }
15338 elif test $build != $host && test $have_gcc_for_target = yes; then
15339 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15340 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15341 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15344 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15345 # Extract the first word of "ld", so it can be a program name with args.
15346 set dummy ld; ac_word=$2
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15348 $as_echo_n "checking for $ac_word... " >&6; }
15349 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15350 $as_echo_n "(cached) " >&6
15351 else
15352 case $LD_FOR_TARGET in
15353 [\\/]* | ?:[\\/]*)
15354 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15358 for as_dir in $gcc_cv_tool_dirs
15360 IFS=$as_save_IFS
15361 test -z "$as_dir" && as_dir=.
15362 for ac_exec_ext in '' $ac_executable_extensions; do
15363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15364 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15366 break 2
15368 done
15369 done
15370 IFS=$as_save_IFS
15373 esac
15375 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15376 if test -n "$LD_FOR_TARGET"; then
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15378 $as_echo "$LD_FOR_TARGET" >&6; }
15379 else
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15381 $as_echo "no" >&6; }
15386 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15389 if test -n "$LD_FOR_TARGET"; then
15390 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15391 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15392 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15395 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15396 for ncn_progname in ld; do
15397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15398 set dummy ${ncn_progname}; ac_word=$2
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15400 $as_echo_n "checking for $ac_word... " >&6; }
15401 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15402 $as_echo_n "(cached) " >&6
15403 else
15404 if test -n "$LD_FOR_TARGET"; then
15405 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15406 else
15407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15408 for as_dir in $PATH
15410 IFS=$as_save_IFS
15411 test -z "$as_dir" && as_dir=.
15412 for ac_exec_ext in '' $ac_executable_extensions; do
15413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15414 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15416 break 2
15418 done
15419 done
15420 IFS=$as_save_IFS
15424 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15425 if test -n "$LD_FOR_TARGET"; then
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15427 $as_echo "$LD_FOR_TARGET" >&6; }
15428 else
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15430 $as_echo "no" >&6; }
15434 done
15437 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15438 for ncn_progname in ld; do
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15440 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15441 if test -x $with_build_time_tools/${ncn_progname}; then
15442 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15444 $as_echo "yes" >&6; }
15445 break
15446 else
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15448 $as_echo "no" >&6; }
15450 done
15453 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15454 for ncn_progname in ld; do
15455 if test -n "$ncn_target_tool_prefix"; then
15456 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15457 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15459 $as_echo_n "checking for $ac_word... " >&6; }
15460 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15461 $as_echo_n "(cached) " >&6
15462 else
15463 if test -n "$LD_FOR_TARGET"; then
15464 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15465 else
15466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15467 for as_dir in $PATH
15469 IFS=$as_save_IFS
15470 test -z "$as_dir" && as_dir=.
15471 for ac_exec_ext in '' $ac_executable_extensions; do
15472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15473 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15475 break 2
15477 done
15478 done
15479 IFS=$as_save_IFS
15483 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15484 if test -n "$LD_FOR_TARGET"; then
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15486 $as_echo "$LD_FOR_TARGET" >&6; }
15487 else
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15489 $as_echo "no" >&6; }
15494 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15496 set dummy ${ncn_progname}; ac_word=$2
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15498 $as_echo_n "checking for $ac_word... " >&6; }
15499 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15500 $as_echo_n "(cached) " >&6
15501 else
15502 if test -n "$LD_FOR_TARGET"; then
15503 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15504 else
15505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15506 for as_dir in $PATH
15508 IFS=$as_save_IFS
15509 test -z "$as_dir" && as_dir=.
15510 for ac_exec_ext in '' $ac_executable_extensions; do
15511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15512 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15514 break 2
15516 done
15517 done
15518 IFS=$as_save_IFS
15522 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15523 if test -n "$LD_FOR_TARGET"; then
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15525 $as_echo "$LD_FOR_TARGET" >&6; }
15526 else
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15528 $as_echo "no" >&6; }
15533 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15534 done
15537 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15538 set dummy ld
15539 if test $build = $target ; then
15540 LD_FOR_TARGET="$2"
15541 else
15542 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15544 else
15545 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15548 else
15549 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15555 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15556 if test -n "$with_build_time_tools"; then
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15558 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15559 if test -x $with_build_time_tools/lipo; then
15560 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15561 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15563 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15564 else
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15566 $as_echo "no" >&6; }
15568 elif test $build != $host && test $have_gcc_for_target = yes; then
15569 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15570 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15571 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15574 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15575 # Extract the first word of "lipo", so it can be a program name with args.
15576 set dummy lipo; ac_word=$2
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15578 $as_echo_n "checking for $ac_word... " >&6; }
15579 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15580 $as_echo_n "(cached) " >&6
15581 else
15582 case $LIPO_FOR_TARGET in
15583 [\\/]* | ?:[\\/]*)
15584 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15588 for as_dir in $gcc_cv_tool_dirs
15590 IFS=$as_save_IFS
15591 test -z "$as_dir" && as_dir=.
15592 for ac_exec_ext in '' $ac_executable_extensions; do
15593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15594 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15596 break 2
15598 done
15599 done
15600 IFS=$as_save_IFS
15603 esac
15605 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15606 if test -n "$LIPO_FOR_TARGET"; then
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15608 $as_echo "$LIPO_FOR_TARGET" >&6; }
15609 else
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15611 $as_echo "no" >&6; }
15616 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15619 if test -n "$LIPO_FOR_TARGET"; then
15620 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15621 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15622 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15625 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15626 for ncn_progname in lipo; do
15627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15628 set dummy ${ncn_progname}; ac_word=$2
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15630 $as_echo_n "checking for $ac_word... " >&6; }
15631 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15632 $as_echo_n "(cached) " >&6
15633 else
15634 if test -n "$LIPO_FOR_TARGET"; then
15635 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15636 else
15637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15638 for as_dir in $PATH
15640 IFS=$as_save_IFS
15641 test -z "$as_dir" && as_dir=.
15642 for ac_exec_ext in '' $ac_executable_extensions; do
15643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15644 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15646 break 2
15648 done
15649 done
15650 IFS=$as_save_IFS
15654 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15655 if test -n "$LIPO_FOR_TARGET"; then
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15657 $as_echo "$LIPO_FOR_TARGET" >&6; }
15658 else
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15660 $as_echo "no" >&6; }
15664 done
15667 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15668 for ncn_progname in lipo; do
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15670 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15671 if test -x $with_build_time_tools/${ncn_progname}; then
15672 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15674 $as_echo "yes" >&6; }
15675 break
15676 else
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15678 $as_echo "no" >&6; }
15680 done
15683 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15684 for ncn_progname in lipo; do
15685 if test -n "$ncn_target_tool_prefix"; then
15686 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15687 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15689 $as_echo_n "checking for $ac_word... " >&6; }
15690 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15691 $as_echo_n "(cached) " >&6
15692 else
15693 if test -n "$LIPO_FOR_TARGET"; then
15694 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15695 else
15696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15697 for as_dir in $PATH
15699 IFS=$as_save_IFS
15700 test -z "$as_dir" && as_dir=.
15701 for ac_exec_ext in '' $ac_executable_extensions; do
15702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15703 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15705 break 2
15707 done
15708 done
15709 IFS=$as_save_IFS
15713 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15714 if test -n "$LIPO_FOR_TARGET"; then
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15716 $as_echo "$LIPO_FOR_TARGET" >&6; }
15717 else
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15719 $as_echo "no" >&6; }
15724 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15726 set dummy ${ncn_progname}; ac_word=$2
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15728 $as_echo_n "checking for $ac_word... " >&6; }
15729 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15730 $as_echo_n "(cached) " >&6
15731 else
15732 if test -n "$LIPO_FOR_TARGET"; then
15733 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15734 else
15735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15736 for as_dir in $PATH
15738 IFS=$as_save_IFS
15739 test -z "$as_dir" && as_dir=.
15740 for ac_exec_ext in '' $ac_executable_extensions; do
15741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15742 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15744 break 2
15746 done
15747 done
15748 IFS=$as_save_IFS
15752 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15753 if test -n "$LIPO_FOR_TARGET"; then
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15755 $as_echo "$LIPO_FOR_TARGET" >&6; }
15756 else
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15758 $as_echo "no" >&6; }
15763 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15764 done
15767 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15768 set dummy lipo
15769 if test $build = $target ; then
15770 LIPO_FOR_TARGET="$2"
15771 else
15772 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15774 else
15775 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15778 else
15779 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15785 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15786 if test -n "$with_build_time_tools"; then
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15788 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15789 if test -x $with_build_time_tools/nm; then
15790 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15791 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15793 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15794 else
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15796 $as_echo "no" >&6; }
15798 elif test $build != $host && test $have_gcc_for_target = yes; then
15799 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15800 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15801 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15804 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15805 # Extract the first word of "nm", so it can be a program name with args.
15806 set dummy nm; ac_word=$2
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15808 $as_echo_n "checking for $ac_word... " >&6; }
15809 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15810 $as_echo_n "(cached) " >&6
15811 else
15812 case $NM_FOR_TARGET in
15813 [\\/]* | ?:[\\/]*)
15814 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15818 for as_dir in $gcc_cv_tool_dirs
15820 IFS=$as_save_IFS
15821 test -z "$as_dir" && as_dir=.
15822 for ac_exec_ext in '' $ac_executable_extensions; do
15823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15824 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15826 break 2
15828 done
15829 done
15830 IFS=$as_save_IFS
15833 esac
15835 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15836 if test -n "$NM_FOR_TARGET"; then
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15838 $as_echo "$NM_FOR_TARGET" >&6; }
15839 else
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15841 $as_echo "no" >&6; }
15846 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15849 if test -n "$NM_FOR_TARGET"; then
15850 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15851 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15852 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15855 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15856 for ncn_progname in nm; do
15857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15858 set dummy ${ncn_progname}; ac_word=$2
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15860 $as_echo_n "checking for $ac_word... " >&6; }
15861 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15862 $as_echo_n "(cached) " >&6
15863 else
15864 if test -n "$NM_FOR_TARGET"; then
15865 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15866 else
15867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15868 for as_dir in $PATH
15870 IFS=$as_save_IFS
15871 test -z "$as_dir" && as_dir=.
15872 for ac_exec_ext in '' $ac_executable_extensions; do
15873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15874 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15876 break 2
15878 done
15879 done
15880 IFS=$as_save_IFS
15884 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15885 if test -n "$NM_FOR_TARGET"; then
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15887 $as_echo "$NM_FOR_TARGET" >&6; }
15888 else
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15890 $as_echo "no" >&6; }
15894 done
15897 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15898 for ncn_progname in nm; do
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15900 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15901 if test -x $with_build_time_tools/${ncn_progname}; then
15902 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15904 $as_echo "yes" >&6; }
15905 break
15906 else
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15908 $as_echo "no" >&6; }
15910 done
15913 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15914 for ncn_progname in nm; do
15915 if test -n "$ncn_target_tool_prefix"; then
15916 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15917 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15919 $as_echo_n "checking for $ac_word... " >&6; }
15920 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15921 $as_echo_n "(cached) " >&6
15922 else
15923 if test -n "$NM_FOR_TARGET"; then
15924 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15925 else
15926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15927 for as_dir in $PATH
15929 IFS=$as_save_IFS
15930 test -z "$as_dir" && as_dir=.
15931 for ac_exec_ext in '' $ac_executable_extensions; do
15932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15933 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15935 break 2
15937 done
15938 done
15939 IFS=$as_save_IFS
15943 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15944 if test -n "$NM_FOR_TARGET"; then
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15946 $as_echo "$NM_FOR_TARGET" >&6; }
15947 else
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15949 $as_echo "no" >&6; }
15954 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15956 set dummy ${ncn_progname}; ac_word=$2
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15958 $as_echo_n "checking for $ac_word... " >&6; }
15959 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15960 $as_echo_n "(cached) " >&6
15961 else
15962 if test -n "$NM_FOR_TARGET"; then
15963 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15964 else
15965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15966 for as_dir in $PATH
15968 IFS=$as_save_IFS
15969 test -z "$as_dir" && as_dir=.
15970 for ac_exec_ext in '' $ac_executable_extensions; do
15971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15972 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15974 break 2
15976 done
15977 done
15978 IFS=$as_save_IFS
15982 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15983 if test -n "$NM_FOR_TARGET"; then
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15985 $as_echo "$NM_FOR_TARGET" >&6; }
15986 else
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15988 $as_echo "no" >&6; }
15993 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15994 done
15997 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15998 set dummy nm
15999 if test $build = $target ; then
16000 NM_FOR_TARGET="$2"
16001 else
16002 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
16004 else
16005 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
16008 else
16009 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16015 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16016 if test -n "$with_build_time_tools"; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
16018 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
16019 if test -x $with_build_time_tools/objcopy; then
16020 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
16021 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
16023 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
16024 else
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16026 $as_echo "no" >&6; }
16028 elif test $build != $host && test $have_gcc_for_target = yes; then
16029 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
16030 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
16031 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16034 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16035 # Extract the first word of "objcopy", so it can be a program name with args.
16036 set dummy objcopy; ac_word=$2
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16038 $as_echo_n "checking for $ac_word... " >&6; }
16039 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
16040 $as_echo_n "(cached) " >&6
16041 else
16042 case $OBJCOPY_FOR_TARGET in
16043 [\\/]* | ?:[\\/]*)
16044 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
16047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16048 for as_dir in $gcc_cv_tool_dirs
16050 IFS=$as_save_IFS
16051 test -z "$as_dir" && as_dir=.
16052 for ac_exec_ext in '' $ac_executable_extensions; do
16053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16054 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16056 break 2
16058 done
16059 done
16060 IFS=$as_save_IFS
16063 esac
16065 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16066 if test -n "$OBJCOPY_FOR_TARGET"; then
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16068 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16069 else
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16071 $as_echo "no" >&6; }
16076 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16079 if test -n "$OBJCOPY_FOR_TARGET"; then
16080 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16081 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16082 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16085 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16086 for ncn_progname in objcopy; do
16087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16088 set dummy ${ncn_progname}; ac_word=$2
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16090 $as_echo_n "checking for $ac_word... " >&6; }
16091 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16092 $as_echo_n "(cached) " >&6
16093 else
16094 if test -n "$OBJCOPY_FOR_TARGET"; then
16095 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16096 else
16097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16098 for as_dir in $PATH
16100 IFS=$as_save_IFS
16101 test -z "$as_dir" && as_dir=.
16102 for ac_exec_ext in '' $ac_executable_extensions; do
16103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16104 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16106 break 2
16108 done
16109 done
16110 IFS=$as_save_IFS
16114 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16115 if test -n "$OBJCOPY_FOR_TARGET"; then
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16117 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16118 else
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16120 $as_echo "no" >&6; }
16124 done
16127 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16128 for ncn_progname in objcopy; do
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16130 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16131 if test -x $with_build_time_tools/${ncn_progname}; then
16132 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16134 $as_echo "yes" >&6; }
16135 break
16136 else
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16138 $as_echo "no" >&6; }
16140 done
16143 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16144 for ncn_progname in objcopy; do
16145 if test -n "$ncn_target_tool_prefix"; then
16146 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16147 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16149 $as_echo_n "checking for $ac_word... " >&6; }
16150 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16151 $as_echo_n "(cached) " >&6
16152 else
16153 if test -n "$OBJCOPY_FOR_TARGET"; then
16154 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16155 else
16156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16157 for as_dir in $PATH
16159 IFS=$as_save_IFS
16160 test -z "$as_dir" && as_dir=.
16161 for ac_exec_ext in '' $ac_executable_extensions; do
16162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16163 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16165 break 2
16167 done
16168 done
16169 IFS=$as_save_IFS
16173 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16174 if test -n "$OBJCOPY_FOR_TARGET"; then
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16176 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16177 else
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16179 $as_echo "no" >&6; }
16184 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16186 set dummy ${ncn_progname}; ac_word=$2
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16188 $as_echo_n "checking for $ac_word... " >&6; }
16189 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16190 $as_echo_n "(cached) " >&6
16191 else
16192 if test -n "$OBJCOPY_FOR_TARGET"; then
16193 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16194 else
16195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16196 for as_dir in $PATH
16198 IFS=$as_save_IFS
16199 test -z "$as_dir" && as_dir=.
16200 for ac_exec_ext in '' $ac_executable_extensions; do
16201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16202 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16204 break 2
16206 done
16207 done
16208 IFS=$as_save_IFS
16212 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16213 if test -n "$OBJCOPY_FOR_TARGET"; then
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16215 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16216 else
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16218 $as_echo "no" >&6; }
16223 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16224 done
16227 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16228 set dummy objcopy
16229 if test $build = $target ; then
16230 OBJCOPY_FOR_TARGET="$2"
16231 else
16232 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16234 else
16235 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16238 else
16239 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16245 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16246 if test -n "$with_build_time_tools"; then
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
16248 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
16249 if test -x $with_build_time_tools/objdump; then
16250 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16251 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16253 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16254 else
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256 $as_echo "no" >&6; }
16258 elif test $build != $host && test $have_gcc_for_target = yes; then
16259 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16260 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16261 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16264 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16265 # Extract the first word of "objdump", so it can be a program name with args.
16266 set dummy objdump; ac_word=$2
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16268 $as_echo_n "checking for $ac_word... " >&6; }
16269 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16270 $as_echo_n "(cached) " >&6
16271 else
16272 case $OBJDUMP_FOR_TARGET in
16273 [\\/]* | ?:[\\/]*)
16274 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16278 for as_dir in $gcc_cv_tool_dirs
16280 IFS=$as_save_IFS
16281 test -z "$as_dir" && as_dir=.
16282 for ac_exec_ext in '' $ac_executable_extensions; do
16283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16284 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16286 break 2
16288 done
16289 done
16290 IFS=$as_save_IFS
16293 esac
16295 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16296 if test -n "$OBJDUMP_FOR_TARGET"; then
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16298 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16299 else
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16301 $as_echo "no" >&6; }
16306 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16309 if test -n "$OBJDUMP_FOR_TARGET"; then
16310 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16311 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16312 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16315 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16316 for ncn_progname in objdump; do
16317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16318 set dummy ${ncn_progname}; ac_word=$2
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16320 $as_echo_n "checking for $ac_word... " >&6; }
16321 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16322 $as_echo_n "(cached) " >&6
16323 else
16324 if test -n "$OBJDUMP_FOR_TARGET"; then
16325 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16326 else
16327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16328 for as_dir in $PATH
16330 IFS=$as_save_IFS
16331 test -z "$as_dir" && as_dir=.
16332 for ac_exec_ext in '' $ac_executable_extensions; do
16333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16334 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16336 break 2
16338 done
16339 done
16340 IFS=$as_save_IFS
16344 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16345 if test -n "$OBJDUMP_FOR_TARGET"; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16347 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16348 else
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16350 $as_echo "no" >&6; }
16354 done
16357 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16358 for ncn_progname in objdump; do
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16360 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16361 if test -x $with_build_time_tools/${ncn_progname}; then
16362 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16364 $as_echo "yes" >&6; }
16365 break
16366 else
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16368 $as_echo "no" >&6; }
16370 done
16373 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16374 for ncn_progname in objdump; do
16375 if test -n "$ncn_target_tool_prefix"; then
16376 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16377 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16379 $as_echo_n "checking for $ac_word... " >&6; }
16380 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16381 $as_echo_n "(cached) " >&6
16382 else
16383 if test -n "$OBJDUMP_FOR_TARGET"; then
16384 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16385 else
16386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16387 for as_dir in $PATH
16389 IFS=$as_save_IFS
16390 test -z "$as_dir" && as_dir=.
16391 for ac_exec_ext in '' $ac_executable_extensions; do
16392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16393 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16395 break 2
16397 done
16398 done
16399 IFS=$as_save_IFS
16403 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16404 if test -n "$OBJDUMP_FOR_TARGET"; then
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16406 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16407 else
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16409 $as_echo "no" >&6; }
16414 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16416 set dummy ${ncn_progname}; ac_word=$2
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16418 $as_echo_n "checking for $ac_word... " >&6; }
16419 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16420 $as_echo_n "(cached) " >&6
16421 else
16422 if test -n "$OBJDUMP_FOR_TARGET"; then
16423 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16424 else
16425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16426 for as_dir in $PATH
16428 IFS=$as_save_IFS
16429 test -z "$as_dir" && as_dir=.
16430 for ac_exec_ext in '' $ac_executable_extensions; do
16431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16432 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16434 break 2
16436 done
16437 done
16438 IFS=$as_save_IFS
16442 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16443 if test -n "$OBJDUMP_FOR_TARGET"; then
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16445 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16446 else
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16448 $as_echo "no" >&6; }
16453 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16454 done
16457 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16458 set dummy objdump
16459 if test $build = $target ; then
16460 OBJDUMP_FOR_TARGET="$2"
16461 else
16462 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16464 else
16465 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16468 else
16469 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16475 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16476 if test -n "$with_build_time_tools"; then
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16478 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16479 if test -x $with_build_time_tools/otool; then
16480 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16481 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16483 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16484 else
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16486 $as_echo "no" >&6; }
16488 elif test $build != $host && test $have_gcc_for_target = yes; then
16489 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16490 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16491 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16494 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16495 # Extract the first word of "otool", so it can be a program name with args.
16496 set dummy otool; ac_word=$2
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16498 $as_echo_n "checking for $ac_word... " >&6; }
16499 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16500 $as_echo_n "(cached) " >&6
16501 else
16502 case $OTOOL_FOR_TARGET in
16503 [\\/]* | ?:[\\/]*)
16504 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16508 for as_dir in $gcc_cv_tool_dirs
16510 IFS=$as_save_IFS
16511 test -z "$as_dir" && as_dir=.
16512 for ac_exec_ext in '' $ac_executable_extensions; do
16513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16514 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16516 break 2
16518 done
16519 done
16520 IFS=$as_save_IFS
16523 esac
16525 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16526 if test -n "$OTOOL_FOR_TARGET"; then
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16528 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16529 else
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531 $as_echo "no" >&6; }
16536 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16539 if test -n "$OTOOL_FOR_TARGET"; then
16540 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16541 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16542 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16545 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16546 for ncn_progname in otool; do
16547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16548 set dummy ${ncn_progname}; ac_word=$2
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16550 $as_echo_n "checking for $ac_word... " >&6; }
16551 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16552 $as_echo_n "(cached) " >&6
16553 else
16554 if test -n "$OTOOL_FOR_TARGET"; then
16555 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16556 else
16557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16558 for as_dir in $PATH
16560 IFS=$as_save_IFS
16561 test -z "$as_dir" && as_dir=.
16562 for ac_exec_ext in '' $ac_executable_extensions; do
16563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16564 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16566 break 2
16568 done
16569 done
16570 IFS=$as_save_IFS
16574 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16575 if test -n "$OTOOL_FOR_TARGET"; then
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16577 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16578 else
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16580 $as_echo "no" >&6; }
16584 done
16587 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16588 for ncn_progname in otool; do
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16590 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16591 if test -x $with_build_time_tools/${ncn_progname}; then
16592 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16594 $as_echo "yes" >&6; }
16595 break
16596 else
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16598 $as_echo "no" >&6; }
16600 done
16603 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16604 for ncn_progname in otool; do
16605 if test -n "$ncn_target_tool_prefix"; then
16606 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16607 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16609 $as_echo_n "checking for $ac_word... " >&6; }
16610 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16611 $as_echo_n "(cached) " >&6
16612 else
16613 if test -n "$OTOOL_FOR_TARGET"; then
16614 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16615 else
16616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16617 for as_dir in $PATH
16619 IFS=$as_save_IFS
16620 test -z "$as_dir" && as_dir=.
16621 for ac_exec_ext in '' $ac_executable_extensions; do
16622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16623 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16625 break 2
16627 done
16628 done
16629 IFS=$as_save_IFS
16633 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16634 if test -n "$OTOOL_FOR_TARGET"; then
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16636 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16637 else
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16639 $as_echo "no" >&6; }
16644 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16646 set dummy ${ncn_progname}; ac_word=$2
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16648 $as_echo_n "checking for $ac_word... " >&6; }
16649 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16650 $as_echo_n "(cached) " >&6
16651 else
16652 if test -n "$OTOOL_FOR_TARGET"; then
16653 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16654 else
16655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16656 for as_dir in $PATH
16658 IFS=$as_save_IFS
16659 test -z "$as_dir" && as_dir=.
16660 for ac_exec_ext in '' $ac_executable_extensions; do
16661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16662 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16664 break 2
16666 done
16667 done
16668 IFS=$as_save_IFS
16672 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16673 if test -n "$OTOOL_FOR_TARGET"; then
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16675 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16676 else
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16678 $as_echo "no" >&6; }
16683 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16684 done
16687 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16688 set dummy otool
16689 if test $build = $target ; then
16690 OTOOL_FOR_TARGET="$2"
16691 else
16692 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16694 else
16695 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16698 else
16699 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16705 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16706 if test -n "$with_build_time_tools"; then
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16708 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16709 if test -x $with_build_time_tools/ranlib; then
16710 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16711 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16713 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16714 else
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16716 $as_echo "no" >&6; }
16718 elif test $build != $host && test $have_gcc_for_target = yes; then
16719 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16720 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16721 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16724 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16725 # Extract the first word of "ranlib", so it can be a program name with args.
16726 set dummy ranlib; ac_word=$2
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16728 $as_echo_n "checking for $ac_word... " >&6; }
16729 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16730 $as_echo_n "(cached) " >&6
16731 else
16732 case $RANLIB_FOR_TARGET in
16733 [\\/]* | ?:[\\/]*)
16734 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16738 for as_dir in $gcc_cv_tool_dirs
16740 IFS=$as_save_IFS
16741 test -z "$as_dir" && as_dir=.
16742 for ac_exec_ext in '' $ac_executable_extensions; do
16743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16744 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16746 break 2
16748 done
16749 done
16750 IFS=$as_save_IFS
16753 esac
16755 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16756 if test -n "$RANLIB_FOR_TARGET"; then
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16758 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16759 else
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16761 $as_echo "no" >&6; }
16766 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16769 if test -n "$RANLIB_FOR_TARGET"; then
16770 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16771 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16772 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16775 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16776 for ncn_progname in ranlib; do
16777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16778 set dummy ${ncn_progname}; ac_word=$2
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16780 $as_echo_n "checking for $ac_word... " >&6; }
16781 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16782 $as_echo_n "(cached) " >&6
16783 else
16784 if test -n "$RANLIB_FOR_TARGET"; then
16785 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16786 else
16787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16788 for as_dir in $PATH
16790 IFS=$as_save_IFS
16791 test -z "$as_dir" && as_dir=.
16792 for ac_exec_ext in '' $ac_executable_extensions; do
16793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16794 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16796 break 2
16798 done
16799 done
16800 IFS=$as_save_IFS
16804 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16805 if test -n "$RANLIB_FOR_TARGET"; then
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16807 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16808 else
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810 $as_echo "no" >&6; }
16814 done
16817 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16818 for ncn_progname in ranlib; do
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16820 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16821 if test -x $with_build_time_tools/${ncn_progname}; then
16822 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16824 $as_echo "yes" >&6; }
16825 break
16826 else
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16828 $as_echo "no" >&6; }
16830 done
16833 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16834 for ncn_progname in ranlib; do
16835 if test -n "$ncn_target_tool_prefix"; then
16836 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16837 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16839 $as_echo_n "checking for $ac_word... " >&6; }
16840 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16841 $as_echo_n "(cached) " >&6
16842 else
16843 if test -n "$RANLIB_FOR_TARGET"; then
16844 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16845 else
16846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16847 for as_dir in $PATH
16849 IFS=$as_save_IFS
16850 test -z "$as_dir" && as_dir=.
16851 for ac_exec_ext in '' $ac_executable_extensions; do
16852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16853 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16855 break 2
16857 done
16858 done
16859 IFS=$as_save_IFS
16863 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16864 if test -n "$RANLIB_FOR_TARGET"; then
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16866 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16867 else
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16869 $as_echo "no" >&6; }
16874 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16876 set dummy ${ncn_progname}; ac_word=$2
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16878 $as_echo_n "checking for $ac_word... " >&6; }
16879 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16880 $as_echo_n "(cached) " >&6
16881 else
16882 if test -n "$RANLIB_FOR_TARGET"; then
16883 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16884 else
16885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16886 for as_dir in $PATH
16888 IFS=$as_save_IFS
16889 test -z "$as_dir" && as_dir=.
16890 for ac_exec_ext in '' $ac_executable_extensions; do
16891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16892 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16894 break 2
16896 done
16897 done
16898 IFS=$as_save_IFS
16902 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16903 if test -n "$RANLIB_FOR_TARGET"; then
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16905 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16906 else
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16908 $as_echo "no" >&6; }
16913 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16914 done
16917 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16918 set dummy ranlib
16919 if test $build = $target ; then
16920 RANLIB_FOR_TARGET="$2"
16921 else
16922 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16924 else
16925 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16928 else
16929 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16935 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16936 if test -n "$with_build_time_tools"; then
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16938 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16939 if test -x $with_build_time_tools/readelf; then
16940 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16941 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16943 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16944 else
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16946 $as_echo "no" >&6; }
16948 elif test $build != $host && test $have_gcc_for_target = yes; then
16949 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16950 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16951 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16954 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16955 # Extract the first word of "readelf", so it can be a program name with args.
16956 set dummy readelf; ac_word=$2
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16958 $as_echo_n "checking for $ac_word... " >&6; }
16959 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16960 $as_echo_n "(cached) " >&6
16961 else
16962 case $READELF_FOR_TARGET in
16963 [\\/]* | ?:[\\/]*)
16964 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16968 for as_dir in $gcc_cv_tool_dirs
16970 IFS=$as_save_IFS
16971 test -z "$as_dir" && as_dir=.
16972 for ac_exec_ext in '' $ac_executable_extensions; do
16973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16974 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16976 break 2
16978 done
16979 done
16980 IFS=$as_save_IFS
16983 esac
16985 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16986 if test -n "$READELF_FOR_TARGET"; then
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16988 $as_echo "$READELF_FOR_TARGET" >&6; }
16989 else
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16991 $as_echo "no" >&6; }
16996 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16999 if test -n "$READELF_FOR_TARGET"; then
17000 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
17001 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17002 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17005 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17006 for ncn_progname in readelf; do
17007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17008 set dummy ${ncn_progname}; ac_word=$2
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17010 $as_echo_n "checking for $ac_word... " >&6; }
17011 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17012 $as_echo_n "(cached) " >&6
17013 else
17014 if test -n "$READELF_FOR_TARGET"; then
17015 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17016 else
17017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17018 for as_dir in $PATH
17020 IFS=$as_save_IFS
17021 test -z "$as_dir" && as_dir=.
17022 for ac_exec_ext in '' $ac_executable_extensions; do
17023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17024 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17026 break 2
17028 done
17029 done
17030 IFS=$as_save_IFS
17034 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17035 if test -n "$READELF_FOR_TARGET"; then
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17037 $as_echo "$READELF_FOR_TARGET" >&6; }
17038 else
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17040 $as_echo "no" >&6; }
17044 done
17047 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
17048 for ncn_progname in readelf; do
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17050 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17051 if test -x $with_build_time_tools/${ncn_progname}; then
17052 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17054 $as_echo "yes" >&6; }
17055 break
17056 else
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17058 $as_echo "no" >&6; }
17060 done
17063 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17064 for ncn_progname in readelf; do
17065 if test -n "$ncn_target_tool_prefix"; then
17066 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17067 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17069 $as_echo_n "checking for $ac_word... " >&6; }
17070 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17071 $as_echo_n "(cached) " >&6
17072 else
17073 if test -n "$READELF_FOR_TARGET"; then
17074 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17075 else
17076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17077 for as_dir in $PATH
17079 IFS=$as_save_IFS
17080 test -z "$as_dir" && as_dir=.
17081 for ac_exec_ext in '' $ac_executable_extensions; do
17082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17083 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17085 break 2
17087 done
17088 done
17089 IFS=$as_save_IFS
17093 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17094 if test -n "$READELF_FOR_TARGET"; then
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17096 $as_echo "$READELF_FOR_TARGET" >&6; }
17097 else
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099 $as_echo "no" >&6; }
17104 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17106 set dummy ${ncn_progname}; ac_word=$2
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17108 $as_echo_n "checking for $ac_word... " >&6; }
17109 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17110 $as_echo_n "(cached) " >&6
17111 else
17112 if test -n "$READELF_FOR_TARGET"; then
17113 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17114 else
17115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17116 for as_dir in $PATH
17118 IFS=$as_save_IFS
17119 test -z "$as_dir" && as_dir=.
17120 for ac_exec_ext in '' $ac_executable_extensions; do
17121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17122 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17124 break 2
17126 done
17127 done
17128 IFS=$as_save_IFS
17132 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17133 if test -n "$READELF_FOR_TARGET"; then
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17135 $as_echo "$READELF_FOR_TARGET" >&6; }
17136 else
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17138 $as_echo "no" >&6; }
17143 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17144 done
17147 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17148 set dummy readelf
17149 if test $build = $target ; then
17150 READELF_FOR_TARGET="$2"
17151 else
17152 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17154 else
17155 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17158 else
17159 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17165 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17166 if test -n "$with_build_time_tools"; then
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
17168 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
17169 if test -x $with_build_time_tools/strip; then
17170 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17171 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
17173 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17174 else
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17176 $as_echo "no" >&6; }
17178 elif test $build != $host && test $have_gcc_for_target = yes; then
17179 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17180 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17181 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17184 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17185 # Extract the first word of "strip", so it can be a program name with args.
17186 set dummy strip; ac_word=$2
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17188 $as_echo_n "checking for $ac_word... " >&6; }
17189 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17190 $as_echo_n "(cached) " >&6
17191 else
17192 case $STRIP_FOR_TARGET in
17193 [\\/]* | ?:[\\/]*)
17194 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17198 for as_dir in $gcc_cv_tool_dirs
17200 IFS=$as_save_IFS
17201 test -z "$as_dir" && as_dir=.
17202 for ac_exec_ext in '' $ac_executable_extensions; do
17203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17204 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17206 break 2
17208 done
17209 done
17210 IFS=$as_save_IFS
17213 esac
17215 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17216 if test -n "$STRIP_FOR_TARGET"; then
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17218 $as_echo "$STRIP_FOR_TARGET" >&6; }
17219 else
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17221 $as_echo "no" >&6; }
17226 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17229 if test -n "$STRIP_FOR_TARGET"; then
17230 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17231 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17232 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17235 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17236 for ncn_progname in strip; do
17237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17238 set dummy ${ncn_progname}; ac_word=$2
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17240 $as_echo_n "checking for $ac_word... " >&6; }
17241 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17242 $as_echo_n "(cached) " >&6
17243 else
17244 if test -n "$STRIP_FOR_TARGET"; then
17245 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17246 else
17247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17248 for as_dir in $PATH
17250 IFS=$as_save_IFS
17251 test -z "$as_dir" && as_dir=.
17252 for ac_exec_ext in '' $ac_executable_extensions; do
17253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17254 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17256 break 2
17258 done
17259 done
17260 IFS=$as_save_IFS
17264 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17265 if test -n "$STRIP_FOR_TARGET"; then
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17267 $as_echo "$STRIP_FOR_TARGET" >&6; }
17268 else
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17270 $as_echo "no" >&6; }
17274 done
17277 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17278 for ncn_progname in strip; do
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17280 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17281 if test -x $with_build_time_tools/${ncn_progname}; then
17282 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17284 $as_echo "yes" >&6; }
17285 break
17286 else
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17288 $as_echo "no" >&6; }
17290 done
17293 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17294 for ncn_progname in strip; do
17295 if test -n "$ncn_target_tool_prefix"; then
17296 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17297 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17299 $as_echo_n "checking for $ac_word... " >&6; }
17300 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17301 $as_echo_n "(cached) " >&6
17302 else
17303 if test -n "$STRIP_FOR_TARGET"; then
17304 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17305 else
17306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17307 for as_dir in $PATH
17309 IFS=$as_save_IFS
17310 test -z "$as_dir" && as_dir=.
17311 for ac_exec_ext in '' $ac_executable_extensions; do
17312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17313 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17315 break 2
17317 done
17318 done
17319 IFS=$as_save_IFS
17323 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17324 if test -n "$STRIP_FOR_TARGET"; then
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17326 $as_echo "$STRIP_FOR_TARGET" >&6; }
17327 else
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17329 $as_echo "no" >&6; }
17334 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17336 set dummy ${ncn_progname}; ac_word=$2
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17338 $as_echo_n "checking for $ac_word... " >&6; }
17339 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17340 $as_echo_n "(cached) " >&6
17341 else
17342 if test -n "$STRIP_FOR_TARGET"; then
17343 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17344 else
17345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17346 for as_dir in $PATH
17348 IFS=$as_save_IFS
17349 test -z "$as_dir" && as_dir=.
17350 for ac_exec_ext in '' $ac_executable_extensions; do
17351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17352 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17354 break 2
17356 done
17357 done
17358 IFS=$as_save_IFS
17362 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17363 if test -n "$STRIP_FOR_TARGET"; then
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17365 $as_echo "$STRIP_FOR_TARGET" >&6; }
17366 else
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368 $as_echo "no" >&6; }
17373 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17374 done
17377 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17378 set dummy strip
17379 if test $build = $target ; then
17380 STRIP_FOR_TARGET="$2"
17381 else
17382 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17384 else
17385 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17388 else
17389 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17395 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17396 if test -n "$with_build_time_tools"; then
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17398 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17399 if test -x $with_build_time_tools/windres; then
17400 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17401 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17403 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17404 else
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17406 $as_echo "no" >&6; }
17408 elif test $build != $host && test $have_gcc_for_target = yes; then
17409 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17410 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17411 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17414 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17415 # Extract the first word of "windres", so it can be a program name with args.
17416 set dummy windres; ac_word=$2
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17418 $as_echo_n "checking for $ac_word... " >&6; }
17419 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17420 $as_echo_n "(cached) " >&6
17421 else
17422 case $WINDRES_FOR_TARGET in
17423 [\\/]* | ?:[\\/]*)
17424 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17428 for as_dir in $gcc_cv_tool_dirs
17430 IFS=$as_save_IFS
17431 test -z "$as_dir" && as_dir=.
17432 for ac_exec_ext in '' $ac_executable_extensions; do
17433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17434 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17436 break 2
17438 done
17439 done
17440 IFS=$as_save_IFS
17443 esac
17445 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17446 if test -n "$WINDRES_FOR_TARGET"; then
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17448 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17449 else
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17451 $as_echo "no" >&6; }
17456 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17459 if test -n "$WINDRES_FOR_TARGET"; then
17460 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17461 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17462 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17465 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17466 for ncn_progname in windres; do
17467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17468 set dummy ${ncn_progname}; ac_word=$2
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17470 $as_echo_n "checking for $ac_word... " >&6; }
17471 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17472 $as_echo_n "(cached) " >&6
17473 else
17474 if test -n "$WINDRES_FOR_TARGET"; then
17475 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17476 else
17477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17478 for as_dir in $PATH
17480 IFS=$as_save_IFS
17481 test -z "$as_dir" && as_dir=.
17482 for ac_exec_ext in '' $ac_executable_extensions; do
17483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17484 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17486 break 2
17488 done
17489 done
17490 IFS=$as_save_IFS
17494 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17495 if test -n "$WINDRES_FOR_TARGET"; then
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17497 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17498 else
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17500 $as_echo "no" >&6; }
17504 done
17507 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17508 for ncn_progname in windres; do
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17510 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17511 if test -x $with_build_time_tools/${ncn_progname}; then
17512 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17514 $as_echo "yes" >&6; }
17515 break
17516 else
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17518 $as_echo "no" >&6; }
17520 done
17523 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17524 for ncn_progname in windres; do
17525 if test -n "$ncn_target_tool_prefix"; then
17526 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17527 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17529 $as_echo_n "checking for $ac_word... " >&6; }
17530 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17531 $as_echo_n "(cached) " >&6
17532 else
17533 if test -n "$WINDRES_FOR_TARGET"; then
17534 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17535 else
17536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17537 for as_dir in $PATH
17539 IFS=$as_save_IFS
17540 test -z "$as_dir" && as_dir=.
17541 for ac_exec_ext in '' $ac_executable_extensions; do
17542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17543 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17545 break 2
17547 done
17548 done
17549 IFS=$as_save_IFS
17553 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17554 if test -n "$WINDRES_FOR_TARGET"; then
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17556 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17557 else
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17559 $as_echo "no" >&6; }
17564 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17566 set dummy ${ncn_progname}; ac_word=$2
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17568 $as_echo_n "checking for $ac_word... " >&6; }
17569 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17570 $as_echo_n "(cached) " >&6
17571 else
17572 if test -n "$WINDRES_FOR_TARGET"; then
17573 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17574 else
17575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17576 for as_dir in $PATH
17578 IFS=$as_save_IFS
17579 test -z "$as_dir" && as_dir=.
17580 for ac_exec_ext in '' $ac_executable_extensions; do
17581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17582 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17584 break 2
17586 done
17587 done
17588 IFS=$as_save_IFS
17592 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17593 if test -n "$WINDRES_FOR_TARGET"; then
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17595 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17596 else
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17598 $as_echo "no" >&6; }
17603 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17604 done
17607 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17608 set dummy windres
17609 if test $build = $target ; then
17610 WINDRES_FOR_TARGET="$2"
17611 else
17612 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17614 else
17615 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17618 else
17619 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17625 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17626 if test -n "$with_build_time_tools"; then
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17628 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17629 if test -x $with_build_time_tools/windmc; then
17630 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17631 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17633 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17634 else
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17636 $as_echo "no" >&6; }
17638 elif test $build != $host && test $have_gcc_for_target = yes; then
17639 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17640 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17641 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17644 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17645 # Extract the first word of "windmc", so it can be a program name with args.
17646 set dummy windmc; ac_word=$2
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17648 $as_echo_n "checking for $ac_word... " >&6; }
17649 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17650 $as_echo_n "(cached) " >&6
17651 else
17652 case $WINDMC_FOR_TARGET in
17653 [\\/]* | ?:[\\/]*)
17654 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17658 for as_dir in $gcc_cv_tool_dirs
17660 IFS=$as_save_IFS
17661 test -z "$as_dir" && as_dir=.
17662 for ac_exec_ext in '' $ac_executable_extensions; do
17663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17664 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17666 break 2
17668 done
17669 done
17670 IFS=$as_save_IFS
17673 esac
17675 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17676 if test -n "$WINDMC_FOR_TARGET"; then
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17678 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17679 else
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17681 $as_echo "no" >&6; }
17686 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17689 if test -n "$WINDMC_FOR_TARGET"; then
17690 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17691 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17692 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17695 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17696 for ncn_progname in windmc; do
17697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17698 set dummy ${ncn_progname}; ac_word=$2
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17700 $as_echo_n "checking for $ac_word... " >&6; }
17701 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17702 $as_echo_n "(cached) " >&6
17703 else
17704 if test -n "$WINDMC_FOR_TARGET"; then
17705 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17706 else
17707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17708 for as_dir in $PATH
17710 IFS=$as_save_IFS
17711 test -z "$as_dir" && as_dir=.
17712 for ac_exec_ext in '' $ac_executable_extensions; do
17713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17714 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17716 break 2
17718 done
17719 done
17720 IFS=$as_save_IFS
17724 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17725 if test -n "$WINDMC_FOR_TARGET"; then
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17727 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17728 else
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17730 $as_echo "no" >&6; }
17734 done
17737 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17738 for ncn_progname in windmc; do
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17740 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17741 if test -x $with_build_time_tools/${ncn_progname}; then
17742 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17744 $as_echo "yes" >&6; }
17745 break
17746 else
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17748 $as_echo "no" >&6; }
17750 done
17753 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17754 for ncn_progname in windmc; do
17755 if test -n "$ncn_target_tool_prefix"; then
17756 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17757 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17759 $as_echo_n "checking for $ac_word... " >&6; }
17760 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17761 $as_echo_n "(cached) " >&6
17762 else
17763 if test -n "$WINDMC_FOR_TARGET"; then
17764 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17765 else
17766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17767 for as_dir in $PATH
17769 IFS=$as_save_IFS
17770 test -z "$as_dir" && as_dir=.
17771 for ac_exec_ext in '' $ac_executable_extensions; do
17772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17773 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17775 break 2
17777 done
17778 done
17779 IFS=$as_save_IFS
17783 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17784 if test -n "$WINDMC_FOR_TARGET"; then
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17786 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17787 else
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17789 $as_echo "no" >&6; }
17794 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17796 set dummy ${ncn_progname}; ac_word=$2
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17798 $as_echo_n "checking for $ac_word... " >&6; }
17799 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17800 $as_echo_n "(cached) " >&6
17801 else
17802 if test -n "$WINDMC_FOR_TARGET"; then
17803 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17804 else
17805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17806 for as_dir in $PATH
17808 IFS=$as_save_IFS
17809 test -z "$as_dir" && as_dir=.
17810 for ac_exec_ext in '' $ac_executable_extensions; do
17811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17812 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17814 break 2
17816 done
17817 done
17818 IFS=$as_save_IFS
17822 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17823 if test -n "$WINDMC_FOR_TARGET"; then
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17825 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17826 else
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17828 $as_echo "no" >&6; }
17833 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17834 done
17837 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17838 set dummy windmc
17839 if test $build = $target ; then
17840 WINDMC_FOR_TARGET="$2"
17841 else
17842 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17844 else
17845 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17848 else
17849 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17853 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17856 $as_echo_n "checking where to find the target ar... " >&6; }
17857 if test "x${build}" != "x${host}" ; then
17858 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17859 # We already found the complete path
17860 ac_dir=`dirname $AR_FOR_TARGET`
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17862 $as_echo "pre-installed in $ac_dir" >&6; }
17863 else
17864 # Canadian cross, just use what we found
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17866 $as_echo "pre-installed" >&6; }
17868 else
17869 ok=yes
17870 case " ${configdirs} " in
17871 *" binutils "*) ;;
17872 *) ok=no ;;
17873 esac
17875 if test $ok = yes; then
17876 # An in-tree tool is available and we can use it
17877 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17879 $as_echo "just compiled" >&6; }
17880 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17881 # We already found the complete path
17882 ac_dir=`dirname $AR_FOR_TARGET`
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17884 $as_echo "pre-installed in $ac_dir" >&6; }
17885 elif test "x$target" = "x$host"; then
17886 # We can use an host tool
17887 AR_FOR_TARGET='$(AR)'
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17889 $as_echo "host tool" >&6; }
17890 else
17891 # We need a cross tool
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17893 $as_echo "pre-installed" >&6; }
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17898 $as_echo_n "checking where to find the target as... " >&6; }
17899 if test "x${build}" != "x${host}" ; then
17900 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17901 # We already found the complete path
17902 ac_dir=`dirname $AS_FOR_TARGET`
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17904 $as_echo "pre-installed in $ac_dir" >&6; }
17905 else
17906 # Canadian cross, just use what we found
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17908 $as_echo "pre-installed" >&6; }
17910 else
17911 ok=yes
17912 case " ${configdirs} " in
17913 *" gas "*) ;;
17914 *) ok=no ;;
17915 esac
17917 if test $ok = yes; then
17918 # An in-tree tool is available and we can use it
17919 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17921 $as_echo "just compiled" >&6; }
17922 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17923 # We already found the complete path
17924 ac_dir=`dirname $AS_FOR_TARGET`
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17926 $as_echo "pre-installed in $ac_dir" >&6; }
17927 elif test "x$target" = "x$host"; then
17928 # We can use an host tool
17929 AS_FOR_TARGET='$(AS)'
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17931 $as_echo "host tool" >&6; }
17932 else
17933 # We need a cross tool
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17935 $as_echo "pre-installed" >&6; }
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17940 $as_echo_n "checking where to find the target cc... " >&6; }
17941 if test "x${build}" != "x${host}" ; then
17942 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17943 # We already found the complete path
17944 ac_dir=`dirname $CC_FOR_TARGET`
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17946 $as_echo "pre-installed in $ac_dir" >&6; }
17947 else
17948 # Canadian cross, just use what we found
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17950 $as_echo "pre-installed" >&6; }
17952 else
17953 ok=yes
17954 case " ${configdirs} " in
17955 *" gcc "*) ;;
17956 *) ok=no ;;
17957 esac
17959 if test $ok = yes; then
17960 # An in-tree tool is available and we can use it
17961 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17963 $as_echo "just compiled" >&6; }
17964 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17965 # We already found the complete path
17966 ac_dir=`dirname $CC_FOR_TARGET`
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17968 $as_echo "pre-installed in $ac_dir" >&6; }
17969 elif test "x$target" = "x$host"; then
17970 # We can use an host tool
17971 CC_FOR_TARGET='$(CC)'
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17973 $as_echo "host tool" >&6; }
17974 else
17975 # We need a cross tool
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17977 $as_echo "pre-installed" >&6; }
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17982 $as_echo_n "checking where to find the target c++... " >&6; }
17983 if test "x${build}" != "x${host}" ; then
17984 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17985 # We already found the complete path
17986 ac_dir=`dirname $CXX_FOR_TARGET`
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17988 $as_echo "pre-installed in $ac_dir" >&6; }
17989 else
17990 # Canadian cross, just use what we found
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17992 $as_echo "pre-installed" >&6; }
17994 else
17995 ok=yes
17996 case " ${configdirs} " in
17997 *" gcc "*) ;;
17998 *) ok=no ;;
17999 esac
18000 case ,${enable_languages}, in
18001 *,c++,*) ;;
18002 *) ok=no ;;
18003 esac
18004 if test $ok = yes; then
18005 # An in-tree tool is available and we can use it
18006 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'
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18008 $as_echo "just compiled" >&6; }
18009 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18010 # We already found the complete path
18011 ac_dir=`dirname $CXX_FOR_TARGET`
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18013 $as_echo "pre-installed in $ac_dir" >&6; }
18014 elif test "x$target" = "x$host"; then
18015 # We can use an host tool
18016 CXX_FOR_TARGET='$(CXX)'
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18018 $as_echo "host tool" >&6; }
18019 else
18020 # We need a cross tool
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18022 $as_echo "pre-installed" >&6; }
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
18027 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
18028 if test "x${build}" != "x${host}" ; then
18029 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18030 # We already found the complete path
18031 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18033 $as_echo "pre-installed in $ac_dir" >&6; }
18034 else
18035 # Canadian cross, just use what we found
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18037 $as_echo "pre-installed" >&6; }
18039 else
18040 ok=yes
18041 case " ${configdirs} " in
18042 *" gcc "*) ;;
18043 *) ok=no ;;
18044 esac
18045 case ,${enable_languages}, in
18046 *,c++,*) ;;
18047 *) ok=no ;;
18048 esac
18049 if test $ok = yes; then
18050 # An in-tree tool is available and we can use it
18051 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'
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18053 $as_echo "just compiled" >&6; }
18054 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18055 # We already found the complete path
18056 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18058 $as_echo "pre-installed in $ac_dir" >&6; }
18059 elif test "x$target" = "x$host"; then
18060 # We can use an host tool
18061 RAW_CXX_FOR_TARGET='$(CXX)'
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18063 $as_echo "host tool" >&6; }
18064 else
18065 # We need a cross tool
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18067 $as_echo "pre-installed" >&6; }
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
18072 $as_echo_n "checking where to find the target dlltool... " >&6; }
18073 if test "x${build}" != "x${host}" ; then
18074 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18075 # We already found the complete path
18076 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18078 $as_echo "pre-installed in $ac_dir" >&6; }
18079 else
18080 # Canadian cross, just use what we found
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18082 $as_echo "pre-installed" >&6; }
18084 else
18085 ok=yes
18086 case " ${configdirs} " in
18087 *" binutils "*) ;;
18088 *) ok=no ;;
18089 esac
18091 if test $ok = yes; then
18092 # An in-tree tool is available and we can use it
18093 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18095 $as_echo "just compiled" >&6; }
18096 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18097 # We already found the complete path
18098 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18100 $as_echo "pre-installed in $ac_dir" >&6; }
18101 elif test "x$target" = "x$host"; then
18102 # We can use an host tool
18103 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18105 $as_echo "host tool" >&6; }
18106 else
18107 # We need a cross tool
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18109 $as_echo "pre-installed" >&6; }
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
18114 $as_echo_n "checking where to find the target dsymutil... " >&6; }
18115 if test "x${build}" != "x${host}" ; then
18116 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18117 # We already found the complete path
18118 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18120 $as_echo "pre-installed in $ac_dir" >&6; }
18121 else
18122 # Canadian cross, just use what we found
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18124 $as_echo "pre-installed" >&6; }
18126 else
18127 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18128 # We already found the complete path
18129 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18131 $as_echo "pre-installed in $ac_dir" >&6; }
18132 elif test "x$target" = "x$host"; then
18133 # We can use an host tool
18134 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18136 $as_echo "host tool" >&6; }
18137 else
18138 # We need a cross tool
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18140 $as_echo "pre-installed" >&6; }
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
18145 $as_echo_n "checking where to find the target gcc... " >&6; }
18146 if test "x${build}" != "x${host}" ; then
18147 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18148 # We already found the complete path
18149 ac_dir=`dirname $GCC_FOR_TARGET`
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18151 $as_echo "pre-installed in $ac_dir" >&6; }
18152 else
18153 # Canadian cross, just use what we found
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18155 $as_echo "pre-installed" >&6; }
18157 else
18158 ok=yes
18159 case " ${configdirs} " in
18160 *" gcc "*) ;;
18161 *) ok=no ;;
18162 esac
18164 if test $ok = yes; then
18165 # An in-tree tool is available and we can use it
18166 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18168 $as_echo "just compiled" >&6; }
18169 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18170 # We already found the complete path
18171 ac_dir=`dirname $GCC_FOR_TARGET`
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18173 $as_echo "pre-installed in $ac_dir" >&6; }
18174 elif test "x$target" = "x$host"; then
18175 # We can use an host tool
18176 GCC_FOR_TARGET='$()'
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18178 $as_echo "host tool" >&6; }
18179 else
18180 # We need a cross tool
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18182 $as_echo "pre-installed" >&6; }
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
18187 $as_echo_n "checking where to find the target gfortran... " >&6; }
18188 if test "x${build}" != "x${host}" ; then
18189 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18190 # We already found the complete path
18191 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18193 $as_echo "pre-installed in $ac_dir" >&6; }
18194 else
18195 # Canadian cross, just use what we found
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18197 $as_echo "pre-installed" >&6; }
18199 else
18200 ok=yes
18201 case " ${configdirs} " in
18202 *" gcc "*) ;;
18203 *) ok=no ;;
18204 esac
18205 case ,${enable_languages}, in
18206 *,fortran,*) ;;
18207 *) ok=no ;;
18208 esac
18209 if test $ok = yes; then
18210 # An in-tree tool is available and we can use it
18211 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18213 $as_echo "just compiled" >&6; }
18214 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18215 # We already found the complete path
18216 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18218 $as_echo "pre-installed in $ac_dir" >&6; }
18219 elif test "x$target" = "x$host"; then
18220 # We can use an host tool
18221 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18223 $as_echo "host tool" >&6; }
18224 else
18225 # We need a cross tool
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18227 $as_echo "pre-installed" >&6; }
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
18232 $as_echo_n "checking where to find the target gccgo... " >&6; }
18233 if test "x${build}" != "x${host}" ; then
18234 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18235 # We already found the complete path
18236 ac_dir=`dirname $GOC_FOR_TARGET`
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18238 $as_echo "pre-installed in $ac_dir" >&6; }
18239 else
18240 # Canadian cross, just use what we found
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18242 $as_echo "pre-installed" >&6; }
18244 else
18245 ok=yes
18246 case " ${configdirs} " in
18247 *" gcc "*) ;;
18248 *) ok=no ;;
18249 esac
18250 case ,${enable_languages}, in
18251 *,go,*) ;;
18252 *) ok=no ;;
18253 esac
18254 if test $ok = yes; then
18255 # An in-tree tool is available and we can use it
18256 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18258 $as_echo "just compiled" >&6; }
18259 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18260 # We already found the complete path
18261 ac_dir=`dirname $GOC_FOR_TARGET`
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18263 $as_echo "pre-installed in $ac_dir" >&6; }
18264 elif test "x$target" = "x$host"; then
18265 # We can use an host tool
18266 GOC_FOR_TARGET='$(GOC)'
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18268 $as_echo "host tool" >&6; }
18269 else
18270 # We need a cross tool
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18272 $as_echo "pre-installed" >&6; }
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18277 $as_echo_n "checking where to find the target gdc... " >&6; }
18278 if test "x${build}" != "x${host}" ; then
18279 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18280 # We already found the complete path
18281 ac_dir=`dirname $GDC_FOR_TARGET`
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18283 $as_echo "pre-installed in $ac_dir" >&6; }
18284 else
18285 # Canadian cross, just use what we found
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18287 $as_echo "pre-installed" >&6; }
18289 else
18290 ok=yes
18291 case " ${configdirs} " in
18292 *" gcc "*) ;;
18293 *) ok=no ;;
18294 esac
18295 case ,${enable_languages}, in
18296 *,d,*) ;;
18297 *) ok=no ;;
18298 esac
18299 if test $ok = yes; then
18300 # An in-tree tool is available and we can use it
18301 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18303 $as_echo "just compiled" >&6; }
18304 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18305 # We already found the complete path
18306 ac_dir=`dirname $GDC_FOR_TARGET`
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18308 $as_echo "pre-installed in $ac_dir" >&6; }
18309 elif test "x$target" = "x$host"; then
18310 # We can use an host tool
18311 GDC_FOR_TARGET='$(GDC)'
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18313 $as_echo "host tool" >&6; }
18314 else
18315 # We need a cross tool
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18317 $as_echo "pre-installed" >&6; }
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18322 $as_echo_n "checking where to find the target gm2... " >&6; }
18323 if test "x${build}" != "x${host}" ; then
18324 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18325 # We already found the complete path
18326 ac_dir=`dirname $GM2_FOR_TARGET`
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18328 $as_echo "pre-installed in $ac_dir" >&6; }
18329 else
18330 # Canadian cross, just use what we found
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18332 $as_echo "pre-installed" >&6; }
18334 else
18335 ok=yes
18336 case " ${configdirs} " in
18337 *" gcc "*) ;;
18338 *) ok=no ;;
18339 esac
18340 case ,${enable_languages}, in
18341 *,m2,*) ;;
18342 *) ok=no ;;
18343 esac
18344 if test $ok = yes; then
18345 # An in-tree tool is available and we can use it
18346 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18348 $as_echo "just compiled" >&6; }
18349 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18350 # We already found the complete path
18351 ac_dir=`dirname $GM2_FOR_TARGET`
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18353 $as_echo "pre-installed in $ac_dir" >&6; }
18354 elif test "x$target" = "x$host"; then
18355 # We can use an host tool
18356 GM2_FOR_TARGET='$(GM2)'
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18358 $as_echo "host tool" >&6; }
18359 else
18360 # We need a cross tool
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18362 $as_echo "pre-installed" >&6; }
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18367 $as_echo_n "checking where to find the target ld... " >&6; }
18368 if test "x${build}" != "x${host}" ; then
18369 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18370 # We already found the complete path
18371 ac_dir=`dirname $LD_FOR_TARGET`
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18373 $as_echo "pre-installed in $ac_dir" >&6; }
18374 else
18375 # Canadian cross, just use what we found
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18377 $as_echo "pre-installed" >&6; }
18379 else
18380 ok=yes
18381 case " ${configdirs} " in
18382 *" ld "*) ;;
18383 *) ok=no ;;
18384 esac
18386 if test $ok = yes; then
18387 # An in-tree tool is available and we can use it
18388 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18390 $as_echo "just compiled" >&6; }
18391 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18392 # We already found the complete path
18393 ac_dir=`dirname $LD_FOR_TARGET`
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18395 $as_echo "pre-installed in $ac_dir" >&6; }
18396 elif test "x$target" = "x$host"; then
18397 # We can use an host tool
18398 LD_FOR_TARGET='$(LD)'
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18400 $as_echo "host tool" >&6; }
18401 else
18402 # We need a cross tool
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18404 $as_echo "pre-installed" >&6; }
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18409 $as_echo_n "checking where to find the target lipo... " >&6; }
18410 if test "x${build}" != "x${host}" ; then
18411 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18412 # We already found the complete path
18413 ac_dir=`dirname $LIPO_FOR_TARGET`
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18415 $as_echo "pre-installed in $ac_dir" >&6; }
18416 else
18417 # Canadian cross, just use what we found
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18419 $as_echo "pre-installed" >&6; }
18421 else
18422 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18423 # We already found the complete path
18424 ac_dir=`dirname $LIPO_FOR_TARGET`
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18426 $as_echo "pre-installed in $ac_dir" >&6; }
18427 elif test "x$target" = "x$host"; then
18428 # We can use an host tool
18429 LIPO_FOR_TARGET='$(LIPO)'
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18431 $as_echo "host tool" >&6; }
18432 else
18433 # We need a cross tool
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18435 $as_echo "pre-installed" >&6; }
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18440 $as_echo_n "checking where to find the target nm... " >&6; }
18441 if test "x${build}" != "x${host}" ; then
18442 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18443 # We already found the complete path
18444 ac_dir=`dirname $NM_FOR_TARGET`
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18446 $as_echo "pre-installed in $ac_dir" >&6; }
18447 else
18448 # Canadian cross, just use what we found
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18450 $as_echo "pre-installed" >&6; }
18452 else
18453 ok=yes
18454 case " ${configdirs} " in
18455 *" binutils "*) ;;
18456 *) ok=no ;;
18457 esac
18459 if test $ok = yes; then
18460 # An in-tree tool is available and we can use it
18461 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18463 $as_echo "just compiled" >&6; }
18464 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18465 # We already found the complete path
18466 ac_dir=`dirname $NM_FOR_TARGET`
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18468 $as_echo "pre-installed in $ac_dir" >&6; }
18469 elif test "x$target" = "x$host"; then
18470 # We can use an host tool
18471 NM_FOR_TARGET='$(NM)'
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18473 $as_echo "host tool" >&6; }
18474 else
18475 # We need a cross tool
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18477 $as_echo "pre-installed" >&6; }
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18482 $as_echo_n "checking where to find the target objcopy... " >&6; }
18483 if test "x${build}" != "x${host}" ; then
18484 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18485 # We already found the complete path
18486 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18488 $as_echo "pre-installed in $ac_dir" >&6; }
18489 else
18490 # Canadian cross, just use what we found
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18492 $as_echo "pre-installed" >&6; }
18494 else
18495 ok=yes
18496 case " ${configdirs} " in
18497 *" binutils "*) ;;
18498 *) ok=no ;;
18499 esac
18501 if test $ok = yes; then
18502 # An in-tree tool is available and we can use it
18503 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18505 $as_echo "just compiled" >&6; }
18506 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18507 # We already found the complete path
18508 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18510 $as_echo "pre-installed in $ac_dir" >&6; }
18511 elif test "x$target" = "x$host"; then
18512 # We can use an host tool
18513 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18515 $as_echo "host tool" >&6; }
18516 else
18517 # We need a cross tool
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18519 $as_echo "pre-installed" >&6; }
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18524 $as_echo_n "checking where to find the target objdump... " >&6; }
18525 if test "x${build}" != "x${host}" ; then
18526 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18527 # We already found the complete path
18528 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18530 $as_echo "pre-installed in $ac_dir" >&6; }
18531 else
18532 # Canadian cross, just use what we found
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18534 $as_echo "pre-installed" >&6; }
18536 else
18537 ok=yes
18538 case " ${configdirs} " in
18539 *" binutils "*) ;;
18540 *) ok=no ;;
18541 esac
18543 if test $ok = yes; then
18544 # An in-tree tool is available and we can use it
18545 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18547 $as_echo "just compiled" >&6; }
18548 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18549 # We already found the complete path
18550 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18552 $as_echo "pre-installed in $ac_dir" >&6; }
18553 elif test "x$target" = "x$host"; then
18554 # We can use an host tool
18555 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18557 $as_echo "host tool" >&6; }
18558 else
18559 # We need a cross tool
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18561 $as_echo "pre-installed" >&6; }
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18566 $as_echo_n "checking where to find the target otool... " >&6; }
18567 if test "x${build}" != "x${host}" ; then
18568 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18569 # We already found the complete path
18570 ac_dir=`dirname $OTOOL_FOR_TARGET`
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18572 $as_echo "pre-installed in $ac_dir" >&6; }
18573 else
18574 # Canadian cross, just use what we found
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18576 $as_echo "pre-installed" >&6; }
18578 else
18579 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18580 # We already found the complete path
18581 ac_dir=`dirname $OTOOL_FOR_TARGET`
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18583 $as_echo "pre-installed in $ac_dir" >&6; }
18584 elif test "x$target" = "x$host"; then
18585 # We can use an host tool
18586 OTOOL_FOR_TARGET='$(OTOOL)'
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18588 $as_echo "host tool" >&6; }
18589 else
18590 # We need a cross tool
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18592 $as_echo "pre-installed" >&6; }
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18597 $as_echo_n "checking where to find the target ranlib... " >&6; }
18598 if test "x${build}" != "x${host}" ; then
18599 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18600 # We already found the complete path
18601 ac_dir=`dirname $RANLIB_FOR_TARGET`
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18603 $as_echo "pre-installed in $ac_dir" >&6; }
18604 else
18605 # Canadian cross, just use what we found
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18607 $as_echo "pre-installed" >&6; }
18609 else
18610 ok=yes
18611 case " ${configdirs} " in
18612 *" binutils "*) ;;
18613 *) ok=no ;;
18614 esac
18616 if test $ok = yes; then
18617 # An in-tree tool is available and we can use it
18618 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18620 $as_echo "just compiled" >&6; }
18621 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18622 # We already found the complete path
18623 ac_dir=`dirname $RANLIB_FOR_TARGET`
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18625 $as_echo "pre-installed in $ac_dir" >&6; }
18626 elif test "x$target" = "x$host"; then
18627 # We can use an host tool
18628 RANLIB_FOR_TARGET='$(RANLIB)'
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18630 $as_echo "host tool" >&6; }
18631 else
18632 # We need a cross tool
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18634 $as_echo "pre-installed" >&6; }
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18639 $as_echo_n "checking where to find the target readelf... " >&6; }
18640 if test "x${build}" != "x${host}" ; then
18641 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18642 # We already found the complete path
18643 ac_dir=`dirname $READELF_FOR_TARGET`
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18645 $as_echo "pre-installed in $ac_dir" >&6; }
18646 else
18647 # Canadian cross, just use what we found
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18649 $as_echo "pre-installed" >&6; }
18651 else
18652 ok=yes
18653 case " ${configdirs} " in
18654 *" binutils "*) ;;
18655 *) ok=no ;;
18656 esac
18658 if test $ok = yes; then
18659 # An in-tree tool is available and we can use it
18660 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18662 $as_echo "just compiled" >&6; }
18663 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18664 # We already found the complete path
18665 ac_dir=`dirname $READELF_FOR_TARGET`
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18667 $as_echo "pre-installed in $ac_dir" >&6; }
18668 elif test "x$target" = "x$host"; then
18669 # We can use an host tool
18670 READELF_FOR_TARGET='$(READELF)'
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18672 $as_echo "host tool" >&6; }
18673 else
18674 # We need a cross tool
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18676 $as_echo "pre-installed" >&6; }
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18681 $as_echo_n "checking where to find the target strip... " >&6; }
18682 if test "x${build}" != "x${host}" ; then
18683 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18684 # We already found the complete path
18685 ac_dir=`dirname $STRIP_FOR_TARGET`
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18687 $as_echo "pre-installed in $ac_dir" >&6; }
18688 else
18689 # Canadian cross, just use what we found
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18691 $as_echo "pre-installed" >&6; }
18693 else
18694 ok=yes
18695 case " ${configdirs} " in
18696 *" binutils "*) ;;
18697 *) ok=no ;;
18698 esac
18700 if test $ok = yes; then
18701 # An in-tree tool is available and we can use it
18702 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18704 $as_echo "just compiled" >&6; }
18705 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18706 # We already found the complete path
18707 ac_dir=`dirname $STRIP_FOR_TARGET`
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18709 $as_echo "pre-installed in $ac_dir" >&6; }
18710 elif test "x$target" = "x$host"; then
18711 # We can use an host tool
18712 STRIP_FOR_TARGET='$(STRIP)'
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18714 $as_echo "host tool" >&6; }
18715 else
18716 # We need a cross tool
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18718 $as_echo "pre-installed" >&6; }
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18723 $as_echo_n "checking where to find the target windres... " >&6; }
18724 if test "x${build}" != "x${host}" ; then
18725 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18726 # We already found the complete path
18727 ac_dir=`dirname $WINDRES_FOR_TARGET`
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18729 $as_echo "pre-installed in $ac_dir" >&6; }
18730 else
18731 # Canadian cross, just use what we found
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18733 $as_echo "pre-installed" >&6; }
18735 else
18736 ok=yes
18737 case " ${configdirs} " in
18738 *" binutils "*) ;;
18739 *) ok=no ;;
18740 esac
18742 if test $ok = yes; then
18743 # An in-tree tool is available and we can use it
18744 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18746 $as_echo "just compiled" >&6; }
18747 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18748 # We already found the complete path
18749 ac_dir=`dirname $WINDRES_FOR_TARGET`
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18751 $as_echo "pre-installed in $ac_dir" >&6; }
18752 elif test "x$target" = "x$host"; then
18753 # We can use an host tool
18754 WINDRES_FOR_TARGET='$(WINDRES)'
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18756 $as_echo "host tool" >&6; }
18757 else
18758 # We need a cross tool
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18760 $as_echo "pre-installed" >&6; }
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18765 $as_echo_n "checking where to find the target windmc... " >&6; }
18766 if test "x${build}" != "x${host}" ; then
18767 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18768 # We already found the complete path
18769 ac_dir=`dirname $WINDMC_FOR_TARGET`
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18771 $as_echo "pre-installed in $ac_dir" >&6; }
18772 else
18773 # Canadian cross, just use what we found
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18775 $as_echo "pre-installed" >&6; }
18777 else
18778 ok=yes
18779 case " ${configdirs} " in
18780 *" binutils "*) ;;
18781 *) ok=no ;;
18782 esac
18784 if test $ok = yes; then
18785 # An in-tree tool is available and we can use it
18786 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18788 $as_echo "just compiled" >&6; }
18789 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18790 # We already found the complete path
18791 ac_dir=`dirname $WINDMC_FOR_TARGET`
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18793 $as_echo "pre-installed in $ac_dir" >&6; }
18794 elif test "x$target" = "x$host"; then
18795 # We can use an host tool
18796 WINDMC_FOR_TARGET='$(WINDMC)'
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18798 $as_echo "host tool" >&6; }
18799 else
18800 # We need a cross tool
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18802 $as_echo "pre-installed" >&6; }
18810 # Certain tools may need extra flags.
18811 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18812 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18813 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18815 # When building target libraries, except in a Canadian cross, we use
18816 # the same toolchain as the compiler we just built.
18817 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18818 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18819 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18820 if test $host = $build; then
18821 case " $configdirs " in
18822 *" gcc "*)
18823 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18824 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18825 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18827 esac
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18835 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18836 # Check whether --enable-maintainer-mode was given.
18837 if test "${enable_maintainer_mode+set}" = set; then :
18838 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18839 else
18840 USE_MAINTAINER_MODE=no
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18844 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18847 if test "$USE_MAINTAINER_MODE" = yes; then
18848 MAINTAINER_MODE_TRUE=
18849 MAINTAINER_MODE_FALSE='#'
18850 else
18851 MAINTAINER_MODE_TRUE='#'
18852 MAINTAINER_MODE_FALSE=
18854 MAINT=$MAINTAINER_MODE_TRUE
18856 # ---------------------
18857 # GCC bootstrap support
18858 # ---------------------
18860 # Stage specific cflags for build.
18861 stage1_cflags="-g"
18862 case $build in
18863 vax-*-*)
18864 case ${GCC} in
18865 yes) stage1_cflags="-g -Wa,-J" ;;
18866 *) stage1_cflags="-g -J" ;;
18867 esac ;;
18868 esac
18872 # Enable --enable-checking in stage1 of the compiler.
18873 # Check whether --enable-stage1-checking was given.
18874 if test "${enable_stage1_checking+set}" = set; then :
18875 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18876 else
18877 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18878 # For --disable-checking or implicit --enable-checking=release, avoid
18879 # setting --enable-checking=gc in the default stage1 checking for LTO
18880 # bootstraps. See PR62077.
18881 case $BUILD_CONFIG in
18882 *lto*)
18883 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18885 stage1_checking=--enable-checking=yes,types;;
18886 esac
18887 if test "x$enable_checking" = x && \
18888 test -d ${srcdir}/gcc && \
18889 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18890 stage1_checking=--enable-checking=yes,types,extra
18892 else
18893 stage1_checking=--enable-checking=$enable_checking,types
18899 # Enable -Werror in bootstrap stage2 and later.
18900 # Check whether --enable-werror was given.
18901 if test "${enable_werror+set}" = set; then :
18902 enableval=$enable_werror;
18903 case ${enable_werror} in
18904 yes) stage2_werror_flag="--enable-werror-always" ;;
18905 *) stage2_werror_flag="" ;;
18906 esac
18908 else
18910 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18911 case $BUILD_CONFIG in
18912 bootstrap-debug)
18913 stage2_werror_flag="--enable-werror-always" ;;
18915 stage2_werror_flag="--enable-werror-always" ;;
18916 esac
18924 # Specify what files to not compare during bootstrap.
18926 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18927 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18928 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18929 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18930 case "$target" in
18931 hppa*64*-*-hpux*) ;;
18932 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18933 esac
18936 ac_config_files="$ac_config_files Makefile"
18938 cat >confcache <<\_ACEOF
18939 # This file is a shell script that caches the results of configure
18940 # tests run on this system so they can be shared between configure
18941 # scripts and configure runs, see configure's option --config-cache.
18942 # It is not useful on other systems. If it contains results you don't
18943 # want to keep, you may remove or edit it.
18945 # config.status only pays attention to the cache file if you give it
18946 # the --recheck option to rerun configure.
18948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18950 # following values.
18952 _ACEOF
18954 # The following way of writing the cache mishandles newlines in values,
18955 # but we know of no workaround that is simple, portable, and efficient.
18956 # So, we kill variables containing newlines.
18957 # Ultrix sh set writes to stderr and can't be redirected directly,
18958 # and sets the high bit in the cache file unless we assign to the vars.
18960 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18961 eval ac_val=\$$ac_var
18962 case $ac_val in #(
18963 *${as_nl}*)
18964 case $ac_var in #(
18965 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18966 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18967 esac
18968 case $ac_var in #(
18969 _ | IFS | as_nl) ;; #(
18970 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18971 *) { eval $ac_var=; unset $ac_var;} ;;
18972 esac ;;
18973 esac
18974 done
18976 (set) 2>&1 |
18977 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18978 *${as_nl}ac_space=\ *)
18979 # `set' does not quote correctly, so add quotes: double-quote
18980 # substitution turns \\\\ into \\, and sed turns \\ into \.
18981 sed -n \
18982 "s/'/'\\\\''/g;
18983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18984 ;; #(
18986 # `set' quotes correctly as required by POSIX, so do not add quotes.
18987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18989 esac |
18990 sort
18992 sed '
18993 /^ac_cv_env_/b end
18994 t clear
18995 :clear
18996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18997 t end
18998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18999 :end' >>confcache
19000 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19001 if test -w "$cache_file"; then
19002 if test "x$cache_file" != "x/dev/null"; then
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19004 $as_echo "$as_me: updating cache $cache_file" >&6;}
19005 if test ! -f "$cache_file" || test -h "$cache_file"; then
19006 cat confcache >"$cache_file"
19007 else
19008 case $cache_file in #(
19009 */* | ?:*)
19010 mv -f confcache "$cache_file"$$ &&
19011 mv -f "$cache_file"$$ "$cache_file" ;; #(
19013 mv -f confcache "$cache_file" ;;
19014 esac
19017 else
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19019 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19022 rm -f confcache
19024 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19025 # Let make expand exec_prefix.
19026 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19028 # Transform confdefs.h into DEFS.
19029 # Protect against shell expansion while executing Makefile rules.
19030 # Protect against Makefile macro expansion.
19032 # If the first sed substitution is executed (which looks for macros that
19033 # take arguments), then branch to the quote section. Otherwise,
19034 # look for a macro that doesn't take arguments.
19035 ac_script='
19036 :mline
19037 /\\$/{
19039 s,\\\n,,
19040 b mline
19042 t clear
19043 :clear
19044 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19045 t quote
19046 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19047 t quote
19048 b any
19049 :quote
19050 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19051 s/\[/\\&/g
19052 s/\]/\\&/g
19053 s/\$/$$/g
19055 :any
19058 s/^\n//
19059 s/\n/ /g
19063 DEFS=`sed -n "$ac_script" confdefs.h`
19066 ac_libobjs=
19067 ac_ltlibobjs=
19069 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19070 # 1. Remove the extension, and $U if already installed.
19071 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19072 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19073 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19074 # will be set to the directory where LIBOBJS objects are built.
19075 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19076 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19077 done
19078 LIBOBJS=$ac_libobjs
19080 LTLIBOBJS=$ac_ltlibobjs
19084 : "${CONFIG_STATUS=./config.status}"
19085 ac_write_fail=0
19086 ac_clean_files_save=$ac_clean_files
19087 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19089 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19090 as_write_fail=0
19091 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19092 #! $SHELL
19093 # Generated by $as_me.
19094 # Run this file to recreate the current configuration.
19095 # Compiler output produced by configure, useful for debugging
19096 # configure, is in config.log if it exists.
19098 debug=false
19099 ac_cs_recheck=false
19100 ac_cs_silent=false
19102 SHELL=\${CONFIG_SHELL-$SHELL}
19103 export SHELL
19104 _ASEOF
19105 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19106 ## -------------------- ##
19107 ## M4sh Initialization. ##
19108 ## -------------------- ##
19110 # Be more Bourne compatible
19111 DUALCASE=1; export DUALCASE # for MKS sh
19112 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19113 emulate sh
19114 NULLCMD=:
19115 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19116 # is contrary to our usage. Disable this feature.
19117 alias -g '${1+"$@"}'='"$@"'
19118 setopt NO_GLOB_SUBST
19119 else
19120 case `(set -o) 2>/dev/null` in #(
19121 *posix*) :
19122 set -o posix ;; #(
19123 *) :
19125 esac
19129 as_nl='
19131 export as_nl
19132 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19133 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19134 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19135 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19136 # Prefer a ksh shell builtin over an external printf program on Solaris,
19137 # but without wasting forks for bash or zsh.
19138 if test -z "$BASH_VERSION$ZSH_VERSION" \
19139 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19140 as_echo='print -r --'
19141 as_echo_n='print -rn --'
19142 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19143 as_echo='printf %s\n'
19144 as_echo_n='printf %s'
19145 else
19146 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19147 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19148 as_echo_n='/usr/ucb/echo -n'
19149 else
19150 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19151 as_echo_n_body='eval
19152 arg=$1;
19153 case $arg in #(
19154 *"$as_nl"*)
19155 expr "X$arg" : "X\\(.*\\)$as_nl";
19156 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19157 esac;
19158 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19160 export as_echo_n_body
19161 as_echo_n='sh -c $as_echo_n_body as_echo'
19163 export as_echo_body
19164 as_echo='sh -c $as_echo_body as_echo'
19167 # The user is always right.
19168 if test "${PATH_SEPARATOR+set}" != set; then
19169 PATH_SEPARATOR=:
19170 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19171 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19172 PATH_SEPARATOR=';'
19177 # IFS
19178 # We need space, tab and new line, in precisely that order. Quoting is
19179 # there to prevent editors from complaining about space-tab.
19180 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19181 # splitting by setting IFS to empty value.)
19182 IFS=" "" $as_nl"
19184 # Find who we are. Look in the path if we contain no directory separator.
19185 as_myself=
19186 case $0 in #((
19187 *[\\/]* ) as_myself=$0 ;;
19188 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19189 for as_dir in $PATH
19191 IFS=$as_save_IFS
19192 test -z "$as_dir" && as_dir=.
19193 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19194 done
19195 IFS=$as_save_IFS
19198 esac
19199 # We did not find ourselves, most probably we were run as `sh COMMAND'
19200 # in which case we are not to be found in the path.
19201 if test "x$as_myself" = x; then
19202 as_myself=$0
19204 if test ! -f "$as_myself"; then
19205 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19206 exit 1
19209 # Unset variables that we do not need and which cause bugs (e.g. in
19210 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19211 # suppresses any "Segmentation fault" message there. '((' could
19212 # trigger a bug in pdksh 5.2.14.
19213 for as_var in BASH_ENV ENV MAIL MAILPATH
19214 do eval test x\${$as_var+set} = xset \
19215 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19216 done
19217 PS1='$ '
19218 PS2='> '
19219 PS4='+ '
19221 # NLS nuisances.
19222 LC_ALL=C
19223 export LC_ALL
19224 LANGUAGE=C
19225 export LANGUAGE
19227 # CDPATH.
19228 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19231 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19232 # ----------------------------------------
19233 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19234 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19235 # script with STATUS, using 1 if that was 0.
19236 as_fn_error ()
19238 as_status=$1; test $as_status -eq 0 && as_status=1
19239 if test "$4"; then
19240 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19241 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19243 $as_echo "$as_me: error: $2" >&2
19244 as_fn_exit $as_status
19245 } # as_fn_error
19248 # as_fn_set_status STATUS
19249 # -----------------------
19250 # Set $? to STATUS, without forking.
19251 as_fn_set_status ()
19253 return $1
19254 } # as_fn_set_status
19256 # as_fn_exit STATUS
19257 # -----------------
19258 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19259 as_fn_exit ()
19261 set +e
19262 as_fn_set_status $1
19263 exit $1
19264 } # as_fn_exit
19266 # as_fn_unset VAR
19267 # ---------------
19268 # Portably unset VAR.
19269 as_fn_unset ()
19271 { eval $1=; unset $1;}
19273 as_unset=as_fn_unset
19274 # as_fn_append VAR VALUE
19275 # ----------------------
19276 # Append the text in VALUE to the end of the definition contained in VAR. Take
19277 # advantage of any shell optimizations that allow amortized linear growth over
19278 # repeated appends, instead of the typical quadratic growth present in naive
19279 # implementations.
19280 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19281 eval 'as_fn_append ()
19283 eval $1+=\$2
19285 else
19286 as_fn_append ()
19288 eval $1=\$$1\$2
19290 fi # as_fn_append
19292 # as_fn_arith ARG...
19293 # ------------------
19294 # Perform arithmetic evaluation on the ARGs, and store the result in the
19295 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19296 # must be portable across $(()) and expr.
19297 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19298 eval 'as_fn_arith ()
19300 as_val=$(( $* ))
19302 else
19303 as_fn_arith ()
19305 as_val=`expr "$@" || test $? -eq 1`
19307 fi # as_fn_arith
19310 if expr a : '\(a\)' >/dev/null 2>&1 &&
19311 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19312 as_expr=expr
19313 else
19314 as_expr=false
19317 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19318 as_basename=basename
19319 else
19320 as_basename=false
19323 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19324 as_dirname=dirname
19325 else
19326 as_dirname=false
19329 as_me=`$as_basename -- "$0" ||
19330 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19331 X"$0" : 'X\(//\)$' \| \
19332 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19333 $as_echo X/"$0" |
19334 sed '/^.*\/\([^/][^/]*\)\/*$/{
19335 s//\1/
19338 /^X\/\(\/\/\)$/{
19339 s//\1/
19342 /^X\/\(\/\).*/{
19343 s//\1/
19346 s/.*/./; q'`
19348 # Avoid depending upon Character Ranges.
19349 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19350 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19351 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19352 as_cr_digits='0123456789'
19353 as_cr_alnum=$as_cr_Letters$as_cr_digits
19355 ECHO_C= ECHO_N= ECHO_T=
19356 case `echo -n x` in #(((((
19357 -n*)
19358 case `echo 'xy\c'` in
19359 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19360 xy) ECHO_C='\c';;
19361 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19362 ECHO_T=' ';;
19363 esac;;
19365 ECHO_N='-n';;
19366 esac
19368 rm -f conf$$ conf$$.exe conf$$.file
19369 if test -d conf$$.dir; then
19370 rm -f conf$$.dir/conf$$.file
19371 else
19372 rm -f conf$$.dir
19373 mkdir conf$$.dir 2>/dev/null
19375 if (echo >conf$$.file) 2>/dev/null; then
19376 if ln -s conf$$.file conf$$ 2>/dev/null; then
19377 as_ln_s='ln -s'
19378 # ... but there are two gotchas:
19379 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19380 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19381 # In both cases, we have to default to `cp -pR'.
19382 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19383 as_ln_s='cp -pR'
19384 elif ln conf$$.file conf$$ 2>/dev/null; then
19385 as_ln_s=ln
19386 else
19387 as_ln_s='cp -pR'
19389 else
19390 as_ln_s='cp -pR'
19392 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19393 rmdir conf$$.dir 2>/dev/null
19396 # as_fn_mkdir_p
19397 # -------------
19398 # Create "$as_dir" as a directory, including parents if necessary.
19399 as_fn_mkdir_p ()
19402 case $as_dir in #(
19403 -*) as_dir=./$as_dir;;
19404 esac
19405 test -d "$as_dir" || eval $as_mkdir_p || {
19406 as_dirs=
19407 while :; do
19408 case $as_dir in #(
19409 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19410 *) as_qdir=$as_dir;;
19411 esac
19412 as_dirs="'$as_qdir' $as_dirs"
19413 as_dir=`$as_dirname -- "$as_dir" ||
19414 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19415 X"$as_dir" : 'X\(//\)[^/]' \| \
19416 X"$as_dir" : 'X\(//\)$' \| \
19417 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19418 $as_echo X"$as_dir" |
19419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19420 s//\1/
19423 /^X\(\/\/\)[^/].*/{
19424 s//\1/
19427 /^X\(\/\/\)$/{
19428 s//\1/
19431 /^X\(\/\).*/{
19432 s//\1/
19435 s/.*/./; q'`
19436 test -d "$as_dir" && break
19437 done
19438 test -z "$as_dirs" || eval "mkdir $as_dirs"
19439 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19442 } # as_fn_mkdir_p
19443 if mkdir -p . 2>/dev/null; then
19444 as_mkdir_p='mkdir -p "$as_dir"'
19445 else
19446 test -d ./-p && rmdir ./-p
19447 as_mkdir_p=false
19451 # as_fn_executable_p FILE
19452 # -----------------------
19453 # Test if FILE is an executable regular file.
19454 as_fn_executable_p ()
19456 test -f "$1" && test -x "$1"
19457 } # as_fn_executable_p
19458 as_test_x='test -x'
19459 as_executable_p=as_fn_executable_p
19461 # Sed expression to map a string onto a valid CPP name.
19462 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19464 # Sed expression to map a string onto a valid variable name.
19465 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19468 exec 6>&1
19469 ## ----------------------------------- ##
19470 ## Main body of $CONFIG_STATUS script. ##
19471 ## ----------------------------------- ##
19472 _ASEOF
19473 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19476 # Save the log message, to keep $0 and so on meaningful, and to
19477 # report actual input values of CONFIG_FILES etc. instead of their
19478 # values after options handling.
19479 ac_log="
19480 This file was extended by $as_me, which was
19481 generated by GNU Autoconf 2.69. Invocation command line was
19483 CONFIG_FILES = $CONFIG_FILES
19484 CONFIG_HEADERS = $CONFIG_HEADERS
19485 CONFIG_LINKS = $CONFIG_LINKS
19486 CONFIG_COMMANDS = $CONFIG_COMMANDS
19487 $ $0 $@
19489 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19492 _ACEOF
19494 case $ac_config_files in *"
19495 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19496 esac
19500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19501 # Files that config.status was made for.
19502 config_files="$ac_config_files"
19504 _ACEOF
19506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19507 ac_cs_usage="\
19508 \`$as_me' instantiates files and other configuration actions
19509 from templates according to the current configuration. Unless the files
19510 and actions are specified as TAGs, all are instantiated by default.
19512 Usage: $0 [OPTION]... [TAG]...
19514 -h, --help print this help, then exit
19515 -V, --version print version number and configuration settings, then exit
19516 --config print configuration, then exit
19517 -q, --quiet, --silent
19518 do not print progress messages
19519 -d, --debug don't remove temporary files
19520 --recheck update $as_me by reconfiguring in the same conditions
19521 --file=FILE[:TEMPLATE]
19522 instantiate the configuration file FILE
19524 Configuration files:
19525 $config_files
19527 Report bugs to the package provider."
19529 _ACEOF
19530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19531 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19532 ac_cs_version="\\
19533 config.status
19534 configured by $0, generated by GNU Autoconf 2.69,
19535 with options \\"\$ac_cs_config\\"
19537 Copyright (C) 2012 Free Software Foundation, Inc.
19538 This config.status script is free software; the Free Software Foundation
19539 gives unlimited permission to copy, distribute and modify it."
19541 ac_pwd='$ac_pwd'
19542 srcdir='$srcdir'
19543 INSTALL='$INSTALL'
19544 AWK='$AWK'
19545 test -n "\$AWK" || AWK=awk
19546 _ACEOF
19548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19549 # The default lists apply if the user does not specify any file.
19550 ac_need_defaults=:
19551 while test $# != 0
19553 case $1 in
19554 --*=?*)
19555 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19556 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19557 ac_shift=:
19559 --*=)
19560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19561 ac_optarg=
19562 ac_shift=:
19565 ac_option=$1
19566 ac_optarg=$2
19567 ac_shift=shift
19569 esac
19571 case $ac_option in
19572 # Handling of the options.
19573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19574 ac_cs_recheck=: ;;
19575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19576 $as_echo "$ac_cs_version"; exit ;;
19577 --config | --confi | --conf | --con | --co | --c )
19578 $as_echo "$ac_cs_config"; exit ;;
19579 --debug | --debu | --deb | --de | --d | -d )
19580 debug=: ;;
19581 --file | --fil | --fi | --f )
19582 $ac_shift
19583 case $ac_optarg in
19584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19585 '') as_fn_error $? "missing file argument" ;;
19586 esac
19587 as_fn_append CONFIG_FILES " '$ac_optarg'"
19588 ac_need_defaults=false;;
19589 --he | --h | --help | --hel | -h )
19590 $as_echo "$ac_cs_usage"; exit ;;
19591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19592 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19593 ac_cs_silent=: ;;
19595 # This is an error.
19596 -*) as_fn_error $? "unrecognized option: \`$1'
19597 Try \`$0 --help' for more information." ;;
19599 *) as_fn_append ac_config_targets " $1"
19600 ac_need_defaults=false ;;
19602 esac
19603 shift
19604 done
19606 ac_configure_extra_args=
19608 if $ac_cs_silent; then
19609 exec 6>/dev/null
19610 ac_configure_extra_args="$ac_configure_extra_args --silent"
19613 _ACEOF
19614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19615 if \$ac_cs_recheck; then
19616 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19617 shift
19618 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19619 CONFIG_SHELL='$SHELL'
19620 export CONFIG_SHELL
19621 exec "\$@"
19624 _ACEOF
19625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19626 exec 5>>config.log
19628 echo
19629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19630 ## Running $as_me. ##
19631 _ASBOX
19632 $as_echo "$ac_log"
19633 } >&5
19635 _ACEOF
19636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19638 # INIT-COMMANDS
19640 extrasub_build="$extrasub_build"
19641 extrasub_host="$extrasub_host"
19642 extrasub_target="$extrasub_target"
19644 _ACEOF
19646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19648 # Handling of arguments.
19649 for ac_config_target in $ac_config_targets
19651 case $ac_config_target in
19652 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19654 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19655 esac
19656 done
19659 # If the user did not use the arguments to specify the items to instantiate,
19660 # then the envvar interface is used. Set only those that are not.
19661 # We use the long form for the default assignment because of an extremely
19662 # bizarre bug on SunOS 4.1.3.
19663 if $ac_need_defaults; then
19664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19667 # Have a temporary directory for convenience. Make it in the build tree
19668 # simply because there is no reason against having it here, and in addition,
19669 # creating and moving files from /tmp can sometimes cause problems.
19670 # Hook for its removal unless debugging.
19671 # Note that there is a small window in which the directory will not be cleaned:
19672 # after its creation but before its name has been assigned to `$tmp'.
19673 $debug ||
19675 tmp= ac_tmp=
19676 trap 'exit_status=$?
19677 : "${ac_tmp:=$tmp}"
19678 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19680 trap 'as_fn_exit 1' 1 2 13 15
19682 # Create a (secure) tmp directory for tmp files.
19685 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19686 test -d "$tmp"
19687 } ||
19689 tmp=./conf$$-$RANDOM
19690 (umask 077 && mkdir "$tmp")
19691 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19692 ac_tmp=$tmp
19694 # Set up the scripts for CONFIG_FILES section.
19695 # No need to generate them if there are no CONFIG_FILES.
19696 # This happens for instance with `./config.status config.h'.
19697 if test -n "$CONFIG_FILES"; then
19699 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19700 ac_cs_awk_getline=:
19701 ac_cs_awk_pipe_init=
19702 ac_cs_awk_read_file='
19703 while ((getline aline < (F[key])) > 0)
19704 print(aline)
19705 close(F[key])'
19706 ac_cs_awk_pipe_fini=
19707 else
19708 ac_cs_awk_getline=false
19709 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19710 ac_cs_awk_read_file='
19711 print "|#_!!_#|"
19712 print "cat " F[key] " &&"
19713 '$ac_cs_awk_pipe_init
19714 # The final `:' finishes the AND list.
19715 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19717 ac_cr=`echo X | tr X '\015'`
19718 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19719 # But we know of no other shell where ac_cr would be empty at this
19720 # point, so we can use a bashism as a fallback.
19721 if test "x$ac_cr" = x; then
19722 eval ac_cr=\$\'\\r\'
19724 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19725 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19726 ac_cs_awk_cr='\\r'
19727 else
19728 ac_cs_awk_cr=$ac_cr
19731 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19732 _ACEOF
19734 # Create commands to substitute file output variables.
19736 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19737 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19738 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19739 echo "_ACAWK" &&
19740 echo "_ACEOF"
19741 } >conf$$files.sh &&
19742 . ./conf$$files.sh ||
19743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19744 rm -f conf$$files.sh
19747 echo "cat >conf$$subs.awk <<_ACEOF" &&
19748 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19749 echo "_ACEOF"
19750 } >conf$$subs.sh ||
19751 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19752 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19753 ac_delim='%!_!# '
19754 for ac_last_try in false false false false false :; do
19755 . ./conf$$subs.sh ||
19756 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19758 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19759 if test $ac_delim_n = $ac_delim_num; then
19760 break
19761 elif $ac_last_try; then
19762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19763 else
19764 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19766 done
19767 rm -f conf$$subs.sh
19769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19770 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19771 _ACEOF
19772 sed -n '
19774 s/^/S["/; s/!.*/"]=/
19777 s/^[^!]*!//
19778 :repl
19779 t repl
19780 s/'"$ac_delim"'$//
19781 t delim
19784 s/\(.\{148\}\)..*/\1/
19785 t more1
19786 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19789 b repl
19790 :more1
19791 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19794 s/.\{148\}//
19795 t nl
19796 :delim
19798 s/\(.\{148\}\)..*/\1/
19799 t more2
19800 s/["\\]/\\&/g; s/^/"/; s/$/"/
19803 :more2
19804 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19807 s/.\{148\}//
19808 t delim
19809 ' <conf$$subs.awk | sed '
19810 /^[^""]/{
19812 s/\n//
19814 ' >>$CONFIG_STATUS || ac_write_fail=1
19815 rm -f conf$$subs.awk
19816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19817 _ACAWK
19818 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19819 for (key in S) S_is_set[key] = 1
19820 FS = "\a"
19821 \$ac_cs_awk_pipe_init
19824 line = $ 0
19825 nfields = split(line, field, "@")
19826 substed = 0
19827 len = length(field[1])
19828 for (i = 2; i < nfields; i++) {
19829 key = field[i]
19830 keylen = length(key)
19831 if (S_is_set[key]) {
19832 value = S[key]
19833 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19834 len += length(value) + length(field[++i])
19835 substed = 1
19836 } else
19837 len += 1 + keylen
19839 if (nfields == 3 && !substed) {
19840 key = field[2]
19841 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19842 \$ac_cs_awk_read_file
19843 next
19846 print line
19848 \$ac_cs_awk_pipe_fini
19849 _ACAWK
19850 _ACEOF
19851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19852 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19853 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19854 else
19856 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19857 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19858 _ACEOF
19860 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19861 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19862 # trailing colons and then remove the whole line if VPATH becomes empty
19863 # (actually we leave an empty line to preserve line numbers).
19864 if test "x$srcdir" = x.; then
19865 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19867 s///
19868 s/^/:/
19869 s/[ ]*$/:/
19870 s/:\$(srcdir):/:/g
19871 s/:\${srcdir}:/:/g
19872 s/:@srcdir@:/:/g
19873 s/^:*//
19874 s/:*$//
19876 s/\(=[ ]*\).*/\1/
19878 s/\n//
19879 s/^[^=]*=[ ]*$//
19883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19884 fi # test -n "$CONFIG_FILES"
19887 eval set X " :F $CONFIG_FILES "
19888 shift
19889 for ac_tag
19891 case $ac_tag in
19892 :[FHLC]) ac_mode=$ac_tag; continue;;
19893 esac
19894 case $ac_mode$ac_tag in
19895 :[FHL]*:*);;
19896 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19897 :[FH]-) ac_tag=-:-;;
19898 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19899 esac
19900 ac_save_IFS=$IFS
19901 IFS=:
19902 set x $ac_tag
19903 IFS=$ac_save_IFS
19904 shift
19905 ac_file=$1
19906 shift
19908 case $ac_mode in
19909 :L) ac_source=$1;;
19910 :[FH])
19911 ac_file_inputs=
19912 for ac_f
19914 case $ac_f in
19915 -) ac_f="$ac_tmp/stdin";;
19916 *) # Look for the file first in the build tree, then in the source tree
19917 # (if the path is not absolute). The absolute path cannot be DOS-style,
19918 # because $ac_f cannot contain `:'.
19919 test -f "$ac_f" ||
19920 case $ac_f in
19921 [\\/$]*) false;;
19922 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19923 esac ||
19924 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19925 esac
19926 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19927 as_fn_append ac_file_inputs " '$ac_f'"
19928 done
19930 # Let's still pretend it is `configure' which instantiates (i.e., don't
19931 # use $as_me), people would be surprised to read:
19932 # /* config.h. Generated by config.status. */
19933 configure_input='Generated from '`
19934 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19935 `' by configure.'
19936 if test x"$ac_file" != x-; then
19937 configure_input="$ac_file. $configure_input"
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19939 $as_echo "$as_me: creating $ac_file" >&6;}
19941 # Neutralize special characters interpreted by sed in replacement strings.
19942 case $configure_input in #(
19943 *\&* | *\|* | *\\* )
19944 ac_sed_conf_input=`$as_echo "$configure_input" |
19945 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19946 *) ac_sed_conf_input=$configure_input;;
19947 esac
19949 case $ac_tag in
19950 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19952 esac
19954 esac
19956 ac_dir=`$as_dirname -- "$ac_file" ||
19957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19958 X"$ac_file" : 'X\(//\)[^/]' \| \
19959 X"$ac_file" : 'X\(//\)$' \| \
19960 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19961 $as_echo X"$ac_file" |
19962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19963 s//\1/
19966 /^X\(\/\/\)[^/].*/{
19967 s//\1/
19970 /^X\(\/\/\)$/{
19971 s//\1/
19974 /^X\(\/\).*/{
19975 s//\1/
19978 s/.*/./; q'`
19979 as_dir="$ac_dir"; as_fn_mkdir_p
19980 ac_builddir=.
19982 case "$ac_dir" in
19983 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19985 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19986 # A ".." for each directory in $ac_dir_suffix.
19987 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19988 case $ac_top_builddir_sub in
19989 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19990 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19991 esac ;;
19992 esac
19993 ac_abs_top_builddir=$ac_pwd
19994 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19995 # for backward compatibility:
19996 ac_top_builddir=$ac_top_build_prefix
19998 case $srcdir in
19999 .) # We are building in place.
20000 ac_srcdir=.
20001 ac_top_srcdir=$ac_top_builddir_sub
20002 ac_abs_top_srcdir=$ac_pwd ;;
20003 [\\/]* | ?:[\\/]* ) # Absolute name.
20004 ac_srcdir=$srcdir$ac_dir_suffix;
20005 ac_top_srcdir=$srcdir
20006 ac_abs_top_srcdir=$srcdir ;;
20007 *) # Relative name.
20008 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20009 ac_top_srcdir=$ac_top_build_prefix$srcdir
20010 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20011 esac
20012 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20015 case $ac_mode in
20018 # CONFIG_FILE
20021 case $INSTALL in
20022 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20023 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20024 esac
20025 _ACEOF
20027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20028 # If the template does not know about datarootdir, expand it.
20029 # FIXME: This hack should be removed a few years after 2.60.
20030 ac_datarootdir_hack=; ac_datarootdir_seen=
20031 ac_sed_dataroot='
20032 /datarootdir/ {
20036 /@datadir@/p
20037 /@docdir@/p
20038 /@infodir@/p
20039 /@localedir@/p
20040 /@mandir@/p'
20041 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20042 *datarootdir*) ac_datarootdir_seen=yes;;
20043 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20045 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20046 _ACEOF
20047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20048 ac_datarootdir_hack='
20049 s&@datadir@&$datadir&g
20050 s&@docdir@&$docdir&g
20051 s&@infodir@&$infodir&g
20052 s&@localedir@&$localedir&g
20053 s&@mandir@&$mandir&g
20054 s&\\\${datarootdir}&$datarootdir&g' ;;
20055 esac
20056 _ACEOF
20058 # Neutralize VPATH when `$srcdir' = `.'.
20059 # Shell code in configure.ac might set extrasub.
20060 # FIXME: do we really want to maintain this feature?
20061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20062 ac_sed_extra="$ac_vpsub
20063 $extrasub
20064 _ACEOF
20065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20068 s|@configure_input@|$ac_sed_conf_input|;t t
20069 s&@top_builddir@&$ac_top_builddir_sub&;t t
20070 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20071 s&@srcdir@&$ac_srcdir&;t t
20072 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20073 s&@top_srcdir@&$ac_top_srcdir&;t t
20074 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20075 s&@builddir@&$ac_builddir&;t t
20076 s&@abs_builddir@&$ac_abs_builddir&;t t
20077 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20078 s&@INSTALL@&$ac_INSTALL&;t t
20079 $ac_datarootdir_hack
20081 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20082 if $ac_cs_awk_getline; then
20083 $AWK -f "$ac_tmp/subs.awk"
20084 else
20085 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20086 fi \
20087 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20089 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20090 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20091 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20092 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20094 which seems to be undefined. Please make sure it is defined" >&5
20095 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20096 which seems to be undefined. Please make sure it is defined" >&2;}
20098 rm -f "$ac_tmp/stdin"
20099 case $ac_file in
20100 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20101 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20102 esac \
20103 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20108 esac
20111 case $ac_file$ac_mode in
20112 "Makefile":F) sed "$extrasub_build" Makefile |
20113 sed "$extrasub_host" |
20114 sed "$extrasub_target" > mf$$
20115 mv -f mf$$ Makefile ;;
20117 esac
20118 done # for ac_tag
20121 as_fn_exit 0
20122 _ACEOF
20123 ac_clean_files=$ac_clean_files_save
20125 test $ac_write_fail = 0 ||
20126 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20129 # configure is writing to config.log, and then calls config.status.
20130 # config.status does its own redirection, appending to config.log.
20131 # Unfortunately, on DOS this fails, as config.log is still kept open
20132 # by configure, so config.status won't be able to write to it; its
20133 # output is simply discarded. So we exec the FD to /dev/null,
20134 # effectively closing config.log, so it can be properly (re)opened and
20135 # appended to by config.status. When coming back to configure, we
20136 # need to make the FD available again.
20137 if test "$no_create" != yes; then
20138 ac_cs_success=:
20139 ac_config_status_args=
20140 test "$silent" = yes &&
20141 ac_config_status_args="$ac_config_status_args --quiet"
20142 exec 5>/dev/null
20143 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20144 exec 5>>config.log
20145 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20146 # would make configure fail if this is the last instruction.
20147 $ac_cs_success || as_fn_exit 1
20149 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20151 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}